@lucid-evolution/utils 0.1.59 → 0.1.60
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.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -102,6 +102,15 @@ declare function mintingPolicyToId(mintingPolicy: MintingPolicy): PolicyId;
|
|
|
102
102
|
*/
|
|
103
103
|
declare function applyParamsToScript<T extends unknown[] = Data[]>(plutusScript: string, params: Exact<[...T]>, type?: T): string;
|
|
104
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Converts unix time to slot based on the network. For "Custom" network
|
|
107
|
+
* it is advisable use `unixTimeToSlot` method from `LucidEvolution`
|
|
108
|
+
* instance to avoid uninitialized `SLOT_CONFIG_NETWORK` issue. More details
|
|
109
|
+
* on the issue can be found here https://github.com/Anastasia-Labs/lucid-evolution/pull/443
|
|
110
|
+
* @param network
|
|
111
|
+
* @param unixTime
|
|
112
|
+
* @returns Slot
|
|
113
|
+
*/
|
|
105
114
|
declare function unixTimeToSlot(network: Network, unixTime: UnixTime): Slot;
|
|
106
115
|
declare function slotToUnixTime(network: Network, slot: Slot): UnixTime;
|
|
107
116
|
|
package/dist/index.d.ts
CHANGED
|
@@ -102,6 +102,15 @@ declare function mintingPolicyToId(mintingPolicy: MintingPolicy): PolicyId;
|
|
|
102
102
|
*/
|
|
103
103
|
declare function applyParamsToScript<T extends unknown[] = Data[]>(plutusScript: string, params: Exact<[...T]>, type?: T): string;
|
|
104
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Converts unix time to slot based on the network. For "Custom" network
|
|
107
|
+
* it is advisable use `unixTimeToSlot` method from `LucidEvolution`
|
|
108
|
+
* instance to avoid uninitialized `SLOT_CONFIG_NETWORK` issue. More details
|
|
109
|
+
* on the issue can be found here https://github.com/Anastasia-Labs/lucid-evolution/pull/443
|
|
110
|
+
* @param network
|
|
111
|
+
* @param unixTime
|
|
112
|
+
* @returns Slot
|
|
113
|
+
*/
|
|
105
114
|
declare function unixTimeToSlot(network: Network, unixTime: UnixTime): Slot;
|
|
106
115
|
declare function slotToUnixTime(network: Network, slot: Slot): UnixTime;
|
|
107
116
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucid-evolution/utils",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.60",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"effect": "^3.10.4",
|
|
37
37
|
"@lucid-evolution/core-types": "0.1.21",
|
|
38
38
|
"@lucid-evolution/core-utils": "0.1.16",
|
|
39
|
-
"@lucid-evolution/crc8": "0.1.8",
|
|
40
39
|
"@lucid-evolution/plutus": "0.1.28",
|
|
41
|
-
"@lucid-evolution/uplc": "0.2.
|
|
40
|
+
"@lucid-evolution/uplc": "0.2.18",
|
|
41
|
+
"@lucid-evolution/crc8": "0.1.8"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^20.12.8",
|