plutus-ledger-api-1.49.0.0: Interface to the Plutus ledger for the Cardano ledger.
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusLedgerApi.Envelope

Synopsis

Documentation

compiledCodeEnvelope Source #

Arguments

Text

Description of the code

CompiledCode a

Compiled code to wrap in the envelope

→ Value

JSON envelope

Produce a JSON envelope containing CompiledCode serialised with CBOR and encoded in Base 16 (aka. HEX), using PlutusV3 by default.

Envelope is a JSON object with the following fields: { "type": PlutusScriptV3, "description": "A description of the code", "cborHex": "..." }

compiledCodeEnvelopeForVersion Source #

Arguments

PlutusLedgerLanguage

Language of the compiled code, e.g. PlutusV3

Text

Description of the code

CompiledCode a

Compiled code to wrap in the envelope

→ Value

JSON envelope

Produce a JSON envelope containing CompiledCode serialised with CBOR and encoded in Base 16 (aka. HEX).

Envelope is a JSON object with the following fields: { "type": PlutusScriptV2, "description": "A description of the code", "cborHex": "..." }

writeCodeEnvelope Source #

Arguments

Text

Description of the code

CompiledCode a

Compiled code to wrap in the envelope

FilePath

File path to write the envelope to

IO () 

Write a JSON envelope containing CompiledCode serialised with CBOR and encoded in Base 16 (aka. HEX) to a file on disk, using PlutusV3 by default.

Envelope is a JSON object with the following fields: { "type": PlutusScriptV3, "description": "A description of the code", "cborHex": "..." }

writeCodeEnvelopeForVersion Source #

Arguments

PlutusLedgerLanguage

Language of the compiled code, e.g. PlutusV3

Text

Description of the code

CompiledCode a

Compiled code to wrap in the envelope

FilePath

File path to write the envelope to

IO () 

Write a JSON envelope containing CompiledCode serialised with CBOR and encoded in Base 16 (aka. HEX) to a file on disk.

Envelope is a JSON object with the following fields: { "type": PlutusScriptV2, "description": "A description of the code", "cborHex": "..." }