@meshsdk/transaction 1.9.0-beta.81 → 1.9.0-beta.83
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 +16 -16
- package/dist/index.js +16 -16
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -4904,28 +4904,28 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
|
|
|
4904
4904
|
getVoteRequiredSignatures() {
|
|
4905
4905
|
const voteCreds = /* @__PURE__ */ new Set();
|
|
4906
4906
|
for (let vote of this.meshTxBuilderBody.votes) {
|
|
4907
|
-
if (vote.type
|
|
4907
|
+
if (vote.type === "SimpleScriptVote") {
|
|
4908
4908
|
const nativeScript = this.getVoteNativeScript(vote);
|
|
4909
4909
|
if (nativeScript) {
|
|
4910
4910
|
let pubKeys = this.getNativeScriptPubKeys(nativeScript);
|
|
4911
4911
|
for (let pubKey of pubKeys) {
|
|
4912
4912
|
voteCreds.add(pubKey);
|
|
4913
4913
|
}
|
|
4914
|
-
}
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
}
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4914
|
+
}
|
|
4915
|
+
} else if (vote.type === "BasicVote") {
|
|
4916
|
+
const voter = vote.vote.voter;
|
|
4917
|
+
if (voter.type === "DRep") {
|
|
4918
|
+
const drep = (0, import_core_cst3.toDRep)(voter.drepId);
|
|
4919
|
+
const keyHash = drep.toKeyHash();
|
|
4920
|
+
if (keyHash) {
|
|
4921
|
+
voteCreds.add(keyHash);
|
|
4922
|
+
}
|
|
4923
|
+
} else if (voter.type === "StakingPool") {
|
|
4924
|
+
voteCreds.add(voter.keyHash);
|
|
4925
|
+
} else if (voter.type === "ConstitutionalCommittee") {
|
|
4926
|
+
const hotCred = voter.hotCred;
|
|
4927
|
+
if (hotCred.type === "KeyHash") {
|
|
4928
|
+
voteCreds.add(hotCred.keyHash);
|
|
4929
4929
|
}
|
|
4930
4930
|
}
|
|
4931
4931
|
}
|
package/dist/index.js
CHANGED
|
@@ -4881,28 +4881,28 @@ var MeshTxBuilder = class _MeshTxBuilder extends MeshTxBuilderCore {
|
|
|
4881
4881
|
getVoteRequiredSignatures() {
|
|
4882
4882
|
const voteCreds = /* @__PURE__ */ new Set();
|
|
4883
4883
|
for (let vote of this.meshTxBuilderBody.votes) {
|
|
4884
|
-
if (vote.type
|
|
4884
|
+
if (vote.type === "SimpleScriptVote") {
|
|
4885
4885
|
const nativeScript = this.getVoteNativeScript(vote);
|
|
4886
4886
|
if (nativeScript) {
|
|
4887
4887
|
let pubKeys = this.getNativeScriptPubKeys(nativeScript);
|
|
4888
4888
|
for (let pubKey of pubKeys) {
|
|
4889
4889
|
voteCreds.add(pubKey);
|
|
4890
4890
|
}
|
|
4891
|
-
}
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
}
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4891
|
+
}
|
|
4892
|
+
} else if (vote.type === "BasicVote") {
|
|
4893
|
+
const voter = vote.vote.voter;
|
|
4894
|
+
if (voter.type === "DRep") {
|
|
4895
|
+
const drep = coreToCstDRep(voter.drepId);
|
|
4896
|
+
const keyHash = drep.toKeyHash();
|
|
4897
|
+
if (keyHash) {
|
|
4898
|
+
voteCreds.add(keyHash);
|
|
4899
|
+
}
|
|
4900
|
+
} else if (voter.type === "StakingPool") {
|
|
4901
|
+
voteCreds.add(voter.keyHash);
|
|
4902
|
+
} else if (voter.type === "ConstitutionalCommittee") {
|
|
4903
|
+
const hotCred = voter.hotCred;
|
|
4904
|
+
if (hotCred.type === "KeyHash") {
|
|
4905
|
+
voteCreds.add(hotCred.keyHash);
|
|
4906
4906
|
}
|
|
4907
4907
|
}
|
|
4908
4908
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/transaction",
|
|
3
|
-
"version": "1.9.0-beta.
|
|
3
|
+
"version": "1.9.0-beta.83",
|
|
4
4
|
"description": "Transactions - https://meshjs.dev/apis/transaction",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"browser": "./dist/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"typescript": "^5.3.3"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@meshsdk/common": "1.9.0-beta.
|
|
39
|
-
"@meshsdk/core-cst": "1.9.0-beta.
|
|
38
|
+
"@meshsdk/common": "1.9.0-beta.83",
|
|
39
|
+
"@meshsdk/core-cst": "1.9.0-beta.83",
|
|
40
40
|
"@cardano-sdk/core": "^0.45.5",
|
|
41
41
|
"@cardano-sdk/util": "^0.15.5",
|
|
42
42
|
"@cardano-sdk/input-selection": "^0.13.33",
|