decentralcardgame-cardchain-client-ts 0.0.1 → 0.0.3

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