@lucid-evolution/provider 0.1.52 → 0.1.54

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 CHANGED
@@ -52,7 +52,7 @@ var import_utils = require("@lucid-evolution/utils");
52
52
  // package.json
53
53
  var package_default = {
54
54
  name: "@lucid-evolution/provider",
55
- version: "0.1.52",
55
+ version: "0.1.54",
56
56
  description: "",
57
57
  main: "./dist/index.js",
58
58
  types: "./dist/index.d.ts",
@@ -1259,6 +1259,11 @@ var Emulator = class {
1259
1259
  const scriptHash = script.hash().to_hex();
1260
1260
  scriptHashes.push(scriptHash);
1261
1261
  }
1262
+ for (let i = 0; i < (witnesses.plutus_v3_scripts()?.len() || 0); i++) {
1263
+ const script = witnesses.plutus_v3_scripts().get(i);
1264
+ const scriptHash = script.hash().to_hex();
1265
+ scriptHashes.push(scriptHash);
1266
+ }
1262
1267
  return scriptHashes;
1263
1268
  })();
1264
1269
  const inputs = body.inputs();
@@ -1350,6 +1355,13 @@ It does not exist or was already spent.`
1350
1355
  plutusHashesOptional.push(script.hash().to_hex());
1351
1356
  break;
1352
1357
  }
1358
+ case "PlutusV3": {
1359
+ const script = CML.PlutusScript.from_v3(
1360
+ CML.PlutusV3Script.from_cbor_bytes((0, import_core_utils2.fromHex)(scriptRef.script))
1361
+ );
1362
+ plutusHashesOptional.push(script.hash().to_hex());
1363
+ break;
1364
+ }
1353
1365
  }
1354
1366
  }
1355
1367
  if (entry.utxo.datumHash) consumedHashes.add(entry.utxo.datumHash);
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  // package.json
12
12
  var package_default = {
13
13
  name: "@lucid-evolution/provider",
14
- version: "0.1.52",
14
+ version: "0.1.54",
15
15
  description: "",
16
16
  main: "./dist/index.js",
17
17
  types: "./dist/index.d.ts",
@@ -1225,6 +1225,11 @@ var Emulator = class {
1225
1225
  const scriptHash = script.hash().to_hex();
1226
1226
  scriptHashes.push(scriptHash);
1227
1227
  }
1228
+ for (let i = 0; i < (witnesses.plutus_v3_scripts()?.len() || 0); i++) {
1229
+ const script = witnesses.plutus_v3_scripts().get(i);
1230
+ const scriptHash = script.hash().to_hex();
1231
+ scriptHashes.push(scriptHash);
1232
+ }
1228
1233
  return scriptHashes;
1229
1234
  })();
1230
1235
  const inputs = body.inputs();
@@ -1316,6 +1321,13 @@ It does not exist or was already spent.`
1316
1321
  plutusHashesOptional.push(script.hash().to_hex());
1317
1322
  break;
1318
1323
  }
1324
+ case "PlutusV3": {
1325
+ const script = CML.PlutusScript.from_v3(
1326
+ CML.PlutusV3Script.from_cbor_bytes(fromHex2(scriptRef.script))
1327
+ );
1328
+ plutusHashesOptional.push(script.hash().to_hex());
1329
+ break;
1330
+ }
1319
1331
  }
1320
1332
  }
1321
1333
  if (entry.utxo.datumHash) consumedHashes.add(entry.utxo.datumHash);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucid-evolution/provider",
3
- "version": "0.1.52",
3
+ "version": "0.1.54",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -32,8 +32,8 @@
32
32
  "effect": "^3.5.6",
33
33
  "@lucid-evolution/core-types": "0.1.17",
34
34
  "@lucid-evolution/core-utils": "0.1.15",
35
- "@lucid-evolution/utils": "0.1.39",
36
- "@lucid-evolution/wallet": "0.1.44"
35
+ "@lucid-evolution/utils": "0.1.41",
36
+ "@lucid-evolution/wallet": "0.1.46"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^20.12.8",