decentralcardgame-cardchain-client-ts 0.0.15 → 0.0.17
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 +318 -383
- package/DecentralCardGame.cardchain.cardchain/module.ts +463 -558
- package/DecentralCardGame.cardchain.cardchain/registry.js +72 -78
- package/DecentralCardGame.cardchain.cardchain/registry.ts +72 -78
- package/DecentralCardGame.cardchain.cardchain/rest.js +77 -60
- package/DecentralCardGame.cardchain.cardchain/rest.ts +123 -76
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +657 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +741 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/copyright_proposal.js +102 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/copyright_proposal.ts +134 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.js +356 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.ts +415 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.js +254 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.ts +281 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/image.js +88 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/image.ts +115 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match.js +308 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match.ts +355 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match_reporter_proposal.js +67 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match_reporter_proposal.ts +92 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/num.js +73 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/num.ts +102 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.js +325 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.ts +380 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +2200 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +2633 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/running_average.js +85 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/running_average.ts +111 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/sell_offer.js +148 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/sell_offer.ts +183 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/server.js +93 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/server.ts +124 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.js +365 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.ts +416 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set_proposal.js +93 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set_proposal.ts +124 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +4185 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +5139 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +580 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.ts +652 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.js +346 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.ts +417 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +25 -23
- package/DecentralCardGame.cardchain.cardchain/types.ts +26 -22
- package/DecentralCardGame.cardchain.featureflag/index.js +5 -0
- package/DecentralCardGame.cardchain.featureflag/index.ts +6 -0
- package/DecentralCardGame.cardchain.featureflag/module.js +62 -0
- package/DecentralCardGame.cardchain.featureflag/module.ts +102 -0
- package/DecentralCardGame.cardchain.featureflag/registry.js +2 -0
- package/DecentralCardGame.cardchain.featureflag/registry.ts +7 -0
- package/DecentralCardGame.cardchain.featureflag/rest.js +128 -0
- package/DecentralCardGame.cardchain.featureflag/rest.ts +222 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/flag.js +67 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/flag.ts +92 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/genesis.js +135 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/genesis.ts +172 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/params.js +36 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/params.ts +58 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/proposal.js +76 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/proposal.ts +102 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/query.js +279 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/query.ts +371 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/tx.js +7 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/tx.ts +17 -0
- package/DecentralCardGame.cardchain.featureflag/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/DecentralCardGame.cardchain.featureflag/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/DecentralCardGame.cardchain.featureflag/types/gogoproto/gogo.js +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/gogoproto/gogo.ts +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/annotations.js +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/annotations.ts +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/http.js +260 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/http.ts +589 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/protobuf/descriptor.js +2830 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/protobuf/descriptor.ts +3753 -0
- package/DecentralCardGame.cardchain.featureflag/types.js +4 -0
- package/DecentralCardGame.cardchain.featureflag/types.ts +11 -0
- package/client.js +7 -7
- package/client.ts +9 -10
- package/cosmos.auth.v1beta1/module.js +0 -2
- package/cosmos.auth.v1beta1/module.ts +0 -2
- package/cosmos.auth.v1beta1/rest.js +3 -18
- package/cosmos.auth.v1beta1/rest.ts +3 -113
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +3 -104
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +4 -157
- package/cosmos.auth.v1beta1/types.js +1 -2
- package/cosmos.auth.v1beta1/types.ts +0 -2
- package/cosmos.authz.v1beta1/module.js +19 -19
- package/cosmos.authz.v1beta1/module.ts +29 -29
- package/cosmos.authz.v1beta1/registry.js +2 -2
- package/cosmos.authz.v1beta1/registry.ts +2 -2
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
- package/cosmos.bank.v1beta1/module.js +16 -16
- package/cosmos.bank.v1beta1/module.ts +24 -24
- package/cosmos.bank.v1beta1/registry.js +2 -2
- package/cosmos.bank.v1beta1/registry.ts +2 -2
- package/cosmos.bank.v1beta1/rest.js +6 -37
- package/cosmos.bank.v1beta1/rest.ts +6 -99
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +2 -18
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +2 -24
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +0 -9
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +2 -18
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +4 -25
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1 -230
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +5 -356
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +1 -206
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +1 -305
- package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
- package/cosmos.base.tendermint.v1beta1/rest.ts +27 -18
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +46 -16
- package/cosmos.crisis.v1beta1/module.js +1 -24
- package/cosmos.crisis.v1beta1/module.ts +1 -34
- package/cosmos.crisis.v1beta1/registry.js +0 -2
- package/cosmos.crisis.v1beta1/registry.ts +0 -2
- package/cosmos.crisis.v1beta1/rest.ts +0 -19
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +0 -95
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +1 -140
- package/cosmos.distribution.v1beta1/module.js +21 -67
- package/cosmos.distribution.v1beta1/module.ts +34 -100
- package/cosmos.distribution.v1beta1/registry.js +4 -8
- package/cosmos.distribution.v1beta1/registry.ts +4 -8
- package/cosmos.distribution.v1beta1/rest.js +0 -14
- package/cosmos.distribution.v1beta1/rest.ts +7 -66
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +0 -19
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +0 -120
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1 -158
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +0 -199
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +3 -300
- package/cosmos.evidence.v1beta1/rest.js +3 -4
- package/cosmos.evidence.v1beta1/rest.ts +3 -4
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +1 -7
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +2 -13
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +3 -25
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +0 -2
- package/cosmos.gov.v1/module.js +21 -46
- package/cosmos.gov.v1/module.ts +33 -68
- package/cosmos.gov.v1/registry.js +4 -6
- package/cosmos.gov.v1/registry.ts +4 -6
- package/cosmos.gov.v1/rest.ts +41 -155
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +1 -13
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +5 -40
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +0 -179
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +6 -277
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +2 -13
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +7 -45
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +2 -113
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +3 -186
- package/cosmos.gov.v1/types.js +1 -2
- package/cosmos.gov.v1/types.ts +0 -2
- package/cosmos.gov.v1beta1/module.js +24 -24
- package/cosmos.gov.v1beta1/module.ts +36 -36
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +96 -65
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +10 -45
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +2 -4
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +1 -16
- package/cosmos.group.v1/module.js +92 -92
- package/cosmos.group.v1/module.ts +138 -138
- package/cosmos.group.v1/registry.js +16 -16
- package/cosmos.group.v1/registry.ts +16 -16
- package/cosmos.group.v1/rest.js +3 -3
- package/cosmos.group.v1/rest.ts +9 -29
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +34 -52
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +49 -79
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +0 -20
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +6 -46
- package/cosmos.mint.v1beta1/rest.ts +1 -9
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
- package/cosmos.nft.v1beta1/rest.ts +22 -18
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +0 -10
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +0 -1
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +0 -20
- package/cosmos.slashing.v1beta1/rest.ts +0 -8
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +0 -94
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +0 -139
- package/cosmos.staking.v1beta1/module.js +39 -41
- package/cosmos.staking.v1beta1/module.ts +59 -61
- package/cosmos.staking.v1beta1/registry.js +6 -6
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.js +7 -7
- package/cosmos.staking.v1beta1/rest.ts +8 -49
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +5 -36
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +2 -180
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +3 -206
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +1 -94
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1 -138
- package/cosmos.staking.v1beta1/types.js +1 -2
- package/cosmos.staking.v1beta1/types.ts +0 -2
- package/cosmos.tx.v1beta1/rest.js +2 -66
- package/cosmos.tx.v1beta1/rest.ts +16 -177
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +2 -360
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +2 -524
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +266 -592
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +332 -703
- package/cosmos.tx.v1beta1/types/tendermint/types/params.js +17 -8
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +25 -9
- package/cosmos.upgrade.v1beta1/rest.ts +1 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -1
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +2 -13
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +4 -16
- package/ibc.applications.transfer.v1/module.js +27 -5
- package/ibc.applications.transfer.v1/module.ts +34 -5
- package/ibc.applications.transfer.v1/registry.js +4 -1
- package/ibc.applications.transfer.v1/registry.ts +2 -0
- package/ibc.applications.transfer.v1/rest.js +1 -15
- package/ibc.applications.transfer.v1/rest.ts +1 -30
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +1 -16
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +2 -23
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +0 -91
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +0 -120
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.applications.transfer.v1/types.js +1 -3
- package/ibc.applications.transfer.v1/types.ts +0 -4
- package/ibc.core.channel.v1/rest.ts +0 -1
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +2 -13
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +2 -14
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.client.v1/rest.ts +1 -5
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +8 -9
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +14 -28
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +0 -26
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +0 -34
- package/ibc.core.connection.v1/types/proofs.js +1126 -0
- package/ibc.core.connection.v1/types/proofs.ts +1408 -0
- package/index.js +3 -3
- package/index.ts +3 -3
- package/package.json +1 -1
|
@@ -8,19 +8,19 @@ import { IgniteClient } from "../client"
|
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
10
|
import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
|
|
11
|
+
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
12
|
+
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
11
13
|
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
14
|
+
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
15
|
+
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
15
16
|
import { MsgVote } from "./types/cosmos/group/v1/tx";
|
|
16
17
|
import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
|
|
17
|
-
import {
|
|
18
|
-
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
19
|
-
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
20
|
-
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
18
|
+
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
21
19
|
import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
20
|
+
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
21
|
+
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
22
22
|
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
23
|
-
import {
|
|
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,7 +44,7 @@ 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 { MsgCreateGroupWithPolicy,
|
|
47
|
+
export { MsgCreateGroupWithPolicy, MsgCreateGroup, MsgUpdateGroupAdmin, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyDecisionPolicy, MsgWithdrawProposal, MsgVote, MsgSubmitProposal, MsgCreateGroupPolicy, MsgUpdateGroupMembers, MsgUpdateGroupMetadata, MsgLeaveGroup, MsgUpdateGroupPolicyAdmin, MsgExec };
|
|
48
48
|
|
|
49
49
|
type sendMsgCreateGroupWithPolicyParams = {
|
|
50
50
|
value: MsgCreateGroupWithPolicy,
|
|
@@ -52,68 +52,68 @@ type sendMsgCreateGroupWithPolicyParams = {
|
|
|
52
52
|
memo?: string
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
type
|
|
56
|
-
value:
|
|
55
|
+
type sendMsgCreateGroupParams = {
|
|
56
|
+
value: MsgCreateGroup,
|
|
57
57
|
fee?: StdFee,
|
|
58
58
|
memo?: string
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
type
|
|
62
|
-
value:
|
|
61
|
+
type sendMsgUpdateGroupAdminParams = {
|
|
62
|
+
value: MsgUpdateGroupAdmin,
|
|
63
63
|
fee?: StdFee,
|
|
64
64
|
memo?: string
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
type
|
|
68
|
-
value:
|
|
67
|
+
type sendMsgUpdateGroupPolicyMetadataParams = {
|
|
68
|
+
value: MsgUpdateGroupPolicyMetadata,
|
|
69
69
|
fee?: StdFee,
|
|
70
70
|
memo?: string
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
type
|
|
74
|
-
value:
|
|
73
|
+
type sendMsgUpdateGroupPolicyDecisionPolicyParams = {
|
|
74
|
+
value: MsgUpdateGroupPolicyDecisionPolicy,
|
|
75
75
|
fee?: StdFee,
|
|
76
76
|
memo?: string
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
type
|
|
80
|
-
value:
|
|
79
|
+
type sendMsgWithdrawProposalParams = {
|
|
80
|
+
value: MsgWithdrawProposal,
|
|
81
81
|
fee?: StdFee,
|
|
82
82
|
memo?: string
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
type
|
|
86
|
-
value:
|
|
85
|
+
type sendMsgVoteParams = {
|
|
86
|
+
value: MsgVote,
|
|
87
87
|
fee?: StdFee,
|
|
88
88
|
memo?: string
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
-
type
|
|
92
|
-
value:
|
|
91
|
+
type sendMsgSubmitProposalParams = {
|
|
92
|
+
value: MsgSubmitProposal,
|
|
93
93
|
fee?: StdFee,
|
|
94
94
|
memo?: string
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
type
|
|
98
|
-
value:
|
|
97
|
+
type sendMsgCreateGroupPolicyParams = {
|
|
98
|
+
value: MsgCreateGroupPolicy,
|
|
99
99
|
fee?: StdFee,
|
|
100
100
|
memo?: string
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
type
|
|
104
|
-
value:
|
|
103
|
+
type sendMsgUpdateGroupMembersParams = {
|
|
104
|
+
value: MsgUpdateGroupMembers,
|
|
105
105
|
fee?: StdFee,
|
|
106
106
|
memo?: string
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
-
type
|
|
110
|
-
value:
|
|
109
|
+
type sendMsgUpdateGroupMetadataParams = {
|
|
110
|
+
value: MsgUpdateGroupMetadata,
|
|
111
111
|
fee?: StdFee,
|
|
112
112
|
memo?: string
|
|
113
113
|
};
|
|
114
114
|
|
|
115
|
-
type
|
|
116
|
-
value:
|
|
115
|
+
type sendMsgLeaveGroupParams = {
|
|
116
|
+
value: MsgLeaveGroup,
|
|
117
117
|
fee?: StdFee,
|
|
118
118
|
memo?: string
|
|
119
119
|
};
|
|
@@ -124,8 +124,8 @@ type sendMsgUpdateGroupPolicyAdminParams = {
|
|
|
124
124
|
memo?: string
|
|
125
125
|
};
|
|
126
126
|
|
|
127
|
-
type
|
|
128
|
-
value:
|
|
127
|
+
type sendMsgExecParams = {
|
|
128
|
+
value: MsgExec,
|
|
129
129
|
fee?: StdFee,
|
|
130
130
|
memo?: string
|
|
131
131
|
};
|
|
@@ -135,20 +135,24 @@ type msgCreateGroupWithPolicyParams = {
|
|
|
135
135
|
value: MsgCreateGroupWithPolicy,
|
|
136
136
|
};
|
|
137
137
|
|
|
138
|
-
type
|
|
139
|
-
value:
|
|
138
|
+
type msgCreateGroupParams = {
|
|
139
|
+
value: MsgCreateGroup,
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
-
type
|
|
143
|
-
value:
|
|
142
|
+
type msgUpdateGroupAdminParams = {
|
|
143
|
+
value: MsgUpdateGroupAdmin,
|
|
144
144
|
};
|
|
145
145
|
|
|
146
|
-
type
|
|
147
|
-
value:
|
|
146
|
+
type msgUpdateGroupPolicyMetadataParams = {
|
|
147
|
+
value: MsgUpdateGroupPolicyMetadata,
|
|
148
148
|
};
|
|
149
149
|
|
|
150
|
-
type
|
|
151
|
-
value:
|
|
150
|
+
type msgUpdateGroupPolicyDecisionPolicyParams = {
|
|
151
|
+
value: MsgUpdateGroupPolicyDecisionPolicy,
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
type msgWithdrawProposalParams = {
|
|
155
|
+
value: MsgWithdrawProposal,
|
|
152
156
|
};
|
|
153
157
|
|
|
154
158
|
type msgVoteParams = {
|
|
@@ -159,32 +163,28 @@ type msgSubmitProposalParams = {
|
|
|
159
163
|
value: MsgSubmitProposal,
|
|
160
164
|
};
|
|
161
165
|
|
|
162
|
-
type
|
|
163
|
-
value:
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
type msgUpdateGroupAdminParams = {
|
|
167
|
-
value: MsgUpdateGroupAdmin,
|
|
166
|
+
type msgCreateGroupPolicyParams = {
|
|
167
|
+
value: MsgCreateGroupPolicy,
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
-
type
|
|
171
|
-
value:
|
|
170
|
+
type msgUpdateGroupMembersParams = {
|
|
171
|
+
value: MsgUpdateGroupMembers,
|
|
172
172
|
};
|
|
173
173
|
|
|
174
|
-
type
|
|
175
|
-
value:
|
|
174
|
+
type msgUpdateGroupMetadataParams = {
|
|
175
|
+
value: MsgUpdateGroupMetadata,
|
|
176
176
|
};
|
|
177
177
|
|
|
178
|
-
type
|
|
179
|
-
value:
|
|
178
|
+
type msgLeaveGroupParams = {
|
|
179
|
+
value: MsgLeaveGroup,
|
|
180
180
|
};
|
|
181
181
|
|
|
182
182
|
type msgUpdateGroupPolicyAdminParams = {
|
|
183
183
|
value: MsgUpdateGroupPolicyAdmin,
|
|
184
184
|
};
|
|
185
185
|
|
|
186
|
-
type
|
|
187
|
-
value:
|
|
186
|
+
type msgExecParams = {
|
|
187
|
+
value: MsgExec,
|
|
188
188
|
};
|
|
189
189
|
|
|
190
190
|
|
|
@@ -231,157 +231,157 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
231
231
|
}
|
|
232
232
|
},
|
|
233
233
|
|
|
234
|
-
async
|
|
234
|
+
async sendMsgCreateGroup({ value, fee, memo }: sendMsgCreateGroupParams): Promise<DeliverTxResponse> {
|
|
235
235
|
if (!signer) {
|
|
236
|
-
throw new Error('TxClient:
|
|
236
|
+
throw new Error('TxClient:sendMsgCreateGroup: 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.msgCreateGroup({ value: MsgCreateGroup.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:sendMsgCreateGroup: Could not broadcast Tx: '+ e.message)
|
|
245
245
|
}
|
|
246
246
|
},
|
|
247
247
|
|
|
248
|
-
async
|
|
248
|
+
async sendMsgUpdateGroupAdmin({ value, fee, memo }: sendMsgUpdateGroupAdminParams): Promise<DeliverTxResponse> {
|
|
249
249
|
if (!signer) {
|
|
250
|
-
throw new Error('TxClient:
|
|
250
|
+
throw new Error('TxClient:sendMsgUpdateGroupAdmin: 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.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.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:sendMsgUpdateGroupAdmin: Could not broadcast Tx: '+ e.message)
|
|
259
259
|
}
|
|
260
260
|
},
|
|
261
261
|
|
|
262
|
-
async
|
|
262
|
+
async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataParams): Promise<DeliverTxResponse> {
|
|
263
263
|
if (!signer) {
|
|
264
|
-
throw new Error('TxClient:
|
|
264
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: 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.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.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:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: '+ e.message)
|
|
273
273
|
}
|
|
274
274
|
},
|
|
275
275
|
|
|
276
|
-
async
|
|
276
|
+
async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyParams): Promise<DeliverTxResponse> {
|
|
277
277
|
if (!signer) {
|
|
278
|
-
throw new Error('TxClient:
|
|
278
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: 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.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.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:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: '+ e.message)
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
289
|
|
|
290
|
-
async
|
|
290
|
+
async sendMsgWithdrawProposal({ value, fee, memo }: sendMsgWithdrawProposalParams): Promise<DeliverTxResponse> {
|
|
291
291
|
if (!signer) {
|
|
292
|
-
throw new Error('TxClient:
|
|
292
|
+
throw new Error('TxClient:sendMsgWithdrawProposal: 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.msgWithdrawProposal({ value: MsgWithdrawProposal.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:sendMsgWithdrawProposal: Could not broadcast Tx: '+ e.message)
|
|
301
301
|
}
|
|
302
302
|
},
|
|
303
303
|
|
|
304
|
-
async
|
|
304
|
+
async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse> {
|
|
305
305
|
if (!signer) {
|
|
306
|
-
throw new Error('TxClient:
|
|
306
|
+
throw new Error('TxClient:sendMsgVote: 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.msgVote({ value: MsgVote.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:sendMsgVote: Could not broadcast Tx: '+ e.message)
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
317
|
|
|
318
|
-
async
|
|
318
|
+
async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse> {
|
|
319
319
|
if (!signer) {
|
|
320
|
-
throw new Error('TxClient:
|
|
320
|
+
throw new Error('TxClient:sendMsgSubmitProposal: 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.msgSubmitProposal({ value: MsgSubmitProposal.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:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message)
|
|
329
329
|
}
|
|
330
330
|
},
|
|
331
331
|
|
|
332
|
-
async
|
|
332
|
+
async sendMsgCreateGroupPolicy({ value, fee, memo }: sendMsgCreateGroupPolicyParams): Promise<DeliverTxResponse> {
|
|
333
333
|
if (!signer) {
|
|
334
|
-
throw new Error('TxClient:
|
|
334
|
+
throw new Error('TxClient:sendMsgCreateGroupPolicy: 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.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.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:sendMsgCreateGroupPolicy: Could not broadcast Tx: '+ e.message)
|
|
343
343
|
}
|
|
344
344
|
},
|
|
345
345
|
|
|
346
|
-
async
|
|
346
|
+
async sendMsgUpdateGroupMembers({ value, fee, memo }: sendMsgUpdateGroupMembersParams): Promise<DeliverTxResponse> {
|
|
347
347
|
if (!signer) {
|
|
348
|
-
throw new Error('TxClient:
|
|
348
|
+
throw new Error('TxClient:sendMsgUpdateGroupMembers: 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.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.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:sendMsgUpdateGroupMembers: Could not broadcast Tx: '+ e.message)
|
|
357
357
|
}
|
|
358
358
|
},
|
|
359
359
|
|
|
360
|
-
async
|
|
360
|
+
async sendMsgUpdateGroupMetadata({ value, fee, memo }: sendMsgUpdateGroupMetadataParams): Promise<DeliverTxResponse> {
|
|
361
361
|
if (!signer) {
|
|
362
|
-
throw new Error('TxClient:
|
|
362
|
+
throw new Error('TxClient:sendMsgUpdateGroupMetadata: 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.msgUpdateGroupMetadata({ value: MsgUpdateGroupMetadata.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:sendMsgUpdateGroupMetadata: Could not broadcast Tx: '+ e.message)
|
|
371
371
|
}
|
|
372
372
|
},
|
|
373
373
|
|
|
374
|
-
async
|
|
374
|
+
async sendMsgLeaveGroup({ value, fee, memo }: sendMsgLeaveGroupParams): Promise<DeliverTxResponse> {
|
|
375
375
|
if (!signer) {
|
|
376
|
-
throw new Error('TxClient:
|
|
376
|
+
throw new Error('TxClient:sendMsgLeaveGroup: 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.msgLeaveGroup({ value: MsgLeaveGroup.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:sendMsgLeaveGroup: Could not broadcast Tx: '+ e.message)
|
|
385
385
|
}
|
|
386
386
|
},
|
|
387
387
|
|
|
@@ -399,17 +399,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
399
399
|
}
|
|
400
400
|
},
|
|
401
401
|
|
|
402
|
-
async
|
|
402
|
+
async sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise<DeliverTxResponse> {
|
|
403
403
|
if (!signer) {
|
|
404
|
-
throw new Error('TxClient:
|
|
404
|
+
throw new Error('TxClient:sendMsgExec: 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.msgExec({ value: MsgExec.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:sendMsgExec: Could not broadcast Tx: '+ e.message)
|
|
413
413
|
}
|
|
414
414
|
},
|
|
415
415
|
|
|
@@ -422,35 +422,43 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
422
422
|
}
|
|
423
423
|
},
|
|
424
424
|
|
|
425
|
-
|
|
425
|
+
msgCreateGroup({ value }: msgCreateGroupParams): EncodeObject {
|
|
426
426
|
try {
|
|
427
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
427
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial( value ) }
|
|
428
428
|
} catch (e: any) {
|
|
429
|
-
throw new Error('TxClient:
|
|
429
|
+
throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message)
|
|
430
430
|
}
|
|
431
431
|
},
|
|
432
432
|
|
|
433
|
-
|
|
433
|
+
msgUpdateGroupAdmin({ value }: msgUpdateGroupAdminParams): EncodeObject {
|
|
434
434
|
try {
|
|
435
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
435
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial( value ) }
|
|
436
436
|
} catch (e: any) {
|
|
437
|
-
throw new Error('TxClient:
|
|
437
|
+
throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message)
|
|
438
438
|
}
|
|
439
439
|
},
|
|
440
440
|
|
|
441
|
-
|
|
441
|
+
msgUpdateGroupPolicyMetadata({ value }: msgUpdateGroupPolicyMetadataParams): EncodeObject {
|
|
442
442
|
try {
|
|
443
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
443
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial( value ) }
|
|
444
444
|
} catch (e: any) {
|
|
445
|
-
throw new Error('TxClient:
|
|
445
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message)
|
|
446
446
|
}
|
|
447
447
|
},
|
|
448
448
|
|
|
449
|
-
|
|
449
|
+
msgUpdateGroupPolicyDecisionPolicy({ value }: msgUpdateGroupPolicyDecisionPolicyParams): EncodeObject {
|
|
450
450
|
try {
|
|
451
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
451
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial( value ) }
|
|
452
452
|
} catch (e: any) {
|
|
453
|
-
throw new Error('TxClient:
|
|
453
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message)
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
|
|
457
|
+
msgWithdrawProposal({ value }: msgWithdrawProposalParams): EncodeObject {
|
|
458
|
+
try {
|
|
459
|
+
return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial( value ) }
|
|
460
|
+
} catch (e: any) {
|
|
461
|
+
throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message)
|
|
454
462
|
}
|
|
455
463
|
},
|
|
456
464
|
|
|
@@ -470,43 +478,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
470
478
|
}
|
|
471
479
|
},
|
|
472
480
|
|
|
473
|
-
|
|
474
|
-
try {
|
|
475
|
-
return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial( value ) }
|
|
476
|
-
} catch (e: any) {
|
|
477
|
-
throw new Error('TxClient:MsgExec: Could not create message: ' + e.message)
|
|
478
|
-
}
|
|
479
|
-
},
|
|
480
|
-
|
|
481
|
-
msgUpdateGroupAdmin({ value }: msgUpdateGroupAdminParams): EncodeObject {
|
|
481
|
+
msgCreateGroupPolicy({ value }: msgCreateGroupPolicyParams): EncodeObject {
|
|
482
482
|
try {
|
|
483
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
483
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial( value ) }
|
|
484
484
|
} catch (e: any) {
|
|
485
|
-
throw new Error('TxClient:
|
|
485
|
+
throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message)
|
|
486
486
|
}
|
|
487
487
|
},
|
|
488
488
|
|
|
489
|
-
|
|
489
|
+
msgUpdateGroupMembers({ value }: msgUpdateGroupMembersParams): EncodeObject {
|
|
490
490
|
try {
|
|
491
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
491
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial( value ) }
|
|
492
492
|
} catch (e: any) {
|
|
493
|
-
throw new Error('TxClient:
|
|
493
|
+
throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message)
|
|
494
494
|
}
|
|
495
495
|
},
|
|
496
496
|
|
|
497
|
-
|
|
497
|
+
msgUpdateGroupMetadata({ value }: msgUpdateGroupMetadataParams): EncodeObject {
|
|
498
498
|
try {
|
|
499
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
499
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial( value ) }
|
|
500
500
|
} catch (e: any) {
|
|
501
|
-
throw new Error('TxClient:
|
|
501
|
+
throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message)
|
|
502
502
|
}
|
|
503
503
|
},
|
|
504
504
|
|
|
505
|
-
|
|
505
|
+
msgLeaveGroup({ value }: msgLeaveGroupParams): EncodeObject {
|
|
506
506
|
try {
|
|
507
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
507
|
+
return { typeUrl: "/cosmos.group.v1.MsgLeaveGroup", value: MsgLeaveGroup.fromPartial( value ) }
|
|
508
508
|
} catch (e: any) {
|
|
509
|
-
throw new Error('TxClient:
|
|
509
|
+
throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message)
|
|
510
510
|
}
|
|
511
511
|
},
|
|
512
512
|
|
|
@@ -518,11 +518,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
518
518
|
}
|
|
519
519
|
},
|
|
520
520
|
|
|
521
|
-
|
|
521
|
+
msgExec({ value }: msgExecParams): EncodeObject {
|
|
522
522
|
try {
|
|
523
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
523
|
+
return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial( value ) }
|
|
524
524
|
} catch (e: any) {
|
|
525
|
-
throw new Error('TxClient:
|
|
525
|
+
throw new Error('TxClient:MsgExec: Could not create message: ' + e.message)
|
|
526
526
|
}
|
|
527
527
|
},
|
|
528
528
|
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
|
|
2
|
+
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
3
|
+
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
2
4
|
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
5
|
+
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
6
|
+
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
6
7
|
import { MsgVote } from "./types/cosmos/group/v1/tx";
|
|
7
8
|
import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
|
|
8
|
-
import {
|
|
9
|
-
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
10
|
-
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
11
|
-
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
9
|
+
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
12
10
|
import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
11
|
+
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
12
|
+
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
13
13
|
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
14
|
-
import {
|
|
14
|
+
import { MsgExec } from "./types/cosmos/group/v1/tx";
|
|
15
15
|
const msgTypes = [
|
|
16
16
|
["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy],
|
|
17
|
+
["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup],
|
|
18
|
+
["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin],
|
|
17
19
|
["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata],
|
|
18
|
-
["/cosmos.group.v1.
|
|
19
|
-
["/cosmos.group.v1.
|
|
20
|
-
["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy],
|
|
20
|
+
["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy],
|
|
21
|
+
["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal],
|
|
21
22
|
["/cosmos.group.v1.MsgVote", MsgVote],
|
|
22
23
|
["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal],
|
|
23
|
-
["/cosmos.group.v1.
|
|
24
|
-
["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin],
|
|
25
|
-
["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy],
|
|
26
|
-
["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup],
|
|
24
|
+
["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy],
|
|
27
25
|
["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers],
|
|
26
|
+
["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata],
|
|
27
|
+
["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup],
|
|
28
28
|
["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin],
|
|
29
|
-
["/cosmos.group.v1.
|
|
29
|
+
["/cosmos.group.v1.MsgExec", MsgExec],
|
|
30
30
|
];
|
|
31
31
|
export { msgTypes };
|