@lucid-evolution/provider 0.1.61 → 0.1.63
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 +11 -23
- package/dist/index.js +12 -23
- package/package.json +4 -4
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.
|
|
55
|
+
version: "0.1.63",
|
|
56
56
|
description: "",
|
|
57
57
|
main: "./dist/index.js",
|
|
58
58
|
types: "./dist/index.d.ts",
|
|
@@ -554,7 +554,14 @@ var Delegation = S.NullOr(
|
|
|
554
554
|
);
|
|
555
555
|
var RedeemerSchema = S.Struct({
|
|
556
556
|
validator: S.Struct({
|
|
557
|
-
purpose: S.
|
|
557
|
+
purpose: S.Literal(
|
|
558
|
+
"spend",
|
|
559
|
+
"mint",
|
|
560
|
+
"publish",
|
|
561
|
+
"withdraw",
|
|
562
|
+
"vote",
|
|
563
|
+
"propose"
|
|
564
|
+
),
|
|
558
565
|
index: S.Int
|
|
559
566
|
}),
|
|
560
567
|
budget: S.Struct({
|
|
@@ -1004,7 +1011,6 @@ var import_utils4 = require("@lucid-evolution/utils");
|
|
|
1004
1011
|
var import_utils5 = require("@lucid-evolution/utils");
|
|
1005
1012
|
var import_core_utils2 = require("@lucid-evolution/core-utils");
|
|
1006
1013
|
var import_wallet = require("@lucid-evolution/wallet");
|
|
1007
|
-
var import_cardano_multiplatform_lib_nodejs = require("@anastasia-labs/cardano-multiplatform-lib-nodejs");
|
|
1008
1014
|
async function generateEmulatorAccountFrommPrivateKey(assets) {
|
|
1009
1015
|
const privateKey = CML.PrivateKey.generate_ed25519().to_bech32();
|
|
1010
1016
|
const priv = CML.PrivateKey.from_bech32(privateKey);
|
|
@@ -1659,7 +1665,7 @@ It does not exist or was already spent.`
|
|
|
1659
1665
|
steps: Number(legacyRedeemer.ex_units().steps())
|
|
1660
1666
|
},
|
|
1661
1667
|
redeemer_index: Number(legacyRedeemer.index()),
|
|
1662
|
-
redeemer_tag:
|
|
1668
|
+
redeemer_tag: (0, import_utils4.fromCMLRedeemerTag)(legacyRedeemer.tag())
|
|
1663
1669
|
});
|
|
1664
1670
|
}
|
|
1665
1671
|
return evalRedeemers;
|
|
@@ -1677,7 +1683,7 @@ It does not exist or was already spent.`
|
|
|
1677
1683
|
steps: Number(redeemerVal.ex_units().steps())
|
|
1678
1684
|
},
|
|
1679
1685
|
redeemer_index: Number(key.index),
|
|
1680
|
-
redeemer_tag:
|
|
1686
|
+
redeemer_tag: (0, import_utils4.fromCMLRedeemerTag)(key.tag())
|
|
1681
1687
|
});
|
|
1682
1688
|
}
|
|
1683
1689
|
}
|
|
@@ -1751,24 +1757,6 @@ ${"\u2581".repeat(60)}
|
|
|
1751
1757
|
}
|
|
1752
1758
|
}
|
|
1753
1759
|
};
|
|
1754
|
-
function redeemerTagToString(tag) {
|
|
1755
|
-
switch (tag) {
|
|
1756
|
-
case import_cardano_multiplatform_lib_nodejs.RedeemerTag.Spend:
|
|
1757
|
-
return "spend";
|
|
1758
|
-
case import_cardano_multiplatform_lib_nodejs.RedeemerTag.Mint:
|
|
1759
|
-
return "mint";
|
|
1760
|
-
case import_cardano_multiplatform_lib_nodejs.RedeemerTag.Cert:
|
|
1761
|
-
return "cert";
|
|
1762
|
-
case import_cardano_multiplatform_lib_nodejs.RedeemerTag.Reward:
|
|
1763
|
-
return "reward";
|
|
1764
|
-
case import_cardano_multiplatform_lib_nodejs.RedeemerTag.Voting:
|
|
1765
|
-
return "voting";
|
|
1766
|
-
case import_cardano_multiplatform_lib_nodejs.RedeemerTag.Proposing:
|
|
1767
|
-
return "proposing";
|
|
1768
|
-
default:
|
|
1769
|
-
return "unknown";
|
|
1770
|
-
}
|
|
1771
|
-
}
|
|
1772
1760
|
|
|
1773
1761
|
// src/maestro.ts
|
|
1774
1762
|
var import_utils6 = require("@lucid-evolution/utils");
|
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.
|
|
14
|
+
version: "0.1.63",
|
|
15
15
|
description: "",
|
|
16
16
|
main: "./dist/index.js",
|
|
17
17
|
types: "./dist/index.d.ts",
|
|
@@ -517,7 +517,14 @@ var Delegation = S.NullOr(
|
|
|
517
517
|
);
|
|
518
518
|
var RedeemerSchema = S.Struct({
|
|
519
519
|
validator: S.Struct({
|
|
520
|
-
purpose: S.
|
|
520
|
+
purpose: S.Literal(
|
|
521
|
+
"spend",
|
|
522
|
+
"mint",
|
|
523
|
+
"publish",
|
|
524
|
+
"withdraw",
|
|
525
|
+
"vote",
|
|
526
|
+
"propose"
|
|
527
|
+
),
|
|
521
528
|
index: S.Int
|
|
522
529
|
}),
|
|
523
530
|
budget: S.Struct({
|
|
@@ -964,13 +971,13 @@ var kupmiosUtxosToUtxos = (kupoURL, utxos) => Effect.forEach(
|
|
|
964
971
|
|
|
965
972
|
// src/emulator.ts
|
|
966
973
|
import {
|
|
974
|
+
fromCMLRedeemerTag,
|
|
967
975
|
generateSeedPhrase,
|
|
968
976
|
PROTOCOL_PARAMETERS_DEFAULT
|
|
969
977
|
} from "@lucid-evolution/utils";
|
|
970
978
|
import { coreToUtxo, getAddressDetails } from "@lucid-evolution/utils";
|
|
971
979
|
import { fromHex as fromHex2 } from "@lucid-evolution/core-utils";
|
|
972
980
|
import { walletFromSeed } from "@lucid-evolution/wallet";
|
|
973
|
-
import { RedeemerTag } from "@anastasia-labs/cardano-multiplatform-lib-nodejs";
|
|
974
981
|
async function generateEmulatorAccountFrommPrivateKey(assets) {
|
|
975
982
|
const privateKey = CML.PrivateKey.generate_ed25519().to_bech32();
|
|
976
983
|
const priv = CML.PrivateKey.from_bech32(privateKey);
|
|
@@ -1625,7 +1632,7 @@ It does not exist or was already spent.`
|
|
|
1625
1632
|
steps: Number(legacyRedeemer.ex_units().steps())
|
|
1626
1633
|
},
|
|
1627
1634
|
redeemer_index: Number(legacyRedeemer.index()),
|
|
1628
|
-
redeemer_tag:
|
|
1635
|
+
redeemer_tag: fromCMLRedeemerTag(legacyRedeemer.tag())
|
|
1629
1636
|
});
|
|
1630
1637
|
}
|
|
1631
1638
|
return evalRedeemers;
|
|
@@ -1643,7 +1650,7 @@ It does not exist or was already spent.`
|
|
|
1643
1650
|
steps: Number(redeemerVal.ex_units().steps())
|
|
1644
1651
|
},
|
|
1645
1652
|
redeemer_index: Number(key.index),
|
|
1646
|
-
redeemer_tag:
|
|
1653
|
+
redeemer_tag: fromCMLRedeemerTag(key.tag())
|
|
1647
1654
|
});
|
|
1648
1655
|
}
|
|
1649
1656
|
}
|
|
@@ -1717,24 +1724,6 @@ ${"\u2581".repeat(60)}
|
|
|
1717
1724
|
}
|
|
1718
1725
|
}
|
|
1719
1726
|
};
|
|
1720
|
-
function redeemerTagToString(tag) {
|
|
1721
|
-
switch (tag) {
|
|
1722
|
-
case RedeemerTag.Spend:
|
|
1723
|
-
return "spend";
|
|
1724
|
-
case RedeemerTag.Mint:
|
|
1725
|
-
return "mint";
|
|
1726
|
-
case RedeemerTag.Cert:
|
|
1727
|
-
return "cert";
|
|
1728
|
-
case RedeemerTag.Reward:
|
|
1729
|
-
return "reward";
|
|
1730
|
-
case RedeemerTag.Voting:
|
|
1731
|
-
return "voting";
|
|
1732
|
-
case RedeemerTag.Proposing:
|
|
1733
|
-
return "proposing";
|
|
1734
|
-
default:
|
|
1735
|
-
return "unknown";
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1738
1727
|
|
|
1739
1728
|
// src/maestro.ts
|
|
1740
1729
|
import {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucid-evolution/provider",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.63",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@effect/platform": "^0.59.2",
|
|
31
31
|
"@effect/schema": "^0.68.26",
|
|
32
32
|
"effect": "^3.5.6",
|
|
33
|
-
"@lucid-evolution/core-types": "0.1.
|
|
33
|
+
"@lucid-evolution/core-types": "0.1.21",
|
|
34
34
|
"@lucid-evolution/core-utils": "0.1.16",
|
|
35
|
-
"@lucid-evolution/utils": "0.1.
|
|
36
|
-
"@lucid-evolution/wallet": "0.1.
|
|
35
|
+
"@lucid-evolution/utils": "0.1.48",
|
|
36
|
+
"@lucid-evolution/wallet": "0.1.54"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^20.12.8",
|