decentralcardgame-cardchain-client-ts 0.0.12 → 0.0.14
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 +532 -499
- 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 -8
- package/client.ts +11 -11
- package/cosmos.auth.v1beta1/module.js +2 -0
- package/cosmos.auth.v1beta1/module.ts +3 -1
- 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 +30 -30
- 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 +25 -25
- 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/module.ts +1 -1
- 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 +35 -2
- 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 +101 -35
- 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/module.ts +1 -1
- 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/module.ts +1 -1
- 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 +69 -34
- 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 +37 -37
- 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 +139 -139
- 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/module.ts +1 -1
- 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/module.ts +1 -1
- 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/module.ts +1 -1
- package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/module.ts +1 -1
- 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 +62 -60
- 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/module.ts +1 -1
- 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/module.ts +1 -1
- 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.ts +1 -1
- 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/module.ts +1 -1
- 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.interchain_accounts.host.v1/module.ts +1 -1
- package/ibc.applications.transfer.v1/module.js +5 -27
- package/ibc.applications.transfer.v1/module.ts +6 -35
- 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/module.ts +1 -1
- 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/module.ts +1 -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/module.ts +1 -1
- 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 +8 -8
- /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,16 +1,18 @@
|
|
|
1
1
|
// Generated by Ignite ignite.com/cli
|
|
2
2
|
|
|
3
|
-
import { StdFee } from "@cosmjs/
|
|
3
|
+
import { StdFee } from "@cosmjs/amino";
|
|
4
4
|
import { SigningStargateClient, DeliverTxResponse } from "@cosmjs/stargate";
|
|
5
5
|
import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing";
|
|
6
6
|
import { msgTypes } from './registry';
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
-
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
11
10
|
import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
|
|
12
|
-
import {
|
|
11
|
+
import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx";
|
|
13
12
|
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
13
|
+
import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
|
|
14
|
+
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
15
|
+
import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx";
|
|
14
16
|
|
|
15
17
|
import { Params as typeParams} from "./types"
|
|
16
18
|
import { ValidatorHistoricalRewards as typeValidatorHistoricalRewards} from "./types"
|
|
@@ -32,13 +34,7 @@ import { ValidatorCurrentRewardsRecord as typeValidatorCurrentRewardsRecord} fro
|
|
|
32
34
|
import { DelegatorStartingInfoRecord as typeDelegatorStartingInfoRecord} from "./types"
|
|
33
35
|
import { ValidatorSlashEventRecord as typeValidatorSlashEventRecord} from "./types"
|
|
34
36
|
|
|
35
|
-
export {
|
|
36
|
-
|
|
37
|
-
type sendMsgWithdrawValidatorCommissionParams = {
|
|
38
|
-
value: MsgWithdrawValidatorCommission,
|
|
39
|
-
fee?: StdFee,
|
|
40
|
-
memo?: string
|
|
41
|
-
};
|
|
37
|
+
export { MsgWithdrawDelegatorReward, MsgUpdateParams, MsgFundCommunityPool, MsgSetWithdrawAddress, MsgWithdrawValidatorCommission, MsgCommunityPoolSpend };
|
|
42
38
|
|
|
43
39
|
type sendMsgWithdrawDelegatorRewardParams = {
|
|
44
40
|
value: MsgWithdrawDelegatorReward,
|
|
@@ -46,8 +42,8 @@ type sendMsgWithdrawDelegatorRewardParams = {
|
|
|
46
42
|
memo?: string
|
|
47
43
|
};
|
|
48
44
|
|
|
49
|
-
type
|
|
50
|
-
value:
|
|
45
|
+
type sendMsgUpdateParamsParams = {
|
|
46
|
+
value: MsgUpdateParams,
|
|
51
47
|
fee?: StdFee,
|
|
52
48
|
memo?: string
|
|
53
49
|
};
|
|
@@ -58,23 +54,49 @@ type sendMsgFundCommunityPoolParams = {
|
|
|
58
54
|
memo?: string
|
|
59
55
|
};
|
|
60
56
|
|
|
57
|
+
type sendMsgSetWithdrawAddressParams = {
|
|
58
|
+
value: MsgSetWithdrawAddress,
|
|
59
|
+
fee?: StdFee,
|
|
60
|
+
memo?: string
|
|
61
|
+
};
|
|
61
62
|
|
|
62
|
-
type
|
|
63
|
+
type sendMsgWithdrawValidatorCommissionParams = {
|
|
63
64
|
value: MsgWithdrawValidatorCommission,
|
|
65
|
+
fee?: StdFee,
|
|
66
|
+
memo?: string
|
|
64
67
|
};
|
|
65
68
|
|
|
69
|
+
type sendMsgCommunityPoolSpendParams = {
|
|
70
|
+
value: MsgCommunityPoolSpend,
|
|
71
|
+
fee?: StdFee,
|
|
72
|
+
memo?: string
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
|
|
66
76
|
type msgWithdrawDelegatorRewardParams = {
|
|
67
77
|
value: MsgWithdrawDelegatorReward,
|
|
68
78
|
};
|
|
69
79
|
|
|
70
|
-
type
|
|
71
|
-
value:
|
|
80
|
+
type msgUpdateParamsParams = {
|
|
81
|
+
value: MsgUpdateParams,
|
|
72
82
|
};
|
|
73
83
|
|
|
74
84
|
type msgFundCommunityPoolParams = {
|
|
75
85
|
value: MsgFundCommunityPool,
|
|
76
86
|
};
|
|
77
87
|
|
|
88
|
+
type msgSetWithdrawAddressParams = {
|
|
89
|
+
value: MsgSetWithdrawAddress,
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
type msgWithdrawValidatorCommissionParams = {
|
|
93
|
+
value: MsgWithdrawValidatorCommission,
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
type msgCommunityPoolSpendParams = {
|
|
97
|
+
value: MsgCommunityPoolSpend,
|
|
98
|
+
};
|
|
99
|
+
|
|
78
100
|
|
|
79
101
|
export const registry = new Registry(msgTypes);
|
|
80
102
|
|
|
@@ -105,31 +127,45 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
105
127
|
|
|
106
128
|
return {
|
|
107
129
|
|
|
108
|
-
async
|
|
130
|
+
async sendMsgWithdrawDelegatorReward({ value, fee, memo }: sendMsgWithdrawDelegatorRewardParams): Promise<DeliverTxResponse> {
|
|
109
131
|
if (!signer) {
|
|
110
|
-
throw new Error('TxClient:
|
|
132
|
+
throw new Error('TxClient:sendMsgWithdrawDelegatorReward: Unable to sign Tx. Signer is not present.')
|
|
111
133
|
}
|
|
112
134
|
try {
|
|
113
135
|
const { address } = (await signer.getAccounts())[0];
|
|
114
136
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
115
|
-
let msg = this.
|
|
137
|
+
let msg = this.msgWithdrawDelegatorReward({ value: MsgWithdrawDelegatorReward.fromPartial(value) })
|
|
116
138
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
117
139
|
} catch (e: any) {
|
|
118
|
-
throw new Error('TxClient:
|
|
140
|
+
throw new Error('TxClient:sendMsgWithdrawDelegatorReward: Could not broadcast Tx: '+ e.message)
|
|
119
141
|
}
|
|
120
142
|
},
|
|
121
143
|
|
|
122
|
-
async
|
|
144
|
+
async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse> {
|
|
123
145
|
if (!signer) {
|
|
124
|
-
throw new Error('TxClient:
|
|
146
|
+
throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.')
|
|
125
147
|
}
|
|
126
148
|
try {
|
|
127
149
|
const { address } = (await signer.getAccounts())[0];
|
|
128
150
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
129
|
-
let msg = this.
|
|
151
|
+
let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) })
|
|
130
152
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
131
153
|
} catch (e: any) {
|
|
132
|
-
throw new Error('TxClient:
|
|
154
|
+
throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message)
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
async sendMsgFundCommunityPool({ value, fee, memo }: sendMsgFundCommunityPoolParams): Promise<DeliverTxResponse> {
|
|
159
|
+
if (!signer) {
|
|
160
|
+
throw new Error('TxClient:sendMsgFundCommunityPool: Unable to sign Tx. Signer is not present.')
|
|
161
|
+
}
|
|
162
|
+
try {
|
|
163
|
+
const { address } = (await signer.getAccounts())[0];
|
|
164
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
165
|
+
let msg = this.msgFundCommunityPool({ value: MsgFundCommunityPool.fromPartial(value) })
|
|
166
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
167
|
+
} catch (e: any) {
|
|
168
|
+
throw new Error('TxClient:sendMsgFundCommunityPool: Could not broadcast Tx: '+ e.message)
|
|
133
169
|
}
|
|
134
170
|
},
|
|
135
171
|
|
|
@@ -147,29 +183,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
147
183
|
}
|
|
148
184
|
},
|
|
149
185
|
|
|
150
|
-
async
|
|
186
|
+
async sendMsgWithdrawValidatorCommission({ value, fee, memo }: sendMsgWithdrawValidatorCommissionParams): Promise<DeliverTxResponse> {
|
|
151
187
|
if (!signer) {
|
|
152
|
-
throw new Error('TxClient:
|
|
188
|
+
throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Unable to sign Tx. Signer is not present.')
|
|
153
189
|
}
|
|
154
190
|
try {
|
|
155
191
|
const { address } = (await signer.getAccounts())[0];
|
|
156
192
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
157
|
-
let msg = this.
|
|
193
|
+
let msg = this.msgWithdrawValidatorCommission({ value: MsgWithdrawValidatorCommission.fromPartial(value) })
|
|
158
194
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
159
195
|
} catch (e: any) {
|
|
160
|
-
throw new Error('TxClient:
|
|
196
|
+
throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Could not broadcast Tx: '+ e.message)
|
|
161
197
|
}
|
|
162
198
|
},
|
|
163
199
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
200
|
+
async sendMsgCommunityPoolSpend({ value, fee, memo }: sendMsgCommunityPoolSpendParams): Promise<DeliverTxResponse> {
|
|
201
|
+
if (!signer) {
|
|
202
|
+
throw new Error('TxClient:sendMsgCommunityPoolSpend: Unable to sign Tx. Signer is not present.')
|
|
203
|
+
}
|
|
204
|
+
try {
|
|
205
|
+
const { address } = (await signer.getAccounts())[0];
|
|
206
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
207
|
+
let msg = this.msgCommunityPoolSpend({ value: MsgCommunityPoolSpend.fromPartial(value) })
|
|
208
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
168
209
|
} catch (e: any) {
|
|
169
|
-
throw new Error('TxClient:
|
|
210
|
+
throw new Error('TxClient:sendMsgCommunityPoolSpend: Could not broadcast Tx: '+ e.message)
|
|
170
211
|
}
|
|
171
212
|
},
|
|
172
213
|
|
|
214
|
+
|
|
173
215
|
msgWithdrawDelegatorReward({ value }: msgWithdrawDelegatorRewardParams): EncodeObject {
|
|
174
216
|
try {
|
|
175
217
|
return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", value: MsgWithdrawDelegatorReward.fromPartial( value ) }
|
|
@@ -178,11 +220,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
178
220
|
}
|
|
179
221
|
},
|
|
180
222
|
|
|
181
|
-
|
|
223
|
+
msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject {
|
|
182
224
|
try {
|
|
183
|
-
return { typeUrl: "/cosmos.distribution.v1beta1.
|
|
225
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) }
|
|
184
226
|
} catch (e: any) {
|
|
185
|
-
throw new Error('TxClient:
|
|
227
|
+
throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message)
|
|
186
228
|
}
|
|
187
229
|
},
|
|
188
230
|
|
|
@@ -194,6 +236,30 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
194
236
|
}
|
|
195
237
|
},
|
|
196
238
|
|
|
239
|
+
msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject {
|
|
240
|
+
try {
|
|
241
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: MsgSetWithdrawAddress.fromPartial( value ) }
|
|
242
|
+
} catch (e: any) {
|
|
243
|
+
throw new Error('TxClient:MsgSetWithdrawAddress: Could not create message: ' + e.message)
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
|
|
247
|
+
msgWithdrawValidatorCommission({ value }: msgWithdrawValidatorCommissionParams): EncodeObject {
|
|
248
|
+
try {
|
|
249
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: MsgWithdrawValidatorCommission.fromPartial( value ) }
|
|
250
|
+
} catch (e: any) {
|
|
251
|
+
throw new Error('TxClient:MsgWithdrawValidatorCommission: Could not create message: ' + e.message)
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
|
|
255
|
+
msgCommunityPoolSpend({ value }: msgCommunityPoolSpendParams): EncodeObject {
|
|
256
|
+
try {
|
|
257
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", value: MsgCommunityPoolSpend.fromPartial( value ) }
|
|
258
|
+
} catch (e: any) {
|
|
259
|
+
throw new Error('TxClient:MsgCommunityPoolSpend: Could not create message: ' + e.message)
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
|
|
197
263
|
}
|
|
198
264
|
};
|
|
199
265
|
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
2
1
|
import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
|
|
3
|
-
import {
|
|
2
|
+
import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx";
|
|
4
3
|
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
4
|
+
import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
|
|
5
|
+
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
6
|
+
import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx";
|
|
5
7
|
const msgTypes = [
|
|
6
|
-
["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission],
|
|
7
8
|
["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward],
|
|
8
|
-
["/cosmos.distribution.v1beta1.
|
|
9
|
+
["/cosmos.distribution.v1beta1.MsgUpdateParams", MsgUpdateParams],
|
|
9
10
|
["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool],
|
|
11
|
+
["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress],
|
|
12
|
+
["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission],
|
|
13
|
+
["/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", MsgCommunityPoolSpend],
|
|
10
14
|
];
|
|
11
15
|
export { msgTypes };
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
2
|
-
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
3
2
|
import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
|
|
4
|
-
import {
|
|
3
|
+
import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx";
|
|
5
4
|
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
5
|
+
import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
|
|
6
|
+
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
7
|
+
import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx";
|
|
6
8
|
|
|
7
9
|
const msgTypes: Array<[string, GeneratedType]> = [
|
|
8
|
-
["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission],
|
|
9
10
|
["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward],
|
|
10
|
-
["/cosmos.distribution.v1beta1.
|
|
11
|
+
["/cosmos.distribution.v1beta1.MsgUpdateParams", MsgUpdateParams],
|
|
11
12
|
["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool],
|
|
13
|
+
["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress],
|
|
14
|
+
["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission],
|
|
15
|
+
["/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", MsgCommunityPoolSpend],
|
|
12
16
|
|
|
13
17
|
];
|
|
14
18
|
|
|
@@ -167,6 +167,20 @@ export class Api extends HttpClient {
|
|
|
167
167
|
format: "json",
|
|
168
168
|
...params,
|
|
169
169
|
});
|
|
170
|
+
/**
|
|
171
|
+
* No description
|
|
172
|
+
*
|
|
173
|
+
* @tags Query
|
|
174
|
+
* @name QueryValidatorDistributionInfo
|
|
175
|
+
* @summary ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator
|
|
176
|
+
* @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}
|
|
177
|
+
*/
|
|
178
|
+
this.queryValidatorDistributionInfo = (validatorAddress, params = {}) => this.request({
|
|
179
|
+
path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}`,
|
|
180
|
+
method: "GET",
|
|
181
|
+
format: "json",
|
|
182
|
+
...params,
|
|
183
|
+
});
|
|
170
184
|
/**
|
|
171
185
|
* No description
|
|
172
186
|
*
|
|
@@ -51,27 +51,46 @@ export interface V1Beta1DelegationDelegatorReward {
|
|
|
51
51
|
reward?: V1Beta1DecCoin[];
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* MsgCommunityPoolSpendResponse defines the response to executing a
|
|
56
|
+
MsgCommunityPoolSpend message.
|
|
57
|
+
|
|
58
|
+
Since: cosmos-sdk 0.47
|
|
59
|
+
*/
|
|
60
|
+
export type V1Beta1MsgCommunityPoolSpendResponse = object;
|
|
61
|
+
|
|
54
62
|
/**
|
|
55
63
|
* MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type.
|
|
56
64
|
*/
|
|
57
65
|
export type V1Beta1MsgFundCommunityPoolResponse = object;
|
|
58
66
|
|
|
59
67
|
/**
|
|
60
|
-
|
|
61
|
-
|
|
68
|
+
* MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response
|
|
69
|
+
type.
|
|
70
|
+
*/
|
|
62
71
|
export type V1Beta1MsgSetWithdrawAddressResponse = object;
|
|
63
72
|
|
|
64
73
|
/**
|
|
65
|
-
|
|
66
|
-
|
|
74
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
75
|
+
MsgUpdateParams message.
|
|
76
|
+
|
|
77
|
+
Since: cosmos-sdk 0.47
|
|
78
|
+
*/
|
|
79
|
+
export type V1Beta1MsgUpdateParamsResponse = object;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward
|
|
83
|
+
response type.
|
|
84
|
+
*/
|
|
67
85
|
export interface V1Beta1MsgWithdrawDelegatorRewardResponse {
|
|
68
86
|
/** Since: cosmos-sdk 0.46 */
|
|
69
87
|
amount?: V1Beta1Coin[];
|
|
70
88
|
}
|
|
71
89
|
|
|
72
90
|
/**
|
|
73
|
-
|
|
74
|
-
|
|
91
|
+
* MsgWithdrawValidatorCommissionResponse defines the
|
|
92
|
+
Msg/WithdrawValidatorCommission response type.
|
|
93
|
+
*/
|
|
75
94
|
export interface V1Beta1MsgWithdrawValidatorCommissionResponse {
|
|
76
95
|
/** Since: cosmos-sdk 0.46 */
|
|
77
96
|
amount?: V1Beta1Coin[];
|
|
@@ -154,7 +173,17 @@ export interface V1Beta1PageResponse {
|
|
|
154
173
|
*/
|
|
155
174
|
export interface V1Beta1Params {
|
|
156
175
|
community_tax?: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Deprecated: The base_proposer_reward field is deprecated and is no longer used
|
|
179
|
+
* in the x/distribution module's reward mechanism.
|
|
180
|
+
*/
|
|
157
181
|
base_proposer_reward?: string;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Deprecated: The bonus_proposer_reward field is deprecated and is no longer used
|
|
185
|
+
* in the x/distribution module's reward mechanism.
|
|
186
|
+
*/
|
|
158
187
|
bonus_proposer_reward?: string;
|
|
159
188
|
withdraw_addr_enabled?: boolean;
|
|
160
189
|
}
|
|
@@ -216,10 +245,24 @@ export interface V1Beta1QueryParamsResponse {
|
|
|
216
245
|
}
|
|
217
246
|
|
|
218
247
|
export interface V1Beta1QueryValidatorCommissionResponse {
|
|
219
|
-
/** commission defines the
|
|
248
|
+
/** commission defines the commission the validator received. */
|
|
220
249
|
commission?: V1Beta1ValidatorAccumulatedCommission;
|
|
221
250
|
}
|
|
222
251
|
|
|
252
|
+
/**
|
|
253
|
+
* QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method.
|
|
254
|
+
*/
|
|
255
|
+
export interface V1Beta1QueryValidatorDistributionInfoResponse {
|
|
256
|
+
/** operator_address defines the validator operator address. */
|
|
257
|
+
operator_address?: string;
|
|
258
|
+
|
|
259
|
+
/** self_bond_rewards defines the self delegations rewards. */
|
|
260
|
+
self_bond_rewards?: V1Beta1DecCoin[];
|
|
261
|
+
|
|
262
|
+
/** commission defines the commission the validator received. */
|
|
263
|
+
commission?: V1Beta1DecCoin[];
|
|
264
|
+
}
|
|
265
|
+
|
|
223
266
|
/**
|
|
224
267
|
* QueryValidatorOutstandingRewardsResponse is the response type for the
|
|
225
268
|
Query/ValidatorOutstandingRewards RPC method.
|
|
@@ -494,6 +537,22 @@ validator.
|
|
|
494
537
|
...params,
|
|
495
538
|
});
|
|
496
539
|
|
|
540
|
+
/**
|
|
541
|
+
* No description
|
|
542
|
+
*
|
|
543
|
+
* @tags Query
|
|
544
|
+
* @name QueryValidatorDistributionInfo
|
|
545
|
+
* @summary ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator
|
|
546
|
+
* @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}
|
|
547
|
+
*/
|
|
548
|
+
queryValidatorDistributionInfo = (validatorAddress: string, params: RequestParams = {}) =>
|
|
549
|
+
this.request<V1Beta1QueryValidatorDistributionInfoResponse, RpcStatus>({
|
|
550
|
+
path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}`,
|
|
551
|
+
method: "GET",
|
|
552
|
+
format: "json",
|
|
553
|
+
...params,
|
|
554
|
+
});
|
|
555
|
+
|
|
497
556
|
/**
|
|
498
557
|
* No description
|
|
499
558
|
*
|
|
@@ -8,7 +8,19 @@ export const protobufPackage = "cosmos.distribution.v1beta1";
|
|
|
8
8
|
/** Params defines the set of params for the distribution module. */
|
|
9
9
|
export interface Params {
|
|
10
10
|
communityTax: string;
|
|
11
|
+
/**
|
|
12
|
+
* Deprecated: The base_proposer_reward field is deprecated and is no longer used
|
|
13
|
+
* in the x/distribution module's reward mechanism.
|
|
14
|
+
*
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
11
17
|
baseProposerReward: string;
|
|
18
|
+
/**
|
|
19
|
+
* Deprecated: The bonus_proposer_reward field is deprecated and is no longer used
|
|
20
|
+
* in the x/distribution module's reward mechanism.
|
|
21
|
+
*
|
|
22
|
+
* @deprecated
|
|
23
|
+
*/
|
|
12
24
|
bonusProposerReward: string;
|
|
13
25
|
withdrawAddrEnabled: boolean;
|
|
14
26
|
}
|
|
@@ -83,6 +95,13 @@ export interface FeePool {
|
|
|
83
95
|
* CommunityPoolSpendProposal details a proposal for use of community funds,
|
|
84
96
|
* together with how many coins are proposed to be spent, and to which
|
|
85
97
|
* recipient account.
|
|
98
|
+
*
|
|
99
|
+
* Deprecated: Do not use. As of the Cosmos SDK release v0.47.x, there is no
|
|
100
|
+
* longer a need for an explicit CommunityPoolSpendProposal. To spend community
|
|
101
|
+
* pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov
|
|
102
|
+
* module via a v1 governance proposal.
|
|
103
|
+
*
|
|
104
|
+
* @deprecated
|
|
86
105
|
*/
|
|
87
106
|
export interface CommunityPoolSpendProposal {
|
|
88
107
|
title: string;
|
|
@@ -30,7 +30,7 @@ export interface DelegatorWithdrawInfo {
|
|
|
30
30
|
export interface ValidatorOutstandingRewardsRecord {
|
|
31
31
|
/** validator_address is the address of the validator. */
|
|
32
32
|
validatorAddress: string;
|
|
33
|
-
/** outstanding_rewards represents the
|
|
33
|
+
/** outstanding_rewards represents the outstanding rewards of a validator. */
|
|
34
34
|
outstandingRewards: DecCoin[];
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -80,7 +80,7 @@ export interface DelegatorStartingInfoRecord {
|
|
|
80
80
|
export interface ValidatorSlashEventRecord {
|
|
81
81
|
/** validator_address is the address of the validator. */
|
|
82
82
|
validatorAddress: string;
|
|
83
|
-
/** height defines the block height at which the slash event
|
|
83
|
+
/** height defines the block height at which the slash event occurred. */
|
|
84
84
|
height: number;
|
|
85
85
|
/** period is the period of the slash event. */
|
|
86
86
|
period: number;
|
|
@@ -90,7 +90,7 @@ export interface ValidatorSlashEventRecord {
|
|
|
90
90
|
|
|
91
91
|
/** GenesisState defines the distribution module's genesis state. */
|
|
92
92
|
export interface GenesisState {
|
|
93
|
-
/** params defines all the
|
|
93
|
+
/** params defines all the parameters of the module. */
|
|
94
94
|
params:
|
|
95
95
|
| Params
|
|
96
96
|
| undefined;
|
|
@@ -104,7 +104,7 @@ export interface GenesisState {
|
|
|
104
104
|
previousProposer: string;
|
|
105
105
|
/** fee_pool defines the outstanding rewards of all validators at genesis. */
|
|
106
106
|
outstandingRewards: ValidatorOutstandingRewardsRecord[];
|
|
107
|
-
/** fee_pool defines the accumulated
|
|
107
|
+
/** fee_pool defines the accumulated commissions of all validators at genesis. */
|
|
108
108
|
validatorAccumulatedCommissions: ValidatorAccumulatedCommissionRecord[];
|
|
109
109
|
/** fee_pool defines the historical rewards of all validators at genesis. */
|
|
110
110
|
validatorHistoricalRewards: ValidatorHistoricalRewardsRecord[];
|
|
@@ -81,6 +81,120 @@ export const QueryParamsResponse = {
|
|
|
81
81
|
return message;
|
|
82
82
|
},
|
|
83
83
|
};
|
|
84
|
+
function createBaseQueryValidatorDistributionInfoRequest() {
|
|
85
|
+
return { validatorAddress: "" };
|
|
86
|
+
}
|
|
87
|
+
export const QueryValidatorDistributionInfoRequest = {
|
|
88
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
89
|
+
if (message.validatorAddress !== "") {
|
|
90
|
+
writer.uint32(10).string(message.validatorAddress);
|
|
91
|
+
}
|
|
92
|
+
return writer;
|
|
93
|
+
},
|
|
94
|
+
decode(input, length) {
|
|
95
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
96
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
97
|
+
const message = createBaseQueryValidatorDistributionInfoRequest();
|
|
98
|
+
while (reader.pos < end) {
|
|
99
|
+
const tag = reader.uint32();
|
|
100
|
+
switch (tag >>> 3) {
|
|
101
|
+
case 1:
|
|
102
|
+
message.validatorAddress = reader.string();
|
|
103
|
+
break;
|
|
104
|
+
default:
|
|
105
|
+
reader.skipType(tag & 7);
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return message;
|
|
110
|
+
},
|
|
111
|
+
fromJSON(object) {
|
|
112
|
+
return { validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "" };
|
|
113
|
+
},
|
|
114
|
+
toJSON(message) {
|
|
115
|
+
const obj = {};
|
|
116
|
+
message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
|
|
117
|
+
return obj;
|
|
118
|
+
},
|
|
119
|
+
fromPartial(object) {
|
|
120
|
+
const message = createBaseQueryValidatorDistributionInfoRequest();
|
|
121
|
+
message.validatorAddress = object.validatorAddress ?? "";
|
|
122
|
+
return message;
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
function createBaseQueryValidatorDistributionInfoResponse() {
|
|
126
|
+
return { operatorAddress: "", selfBondRewards: [], commission: [] };
|
|
127
|
+
}
|
|
128
|
+
export const QueryValidatorDistributionInfoResponse = {
|
|
129
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
130
|
+
if (message.operatorAddress !== "") {
|
|
131
|
+
writer.uint32(10).string(message.operatorAddress);
|
|
132
|
+
}
|
|
133
|
+
for (const v of message.selfBondRewards) {
|
|
134
|
+
DecCoin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
135
|
+
}
|
|
136
|
+
for (const v of message.commission) {
|
|
137
|
+
DecCoin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
138
|
+
}
|
|
139
|
+
return writer;
|
|
140
|
+
},
|
|
141
|
+
decode(input, length) {
|
|
142
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
143
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
144
|
+
const message = createBaseQueryValidatorDistributionInfoResponse();
|
|
145
|
+
while (reader.pos < end) {
|
|
146
|
+
const tag = reader.uint32();
|
|
147
|
+
switch (tag >>> 3) {
|
|
148
|
+
case 1:
|
|
149
|
+
message.operatorAddress = reader.string();
|
|
150
|
+
break;
|
|
151
|
+
case 2:
|
|
152
|
+
message.selfBondRewards.push(DecCoin.decode(reader, reader.uint32()));
|
|
153
|
+
break;
|
|
154
|
+
case 3:
|
|
155
|
+
message.commission.push(DecCoin.decode(reader, reader.uint32()));
|
|
156
|
+
break;
|
|
157
|
+
default:
|
|
158
|
+
reader.skipType(tag & 7);
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return message;
|
|
163
|
+
},
|
|
164
|
+
fromJSON(object) {
|
|
165
|
+
return {
|
|
166
|
+
operatorAddress: isSet(object.operatorAddress) ? String(object.operatorAddress) : "",
|
|
167
|
+
selfBondRewards: Array.isArray(object?.selfBondRewards)
|
|
168
|
+
? object.selfBondRewards.map((e) => DecCoin.fromJSON(e))
|
|
169
|
+
: [],
|
|
170
|
+
commission: Array.isArray(object?.commission) ? object.commission.map((e) => DecCoin.fromJSON(e)) : [],
|
|
171
|
+
};
|
|
172
|
+
},
|
|
173
|
+
toJSON(message) {
|
|
174
|
+
const obj = {};
|
|
175
|
+
message.operatorAddress !== undefined && (obj.operatorAddress = message.operatorAddress);
|
|
176
|
+
if (message.selfBondRewards) {
|
|
177
|
+
obj.selfBondRewards = message.selfBondRewards.map((e) => e ? DecCoin.toJSON(e) : undefined);
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
obj.selfBondRewards = [];
|
|
181
|
+
}
|
|
182
|
+
if (message.commission) {
|
|
183
|
+
obj.commission = message.commission.map((e) => e ? DecCoin.toJSON(e) : undefined);
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
obj.commission = [];
|
|
187
|
+
}
|
|
188
|
+
return obj;
|
|
189
|
+
},
|
|
190
|
+
fromPartial(object) {
|
|
191
|
+
const message = createBaseQueryValidatorDistributionInfoResponse();
|
|
192
|
+
message.operatorAddress = object.operatorAddress ?? "";
|
|
193
|
+
message.selfBondRewards = object.selfBondRewards?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
194
|
+
message.commission = object.commission?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
195
|
+
return message;
|
|
196
|
+
},
|
|
197
|
+
};
|
|
84
198
|
function createBaseQueryValidatorOutstandingRewardsRequest() {
|
|
85
199
|
return { validatorAddress: "" };
|
|
86
200
|
}
|
|
@@ -841,6 +955,7 @@ export class QueryClientImpl {
|
|
|
841
955
|
constructor(rpc) {
|
|
842
956
|
this.rpc = rpc;
|
|
843
957
|
this.Params = this.Params.bind(this);
|
|
958
|
+
this.ValidatorDistributionInfo = this.ValidatorDistributionInfo.bind(this);
|
|
844
959
|
this.ValidatorOutstandingRewards = this.ValidatorOutstandingRewards.bind(this);
|
|
845
960
|
this.ValidatorCommission = this.ValidatorCommission.bind(this);
|
|
846
961
|
this.ValidatorSlashes = this.ValidatorSlashes.bind(this);
|
|
@@ -855,6 +970,11 @@ export class QueryClientImpl {
|
|
|
855
970
|
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "Params", data);
|
|
856
971
|
return promise.then((data) => QueryParamsResponse.decode(new _m0.Reader(data)));
|
|
857
972
|
}
|
|
973
|
+
ValidatorDistributionInfo(request) {
|
|
974
|
+
const data = QueryValidatorDistributionInfoRequest.encode(request).finish();
|
|
975
|
+
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorDistributionInfo", data);
|
|
976
|
+
return promise.then((data) => QueryValidatorDistributionInfoResponse.decode(new _m0.Reader(data)));
|
|
977
|
+
}
|
|
858
978
|
ValidatorOutstandingRewards(request) {
|
|
859
979
|
const data = QueryValidatorOutstandingRewardsRequest.encode(request).finish();
|
|
860
980
|
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorOutstandingRewards", data);
|