@lucid-evolution/provider 0.1.93 → 0.1.94
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 +17 -1
- package/dist/index.js +17 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -52,7 +52,7 @@ var import_utils2 = 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.94",
|
|
56
56
|
description: "",
|
|
57
57
|
main: "./dist/index.js",
|
|
58
58
|
types: "./dist/index.d.ts",
|
|
@@ -1677,6 +1677,22 @@ It does not exist or was already spent.`
|
|
|
1677
1677
|
certRequests.push({ type: "Registration", rewardAddress });
|
|
1678
1678
|
break;
|
|
1679
1679
|
}
|
|
1680
|
+
case CML.CertificateKind.RegCert: {
|
|
1681
|
+
const registration = cert.as_reg_cert();
|
|
1682
|
+
const rewardAddress = CML.RewardAddress.new(
|
|
1683
|
+
CML.NetworkInfo.testnet().network_id(),
|
|
1684
|
+
registration.stake_credential()
|
|
1685
|
+
).to_address().to_bech32(void 0);
|
|
1686
|
+
const { stakeCredential } = (0, import_utils6.getAddressDetails)(rewardAddress);
|
|
1687
|
+
checkAndConsumeHash(stakeCredential, "Cert", index);
|
|
1688
|
+
if (this.chain[rewardAddress]?.registeredStake) {
|
|
1689
|
+
throw new Error(
|
|
1690
|
+
`Stake key is already registered. Reward address: ${rewardAddress}`
|
|
1691
|
+
);
|
|
1692
|
+
}
|
|
1693
|
+
certRequests.push({ type: "Registration", rewardAddress });
|
|
1694
|
+
break;
|
|
1695
|
+
}
|
|
1680
1696
|
case 1: {
|
|
1681
1697
|
const deregistration = cert.as_stake_deregistration();
|
|
1682
1698
|
const rewardAddress = CML.RewardAddress.new(
|
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.94",
|
|
15
15
|
description: "",
|
|
16
16
|
main: "./dist/index.js",
|
|
17
17
|
types: "./dist/index.d.ts",
|
|
@@ -1645,6 +1645,22 @@ It does not exist or was already spent.`
|
|
|
1645
1645
|
certRequests.push({ type: "Registration", rewardAddress });
|
|
1646
1646
|
break;
|
|
1647
1647
|
}
|
|
1648
|
+
case CML.CertificateKind.RegCert: {
|
|
1649
|
+
const registration = cert.as_reg_cert();
|
|
1650
|
+
const rewardAddress = CML.RewardAddress.new(
|
|
1651
|
+
CML.NetworkInfo.testnet().network_id(),
|
|
1652
|
+
registration.stake_credential()
|
|
1653
|
+
).to_address().to_bech32(void 0);
|
|
1654
|
+
const { stakeCredential } = getAddressDetails(rewardAddress);
|
|
1655
|
+
checkAndConsumeHash(stakeCredential, "Cert", index);
|
|
1656
|
+
if (this.chain[rewardAddress]?.registeredStake) {
|
|
1657
|
+
throw new Error(
|
|
1658
|
+
`Stake key is already registered. Reward address: ${rewardAddress}`
|
|
1659
|
+
);
|
|
1660
|
+
}
|
|
1661
|
+
certRequests.push({ type: "Registration", rewardAddress });
|
|
1662
|
+
break;
|
|
1663
|
+
}
|
|
1648
1664
|
case 1: {
|
|
1649
1665
|
const deregistration = cert.as_stake_deregistration();
|
|
1650
1666
|
const rewardAddress = CML.RewardAddress.new(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucid-evolution/provider",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.94",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@effect/schema": "^0.68.26",
|
|
32
32
|
"effect": "^3.11.7",
|
|
33
33
|
"@lucid-evolution/core-types": "0.1.24",
|
|
34
|
-
"@lucid-evolution/utils": "0.1.68",
|
|
35
34
|
"@lucid-evolution/core-utils": "0.1.16",
|
|
35
|
+
"@lucid-evolution/utils": "0.1.68",
|
|
36
36
|
"@lucid-evolution/wallet": "0.1.74"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|