decentralcardgame-cardchain-client-ts 0.0.13 → 0.0.15
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 +357 -334
- package/DecentralCardGame.cardchain.cardchain/module.ts +531 -498
- package/DecentralCardGame.cardchain.cardchain/registry.js +77 -75
- package/DecentralCardGame.cardchain.cardchain/registry.ts +77 -75
- package/DecentralCardGame.cardchain.cardchain/rest.js +31 -23
- package/DecentralCardGame.cardchain.cardchain/rest.ts +89 -62
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +89 -0
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +95 -0
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +11 -11
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +12 -12
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.js +58 -29
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +65 -33
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +72 -66
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.ts +99 -92
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection.js → DecentralCardGame/cardchain/cardchain/set.js} +8 -8
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection.ts → DecentralCardGame/cardchain/cardchain/set.ts} +20 -20
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection_proposal.js → DecentralCardGame/cardchain/cardchain/set_proposal.js} +11 -11
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection_proposal.ts → DecentralCardGame/cardchain/cardchain/set_proposal.ts} +18 -18
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +362 -261
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +568 -466
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.js +34 -8
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +36 -9
- 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 +23 -23
- package/DecentralCardGame.cardchain.cardchain/types.ts +24 -24
- package/client.js +7 -7
- package/client.ts +10 -9
- 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 +67 -21
- package/cosmos.distribution.v1beta1/module.ts +100 -34
- 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 +46 -21
- package/cosmos.gov.v1/module.ts +68 -33
- package/cosmos.gov.v1/registry.js +6 -4
- package/cosmos.gov.v1/registry.ts +6 -4
- 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 +92 -92
- package/cosmos.group.v1/module.ts +138 -138
- 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/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.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 +41 -39
- package/cosmos.staking.v1beta1/module.ts +61 -59
- 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/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 +5 -6
- /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_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/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/cardchain/voteing.js → DecentralCardGame/cardchain/cardchain/voting.js} +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.ts → DecentralCardGame/cardchain/cardchain/voting.ts} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Params } from "./slashing";
|
|
3
4
|
|
|
4
5
|
export const protobufPackage = "cosmos.slashing.v1beta1";
|
|
5
6
|
|
|
@@ -12,6 +13,31 @@ export interface MsgUnjail {
|
|
|
12
13
|
export interface MsgUnjailResponse {
|
|
13
14
|
}
|
|
14
15
|
|
|
16
|
+
/**
|
|
17
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
18
|
+
*
|
|
19
|
+
* Since: cosmos-sdk 0.47
|
|
20
|
+
*/
|
|
21
|
+
export interface MsgUpdateParams {
|
|
22
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
23
|
+
authority: string;
|
|
24
|
+
/**
|
|
25
|
+
* params defines the x/slashing parameters to update.
|
|
26
|
+
*
|
|
27
|
+
* NOTE: All parameters must be supplied.
|
|
28
|
+
*/
|
|
29
|
+
params: Params | undefined;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
34
|
+
* MsgUpdateParams message.
|
|
35
|
+
*
|
|
36
|
+
* Since: cosmos-sdk 0.47
|
|
37
|
+
*/
|
|
38
|
+
export interface MsgUpdateParamsResponse {
|
|
39
|
+
}
|
|
40
|
+
|
|
15
41
|
function createBaseMsgUnjail(): MsgUnjail {
|
|
16
42
|
return { validatorAddr: "" };
|
|
17
43
|
}
|
|
@@ -98,6 +124,105 @@ export const MsgUnjailResponse = {
|
|
|
98
124
|
},
|
|
99
125
|
};
|
|
100
126
|
|
|
127
|
+
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
128
|
+
return { authority: "", params: undefined };
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export const MsgUpdateParams = {
|
|
132
|
+
encode(message: MsgUpdateParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
133
|
+
if (message.authority !== "") {
|
|
134
|
+
writer.uint32(10).string(message.authority);
|
|
135
|
+
}
|
|
136
|
+
if (message.params !== undefined) {
|
|
137
|
+
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
138
|
+
}
|
|
139
|
+
return writer;
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams {
|
|
143
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
144
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
145
|
+
const message = createBaseMsgUpdateParams();
|
|
146
|
+
while (reader.pos < end) {
|
|
147
|
+
const tag = reader.uint32();
|
|
148
|
+
switch (tag >>> 3) {
|
|
149
|
+
case 1:
|
|
150
|
+
message.authority = reader.string();
|
|
151
|
+
break;
|
|
152
|
+
case 2:
|
|
153
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
154
|
+
break;
|
|
155
|
+
default:
|
|
156
|
+
reader.skipType(tag & 7);
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return message;
|
|
161
|
+
},
|
|
162
|
+
|
|
163
|
+
fromJSON(object: any): MsgUpdateParams {
|
|
164
|
+
return {
|
|
165
|
+
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
166
|
+
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
167
|
+
};
|
|
168
|
+
},
|
|
169
|
+
|
|
170
|
+
toJSON(message: MsgUpdateParams): unknown {
|
|
171
|
+
const obj: any = {};
|
|
172
|
+
message.authority !== undefined && (obj.authority = message.authority);
|
|
173
|
+
message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
174
|
+
return obj;
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams {
|
|
178
|
+
const message = createBaseMsgUpdateParams();
|
|
179
|
+
message.authority = object.authority ?? "";
|
|
180
|
+
message.params = (object.params !== undefined && object.params !== null)
|
|
181
|
+
? Params.fromPartial(object.params)
|
|
182
|
+
: undefined;
|
|
183
|
+
return message;
|
|
184
|
+
},
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
188
|
+
return {};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export const MsgUpdateParamsResponse = {
|
|
192
|
+
encode(_: MsgUpdateParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
193
|
+
return writer;
|
|
194
|
+
},
|
|
195
|
+
|
|
196
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
197
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
198
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
199
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
200
|
+
while (reader.pos < end) {
|
|
201
|
+
const tag = reader.uint32();
|
|
202
|
+
switch (tag >>> 3) {
|
|
203
|
+
default:
|
|
204
|
+
reader.skipType(tag & 7);
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
return message;
|
|
209
|
+
},
|
|
210
|
+
|
|
211
|
+
fromJSON(_: any): MsgUpdateParamsResponse {
|
|
212
|
+
return {};
|
|
213
|
+
},
|
|
214
|
+
|
|
215
|
+
toJSON(_: MsgUpdateParamsResponse): unknown {
|
|
216
|
+
const obj: any = {};
|
|
217
|
+
return obj;
|
|
218
|
+
},
|
|
219
|
+
|
|
220
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse {
|
|
221
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
222
|
+
return message;
|
|
223
|
+
},
|
|
224
|
+
};
|
|
225
|
+
|
|
101
226
|
/** Msg defines the slashing Msg service. */
|
|
102
227
|
export interface Msg {
|
|
103
228
|
/**
|
|
@@ -106,6 +231,13 @@ export interface Msg {
|
|
|
106
231
|
* and rewards again.
|
|
107
232
|
*/
|
|
108
233
|
Unjail(request: MsgUnjail): Promise<MsgUnjailResponse>;
|
|
234
|
+
/**
|
|
235
|
+
* UpdateParams defines a governance operation for updating the x/slashing module
|
|
236
|
+
* parameters. The authority defaults to the x/gov module account.
|
|
237
|
+
*
|
|
238
|
+
* Since: cosmos-sdk 0.47
|
|
239
|
+
*/
|
|
240
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
109
241
|
}
|
|
110
242
|
|
|
111
243
|
export class MsgClientImpl implements Msg {
|
|
@@ -113,12 +245,19 @@ export class MsgClientImpl implements Msg {
|
|
|
113
245
|
constructor(rpc: Rpc) {
|
|
114
246
|
this.rpc = rpc;
|
|
115
247
|
this.Unjail = this.Unjail.bind(this);
|
|
248
|
+
this.UpdateParams = this.UpdateParams.bind(this);
|
|
116
249
|
}
|
|
117
250
|
Unjail(request: MsgUnjail): Promise<MsgUnjailResponse> {
|
|
118
251
|
const data = MsgUnjail.encode(request).finish();
|
|
119
252
|
const promise = this.rpc.request("cosmos.slashing.v1beta1.Msg", "Unjail", data);
|
|
120
253
|
return promise.then((data) => MsgUnjailResponse.decode(new _m0.Reader(data)));
|
|
121
254
|
}
|
|
255
|
+
|
|
256
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse> {
|
|
257
|
+
const data = MsgUpdateParams.encode(request).finish();
|
|
258
|
+
const promise = this.rpc.request("cosmos.slashing.v1beta1.Msg", "UpdateParams", data);
|
|
259
|
+
return promise.then((data) => MsgUpdateParamsResponse.decode(new _m0.Reader(data)));
|
|
260
|
+
}
|
|
122
261
|
}
|
|
123
262
|
|
|
124
263
|
interface Rpc {
|
|
@@ -3,12 +3,12 @@ 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 { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
7
6
|
import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
8
|
-
import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
9
7
|
import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
10
|
-
import {
|
|
8
|
+
import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
11
9
|
import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx";
|
|
10
|
+
import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
11
|
+
import { MsgUndelegate } 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 { MsgEditValidator, MsgBeginRedelegate, MsgDelegate, MsgCancelUnbondingDelegation, MsgCreateValidator, MsgUndelegate };
|
|
36
37
|
export const registry = new Registry(msgTypes);
|
|
37
38
|
function getStructure(template) {
|
|
38
39
|
const structure = { fields: [] };
|
|
@@ -48,32 +49,32 @@ const defaultFee = {
|
|
|
48
49
|
};
|
|
49
50
|
export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
|
|
50
51
|
return {
|
|
51
|
-
async
|
|
52
|
+
async sendMsgEditValidator({ value, fee, memo }) {
|
|
52
53
|
if (!signer) {
|
|
53
|
-
throw new Error('TxClient:
|
|
54
|
+
throw new Error('TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.');
|
|
54
55
|
}
|
|
55
56
|
try {
|
|
56
57
|
const { address } = (await signer.getAccounts())[0];
|
|
57
58
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
58
|
-
let msg = this.
|
|
59
|
+
let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) });
|
|
59
60
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
60
61
|
}
|
|
61
62
|
catch (e) {
|
|
62
|
-
throw new Error('TxClient:
|
|
63
|
+
throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: ' + e.message);
|
|
63
64
|
}
|
|
64
65
|
},
|
|
65
|
-
async
|
|
66
|
+
async sendMsgBeginRedelegate({ value, fee, memo }) {
|
|
66
67
|
if (!signer) {
|
|
67
|
-
throw new Error('TxClient:
|
|
68
|
+
throw new Error('TxClient:sendMsgBeginRedelegate: 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.msgBeginRedelegate({ value: MsgBeginRedelegate.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:sendMsgBeginRedelegate: Could not broadcast Tx: ' + e.message);
|
|
77
78
|
}
|
|
78
79
|
},
|
|
79
80
|
async sendMsgDelegate({ value, fee, memo }) {
|
|
@@ -90,62 +91,62 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
90
91
|
throw new Error('TxClient:sendMsgDelegate: Could not broadcast Tx: ' + e.message);
|
|
91
92
|
}
|
|
92
93
|
},
|
|
93
|
-
async
|
|
94
|
+
async sendMsgCancelUnbondingDelegation({ value, fee, memo }) {
|
|
94
95
|
if (!signer) {
|
|
95
|
-
throw new Error('TxClient:
|
|
96
|
+
throw new Error('TxClient:sendMsgCancelUnbondingDelegation: 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.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.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:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: ' + e.message);
|
|
105
106
|
}
|
|
106
107
|
},
|
|
107
|
-
async
|
|
108
|
+
async sendMsgCreateValidator({ value, fee, memo }) {
|
|
108
109
|
if (!signer) {
|
|
109
|
-
throw new Error('TxClient:
|
|
110
|
+
throw new Error('TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.');
|
|
110
111
|
}
|
|
111
112
|
try {
|
|
112
113
|
const { address } = (await signer.getAccounts())[0];
|
|
113
114
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
114
|
-
let msg = this.
|
|
115
|
+
let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) });
|
|
115
116
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
116
117
|
}
|
|
117
118
|
catch (e) {
|
|
118
|
-
throw new Error('TxClient:
|
|
119
|
+
throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: ' + e.message);
|
|
119
120
|
}
|
|
120
121
|
},
|
|
121
|
-
async
|
|
122
|
+
async sendMsgUndelegate({ value, fee, memo }) {
|
|
122
123
|
if (!signer) {
|
|
123
|
-
throw new Error('TxClient:
|
|
124
|
+
throw new Error('TxClient:sendMsgUndelegate: 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.msgUndelegate({ value: MsgUndelegate.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:sendMsgUndelegate: Could not broadcast Tx: ' + e.message);
|
|
133
134
|
}
|
|
134
135
|
},
|
|
135
|
-
|
|
136
|
+
msgEditValidator({ value }) {
|
|
136
137
|
try {
|
|
137
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
138
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial(value) };
|
|
138
139
|
}
|
|
139
140
|
catch (e) {
|
|
140
|
-
throw new Error('TxClient:
|
|
141
|
+
throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message);
|
|
141
142
|
}
|
|
142
143
|
},
|
|
143
|
-
|
|
144
|
+
msgBeginRedelegate({ value }) {
|
|
144
145
|
try {
|
|
145
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
146
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial(value) };
|
|
146
147
|
}
|
|
147
148
|
catch (e) {
|
|
148
|
-
throw new Error('TxClient:
|
|
149
|
+
throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message);
|
|
149
150
|
}
|
|
150
151
|
},
|
|
151
152
|
msgDelegate({ value }) {
|
|
@@ -156,28 +157,28 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
156
157
|
throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message);
|
|
157
158
|
}
|
|
158
159
|
},
|
|
159
|
-
|
|
160
|
+
msgCancelUnbondingDelegation({ value }) {
|
|
160
161
|
try {
|
|
161
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
162
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial(value) };
|
|
162
163
|
}
|
|
163
164
|
catch (e) {
|
|
164
|
-
throw new Error('TxClient:
|
|
165
|
+
throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message);
|
|
165
166
|
}
|
|
166
167
|
},
|
|
167
|
-
|
|
168
|
+
msgCreateValidator({ value }) {
|
|
168
169
|
try {
|
|
169
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
170
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial(value) };
|
|
170
171
|
}
|
|
171
172
|
catch (e) {
|
|
172
|
-
throw new Error('TxClient:
|
|
173
|
+
throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message);
|
|
173
174
|
}
|
|
174
175
|
},
|
|
175
|
-
|
|
176
|
+
msgUndelegate({ value }) {
|
|
176
177
|
try {
|
|
177
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
178
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial(value) };
|
|
178
179
|
}
|
|
179
180
|
catch (e) {
|
|
180
|
-
throw new Error('TxClient:
|
|
181
|
+
throw new Error('TxClient:MsgUndelegate: 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);
|
|
@@ -7,12 +7,12 @@ import { msgTypes } from './registry';
|
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
-
import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
11
10
|
import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
12
|
-
import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
13
11
|
import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
14
|
-
import {
|
|
12
|
+
import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx";
|
|
15
13
|
import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx";
|
|
14
|
+
import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx";
|
|
15
|
+
import { MsgUndelegate } 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,17 +37,18 @@ 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 {
|
|
42
|
+
export { MsgEditValidator, MsgBeginRedelegate, MsgDelegate, MsgCancelUnbondingDelegation, MsgCreateValidator, MsgUndelegate };
|
|
42
43
|
|
|
43
|
-
type
|
|
44
|
-
value:
|
|
44
|
+
type sendMsgEditValidatorParams = {
|
|
45
|
+
value: MsgEditValidator,
|
|
45
46
|
fee?: StdFee,
|
|
46
47
|
memo?: string
|
|
47
48
|
};
|
|
48
49
|
|
|
49
|
-
type
|
|
50
|
-
value:
|
|
50
|
+
type sendMsgBeginRedelegateParams = {
|
|
51
|
+
value: MsgBeginRedelegate,
|
|
51
52
|
fee?: StdFee,
|
|
52
53
|
memo?: string
|
|
53
54
|
};
|
|
@@ -58,49 +59,49 @@ type sendMsgDelegateParams = {
|
|
|
58
59
|
memo?: string
|
|
59
60
|
};
|
|
60
61
|
|
|
61
|
-
type
|
|
62
|
-
value:
|
|
62
|
+
type sendMsgCancelUnbondingDelegationParams = {
|
|
63
|
+
value: MsgCancelUnbondingDelegation,
|
|
63
64
|
fee?: StdFee,
|
|
64
65
|
memo?: string
|
|
65
66
|
};
|
|
66
67
|
|
|
67
|
-
type
|
|
68
|
-
value:
|
|
68
|
+
type sendMsgCreateValidatorParams = {
|
|
69
|
+
value: MsgCreateValidator,
|
|
69
70
|
fee?: StdFee,
|
|
70
71
|
memo?: string
|
|
71
72
|
};
|
|
72
73
|
|
|
73
|
-
type
|
|
74
|
-
value:
|
|
74
|
+
type sendMsgUndelegateParams = {
|
|
75
|
+
value: MsgUndelegate,
|
|
75
76
|
fee?: StdFee,
|
|
76
77
|
memo?: string
|
|
77
78
|
};
|
|
78
79
|
|
|
79
80
|
|
|
80
|
-
type msgCreateValidatorParams = {
|
|
81
|
-
value: MsgCreateValidator,
|
|
82
|
-
};
|
|
83
|
-
|
|
84
81
|
type msgEditValidatorParams = {
|
|
85
82
|
value: MsgEditValidator,
|
|
86
83
|
};
|
|
87
84
|
|
|
88
|
-
type msgDelegateParams = {
|
|
89
|
-
value: MsgDelegate,
|
|
90
|
-
};
|
|
91
|
-
|
|
92
85
|
type msgBeginRedelegateParams = {
|
|
93
86
|
value: MsgBeginRedelegate,
|
|
94
87
|
};
|
|
95
88
|
|
|
96
|
-
type
|
|
97
|
-
value:
|
|
89
|
+
type msgDelegateParams = {
|
|
90
|
+
value: MsgDelegate,
|
|
98
91
|
};
|
|
99
92
|
|
|
100
93
|
type msgCancelUnbondingDelegationParams = {
|
|
101
94
|
value: MsgCancelUnbondingDelegation,
|
|
102
95
|
};
|
|
103
96
|
|
|
97
|
+
type msgCreateValidatorParams = {
|
|
98
|
+
value: MsgCreateValidator,
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
type msgUndelegateParams = {
|
|
102
|
+
value: MsgUndelegate,
|
|
103
|
+
};
|
|
104
|
+
|
|
104
105
|
|
|
105
106
|
export const registry = new Registry(msgTypes);
|
|
106
107
|
|
|
@@ -131,31 +132,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
131
132
|
|
|
132
133
|
return {
|
|
133
134
|
|
|
134
|
-
async
|
|
135
|
+
async sendMsgEditValidator({ value, fee, memo }: sendMsgEditValidatorParams): Promise<DeliverTxResponse> {
|
|
135
136
|
if (!signer) {
|
|
136
|
-
throw new Error('TxClient:
|
|
137
|
+
throw new Error('TxClient:sendMsgEditValidator: Unable to sign Tx. Signer is not present.')
|
|
137
138
|
}
|
|
138
139
|
try {
|
|
139
140
|
const { address } = (await signer.getAccounts())[0];
|
|
140
141
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
141
|
-
let msg = this.
|
|
142
|
+
let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) })
|
|
142
143
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
143
144
|
} catch (e: any) {
|
|
144
|
-
throw new Error('TxClient:
|
|
145
|
+
throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: '+ e.message)
|
|
145
146
|
}
|
|
146
147
|
},
|
|
147
148
|
|
|
148
|
-
async
|
|
149
|
+
async sendMsgBeginRedelegate({ value, fee, memo }: sendMsgBeginRedelegateParams): Promise<DeliverTxResponse> {
|
|
149
150
|
if (!signer) {
|
|
150
|
-
throw new Error('TxClient:
|
|
151
|
+
throw new Error('TxClient:sendMsgBeginRedelegate: 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.msgBeginRedelegate({ value: MsgBeginRedelegate.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:sendMsgBeginRedelegate: Could not broadcast Tx: '+ e.message)
|
|
159
160
|
}
|
|
160
161
|
},
|
|
161
162
|
|
|
@@ -173,62 +174,62 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
173
174
|
}
|
|
174
175
|
},
|
|
175
176
|
|
|
176
|
-
async
|
|
177
|
+
async sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise<DeliverTxResponse> {
|
|
177
178
|
if (!signer) {
|
|
178
|
-
throw new Error('TxClient:
|
|
179
|
+
throw new Error('TxClient:sendMsgCancelUnbondingDelegation: 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.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.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:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: '+ e.message)
|
|
187
188
|
}
|
|
188
189
|
},
|
|
189
190
|
|
|
190
|
-
async
|
|
191
|
+
async sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise<DeliverTxResponse> {
|
|
191
192
|
if (!signer) {
|
|
192
|
-
throw new Error('TxClient:
|
|
193
|
+
throw new Error('TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.')
|
|
193
194
|
}
|
|
194
195
|
try {
|
|
195
196
|
const { address } = (await signer.getAccounts())[0];
|
|
196
197
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
197
|
-
let msg = this.
|
|
198
|
+
let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) })
|
|
198
199
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
199
200
|
} catch (e: any) {
|
|
200
|
-
throw new Error('TxClient:
|
|
201
|
+
throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: '+ e.message)
|
|
201
202
|
}
|
|
202
203
|
},
|
|
203
204
|
|
|
204
|
-
async
|
|
205
|
+
async sendMsgUndelegate({ value, fee, memo }: sendMsgUndelegateParams): Promise<DeliverTxResponse> {
|
|
205
206
|
if (!signer) {
|
|
206
|
-
throw new Error('TxClient:
|
|
207
|
+
throw new Error('TxClient:sendMsgUndelegate: 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.msgUndelegate({ value: MsgUndelegate.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:sendMsgUndelegate: Could not broadcast Tx: '+ e.message)
|
|
215
216
|
}
|
|
216
217
|
},
|
|
217
218
|
|
|
218
219
|
|
|
219
|
-
|
|
220
|
+
msgEditValidator({ value }: msgEditValidatorParams): EncodeObject {
|
|
220
221
|
try {
|
|
221
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
222
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial( value ) }
|
|
222
223
|
} catch (e: any) {
|
|
223
|
-
throw new Error('TxClient:
|
|
224
|
+
throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message)
|
|
224
225
|
}
|
|
225
226
|
},
|
|
226
227
|
|
|
227
|
-
|
|
228
|
+
msgBeginRedelegate({ value }: msgBeginRedelegateParams): EncodeObject {
|
|
228
229
|
try {
|
|
229
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
230
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial( value ) }
|
|
230
231
|
} catch (e: any) {
|
|
231
|
-
throw new Error('TxClient:
|
|
232
|
+
throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message)
|
|
232
233
|
}
|
|
233
234
|
},
|
|
234
235
|
|
|
@@ -240,27 +241,27 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
240
241
|
}
|
|
241
242
|
},
|
|
242
243
|
|
|
243
|
-
|
|
244
|
+
msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject {
|
|
244
245
|
try {
|
|
245
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
246
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial( value ) }
|
|
246
247
|
} catch (e: any) {
|
|
247
|
-
throw new Error('TxClient:
|
|
248
|
+
throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message)
|
|
248
249
|
}
|
|
249
250
|
},
|
|
250
251
|
|
|
251
|
-
|
|
252
|
+
msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject {
|
|
252
253
|
try {
|
|
253
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
254
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial( value ) }
|
|
254
255
|
} catch (e: any) {
|
|
255
|
-
throw new Error('TxClient:
|
|
256
|
+
throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message)
|
|
256
257
|
}
|
|
257
258
|
},
|
|
258
259
|
|
|
259
|
-
|
|
260
|
+
msgUndelegate({ value }: msgUndelegateParams): EncodeObject {
|
|
260
261
|
try {
|
|
261
|
-
return { typeUrl: "/cosmos.staking.v1beta1.
|
|
262
|
+
return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial( value ) }
|
|
262
263
|
} catch (e: any) {
|
|
263
|
-
throw new Error('TxClient:
|
|
264
|
+
throw new Error('TxClient:MsgUndelegate: 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) => {
|