Plutus' scripts are pieces of code that implement pure functions with True or False outputs. These functions take several inputs such as Datum, Redeemer and the transaction context to decide whether an output can be spent or not.

V3 was introduced in the Conway hard fork.

The main changes in V3 of Plutus were to the interface to scripts. The ScriptContext was extended to include the following information:

  • A Map with all the votes that were included in the transaction.
  • A list with Proposals that will be turned into GovernanceActions, that everyone can vote on
  • Optional amount for the current treasury. If included it will be checked to be equal the current amount in the treasury.
  • Optional amount for donating to the current treasury. If included, specified amount will go into the treasury.

Hierarchy

  • PlutusV3Script

Constructors

Properties

#compiledByteCode: HexBlob
#originalBytes: undefined | HexBlob = undefined

Methods

Generated using TypeDoc