@iconlake/client 0.4.0 → 0.5.0
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.iife.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +294 -294
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
- package/types/cosmos.authz.v1beta1/module.d.ts +10 -10
- package/types/cosmos.bank.v1beta1/module.d.ts +10 -10
- package/types/cosmos.distribution.v1beta1/module.d.ts +21 -21
- package/types/cosmos.gov.v1/module.d.ts +12 -12
- package/types/cosmos.gov.v1beta1/module.d.ts +12 -12
- package/types/cosmos.group.v1/module.d.ts +79 -79
- package/types/cosmos.staking.v1beta1/module.d.ts +21 -21
- package/types/cosmos.upgrade.v1beta1/module.d.ts +10 -10
- package/types/cosmos.vesting.v1beta1/module.d.ts +11 -11
- package/types/iconlake.icon/module.d.ts +15 -15
- package/types/index.d.ts +133 -133
package/dist/index.mjs
CHANGED
|
@@ -67915,9 +67915,9 @@ function isSet$1N(e) {
|
|
|
67915
67915
|
return e != null;
|
|
67916
67916
|
}
|
|
67917
67917
|
const msgTypes$r = [
|
|
67918
|
-
["/cosmos.authz.v1beta1.MsgRevoke", MsgRevoke],
|
|
67919
67918
|
["/cosmos.authz.v1beta1.MsgGrant", MsgGrant],
|
|
67920
|
-
["/cosmos.authz.v1beta1.MsgExec", MsgExec$1]
|
|
67919
|
+
["/cosmos.authz.v1beta1.MsgExec", MsgExec$1],
|
|
67920
|
+
["/cosmos.authz.v1beta1.MsgRevoke", MsgRevoke]
|
|
67921
67921
|
];
|
|
67922
67922
|
let HttpClient$r = class {
|
|
67923
67923
|
constructor({ securityWorker: t, secure: n, format: p, ...u } = {}) {
|
|
@@ -68098,17 +68098,6 @@ const defaultFee$f = {
|
|
|
68098
68098
|
amount: [],
|
|
68099
68099
|
gas: "200000"
|
|
68100
68100
|
}, txClient$r = ({ signer: e, prefix: t, addr: n } = { addr: "http://localhost:26657", prefix: "cosmos" }) => ({
|
|
68101
|
-
async sendMsgRevoke({ value: p, fee: u, memo: g }) {
|
|
68102
|
-
if (!e)
|
|
68103
|
-
throw new Error("TxClient:sendMsgRevoke: Unable to sign Tx. Signer is not present.");
|
|
68104
|
-
try {
|
|
68105
|
-
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$g, prefix: t });
|
|
68106
|
-
let N = this.msgRevoke({ value: MsgRevoke.fromPartial(p) });
|
|
68107
|
-
return await P.signAndBroadcast(y, [N], u || defaultFee$f, g);
|
|
68108
|
-
} catch (y) {
|
|
68109
|
-
throw new Error("TxClient:sendMsgRevoke: Could not broadcast Tx: " + y.message);
|
|
68110
|
-
}
|
|
68111
|
-
},
|
|
68112
68101
|
async sendMsgGrant({ value: p, fee: u, memo: g }) {
|
|
68113
68102
|
if (!e)
|
|
68114
68103
|
throw new Error("TxClient:sendMsgGrant: Unable to sign Tx. Signer is not present.");
|
|
@@ -68131,11 +68120,15 @@ const defaultFee$f = {
|
|
|
68131
68120
|
throw new Error("TxClient:sendMsgExec: Could not broadcast Tx: " + y.message);
|
|
68132
68121
|
}
|
|
68133
68122
|
},
|
|
68134
|
-
|
|
68123
|
+
async sendMsgRevoke({ value: p, fee: u, memo: g }) {
|
|
68124
|
+
if (!e)
|
|
68125
|
+
throw new Error("TxClient:sendMsgRevoke: Unable to sign Tx. Signer is not present.");
|
|
68135
68126
|
try {
|
|
68136
|
-
|
|
68137
|
-
|
|
68138
|
-
|
|
68127
|
+
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$g, prefix: t });
|
|
68128
|
+
let N = this.msgRevoke({ value: MsgRevoke.fromPartial(p) });
|
|
68129
|
+
return await P.signAndBroadcast(y, [N], u || defaultFee$f, g);
|
|
68130
|
+
} catch (y) {
|
|
68131
|
+
throw new Error("TxClient:sendMsgRevoke: Could not broadcast Tx: " + y.message);
|
|
68139
68132
|
}
|
|
68140
68133
|
},
|
|
68141
68134
|
msgGrant({ value: p }) {
|
|
@@ -68151,6 +68144,13 @@ const defaultFee$f = {
|
|
|
68151
68144
|
} catch (u) {
|
|
68152
68145
|
throw new Error("TxClient:MsgExec: Could not create message: " + u.message);
|
|
68153
68146
|
}
|
|
68147
|
+
},
|
|
68148
|
+
msgRevoke({ value: p }) {
|
|
68149
|
+
try {
|
|
68150
|
+
return { typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", value: MsgRevoke.fromPartial(p) };
|
|
68151
|
+
} catch (u) {
|
|
68152
|
+
throw new Error("TxClient:MsgRevoke: Could not create message: " + u.message);
|
|
68153
|
+
}
|
|
68154
68154
|
}
|
|
68155
68155
|
}), queryClient$r = ({ addr: e } = { addr: "http://localhost:1317" }) => new Api$r({ baseURL: e });
|
|
68156
68156
|
let SDKModule$r = class {
|
|
@@ -68670,8 +68670,8 @@ function isSet$1J(e) {
|
|
|
68670
68670
|
return e != null;
|
|
68671
68671
|
}
|
|
68672
68672
|
const msgTypes$q = [
|
|
68673
|
-
["/cosmos.bank.v1beta1.
|
|
68674
|
-
["/cosmos.bank.v1beta1.
|
|
68673
|
+
["/cosmos.bank.v1beta1.MsgSend", MsgSend],
|
|
68674
|
+
["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend]
|
|
68675
68675
|
];
|
|
68676
68676
|
let HttpClient$q = class {
|
|
68677
68677
|
constructor({ securityWorker: t, secure: n, format: p, ...u } = {}) {
|
|
@@ -68956,40 +68956,40 @@ const defaultFee$e = {
|
|
|
68956
68956
|
amount: [],
|
|
68957
68957
|
gas: "200000"
|
|
68958
68958
|
}, txClient$q = ({ signer: e, prefix: t, addr: n } = { addr: "http://localhost:26657", prefix: "cosmos" }) => ({
|
|
68959
|
-
async
|
|
68959
|
+
async sendMsgSend({ value: p, fee: u, memo: g }) {
|
|
68960
68960
|
if (!e)
|
|
68961
|
-
throw new Error("TxClient:
|
|
68961
|
+
throw new Error("TxClient:sendMsgSend: Unable to sign Tx. Signer is not present.");
|
|
68962
68962
|
try {
|
|
68963
68963
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$f, prefix: t });
|
|
68964
|
-
let N = this.
|
|
68964
|
+
let N = this.msgSend({ value: MsgSend.fromPartial(p) });
|
|
68965
68965
|
return await P.signAndBroadcast(y, [N], u || defaultFee$e, g);
|
|
68966
68966
|
} catch (y) {
|
|
68967
|
-
throw new Error("TxClient:
|
|
68967
|
+
throw new Error("TxClient:sendMsgSend: Could not broadcast Tx: " + y.message);
|
|
68968
68968
|
}
|
|
68969
68969
|
},
|
|
68970
|
-
async
|
|
68970
|
+
async sendMsgMultiSend({ value: p, fee: u, memo: g }) {
|
|
68971
68971
|
if (!e)
|
|
68972
|
-
throw new Error("TxClient:
|
|
68972
|
+
throw new Error("TxClient:sendMsgMultiSend: Unable to sign Tx. Signer is not present.");
|
|
68973
68973
|
try {
|
|
68974
68974
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$f, prefix: t });
|
|
68975
|
-
let N = this.
|
|
68975
|
+
let N = this.msgMultiSend({ value: MsgMultiSend.fromPartial(p) });
|
|
68976
68976
|
return await P.signAndBroadcast(y, [N], u || defaultFee$e, g);
|
|
68977
68977
|
} catch (y) {
|
|
68978
|
-
throw new Error("TxClient:
|
|
68978
|
+
throw new Error("TxClient:sendMsgMultiSend: Could not broadcast Tx: " + y.message);
|
|
68979
68979
|
}
|
|
68980
68980
|
},
|
|
68981
|
-
|
|
68981
|
+
msgSend({ value: p }) {
|
|
68982
68982
|
try {
|
|
68983
|
-
return { typeUrl: "/cosmos.bank.v1beta1.
|
|
68983
|
+
return { typeUrl: "/cosmos.bank.v1beta1.MsgSend", value: MsgSend.fromPartial(p) };
|
|
68984
68984
|
} catch (u) {
|
|
68985
|
-
throw new Error("TxClient:
|
|
68985
|
+
throw new Error("TxClient:MsgSend: Could not create message: " + u.message);
|
|
68986
68986
|
}
|
|
68987
68987
|
},
|
|
68988
|
-
|
|
68988
|
+
msgMultiSend({ value: p }) {
|
|
68989
68989
|
try {
|
|
68990
|
-
return { typeUrl: "/cosmos.bank.v1beta1.
|
|
68990
|
+
return { typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", value: MsgMultiSend.fromPartial(p) };
|
|
68991
68991
|
} catch (u) {
|
|
68992
|
-
throw new Error("TxClient:
|
|
68992
|
+
throw new Error("TxClient:MsgMultiSend: Could not create message: " + u.message);
|
|
68993
68993
|
}
|
|
68994
68994
|
}
|
|
68995
68995
|
}), queryClient$q = ({ addr: e } = { addr: "http://localhost:1317" }) => new Api$q({ baseURL: e });
|
|
@@ -72616,12 +72616,12 @@ function isSet$1q(e) {
|
|
|
72616
72616
|
return e != null;
|
|
72617
72617
|
}
|
|
72618
72618
|
const msgTypes$l = [
|
|
72619
|
+
["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool],
|
|
72619
72620
|
["/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", MsgCommunityPoolSpend],
|
|
72620
72621
|
["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward],
|
|
72622
|
+
["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission],
|
|
72621
72623
|
["/cosmos.distribution.v1beta1.MsgUpdateParams", MsgUpdateParams$1],
|
|
72622
|
-
["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress]
|
|
72623
|
-
["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool],
|
|
72624
|
-
["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission]
|
|
72624
|
+
["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress]
|
|
72625
72625
|
];
|
|
72626
72626
|
let HttpClient$l = class {
|
|
72627
72627
|
constructor({ securityWorker: t, secure: n, format: p, ...u } = {}) {
|
|
@@ -73074,6 +73074,17 @@ const defaultFee$b = {
|
|
|
73074
73074
|
amount: [],
|
|
73075
73075
|
gas: "200000"
|
|
73076
73076
|
}, txClient$l = ({ signer: e, prefix: t, addr: n } = { addr: "http://localhost:26657", prefix: "cosmos" }) => ({
|
|
73077
|
+
async sendMsgFundCommunityPool({ value: p, fee: u, memo: g }) {
|
|
73078
|
+
if (!e)
|
|
73079
|
+
throw new Error("TxClient:sendMsgFundCommunityPool: Unable to sign Tx. Signer is not present.");
|
|
73080
|
+
try {
|
|
73081
|
+
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$c, prefix: t });
|
|
73082
|
+
let N = this.msgFundCommunityPool({ value: MsgFundCommunityPool.fromPartial(p) });
|
|
73083
|
+
return await P.signAndBroadcast(y, [N], u || defaultFee$b, g);
|
|
73084
|
+
} catch (y) {
|
|
73085
|
+
throw new Error("TxClient:sendMsgFundCommunityPool: Could not broadcast Tx: " + y.message);
|
|
73086
|
+
}
|
|
73087
|
+
},
|
|
73077
73088
|
async sendMsgCommunityPoolSpend({ value: p, fee: u, memo: g }) {
|
|
73078
73089
|
if (!e)
|
|
73079
73090
|
throw new Error("TxClient:sendMsgCommunityPoolSpend: Unable to sign Tx. Signer is not present.");
|
|
@@ -73096,6 +73107,17 @@ const defaultFee$b = {
|
|
|
73096
73107
|
throw new Error("TxClient:sendMsgWithdrawDelegatorReward: Could not broadcast Tx: " + y.message);
|
|
73097
73108
|
}
|
|
73098
73109
|
},
|
|
73110
|
+
async sendMsgWithdrawValidatorCommission({ value: p, fee: u, memo: g }) {
|
|
73111
|
+
if (!e)
|
|
73112
|
+
throw new Error("TxClient:sendMsgWithdrawValidatorCommission: Unable to sign Tx. Signer is not present.");
|
|
73113
|
+
try {
|
|
73114
|
+
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$c, prefix: t });
|
|
73115
|
+
let N = this.msgWithdrawValidatorCommission({ value: MsgWithdrawValidatorCommission.fromPartial(p) });
|
|
73116
|
+
return await P.signAndBroadcast(y, [N], u || defaultFee$b, g);
|
|
73117
|
+
} catch (y) {
|
|
73118
|
+
throw new Error("TxClient:sendMsgWithdrawValidatorCommission: Could not broadcast Tx: " + y.message);
|
|
73119
|
+
}
|
|
73120
|
+
},
|
|
73099
73121
|
async sendMsgUpdateParams({ value: p, fee: u, memo: g }) {
|
|
73100
73122
|
if (!e)
|
|
73101
73123
|
throw new Error("TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.");
|
|
@@ -73118,26 +73140,11 @@ const defaultFee$b = {
|
|
|
73118
73140
|
throw new Error("TxClient:sendMsgSetWithdrawAddress: Could not broadcast Tx: " + y.message);
|
|
73119
73141
|
}
|
|
73120
73142
|
},
|
|
73121
|
-
|
|
73122
|
-
if (!e)
|
|
73123
|
-
throw new Error("TxClient:sendMsgFundCommunityPool: Unable to sign Tx. Signer is not present.");
|
|
73124
|
-
try {
|
|
73125
|
-
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$c, prefix: t });
|
|
73126
|
-
let N = this.msgFundCommunityPool({ value: MsgFundCommunityPool.fromPartial(p) });
|
|
73127
|
-
return await P.signAndBroadcast(y, [N], u || defaultFee$b, g);
|
|
73128
|
-
} catch (y) {
|
|
73129
|
-
throw new Error("TxClient:sendMsgFundCommunityPool: Could not broadcast Tx: " + y.message);
|
|
73130
|
-
}
|
|
73131
|
-
},
|
|
73132
|
-
async sendMsgWithdrawValidatorCommission({ value: p, fee: u, memo: g }) {
|
|
73133
|
-
if (!e)
|
|
73134
|
-
throw new Error("TxClient:sendMsgWithdrawValidatorCommission: Unable to sign Tx. Signer is not present.");
|
|
73143
|
+
msgFundCommunityPool({ value: p }) {
|
|
73135
73144
|
try {
|
|
73136
|
-
|
|
73137
|
-
|
|
73138
|
-
|
|
73139
|
-
} catch (y) {
|
|
73140
|
-
throw new Error("TxClient:sendMsgWithdrawValidatorCommission: Could not broadcast Tx: " + y.message);
|
|
73145
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: MsgFundCommunityPool.fromPartial(p) };
|
|
73146
|
+
} catch (u) {
|
|
73147
|
+
throw new Error("TxClient:MsgFundCommunityPool: Could not create message: " + u.message);
|
|
73141
73148
|
}
|
|
73142
73149
|
},
|
|
73143
73150
|
msgCommunityPoolSpend({ value: p }) {
|
|
@@ -73154,6 +73161,13 @@ const defaultFee$b = {
|
|
|
73154
73161
|
throw new Error("TxClient:MsgWithdrawDelegatorReward: Could not create message: " + u.message);
|
|
73155
73162
|
}
|
|
73156
73163
|
},
|
|
73164
|
+
msgWithdrawValidatorCommission({ value: p }) {
|
|
73165
|
+
try {
|
|
73166
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: MsgWithdrawValidatorCommission.fromPartial(p) };
|
|
73167
|
+
} catch (u) {
|
|
73168
|
+
throw new Error("TxClient:MsgWithdrawValidatorCommission: Could not create message: " + u.message);
|
|
73169
|
+
}
|
|
73170
|
+
},
|
|
73157
73171
|
msgUpdateParams({ value: p }) {
|
|
73158
73172
|
try {
|
|
73159
73173
|
return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams", value: MsgUpdateParams$1.fromPartial(p) };
|
|
@@ -73167,20 +73181,6 @@ const defaultFee$b = {
|
|
|
73167
73181
|
} catch (u) {
|
|
73168
73182
|
throw new Error("TxClient:MsgSetWithdrawAddress: Could not create message: " + u.message);
|
|
73169
73183
|
}
|
|
73170
|
-
},
|
|
73171
|
-
msgFundCommunityPool({ value: p }) {
|
|
73172
|
-
try {
|
|
73173
|
-
return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: MsgFundCommunityPool.fromPartial(p) };
|
|
73174
|
-
} catch (u) {
|
|
73175
|
-
throw new Error("TxClient:MsgFundCommunityPool: Could not create message: " + u.message);
|
|
73176
|
-
}
|
|
73177
|
-
},
|
|
73178
|
-
msgWithdrawValidatorCommission({ value: p }) {
|
|
73179
|
-
try {
|
|
73180
|
-
return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: MsgWithdrawValidatorCommission.fromPartial(p) };
|
|
73181
|
-
} catch (u) {
|
|
73182
|
-
throw new Error("TxClient:MsgWithdrawValidatorCommission: Could not create message: " + u.message);
|
|
73183
|
-
}
|
|
73184
73184
|
}
|
|
73185
73185
|
}), queryClient$l = ({ addr: e } = { addr: "http://localhost:1317" }) => new Api$l({ baseURL: e });
|
|
73186
73186
|
let SDKModule$l = class {
|
|
@@ -75486,9 +75486,9 @@ function isSet$19(e) {
|
|
|
75486
75486
|
const msgTypes$i = [
|
|
75487
75487
|
["/cosmos.gov.v1.MsgVote", MsgVote$2],
|
|
75488
75488
|
["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted$1],
|
|
75489
|
+
["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal$2],
|
|
75489
75490
|
["/cosmos.gov.v1.MsgUpdateParams", MsgUpdateParams],
|
|
75490
|
-
["/cosmos.gov.v1.MsgDeposit", MsgDeposit$1]
|
|
75491
|
-
["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal$2]
|
|
75491
|
+
["/cosmos.gov.v1.MsgDeposit", MsgDeposit$1]
|
|
75492
75492
|
];
|
|
75493
75493
|
let HttpClient$i = class {
|
|
75494
75494
|
constructor({ securityWorker: t, secure: n, format: p, ...u } = {}) {
|
|
@@ -75621,6 +75621,17 @@ const defaultFee$8 = {
|
|
|
75621
75621
|
throw new Error("TxClient:sendMsgVoteWeighted: Could not broadcast Tx: " + y.message);
|
|
75622
75622
|
}
|
|
75623
75623
|
},
|
|
75624
|
+
async sendMsgSubmitProposal({ value: p, fee: u, memo: g }) {
|
|
75625
|
+
if (!e)
|
|
75626
|
+
throw new Error("TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.");
|
|
75627
|
+
try {
|
|
75628
|
+
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$9, prefix: t });
|
|
75629
|
+
let N = this.msgSubmitProposal({ value: MsgSubmitProposal$2.fromPartial(p) });
|
|
75630
|
+
return await P.signAndBroadcast(y, [N], u || defaultFee$8, g);
|
|
75631
|
+
} catch (y) {
|
|
75632
|
+
throw new Error("TxClient:sendMsgSubmitProposal: Could not broadcast Tx: " + y.message);
|
|
75633
|
+
}
|
|
75634
|
+
},
|
|
75624
75635
|
async sendMsgUpdateParams({ value: p, fee: u, memo: g }) {
|
|
75625
75636
|
if (!e)
|
|
75626
75637
|
throw new Error("TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.");
|
|
@@ -75643,17 +75654,6 @@ const defaultFee$8 = {
|
|
|
75643
75654
|
throw new Error("TxClient:sendMsgDeposit: Could not broadcast Tx: " + y.message);
|
|
75644
75655
|
}
|
|
75645
75656
|
},
|
|
75646
|
-
async sendMsgSubmitProposal({ value: p, fee: u, memo: g }) {
|
|
75647
|
-
if (!e)
|
|
75648
|
-
throw new Error("TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.");
|
|
75649
|
-
try {
|
|
75650
|
-
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$9, prefix: t });
|
|
75651
|
-
let N = this.msgSubmitProposal({ value: MsgSubmitProposal$2.fromPartial(p) });
|
|
75652
|
-
return await P.signAndBroadcast(y, [N], u || defaultFee$8, g);
|
|
75653
|
-
} catch (y) {
|
|
75654
|
-
throw new Error("TxClient:sendMsgSubmitProposal: Could not broadcast Tx: " + y.message);
|
|
75655
|
-
}
|
|
75656
|
-
},
|
|
75657
75657
|
msgVote({ value: p }) {
|
|
75658
75658
|
try {
|
|
75659
75659
|
return { typeUrl: "/cosmos.gov.v1.MsgVote", value: MsgVote$2.fromPartial(p) };
|
|
@@ -75668,6 +75668,13 @@ const defaultFee$8 = {
|
|
|
75668
75668
|
throw new Error("TxClient:MsgVoteWeighted: Could not create message: " + u.message);
|
|
75669
75669
|
}
|
|
75670
75670
|
},
|
|
75671
|
+
msgSubmitProposal({ value: p }) {
|
|
75672
|
+
try {
|
|
75673
|
+
return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", value: MsgSubmitProposal$2.fromPartial(p) };
|
|
75674
|
+
} catch (u) {
|
|
75675
|
+
throw new Error("TxClient:MsgSubmitProposal: Could not create message: " + u.message);
|
|
75676
|
+
}
|
|
75677
|
+
},
|
|
75671
75678
|
msgUpdateParams({ value: p }) {
|
|
75672
75679
|
try {
|
|
75673
75680
|
return { typeUrl: "/cosmos.gov.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(p) };
|
|
@@ -75681,13 +75688,6 @@ const defaultFee$8 = {
|
|
|
75681
75688
|
} catch (u) {
|
|
75682
75689
|
throw new Error("TxClient:MsgDeposit: Could not create message: " + u.message);
|
|
75683
75690
|
}
|
|
75684
|
-
},
|
|
75685
|
-
msgSubmitProposal({ value: p }) {
|
|
75686
|
-
try {
|
|
75687
|
-
return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", value: MsgSubmitProposal$2.fromPartial(p) };
|
|
75688
|
-
} catch (u) {
|
|
75689
|
-
throw new Error("TxClient:MsgSubmitProposal: Could not create message: " + u.message);
|
|
75690
|
-
}
|
|
75691
75691
|
}
|
|
75692
75692
|
}), queryClient$i = ({ addr: e } = { addr: "http://localhost:1317" }) => new Api$i({ baseURL: e });
|
|
75693
75693
|
let SDKModule$i = class {
|
|
@@ -76773,9 +76773,9 @@ function isSet$13(e) {
|
|
|
76773
76773
|
}
|
|
76774
76774
|
const msgTypes$h = [
|
|
76775
76775
|
["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal$1],
|
|
76776
|
-
["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit],
|
|
76777
76776
|
["/cosmos.gov.v1beta1.MsgVote", MsgVote$1],
|
|
76778
|
-
["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted]
|
|
76777
|
+
["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted],
|
|
76778
|
+
["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit]
|
|
76779
76779
|
];
|
|
76780
76780
|
let HttpClient$h = class {
|
|
76781
76781
|
constructor({ securityWorker: t, secure: n, format: p, ...u } = {}) {
|
|
@@ -76897,17 +76897,6 @@ const defaultFee$7 = {
|
|
|
76897
76897
|
throw new Error("TxClient:sendMsgSubmitProposal: Could not broadcast Tx: " + y.message);
|
|
76898
76898
|
}
|
|
76899
76899
|
},
|
|
76900
|
-
async sendMsgDeposit({ value: p, fee: u, memo: g }) {
|
|
76901
|
-
if (!e)
|
|
76902
|
-
throw new Error("TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.");
|
|
76903
|
-
try {
|
|
76904
|
-
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$8, prefix: t });
|
|
76905
|
-
let N = this.msgDeposit({ value: MsgDeposit.fromPartial(p) });
|
|
76906
|
-
return await P.signAndBroadcast(y, [N], u || defaultFee$7, g);
|
|
76907
|
-
} catch (y) {
|
|
76908
|
-
throw new Error("TxClient:sendMsgDeposit: Could not broadcast Tx: " + y.message);
|
|
76909
|
-
}
|
|
76910
|
-
},
|
|
76911
76900
|
async sendMsgVote({ value: p, fee: u, memo: g }) {
|
|
76912
76901
|
if (!e)
|
|
76913
76902
|
throw new Error("TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.");
|
|
@@ -76930,18 +76919,22 @@ const defaultFee$7 = {
|
|
|
76930
76919
|
throw new Error("TxClient:sendMsgVoteWeighted: Could not broadcast Tx: " + y.message);
|
|
76931
76920
|
}
|
|
76932
76921
|
},
|
|
76933
|
-
|
|
76922
|
+
async sendMsgDeposit({ value: p, fee: u, memo: g }) {
|
|
76923
|
+
if (!e)
|
|
76924
|
+
throw new Error("TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.");
|
|
76934
76925
|
try {
|
|
76935
|
-
|
|
76936
|
-
|
|
76937
|
-
|
|
76926
|
+
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$8, prefix: t });
|
|
76927
|
+
let N = this.msgDeposit({ value: MsgDeposit.fromPartial(p) });
|
|
76928
|
+
return await P.signAndBroadcast(y, [N], u || defaultFee$7, g);
|
|
76929
|
+
} catch (y) {
|
|
76930
|
+
throw new Error("TxClient:sendMsgDeposit: Could not broadcast Tx: " + y.message);
|
|
76938
76931
|
}
|
|
76939
76932
|
},
|
|
76940
|
-
|
|
76933
|
+
msgSubmitProposal({ value: p }) {
|
|
76941
76934
|
try {
|
|
76942
|
-
return { typeUrl: "/cosmos.gov.v1beta1.
|
|
76935
|
+
return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal$1.fromPartial(p) };
|
|
76943
76936
|
} catch (u) {
|
|
76944
|
-
throw new Error("TxClient:
|
|
76937
|
+
throw new Error("TxClient:MsgSubmitProposal: Could not create message: " + u.message);
|
|
76945
76938
|
}
|
|
76946
76939
|
},
|
|
76947
76940
|
msgVote({ value: p }) {
|
|
@@ -76957,6 +76950,13 @@ const defaultFee$7 = {
|
|
|
76957
76950
|
} catch (u) {
|
|
76958
76951
|
throw new Error("TxClient:MsgVoteWeighted: Could not create message: " + u.message);
|
|
76959
76952
|
}
|
|
76953
|
+
},
|
|
76954
|
+
msgDeposit({ value: p }) {
|
|
76955
|
+
try {
|
|
76956
|
+
return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial(p) };
|
|
76957
|
+
} catch (u) {
|
|
76958
|
+
throw new Error("TxClient:MsgDeposit: Could not create message: " + u.message);
|
|
76959
|
+
}
|
|
76960
76960
|
}
|
|
76961
76961
|
}), queryClient$h = ({ addr: e } = { addr: "http://localhost:1317" }) => new Api$h({ baseURL: e });
|
|
76962
76962
|
let SDKModule$h = class {
|
|
@@ -78695,20 +78695,20 @@ function isSet$_(e) {
|
|
|
78695
78695
|
return e != null;
|
|
78696
78696
|
}
|
|
78697
78697
|
const msgTypes$g = [
|
|
78698
|
-
["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata],
|
|
78699
|
-
["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal],
|
|
78700
|
-
["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal],
|
|
78701
78698
|
["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup],
|
|
78699
|
+
["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup],
|
|
78700
|
+
["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata],
|
|
78701
|
+
["/cosmos.group.v1.MsgExec", MsgExec],
|
|
78702
78702
|
["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin],
|
|
78703
|
-
["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy],
|
|
78704
78703
|
["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy],
|
|
78705
|
-
["/cosmos.group.v1.
|
|
78706
|
-
["/cosmos.group.v1.
|
|
78707
|
-
["/cosmos.group.v1.
|
|
78708
|
-
["/cosmos.group.v1.MsgExec", MsgExec],
|
|
78709
|
-
["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup],
|
|
78704
|
+
["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin],
|
|
78705
|
+
["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal],
|
|
78706
|
+
["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy],
|
|
78710
78707
|
["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata],
|
|
78711
|
-
["/cosmos.group.v1.
|
|
78708
|
+
["/cosmos.group.v1.MsgVote", MsgVote],
|
|
78709
|
+
["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal],
|
|
78710
|
+
["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy],
|
|
78711
|
+
["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers]
|
|
78712
78712
|
];
|
|
78713
78713
|
let HttpClient$g = class {
|
|
78714
78714
|
constructor({ securityWorker: t, secure: n, format: p, ...u } = {}) {
|
|
@@ -79261,48 +79261,48 @@ const defaultFee$6 = {
|
|
|
79261
79261
|
amount: [],
|
|
79262
79262
|
gas: "200000"
|
|
79263
79263
|
}, txClient$g = ({ signer: e, prefix: t, addr: n } = { addr: "http://localhost:26657", prefix: "cosmos" }) => ({
|
|
79264
|
-
async
|
|
79264
|
+
async sendMsgLeaveGroup({ value: p, fee: u, memo: g }) {
|
|
79265
79265
|
if (!e)
|
|
79266
|
-
throw new Error("TxClient:
|
|
79266
|
+
throw new Error("TxClient:sendMsgLeaveGroup: Unable to sign Tx. Signer is not present.");
|
|
79267
79267
|
try {
|
|
79268
79268
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$7, prefix: t });
|
|
79269
|
-
let N = this.
|
|
79269
|
+
let N = this.msgLeaveGroup({ value: MsgLeaveGroup.fromPartial(p) });
|
|
79270
79270
|
return await P.signAndBroadcast(y, [N], u || defaultFee$6, g);
|
|
79271
79271
|
} catch (y) {
|
|
79272
|
-
throw new Error("TxClient:
|
|
79272
|
+
throw new Error("TxClient:sendMsgLeaveGroup: Could not broadcast Tx: " + y.message);
|
|
79273
79273
|
}
|
|
79274
79274
|
},
|
|
79275
|
-
async
|
|
79275
|
+
async sendMsgCreateGroup({ value: p, fee: u, memo: g }) {
|
|
79276
79276
|
if (!e)
|
|
79277
|
-
throw new Error("TxClient:
|
|
79277
|
+
throw new Error("TxClient:sendMsgCreateGroup: Unable to sign Tx. Signer is not present.");
|
|
79278
79278
|
try {
|
|
79279
79279
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$7, prefix: t });
|
|
79280
|
-
let N = this.
|
|
79280
|
+
let N = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(p) });
|
|
79281
79281
|
return await P.signAndBroadcast(y, [N], u || defaultFee$6, g);
|
|
79282
79282
|
} catch (y) {
|
|
79283
|
-
throw new Error("TxClient:
|
|
79283
|
+
throw new Error("TxClient:sendMsgCreateGroup: Could not broadcast Tx: " + y.message);
|
|
79284
79284
|
}
|
|
79285
79285
|
},
|
|
79286
|
-
async
|
|
79286
|
+
async sendMsgUpdateGroupPolicyMetadata({ value: p, fee: u, memo: g }) {
|
|
79287
79287
|
if (!e)
|
|
79288
|
-
throw new Error("TxClient:
|
|
79288
|
+
throw new Error("TxClient:sendMsgUpdateGroupPolicyMetadata: Unable to sign Tx. Signer is not present.");
|
|
79289
79289
|
try {
|
|
79290
79290
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$7, prefix: t });
|
|
79291
|
-
let N = this.
|
|
79291
|
+
let N = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(p) });
|
|
79292
79292
|
return await P.signAndBroadcast(y, [N], u || defaultFee$6, g);
|
|
79293
79293
|
} catch (y) {
|
|
79294
|
-
throw new Error("TxClient:
|
|
79294
|
+
throw new Error("TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: " + y.message);
|
|
79295
79295
|
}
|
|
79296
79296
|
},
|
|
79297
|
-
async
|
|
79297
|
+
async sendMsgExec({ value: p, fee: u, memo: g }) {
|
|
79298
79298
|
if (!e)
|
|
79299
|
-
throw new Error("TxClient:
|
|
79299
|
+
throw new Error("TxClient:sendMsgExec: Unable to sign Tx. Signer is not present.");
|
|
79300
79300
|
try {
|
|
79301
79301
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$7, prefix: t });
|
|
79302
|
-
let N = this.
|
|
79302
|
+
let N = this.msgExec({ value: MsgExec.fromPartial(p) });
|
|
79303
79303
|
return await P.signAndBroadcast(y, [N], u || defaultFee$6, g);
|
|
79304
79304
|
} catch (y) {
|
|
79305
|
-
throw new Error("TxClient:
|
|
79305
|
+
throw new Error("TxClient:sendMsgExec: Could not broadcast Tx: " + y.message);
|
|
79306
79306
|
}
|
|
79307
79307
|
},
|
|
79308
79308
|
async sendMsgUpdateGroupAdmin({ value: p, fee: u, memo: g }) {
|
|
@@ -79316,131 +79316,131 @@ const defaultFee$6 = {
|
|
|
79316
79316
|
throw new Error("TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: " + y.message);
|
|
79317
79317
|
}
|
|
79318
79318
|
},
|
|
79319
|
-
async
|
|
79319
|
+
async sendMsgCreateGroupWithPolicy({ value: p, fee: u, memo: g }) {
|
|
79320
79320
|
if (!e)
|
|
79321
|
-
throw new Error("TxClient:
|
|
79321
|
+
throw new Error("TxClient:sendMsgCreateGroupWithPolicy: Unable to sign Tx. Signer is not present.");
|
|
79322
79322
|
try {
|
|
79323
79323
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$7, prefix: t });
|
|
79324
|
-
let N = this.
|
|
79324
|
+
let N = this.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.fromPartial(p) });
|
|
79325
79325
|
return await P.signAndBroadcast(y, [N], u || defaultFee$6, g);
|
|
79326
79326
|
} catch (y) {
|
|
79327
|
-
throw new Error("TxClient:
|
|
79327
|
+
throw new Error("TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: " + y.message);
|
|
79328
79328
|
}
|
|
79329
79329
|
},
|
|
79330
|
-
async
|
|
79330
|
+
async sendMsgUpdateGroupPolicyAdmin({ value: p, fee: u, memo: g }) {
|
|
79331
79331
|
if (!e)
|
|
79332
|
-
throw new Error("TxClient:
|
|
79332
|
+
throw new Error("TxClient:sendMsgUpdateGroupPolicyAdmin: Unable to sign Tx. Signer is not present.");
|
|
79333
79333
|
try {
|
|
79334
79334
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$7, prefix: t });
|
|
79335
|
-
let N = this.
|
|
79335
|
+
let N = this.msgUpdateGroupPolicyAdmin({ value: MsgUpdateGroupPolicyAdmin.fromPartial(p) });
|
|
79336
79336
|
return await P.signAndBroadcast(y, [N], u || defaultFee$6, g);
|
|
79337
79337
|
} catch (y) {
|
|
79338
|
-
throw new Error("TxClient:
|
|
79338
|
+
throw new Error("TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: " + y.message);
|
|
79339
79339
|
}
|
|
79340
79340
|
},
|
|
79341
|
-
async
|
|
79341
|
+
async sendMsgWithdrawProposal({ value: p, fee: u, memo: g }) {
|
|
79342
79342
|
if (!e)
|
|
79343
|
-
throw new Error("TxClient:
|
|
79343
|
+
throw new Error("TxClient:sendMsgWithdrawProposal: Unable to sign Tx. Signer is not present.");
|
|
79344
79344
|
try {
|
|
79345
79345
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$7, prefix: t });
|
|
79346
|
-
let N = this.
|
|
79346
|
+
let N = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(p) });
|
|
79347
79347
|
return await P.signAndBroadcast(y, [N], u || defaultFee$6, g);
|
|
79348
79348
|
} catch (y) {
|
|
79349
|
-
throw new Error("TxClient:
|
|
79349
|
+
throw new Error("TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: " + y.message);
|
|
79350
79350
|
}
|
|
79351
79351
|
},
|
|
79352
|
-
async
|
|
79352
|
+
async sendMsgUpdateGroupPolicyDecisionPolicy({ value: p, fee: u, memo: g }) {
|
|
79353
79353
|
if (!e)
|
|
79354
|
-
throw new Error("TxClient:
|
|
79354
|
+
throw new Error("TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Unable to sign Tx. Signer is not present.");
|
|
79355
79355
|
try {
|
|
79356
79356
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$7, prefix: t });
|
|
79357
|
-
let N = this.
|
|
79357
|
+
let N = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(p) });
|
|
79358
79358
|
return await P.signAndBroadcast(y, [N], u || defaultFee$6, g);
|
|
79359
79359
|
} catch (y) {
|
|
79360
|
-
throw new Error("TxClient:
|
|
79360
|
+
throw new Error("TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: " + y.message);
|
|
79361
79361
|
}
|
|
79362
79362
|
},
|
|
79363
|
-
async
|
|
79363
|
+
async sendMsgUpdateGroupMetadata({ value: p, fee: u, memo: g }) {
|
|
79364
79364
|
if (!e)
|
|
79365
|
-
throw new Error("TxClient:
|
|
79365
|
+
throw new Error("TxClient:sendMsgUpdateGroupMetadata: Unable to sign Tx. Signer is not present.");
|
|
79366
79366
|
try {
|
|
79367
79367
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$7, prefix: t });
|
|
79368
|
-
let N = this.
|
|
79368
|
+
let N = this.msgUpdateGroupMetadata({ value: MsgUpdateGroupMetadata.fromPartial(p) });
|
|
79369
79369
|
return await P.signAndBroadcast(y, [N], u || defaultFee$6, g);
|
|
79370
79370
|
} catch (y) {
|
|
79371
|
-
throw new Error("TxClient:
|
|
79371
|
+
throw new Error("TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: " + y.message);
|
|
79372
79372
|
}
|
|
79373
79373
|
},
|
|
79374
|
-
async
|
|
79374
|
+
async sendMsgVote({ value: p, fee: u, memo: g }) {
|
|
79375
79375
|
if (!e)
|
|
79376
|
-
throw new Error("TxClient:
|
|
79376
|
+
throw new Error("TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.");
|
|
79377
79377
|
try {
|
|
79378
79378
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$7, prefix: t });
|
|
79379
|
-
let N = this.
|
|
79379
|
+
let N = this.msgVote({ value: MsgVote.fromPartial(p) });
|
|
79380
79380
|
return await P.signAndBroadcast(y, [N], u || defaultFee$6, g);
|
|
79381
79381
|
} catch (y) {
|
|
79382
|
-
throw new Error("TxClient:
|
|
79382
|
+
throw new Error("TxClient:sendMsgVote: Could not broadcast Tx: " + y.message);
|
|
79383
79383
|
}
|
|
79384
79384
|
},
|
|
79385
|
-
async
|
|
79385
|
+
async sendMsgSubmitProposal({ value: p, fee: u, memo: g }) {
|
|
79386
79386
|
if (!e)
|
|
79387
|
-
throw new Error("TxClient:
|
|
79387
|
+
throw new Error("TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.");
|
|
79388
79388
|
try {
|
|
79389
79389
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$7, prefix: t });
|
|
79390
|
-
let N = this.
|
|
79390
|
+
let N = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(p) });
|
|
79391
79391
|
return await P.signAndBroadcast(y, [N], u || defaultFee$6, g);
|
|
79392
79392
|
} catch (y) {
|
|
79393
|
-
throw new Error("TxClient:
|
|
79393
|
+
throw new Error("TxClient:sendMsgSubmitProposal: Could not broadcast Tx: " + y.message);
|
|
79394
79394
|
}
|
|
79395
79395
|
},
|
|
79396
|
-
async
|
|
79396
|
+
async sendMsgCreateGroupPolicy({ value: p, fee: u, memo: g }) {
|
|
79397
79397
|
if (!e)
|
|
79398
|
-
throw new Error("TxClient:
|
|
79398
|
+
throw new Error("TxClient:sendMsgCreateGroupPolicy: Unable to sign Tx. Signer is not present.");
|
|
79399
79399
|
try {
|
|
79400
79400
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$7, prefix: t });
|
|
79401
|
-
let N = this.
|
|
79401
|
+
let N = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(p) });
|
|
79402
79402
|
return await P.signAndBroadcast(y, [N], u || defaultFee$6, g);
|
|
79403
79403
|
} catch (y) {
|
|
79404
|
-
throw new Error("TxClient:
|
|
79404
|
+
throw new Error("TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: " + y.message);
|
|
79405
79405
|
}
|
|
79406
79406
|
},
|
|
79407
|
-
async
|
|
79407
|
+
async sendMsgUpdateGroupMembers({ value: p, fee: u, memo: g }) {
|
|
79408
79408
|
if (!e)
|
|
79409
|
-
throw new Error("TxClient:
|
|
79409
|
+
throw new Error("TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.");
|
|
79410
79410
|
try {
|
|
79411
79411
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$7, prefix: t });
|
|
79412
|
-
let N = this.
|
|
79412
|
+
let N = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(p) });
|
|
79413
79413
|
return await P.signAndBroadcast(y, [N], u || defaultFee$6, g);
|
|
79414
79414
|
} catch (y) {
|
|
79415
|
-
throw new Error("TxClient:
|
|
79415
|
+
throw new Error("TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: " + y.message);
|
|
79416
79416
|
}
|
|
79417
79417
|
},
|
|
79418
|
-
|
|
79418
|
+
msgLeaveGroup({ value: p }) {
|
|
79419
79419
|
try {
|
|
79420
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
79420
|
+
return { typeUrl: "/cosmos.group.v1.MsgLeaveGroup", value: MsgLeaveGroup.fromPartial(p) };
|
|
79421
79421
|
} catch (u) {
|
|
79422
|
-
throw new Error("TxClient:
|
|
79422
|
+
throw new Error("TxClient:MsgLeaveGroup: Could not create message: " + u.message);
|
|
79423
79423
|
}
|
|
79424
79424
|
},
|
|
79425
|
-
|
|
79425
|
+
msgCreateGroup({ value: p }) {
|
|
79426
79426
|
try {
|
|
79427
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
79427
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial(p) };
|
|
79428
79428
|
} catch (u) {
|
|
79429
|
-
throw new Error("TxClient:
|
|
79429
|
+
throw new Error("TxClient:MsgCreateGroup: Could not create message: " + u.message);
|
|
79430
79430
|
}
|
|
79431
79431
|
},
|
|
79432
|
-
|
|
79432
|
+
msgUpdateGroupPolicyMetadata({ value: p }) {
|
|
79433
79433
|
try {
|
|
79434
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
79434
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial(p) };
|
|
79435
79435
|
} catch (u) {
|
|
79436
|
-
throw new Error("TxClient:
|
|
79436
|
+
throw new Error("TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: " + u.message);
|
|
79437
79437
|
}
|
|
79438
79438
|
},
|
|
79439
|
-
|
|
79439
|
+
msgExec({ value: p }) {
|
|
79440
79440
|
try {
|
|
79441
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
79441
|
+
return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial(p) };
|
|
79442
79442
|
} catch (u) {
|
|
79443
|
-
throw new Error("TxClient:
|
|
79443
|
+
throw new Error("TxClient:MsgExec: Could not create message: " + u.message);
|
|
79444
79444
|
}
|
|
79445
79445
|
},
|
|
79446
79446
|
msgUpdateGroupAdmin({ value: p }) {
|
|
@@ -79450,67 +79450,67 @@ const defaultFee$6 = {
|
|
|
79450
79450
|
throw new Error("TxClient:MsgUpdateGroupAdmin: Could not create message: " + u.message);
|
|
79451
79451
|
}
|
|
79452
79452
|
},
|
|
79453
|
-
|
|
79453
|
+
msgCreateGroupWithPolicy({ value: p }) {
|
|
79454
79454
|
try {
|
|
79455
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
79455
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial(p) };
|
|
79456
79456
|
} catch (u) {
|
|
79457
|
-
throw new Error("TxClient:
|
|
79457
|
+
throw new Error("TxClient:MsgCreateGroupWithPolicy: Could not create message: " + u.message);
|
|
79458
79458
|
}
|
|
79459
79459
|
},
|
|
79460
|
-
|
|
79460
|
+
msgUpdateGroupPolicyAdmin({ value: p }) {
|
|
79461
79461
|
try {
|
|
79462
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
79462
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", value: MsgUpdateGroupPolicyAdmin.fromPartial(p) };
|
|
79463
79463
|
} catch (u) {
|
|
79464
|
-
throw new Error("TxClient:
|
|
79464
|
+
throw new Error("TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: " + u.message);
|
|
79465
79465
|
}
|
|
79466
79466
|
},
|
|
79467
|
-
|
|
79467
|
+
msgWithdrawProposal({ value: p }) {
|
|
79468
79468
|
try {
|
|
79469
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
79469
|
+
return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial(p) };
|
|
79470
79470
|
} catch (u) {
|
|
79471
|
-
throw new Error("TxClient:
|
|
79471
|
+
throw new Error("TxClient:MsgWithdrawProposal: Could not create message: " + u.message);
|
|
79472
79472
|
}
|
|
79473
79473
|
},
|
|
79474
|
-
|
|
79474
|
+
msgUpdateGroupPolicyDecisionPolicy({ value: p }) {
|
|
79475
79475
|
try {
|
|
79476
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
79476
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(p) };
|
|
79477
79477
|
} catch (u) {
|
|
79478
|
-
throw new Error("TxClient:
|
|
79478
|
+
throw new Error("TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: " + u.message);
|
|
79479
79479
|
}
|
|
79480
79480
|
},
|
|
79481
|
-
|
|
79481
|
+
msgUpdateGroupMetadata({ value: p }) {
|
|
79482
79482
|
try {
|
|
79483
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
79483
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial(p) };
|
|
79484
79484
|
} catch (u) {
|
|
79485
|
-
throw new Error("TxClient:
|
|
79485
|
+
throw new Error("TxClient:MsgUpdateGroupMetadata: Could not create message: " + u.message);
|
|
79486
79486
|
}
|
|
79487
79487
|
},
|
|
79488
|
-
|
|
79488
|
+
msgVote({ value: p }) {
|
|
79489
79489
|
try {
|
|
79490
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
79490
|
+
return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial(p) };
|
|
79491
79491
|
} catch (u) {
|
|
79492
|
-
throw new Error("TxClient:
|
|
79492
|
+
throw new Error("TxClient:MsgVote: Could not create message: " + u.message);
|
|
79493
79493
|
}
|
|
79494
79494
|
},
|
|
79495
|
-
|
|
79495
|
+
msgSubmitProposal({ value: p }) {
|
|
79496
79496
|
try {
|
|
79497
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
79497
|
+
return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(p) };
|
|
79498
79498
|
} catch (u) {
|
|
79499
|
-
throw new Error("TxClient:
|
|
79499
|
+
throw new Error("TxClient:MsgSubmitProposal: Could not create message: " + u.message);
|
|
79500
79500
|
}
|
|
79501
79501
|
},
|
|
79502
|
-
|
|
79502
|
+
msgCreateGroupPolicy({ value: p }) {
|
|
79503
79503
|
try {
|
|
79504
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
79504
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial(p) };
|
|
79505
79505
|
} catch (u) {
|
|
79506
|
-
throw new Error("TxClient:
|
|
79506
|
+
throw new Error("TxClient:MsgCreateGroupPolicy: Could not create message: " + u.message);
|
|
79507
79507
|
}
|
|
79508
79508
|
},
|
|
79509
|
-
|
|
79509
|
+
msgUpdateGroupMembers({ value: p }) {
|
|
79510
79510
|
try {
|
|
79511
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
79511
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial(p) };
|
|
79512
79512
|
} catch (u) {
|
|
79513
|
-
throw new Error("TxClient:
|
|
79513
|
+
throw new Error("TxClient:MsgUpdateGroupMembers: Could not create message: " + u.message);
|
|
79514
79514
|
}
|
|
79515
79515
|
}
|
|
79516
79516
|
}), queryClient$g = ({ addr: e } = { addr: "http://localhost:1317" }) => new Api$g({ baseURL: e });
|
|
@@ -83377,12 +83377,12 @@ function isSet$D(e) {
|
|
|
83377
83377
|
return e != null;
|
|
83378
83378
|
}
|
|
83379
83379
|
const msgTypes$b = [
|
|
83380
|
+
["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation],
|
|
83380
83381
|
["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator],
|
|
83382
|
+
["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator],
|
|
83381
83383
|
["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate],
|
|
83382
83384
|
["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate],
|
|
83383
|
-
["/cosmos.staking.v1beta1.
|
|
83384
|
-
["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate],
|
|
83385
|
-
["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation]
|
|
83385
|
+
["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate]
|
|
83386
83386
|
];
|
|
83387
83387
|
let HttpClient$b = class {
|
|
83388
83388
|
constructor({ securityWorker: t, secure: n, format: p, ...u } = {}) {
|
|
@@ -83716,6 +83716,17 @@ const defaultFee$4 = {
|
|
|
83716
83716
|
amount: [],
|
|
83717
83717
|
gas: "200000"
|
|
83718
83718
|
}, txClient$b = ({ signer: e, prefix: t, addr: n } = { addr: "http://localhost:26657", prefix: "cosmos" }) => ({
|
|
83719
|
+
async sendMsgCancelUnbondingDelegation({ value: p, fee: u, memo: g }) {
|
|
83720
|
+
if (!e)
|
|
83721
|
+
throw new Error("TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.");
|
|
83722
|
+
try {
|
|
83723
|
+
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$5, prefix: t });
|
|
83724
|
+
let N = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(p) });
|
|
83725
|
+
return await P.signAndBroadcast(y, [N], u || defaultFee$4, g);
|
|
83726
|
+
} catch (y) {
|
|
83727
|
+
throw new Error("TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: " + y.message);
|
|
83728
|
+
}
|
|
83729
|
+
},
|
|
83719
83730
|
async sendMsgCreateValidator({ value: p, fee: u, memo: g }) {
|
|
83720
83731
|
if (!e)
|
|
83721
83732
|
throw new Error("TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.");
|
|
@@ -83727,6 +83738,17 @@ const defaultFee$4 = {
|
|
|
83727
83738
|
throw new Error("TxClient:sendMsgCreateValidator: Could not broadcast Tx: " + y.message);
|
|
83728
83739
|
}
|
|
83729
83740
|
},
|
|
83741
|
+
async sendMsgEditValidator({ value: p, fee: u, memo: g }) {
|
|
83742
|
+
if (!e)
|
|
83743
|
+
throw new Error("TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.");
|
|
83744
|
+
try {
|
|
83745
|
+
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$5, prefix: t });
|
|
83746
|
+
let N = this.msgEditValidator({ value: MsgEditValidator.fromPartial(p) });
|
|
83747
|
+
return await P.signAndBroadcast(y, [N], u || defaultFee$4, g);
|
|
83748
|
+
} catch (y) {
|
|
83749
|
+
throw new Error("TxClient:sendMsgEditValidator: Could not broadcast Tx: " + y.message);
|
|
83750
|
+
}
|
|
83751
|
+
},
|
|
83730
83752
|
async sendMsgBeginRedelegate({ value: p, fee: u, memo: g }) {
|
|
83731
83753
|
if (!e)
|
|
83732
83754
|
throw new Error("TxClient:sendMsgBeginRedelegate: Unable to sign Tx. Signer is not present.");
|
|
@@ -83749,17 +83771,6 @@ const defaultFee$4 = {
|
|
|
83749
83771
|
throw new Error("TxClient:sendMsgDelegate: Could not broadcast Tx: " + y.message);
|
|
83750
83772
|
}
|
|
83751
83773
|
},
|
|
83752
|
-
async sendMsgEditValidator({ value: p, fee: u, memo: g }) {
|
|
83753
|
-
if (!e)
|
|
83754
|
-
throw new Error("TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.");
|
|
83755
|
-
try {
|
|
83756
|
-
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$5, prefix: t });
|
|
83757
|
-
let N = this.msgEditValidator({ value: MsgEditValidator.fromPartial(p) });
|
|
83758
|
-
return await P.signAndBroadcast(y, [N], u || defaultFee$4, g);
|
|
83759
|
-
} catch (y) {
|
|
83760
|
-
throw new Error("TxClient:sendMsgEditValidator: Could not broadcast Tx: " + y.message);
|
|
83761
|
-
}
|
|
83762
|
-
},
|
|
83763
83774
|
async sendMsgUndelegate({ value: p, fee: u, memo: g }) {
|
|
83764
83775
|
if (!e)
|
|
83765
83776
|
throw new Error("TxClient:sendMsgUndelegate: Unable to sign Tx. Signer is not present.");
|
|
@@ -83771,15 +83782,11 @@ const defaultFee$4 = {
|
|
|
83771
83782
|
throw new Error("TxClient:sendMsgUndelegate: Could not broadcast Tx: " + y.message);
|
|
83772
83783
|
}
|
|
83773
83784
|
},
|
|
83774
|
-
|
|
83775
|
-
if (!e)
|
|
83776
|
-
throw new Error("TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.");
|
|
83785
|
+
msgCancelUnbondingDelegation({ value: p }) {
|
|
83777
83786
|
try {
|
|
83778
|
-
|
|
83779
|
-
|
|
83780
|
-
|
|
83781
|
-
} catch (y) {
|
|
83782
|
-
throw new Error("TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: " + y.message);
|
|
83787
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial(p) };
|
|
83788
|
+
} catch (u) {
|
|
83789
|
+
throw new Error("TxClient:MsgCancelUnbondingDelegation: Could not create message: " + u.message);
|
|
83783
83790
|
}
|
|
83784
83791
|
},
|
|
83785
83792
|
msgCreateValidator({ value: p }) {
|
|
@@ -83789,6 +83796,13 @@ const defaultFee$4 = {
|
|
|
83789
83796
|
throw new Error("TxClient:MsgCreateValidator: Could not create message: " + u.message);
|
|
83790
83797
|
}
|
|
83791
83798
|
},
|
|
83799
|
+
msgEditValidator({ value: p }) {
|
|
83800
|
+
try {
|
|
83801
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial(p) };
|
|
83802
|
+
} catch (u) {
|
|
83803
|
+
throw new Error("TxClient:MsgEditValidator: Could not create message: " + u.message);
|
|
83804
|
+
}
|
|
83805
|
+
},
|
|
83792
83806
|
msgBeginRedelegate({ value: p }) {
|
|
83793
83807
|
try {
|
|
83794
83808
|
return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial(p) };
|
|
@@ -83803,26 +83817,12 @@ const defaultFee$4 = {
|
|
|
83803
83817
|
throw new Error("TxClient:MsgDelegate: Could not create message: " + u.message);
|
|
83804
83818
|
}
|
|
83805
83819
|
},
|
|
83806
|
-
msgEditValidator({ value: p }) {
|
|
83807
|
-
try {
|
|
83808
|
-
return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial(p) };
|
|
83809
|
-
} catch (u) {
|
|
83810
|
-
throw new Error("TxClient:MsgEditValidator: Could not create message: " + u.message);
|
|
83811
|
-
}
|
|
83812
|
-
},
|
|
83813
83820
|
msgUndelegate({ value: p }) {
|
|
83814
83821
|
try {
|
|
83815
83822
|
return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial(p) };
|
|
83816
83823
|
} catch (u) {
|
|
83817
83824
|
throw new Error("TxClient:MsgUndelegate: Could not create message: " + u.message);
|
|
83818
83825
|
}
|
|
83819
|
-
},
|
|
83820
|
-
msgCancelUnbondingDelegation({ value: p }) {
|
|
83821
|
-
try {
|
|
83822
|
-
return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial(p) };
|
|
83823
|
-
} catch (u) {
|
|
83824
|
-
throw new Error("TxClient:MsgCancelUnbondingDelegation: Could not create message: " + u.message);
|
|
83825
|
-
}
|
|
83826
83826
|
}
|
|
83827
83827
|
}), queryClient$b = ({ addr: e } = { addr: "http://localhost:1317" }) => new Api$b({ baseURL: e });
|
|
83828
83828
|
let SDKModule$b = class {
|
|
@@ -85421,8 +85421,8 @@ function isSet$t(e) {
|
|
|
85421
85421
|
return e != null;
|
|
85422
85422
|
}
|
|
85423
85423
|
const msgTypes$9 = [
|
|
85424
|
-
["/cosmos.upgrade.v1beta1.
|
|
85425
|
-
["/cosmos.upgrade.v1beta1.
|
|
85424
|
+
["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade],
|
|
85425
|
+
["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", MsgCancelUpgrade]
|
|
85426
85426
|
];
|
|
85427
85427
|
let HttpClient$9 = class {
|
|
85428
85428
|
constructor({ securityWorker: t, secure: n, format: p, ...u } = {}) {
|
|
@@ -85516,40 +85516,40 @@ const defaultFee$3 = {
|
|
|
85516
85516
|
amount: [],
|
|
85517
85517
|
gas: "200000"
|
|
85518
85518
|
}, txClient$9 = ({ signer: e, prefix: t, addr: n } = { addr: "http://localhost:26657", prefix: "cosmos" }) => ({
|
|
85519
|
-
async
|
|
85519
|
+
async sendMsgSoftwareUpgrade({ value: p, fee: u, memo: g }) {
|
|
85520
85520
|
if (!e)
|
|
85521
|
-
throw new Error("TxClient:
|
|
85521
|
+
throw new Error("TxClient:sendMsgSoftwareUpgrade: Unable to sign Tx. Signer is not present.");
|
|
85522
85522
|
try {
|
|
85523
85523
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$4, prefix: t });
|
|
85524
|
-
let N = this.
|
|
85524
|
+
let N = this.msgSoftwareUpgrade({ value: MsgSoftwareUpgrade.fromPartial(p) });
|
|
85525
85525
|
return await P.signAndBroadcast(y, [N], u || defaultFee$3, g);
|
|
85526
85526
|
} catch (y) {
|
|
85527
|
-
throw new Error("TxClient:
|
|
85527
|
+
throw new Error("TxClient:sendMsgSoftwareUpgrade: Could not broadcast Tx: " + y.message);
|
|
85528
85528
|
}
|
|
85529
85529
|
},
|
|
85530
|
-
async
|
|
85530
|
+
async sendMsgCancelUpgrade({ value: p, fee: u, memo: g }) {
|
|
85531
85531
|
if (!e)
|
|
85532
|
-
throw new Error("TxClient:
|
|
85532
|
+
throw new Error("TxClient:sendMsgCancelUpgrade: Unable to sign Tx. Signer is not present.");
|
|
85533
85533
|
try {
|
|
85534
85534
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$4, prefix: t });
|
|
85535
|
-
let N = this.
|
|
85535
|
+
let N = this.msgCancelUpgrade({ value: MsgCancelUpgrade.fromPartial(p) });
|
|
85536
85536
|
return await P.signAndBroadcast(y, [N], u || defaultFee$3, g);
|
|
85537
85537
|
} catch (y) {
|
|
85538
|
-
throw new Error("TxClient:
|
|
85538
|
+
throw new Error("TxClient:sendMsgCancelUpgrade: Could not broadcast Tx: " + y.message);
|
|
85539
85539
|
}
|
|
85540
85540
|
},
|
|
85541
|
-
|
|
85541
|
+
msgSoftwareUpgrade({ value: p }) {
|
|
85542
85542
|
try {
|
|
85543
|
-
return { typeUrl: "/cosmos.upgrade.v1beta1.
|
|
85543
|
+
return { typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", value: MsgSoftwareUpgrade.fromPartial(p) };
|
|
85544
85544
|
} catch (u) {
|
|
85545
|
-
throw new Error("TxClient:
|
|
85545
|
+
throw new Error("TxClient:MsgSoftwareUpgrade: Could not create message: " + u.message);
|
|
85546
85546
|
}
|
|
85547
85547
|
},
|
|
85548
|
-
|
|
85548
|
+
msgCancelUpgrade({ value: p }) {
|
|
85549
85549
|
try {
|
|
85550
|
-
return { typeUrl: "/cosmos.upgrade.v1beta1.
|
|
85550
|
+
return { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", value: MsgCancelUpgrade.fromPartial(p) };
|
|
85551
85551
|
} catch (u) {
|
|
85552
|
-
throw new Error("TxClient:
|
|
85552
|
+
throw new Error("TxClient:MsgCancelUpgrade: Could not create message: " + u.message);
|
|
85553
85553
|
}
|
|
85554
85554
|
}
|
|
85555
85555
|
}), queryClient$9 = ({ addr: e } = { addr: "http://localhost:1317" }) => new Api$9({ baseURL: e });
|
|
@@ -86252,8 +86252,8 @@ function isSet$o(e) {
|
|
|
86252
86252
|
}
|
|
86253
86253
|
const msgTypes$8 = [
|
|
86254
86254
|
["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount],
|
|
86255
|
-
["/cosmos.vesting.v1beta1.
|
|
86256
|
-
["/cosmos.vesting.v1beta1.
|
|
86255
|
+
["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount],
|
|
86256
|
+
["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount]
|
|
86257
86257
|
];
|
|
86258
86258
|
let HttpClient$8 = class {
|
|
86259
86259
|
constructor({ securityWorker: t, secure: n, format: p, ...u } = {}) {
|
|
@@ -86329,26 +86329,26 @@ const defaultFee$2 = {
|
|
|
86329
86329
|
throw new Error("TxClient:sendMsgCreateVestingAccount: Could not broadcast Tx: " + y.message);
|
|
86330
86330
|
}
|
|
86331
86331
|
},
|
|
86332
|
-
async
|
|
86332
|
+
async sendMsgCreatePeriodicVestingAccount({ value: p, fee: u, memo: g }) {
|
|
86333
86333
|
if (!e)
|
|
86334
|
-
throw new Error("TxClient:
|
|
86334
|
+
throw new Error("TxClient:sendMsgCreatePeriodicVestingAccount: Unable to sign Tx. Signer is not present.");
|
|
86335
86335
|
try {
|
|
86336
86336
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$3, prefix: t });
|
|
86337
|
-
let N = this.
|
|
86337
|
+
let N = this.msgCreatePeriodicVestingAccount({ value: MsgCreatePeriodicVestingAccount.fromPartial(p) });
|
|
86338
86338
|
return await P.signAndBroadcast(y, [N], u || defaultFee$2, g);
|
|
86339
86339
|
} catch (y) {
|
|
86340
|
-
throw new Error("TxClient:
|
|
86340
|
+
throw new Error("TxClient:sendMsgCreatePeriodicVestingAccount: Could not broadcast Tx: " + y.message);
|
|
86341
86341
|
}
|
|
86342
86342
|
},
|
|
86343
|
-
async
|
|
86343
|
+
async sendMsgCreatePermanentLockedAccount({ value: p, fee: u, memo: g }) {
|
|
86344
86344
|
if (!e)
|
|
86345
|
-
throw new Error("TxClient:
|
|
86345
|
+
throw new Error("TxClient:sendMsgCreatePermanentLockedAccount: Unable to sign Tx. Signer is not present.");
|
|
86346
86346
|
try {
|
|
86347
86347
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$3, prefix: t });
|
|
86348
|
-
let N = this.
|
|
86348
|
+
let N = this.msgCreatePermanentLockedAccount({ value: MsgCreatePermanentLockedAccount.fromPartial(p) });
|
|
86349
86349
|
return await P.signAndBroadcast(y, [N], u || defaultFee$2, g);
|
|
86350
86350
|
} catch (y) {
|
|
86351
|
-
throw new Error("TxClient:
|
|
86351
|
+
throw new Error("TxClient:sendMsgCreatePermanentLockedAccount: Could not broadcast Tx: " + y.message);
|
|
86352
86352
|
}
|
|
86353
86353
|
},
|
|
86354
86354
|
msgCreateVestingAccount({ value: p }) {
|
|
@@ -86358,18 +86358,18 @@ const defaultFee$2 = {
|
|
|
86358
86358
|
throw new Error("TxClient:MsgCreateVestingAccount: Could not create message: " + u.message);
|
|
86359
86359
|
}
|
|
86360
86360
|
},
|
|
86361
|
-
|
|
86361
|
+
msgCreatePeriodicVestingAccount({ value: p }) {
|
|
86362
86362
|
try {
|
|
86363
|
-
return { typeUrl: "/cosmos.vesting.v1beta1.
|
|
86363
|
+
return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", value: MsgCreatePeriodicVestingAccount.fromPartial(p) };
|
|
86364
86364
|
} catch (u) {
|
|
86365
|
-
throw new Error("TxClient:
|
|
86365
|
+
throw new Error("TxClient:MsgCreatePeriodicVestingAccount: Could not create message: " + u.message);
|
|
86366
86366
|
}
|
|
86367
86367
|
},
|
|
86368
|
-
|
|
86368
|
+
msgCreatePermanentLockedAccount({ value: p }) {
|
|
86369
86369
|
try {
|
|
86370
|
-
return { typeUrl: "/cosmos.vesting.v1beta1.
|
|
86370
|
+
return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", value: MsgCreatePermanentLockedAccount.fromPartial(p) };
|
|
86371
86371
|
} catch (u) {
|
|
86372
|
-
throw new Error("TxClient:
|
|
86372
|
+
throw new Error("TxClient:MsgCreatePermanentLockedAccount: Could not create message: " + u.message);
|
|
86373
86373
|
}
|
|
86374
86374
|
}
|
|
86375
86375
|
}), queryClient$8 = ({ addr: e } = { addr: "http://localhost:1317" }) => new Api$8({ baseURL: e });
|
|
@@ -89950,9 +89950,9 @@ function isSet$4(e) {
|
|
|
89950
89950
|
return e != null;
|
|
89951
89951
|
}
|
|
89952
89952
|
const msgTypes = [
|
|
89953
|
-
["/iconlake.icon.
|
|
89953
|
+
["/iconlake.icon.MsgMint", MsgMint],
|
|
89954
89954
|
["/iconlake.icon.MsgUpdateClass", MsgUpdateClass],
|
|
89955
|
-
["/iconlake.icon.
|
|
89955
|
+
["/iconlake.icon.MsgBurn", MsgBurn]
|
|
89956
89956
|
];
|
|
89957
89957
|
class HttpClient {
|
|
89958
89958
|
constructor({ securityWorker: t, secure: n, format: p, ...u } = {}) {
|
|
@@ -90665,15 +90665,15 @@ const defaultFee = {
|
|
|
90665
90665
|
amount: [],
|
|
90666
90666
|
gas: "200000"
|
|
90667
90667
|
}, txClient = ({ signer: e, prefix: t, addr: n } = { addr: "http://localhost:26657", prefix: "cosmos" }) => ({
|
|
90668
|
-
async
|
|
90668
|
+
async sendMsgMint({ value: p, fee: u, memo: g }) {
|
|
90669
90669
|
if (!e)
|
|
90670
|
-
throw new Error("TxClient:
|
|
90670
|
+
throw new Error("TxClient:sendMsgMint: Unable to sign Tx. Signer is not present.");
|
|
90671
90671
|
try {
|
|
90672
90672
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$1, prefix: t });
|
|
90673
|
-
let N = this.
|
|
90673
|
+
let N = this.msgMint({ value: MsgMint.fromPartial(p) });
|
|
90674
90674
|
return await P.signAndBroadcast(y, [N], u || defaultFee, g);
|
|
90675
90675
|
} catch (y) {
|
|
90676
|
-
throw new Error("TxClient:
|
|
90676
|
+
throw new Error("TxClient:sendMsgMint: Could not broadcast Tx: " + y.message);
|
|
90677
90677
|
}
|
|
90678
90678
|
},
|
|
90679
90679
|
async sendMsgUpdateClass({ value: p, fee: u, memo: g }) {
|
|
@@ -90687,22 +90687,22 @@ const defaultFee = {
|
|
|
90687
90687
|
throw new Error("TxClient:sendMsgUpdateClass: Could not broadcast Tx: " + y.message);
|
|
90688
90688
|
}
|
|
90689
90689
|
},
|
|
90690
|
-
async
|
|
90690
|
+
async sendMsgBurn({ value: p, fee: u, memo: g }) {
|
|
90691
90691
|
if (!e)
|
|
90692
|
-
throw new Error("TxClient:
|
|
90692
|
+
throw new Error("TxClient:sendMsgBurn: Unable to sign Tx. Signer is not present.");
|
|
90693
90693
|
try {
|
|
90694
90694
|
const { address: y } = (await e.getAccounts())[0], P = await build$5.SigningStargateClient.connectWithSigner(n, e, { registry: registry$1, prefix: t });
|
|
90695
|
-
let N = this.
|
|
90695
|
+
let N = this.msgBurn({ value: MsgBurn.fromPartial(p) });
|
|
90696
90696
|
return await P.signAndBroadcast(y, [N], u || defaultFee, g);
|
|
90697
90697
|
} catch (y) {
|
|
90698
|
-
throw new Error("TxClient:
|
|
90698
|
+
throw new Error("TxClient:sendMsgBurn: Could not broadcast Tx: " + y.message);
|
|
90699
90699
|
}
|
|
90700
90700
|
},
|
|
90701
|
-
|
|
90701
|
+
msgMint({ value: p }) {
|
|
90702
90702
|
try {
|
|
90703
|
-
return { typeUrl: "/iconlake.icon.
|
|
90703
|
+
return { typeUrl: "/iconlake.icon.MsgMint", value: MsgMint.fromPartial(p) };
|
|
90704
90704
|
} catch (u) {
|
|
90705
|
-
throw new Error("TxClient:
|
|
90705
|
+
throw new Error("TxClient:MsgMint: Could not create message: " + u.message);
|
|
90706
90706
|
}
|
|
90707
90707
|
},
|
|
90708
90708
|
msgUpdateClass({ value: p }) {
|
|
@@ -90712,11 +90712,11 @@ const defaultFee = {
|
|
|
90712
90712
|
throw new Error("TxClient:MsgUpdateClass: Could not create message: " + u.message);
|
|
90713
90713
|
}
|
|
90714
90714
|
},
|
|
90715
|
-
|
|
90715
|
+
msgBurn({ value: p }) {
|
|
90716
90716
|
try {
|
|
90717
|
-
return { typeUrl: "/iconlake.icon.
|
|
90717
|
+
return { typeUrl: "/iconlake.icon.MsgBurn", value: MsgBurn.fromPartial(p) };
|
|
90718
90718
|
} catch (u) {
|
|
90719
|
-
throw new Error("TxClient:
|
|
90719
|
+
throw new Error("TxClient:MsgBurn: Could not create message: " + u.message);
|
|
90720
90720
|
}
|
|
90721
90721
|
}
|
|
90722
90722
|
}), queryClient = ({ addr: e } = { addr: "http://localhost:1317" }) => new Api({ baseURL: e });
|