| Safe Haskell | Safe-Inferred | 
|---|---|
| Language | Haskell2010 | 
PlutusLedgerApi.Envelope
Synopsis
- compiledCodeEnvelope ∷ Text → CompiledCode a → Value
- compiledCodeEnvelopeForVersion ∷ PlutusLedgerLanguage → Text → CompiledCode a → Value
- writeCodeEnvelope ∷ Text → CompiledCode a → FilePath → IO ()
- writeCodeEnvelopeForVersion ∷ PlutusLedgerLanguage → Text → CompiledCode a → FilePath → IO ()
Documentation
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.  | 
| → 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": "..."
}
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.  | 
| → 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": "..."
}