Attributes
Members list
Type members
Classlikes
Pretty prints Timelock scripts in a readable format
Pretty prints Timelock scripts in a readable format
Attributes
- Supertypes
- Self type
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Parses a Timelock script from Blockfrost JSON string.
Parses a Timelock script from Blockfrost JSON string.
Value parameters
- json
-
the JSON string representing the script
Attributes
- Returns
-
the Timelock script
Reads a Timelock script from a CBOR encoded byte array
Reads a Timelock script from a CBOR encoded byte array
Value parameters
- cbor
-
The CBOR encoded byte array
Attributes
- Returns
-
The Timelock script
Checks if less-than-equal comparison holds where Nothing is negative infinity
Checks if less-than-equal comparison holds where Nothing is negative infinity
Attributes
- Returns
-
true if i <= j, false if i > j or j is SNothing
Checks if less-than-equal comparison holds where Nothing is positive infinity
Checks if less-than-equal comparison holds where Nothing is positive infinity
Attributes
- Returns
-
true if i <= j, false if i > j or i is SNothing
Givens
Givens
ReadWriter for Timelock in Blockfrost JSON format.
ReadWriter for Timelock in Blockfrost JSON format.
Blockfrost uses the following JSON format for native scripts:
- sig:
{"type": "sig", "keyHash": "..."} - all:
{"type": "all", "scripts": [...]} - any:
{"type": "any", "scripts": [...]} - atLeast:
{"type": "atLeast", "required": n, "scripts": [...]} - after:
{"type": "after", "slot": n} - before:
{"type": "before", "slot": n}
Attributes
Pretty prints Timelock scripts in a readable format
Pretty prints Timelock scripts in a readable format