@lucid-evolution/utils 0.1.37 → 0.1.39
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 +7 -0
- package/dist/index.js +7 -0
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -281,6 +281,12 @@ function validatorToScriptHash(validator) {
|
|
|
281
281
|
applyDoubleCborEncoding(validator.script)
|
|
282
282
|
)
|
|
283
283
|
).hash().to_hex();
|
|
284
|
+
case "PlutusV3":
|
|
285
|
+
return CML.PlutusScript.from_v3(
|
|
286
|
+
CML.PlutusV3Script.from_cbor_hex(
|
|
287
|
+
applyDoubleCborEncoding(validator.script)
|
|
288
|
+
)
|
|
289
|
+
).hash().to_hex();
|
|
284
290
|
default:
|
|
285
291
|
throw new Error("No variant matched");
|
|
286
292
|
}
|
|
@@ -555,6 +561,7 @@ var PROTOCOL_PARAMETERS_DEFAULT = {
|
|
|
555
561
|
coinsPerUtxoByte: 4310n,
|
|
556
562
|
collateralPercentage: 150,
|
|
557
563
|
maxCollateralInputs: 3,
|
|
564
|
+
minFeeRefScriptCostPerByte: 15,
|
|
558
565
|
costModels: {
|
|
559
566
|
PlutusV1: {
|
|
560
567
|
"0": 100788,
|
package/dist/index.js
CHANGED
|
@@ -198,6 +198,12 @@ function validatorToScriptHash(validator) {
|
|
|
198
198
|
applyDoubleCborEncoding(validator.script)
|
|
199
199
|
)
|
|
200
200
|
).hash().to_hex();
|
|
201
|
+
case "PlutusV3":
|
|
202
|
+
return CML.PlutusScript.from_v3(
|
|
203
|
+
CML.PlutusV3Script.from_cbor_hex(
|
|
204
|
+
applyDoubleCborEncoding(validator.script)
|
|
205
|
+
)
|
|
206
|
+
).hash().to_hex();
|
|
201
207
|
default:
|
|
202
208
|
throw new Error("No variant matched");
|
|
203
209
|
}
|
|
@@ -472,6 +478,7 @@ var PROTOCOL_PARAMETERS_DEFAULT = {
|
|
|
472
478
|
coinsPerUtxoByte: 4310n,
|
|
473
479
|
collateralPercentage: 150,
|
|
474
480
|
maxCollateralInputs: 3,
|
|
481
|
+
minFeeRefScriptCostPerByte: 15,
|
|
475
482
|
costModels: {
|
|
476
483
|
PlutusV1: {
|
|
477
484
|
"0": 100788,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucid-evolution/utils",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.39",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@emurgo/cardano-serialization-lib-nodejs": "@emurgo/cardano-serialization-lib-browser"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@anastasia-labs/cardano-multiplatform-lib-browser": "
|
|
30
|
-
"@anastasia-labs/cardano-multiplatform-lib-nodejs": "
|
|
29
|
+
"@anastasia-labs/cardano-multiplatform-lib-browser": "6.0.2-1",
|
|
30
|
+
"@anastasia-labs/cardano-multiplatform-lib-nodejs": "6.0.2-1",
|
|
31
31
|
"@effect/schema": "^0.68.16",
|
|
32
32
|
"@emurgo/cardano-serialization-lib-browser": "^11.5.0",
|
|
33
33
|
"@emurgo/cardano-serialization-lib-nodejs": "^11.5.0",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"bip39": "^3.1.0",
|
|
37
37
|
"cborg": "^4.2.0",
|
|
38
38
|
"effect": "^3.1.2",
|
|
39
|
-
"@lucid-evolution/core-types": "0.1.
|
|
40
|
-
"@lucid-evolution/core-utils": "0.1.
|
|
39
|
+
"@lucid-evolution/core-types": "0.1.17",
|
|
40
|
+
"@lucid-evolution/core-utils": "0.1.15",
|
|
41
41
|
"@lucid-evolution/crc8": "0.1.8",
|
|
42
|
-
"@lucid-evolution/plutus": "0.1.
|
|
42
|
+
"@lucid-evolution/plutus": "0.1.23",
|
|
43
43
|
"@lucid-evolution/uplc": "0.2.11"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|