decentralcardgame-cardchain-client-ts 0.0.9 → 0.0.11
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 +322 -322
- package/DecentralCardGame.cardchain.cardchain/module.ts +486 -486
- package/DecentralCardGame.cardchain.cardchain/registry.js +71 -71
- package/DecentralCardGame.cardchain.cardchain/registry.ts +71 -71
- package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/rest.ts +8 -3
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +44 -13
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +44 -13
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +2 -0
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +2 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +22 -22
- package/DecentralCardGame.cardchain.cardchain/types.ts +22 -22
- package/client.js +7 -7
- package/client.ts +11 -10
- package/cosmos.auth.v1beta1/module.js +2 -0
- package/cosmos.auth.v1beta1/module.ts +2 -0
- package/cosmos.auth.v1beta1/rest.js +18 -3
- package/cosmos.auth.v1beta1/rest.ts +113 -3
- package/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.auth.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +104 -3
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +157 -4
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +172 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.auth.v1beta1/types.js +2 -1
- package/cosmos.auth.v1beta1/types.ts +2 -0
- package/cosmos.authz.v1beta1/module.js +19 -19
- package/cosmos.authz.v1beta1/module.ts +29 -29
- package/cosmos.authz.v1beta1/registry.js +2 -2
- package/cosmos.authz.v1beta1/registry.ts +2 -2
- package/cosmos.authz.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.authz.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
- package/cosmos.bank.v1beta1/module.js +16 -16
- package/cosmos.bank.v1beta1/module.ts +24 -24
- package/cosmos.bank.v1beta1/registry.js +2 -2
- package/cosmos.bank.v1beta1/registry.ts +2 -2
- package/cosmos.bank.v1beta1/rest.js +37 -6
- package/cosmos.bank.v1beta1/rest.ts +99 -6
- package/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.bank.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +18 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +24 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +9 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +18 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +25 -4
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +230 -1
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +356 -5
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +206 -1
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +305 -1
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
- package/cosmos.base.tendermint.v1beta1/rest.ts +18 -27
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
- package/cosmos.consensus.v1/index.js +5 -0
- package/cosmos.consensus.v1/index.ts +6 -0
- package/cosmos.consensus.v1/module.js +81 -0
- package/cosmos.consensus.v1/module.ts +129 -0
- package/cosmos.consensus.v1/registry.js +5 -0
- package/cosmos.consensus.v1/registry.ts +9 -0
- package/cosmos.consensus.v1/rest.js +100 -0
- package/cosmos.consensus.v1/rest.ts +268 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/http.js +260 -0
- package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
- package/cosmos.consensus.v1/types.js +1 -0
- package/cosmos.consensus.v1/types.ts +5 -0
- package/cosmos.crisis.v1beta1/module.js +24 -1
- package/cosmos.crisis.v1beta1/module.ts +34 -1
- package/cosmos.crisis.v1beta1/registry.js +2 -0
- package/cosmos.crisis.v1beta1/registry.ts +2 -0
- package/cosmos.crisis.v1beta1/rest.ts +19 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +95 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
- package/cosmos.distribution.v1beta1/module.js +63 -17
- package/cosmos.distribution.v1beta1/module.ts +91 -25
- package/cosmos.distribution.v1beta1/registry.js +8 -4
- package/cosmos.distribution.v1beta1/registry.ts +8 -4
- package/cosmos.distribution.v1beta1/rest.js +14 -0
- package/cosmos.distribution.v1beta1/rest.ts +66 -7
- package/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +120 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +199 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
- package/cosmos.evidence.v1beta1/rest.js +4 -3
- package/cosmos.evidence.v1beta1/rest.ts +4 -3
- package/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +13 -2
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
- package/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/module.js +44 -19
- package/cosmos.gov.v1/module.ts +62 -27
- package/cosmos.gov.v1/registry.js +4 -2
- package/cosmos.gov.v1/registry.ts +4 -2
- package/cosmos.gov.v1/rest.ts +155 -41
- package/cosmos.gov.v1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +13 -1
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +179 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +13 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +113 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
- package/cosmos.gov.v1/types.js +2 -1
- package/cosmos.gov.v1/types.ts +2 -0
- package/cosmos.gov.v1beta1/module.js +24 -24
- package/cosmos.gov.v1beta1/module.ts +36 -36
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +65 -96
- package/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
- package/cosmos.group.v1/module.js +98 -96
- package/cosmos.group.v1/module.ts +149 -147
- package/cosmos.group.v1/registry.js +16 -16
- package/cosmos.group.v1/registry.ts +16 -16
- package/cosmos.group.v1/rest.js +3 -3
- package/cosmos.group.v1/rest.ts +29 -9
- package/cosmos.group.v1/types/amino/amino.js +2 -0
- package/cosmos.group.v1/types/amino/amino.ts +2 -0
- package/cosmos.group.v1/types/cosmos/group/v1/events.js +65 -1
- package/cosmos.group.v1/types/cosmos/group/v1/events.ts +89 -1
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +52 -34
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +20 -0
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
- package/cosmos.group.v1/types.js +2 -1
- package/cosmos.group.v1/types.ts +2 -0
- package/cosmos.mint.v1beta1/rest.ts +9 -1
- package/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
- 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.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.nft.v1beta1/rest.ts +18 -22
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/rest.ts +8 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +94 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
- package/cosmos.staking.v1beta1/module.js +34 -32
- package/cosmos.staking.v1beta1/module.ts +50 -48
- package/cosmos.staking.v1beta1/registry.js +6 -6
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.js +7 -7
- package/cosmos.staking.v1beta1/rest.ts +49 -8
- package/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +180 -2
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +94 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
- package/cosmos.staking.v1beta1/types.js +2 -1
- package/cosmos.staking.v1beta1/types.ts +2 -0
- package/cosmos.tx.v1beta1/rest.js +66 -2
- package/cosmos.tx.v1beta1/rest.ts +177 -16
- package/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +360 -2
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +592 -266
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +703 -332
- package/cosmos.tx.v1beta1/types/tendermint/types/params.js +8 -17
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
- package/cosmos.upgrade.v1beta1/rest.ts +0 -1
- package/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/cosmos.vesting.v1beta1/module.js +19 -19
- package/cosmos.vesting.v1beta1/module.ts +29 -29
- package/cosmos.vesting.v1beta1/registry.js +2 -2
- package/cosmos.vesting.v1beta1/registry.ts +2 -2
- package/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +13 -2
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
- package/ibc.applications.transfer.v1/module.js +5 -27
- package/ibc.applications.transfer.v1/module.ts +5 -34
- package/ibc.applications.transfer.v1/registry.js +1 -4
- package/ibc.applications.transfer.v1/registry.ts +0 -2
- package/ibc.applications.transfer.v1/rest.js +15 -1
- package/ibc.applications.transfer.v1/rest.ts +30 -1
- package/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
- package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +16 -1
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +91 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.applications.transfer.v1/types.js +3 -1
- package/ibc.applications.transfer.v1/types.ts +4 -0
- package/ibc.core.channel.v1/rest.ts +1 -0
- package/ibc.core.channel.v1/types/amino/amino.js +2 -0
- package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +13 -2
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/rest.ts +5 -1
- package/ibc.core.client.v1/types/amino/amino.js +2 -0
- package/ibc.core.client.v1/types/amino/amino.ts +2 -0
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +9 -8
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
- package/ibc.core.connection.v1/types/amino/amino.js +2 -0
- package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
- package/ibc.core.connection.v1/types/{proofs.js → cosmos/ics23/v1/proofs.js} +1 -1
- package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
- 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 +26 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
- package/index.js +3 -1
- package/index.ts +3 -1
- package/package.json +1 -4
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.ts +0 -0
|
@@ -150,7 +150,9 @@ export function proposalStatusToJSON(object: ProposalStatus): string {
|
|
|
150
150
|
* Since: cosmos-sdk 0.43
|
|
151
151
|
*/
|
|
152
152
|
export interface WeightedVoteOption {
|
|
153
|
+
/** option defines the valid vote options, it must not contain duplicate vote options. */
|
|
153
154
|
option: VoteOption;
|
|
155
|
+
/** weight is the vote weight associated with the vote option. */
|
|
154
156
|
weight: string;
|
|
155
157
|
}
|
|
156
158
|
|
|
@@ -159,7 +161,9 @@ export interface WeightedVoteOption {
|
|
|
159
161
|
* manually updated in case of approval.
|
|
160
162
|
*/
|
|
161
163
|
export interface TextProposal {
|
|
164
|
+
/** title of the proposal. */
|
|
162
165
|
title: string;
|
|
166
|
+
/** description associated with the proposal. */
|
|
163
167
|
description: string;
|
|
164
168
|
}
|
|
165
169
|
|
|
@@ -168,34 +172,59 @@ export interface TextProposal {
|
|
|
168
172
|
* proposal.
|
|
169
173
|
*/
|
|
170
174
|
export interface Deposit {
|
|
175
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
171
176
|
proposalId: number;
|
|
177
|
+
/** depositor defines the deposit addresses from the proposals. */
|
|
172
178
|
depositor: string;
|
|
179
|
+
/** amount to be deposited by depositor. */
|
|
173
180
|
amount: Coin[];
|
|
174
181
|
}
|
|
175
182
|
|
|
176
183
|
/** Proposal defines the core field members of a governance proposal. */
|
|
177
184
|
export interface Proposal {
|
|
185
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
178
186
|
proposalId: number;
|
|
179
|
-
content
|
|
187
|
+
/** content is the proposal's content. */
|
|
188
|
+
content:
|
|
189
|
+
| Any
|
|
190
|
+
| undefined;
|
|
191
|
+
/** status defines the proposal status. */
|
|
180
192
|
status: ProposalStatus;
|
|
181
193
|
/**
|
|
182
194
|
* final_tally_result is the final tally result of the proposal. When
|
|
183
195
|
* querying a proposal via gRPC, this field is not populated until the
|
|
184
196
|
* proposal's voting period has ended.
|
|
185
197
|
*/
|
|
186
|
-
finalTallyResult:
|
|
187
|
-
|
|
188
|
-
|
|
198
|
+
finalTallyResult:
|
|
199
|
+
| TallyResult
|
|
200
|
+
| undefined;
|
|
201
|
+
/** submit_time is the time of proposal submission. */
|
|
202
|
+
submitTime:
|
|
203
|
+
| Date
|
|
204
|
+
| undefined;
|
|
205
|
+
/** deposit_end_time is the end time for deposition. */
|
|
206
|
+
depositEndTime:
|
|
207
|
+
| Date
|
|
208
|
+
| undefined;
|
|
209
|
+
/** total_deposit is the total deposit on the proposal. */
|
|
189
210
|
totalDeposit: Coin[];
|
|
190
|
-
|
|
211
|
+
/** voting_start_time is the starting time to vote on a proposal. */
|
|
212
|
+
votingStartTime:
|
|
213
|
+
| Date
|
|
214
|
+
| undefined;
|
|
215
|
+
/** voting_end_time is the end time of voting on a proposal. */
|
|
191
216
|
votingEndTime: Date | undefined;
|
|
192
217
|
}
|
|
193
218
|
|
|
194
219
|
/** TallyResult defines a standard tally for a governance proposal. */
|
|
195
220
|
export interface TallyResult {
|
|
221
|
+
/** yes is the number of yes votes on a proposal. */
|
|
196
222
|
yes: string;
|
|
223
|
+
/** abstain is the number of abstain votes on a proposal. */
|
|
197
224
|
abstain: string;
|
|
225
|
+
/** no is the number of no votes on a proposal. */
|
|
198
226
|
no: string;
|
|
227
|
+
/** no_with_veto is the number of no with veto votes on a proposal. */
|
|
199
228
|
noWithVeto: string;
|
|
200
229
|
}
|
|
201
230
|
|
|
@@ -204,7 +233,9 @@ export interface TallyResult {
|
|
|
204
233
|
* A Vote consists of a proposal ID, the voter, and the vote option.
|
|
205
234
|
*/
|
|
206
235
|
export interface Vote {
|
|
236
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
207
237
|
proposalId: number;
|
|
238
|
+
/** voter is the voter address of the proposal. */
|
|
208
239
|
voter: string;
|
|
209
240
|
/**
|
|
210
241
|
* Deprecated: Prefer to use `options` instead. This field is set in queries
|
|
@@ -214,7 +245,11 @@ export interface Vote {
|
|
|
214
245
|
* @deprecated
|
|
215
246
|
*/
|
|
216
247
|
option: VoteOption;
|
|
217
|
-
/**
|
|
248
|
+
/**
|
|
249
|
+
* options is the weighted vote options.
|
|
250
|
+
*
|
|
251
|
+
* Since: cosmos-sdk 0.43
|
|
252
|
+
*/
|
|
218
253
|
options: WeightedVoteOption[];
|
|
219
254
|
}
|
|
220
255
|
|
|
@@ -224,14 +259,14 @@ export interface DepositParams {
|
|
|
224
259
|
minDeposit: Coin[];
|
|
225
260
|
/**
|
|
226
261
|
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
|
227
|
-
*
|
|
262
|
+
* months.
|
|
228
263
|
*/
|
|
229
264
|
maxDepositPeriod: Duration | undefined;
|
|
230
265
|
}
|
|
231
266
|
|
|
232
267
|
/** VotingParams defines the params for voting on governance proposals. */
|
|
233
268
|
export interface VotingParams {
|
|
234
|
-
/**
|
|
269
|
+
/** Duration of the voting period. */
|
|
235
270
|
votingPeriod: Duration | undefined;
|
|
236
271
|
}
|
|
237
272
|
|
|
@@ -239,14 +274,14 @@ export interface VotingParams {
|
|
|
239
274
|
export interface TallyParams {
|
|
240
275
|
/**
|
|
241
276
|
* Minimum percentage of total stake needed to vote for a result to be
|
|
242
|
-
*
|
|
277
|
+
* considered valid.
|
|
243
278
|
*/
|
|
244
279
|
quorum: Uint8Array;
|
|
245
280
|
/** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
|
|
246
281
|
threshold: Uint8Array;
|
|
247
282
|
/**
|
|
248
283
|
* Minimum value of Veto votes to Total votes ratio for proposal to be
|
|
249
|
-
*
|
|
284
|
+
* vetoed. Default value: 1/3.
|
|
250
285
|
*/
|
|
251
286
|
vetoThreshold: Uint8Array;
|
|
252
287
|
}
|
|
@@ -45,6 +45,7 @@ export interface QueryProposalsRequest {
|
|
|
45
45
|
* method.
|
|
46
46
|
*/
|
|
47
47
|
export interface QueryProposalsResponse {
|
|
48
|
+
/** proposals defines all the requested governance proposals. */
|
|
48
49
|
proposals: Proposal[];
|
|
49
50
|
/** pagination defines the pagination in the response. */
|
|
50
51
|
pagination: PageResponse | undefined;
|
|
@@ -60,7 +61,7 @@ export interface QueryVoteRequest {
|
|
|
60
61
|
|
|
61
62
|
/** QueryVoteResponse is the response type for the Query/Vote RPC method. */
|
|
62
63
|
export interface QueryVoteResponse {
|
|
63
|
-
/** vote
|
|
64
|
+
/** vote defines the queried vote. */
|
|
64
65
|
vote: Vote | undefined;
|
|
65
66
|
}
|
|
66
67
|
|
|
@@ -74,7 +75,7 @@ export interface QueryVotesRequest {
|
|
|
74
75
|
|
|
75
76
|
/** QueryVotesResponse is the response type for the Query/Votes RPC method. */
|
|
76
77
|
export interface QueryVotesResponse {
|
|
77
|
-
/** votes
|
|
78
|
+
/** votes defines the queried votes. */
|
|
78
79
|
votes: Vote[];
|
|
79
80
|
/** pagination defines the pagination in the response. */
|
|
80
81
|
pagination: PageResponse | undefined;
|
|
@@ -127,6 +128,7 @@ export interface QueryDepositsRequest {
|
|
|
127
128
|
|
|
128
129
|
/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */
|
|
129
130
|
export interface QueryDepositsResponse {
|
|
131
|
+
/** deposits defines the requested deposits. */
|
|
130
132
|
deposits: Deposit[];
|
|
131
133
|
/** pagination defines the pagination in the response. */
|
|
132
134
|
pagination: PageResponse | undefined;
|
|
@@ -12,20 +12,29 @@ export const protobufPackage = "cosmos.gov.v1beta1";
|
|
|
12
12
|
* proposal Content.
|
|
13
13
|
*/
|
|
14
14
|
export interface MsgSubmitProposal {
|
|
15
|
-
content
|
|
15
|
+
/** content is the proposal's content. */
|
|
16
|
+
content:
|
|
17
|
+
| Any
|
|
18
|
+
| undefined;
|
|
19
|
+
/** initial_deposit is the deposit value that must be paid at proposal submission. */
|
|
16
20
|
initialDeposit: Coin[];
|
|
21
|
+
/** proposer is the account address of the proposer. */
|
|
17
22
|
proposer: string;
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
|
|
21
26
|
export interface MsgSubmitProposalResponse {
|
|
27
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
22
28
|
proposalId: number;
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
/** MsgVote defines a message to cast a vote. */
|
|
26
32
|
export interface MsgVote {
|
|
33
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
27
34
|
proposalId: number;
|
|
35
|
+
/** voter is the voter address for the proposal. */
|
|
28
36
|
voter: string;
|
|
37
|
+
/** option defines the vote option. */
|
|
29
38
|
option: VoteOption;
|
|
30
39
|
}
|
|
31
40
|
|
|
@@ -39,8 +48,11 @@ export interface MsgVoteResponse {
|
|
|
39
48
|
* Since: cosmos-sdk 0.43
|
|
40
49
|
*/
|
|
41
50
|
export interface MsgVoteWeighted {
|
|
51
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
42
52
|
proposalId: number;
|
|
53
|
+
/** voter is the voter address for the proposal. */
|
|
43
54
|
voter: string;
|
|
55
|
+
/** options defines the weighted vote options. */
|
|
44
56
|
options: WeightedVoteOption[];
|
|
45
57
|
}
|
|
46
58
|
|
|
@@ -54,8 +66,11 @@ export interface MsgVoteWeightedResponse {
|
|
|
54
66
|
|
|
55
67
|
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
|
56
68
|
export interface MsgDeposit {
|
|
69
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
57
70
|
proposalId: number;
|
|
71
|
+
/** depositor defines the deposit addresses from the proposals. */
|
|
58
72
|
depositor: string;
|
|
73
|
+
/** amount to be deposited by depositor. */
|
|
59
74
|
amount: Coin[];
|
|
60
75
|
}
|
|
61
76
|
|
|
@@ -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 { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
7
|
-
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
8
|
-
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
9
|
-
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
10
|
-
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
11
6
|
import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
|
|
7
|
+
import { MsgVote } from "./types/cosmos/group/v1/tx";
|
|
8
|
+
import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
12
9
|
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
13
|
-
import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
|
|
14
10
|
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
15
|
-
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
16
11
|
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
12
|
+
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
13
|
+
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
14
|
+
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
15
|
+
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
17
16
|
import { MsgExec } from "./types/cosmos/group/v1/tx";
|
|
18
|
-
import {
|
|
17
|
+
import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
|
|
19
18
|
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
19
|
+
import { MsgUpdateGroupPolicyMetadata } 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";
|
|
@@ -26,6 +26,7 @@ import { EventWithdrawProposal as typeEventWithdrawProposal } from "./types";
|
|
|
26
26
|
import { EventVote as typeEventVote } from "./types";
|
|
27
27
|
import { EventExec as typeEventExec } from "./types";
|
|
28
28
|
import { EventLeaveGroup as typeEventLeaveGroup } from "./types";
|
|
29
|
+
import { EventProposalPruned as typeEventProposalPruned } from "./types";
|
|
29
30
|
import { Member as typeMember } from "./types";
|
|
30
31
|
import { MemberRequest as typeMemberRequest } from "./types";
|
|
31
32
|
import { ThresholdDecisionPolicy as typeThresholdDecisionPolicy } from "./types";
|
|
@@ -37,7 +38,7 @@ import { GroupPolicyInfo as typeGroupPolicyInfo } from "./types";
|
|
|
37
38
|
import { Proposal as typeProposal } from "./types";
|
|
38
39
|
import { TallyResult as typeTallyResult } from "./types";
|
|
39
40
|
import { Vote as typeVote } from "./types";
|
|
40
|
-
export {
|
|
41
|
+
export { MsgSubmitProposal, MsgVote, MsgUpdateGroupMembers, MsgWithdrawProposal, MsgCreateGroup, MsgUpdateGroupAdmin, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgExec, MsgCreateGroupWithPolicy, MsgLeaveGroup, MsgUpdateGroupPolicyMetadata };
|
|
41
42
|
export const registry = new Registry(msgTypes);
|
|
42
43
|
function getStructure(template) {
|
|
43
44
|
const structure = { fields: [] };
|
|
@@ -53,130 +54,116 @@ const defaultFee = {
|
|
|
53
54
|
};
|
|
54
55
|
export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
|
|
55
56
|
return {
|
|
56
|
-
async
|
|
57
|
-
if (!signer) {
|
|
58
|
-
throw new Error('TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.');
|
|
59
|
-
}
|
|
60
|
-
try {
|
|
61
|
-
const { address } = (await signer.getAccounts())[0];
|
|
62
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
63
|
-
let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) });
|
|
64
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
65
|
-
}
|
|
66
|
-
catch (e) {
|
|
67
|
-
throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: ' + e.message);
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }) {
|
|
57
|
+
async sendMsgSubmitProposal({ value, fee, memo }) {
|
|
71
58
|
if (!signer) {
|
|
72
|
-
throw new Error('TxClient:
|
|
59
|
+
throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.');
|
|
73
60
|
}
|
|
74
61
|
try {
|
|
75
62
|
const { address } = (await signer.getAccounts())[0];
|
|
76
63
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
77
|
-
let msg = this.
|
|
64
|
+
let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
|
|
78
65
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
79
66
|
}
|
|
80
67
|
catch (e) {
|
|
81
|
-
throw new Error('TxClient:
|
|
68
|
+
throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
|
|
82
69
|
}
|
|
83
70
|
},
|
|
84
|
-
async
|
|
71
|
+
async sendMsgVote({ value, fee, memo }) {
|
|
85
72
|
if (!signer) {
|
|
86
|
-
throw new Error('TxClient:
|
|
73
|
+
throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.');
|
|
87
74
|
}
|
|
88
75
|
try {
|
|
89
76
|
const { address } = (await signer.getAccounts())[0];
|
|
90
77
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
91
|
-
let msg = this.
|
|
78
|
+
let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
|
|
92
79
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
93
80
|
}
|
|
94
81
|
catch (e) {
|
|
95
|
-
throw new Error('TxClient:
|
|
82
|
+
throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message);
|
|
96
83
|
}
|
|
97
84
|
},
|
|
98
|
-
async
|
|
85
|
+
async sendMsgUpdateGroupMembers({ value, fee, memo }) {
|
|
99
86
|
if (!signer) {
|
|
100
|
-
throw new Error('TxClient:
|
|
87
|
+
throw new Error('TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.');
|
|
101
88
|
}
|
|
102
89
|
try {
|
|
103
90
|
const { address } = (await signer.getAccounts())[0];
|
|
104
91
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
105
|
-
let msg = this.
|
|
92
|
+
let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) });
|
|
106
93
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
107
94
|
}
|
|
108
95
|
catch (e) {
|
|
109
|
-
throw new Error('TxClient:
|
|
96
|
+
throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: ' + e.message);
|
|
110
97
|
}
|
|
111
98
|
},
|
|
112
|
-
async
|
|
99
|
+
async sendMsgWithdrawProposal({ value, fee, memo }) {
|
|
113
100
|
if (!signer) {
|
|
114
|
-
throw new Error('TxClient:
|
|
101
|
+
throw new Error('TxClient:sendMsgWithdrawProposal: Unable to sign Tx. Signer is not present.');
|
|
115
102
|
}
|
|
116
103
|
try {
|
|
117
104
|
const { address } = (await signer.getAccounts())[0];
|
|
118
105
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
119
|
-
let msg = this.
|
|
106
|
+
let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) });
|
|
120
107
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
121
108
|
}
|
|
122
109
|
catch (e) {
|
|
123
|
-
throw new Error('TxClient:
|
|
110
|
+
throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: ' + e.message);
|
|
124
111
|
}
|
|
125
112
|
},
|
|
126
|
-
async
|
|
113
|
+
async sendMsgCreateGroup({ value, fee, memo }) {
|
|
127
114
|
if (!signer) {
|
|
128
|
-
throw new Error('TxClient:
|
|
115
|
+
throw new Error('TxClient:sendMsgCreateGroup: Unable to sign Tx. Signer is not present.');
|
|
129
116
|
}
|
|
130
117
|
try {
|
|
131
118
|
const { address } = (await signer.getAccounts())[0];
|
|
132
119
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
133
|
-
let msg = this.
|
|
120
|
+
let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) });
|
|
134
121
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
135
122
|
}
|
|
136
123
|
catch (e) {
|
|
137
|
-
throw new Error('TxClient:
|
|
124
|
+
throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: ' + e.message);
|
|
138
125
|
}
|
|
139
126
|
},
|
|
140
|
-
async
|
|
127
|
+
async sendMsgUpdateGroupAdmin({ value, fee, memo }) {
|
|
141
128
|
if (!signer) {
|
|
142
|
-
throw new Error('TxClient:
|
|
129
|
+
throw new Error('TxClient:sendMsgUpdateGroupAdmin: Unable to sign Tx. Signer is not present.');
|
|
143
130
|
}
|
|
144
131
|
try {
|
|
145
132
|
const { address } = (await signer.getAccounts())[0];
|
|
146
133
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
147
|
-
let msg = this.
|
|
134
|
+
let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) });
|
|
148
135
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
149
136
|
}
|
|
150
137
|
catch (e) {
|
|
151
|
-
throw new Error('TxClient:
|
|
138
|
+
throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: ' + e.message);
|
|
152
139
|
}
|
|
153
140
|
},
|
|
154
|
-
async
|
|
141
|
+
async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }) {
|
|
155
142
|
if (!signer) {
|
|
156
|
-
throw new Error('TxClient:
|
|
143
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Unable to sign Tx. Signer is not present.');
|
|
157
144
|
}
|
|
158
145
|
try {
|
|
159
146
|
const { address } = (await signer.getAccounts())[0];
|
|
160
147
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
161
|
-
let msg = this.
|
|
148
|
+
let msg = this.msgUpdateGroupPolicyAdmin({ value: MsgUpdateGroupPolicyAdmin.fromPartial(value) });
|
|
162
149
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
163
150
|
}
|
|
164
151
|
catch (e) {
|
|
165
|
-
throw new Error('TxClient:
|
|
152
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: ' + e.message);
|
|
166
153
|
}
|
|
167
154
|
},
|
|
168
|
-
async
|
|
155
|
+
async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }) {
|
|
169
156
|
if (!signer) {
|
|
170
|
-
throw new Error('TxClient:
|
|
157
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Unable to sign Tx. Signer is not present.');
|
|
171
158
|
}
|
|
172
159
|
try {
|
|
173
160
|
const { address } = (await signer.getAccounts())[0];
|
|
174
161
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
175
|
-
let msg = this.
|
|
162
|
+
let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) });
|
|
176
163
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
177
164
|
}
|
|
178
165
|
catch (e) {
|
|
179
|
-
throw new Error('TxClient:
|
|
166
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: ' + e.message);
|
|
180
167
|
}
|
|
181
168
|
},
|
|
182
169
|
async sendMsgUpdateGroupMetadata({ value, fee, memo }) {
|
|
@@ -193,18 +180,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
193
180
|
throw new Error('TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: ' + e.message);
|
|
194
181
|
}
|
|
195
182
|
},
|
|
196
|
-
async
|
|
183
|
+
async sendMsgCreateGroupPolicy({ value, fee, memo }) {
|
|
197
184
|
if (!signer) {
|
|
198
|
-
throw new Error('TxClient:
|
|
185
|
+
throw new Error('TxClient:sendMsgCreateGroupPolicy: Unable to sign Tx. Signer is not present.');
|
|
199
186
|
}
|
|
200
187
|
try {
|
|
201
188
|
const { address } = (await signer.getAccounts())[0];
|
|
202
189
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
203
|
-
let msg = this.
|
|
190
|
+
let msg = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) });
|
|
204
191
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
205
192
|
}
|
|
206
193
|
catch (e) {
|
|
207
|
-
throw new Error('TxClient:
|
|
194
|
+
throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: ' + e.message);
|
|
208
195
|
}
|
|
209
196
|
},
|
|
210
197
|
async sendMsgExec({ value, fee, memo }) {
|
|
@@ -221,18 +208,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
221
208
|
throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: ' + e.message);
|
|
222
209
|
}
|
|
223
210
|
},
|
|
224
|
-
async
|
|
211
|
+
async sendMsgCreateGroupWithPolicy({ value, fee, memo }) {
|
|
225
212
|
if (!signer) {
|
|
226
|
-
throw new Error('TxClient:
|
|
213
|
+
throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Unable to sign Tx. Signer is not present.');
|
|
227
214
|
}
|
|
228
215
|
try {
|
|
229
216
|
const { address } = (await signer.getAccounts())[0];
|
|
230
217
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
231
|
-
let msg = this.
|
|
218
|
+
let msg = this.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.fromPartial(value) });
|
|
232
219
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
233
220
|
}
|
|
234
221
|
catch (e) {
|
|
235
|
-
throw new Error('TxClient:
|
|
222
|
+
throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: ' + e.message);
|
|
236
223
|
}
|
|
237
224
|
},
|
|
238
225
|
async sendMsgLeaveGroup({ value, fee, memo }) {
|
|
@@ -249,76 +236,82 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
249
236
|
throw new Error('TxClient:sendMsgLeaveGroup: Could not broadcast Tx: ' + e.message);
|
|
250
237
|
}
|
|
251
238
|
},
|
|
252
|
-
|
|
239
|
+
async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }) {
|
|
240
|
+
if (!signer) {
|
|
241
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Unable to sign Tx. Signer is not present.');
|
|
242
|
+
}
|
|
253
243
|
try {
|
|
254
|
-
|
|
244
|
+
const { address } = (await signer.getAccounts())[0];
|
|
245
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
246
|
+
let msg = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) });
|
|
247
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
255
248
|
}
|
|
256
249
|
catch (e) {
|
|
257
|
-
throw new Error('TxClient:
|
|
250
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: ' + e.message);
|
|
258
251
|
}
|
|
259
252
|
},
|
|
260
|
-
|
|
253
|
+
msgSubmitProposal({ value }) {
|
|
261
254
|
try {
|
|
262
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
255
|
+
return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) };
|
|
263
256
|
}
|
|
264
257
|
catch (e) {
|
|
265
|
-
throw new Error('TxClient:
|
|
258
|
+
throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
|
|
266
259
|
}
|
|
267
260
|
},
|
|
268
|
-
|
|
261
|
+
msgVote({ value }) {
|
|
269
262
|
try {
|
|
270
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
263
|
+
return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial(value) };
|
|
271
264
|
}
|
|
272
265
|
catch (e) {
|
|
273
|
-
throw new Error('TxClient:
|
|
266
|
+
throw new Error('TxClient:MsgVote: Could not create message: ' + e.message);
|
|
274
267
|
}
|
|
275
268
|
},
|
|
276
|
-
|
|
269
|
+
msgUpdateGroupMembers({ value }) {
|
|
277
270
|
try {
|
|
278
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
271
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial(value) };
|
|
279
272
|
}
|
|
280
273
|
catch (e) {
|
|
281
|
-
throw new Error('TxClient:
|
|
274
|
+
throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message);
|
|
282
275
|
}
|
|
283
276
|
},
|
|
284
|
-
|
|
277
|
+
msgWithdrawProposal({ value }) {
|
|
285
278
|
try {
|
|
286
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
279
|
+
return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial(value) };
|
|
287
280
|
}
|
|
288
281
|
catch (e) {
|
|
289
|
-
throw new Error('TxClient:
|
|
282
|
+
throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message);
|
|
290
283
|
}
|
|
291
284
|
},
|
|
292
|
-
|
|
285
|
+
msgCreateGroup({ value }) {
|
|
293
286
|
try {
|
|
294
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
287
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial(value) };
|
|
295
288
|
}
|
|
296
289
|
catch (e) {
|
|
297
|
-
throw new Error('TxClient:
|
|
290
|
+
throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message);
|
|
298
291
|
}
|
|
299
292
|
},
|
|
300
|
-
|
|
293
|
+
msgUpdateGroupAdmin({ value }) {
|
|
301
294
|
try {
|
|
302
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
295
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial(value) };
|
|
303
296
|
}
|
|
304
297
|
catch (e) {
|
|
305
|
-
throw new Error('TxClient:
|
|
298
|
+
throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message);
|
|
306
299
|
}
|
|
307
300
|
},
|
|
308
|
-
|
|
301
|
+
msgUpdateGroupPolicyAdmin({ value }) {
|
|
309
302
|
try {
|
|
310
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
303
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", value: MsgUpdateGroupPolicyAdmin.fromPartial(value) };
|
|
311
304
|
}
|
|
312
305
|
catch (e) {
|
|
313
|
-
throw new Error('TxClient:
|
|
306
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: ' + e.message);
|
|
314
307
|
}
|
|
315
308
|
},
|
|
316
|
-
|
|
309
|
+
msgUpdateGroupPolicyDecisionPolicy({ value }) {
|
|
317
310
|
try {
|
|
318
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
311
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) };
|
|
319
312
|
}
|
|
320
313
|
catch (e) {
|
|
321
|
-
throw new Error('TxClient:
|
|
314
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message);
|
|
322
315
|
}
|
|
323
316
|
},
|
|
324
317
|
msgUpdateGroupMetadata({ value }) {
|
|
@@ -329,12 +322,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
329
322
|
throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message);
|
|
330
323
|
}
|
|
331
324
|
},
|
|
332
|
-
|
|
325
|
+
msgCreateGroupPolicy({ value }) {
|
|
333
326
|
try {
|
|
334
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
327
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial(value) };
|
|
335
328
|
}
|
|
336
329
|
catch (e) {
|
|
337
|
-
throw new Error('TxClient:
|
|
330
|
+
throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message);
|
|
338
331
|
}
|
|
339
332
|
},
|
|
340
333
|
msgExec({ value }) {
|
|
@@ -345,12 +338,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
345
338
|
throw new Error('TxClient:MsgExec: Could not create message: ' + e.message);
|
|
346
339
|
}
|
|
347
340
|
},
|
|
348
|
-
|
|
341
|
+
msgCreateGroupWithPolicy({ value }) {
|
|
349
342
|
try {
|
|
350
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
343
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial(value) };
|
|
351
344
|
}
|
|
352
345
|
catch (e) {
|
|
353
|
-
throw new Error('TxClient:
|
|
346
|
+
throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message);
|
|
354
347
|
}
|
|
355
348
|
},
|
|
356
349
|
msgLeaveGroup({ value }) {
|
|
@@ -361,6 +354,14 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
361
354
|
throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message);
|
|
362
355
|
}
|
|
363
356
|
},
|
|
357
|
+
msgUpdateGroupPolicyMetadata({ value }) {
|
|
358
|
+
try {
|
|
359
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial(value) };
|
|
360
|
+
}
|
|
361
|
+
catch (e) {
|
|
362
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message);
|
|
363
|
+
}
|
|
364
|
+
},
|
|
364
365
|
};
|
|
365
366
|
};
|
|
366
367
|
export const queryClient = ({ addr: addr } = { addr: "http://localhost:1317" }) => {
|
|
@@ -381,6 +382,7 @@ class SDKModule {
|
|
|
381
382
|
EventVote: getStructure(typeEventVote.fromPartial({})),
|
|
382
383
|
EventExec: getStructure(typeEventExec.fromPartial({})),
|
|
383
384
|
EventLeaveGroup: getStructure(typeEventLeaveGroup.fromPartial({})),
|
|
385
|
+
EventProposalPruned: getStructure(typeEventProposalPruned.fromPartial({})),
|
|
384
386
|
Member: getStructure(typeMember.fromPartial({})),
|
|
385
387
|
MemberRequest: getStructure(typeMemberRequest.fromPartial({})),
|
|
386
388
|
ThresholdDecisionPolicy: getStructure(typeThresholdDecisionPolicy.fromPartial({})),
|