@lucid-evolution/utils 0.1.34 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +614 -344
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +620 -344
- package/package.json +5 -3
package/dist/index.d.cts
CHANGED
|
@@ -92,6 +92,11 @@ declare function validatorToScriptHash(validator: Validator): ScriptHash;
|
|
|
92
92
|
declare function toScriptRef(script: Script): CML.Script;
|
|
93
93
|
declare function fromScriptRef(scriptRef: CML.Script): Script;
|
|
94
94
|
declare function mintingPolicyToId(mintingPolicy: MintingPolicy): PolicyId;
|
|
95
|
+
/**
|
|
96
|
+
* Applies a list of parameters, in the form of the `Data` type, to a CBOR encoded script.
|
|
97
|
+
*
|
|
98
|
+
* The `plutusScript` must be double CBOR encoded(bytes). Ensure to use the `applyDoubleCborEncoding` function.
|
|
99
|
+
*/
|
|
95
100
|
declare function applyParamsToScript<T extends unknown[] = Data[]>(plutusScript: string, params: Exact<[...T]>, type?: T): string;
|
|
96
101
|
|
|
97
102
|
declare function unixTimeToSlot(network: Network, unixTime: UnixTime): Slot;
|
package/dist/index.d.ts
CHANGED
|
@@ -92,6 +92,11 @@ declare function validatorToScriptHash(validator: Validator): ScriptHash;
|
|
|
92
92
|
declare function toScriptRef(script: Script): CML.Script;
|
|
93
93
|
declare function fromScriptRef(scriptRef: CML.Script): Script;
|
|
94
94
|
declare function mintingPolicyToId(mintingPolicy: MintingPolicy): PolicyId;
|
|
95
|
+
/**
|
|
96
|
+
* Applies a list of parameters, in the form of the `Data` type, to a CBOR encoded script.
|
|
97
|
+
*
|
|
98
|
+
* The `plutusScript` must be double CBOR encoded(bytes). Ensure to use the `applyDoubleCborEncoding` function.
|
|
99
|
+
*/
|
|
95
100
|
declare function applyParamsToScript<T extends unknown[] = Data[]>(plutusScript: string, params: Exact<[...T]>, type?: T): string;
|
|
96
101
|
|
|
97
102
|
declare function unixTimeToSlot(network: Network, unixTime: UnixTime): Slot;
|