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
|
@@ -4,11 +4,11 @@ import { Registry } from "@cosmjs/proto-signing";
|
|
|
4
4
|
import { msgTypes } from './registry';
|
|
5
5
|
import { Api } from "./rest";
|
|
6
6
|
import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
7
|
-
import {
|
|
8
|
-
import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
7
|
+
import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx";
|
|
9
8
|
import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
9
|
+
import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
10
10
|
import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
11
|
-
import {
|
|
11
|
+
import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
12
12
|
import { StakeAuthorization as typeStakeAuthorization } from "./types";
|
|
13
13
|
import { StakeAuthorization_Validators as typeStakeAuthorization_Validators } from "./types";
|
|
14
14
|
import { LastValidatorPower as typeLastValidatorPower } from "./types";
|
|
@@ -32,7 +32,8 @@ import { DelegationResponse as typeDelegationResponse } from "./types";
|
|
|
32
32
|
import { RedelegationEntryResponse as typeRedelegationEntryResponse } from "./types";
|
|
33
33
|
import { RedelegationResponse as typeRedelegationResponse } from "./types";
|
|
34
34
|
import { Pool as typePool } from "./types";
|
|
35
|
-
|
|
35
|
+
import { ValidatorUpdates as typeValidatorUpdates } from "./types";
|
|
36
|
+
export { MsgUndelegate, MsgCancelUnbondingDelegation, MsgEditValidator, MsgBeginRedelegate, MsgCreateValidator, MsgDelegate };
|
|
36
37
|
export const registry = new Registry(msgTypes);
|
|
37
38
|
function getStructure(template) {
|
|
38
39
|
const structure = { fields: [] };
|
|
@@ -62,46 +63,46 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
62
63
|
throw new Error('TxClient:sendMsgUndelegate: Could not broadcast Tx: ' + e.message);
|
|
63
64
|
}
|
|
64
65
|
},
|
|
65
|
-
async
|
|
66
|
+
async sendMsgCancelUnbondingDelegation({ value, fee, memo }) {
|
|
66
67
|
if (!signer) {
|
|
67
|
-
throw new Error('TxClient:
|
|
68
|
+
throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.');
|
|
68
69
|
}
|
|
69
70
|
try {
|
|
70
71
|
const { address } = (await signer.getAccounts())[0];
|
|
71
72
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
72
|
-
let msg = this.
|
|
73
|
+
let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) });
|
|
73
74
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
74
75
|
}
|
|
75
76
|
catch (e) {
|
|
76
|
-
throw new Error('TxClient:
|
|
77
|
+
throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: ' + e.message);
|
|
77
78
|
}
|
|
78
79
|
},
|
|
79
|
-
async
|
|
80
|
+
async sendMsgEditValidator({ value, fee, memo }) {
|
|
80
81
|
if (!signer) {
|
|
81
|
-
throw new Error('TxClient:
|
|
82
|
+
throw new Error('TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.');
|
|
82
83
|
}
|
|
83
84
|
try {
|
|
84
85
|
const { address } = (await signer.getAccounts())[0];
|
|
85
86
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
86
|
-
let msg = this.
|
|
87
|
+
let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) });
|
|
87
88
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
88
89
|
}
|
|
89
90
|
catch (e) {
|
|
90
|
-
throw new Error('TxClient:
|
|
91
|
+
throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: ' + e.message);
|
|
91
92
|
}
|
|
92
93
|
},
|
|
93
|
-
async
|
|
94
|
+
async sendMsgBeginRedelegate({ value, fee, memo }) {
|
|
94
95
|
if (!signer) {
|
|
95
|
-
throw new Error('TxClient:
|
|
96
|
+
throw new Error('TxClient:sendMsgBeginRedelegate: Unable to sign Tx. Signer is not present.');
|
|
96
97
|
}
|
|
97
98
|
try {
|
|
98
99
|
const { address } = (await signer.getAccounts())[0];
|
|
99
100
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
100
|
-
let msg = this.
|
|
101
|
+
let msg = this.msgBeginRedelegate({ value: MsgBeginRedelegate.fromPartial(value) });
|
|
101
102
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
102
103
|
}
|
|
103
104
|
catch (e) {
|
|
104
|
-
throw new Error('TxClient:
|
|
105
|
+
throw new Error('TxClient:sendMsgBeginRedelegate: Could not broadcast Tx: ' + e.message);
|
|
105
106
|
}
|
|
106
107
|
},
|
|
107
108
|
async sendMsgCreateValidator({ value, fee, memo }) {
|
|
@@ -118,18 +119,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
118
119
|
throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: ' + e.message);
|
|
119
120
|
}
|
|
120
121
|
},
|
|
121
|
-
async
|
|
122
|
+
async sendMsgDelegate({ value, fee, memo }) {
|
|
122
123
|
if (!signer) {
|
|
123
|
-
throw new Error('TxClient:
|
|
124
|
+
throw new Error('TxClient:sendMsgDelegate: Unable to sign Tx. Signer is not present.');
|
|
124
125
|
}
|
|
125
126
|
try {
|
|
126
127
|
const { address } = (await signer.getAccounts())[0];
|
|
127
128
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
128
|
-
let msg = this.
|
|
129
|
+
let msg = this.msgDelegate({ value: MsgDelegate.fromPartial(value) });
|
|
129
130
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
130
131
|
}
|
|
131
132
|
catch (e) {
|
|
132
|
-
throw new Error('TxClient:
|
|
133
|
+
throw new Error('TxClient:sendMsgDelegate: Could not broadcast Tx: ' + e.message);
|
|
133
134
|
}
|
|
134
135
|
},
|
|
135
136
|
msgUndelegate({ value }) {
|
|
@@ -140,28 +141,28 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
140
141
|
throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message);
|
|
141
142
|
}
|
|
142
143
|
},
|
|
143
|
-
|
|
144
|
+
msgCancelUnbondingDelegation({ value }) {
|
|
144
145
|
try {
|
|
145
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
146
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial(value) };
|
|
146
147
|
}
|
|
147
148
|
catch (e) {
|
|
148
|
-
throw new Error('TxClient:
|
|
149
|
+
throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message);
|
|
149
150
|
}
|
|
150
151
|
},
|
|
151
|
-
|
|
152
|
+
msgEditValidator({ value }) {
|
|
152
153
|
try {
|
|
153
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
154
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial(value) };
|
|
154
155
|
}
|
|
155
156
|
catch (e) {
|
|
156
|
-
throw new Error('TxClient:
|
|
157
|
+
throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message);
|
|
157
158
|
}
|
|
158
159
|
},
|
|
159
|
-
|
|
160
|
+
msgBeginRedelegate({ value }) {
|
|
160
161
|
try {
|
|
161
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
162
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial(value) };
|
|
162
163
|
}
|
|
163
164
|
catch (e) {
|
|
164
|
-
throw new Error('TxClient:
|
|
165
|
+
throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message);
|
|
165
166
|
}
|
|
166
167
|
},
|
|
167
168
|
msgCreateValidator({ value }) {
|
|
@@ -172,12 +173,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
172
173
|
throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message);
|
|
173
174
|
}
|
|
174
175
|
},
|
|
175
|
-
|
|
176
|
+
msgDelegate({ value }) {
|
|
176
177
|
try {
|
|
177
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
178
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: MsgDelegate.fromPartial(value) };
|
|
178
179
|
}
|
|
179
180
|
catch (e) {
|
|
180
|
-
throw new Error('TxClient:
|
|
181
|
+
throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message);
|
|
181
182
|
}
|
|
182
183
|
},
|
|
183
184
|
};
|
|
@@ -214,6 +215,7 @@ class SDKModule {
|
|
|
214
215
|
RedelegationEntryResponse: getStructure(typeRedelegationEntryResponse.fromPartial({})),
|
|
215
216
|
RedelegationResponse: getStructure(typeRedelegationResponse.fromPartial({})),
|
|
216
217
|
Pool: getStructure(typePool.fromPartial({})),
|
|
218
|
+
ValidatorUpdates: getStructure(typeValidatorUpdates.fromPartial({})),
|
|
217
219
|
};
|
|
218
220
|
client.on('signer-changed', (signer) => {
|
|
219
221
|
this.updateTX(client);
|
|
@@ -8,11 +8,11 @@ import { IgniteClient } from "../client"
|
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
10
|
import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
11
|
-
import {
|
|
12
|
-
import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
11
|
+
import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx";
|
|
13
12
|
import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
13
|
+
import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
14
14
|
import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
15
|
-
import {
|
|
15
|
+
import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
16
16
|
|
|
17
17
|
import { StakeAuthorization as typeStakeAuthorization} from "./types"
|
|
18
18
|
import { StakeAuthorization_Validators as typeStakeAuthorization_Validators} from "./types"
|
|
@@ -37,8 +37,9 @@ import { DelegationResponse as typeDelegationResponse} from "./types"
|
|
|
37
37
|
import { RedelegationEntryResponse as typeRedelegationEntryResponse} from "./types"
|
|
38
38
|
import { RedelegationResponse as typeRedelegationResponse} from "./types"
|
|
39
39
|
import { Pool as typePool} from "./types"
|
|
40
|
+
import { ValidatorUpdates as typeValidatorUpdates} from "./types"
|
|
40
41
|
|
|
41
|
-
export { MsgUndelegate,
|
|
42
|
+
export { MsgUndelegate, MsgCancelUnbondingDelegation, MsgEditValidator, MsgBeginRedelegate, MsgCreateValidator, MsgDelegate };
|
|
42
43
|
|
|
43
44
|
type sendMsgUndelegateParams = {
|
|
44
45
|
value: MsgUndelegate,
|
|
@@ -46,20 +47,20 @@ type sendMsgUndelegateParams = {
|
|
|
46
47
|
memo?: string
|
|
47
48
|
};
|
|
48
49
|
|
|
49
|
-
type
|
|
50
|
-
value:
|
|
50
|
+
type sendMsgCancelUnbondingDelegationParams = {
|
|
51
|
+
value: MsgCancelUnbondingDelegation,
|
|
51
52
|
fee?: StdFee,
|
|
52
53
|
memo?: string
|
|
53
54
|
};
|
|
54
55
|
|
|
55
|
-
type
|
|
56
|
-
value:
|
|
56
|
+
type sendMsgEditValidatorParams = {
|
|
57
|
+
value: MsgEditValidator,
|
|
57
58
|
fee?: StdFee,
|
|
58
59
|
memo?: string
|
|
59
60
|
};
|
|
60
61
|
|
|
61
|
-
type
|
|
62
|
-
value:
|
|
62
|
+
type sendMsgBeginRedelegateParams = {
|
|
63
|
+
value: MsgBeginRedelegate,
|
|
63
64
|
fee?: StdFee,
|
|
64
65
|
memo?: string
|
|
65
66
|
};
|
|
@@ -70,8 +71,8 @@ type sendMsgCreateValidatorParams = {
|
|
|
70
71
|
memo?: string
|
|
71
72
|
};
|
|
72
73
|
|
|
73
|
-
type
|
|
74
|
-
value:
|
|
74
|
+
type sendMsgDelegateParams = {
|
|
75
|
+
value: MsgDelegate,
|
|
75
76
|
fee?: StdFee,
|
|
76
77
|
memo?: string
|
|
77
78
|
};
|
|
@@ -81,24 +82,24 @@ type msgUndelegateParams = {
|
|
|
81
82
|
value: MsgUndelegate,
|
|
82
83
|
};
|
|
83
84
|
|
|
84
|
-
type
|
|
85
|
-
value:
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
type msgBeginRedelegateParams = {
|
|
89
|
-
value: MsgBeginRedelegate,
|
|
85
|
+
type msgCancelUnbondingDelegationParams = {
|
|
86
|
+
value: MsgCancelUnbondingDelegation,
|
|
90
87
|
};
|
|
91
88
|
|
|
92
89
|
type msgEditValidatorParams = {
|
|
93
90
|
value: MsgEditValidator,
|
|
94
91
|
};
|
|
95
92
|
|
|
93
|
+
type msgBeginRedelegateParams = {
|
|
94
|
+
value: MsgBeginRedelegate,
|
|
95
|
+
};
|
|
96
|
+
|
|
96
97
|
type msgCreateValidatorParams = {
|
|
97
98
|
value: MsgCreateValidator,
|
|
98
99
|
};
|
|
99
100
|
|
|
100
|
-
type
|
|
101
|
-
value:
|
|
101
|
+
type msgDelegateParams = {
|
|
102
|
+
value: MsgDelegate,
|
|
102
103
|
};
|
|
103
104
|
|
|
104
105
|
|
|
@@ -145,45 +146,45 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
145
146
|
}
|
|
146
147
|
},
|
|
147
148
|
|
|
148
|
-
async
|
|
149
|
+
async sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise<DeliverTxResponse> {
|
|
149
150
|
if (!signer) {
|
|
150
|
-
throw new Error('TxClient:
|
|
151
|
+
throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Unable to sign Tx. Signer is not present.')
|
|
151
152
|
}
|
|
152
153
|
try {
|
|
153
154
|
const { address } = (await signer.getAccounts())[0];
|
|
154
155
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
155
|
-
let msg = this.
|
|
156
|
+
let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) })
|
|
156
157
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
157
158
|
} catch (e: any) {
|
|
158
|
-
throw new Error('TxClient:
|
|
159
|
+
throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: '+ e.message)
|
|
159
160
|
}
|
|
160
161
|
},
|
|
161
162
|
|
|
162
|
-
async
|
|
163
|
+
async sendMsgEditValidator({ value, fee, memo }: sendMsgEditValidatorParams): Promise<DeliverTxResponse> {
|
|
163
164
|
if (!signer) {
|
|
164
|
-
throw new Error('TxClient:
|
|
165
|
+
throw new Error('TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.')
|
|
165
166
|
}
|
|
166
167
|
try {
|
|
167
168
|
const { address } = (await signer.getAccounts())[0];
|
|
168
169
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
169
|
-
let msg = this.
|
|
170
|
+
let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) })
|
|
170
171
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
171
172
|
} catch (e: any) {
|
|
172
|
-
throw new Error('TxClient:
|
|
173
|
+
throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: '+ e.message)
|
|
173
174
|
}
|
|
174
175
|
},
|
|
175
176
|
|
|
176
|
-
async
|
|
177
|
+
async sendMsgBeginRedelegate({ value, fee, memo }: sendMsgBeginRedelegateParams): Promise<DeliverTxResponse> {
|
|
177
178
|
if (!signer) {
|
|
178
|
-
throw new Error('TxClient:
|
|
179
|
+
throw new Error('TxClient:sendMsgBeginRedelegate: Unable to sign Tx. Signer is not present.')
|
|
179
180
|
}
|
|
180
181
|
try {
|
|
181
182
|
const { address } = (await signer.getAccounts())[0];
|
|
182
183
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
183
|
-
let msg = this.
|
|
184
|
+
let msg = this.msgBeginRedelegate({ value: MsgBeginRedelegate.fromPartial(value) })
|
|
184
185
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
185
186
|
} catch (e: any) {
|
|
186
|
-
throw new Error('TxClient:
|
|
187
|
+
throw new Error('TxClient:sendMsgBeginRedelegate: Could not broadcast Tx: '+ e.message)
|
|
187
188
|
}
|
|
188
189
|
},
|
|
189
190
|
|
|
@@ -201,17 +202,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
201
202
|
}
|
|
202
203
|
},
|
|
203
204
|
|
|
204
|
-
async
|
|
205
|
+
async sendMsgDelegate({ value, fee, memo }: sendMsgDelegateParams): Promise<DeliverTxResponse> {
|
|
205
206
|
if (!signer) {
|
|
206
|
-
throw new Error('TxClient:
|
|
207
|
+
throw new Error('TxClient:sendMsgDelegate: Unable to sign Tx. Signer is not present.')
|
|
207
208
|
}
|
|
208
209
|
try {
|
|
209
210
|
const { address } = (await signer.getAccounts())[0];
|
|
210
211
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
211
|
-
let msg = this.
|
|
212
|
+
let msg = this.msgDelegate({ value: MsgDelegate.fromPartial(value) })
|
|
212
213
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
213
214
|
} catch (e: any) {
|
|
214
|
-
throw new Error('TxClient:
|
|
215
|
+
throw new Error('TxClient:sendMsgDelegate: Could not broadcast Tx: '+ e.message)
|
|
215
216
|
}
|
|
216
217
|
},
|
|
217
218
|
|
|
@@ -224,27 +225,27 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
224
225
|
}
|
|
225
226
|
},
|
|
226
227
|
|
|
227
|
-
|
|
228
|
+
msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject {
|
|
228
229
|
try {
|
|
229
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
230
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial( value ) }
|
|
230
231
|
} catch (e: any) {
|
|
231
|
-
throw new Error('TxClient:
|
|
232
|
+
throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message)
|
|
232
233
|
}
|
|
233
234
|
},
|
|
234
235
|
|
|
235
|
-
|
|
236
|
+
msgEditValidator({ value }: msgEditValidatorParams): EncodeObject {
|
|
236
237
|
try {
|
|
237
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
238
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial( value ) }
|
|
238
239
|
} catch (e: any) {
|
|
239
|
-
throw new Error('TxClient:
|
|
240
|
+
throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message)
|
|
240
241
|
}
|
|
241
242
|
},
|
|
242
243
|
|
|
243
|
-
|
|
244
|
+
msgBeginRedelegate({ value }: msgBeginRedelegateParams): EncodeObject {
|
|
244
245
|
try {
|
|
245
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
246
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial( value ) }
|
|
246
247
|
} catch (e: any) {
|
|
247
|
-
throw new Error('TxClient:
|
|
248
|
+
throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message)
|
|
248
249
|
}
|
|
249
250
|
},
|
|
250
251
|
|
|
@@ -256,11 +257,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
256
257
|
}
|
|
257
258
|
},
|
|
258
259
|
|
|
259
|
-
|
|
260
|
+
msgDelegate({ value }: msgDelegateParams): EncodeObject {
|
|
260
261
|
try {
|
|
261
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
262
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: MsgDelegate.fromPartial( value ) }
|
|
262
263
|
} catch (e: any) {
|
|
263
|
-
throw new Error('TxClient:
|
|
264
|
+
throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message)
|
|
264
265
|
}
|
|
265
266
|
},
|
|
266
267
|
|
|
@@ -309,6 +310,7 @@ class SDKModule {
|
|
|
309
310
|
RedelegationEntryResponse: getStructure(typeRedelegationEntryResponse.fromPartial({})),
|
|
310
311
|
RedelegationResponse: getStructure(typeRedelegationResponse.fromPartial({})),
|
|
311
312
|
Pool: getStructure(typePool.fromPartial({})),
|
|
313
|
+
ValidatorUpdates: getStructure(typeValidatorUpdates.fromPartial({})),
|
|
312
314
|
|
|
313
315
|
};
|
|
314
316
|
client.on('signer-changed',(signer) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
2
|
-
import {
|
|
3
|
-
import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
2
|
+
import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx";
|
|
4
3
|
import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
4
|
+
import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
5
5
|
import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
6
|
-
import {
|
|
6
|
+
import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
7
7
|
const msgTypes = [
|
|
8
8
|
["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate],
|
|
9
|
-
["/cosmos.staking.v1beta1.
|
|
10
|
-
["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate],
|
|
9
|
+
["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation],
|
|
11
10
|
["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator],
|
|
11
|
+
["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate],
|
|
12
12
|
["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator],
|
|
13
|
-
["/cosmos.staking.v1beta1.
|
|
13
|
+
["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate],
|
|
14
14
|
];
|
|
15
15
|
export { msgTypes };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
2
2
|
import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
3
|
-
import {
|
|
4
|
-
import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
3
|
+
import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx";
|
|
5
4
|
import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
5
|
+
import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
6
6
|
import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
7
|
-
import {
|
|
7
|
+
import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
8
8
|
|
|
9
9
|
const msgTypes: Array<[string, GeneratedType]> = [
|
|
10
10
|
["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate],
|
|
11
|
-
["/cosmos.staking.v1beta1.
|
|
12
|
-
["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate],
|
|
11
|
+
["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation],
|
|
13
12
|
["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator],
|
|
13
|
+
["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate],
|
|
14
14
|
["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator],
|
|
15
|
-
["/cosmos.staking.v1beta1.
|
|
15
|
+
["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate],
|
|
16
16
|
|
|
17
17
|
];
|
|
18
18
|
|
|
@@ -98,7 +98,7 @@ export class Api extends HttpClient {
|
|
|
98
98
|
constructor() {
|
|
99
99
|
super(...arguments);
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
|
|
102
102
|
*
|
|
103
103
|
* @tags Query
|
|
104
104
|
* @name QueryDelegatorDelegations
|
|
@@ -113,7 +113,7 @@ export class Api extends HttpClient {
|
|
|
113
113
|
...params,
|
|
114
114
|
});
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
116
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
|
|
117
117
|
*
|
|
118
118
|
* @tags Query
|
|
119
119
|
* @name QueryRedelegations
|
|
@@ -128,7 +128,7 @@ export class Api extends HttpClient {
|
|
|
128
128
|
...params,
|
|
129
129
|
});
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
|
|
132
132
|
*
|
|
133
133
|
* @tags Query
|
|
134
134
|
* @name QueryDelegatorUnbondingDelegations
|
|
@@ -144,7 +144,7 @@ export class Api extends HttpClient {
|
|
|
144
144
|
...params,
|
|
145
145
|
});
|
|
146
146
|
/**
|
|
147
|
-
*
|
|
147
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
|
|
148
148
|
*
|
|
149
149
|
* @tags Query
|
|
150
150
|
* @name QueryDelegatorValidators
|
|
@@ -217,7 +217,7 @@ export class Api extends HttpClient {
|
|
|
217
217
|
...params,
|
|
218
218
|
});
|
|
219
219
|
/**
|
|
220
|
-
*
|
|
220
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
|
|
221
221
|
*
|
|
222
222
|
* @tags Query
|
|
223
223
|
* @name QueryValidators
|
|
@@ -246,7 +246,7 @@ export class Api extends HttpClient {
|
|
|
246
246
|
...params,
|
|
247
247
|
});
|
|
248
248
|
/**
|
|
249
|
-
*
|
|
249
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
|
|
250
250
|
*
|
|
251
251
|
* @tags Query
|
|
252
252
|
* @name QueryValidatorDelegations
|
|
@@ -290,7 +290,7 @@ export class Api extends HttpClient {
|
|
|
290
290
|
...params,
|
|
291
291
|
});
|
|
292
292
|
/**
|
|
293
|
-
*
|
|
293
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
|
|
294
294
|
*
|
|
295
295
|
* @tags Query
|
|
296
296
|
* @name QueryValidatorUnbondingDelegations
|
|
@@ -183,6 +183,15 @@ export interface Stakingv1Beta1Validator {
|
|
|
183
183
|
* Since: cosmos-sdk 0.46
|
|
184
184
|
*/
|
|
185
185
|
min_self_delegation?: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* strictly positive if this validator's unbonding has been stopped by external modules
|
|
189
|
+
* @format int64
|
|
190
|
+
*/
|
|
191
|
+
unbonding_on_hold_ref_count?: string;
|
|
192
|
+
|
|
193
|
+
/** list of unbonding ids, each uniquely identifing an unbonding of this validator */
|
|
194
|
+
unbonding_ids?: string[];
|
|
186
195
|
}
|
|
187
196
|
|
|
188
197
|
export interface TypesBlockID {
|
|
@@ -439,6 +448,14 @@ export interface V1Beta1MsgUndelegateResponse {
|
|
|
439
448
|
completion_time?: string;
|
|
440
449
|
}
|
|
441
450
|
|
|
451
|
+
/**
|
|
452
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
453
|
+
MsgUpdateParams message.
|
|
454
|
+
|
|
455
|
+
Since: cosmos-sdk 0.47
|
|
456
|
+
*/
|
|
457
|
+
export type V1Beta1MsgUpdateParamsResponse = object;
|
|
458
|
+
|
|
442
459
|
/**
|
|
443
460
|
* message SomeRequest {
|
|
444
461
|
Foo some_parameter = 1;
|
|
@@ -512,7 +529,7 @@ export interface V1Beta1PageResponse {
|
|
|
512
529
|
}
|
|
513
530
|
|
|
514
531
|
/**
|
|
515
|
-
* Params defines the parameters for the staking module.
|
|
532
|
+
* Params defines the parameters for the x/staking module.
|
|
516
533
|
*/
|
|
517
534
|
export interface V1Beta1Params {
|
|
518
535
|
/** unbonding_time is the time duration of unbonding. */
|
|
@@ -723,6 +740,18 @@ export interface V1Beta1RedelegationEntry {
|
|
|
723
740
|
|
|
724
741
|
/** shares_dst is the amount of destination-validator shares created by redelegation. */
|
|
725
742
|
shares_dst?: string;
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Incrementing id that uniquely identifies this entry
|
|
746
|
+
* @format uint64
|
|
747
|
+
*/
|
|
748
|
+
unbonding_id?: string;
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Strictly positive if this entry's unbonding has been stopped by external modules
|
|
752
|
+
* @format int64
|
|
753
|
+
*/
|
|
754
|
+
unbonding_on_hold_ref_count?: string;
|
|
726
755
|
}
|
|
727
756
|
|
|
728
757
|
/**
|
|
@@ -790,6 +819,18 @@ export interface V1Beta1UnbondingDelegationEntry {
|
|
|
790
819
|
|
|
791
820
|
/** balance defines the tokens to receive at completion. */
|
|
792
821
|
balance?: string;
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* Incrementing id that uniquely identifies this entry
|
|
825
|
+
* @format uint64
|
|
826
|
+
*/
|
|
827
|
+
unbonding_id?: string;
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* Strictly positive if this entry's unbonding has been stopped by external modules
|
|
831
|
+
* @format int64
|
|
832
|
+
*/
|
|
833
|
+
unbonding_on_hold_ref_count?: string;
|
|
793
834
|
}
|
|
794
835
|
|
|
795
836
|
/**
|
|
@@ -931,7 +972,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
931
972
|
*/
|
|
932
973
|
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
933
974
|
/**
|
|
934
|
-
*
|
|
975
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
|
|
935
976
|
*
|
|
936
977
|
* @tags Query
|
|
937
978
|
* @name QueryDelegatorDelegations
|
|
@@ -958,7 +999,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
958
999
|
});
|
|
959
1000
|
|
|
960
1001
|
/**
|
|
961
|
-
*
|
|
1002
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
|
|
962
1003
|
*
|
|
963
1004
|
* @tags Query
|
|
964
1005
|
* @name QueryRedelegations
|
|
@@ -987,7 +1028,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
987
1028
|
});
|
|
988
1029
|
|
|
989
1030
|
/**
|
|
990
|
-
*
|
|
1031
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
|
|
991
1032
|
*
|
|
992
1033
|
* @tags Query
|
|
993
1034
|
* @name QueryDelegatorUnbondingDelegations
|
|
@@ -1015,7 +1056,7 @@ delegator address.
|
|
|
1015
1056
|
});
|
|
1016
1057
|
|
|
1017
1058
|
/**
|
|
1018
|
-
*
|
|
1059
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
|
|
1019
1060
|
*
|
|
1020
1061
|
* @tags Query
|
|
1021
1062
|
* @name QueryDelegatorValidators
|
|
@@ -1108,7 +1149,7 @@ pair.
|
|
|
1108
1149
|
});
|
|
1109
1150
|
|
|
1110
1151
|
/**
|
|
1111
|
-
*
|
|
1152
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
|
|
1112
1153
|
*
|
|
1113
1154
|
* @tags Query
|
|
1114
1155
|
* @name QueryValidators
|
|
@@ -1151,7 +1192,7 @@ pair.
|
|
|
1151
1192
|
});
|
|
1152
1193
|
|
|
1153
1194
|
/**
|
|
1154
|
-
*
|
|
1195
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
|
|
1155
1196
|
*
|
|
1156
1197
|
* @tags Query
|
|
1157
1198
|
* @name QueryValidatorDelegations
|
|
@@ -1211,7 +1252,7 @@ pair.
|
|
|
1211
1252
|
});
|
|
1212
1253
|
|
|
1213
1254
|
/**
|
|
1214
|
-
*
|
|
1255
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
|
|
1215
1256
|
*
|
|
1216
1257
|
* @tags Query
|
|
1217
1258
|
* @name QueryValidatorUnbondingDelegations
|