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
|
@@ -3,20 +3,20 @@ import { SigningStargateClient } from "@cosmjs/stargate";
|
|
|
3
3
|
import { Registry } from "@cosmjs/proto-signing";
|
|
4
4
|
import { msgTypes } from './registry';
|
|
5
5
|
import { Api } from "./rest";
|
|
6
|
-
import {
|
|
7
|
-
import { MsgVote } from "./types/cosmos/group/v1/tx";
|
|
8
|
-
import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
9
|
-
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
6
|
+
import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
|
|
10
7
|
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
11
8
|
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
12
|
-
import {
|
|
9
|
+
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
13
10
|
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
14
|
-
import {
|
|
11
|
+
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
12
|
+
import { MsgVote } from "./types/cosmos/group/v1/tx";
|
|
13
|
+
import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
|
|
15
14
|
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
15
|
+
import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
16
|
+
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
18
17
|
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
19
|
-
import {
|
|
18
|
+
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
19
|
+
import { MsgExec } from "./types/cosmos/group/v1/tx";
|
|
20
20
|
import { EventCreateGroup as typeEventCreateGroup } from "./types";
|
|
21
21
|
import { EventUpdateGroup as typeEventUpdateGroup } from "./types";
|
|
22
22
|
import { EventCreateGroupPolicy as typeEventCreateGroupPolicy } from "./types";
|
|
@@ -38,7 +38,7 @@ import { GroupPolicyInfo as typeGroupPolicyInfo } from "./types";
|
|
|
38
38
|
import { Proposal as typeProposal } from "./types";
|
|
39
39
|
import { TallyResult as typeTallyResult } from "./types";
|
|
40
40
|
import { Vote as typeVote } from "./types";
|
|
41
|
-
export {
|
|
41
|
+
export { MsgCreateGroupWithPolicy, MsgCreateGroup, MsgUpdateGroupAdmin, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyDecisionPolicy, MsgWithdrawProposal, MsgVote, MsgSubmitProposal, MsgCreateGroupPolicy, MsgUpdateGroupMembers, MsgUpdateGroupMetadata, MsgLeaveGroup, MsgUpdateGroupPolicyAdmin, MsgExec };
|
|
42
42
|
export const registry = new Registry(msgTypes);
|
|
43
43
|
function getStructure(template) {
|
|
44
44
|
const structure = { fields: [] };
|
|
@@ -54,130 +54,116 @@ const defaultFee = {
|
|
|
54
54
|
};
|
|
55
55
|
export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
|
|
56
56
|
return {
|
|
57
|
-
async
|
|
58
|
-
if (!signer) {
|
|
59
|
-
throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.');
|
|
60
|
-
}
|
|
61
|
-
try {
|
|
62
|
-
const { address } = (await signer.getAccounts())[0];
|
|
63
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
64
|
-
let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
|
|
65
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
66
|
-
}
|
|
67
|
-
catch (e) {
|
|
68
|
-
throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
async sendMsgVote({ value, fee, memo }) {
|
|
57
|
+
async sendMsgCreateGroupWithPolicy({ value, fee, memo }) {
|
|
72
58
|
if (!signer) {
|
|
73
|
-
throw new Error('TxClient:
|
|
59
|
+
throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Unable to sign Tx. Signer is not present.');
|
|
74
60
|
}
|
|
75
61
|
try {
|
|
76
62
|
const { address } = (await signer.getAccounts())[0];
|
|
77
63
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
78
|
-
let msg = this.
|
|
64
|
+
let msg = this.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.fromPartial(value) });
|
|
79
65
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
80
66
|
}
|
|
81
67
|
catch (e) {
|
|
82
|
-
throw new Error('TxClient:
|
|
68
|
+
throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: ' + e.message);
|
|
83
69
|
}
|
|
84
70
|
},
|
|
85
|
-
async
|
|
71
|
+
async sendMsgCreateGroup({ value, fee, memo }) {
|
|
86
72
|
if (!signer) {
|
|
87
|
-
throw new Error('TxClient:
|
|
73
|
+
throw new Error('TxClient:sendMsgCreateGroup: Unable to sign Tx. Signer is not present.');
|
|
88
74
|
}
|
|
89
75
|
try {
|
|
90
76
|
const { address } = (await signer.getAccounts())[0];
|
|
91
77
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
92
|
-
let msg = this.
|
|
78
|
+
let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) });
|
|
93
79
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
94
80
|
}
|
|
95
81
|
catch (e) {
|
|
96
|
-
throw new Error('TxClient:
|
|
82
|
+
throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: ' + e.message);
|
|
97
83
|
}
|
|
98
84
|
},
|
|
99
|
-
async
|
|
85
|
+
async sendMsgUpdateGroupAdmin({ value, fee, memo }) {
|
|
100
86
|
if (!signer) {
|
|
101
|
-
throw new Error('TxClient:
|
|
87
|
+
throw new Error('TxClient:sendMsgUpdateGroupAdmin: Unable to sign Tx. Signer is not present.');
|
|
102
88
|
}
|
|
103
89
|
try {
|
|
104
90
|
const { address } = (await signer.getAccounts())[0];
|
|
105
91
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
106
|
-
let msg = this.
|
|
92
|
+
let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) });
|
|
107
93
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
108
94
|
}
|
|
109
95
|
catch (e) {
|
|
110
|
-
throw new Error('TxClient:
|
|
96
|
+
throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: ' + e.message);
|
|
111
97
|
}
|
|
112
98
|
},
|
|
113
|
-
async
|
|
99
|
+
async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }) {
|
|
114
100
|
if (!signer) {
|
|
115
|
-
throw new Error('TxClient:
|
|
101
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Unable to sign Tx. Signer is not present.');
|
|
116
102
|
}
|
|
117
103
|
try {
|
|
118
104
|
const { address } = (await signer.getAccounts())[0];
|
|
119
105
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
120
|
-
let msg = this.
|
|
106
|
+
let msg = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) });
|
|
121
107
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
122
108
|
}
|
|
123
109
|
catch (e) {
|
|
124
|
-
throw new Error('TxClient:
|
|
110
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: ' + e.message);
|
|
125
111
|
}
|
|
126
112
|
},
|
|
127
|
-
async
|
|
113
|
+
async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }) {
|
|
128
114
|
if (!signer) {
|
|
129
|
-
throw new Error('TxClient:
|
|
115
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Unable to sign Tx. Signer is not present.');
|
|
130
116
|
}
|
|
131
117
|
try {
|
|
132
118
|
const { address } = (await signer.getAccounts())[0];
|
|
133
119
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
134
|
-
let msg = this.
|
|
120
|
+
let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) });
|
|
135
121
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
136
122
|
}
|
|
137
123
|
catch (e) {
|
|
138
|
-
throw new Error('TxClient:
|
|
124
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: ' + e.message);
|
|
139
125
|
}
|
|
140
126
|
},
|
|
141
|
-
async
|
|
127
|
+
async sendMsgWithdrawProposal({ value, fee, memo }) {
|
|
142
128
|
if (!signer) {
|
|
143
|
-
throw new Error('TxClient:
|
|
129
|
+
throw new Error('TxClient:sendMsgWithdrawProposal: Unable to sign Tx. Signer is not present.');
|
|
144
130
|
}
|
|
145
131
|
try {
|
|
146
132
|
const { address } = (await signer.getAccounts())[0];
|
|
147
133
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
148
|
-
let msg = this.
|
|
134
|
+
let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) });
|
|
149
135
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
150
136
|
}
|
|
151
137
|
catch (e) {
|
|
152
|
-
throw new Error('TxClient:
|
|
138
|
+
throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: ' + e.message);
|
|
153
139
|
}
|
|
154
140
|
},
|
|
155
|
-
async
|
|
141
|
+
async sendMsgVote({ value, fee, memo }) {
|
|
156
142
|
if (!signer) {
|
|
157
|
-
throw new Error('TxClient:
|
|
143
|
+
throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.');
|
|
158
144
|
}
|
|
159
145
|
try {
|
|
160
146
|
const { address } = (await signer.getAccounts())[0];
|
|
161
147
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
162
|
-
let msg = this.
|
|
148
|
+
let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
|
|
163
149
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
164
150
|
}
|
|
165
151
|
catch (e) {
|
|
166
|
-
throw new Error('TxClient:
|
|
152
|
+
throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message);
|
|
167
153
|
}
|
|
168
154
|
},
|
|
169
|
-
async
|
|
155
|
+
async sendMsgSubmitProposal({ value, fee, memo }) {
|
|
170
156
|
if (!signer) {
|
|
171
|
-
throw new Error('TxClient:
|
|
157
|
+
throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.');
|
|
172
158
|
}
|
|
173
159
|
try {
|
|
174
160
|
const { address } = (await signer.getAccounts())[0];
|
|
175
161
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
176
|
-
let msg = this.
|
|
162
|
+
let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
|
|
177
163
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
178
164
|
}
|
|
179
165
|
catch (e) {
|
|
180
|
-
throw new Error('TxClient:
|
|
166
|
+
throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
|
|
181
167
|
}
|
|
182
168
|
},
|
|
183
169
|
async sendMsgCreateGroupPolicy({ value, fee, memo }) {
|
|
@@ -194,32 +180,32 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
194
180
|
throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: ' + e.message);
|
|
195
181
|
}
|
|
196
182
|
},
|
|
197
|
-
async
|
|
183
|
+
async sendMsgUpdateGroupMembers({ value, fee, memo }) {
|
|
198
184
|
if (!signer) {
|
|
199
|
-
throw new Error('TxClient:
|
|
185
|
+
throw new Error('TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.');
|
|
200
186
|
}
|
|
201
187
|
try {
|
|
202
188
|
const { address } = (await signer.getAccounts())[0];
|
|
203
189
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
204
|
-
let msg = this.
|
|
190
|
+
let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) });
|
|
205
191
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
206
192
|
}
|
|
207
193
|
catch (e) {
|
|
208
|
-
throw new Error('TxClient:
|
|
194
|
+
throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: ' + e.message);
|
|
209
195
|
}
|
|
210
196
|
},
|
|
211
|
-
async
|
|
197
|
+
async sendMsgUpdateGroupMetadata({ value, fee, memo }) {
|
|
212
198
|
if (!signer) {
|
|
213
|
-
throw new Error('TxClient:
|
|
199
|
+
throw new Error('TxClient:sendMsgUpdateGroupMetadata: Unable to sign Tx. Signer is not present.');
|
|
214
200
|
}
|
|
215
201
|
try {
|
|
216
202
|
const { address } = (await signer.getAccounts())[0];
|
|
217
203
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
218
|
-
let msg = this.
|
|
204
|
+
let msg = this.msgUpdateGroupMetadata({ value: MsgUpdateGroupMetadata.fromPartial(value) });
|
|
219
205
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
220
206
|
}
|
|
221
207
|
catch (e) {
|
|
222
|
-
throw new Error('TxClient:
|
|
208
|
+
throw new Error('TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: ' + e.message);
|
|
223
209
|
}
|
|
224
210
|
},
|
|
225
211
|
async sendMsgLeaveGroup({ value, fee, memo }) {
|
|
@@ -236,50 +222,40 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
236
222
|
throw new Error('TxClient:sendMsgLeaveGroup: Could not broadcast Tx: ' + e.message);
|
|
237
223
|
}
|
|
238
224
|
},
|
|
239
|
-
async
|
|
225
|
+
async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }) {
|
|
240
226
|
if (!signer) {
|
|
241
|
-
throw new Error('TxClient:
|
|
227
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Unable to sign Tx. Signer is not present.');
|
|
242
228
|
}
|
|
243
229
|
try {
|
|
244
230
|
const { address } = (await signer.getAccounts())[0];
|
|
245
231
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
246
|
-
let msg = this.
|
|
232
|
+
let msg = this.msgUpdateGroupPolicyAdmin({ value: MsgUpdateGroupPolicyAdmin.fromPartial(value) });
|
|
247
233
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
248
234
|
}
|
|
249
235
|
catch (e) {
|
|
250
|
-
throw new Error('TxClient:
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
msgSubmitProposal({ value }) {
|
|
254
|
-
try {
|
|
255
|
-
return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) };
|
|
256
|
-
}
|
|
257
|
-
catch (e) {
|
|
258
|
-
throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
|
|
236
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: ' + e.message);
|
|
259
237
|
}
|
|
260
238
|
},
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}
|
|
265
|
-
catch (e) {
|
|
266
|
-
throw new Error('TxClient:MsgVote: Could not create message: ' + e.message);
|
|
239
|
+
async sendMsgExec({ value, fee, memo }) {
|
|
240
|
+
if (!signer) {
|
|
241
|
+
throw new Error('TxClient:sendMsgExec: Unable to sign Tx. Signer is not present.');
|
|
267
242
|
}
|
|
268
|
-
},
|
|
269
|
-
msgUpdateGroupMembers({ value }) {
|
|
270
243
|
try {
|
|
271
|
-
|
|
244
|
+
const { address } = (await signer.getAccounts())[0];
|
|
245
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
246
|
+
let msg = this.msgExec({ value: MsgExec.fromPartial(value) });
|
|
247
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
272
248
|
}
|
|
273
249
|
catch (e) {
|
|
274
|
-
throw new Error('TxClient:
|
|
250
|
+
throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: ' + e.message);
|
|
275
251
|
}
|
|
276
252
|
},
|
|
277
|
-
|
|
253
|
+
msgCreateGroupWithPolicy({ value }) {
|
|
278
254
|
try {
|
|
279
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
255
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial(value) };
|
|
280
256
|
}
|
|
281
257
|
catch (e) {
|
|
282
|
-
throw new Error('TxClient:
|
|
258
|
+
throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message);
|
|
283
259
|
}
|
|
284
260
|
},
|
|
285
261
|
msgCreateGroup({ value }) {
|
|
@@ -298,12 +274,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
298
274
|
throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message);
|
|
299
275
|
}
|
|
300
276
|
},
|
|
301
|
-
|
|
277
|
+
msgUpdateGroupPolicyMetadata({ value }) {
|
|
302
278
|
try {
|
|
303
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
279
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial(value) };
|
|
304
280
|
}
|
|
305
281
|
catch (e) {
|
|
306
|
-
throw new Error('TxClient:
|
|
282
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message);
|
|
307
283
|
}
|
|
308
284
|
},
|
|
309
285
|
msgUpdateGroupPolicyDecisionPolicy({ value }) {
|
|
@@ -314,12 +290,28 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
314
290
|
throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message);
|
|
315
291
|
}
|
|
316
292
|
},
|
|
317
|
-
|
|
293
|
+
msgWithdrawProposal({ value }) {
|
|
318
294
|
try {
|
|
319
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
295
|
+
return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial(value) };
|
|
320
296
|
}
|
|
321
297
|
catch (e) {
|
|
322
|
-
throw new Error('TxClient:
|
|
298
|
+
throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message);
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
msgVote({ value }) {
|
|
302
|
+
try {
|
|
303
|
+
return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial(value) };
|
|
304
|
+
}
|
|
305
|
+
catch (e) {
|
|
306
|
+
throw new Error('TxClient:MsgVote: Could not create message: ' + e.message);
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
msgSubmitProposal({ value }) {
|
|
310
|
+
try {
|
|
311
|
+
return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) };
|
|
312
|
+
}
|
|
313
|
+
catch (e) {
|
|
314
|
+
throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
|
|
323
315
|
}
|
|
324
316
|
},
|
|
325
317
|
msgCreateGroupPolicy({ value }) {
|
|
@@ -330,20 +322,20 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
330
322
|
throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message);
|
|
331
323
|
}
|
|
332
324
|
},
|
|
333
|
-
|
|
325
|
+
msgUpdateGroupMembers({ value }) {
|
|
334
326
|
try {
|
|
335
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
327
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial(value) };
|
|
336
328
|
}
|
|
337
329
|
catch (e) {
|
|
338
|
-
throw new Error('TxClient:
|
|
330
|
+
throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message);
|
|
339
331
|
}
|
|
340
332
|
},
|
|
341
|
-
|
|
333
|
+
msgUpdateGroupMetadata({ value }) {
|
|
342
334
|
try {
|
|
343
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
335
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial(value) };
|
|
344
336
|
}
|
|
345
337
|
catch (e) {
|
|
346
|
-
throw new Error('TxClient:
|
|
338
|
+
throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message);
|
|
347
339
|
}
|
|
348
340
|
},
|
|
349
341
|
msgLeaveGroup({ value }) {
|
|
@@ -354,12 +346,20 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
354
346
|
throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message);
|
|
355
347
|
}
|
|
356
348
|
},
|
|
357
|
-
|
|
349
|
+
msgUpdateGroupPolicyAdmin({ value }) {
|
|
358
350
|
try {
|
|
359
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
351
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", value: MsgUpdateGroupPolicyAdmin.fromPartial(value) };
|
|
360
352
|
}
|
|
361
353
|
catch (e) {
|
|
362
|
-
throw new Error('TxClient:
|
|
354
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: ' + e.message);
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
msgExec({ value }) {
|
|
358
|
+
try {
|
|
359
|
+
return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial(value) };
|
|
360
|
+
}
|
|
361
|
+
catch (e) {
|
|
362
|
+
throw new Error('TxClient:MsgExec: Could not create message: ' + e.message);
|
|
363
363
|
}
|
|
364
364
|
},
|
|
365
365
|
};
|