Enumeration PlutusLanguageVersion

The Cardano ledger tags scripts with a language that determines what the ledger will do with the script.

In most cases this language will be very similar to the ones that came before, we refer to these as 'Plutus language versions'. However, from the ledger’s perspective they are entirely unrelated and there is generally no requirement that they be similar or compatible in any way.

Enumeration Members

Enumeration Members

V1: 0

V1 was the initial version of Plutus, introduced in the Alonzo hard fork.

V2: 1

V2 was introduced in the Vasil hard fork.

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

  • The full “redeemers” structure, which contains all the redeemers used in the transaction
  • Reference inputs in the transaction (proposed in CIP-31)
  • Inline datums in the transaction (proposed in CIP-32)
  • Reference scripts in the transaction (proposed in CIP-33)
V3: 2

V3 was introduced in the Conway hard fork.

The main changes in V3 of Plutus introduce:

  • The value of costmdls map at key 2 is encoded as a definite length list.

Generated using TypeDoc