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