@lucid-evolution/provider 0.1.8 → 0.1.10

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
@@ -37,15 +37,17 @@ __export(src_exports, {
37
37
  });
38
38
  module.exports = __toCommonJS(src_exports);
39
39
 
40
- // src/blockfrost.ts
40
+ // src/core.ts
41
41
  var CML = __toESM(require("@dcspark/cardano-multiplatform-lib-nodejs"), 1);
42
+
43
+ // src/blockfrost.ts
42
44
  var import_core_utils = require("@lucid-evolution/core-utils");
43
45
  var import_utils = require("@lucid-evolution/utils");
44
46
 
45
47
  // package.json
46
48
  var package_default = {
47
49
  name: "@lucid-evolution/provider",
48
- version: "0.1.8",
50
+ version: "0.1.10",
49
51
  description: "",
50
52
  main: "./dist/index.js",
51
53
  types: "./dist/index.d.ts",
@@ -71,15 +73,15 @@ var package_default = {
71
73
  author: "",
72
74
  license: "MIT",
73
75
  dependencies: {
74
- "@dcspark/cardano-multiplatform-lib-nodejs": "^5.2.0",
76
+ "@dcspark/cardano-multiplatform-lib-nodejs": "^5.3.0",
75
77
  "@lucid-evolution/core-types": "workspace:*",
76
78
  "@lucid-evolution/core-utils": "workspace:*",
77
79
  "@lucid-evolution/utils": "workspace:*"
78
80
  },
79
81
  devDependencies: {
80
- "@types/node": "^20.11.24",
82
+ "@types/node": "^20.12.8",
81
83
  tsup: "^8.0.2",
82
- typescript: "^5.3.3"
84
+ typescript: "^5.4.5"
83
85
  }
84
86
  };
85
87
 
@@ -346,7 +348,6 @@ var lucid = package_default.version;
346
348
 
347
349
  // src/kupmios.ts
348
350
  var import_utils2 = require("@lucid-evolution/utils");
349
- var CML2 = __toESM(require("@dcspark/cardano-multiplatform-lib-nodejs"), 1);
350
351
  var Kupmios = class {
351
352
  kupoUrl;
352
353
  ogmiosUrl;
@@ -544,12 +545,12 @@ var Kupmios = class {
544
545
  } else if (language === "plutus:v1") {
545
546
  return {
546
547
  type: "PlutusV1",
547
- script: CML2.PlutusV1Script.from_cbor_hex(script).to_cbor_hex()
548
+ script: CML.PlutusV1Script.from_cbor_hex(script).to_cbor_hex()
548
549
  };
549
550
  } else if (language === "plutus:v2") {
550
551
  return {
551
552
  type: "PlutusV2",
552
- script: CML2.PlutusV2Script.from_cbor_hex(script).to_cbor_hex()
553
+ script: CML.PlutusV2Script.from_cbor_hex(script).to_cbor_hex()
553
554
  };
554
555
  }
555
556
  })()
@@ -575,7 +576,6 @@ var Kupmios = class {
575
576
  };
576
577
 
577
578
  // src/maestro.ts
578
- var CML3 = __toESM(require("@dcspark/cardano-multiplatform-lib-nodejs"), 1);
579
579
  var import_utils3 = require("@lucid-evolution/utils");
580
580
  var import_core_utils2 = require("@lucid-evolution/core-utils");
581
581
  var Maestro = class {
@@ -635,9 +635,9 @@ var Maestro = class {
635
635
  return "/addresses/" + addressOrCredential;
636
636
  }
637
637
  let credentialBech32Query = "/addresses/cred/";
638
- credentialBech32Query += addressOrCredential.type === "Key" ? CML3.Ed25519KeyHash.from_hex(addressOrCredential.hash).to_bech32(
638
+ credentialBech32Query += addressOrCredential.type === "Key" ? CML.Ed25519KeyHash.from_hex(addressOrCredential.hash).to_bech32(
639
639
  "addr_vkh"
640
- ) : CML3.ScriptHash.from_hex(addressOrCredential.hash).to_bech32(
640
+ ) : CML.ScriptHash.from_hex(addressOrCredential.hash).to_bech32(
641
641
  "addr_shared_vkh"
642
642
  );
643
643
  return credentialBech32Query;
package/dist/index.js CHANGED
@@ -1,12 +1,14 @@
1
- // src/blockfrost.ts
1
+ // src/core.ts
2
2
  import * as CML from "@dcspark/cardano-multiplatform-lib-nodejs";
3
+
4
+ // src/blockfrost.ts
3
5
  import { fromHex } from "@lucid-evolution/core-utils";
4
6
  import { applyDoubleCborEncoding } from "@lucid-evolution/utils";
5
7
 
6
8
  // package.json
7
9
  var package_default = {
8
10
  name: "@lucid-evolution/provider",
9
- version: "0.1.8",
11
+ version: "0.1.10",
10
12
  description: "",
11
13
  main: "./dist/index.js",
12
14
  types: "./dist/index.d.ts",
@@ -32,15 +34,15 @@ var package_default = {
32
34
  author: "",
33
35
  license: "MIT",
34
36
  dependencies: {
35
- "@dcspark/cardano-multiplatform-lib-nodejs": "^5.2.0",
37
+ "@dcspark/cardano-multiplatform-lib-nodejs": "^5.3.0",
36
38
  "@lucid-evolution/core-types": "workspace:*",
37
39
  "@lucid-evolution/core-utils": "workspace:*",
38
40
  "@lucid-evolution/utils": "workspace:*"
39
41
  },
40
42
  devDependencies: {
41
- "@types/node": "^20.11.24",
43
+ "@types/node": "^20.12.8",
42
44
  tsup: "^8.0.2",
43
- typescript: "^5.3.3"
45
+ typescript: "^5.4.5"
44
46
  }
45
47
  };
46
48
 
@@ -307,7 +309,6 @@ var lucid = package_default.version;
307
309
 
308
310
  // src/kupmios.ts
309
311
  import { fromUnit } from "@lucid-evolution/utils";
310
- import * as CML2 from "@dcspark/cardano-multiplatform-lib-nodejs";
311
312
  var Kupmios = class {
312
313
  kupoUrl;
313
314
  ogmiosUrl;
@@ -505,12 +506,12 @@ var Kupmios = class {
505
506
  } else if (language === "plutus:v1") {
506
507
  return {
507
508
  type: "PlutusV1",
508
- script: CML2.PlutusV1Script.from_cbor_hex(script).to_cbor_hex()
509
+ script: CML.PlutusV1Script.from_cbor_hex(script).to_cbor_hex()
509
510
  };
510
511
  } else if (language === "plutus:v2") {
511
512
  return {
512
513
  type: "PlutusV2",
513
- script: CML2.PlutusV2Script.from_cbor_hex(script).to_cbor_hex()
514
+ script: CML.PlutusV2Script.from_cbor_hex(script).to_cbor_hex()
514
515
  };
515
516
  }
516
517
  })()
@@ -536,7 +537,6 @@ var Kupmios = class {
536
537
  };
537
538
 
538
539
  // src/maestro.ts
539
- import * as CML3 from "@dcspark/cardano-multiplatform-lib-nodejs";
540
540
  import { applyDoubleCborEncoding as applyDoubleCborEncoding2 } from "@lucid-evolution/utils";
541
541
  import { fromHex as fromHex2 } from "@lucid-evolution/core-utils";
542
542
  var Maestro = class {
@@ -596,9 +596,9 @@ var Maestro = class {
596
596
  return "/addresses/" + addressOrCredential;
597
597
  }
598
598
  let credentialBech32Query = "/addresses/cred/";
599
- credentialBech32Query += addressOrCredential.type === "Key" ? CML3.Ed25519KeyHash.from_hex(addressOrCredential.hash).to_bech32(
599
+ credentialBech32Query += addressOrCredential.type === "Key" ? CML.Ed25519KeyHash.from_hex(addressOrCredential.hash).to_bech32(
600
600
  "addr_vkh"
601
- ) : CML3.ScriptHash.from_hex(addressOrCredential.hash).to_bech32(
601
+ ) : CML.ScriptHash.from_hex(addressOrCredential.hash).to_bech32(
602
602
  "addr_shared_vkh"
603
603
  );
604
604
  return credentialBech32Query;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucid-evolution/provider",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -22,15 +22,15 @@
22
22
  "author": "",
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "@dcspark/cardano-multiplatform-lib-nodejs": "^5.2.0",
26
- "@lucid-evolution/core-types": "0.1.4",
27
- "@lucid-evolution/core-utils": "0.1.4",
28
- "@lucid-evolution/utils": "0.1.6"
25
+ "@dcspark/cardano-multiplatform-lib-nodejs": "^5.3.0",
26
+ "@lucid-evolution/core-types": "0.1.5",
27
+ "@lucid-evolution/core-utils": "0.1.5",
28
+ "@lucid-evolution/utils": "0.1.8"
29
29
  },
30
30
  "devDependencies": {
31
- "@types/node": "^20.11.24",
31
+ "@types/node": "^20.12.8",
32
32
  "tsup": "^8.0.2",
33
- "typescript": "^5.3.3"
33
+ "typescript": "^5.4.5"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsup-node src/index.ts --format esm,cjs --dts --clean",