Handling outputs.
Phantom type for 32-bytes transaction IDs. This is a Blake2b-256 hash.
The content of a eUTxO.
Phantom type for 32-bytes datum hashes. This is a Blake2b-256 hash.
Nickname for data stored in a eUTxO.
Convenience type for Dict
with [OutputReference] keys.
WARNING: do not compare them with ==
since they contain functions.
Convenience empty initialization for Dict
with [OutputReference] keys.
WARNING: do not compare them with ==
since they contain functions.
Convenience function to create a Dict
with [OutputReference] keys from a list.
WARNING: do not compare them with ==
since they contain functions.
Construct an Output
from an Address
and a lovelace amount
Create a simple [Output] with just an [Address] and a [Value].
Display the [OutputReference] as a String.
Extract the amount of lovelace in an Output
Calculate the total number of lovelace in a collection of Output
Compare UTxOs by lovelace value.
Check if the output contains only Ada. Nothing else is allowed, no tokens, no datum, no ref script.
Check if the output contains only assets (Ada or tokens). Datums and ref scripts are not allowed.
Compute minimum Ada lovelace for a given [Output].
Since the size of the lovelace field may impact minAda, we adjust its value if it is too low before computation.
The formula is given by CIP 55,
with current value of 4310
for coinsPerUTxOByte
.
TODO: provide coinsPerUTxOByte
in function arguments?
Check that an [Output] has enough ada to cover its size.
Compute minimum Ada lovelace for a given [MultiAsset] that would be sent to a given address.
TODO: provide coinsPerUTxOByte
in function arguments?
Amount of Ada Lovelace "free" in the output, meaning the amount above the minimum required for the output.
Computes the bytes width of the output if we encode it to CBOR.
CBOR encoder for [OutputReference].
CBOR encoder for [Output].
CBOR encoder for [DatumOption].
Decode an [OutputReference], such as for transaction inputs.
CBOR decoder for an [Output].
[Data] encoder function for [OutputReference].
Create a DatumOption with a value from a Data object.
The reference for a eUTxO.