decentralcardgame-cardchain-client-ts 0.0.26-rc1 → 0.0.27
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/DecentralCardGame.cardchain.cardchain/module.js +504 -352
- package/DecentralCardGame.cardchain.cardchain/module.ts +1505 -1267
- package/DecentralCardGame.cardchain.cardchain/registry.js +64 -62
- package/DecentralCardGame.cardchain.cardchain/registry.ts +64 -62
- package/DecentralCardGame.cardchain.cardchain/rest.js +31 -17
- package/DecentralCardGame.cardchain.cardchain/rest.ts +139 -94
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +1 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +86 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +90 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +229 -114
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +276 -120
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.js +186 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.ts +210 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +91 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +113 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +3 -1
- package/DecentralCardGame.cardchain.cardchain/types.ts +4 -0
- package/DecentralCardGame.cardchain.featureflag/module.js +4 -1
- package/DecentralCardGame.cardchain.featureflag/module.ts +71 -69
- package/DecentralCardGame.cardchain.featureflag/rest.ts +6 -6
- package/client.js +3 -9
- package/client.ts +154 -167
- package/cosmos.auth.v1beta1/module.js +4 -1
- package/cosmos.auth.v1beta1/module.ts +71 -69
- package/cosmos.auth.v1beta1/rest.ts +21 -21
- package/cosmos.authz.v1beta1/module.js +17 -17
- package/cosmos.authz.v1beta1/module.ts +25 -25
- package/cosmos.authz.v1beta1/registry.js +4 -4
- package/cosmos.authz.v1beta1/registry.ts +4 -4
- package/cosmos.authz.v1beta1/rest.ts +75 -75
- package/cosmos.bank.v1beta1/rest.ts +9 -9
- package/cosmos.distribution.v1beta1/module.js +27 -27
- package/cosmos.distribution.v1beta1/module.ts +42 -42
- package/cosmos.distribution.v1beta1/registry.js +4 -4
- package/cosmos.distribution.v1beta1/registry.ts +4 -4
- package/cosmos.distribution.v1beta1/rest.ts +20 -20
- package/cosmos.gov.v1/module.js +24 -24
- package/cosmos.gov.v1/module.ts +36 -36
- package/cosmos.gov.v1/registry.js +4 -4
- package/cosmos.gov.v1/registry.ts +4 -4
- package/cosmos.gov.v1/rest.ts +90 -90
- package/cosmos.gov.v1beta1/module.js +27 -27
- package/cosmos.gov.v1beta1/module.ts +42 -42
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +152 -152
- package/cosmos.group.v1/module.js +108 -108
- package/cosmos.group.v1/module.ts +164 -164
- package/cosmos.group.v1/registry.js +18 -18
- package/cosmos.group.v1/registry.ts +18 -18
- package/cosmos.group.v1/rest.js +5 -5
- package/cosmos.group.v1/rest.ts +214 -214
- package/cosmos.mint.v1beta1/rest.ts +13 -13
- package/cosmos.nft.v1beta1/rest.ts +132 -132
- package/cosmos.slashing.v1beta1/rest.ts +19 -19
- package/cosmos.staking.v1beta1/module.js +39 -39
- package/cosmos.staking.v1beta1/module.ts +59 -59
- package/cosmos.staking.v1beta1/registry.js +6 -6
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.ts +95 -95
- package/cosmos.upgrade.v1beta1/module.js +16 -16
- package/cosmos.upgrade.v1beta1/module.ts +24 -24
- package/cosmos.upgrade.v1beta1/registry.js +2 -2
- package/cosmos.upgrade.v1beta1/registry.ts +2 -2
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +10 -10
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +13 -13
- package/ibc.applications.transfer.v1/rest.ts +3 -3
- package/ibc.core.channel.v1/rest.ts +44 -44
- package/package.json +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.js +0 -651
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.ts +0 -735
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.js +0 -102
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.ts +0 -134
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.js +0 -350
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.ts +0 -409
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.js +0 -254
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.ts +0 -281
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.js +0 -88
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.ts +0 -115
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.js +0 -308
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.ts +0 -355
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.js +0 -67
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.ts +0 -92
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.js +0 -73
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.ts +0 -102
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.js +0 -314
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.ts +0 -367
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.js +0 -1984
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.ts +0 -2382
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.js +0 -85
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.ts +0 -111
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.js +0 -148
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.ts +0 -183
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.js +0 -93
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.ts +0 -124
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set.js +0 -365
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set.ts +0 -416
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set_proposal.js +0 -93
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set_proposal.ts +0 -124
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.js +0 -4494
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.ts +0 -5526
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.js +0 -522
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.ts +0 -583
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting.js +0 -346
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting.ts +0 -417
|
@@ -7,20 +7,20 @@ import { msgTypes } from './registry';
|
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
-
import {
|
|
11
|
-
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
12
|
-
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
13
|
-
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
14
|
-
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
15
|
-
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
10
|
+
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
16
11
|
import { MsgVote } from "./types/cosmos/group/v1/tx";
|
|
12
|
+
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
17
13
|
import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
|
|
14
|
+
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
15
|
+
import { MsgExec } from "./types/cosmos/group/v1/tx";
|
|
18
16
|
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
17
|
+
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
19
18
|
import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
19
|
+
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
20
|
+
import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
|
|
21
|
+
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
22
|
+
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
20
23
|
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
21
|
-
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
22
|
-
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
23
|
-
import { MsgExec } from "./types/cosmos/group/v1/tx";
|
|
24
24
|
|
|
25
25
|
import { EventCreateGroup as typeEventCreateGroup} from "./types"
|
|
26
26
|
import { EventUpdateGroup as typeEventUpdateGroup} from "./types"
|
|
@@ -44,58 +44,52 @@ import { Proposal as typeProposal} from "./types"
|
|
|
44
44
|
import { TallyResult as typeTallyResult} from "./types"
|
|
45
45
|
import { Vote as typeVote} from "./types"
|
|
46
46
|
|
|
47
|
-
export {
|
|
47
|
+
export { MsgUpdateGroupPolicyAdmin, MsgVote, MsgWithdrawProposal, MsgSubmitProposal, MsgUpdateGroupAdmin, MsgExec, MsgCreateGroupPolicy, MsgLeaveGroup, MsgUpdateGroupMembers, MsgCreateGroup, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupMetadata };
|
|
48
48
|
|
|
49
|
-
type
|
|
50
|
-
value:
|
|
51
|
-
fee?: StdFee,
|
|
52
|
-
memo?: string
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
type sendMsgCreateGroupParams = {
|
|
56
|
-
value: MsgCreateGroup,
|
|
49
|
+
type sendMsgUpdateGroupPolicyAdminParams = {
|
|
50
|
+
value: MsgUpdateGroupPolicyAdmin,
|
|
57
51
|
fee?: StdFee,
|
|
58
52
|
memo?: string
|
|
59
53
|
};
|
|
60
54
|
|
|
61
|
-
type
|
|
62
|
-
value:
|
|
55
|
+
type sendMsgVoteParams = {
|
|
56
|
+
value: MsgVote,
|
|
63
57
|
fee?: StdFee,
|
|
64
58
|
memo?: string
|
|
65
59
|
};
|
|
66
60
|
|
|
67
|
-
type
|
|
68
|
-
value:
|
|
61
|
+
type sendMsgWithdrawProposalParams = {
|
|
62
|
+
value: MsgWithdrawProposal,
|
|
69
63
|
fee?: StdFee,
|
|
70
64
|
memo?: string
|
|
71
65
|
};
|
|
72
66
|
|
|
73
|
-
type
|
|
74
|
-
value:
|
|
67
|
+
type sendMsgSubmitProposalParams = {
|
|
68
|
+
value: MsgSubmitProposal,
|
|
75
69
|
fee?: StdFee,
|
|
76
70
|
memo?: string
|
|
77
71
|
};
|
|
78
72
|
|
|
79
|
-
type
|
|
80
|
-
value:
|
|
73
|
+
type sendMsgUpdateGroupAdminParams = {
|
|
74
|
+
value: MsgUpdateGroupAdmin,
|
|
81
75
|
fee?: StdFee,
|
|
82
76
|
memo?: string
|
|
83
77
|
};
|
|
84
78
|
|
|
85
|
-
type
|
|
86
|
-
value:
|
|
79
|
+
type sendMsgExecParams = {
|
|
80
|
+
value: MsgExec,
|
|
87
81
|
fee?: StdFee,
|
|
88
82
|
memo?: string
|
|
89
83
|
};
|
|
90
84
|
|
|
91
|
-
type
|
|
92
|
-
value:
|
|
85
|
+
type sendMsgCreateGroupPolicyParams = {
|
|
86
|
+
value: MsgCreateGroupPolicy,
|
|
93
87
|
fee?: StdFee,
|
|
94
88
|
memo?: string
|
|
95
89
|
};
|
|
96
90
|
|
|
97
|
-
type
|
|
98
|
-
value:
|
|
91
|
+
type sendMsgLeaveGroupParams = {
|
|
92
|
+
value: MsgLeaveGroup,
|
|
99
93
|
fee?: StdFee,
|
|
100
94
|
memo?: string
|
|
101
95
|
};
|
|
@@ -106,85 +100,91 @@ type sendMsgUpdateGroupMembersParams = {
|
|
|
106
100
|
memo?: string
|
|
107
101
|
};
|
|
108
102
|
|
|
109
|
-
type
|
|
110
|
-
value:
|
|
103
|
+
type sendMsgCreateGroupParams = {
|
|
104
|
+
value: MsgCreateGroup,
|
|
111
105
|
fee?: StdFee,
|
|
112
106
|
memo?: string
|
|
113
107
|
};
|
|
114
108
|
|
|
115
|
-
type
|
|
116
|
-
value:
|
|
109
|
+
type sendMsgCreateGroupWithPolicyParams = {
|
|
110
|
+
value: MsgCreateGroupWithPolicy,
|
|
117
111
|
fee?: StdFee,
|
|
118
112
|
memo?: string
|
|
119
113
|
};
|
|
120
114
|
|
|
121
|
-
type
|
|
122
|
-
value:
|
|
115
|
+
type sendMsgUpdateGroupPolicyMetadataParams = {
|
|
116
|
+
value: MsgUpdateGroupPolicyMetadata,
|
|
123
117
|
fee?: StdFee,
|
|
124
118
|
memo?: string
|
|
125
119
|
};
|
|
126
120
|
|
|
127
|
-
type
|
|
128
|
-
value:
|
|
121
|
+
type sendMsgUpdateGroupPolicyDecisionPolicyParams = {
|
|
122
|
+
value: MsgUpdateGroupPolicyDecisionPolicy,
|
|
129
123
|
fee?: StdFee,
|
|
130
124
|
memo?: string
|
|
131
125
|
};
|
|
132
126
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
type msgCreateGroupParams = {
|
|
139
|
-
value: MsgCreateGroup,
|
|
127
|
+
type sendMsgUpdateGroupMetadataParams = {
|
|
128
|
+
value: MsgUpdateGroupMetadata,
|
|
129
|
+
fee?: StdFee,
|
|
130
|
+
memo?: string
|
|
140
131
|
};
|
|
141
132
|
|
|
142
|
-
type msgUpdateGroupAdminParams = {
|
|
143
|
-
value: MsgUpdateGroupAdmin,
|
|
144
|
-
};
|
|
145
133
|
|
|
146
|
-
type
|
|
147
|
-
value:
|
|
134
|
+
type msgUpdateGroupPolicyAdminParams = {
|
|
135
|
+
value: MsgUpdateGroupPolicyAdmin,
|
|
148
136
|
};
|
|
149
137
|
|
|
150
|
-
type
|
|
151
|
-
value:
|
|
138
|
+
type msgVoteParams = {
|
|
139
|
+
value: MsgVote,
|
|
152
140
|
};
|
|
153
141
|
|
|
154
142
|
type msgWithdrawProposalParams = {
|
|
155
143
|
value: MsgWithdrawProposal,
|
|
156
144
|
};
|
|
157
145
|
|
|
158
|
-
type msgVoteParams = {
|
|
159
|
-
value: MsgVote,
|
|
160
|
-
};
|
|
161
|
-
|
|
162
146
|
type msgSubmitProposalParams = {
|
|
163
147
|
value: MsgSubmitProposal,
|
|
164
148
|
};
|
|
165
149
|
|
|
150
|
+
type msgUpdateGroupAdminParams = {
|
|
151
|
+
value: MsgUpdateGroupAdmin,
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
type msgExecParams = {
|
|
155
|
+
value: MsgExec,
|
|
156
|
+
};
|
|
157
|
+
|
|
166
158
|
type msgCreateGroupPolicyParams = {
|
|
167
159
|
value: MsgCreateGroupPolicy,
|
|
168
160
|
};
|
|
169
161
|
|
|
162
|
+
type msgLeaveGroupParams = {
|
|
163
|
+
value: MsgLeaveGroup,
|
|
164
|
+
};
|
|
165
|
+
|
|
170
166
|
type msgUpdateGroupMembersParams = {
|
|
171
167
|
value: MsgUpdateGroupMembers,
|
|
172
168
|
};
|
|
173
169
|
|
|
174
|
-
type
|
|
175
|
-
value:
|
|
170
|
+
type msgCreateGroupParams = {
|
|
171
|
+
value: MsgCreateGroup,
|
|
176
172
|
};
|
|
177
173
|
|
|
178
|
-
type
|
|
179
|
-
value:
|
|
174
|
+
type msgCreateGroupWithPolicyParams = {
|
|
175
|
+
value: MsgCreateGroupWithPolicy,
|
|
180
176
|
};
|
|
181
177
|
|
|
182
|
-
type
|
|
183
|
-
value:
|
|
178
|
+
type msgUpdateGroupPolicyMetadataParams = {
|
|
179
|
+
value: MsgUpdateGroupPolicyMetadata,
|
|
184
180
|
};
|
|
185
181
|
|
|
186
|
-
type
|
|
187
|
-
value:
|
|
182
|
+
type msgUpdateGroupPolicyDecisionPolicyParams = {
|
|
183
|
+
value: MsgUpdateGroupPolicyDecisionPolicy,
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
type msgUpdateGroupMetadataParams = {
|
|
187
|
+
value: MsgUpdateGroupMetadata,
|
|
188
188
|
};
|
|
189
189
|
|
|
190
190
|
|
|
@@ -217,312 +217,312 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
217
217
|
|
|
218
218
|
return {
|
|
219
219
|
|
|
220
|
-
async
|
|
220
|
+
async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }: sendMsgUpdateGroupPolicyAdminParams): Promise<DeliverTxResponse> {
|
|
221
221
|
if (!signer) {
|
|
222
|
-
throw new Error('TxClient:
|
|
222
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Unable to sign Tx. Signer is not present.')
|
|
223
223
|
}
|
|
224
224
|
try {
|
|
225
225
|
const { address } = (await signer.getAccounts())[0];
|
|
226
226
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
227
|
-
let msg = this.
|
|
227
|
+
let msg = this.msgUpdateGroupPolicyAdmin({ value: MsgUpdateGroupPolicyAdmin.fromPartial(value) })
|
|
228
228
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
229
229
|
} catch (e: any) {
|
|
230
|
-
throw new Error('TxClient:
|
|
230
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: '+ e.message)
|
|
231
231
|
}
|
|
232
232
|
},
|
|
233
233
|
|
|
234
|
-
async
|
|
234
|
+
async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse> {
|
|
235
235
|
if (!signer) {
|
|
236
|
-
throw new Error('TxClient:
|
|
236
|
+
throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.')
|
|
237
237
|
}
|
|
238
238
|
try {
|
|
239
239
|
const { address } = (await signer.getAccounts())[0];
|
|
240
240
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
241
|
-
let msg = this.
|
|
241
|
+
let msg = this.msgVote({ value: MsgVote.fromPartial(value) })
|
|
242
242
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
243
243
|
} catch (e: any) {
|
|
244
|
-
throw new Error('TxClient:
|
|
244
|
+
throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message)
|
|
245
245
|
}
|
|
246
246
|
},
|
|
247
247
|
|
|
248
|
-
async
|
|
248
|
+
async sendMsgWithdrawProposal({ value, fee, memo }: sendMsgWithdrawProposalParams): Promise<DeliverTxResponse> {
|
|
249
249
|
if (!signer) {
|
|
250
|
-
throw new Error('TxClient:
|
|
250
|
+
throw new Error('TxClient:sendMsgWithdrawProposal: Unable to sign Tx. Signer is not present.')
|
|
251
251
|
}
|
|
252
252
|
try {
|
|
253
253
|
const { address } = (await signer.getAccounts())[0];
|
|
254
254
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
255
|
-
let msg = this.
|
|
255
|
+
let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) })
|
|
256
256
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
257
257
|
} catch (e: any) {
|
|
258
|
-
throw new Error('TxClient:
|
|
258
|
+
throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: '+ e.message)
|
|
259
259
|
}
|
|
260
260
|
},
|
|
261
261
|
|
|
262
|
-
async
|
|
262
|
+
async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse> {
|
|
263
263
|
if (!signer) {
|
|
264
|
-
throw new Error('TxClient:
|
|
264
|
+
throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.')
|
|
265
265
|
}
|
|
266
266
|
try {
|
|
267
267
|
const { address } = (await signer.getAccounts())[0];
|
|
268
268
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
269
|
-
let msg = this.
|
|
269
|
+
let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) })
|
|
270
270
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
271
271
|
} catch (e: any) {
|
|
272
|
-
throw new Error('TxClient:
|
|
272
|
+
throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message)
|
|
273
273
|
}
|
|
274
274
|
},
|
|
275
275
|
|
|
276
|
-
async
|
|
276
|
+
async sendMsgUpdateGroupAdmin({ value, fee, memo }: sendMsgUpdateGroupAdminParams): Promise<DeliverTxResponse> {
|
|
277
277
|
if (!signer) {
|
|
278
|
-
throw new Error('TxClient:
|
|
278
|
+
throw new Error('TxClient:sendMsgUpdateGroupAdmin: Unable to sign Tx. Signer is not present.')
|
|
279
279
|
}
|
|
280
280
|
try {
|
|
281
281
|
const { address } = (await signer.getAccounts())[0];
|
|
282
282
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
283
|
-
let msg = this.
|
|
283
|
+
let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) })
|
|
284
284
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
285
285
|
} catch (e: any) {
|
|
286
|
-
throw new Error('TxClient:
|
|
286
|
+
throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: '+ e.message)
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
289
|
|
|
290
|
-
async
|
|
290
|
+
async sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise<DeliverTxResponse> {
|
|
291
291
|
if (!signer) {
|
|
292
|
-
throw new Error('TxClient:
|
|
292
|
+
throw new Error('TxClient:sendMsgExec: Unable to sign Tx. Signer is not present.')
|
|
293
293
|
}
|
|
294
294
|
try {
|
|
295
295
|
const { address } = (await signer.getAccounts())[0];
|
|
296
296
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
297
|
-
let msg = this.
|
|
297
|
+
let msg = this.msgExec({ value: MsgExec.fromPartial(value) })
|
|
298
298
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
299
299
|
} catch (e: any) {
|
|
300
|
-
throw new Error('TxClient:
|
|
300
|
+
throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: '+ e.message)
|
|
301
301
|
}
|
|
302
302
|
},
|
|
303
303
|
|
|
304
|
-
async
|
|
304
|
+
async sendMsgCreateGroupPolicy({ value, fee, memo }: sendMsgCreateGroupPolicyParams): Promise<DeliverTxResponse> {
|
|
305
305
|
if (!signer) {
|
|
306
|
-
throw new Error('TxClient:
|
|
306
|
+
throw new Error('TxClient:sendMsgCreateGroupPolicy: Unable to sign Tx. Signer is not present.')
|
|
307
307
|
}
|
|
308
308
|
try {
|
|
309
309
|
const { address } = (await signer.getAccounts())[0];
|
|
310
310
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
311
|
-
let msg = this.
|
|
311
|
+
let msg = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) })
|
|
312
312
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
313
313
|
} catch (e: any) {
|
|
314
|
-
throw new Error('TxClient:
|
|
314
|
+
throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: '+ e.message)
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
317
|
|
|
318
|
-
async
|
|
318
|
+
async sendMsgLeaveGroup({ value, fee, memo }: sendMsgLeaveGroupParams): Promise<DeliverTxResponse> {
|
|
319
319
|
if (!signer) {
|
|
320
|
-
throw new Error('TxClient:
|
|
320
|
+
throw new Error('TxClient:sendMsgLeaveGroup: Unable to sign Tx. Signer is not present.')
|
|
321
321
|
}
|
|
322
322
|
try {
|
|
323
323
|
const { address } = (await signer.getAccounts())[0];
|
|
324
324
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
325
|
-
let msg = this.
|
|
325
|
+
let msg = this.msgLeaveGroup({ value: MsgLeaveGroup.fromPartial(value) })
|
|
326
326
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
327
327
|
} catch (e: any) {
|
|
328
|
-
throw new Error('TxClient:
|
|
328
|
+
throw new Error('TxClient:sendMsgLeaveGroup: Could not broadcast Tx: '+ e.message)
|
|
329
329
|
}
|
|
330
330
|
},
|
|
331
331
|
|
|
332
|
-
async
|
|
332
|
+
async sendMsgUpdateGroupMembers({ value, fee, memo }: sendMsgUpdateGroupMembersParams): Promise<DeliverTxResponse> {
|
|
333
333
|
if (!signer) {
|
|
334
|
-
throw new Error('TxClient:
|
|
334
|
+
throw new Error('TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.')
|
|
335
335
|
}
|
|
336
336
|
try {
|
|
337
337
|
const { address } = (await signer.getAccounts())[0];
|
|
338
338
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
339
|
-
let msg = this.
|
|
339
|
+
let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) })
|
|
340
340
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
341
341
|
} catch (e: any) {
|
|
342
|
-
throw new Error('TxClient:
|
|
342
|
+
throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: '+ e.message)
|
|
343
343
|
}
|
|
344
344
|
},
|
|
345
345
|
|
|
346
|
-
async
|
|
346
|
+
async sendMsgCreateGroup({ value, fee, memo }: sendMsgCreateGroupParams): Promise<DeliverTxResponse> {
|
|
347
347
|
if (!signer) {
|
|
348
|
-
throw new Error('TxClient:
|
|
348
|
+
throw new Error('TxClient:sendMsgCreateGroup: Unable to sign Tx. Signer is not present.')
|
|
349
349
|
}
|
|
350
350
|
try {
|
|
351
351
|
const { address } = (await signer.getAccounts())[0];
|
|
352
352
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
353
|
-
let msg = this.
|
|
353
|
+
let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) })
|
|
354
354
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
355
355
|
} catch (e: any) {
|
|
356
|
-
throw new Error('TxClient:
|
|
356
|
+
throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: '+ e.message)
|
|
357
357
|
}
|
|
358
358
|
},
|
|
359
359
|
|
|
360
|
-
async
|
|
360
|
+
async sendMsgCreateGroupWithPolicy({ value, fee, memo }: sendMsgCreateGroupWithPolicyParams): Promise<DeliverTxResponse> {
|
|
361
361
|
if (!signer) {
|
|
362
|
-
throw new Error('TxClient:
|
|
362
|
+
throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Unable to sign Tx. Signer is not present.')
|
|
363
363
|
}
|
|
364
364
|
try {
|
|
365
365
|
const { address } = (await signer.getAccounts())[0];
|
|
366
366
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
367
|
-
let msg = this.
|
|
367
|
+
let msg = this.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.fromPartial(value) })
|
|
368
368
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
369
369
|
} catch (e: any) {
|
|
370
|
-
throw new Error('TxClient:
|
|
370
|
+
throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: '+ e.message)
|
|
371
371
|
}
|
|
372
372
|
},
|
|
373
373
|
|
|
374
|
-
async
|
|
374
|
+
async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataParams): Promise<DeliverTxResponse> {
|
|
375
375
|
if (!signer) {
|
|
376
|
-
throw new Error('TxClient:
|
|
376
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Unable to sign Tx. Signer is not present.')
|
|
377
377
|
}
|
|
378
378
|
try {
|
|
379
379
|
const { address } = (await signer.getAccounts())[0];
|
|
380
380
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
381
|
-
let msg = this.
|
|
381
|
+
let msg = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) })
|
|
382
382
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
383
383
|
} catch (e: any) {
|
|
384
|
-
throw new Error('TxClient:
|
|
384
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: '+ e.message)
|
|
385
385
|
}
|
|
386
386
|
},
|
|
387
387
|
|
|
388
|
-
async
|
|
388
|
+
async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyParams): Promise<DeliverTxResponse> {
|
|
389
389
|
if (!signer) {
|
|
390
|
-
throw new Error('TxClient:
|
|
390
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Unable to sign Tx. Signer is not present.')
|
|
391
391
|
}
|
|
392
392
|
try {
|
|
393
393
|
const { address } = (await signer.getAccounts())[0];
|
|
394
394
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
395
|
-
let msg = this.
|
|
395
|
+
let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) })
|
|
396
396
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
397
397
|
} catch (e: any) {
|
|
398
|
-
throw new Error('TxClient:
|
|
398
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: '+ e.message)
|
|
399
399
|
}
|
|
400
400
|
},
|
|
401
401
|
|
|
402
|
-
async
|
|
402
|
+
async sendMsgUpdateGroupMetadata({ value, fee, memo }: sendMsgUpdateGroupMetadataParams): Promise<DeliverTxResponse> {
|
|
403
403
|
if (!signer) {
|
|
404
|
-
throw new Error('TxClient:
|
|
404
|
+
throw new Error('TxClient:sendMsgUpdateGroupMetadata: Unable to sign Tx. Signer is not present.')
|
|
405
405
|
}
|
|
406
406
|
try {
|
|
407
407
|
const { address } = (await signer.getAccounts())[0];
|
|
408
408
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
409
|
-
let msg = this.
|
|
409
|
+
let msg = this.msgUpdateGroupMetadata({ value: MsgUpdateGroupMetadata.fromPartial(value) })
|
|
410
410
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
411
411
|
} catch (e: any) {
|
|
412
|
-
throw new Error('TxClient:
|
|
412
|
+
throw new Error('TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: '+ e.message)
|
|
413
413
|
}
|
|
414
414
|
},
|
|
415
415
|
|
|
416
416
|
|
|
417
|
-
|
|
417
|
+
msgUpdateGroupPolicyAdmin({ value }: msgUpdateGroupPolicyAdminParams): EncodeObject {
|
|
418
418
|
try {
|
|
419
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
419
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", value: MsgUpdateGroupPolicyAdmin.fromPartial( value ) }
|
|
420
420
|
} catch (e: any) {
|
|
421
|
-
throw new Error('TxClient:
|
|
421
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: ' + e.message)
|
|
422
422
|
}
|
|
423
423
|
},
|
|
424
424
|
|
|
425
|
-
|
|
425
|
+
msgVote({ value }: msgVoteParams): EncodeObject {
|
|
426
426
|
try {
|
|
427
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
427
|
+
return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial( value ) }
|
|
428
428
|
} catch (e: any) {
|
|
429
|
-
throw new Error('TxClient:
|
|
429
|
+
throw new Error('TxClient:MsgVote: Could not create message: ' + e.message)
|
|
430
430
|
}
|
|
431
431
|
},
|
|
432
432
|
|
|
433
|
-
|
|
433
|
+
msgWithdrawProposal({ value }: msgWithdrawProposalParams): EncodeObject {
|
|
434
434
|
try {
|
|
435
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
435
|
+
return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial( value ) }
|
|
436
436
|
} catch (e: any) {
|
|
437
|
-
throw new Error('TxClient:
|
|
437
|
+
throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message)
|
|
438
438
|
}
|
|
439
439
|
},
|
|
440
440
|
|
|
441
|
-
|
|
441
|
+
msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject {
|
|
442
442
|
try {
|
|
443
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
443
|
+
return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) }
|
|
444
444
|
} catch (e: any) {
|
|
445
|
-
throw new Error('TxClient:
|
|
445
|
+
throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message)
|
|
446
446
|
}
|
|
447
447
|
},
|
|
448
448
|
|
|
449
|
-
|
|
449
|
+
msgUpdateGroupAdmin({ value }: msgUpdateGroupAdminParams): EncodeObject {
|
|
450
450
|
try {
|
|
451
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
451
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial( value ) }
|
|
452
452
|
} catch (e: any) {
|
|
453
|
-
throw new Error('TxClient:
|
|
453
|
+
throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message)
|
|
454
454
|
}
|
|
455
455
|
},
|
|
456
456
|
|
|
457
|
-
|
|
457
|
+
msgExec({ value }: msgExecParams): EncodeObject {
|
|
458
458
|
try {
|
|
459
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
459
|
+
return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial( value ) }
|
|
460
460
|
} catch (e: any) {
|
|
461
|
-
throw new Error('TxClient:
|
|
461
|
+
throw new Error('TxClient:MsgExec: Could not create message: ' + e.message)
|
|
462
462
|
}
|
|
463
463
|
},
|
|
464
464
|
|
|
465
|
-
|
|
465
|
+
msgCreateGroupPolicy({ value }: msgCreateGroupPolicyParams): EncodeObject {
|
|
466
466
|
try {
|
|
467
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
467
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial( value ) }
|
|
468
468
|
} catch (e: any) {
|
|
469
|
-
throw new Error('TxClient:
|
|
469
|
+
throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message)
|
|
470
470
|
}
|
|
471
471
|
},
|
|
472
472
|
|
|
473
|
-
|
|
473
|
+
msgLeaveGroup({ value }: msgLeaveGroupParams): EncodeObject {
|
|
474
474
|
try {
|
|
475
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
475
|
+
return { typeUrl: "/cosmos.group.v1.MsgLeaveGroup", value: MsgLeaveGroup.fromPartial( value ) }
|
|
476
476
|
} catch (e: any) {
|
|
477
|
-
throw new Error('TxClient:
|
|
477
|
+
throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message)
|
|
478
478
|
}
|
|
479
479
|
},
|
|
480
480
|
|
|
481
|
-
|
|
481
|
+
msgUpdateGroupMembers({ value }: msgUpdateGroupMembersParams): EncodeObject {
|
|
482
482
|
try {
|
|
483
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
483
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial( value ) }
|
|
484
484
|
} catch (e: any) {
|
|
485
|
-
throw new Error('TxClient:
|
|
485
|
+
throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message)
|
|
486
486
|
}
|
|
487
487
|
},
|
|
488
488
|
|
|
489
|
-
|
|
489
|
+
msgCreateGroup({ value }: msgCreateGroupParams): EncodeObject {
|
|
490
490
|
try {
|
|
491
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
491
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial( value ) }
|
|
492
492
|
} catch (e: any) {
|
|
493
|
-
throw new Error('TxClient:
|
|
493
|
+
throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message)
|
|
494
494
|
}
|
|
495
495
|
},
|
|
496
496
|
|
|
497
|
-
|
|
497
|
+
msgCreateGroupWithPolicy({ value }: msgCreateGroupWithPolicyParams): EncodeObject {
|
|
498
498
|
try {
|
|
499
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
499
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial( value ) }
|
|
500
500
|
} catch (e: any) {
|
|
501
|
-
throw new Error('TxClient:
|
|
501
|
+
throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message)
|
|
502
502
|
}
|
|
503
503
|
},
|
|
504
504
|
|
|
505
|
-
|
|
505
|
+
msgUpdateGroupPolicyMetadata({ value }: msgUpdateGroupPolicyMetadataParams): EncodeObject {
|
|
506
506
|
try {
|
|
507
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
507
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial( value ) }
|
|
508
508
|
} catch (e: any) {
|
|
509
|
-
throw new Error('TxClient:
|
|
509
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message)
|
|
510
510
|
}
|
|
511
511
|
},
|
|
512
512
|
|
|
513
|
-
|
|
513
|
+
msgUpdateGroupPolicyDecisionPolicy({ value }: msgUpdateGroupPolicyDecisionPolicyParams): EncodeObject {
|
|
514
514
|
try {
|
|
515
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
515
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial( value ) }
|
|
516
516
|
} catch (e: any) {
|
|
517
|
-
throw new Error('TxClient:
|
|
517
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message)
|
|
518
518
|
}
|
|
519
519
|
},
|
|
520
520
|
|
|
521
|
-
|
|
521
|
+
msgUpdateGroupMetadata({ value }: msgUpdateGroupMetadataParams): EncodeObject {
|
|
522
522
|
try {
|
|
523
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
523
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial( value ) }
|
|
524
524
|
} catch (e: any) {
|
|
525
|
-
throw new Error('TxClient:
|
|
525
|
+
throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message)
|
|
526
526
|
}
|
|
527
527
|
},
|
|
528
528
|
|