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
|
@@ -3,10 +3,10 @@ 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 { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
|
|
6
7
|
import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
|
|
7
|
-
import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
|
|
8
8
|
import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
|
|
9
|
-
import {
|
|
9
|
+
import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
|
|
10
10
|
import { WeightedVoteOption as typeWeightedVoteOption } from "./types";
|
|
11
11
|
import { TextProposal as typeTextProposal } from "./types";
|
|
12
12
|
import { Deposit as typeDeposit } from "./types";
|
|
@@ -16,7 +16,7 @@ import { Vote as typeVote } from "./types";
|
|
|
16
16
|
import { DepositParams as typeDepositParams } from "./types";
|
|
17
17
|
import { VotingParams as typeVotingParams } from "./types";
|
|
18
18
|
import { TallyParams as typeTallyParams } from "./types";
|
|
19
|
-
export {
|
|
19
|
+
export { MsgVoteWeighted, MsgVote, MsgDeposit, MsgSubmitProposal };
|
|
20
20
|
export const registry = new Registry(msgTypes);
|
|
21
21
|
function getStructure(template) {
|
|
22
22
|
const structure = { fields: [] };
|
|
@@ -32,32 +32,32 @@ const defaultFee = {
|
|
|
32
32
|
};
|
|
33
33
|
export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
|
|
34
34
|
return {
|
|
35
|
-
async
|
|
35
|
+
async sendMsgVoteWeighted({ value, fee, memo }) {
|
|
36
36
|
if (!signer) {
|
|
37
|
-
throw new Error('TxClient:
|
|
37
|
+
throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.');
|
|
38
38
|
}
|
|
39
39
|
try {
|
|
40
40
|
const { address } = (await signer.getAccounts())[0];
|
|
41
41
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
42
|
-
let msg = this.
|
|
42
|
+
let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) });
|
|
43
43
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
44
44
|
}
|
|
45
45
|
catch (e) {
|
|
46
|
-
throw new Error('TxClient:
|
|
46
|
+
throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: ' + e.message);
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
async
|
|
49
|
+
async sendMsgVote({ value, fee, memo }) {
|
|
50
50
|
if (!signer) {
|
|
51
|
-
throw new Error('TxClient:
|
|
51
|
+
throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.');
|
|
52
52
|
}
|
|
53
53
|
try {
|
|
54
54
|
const { address } = (await signer.getAccounts())[0];
|
|
55
55
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
56
|
-
let msg = this.
|
|
56
|
+
let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
|
|
57
57
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
58
58
|
}
|
|
59
59
|
catch (e) {
|
|
60
|
-
throw new Error('TxClient:
|
|
60
|
+
throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message);
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
async sendMsgDeposit({ value, fee, memo }) {
|
|
@@ -74,34 +74,34 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
74
74
|
throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: ' + e.message);
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
-
async
|
|
77
|
+
async sendMsgSubmitProposal({ value, fee, memo }) {
|
|
78
78
|
if (!signer) {
|
|
79
|
-
throw new Error('TxClient:
|
|
79
|
+
throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.');
|
|
80
80
|
}
|
|
81
81
|
try {
|
|
82
82
|
const { address } = (await signer.getAccounts())[0];
|
|
83
83
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
84
|
-
let msg = this.
|
|
84
|
+
let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
|
|
85
85
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
86
86
|
}
|
|
87
87
|
catch (e) {
|
|
88
|
-
throw new Error('TxClient:
|
|
88
|
+
throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
|
-
|
|
91
|
+
msgVoteWeighted({ value }) {
|
|
92
92
|
try {
|
|
93
|
-
return { typeUrl: "/cosmos.gov.v1beta1.
|
|
93
|
+
return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial(value) };
|
|
94
94
|
}
|
|
95
95
|
catch (e) {
|
|
96
|
-
throw new Error('TxClient:
|
|
96
|
+
throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message);
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
-
|
|
99
|
+
msgVote({ value }) {
|
|
100
100
|
try {
|
|
101
|
-
return { typeUrl: "/cosmos.gov.v1beta1.
|
|
101
|
+
return { typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: MsgVote.fromPartial(value) };
|
|
102
102
|
}
|
|
103
103
|
catch (e) {
|
|
104
|
-
throw new Error('TxClient:
|
|
104
|
+
throw new Error('TxClient:MsgVote: Could not create message: ' + e.message);
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
msgDeposit({ value }) {
|
|
@@ -112,12 +112,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
112
112
|
throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message);
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
|
-
|
|
115
|
+
msgSubmitProposal({ value }) {
|
|
116
116
|
try {
|
|
117
|
-
return { typeUrl: "/cosmos.gov.v1beta1.
|
|
117
|
+
return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) };
|
|
118
118
|
}
|
|
119
119
|
catch (e) {
|
|
120
|
-
throw new Error('TxClient:
|
|
120
|
+
throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
};
|
|
@@ -7,10 +7,10 @@ import { msgTypes } from './registry';
|
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
+
import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
|
|
10
11
|
import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
|
|
11
|
-
import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
|
|
12
12
|
import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
|
|
13
|
-
import {
|
|
13
|
+
import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
|
|
14
14
|
|
|
15
15
|
import { WeightedVoteOption as typeWeightedVoteOption} from "./types"
|
|
16
16
|
import { TextProposal as typeTextProposal} from "./types"
|
|
@@ -22,16 +22,16 @@ import { DepositParams as typeDepositParams} from "./types"
|
|
|
22
22
|
import { VotingParams as typeVotingParams} from "./types"
|
|
23
23
|
import { TallyParams as typeTallyParams} from "./types"
|
|
24
24
|
|
|
25
|
-
export {
|
|
25
|
+
export { MsgVoteWeighted, MsgVote, MsgDeposit, MsgSubmitProposal };
|
|
26
26
|
|
|
27
|
-
type
|
|
28
|
-
value:
|
|
27
|
+
type sendMsgVoteWeightedParams = {
|
|
28
|
+
value: MsgVoteWeighted,
|
|
29
29
|
fee?: StdFee,
|
|
30
30
|
memo?: string
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
type
|
|
34
|
-
value:
|
|
33
|
+
type sendMsgVoteParams = {
|
|
34
|
+
value: MsgVote,
|
|
35
35
|
fee?: StdFee,
|
|
36
36
|
memo?: string
|
|
37
37
|
};
|
|
@@ -42,27 +42,27 @@ type sendMsgDepositParams = {
|
|
|
42
42
|
memo?: string
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
type
|
|
46
|
-
value:
|
|
45
|
+
type sendMsgSubmitProposalParams = {
|
|
46
|
+
value: MsgSubmitProposal,
|
|
47
47
|
fee?: StdFee,
|
|
48
48
|
memo?: string
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
type
|
|
53
|
-
value:
|
|
52
|
+
type msgVoteWeightedParams = {
|
|
53
|
+
value: MsgVoteWeighted,
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
type
|
|
57
|
-
value:
|
|
56
|
+
type msgVoteParams = {
|
|
57
|
+
value: MsgVote,
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
type msgDepositParams = {
|
|
61
61
|
value: MsgDeposit,
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
type
|
|
65
|
-
value:
|
|
64
|
+
type msgSubmitProposalParams = {
|
|
65
|
+
value: MsgSubmitProposal,
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
|
|
@@ -95,31 +95,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
95
95
|
|
|
96
96
|
return {
|
|
97
97
|
|
|
98
|
-
async
|
|
98
|
+
async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse> {
|
|
99
99
|
if (!signer) {
|
|
100
|
-
throw new Error('TxClient:
|
|
100
|
+
throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.')
|
|
101
101
|
}
|
|
102
102
|
try {
|
|
103
103
|
const { address } = (await signer.getAccounts())[0];
|
|
104
104
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
105
|
-
let msg = this.
|
|
105
|
+
let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) })
|
|
106
106
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
107
107
|
} catch (e: any) {
|
|
108
|
-
throw new Error('TxClient:
|
|
108
|
+
throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message)
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
|
|
112
|
-
async
|
|
112
|
+
async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse> {
|
|
113
113
|
if (!signer) {
|
|
114
|
-
throw new Error('TxClient:
|
|
114
|
+
throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.')
|
|
115
115
|
}
|
|
116
116
|
try {
|
|
117
117
|
const { address } = (await signer.getAccounts())[0];
|
|
118
118
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
119
|
-
let msg = this.
|
|
119
|
+
let msg = this.msgVote({ value: MsgVote.fromPartial(value) })
|
|
120
120
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
121
121
|
} catch (e: any) {
|
|
122
|
-
throw new Error('TxClient:
|
|
122
|
+
throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message)
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
|
|
@@ -137,34 +137,34 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
|
|
140
|
-
async
|
|
140
|
+
async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse> {
|
|
141
141
|
if (!signer) {
|
|
142
|
-
throw new Error('TxClient:
|
|
142
|
+
throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.')
|
|
143
143
|
}
|
|
144
144
|
try {
|
|
145
145
|
const { address } = (await signer.getAccounts())[0];
|
|
146
146
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
147
|
-
let msg = this.
|
|
147
|
+
let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) })
|
|
148
148
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
149
149
|
} catch (e: any) {
|
|
150
|
-
throw new Error('TxClient:
|
|
150
|
+
throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message)
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject {
|
|
156
156
|
try {
|
|
157
|
-
return { typeUrl: "/cosmos.gov.v1beta1.
|
|
157
|
+
return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) }
|
|
158
158
|
} catch (e: any) {
|
|
159
|
-
throw new Error('TxClient:
|
|
159
|
+
throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message)
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
msgVote({ value }: msgVoteParams): EncodeObject {
|
|
164
164
|
try {
|
|
165
|
-
return { typeUrl: "/cosmos.gov.v1beta1.
|
|
165
|
+
return { typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: MsgVote.fromPartial( value ) }
|
|
166
166
|
} catch (e: any) {
|
|
167
|
-
throw new Error('TxClient:
|
|
167
|
+
throw new Error('TxClient:MsgVote: Could not create message: ' + e.message)
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
170
|
|
|
@@ -176,11 +176,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
176
176
|
}
|
|
177
177
|
},
|
|
178
178
|
|
|
179
|
-
|
|
179
|
+
msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject {
|
|
180
180
|
try {
|
|
181
|
-
return { typeUrl: "/cosmos.gov.v1beta1.
|
|
181
|
+
return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) }
|
|
182
182
|
} catch (e: any) {
|
|
183
|
-
throw new Error('TxClient:
|
|
183
|
+
throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message)
|
|
184
184
|
}
|
|
185
185
|
},
|
|
186
186
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
|
|
1
2
|
import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
|
|
2
|
-
import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
|
|
3
3
|
import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
|
|
4
|
-
import {
|
|
4
|
+
import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
|
|
5
5
|
const msgTypes = [
|
|
6
|
+
["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted],
|
|
6
7
|
["/cosmos.gov.v1beta1.MsgVote", MsgVote],
|
|
7
|
-
["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal],
|
|
8
8
|
["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit],
|
|
9
|
-
["/cosmos.gov.v1beta1.
|
|
9
|
+
["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal],
|
|
10
10
|
];
|
|
11
11
|
export { msgTypes };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
2
|
+
import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
|
|
2
3
|
import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
|
|
3
|
-
import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
|
|
4
4
|
import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
|
|
5
|
-
import {
|
|
5
|
+
import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
|
|
6
6
|
|
|
7
7
|
const msgTypes: Array<[string, GeneratedType]> = [
|
|
8
|
+
["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted],
|
|
8
9
|
["/cosmos.gov.v1beta1.MsgVote", MsgVote],
|
|
9
|
-
["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal],
|
|
10
10
|
["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit],
|
|
11
|
-
["/cosmos.gov.v1beta1.
|
|
11
|
+
["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal],
|
|
12
12
|
|
|
13
13
|
];
|
|
14
14
|
|
|
@@ -146,9 +146,16 @@ export interface V1Beta1Coin {
|
|
|
146
146
|
proposal.
|
|
147
147
|
*/
|
|
148
148
|
export interface V1Beta1Deposit {
|
|
149
|
-
/**
|
|
149
|
+
/**
|
|
150
|
+
* proposal_id defines the unique id of the proposal.
|
|
151
|
+
* @format uint64
|
|
152
|
+
*/
|
|
150
153
|
proposal_id?: string;
|
|
154
|
+
|
|
155
|
+
/** depositor defines the deposit addresses from the proposals. */
|
|
151
156
|
depositor?: string;
|
|
157
|
+
|
|
158
|
+
/** amount to be deposited by depositor. */
|
|
152
159
|
amount?: V1Beta1Coin[];
|
|
153
160
|
}
|
|
154
161
|
|
|
@@ -161,7 +168,7 @@ export interface V1Beta1DepositParams {
|
|
|
161
168
|
|
|
162
169
|
/**
|
|
163
170
|
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
|
164
|
-
*
|
|
171
|
+
* months.
|
|
165
172
|
*/
|
|
166
173
|
max_deposit_period?: string;
|
|
167
174
|
}
|
|
@@ -175,7 +182,10 @@ export type V1Beta1MsgDepositResponse = object;
|
|
|
175
182
|
* MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
|
|
176
183
|
*/
|
|
177
184
|
export interface V1Beta1MsgSubmitProposalResponse {
|
|
178
|
-
/**
|
|
185
|
+
/**
|
|
186
|
+
* proposal_id defines the unique id of the proposal.
|
|
187
|
+
* @format uint64
|
|
188
|
+
*/
|
|
179
189
|
proposal_id?: string;
|
|
180
190
|
}
|
|
181
191
|
|
|
@@ -267,83 +277,16 @@ export interface V1Beta1PageResponse {
|
|
|
267
277
|
* Proposal defines the core field members of a governance proposal.
|
|
268
278
|
*/
|
|
269
279
|
export interface V1Beta1Proposal {
|
|
270
|
-
/** @format uint64 */
|
|
271
|
-
proposal_id?: string;
|
|
272
|
-
|
|
273
280
|
/**
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
* Protobuf library provides support to pack/unpack Any values in the form
|
|
278
|
-
* of utility functions or additional generated methods of the Any type.
|
|
279
|
-
* Example 1: Pack and unpack a message in C++.
|
|
280
|
-
* Foo foo = ...;
|
|
281
|
-
* Any any;
|
|
282
|
-
* any.PackFrom(foo);
|
|
283
|
-
* ...
|
|
284
|
-
* if (any.UnpackTo(&foo)) {
|
|
285
|
-
* ...
|
|
286
|
-
* }
|
|
287
|
-
* Example 2: Pack and unpack a message in Java.
|
|
288
|
-
* Any any = Any.pack(foo);
|
|
289
|
-
* if (any.is(Foo.class)) {
|
|
290
|
-
* foo = any.unpack(Foo.class);
|
|
291
|
-
* Example 3: Pack and unpack a message in Python.
|
|
292
|
-
* foo = Foo(...)
|
|
293
|
-
* any = Any()
|
|
294
|
-
* any.Pack(foo)
|
|
295
|
-
* if any.Is(Foo.DESCRIPTOR):
|
|
296
|
-
* any.Unpack(foo)
|
|
297
|
-
* Example 4: Pack and unpack a message in Go
|
|
298
|
-
* foo := &pb.Foo{...}
|
|
299
|
-
* any, err := anypb.New(foo)
|
|
300
|
-
* if err != nil {
|
|
301
|
-
* ...
|
|
302
|
-
* }
|
|
303
|
-
* ...
|
|
304
|
-
* foo := &pb.Foo{}
|
|
305
|
-
* if err := any.UnmarshalTo(foo); err != nil {
|
|
306
|
-
* The pack methods provided by protobuf library will by default use
|
|
307
|
-
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
308
|
-
* methods only use the fully qualified type name after the last '/'
|
|
309
|
-
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
310
|
-
* name "y.z".
|
|
311
|
-
* JSON
|
|
312
|
-
* ====
|
|
313
|
-
* The JSON representation of an `Any` value uses the regular
|
|
314
|
-
* representation of the deserialized, embedded message, with an
|
|
315
|
-
* additional field `@type` which contains the type URL. Example:
|
|
316
|
-
* package google.profile;
|
|
317
|
-
* message Person {
|
|
318
|
-
* string first_name = 1;
|
|
319
|
-
* string last_name = 2;
|
|
320
|
-
* {
|
|
321
|
-
* "@type": "type.googleapis.com/google.profile.Person",
|
|
322
|
-
* "firstName": <string>,
|
|
323
|
-
* "lastName": <string>
|
|
324
|
-
* If the embedded message type is well-known and has a custom JSON
|
|
325
|
-
* representation, that representation will be embedded adding a field
|
|
326
|
-
* `value` which holds the custom JSON in addition to the `@type`
|
|
327
|
-
* field. Example (for message [google.protobuf.Duration][]):
|
|
328
|
-
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
329
|
-
* "value": "1.212s"
|
|
281
|
+
* proposal_id defines the unique id of the proposal.
|
|
282
|
+
* @format uint64
|
|
330
283
|
*/
|
|
284
|
+
proposal_id?: string;
|
|
285
|
+
|
|
286
|
+
/** content is the proposal's content. */
|
|
331
287
|
content?: ProtobufAny;
|
|
332
288
|
|
|
333
|
-
/**
|
|
334
|
-
* ProposalStatus enumerates the valid statuses of a proposal.
|
|
335
|
-
*
|
|
336
|
-
* - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
|
|
337
|
-
* - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
|
|
338
|
-
* period.
|
|
339
|
-
* - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
|
|
340
|
-
* - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
|
|
341
|
-
* passed.
|
|
342
|
-
* - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
|
|
343
|
-
* been rejected.
|
|
344
|
-
* - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
|
|
345
|
-
* failed.
|
|
346
|
-
*/
|
|
289
|
+
/** status defines the proposal status. */
|
|
347
290
|
status?: V1Beta1ProposalStatus;
|
|
348
291
|
|
|
349
292
|
/**
|
|
@@ -353,17 +296,31 @@ export interface V1Beta1Proposal {
|
|
|
353
296
|
*/
|
|
354
297
|
final_tally_result?: V1Beta1TallyResult;
|
|
355
298
|
|
|
356
|
-
/**
|
|
299
|
+
/**
|
|
300
|
+
* submit_time is the time of proposal submission.
|
|
301
|
+
* @format date-time
|
|
302
|
+
*/
|
|
357
303
|
submit_time?: string;
|
|
358
304
|
|
|
359
|
-
/**
|
|
305
|
+
/**
|
|
306
|
+
* deposit_end_time is the end time for deposition.
|
|
307
|
+
* @format date-time
|
|
308
|
+
*/
|
|
360
309
|
deposit_end_time?: string;
|
|
310
|
+
|
|
311
|
+
/** total_deposit is the total deposit on the proposal. */
|
|
361
312
|
total_deposit?: V1Beta1Coin[];
|
|
362
313
|
|
|
363
|
-
/**
|
|
314
|
+
/**
|
|
315
|
+
* voting_start_time is the starting time to vote on a proposal.
|
|
316
|
+
* @format date-time
|
|
317
|
+
*/
|
|
364
318
|
voting_start_time?: string;
|
|
365
319
|
|
|
366
|
-
/**
|
|
320
|
+
/**
|
|
321
|
+
* voting_end_time is the end time of voting on a proposal.
|
|
322
|
+
* @format date-time
|
|
323
|
+
*/
|
|
367
324
|
voting_end_time?: string;
|
|
368
325
|
}
|
|
369
326
|
|
|
@@ -403,6 +360,7 @@ export interface V1Beta1QueryDepositResponse {
|
|
|
403
360
|
* QueryDepositsResponse is the response type for the Query/Deposits RPC method.
|
|
404
361
|
*/
|
|
405
362
|
export interface V1Beta1QueryDepositsResponse {
|
|
363
|
+
/** deposits defines the requested deposits. */
|
|
406
364
|
deposits?: V1Beta1Deposit[];
|
|
407
365
|
|
|
408
366
|
/** pagination defines the pagination in the response. */
|
|
@@ -436,6 +394,7 @@ export interface V1Beta1QueryProposalResponse {
|
|
|
436
394
|
method.
|
|
437
395
|
*/
|
|
438
396
|
export interface V1Beta1QueryProposalsResponse {
|
|
397
|
+
/** proposals defines all the requested governance proposals. */
|
|
439
398
|
proposals?: V1Beta1Proposal[];
|
|
440
399
|
|
|
441
400
|
/** pagination defines the pagination in the response. */
|
|
@@ -454,7 +413,7 @@ export interface V1Beta1QueryTallyResultResponse {
|
|
|
454
413
|
* QueryVoteResponse is the response type for the Query/Vote RPC method.
|
|
455
414
|
*/
|
|
456
415
|
export interface V1Beta1QueryVoteResponse {
|
|
457
|
-
/** vote
|
|
416
|
+
/** vote defines the queried vote. */
|
|
458
417
|
vote?: V1Beta1Vote;
|
|
459
418
|
}
|
|
460
419
|
|
|
@@ -462,7 +421,7 @@ export interface V1Beta1QueryVoteResponse {
|
|
|
462
421
|
* QueryVotesResponse is the response type for the Query/Votes RPC method.
|
|
463
422
|
*/
|
|
464
423
|
export interface V1Beta1QueryVotesResponse {
|
|
465
|
-
/** votes
|
|
424
|
+
/** votes defines the queried votes. */
|
|
466
425
|
votes?: V1Beta1Vote[];
|
|
467
426
|
|
|
468
427
|
/** pagination defines the pagination in the response. */
|
|
@@ -475,7 +434,7 @@ export interface V1Beta1QueryVotesResponse {
|
|
|
475
434
|
export interface V1Beta1TallyParams {
|
|
476
435
|
/**
|
|
477
436
|
* Minimum percentage of total stake needed to vote for a result to be
|
|
478
|
-
*
|
|
437
|
+
* considered valid.
|
|
479
438
|
* @format byte
|
|
480
439
|
*/
|
|
481
440
|
quorum?: string;
|
|
@@ -488,7 +447,7 @@ export interface V1Beta1TallyParams {
|
|
|
488
447
|
|
|
489
448
|
/**
|
|
490
449
|
* Minimum value of Veto votes to Total votes ratio for proposal to be
|
|
491
|
-
*
|
|
450
|
+
* vetoed. Default value: 1/3.
|
|
492
451
|
* @format byte
|
|
493
452
|
*/
|
|
494
453
|
veto_threshold?: string;
|
|
@@ -498,9 +457,16 @@ export interface V1Beta1TallyParams {
|
|
|
498
457
|
* TallyResult defines a standard tally for a governance proposal.
|
|
499
458
|
*/
|
|
500
459
|
export interface V1Beta1TallyResult {
|
|
460
|
+
/** yes is the number of yes votes on a proposal. */
|
|
501
461
|
yes?: string;
|
|
462
|
+
|
|
463
|
+
/** abstain is the number of abstain votes on a proposal. */
|
|
502
464
|
abstain?: string;
|
|
465
|
+
|
|
466
|
+
/** no is the number of no votes on a proposal. */
|
|
503
467
|
no?: string;
|
|
468
|
+
|
|
469
|
+
/** no_with_veto is the number of no with veto votes on a proposal. */
|
|
504
470
|
no_with_veto?: string;
|
|
505
471
|
}
|
|
506
472
|
|
|
@@ -509,8 +475,13 @@ export interface V1Beta1TallyResult {
|
|
|
509
475
|
A Vote consists of a proposal ID, the voter, and the vote option.
|
|
510
476
|
*/
|
|
511
477
|
export interface V1Beta1Vote {
|
|
512
|
-
/**
|
|
478
|
+
/**
|
|
479
|
+
* proposal_id defines the unique id of the proposal.
|
|
480
|
+
* @format uint64
|
|
481
|
+
*/
|
|
513
482
|
proposal_id?: string;
|
|
483
|
+
|
|
484
|
+
/** voter is the voter address of the proposal. */
|
|
514
485
|
voter?: string;
|
|
515
486
|
|
|
516
487
|
/**
|
|
@@ -520,7 +491,11 @@ export interface V1Beta1Vote {
|
|
|
520
491
|
*/
|
|
521
492
|
option?: V1Beta1VoteOption;
|
|
522
493
|
|
|
523
|
-
/**
|
|
494
|
+
/**
|
|
495
|
+
* options is the weighted vote options.
|
|
496
|
+
*
|
|
497
|
+
* Since: cosmos-sdk 0.43
|
|
498
|
+
*/
|
|
524
499
|
options?: V1Beta1WeightedVoteOption[];
|
|
525
500
|
}
|
|
526
501
|
|
|
@@ -545,7 +520,7 @@ export enum V1Beta1VoteOption {
|
|
|
545
520
|
* VotingParams defines the params for voting on governance proposals.
|
|
546
521
|
*/
|
|
547
522
|
export interface V1Beta1VotingParams {
|
|
548
|
-
/**
|
|
523
|
+
/** Duration of the voting period. */
|
|
549
524
|
voting_period?: string;
|
|
550
525
|
}
|
|
551
526
|
|
|
@@ -555,16 +530,10 @@ export interface V1Beta1VotingParams {
|
|
|
555
530
|
Since: cosmos-sdk 0.43
|
|
556
531
|
*/
|
|
557
532
|
export interface V1Beta1WeightedVoteOption {
|
|
558
|
-
/**
|
|
559
|
-
* VoteOption enumerates the valid vote options for a given governance proposal.
|
|
560
|
-
*
|
|
561
|
-
* - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
|
|
562
|
-
* - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option.
|
|
563
|
-
* - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option.
|
|
564
|
-
* - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option.
|
|
565
|
-
* - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
|
|
566
|
-
*/
|
|
533
|
+
/** option defines the valid vote options, it must not contain duplicate vote options. */
|
|
567
534
|
option?: V1Beta1VoteOption;
|
|
535
|
+
|
|
536
|
+
/** weight is the vote weight associated with the vote option. */
|
|
568
537
|
weight?: string;
|
|
569
538
|
}
|
|
570
539
|
|
|
@@ -15,15 +15,15 @@ export interface GenesisState {
|
|
|
15
15
|
votes: Vote[];
|
|
16
16
|
/** proposals defines all the proposals present at genesis. */
|
|
17
17
|
proposals: Proposal[];
|
|
18
|
-
/** params defines all the
|
|
18
|
+
/** params defines all the parameters of related to deposit. */
|
|
19
19
|
depositParams:
|
|
20
20
|
| DepositParams
|
|
21
21
|
| undefined;
|
|
22
|
-
/** params defines all the
|
|
22
|
+
/** params defines all the parameters of related to voting. */
|
|
23
23
|
votingParams:
|
|
24
24
|
| VotingParams
|
|
25
25
|
| undefined;
|
|
26
|
-
/** params defines all the
|
|
26
|
+
/** params defines all the parameters of related to tally. */
|
|
27
27
|
tallyParams: TallyParams | undefined;
|
|
28
28
|
}
|
|
29
29
|
|