UPLCEncoder class for encoding Untyped Plutus Core (UPLC) programs. Extends the FlatEncoder class to provide UPLC-specific encoding functionality.
Encodes a boolean value.
The boolean value to encode.
Encodes a byte string.
The byte string to encode as a Uint8Array.
Encodes a constant value with its type.
The type of the constant.
The value of the constant.
Encodes data based on its type.
The type of the data to encode.
The data to encode.
If the data type is not supported.
Encodes an integer (positive or negative).
The integer to encode.
Encodes a natural number (non-negative integer).
The natural number to encode.
Encodes a complete UPLC program.
The parsed program to encode.
A Uint8Array containing the encoded program.
Encodes a UPLC term.
The parsed term to encode.
If the term type is not supported.
Encodes a data type.
The data type to encode.
An array of numbers representing the encoded type.
If the type cannot be encoded.
Encodes a semantic version number.
The semantic version as a string (e.g., "1.0.0").
If the version format is invalid.
UPLCEncoder class for encoding Untyped Plutus Core (UPLC) programs. Extends the FlatEncoder class to provide UPLC-specific encoding functionality.