decentralcardgame-cardchain-client-ts 0.0.11 → 0.0.13
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 +350 -327
- package/DecentralCardGame.cardchain.cardchain/module.ts +518 -485
- package/DecentralCardGame.cardchain.cardchain/registry.js +74 -72
- package/DecentralCardGame.cardchain.cardchain/registry.ts +74 -72
- package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/rest.ts +12 -1
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/genesis.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/genesis.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match.js +101 -3
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match.ts +103 -3
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/params.js +10 -0
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/params.ts +11 -0
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/query.js +2 -4
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/query.ts +2 -4
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/tx.js +190 -122
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/tx.ts +220 -144
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/user.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/user.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voteing.js +346 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voteing.ts +417 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +23 -23
- package/DecentralCardGame.cardchain.cardchain/types.ts +25 -25
- package/client.js +8 -9
- package/client.ts +12 -14
- package/cosmos.auth.v1beta1/module.js +0 -2
- package/cosmos.auth.v1beta1/module.ts +1 -3
- package/cosmos.auth.v1beta1/rest.js +3 -18
- package/cosmos.auth.v1beta1/rest.ts +3 -113
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +3 -104
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +4 -157
- package/cosmos.auth.v1beta1/types.js +1 -2
- package/cosmos.auth.v1beta1/types.ts +0 -2
- package/cosmos.authz.v1beta1/module.ts +1 -1
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
- package/cosmos.bank.v1beta1/module.ts +1 -1
- package/cosmos.bank.v1beta1/rest.js +6 -37
- package/cosmos.bank.v1beta1/rest.ts +6 -99
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +2 -18
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +2 -24
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +0 -9
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +2 -18
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +4 -25
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1 -230
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +5 -356
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +1 -206
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +1 -305
- 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 +27 -18
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +46 -16
- package/cosmos.crisis.v1beta1/module.js +1 -24
- package/cosmos.crisis.v1beta1/module.ts +2 -35
- package/cosmos.crisis.v1beta1/registry.js +0 -2
- package/cosmos.crisis.v1beta1/registry.ts +0 -2
- package/cosmos.crisis.v1beta1/rest.ts +0 -19
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +0 -95
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +1 -140
- package/cosmos.distribution.v1beta1/module.js +9 -55
- package/cosmos.distribution.v1beta1/module.ts +14 -80
- package/cosmos.distribution.v1beta1/registry.js +2 -6
- package/cosmos.distribution.v1beta1/registry.ts +2 -6
- package/cosmos.distribution.v1beta1/rest.js +0 -14
- package/cosmos.distribution.v1beta1/rest.ts +7 -66
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +0 -19
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +0 -120
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1 -158
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +0 -199
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +3 -300
- package/cosmos.evidence.v1beta1/module.ts +1 -1
- package/cosmos.evidence.v1beta1/rest.js +3 -4
- package/cosmos.evidence.v1beta1/rest.ts +3 -4
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +1 -7
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +2 -13
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +3 -25
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +0 -2
- package/cosmos.feegrant.v1beta1/module.ts +1 -1
- package/cosmos.gov.v1/module.js +9 -34
- package/cosmos.gov.v1/module.ts +14 -49
- package/cosmos.gov.v1/registry.js +2 -4
- package/cosmos.gov.v1/registry.ts +2 -4
- package/cosmos.gov.v1/rest.ts +41 -155
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +1 -13
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +5 -40
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +0 -179
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +6 -277
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +2 -13
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +7 -45
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +2 -113
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +3 -186
- package/cosmos.gov.v1/types.js +1 -2
- package/cosmos.gov.v1/types.ts +0 -2
- package/cosmos.gov.v1beta1/module.js +31 -31
- package/cosmos.gov.v1beta1/module.ts +48 -48
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +96 -65
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +10 -45
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +2 -4
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +1 -16
- package/cosmos.group.v1/module.js +104 -104
- package/cosmos.group.v1/module.ts +156 -156
- package/cosmos.group.v1/registry.js +18 -18
- package/cosmos.group.v1/registry.ts +18 -18
- package/cosmos.group.v1/rest.js +3 -3
- package/cosmos.group.v1/rest.ts +9 -29
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +34 -52
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +49 -79
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +0 -20
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +6 -46
- package/cosmos.mint.v1beta1/module.ts +1 -1
- package/cosmos.mint.v1beta1/rest.ts +1 -9
- 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.nft.v1beta1/module.ts +1 -1
- package/cosmos.nft.v1beta1/rest.ts +22 -18
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +0 -10
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +0 -1
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +0 -20
- package/cosmos.params.v1beta1/module.ts +1 -1
- package/cosmos.slashing.v1beta1/module.ts +1 -1
- package/cosmos.slashing.v1beta1/rest.ts +0 -8
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +0 -94
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +0 -139
- package/cosmos.staking.v1beta1/module.js +40 -42
- package/cosmos.staking.v1beta1/module.ts +61 -63
- package/cosmos.staking.v1beta1/registry.js +8 -8
- package/cosmos.staking.v1beta1/registry.ts +8 -8
- package/cosmos.staking.v1beta1/rest.js +7 -7
- package/cosmos.staking.v1beta1/rest.ts +8 -49
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +5 -36
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +2 -180
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +3 -206
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +1 -94
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1 -138
- package/cosmos.staking.v1beta1/types.js +1 -2
- package/cosmos.staking.v1beta1/types.ts +0 -2
- package/cosmos.tx.v1beta1/module.ts +1 -1
- package/cosmos.tx.v1beta1/rest.js +2 -66
- package/cosmos.tx.v1beta1/rest.ts +16 -177
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +2 -360
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +2 -524
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +266 -592
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +332 -703
- package/cosmos.tx.v1beta1/types/tendermint/types/params.js +17 -8
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +25 -9
- package/cosmos.upgrade.v1beta1/module.ts +1 -1
- package/cosmos.upgrade.v1beta1/rest.ts +1 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/cosmos.vesting.v1beta1/module.js +16 -16
- package/cosmos.vesting.v1beta1/module.ts +25 -25
- package/cosmos.vesting.v1beta1/registry.js +2 -2
- package/cosmos.vesting.v1beta1/registry.ts +2 -2
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +1 -1
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -1
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +2 -13
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +4 -16
- package/ibc.applications.interchain_accounts.host.v1/module.ts +1 -1
- package/ibc.applications.transfer.v1/module.js +27 -5
- package/ibc.applications.transfer.v1/module.ts +35 -6
- package/ibc.applications.transfer.v1/registry.js +4 -1
- package/ibc.applications.transfer.v1/registry.ts +2 -0
- package/ibc.applications.transfer.v1/rest.js +1 -15
- package/ibc.applications.transfer.v1/rest.ts +1 -30
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +1 -16
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +2 -23
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +0 -91
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +0 -120
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.applications.transfer.v1/types.js +1 -3
- package/ibc.applications.transfer.v1/types.ts +0 -4
- package/ibc.core.channel.v1/module.ts +1 -1
- package/ibc.core.channel.v1/rest.ts +0 -1
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +2 -13
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +2 -14
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.client.v1/module.ts +1 -1
- package/ibc.core.client.v1/rest.ts +1 -5
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +8 -9
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +14 -28
- package/ibc.core.connection.v1/module.ts +1 -1
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +1 -5
- 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 +0 -26
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +0 -34
- package/ibc.core.connection.v1/types/{cosmos/ics23/v1/proofs.js → proofs.js} +1 -1
- package/ibc.core.connection.v1/types/{cosmos/ics23/v1/proofs.ts → proofs.ts} +1 -1
- package/index.js +1 -3
- package/index.ts +1 -3
- package/package.json +9 -8
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/vote_right.js +0 -84
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/vote_right.ts +0 -114
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_result.js +0 -127
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_result.ts +0 -161
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_results.js +0 -148
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_results.ts +0 -182
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +0 -2
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +0 -2
- package/cosmos.auth.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.auth.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +0 -105
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +0 -172
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +0 -2
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +0 -2
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +0 -2
- package/cosmos.authz.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.authz.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.bank.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.bank.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +0 -2
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +0 -2
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.consensus.v1/index.js +0 -5
- package/cosmos.consensus.v1/index.ts +0 -6
- package/cosmos.consensus.v1/module.js +0 -81
- package/cosmos.consensus.v1/module.ts +0 -129
- package/cosmos.consensus.v1/registry.js +0 -5
- package/cosmos.consensus.v1/registry.ts +0 -9
- package/cosmos.consensus.v1/rest.js +0 -100
- package/cosmos.consensus.v1/rest.ts +0 -268
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +0 -94
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +0 -147
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +0 -129
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +0 -196
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +0 -2
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +0 -2
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +0 -171
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +0 -247
- package/cosmos.consensus.v1/types/gogoproto/gogo.js +0 -2
- package/cosmos.consensus.v1/types/gogoproto/gogo.ts +0 -2
- package/cosmos.consensus.v1/types/google/api/annotations.js +0 -2
- package/cosmos.consensus.v1/types/google/api/annotations.ts +0 -2
- package/cosmos.consensus.v1/types/google/api/http.js +0 -260
- package/cosmos.consensus.v1/types/google/api/http.ts +0 -589
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +0 -2830
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +0 -3753
- package/cosmos.consensus.v1/types/google/protobuf/duration.js +0 -84
- package/cosmos.consensus.v1/types/google/protobuf/duration.ts +0 -187
- package/cosmos.consensus.v1/types/tendermint/types/params.js +0 -369
- package/cosmos.consensus.v1/types/tendermint/types/params.ts +0 -498
- package/cosmos.consensus.v1/types.js +0 -1
- package/cosmos.consensus.v1/types.ts +0 -5
- package/cosmos.crisis.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.crisis.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.distribution.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.distribution.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.evidence.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.evidence.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.feegrant.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.feegrant.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.gov.v1/types/amino/amino.js +0 -2
- package/cosmos.gov.v1/types/amino/amino.ts +0 -2
- package/cosmos.gov.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.gov.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.group.v1/types/amino/amino.js +0 -2
- package/cosmos.group.v1/types/amino/amino.ts +0 -2
- package/cosmos.mint.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.mint.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +0 -105
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +0 -172
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +0 -2
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +0 -247
- package/cosmos.params.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.params.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.slashing.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.slashing.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.staking.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.staking.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +0 -2
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +0 -2
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +0 -3812
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +0 -4525
- package/cosmos.staking.v1beta1/types/tendermint/types/params.js +0 -369
- package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +0 -498
- package/cosmos.tx.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.tx.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.upgrade.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.upgrade.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.vesting.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.vesting.v1beta1/types/amino/amino.ts +0 -2
- package/ibc.applications.transfer.v1/types/amino/amino.js +0 -2
- package/ibc.applications.transfer.v1/types/amino/amino.ts +0 -2
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +0 -135
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +0 -178
- package/ibc.core.channel.v1/types/amino/amino.js +0 -2
- package/ibc.core.channel.v1/types/amino/amino.ts +0 -2
- package/ibc.core.client.v1/types/amino/amino.js +0 -2
- package/ibc.core.client.v1/types/amino/amino.ts +0 -2
- package/ibc.core.connection.v1/types/amino/amino.js +0 -2
- package/ibc.core.connection.v1/types/amino/amino.ts +0 -2
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/card.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/card.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/copyright_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/copyright_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/council.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/council.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/image.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/image.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match_reporter_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match_reporter_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/num.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/num.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/running_average.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/running_average.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/sell_offer.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/sell_offer.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/server.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/server.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
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';
|
|
@@ -9,10 +9,8 @@ import { MissingWalletError } from "../helpers"
|
|
|
9
9
|
import { Api } from "./rest";
|
|
10
10
|
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
11
11
|
import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
|
|
12
|
-
import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx";
|
|
13
|
-
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
14
12
|
import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
|
|
15
|
-
import {
|
|
13
|
+
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
16
14
|
|
|
17
15
|
import { Params as typeParams} from "./types"
|
|
18
16
|
import { ValidatorHistoricalRewards as typeValidatorHistoricalRewards} from "./types"
|
|
@@ -34,7 +32,7 @@ import { ValidatorCurrentRewardsRecord as typeValidatorCurrentRewardsRecord} fro
|
|
|
34
32
|
import { DelegatorStartingInfoRecord as typeDelegatorStartingInfoRecord} from "./types"
|
|
35
33
|
import { ValidatorSlashEventRecord as typeValidatorSlashEventRecord} from "./types"
|
|
36
34
|
|
|
37
|
-
export { MsgWithdrawValidatorCommission, MsgWithdrawDelegatorReward,
|
|
35
|
+
export { MsgWithdrawValidatorCommission, MsgWithdrawDelegatorReward, MsgSetWithdrawAddress, MsgFundCommunityPool };
|
|
38
36
|
|
|
39
37
|
type sendMsgWithdrawValidatorCommissionParams = {
|
|
40
38
|
value: MsgWithdrawValidatorCommission,
|
|
@@ -48,26 +46,14 @@ type sendMsgWithdrawDelegatorRewardParams = {
|
|
|
48
46
|
memo?: string
|
|
49
47
|
};
|
|
50
48
|
|
|
51
|
-
type sendMsgCommunityPoolSpendParams = {
|
|
52
|
-
value: MsgCommunityPoolSpend,
|
|
53
|
-
fee?: StdFee,
|
|
54
|
-
memo?: string
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
type sendMsgFundCommunityPoolParams = {
|
|
58
|
-
value: MsgFundCommunityPool,
|
|
59
|
-
fee?: StdFee,
|
|
60
|
-
memo?: string
|
|
61
|
-
};
|
|
62
|
-
|
|
63
49
|
type sendMsgSetWithdrawAddressParams = {
|
|
64
50
|
value: MsgSetWithdrawAddress,
|
|
65
51
|
fee?: StdFee,
|
|
66
52
|
memo?: string
|
|
67
53
|
};
|
|
68
54
|
|
|
69
|
-
type
|
|
70
|
-
value:
|
|
55
|
+
type sendMsgFundCommunityPoolParams = {
|
|
56
|
+
value: MsgFundCommunityPool,
|
|
71
57
|
fee?: StdFee,
|
|
72
58
|
memo?: string
|
|
73
59
|
};
|
|
@@ -81,20 +67,12 @@ type msgWithdrawDelegatorRewardParams = {
|
|
|
81
67
|
value: MsgWithdrawDelegatorReward,
|
|
82
68
|
};
|
|
83
69
|
|
|
84
|
-
type msgCommunityPoolSpendParams = {
|
|
85
|
-
value: MsgCommunityPoolSpend,
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
type msgFundCommunityPoolParams = {
|
|
89
|
-
value: MsgFundCommunityPool,
|
|
90
|
-
};
|
|
91
|
-
|
|
92
70
|
type msgSetWithdrawAddressParams = {
|
|
93
71
|
value: MsgSetWithdrawAddress,
|
|
94
72
|
};
|
|
95
73
|
|
|
96
|
-
type
|
|
97
|
-
value:
|
|
74
|
+
type msgFundCommunityPoolParams = {
|
|
75
|
+
value: MsgFundCommunityPool,
|
|
98
76
|
};
|
|
99
77
|
|
|
100
78
|
|
|
@@ -155,34 +133,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
155
133
|
}
|
|
156
134
|
},
|
|
157
135
|
|
|
158
|
-
async sendMsgCommunityPoolSpend({ value, fee, memo }: sendMsgCommunityPoolSpendParams): Promise<DeliverTxResponse> {
|
|
159
|
-
if (!signer) {
|
|
160
|
-
throw new Error('TxClient:sendMsgCommunityPoolSpend: 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.msgCommunityPoolSpend({ value: MsgCommunityPoolSpend.fromPartial(value) })
|
|
166
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
167
|
-
} catch (e: any) {
|
|
168
|
-
throw new Error('TxClient:sendMsgCommunityPoolSpend: Could not broadcast Tx: '+ e.message)
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
async sendMsgFundCommunityPool({ value, fee, memo }: sendMsgFundCommunityPoolParams): Promise<DeliverTxResponse> {
|
|
173
|
-
if (!signer) {
|
|
174
|
-
throw new Error('TxClient:sendMsgFundCommunityPool: Unable to sign Tx. Signer is not present.')
|
|
175
|
-
}
|
|
176
|
-
try {
|
|
177
|
-
const { address } = (await signer.getAccounts())[0];
|
|
178
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
179
|
-
let msg = this.msgFundCommunityPool({ value: MsgFundCommunityPool.fromPartial(value) })
|
|
180
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
181
|
-
} catch (e: any) {
|
|
182
|
-
throw new Error('TxClient:sendMsgFundCommunityPool: Could not broadcast Tx: '+ e.message)
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
|
|
186
136
|
async sendMsgSetWithdrawAddress({ value, fee, memo }: sendMsgSetWithdrawAddressParams): Promise<DeliverTxResponse> {
|
|
187
137
|
if (!signer) {
|
|
188
138
|
throw new Error('TxClient:sendMsgSetWithdrawAddress: Unable to sign Tx. Signer is not present.')
|
|
@@ -197,17 +147,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
197
147
|
}
|
|
198
148
|
},
|
|
199
149
|
|
|
200
|
-
async
|
|
150
|
+
async sendMsgFundCommunityPool({ value, fee, memo }: sendMsgFundCommunityPoolParams): Promise<DeliverTxResponse> {
|
|
201
151
|
if (!signer) {
|
|
202
|
-
throw new Error('TxClient:
|
|
152
|
+
throw new Error('TxClient:sendMsgFundCommunityPool: Unable to sign Tx. Signer is not present.')
|
|
203
153
|
}
|
|
204
154
|
try {
|
|
205
155
|
const { address } = (await signer.getAccounts())[0];
|
|
206
156
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
207
|
-
let msg = this.
|
|
157
|
+
let msg = this.msgFundCommunityPool({ value: MsgFundCommunityPool.fromPartial(value) })
|
|
208
158
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
209
159
|
} catch (e: any) {
|
|
210
|
-
throw new Error('TxClient:
|
|
160
|
+
throw new Error('TxClient:sendMsgFundCommunityPool: Could not broadcast Tx: '+ e.message)
|
|
211
161
|
}
|
|
212
162
|
},
|
|
213
163
|
|
|
@@ -228,22 +178,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
228
178
|
}
|
|
229
179
|
},
|
|
230
180
|
|
|
231
|
-
msgCommunityPoolSpend({ value }: msgCommunityPoolSpendParams): EncodeObject {
|
|
232
|
-
try {
|
|
233
|
-
return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", value: MsgCommunityPoolSpend.fromPartial( value ) }
|
|
234
|
-
} catch (e: any) {
|
|
235
|
-
throw new Error('TxClient:MsgCommunityPoolSpend: Could not create message: ' + e.message)
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
|
|
239
|
-
msgFundCommunityPool({ value }: msgFundCommunityPoolParams): EncodeObject {
|
|
240
|
-
try {
|
|
241
|
-
return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: MsgFundCommunityPool.fromPartial( value ) }
|
|
242
|
-
} catch (e: any) {
|
|
243
|
-
throw new Error('TxClient:MsgFundCommunityPool: Could not create message: ' + e.message)
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
|
|
247
181
|
msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject {
|
|
248
182
|
try {
|
|
249
183
|
return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: MsgSetWithdrawAddress.fromPartial( value ) }
|
|
@@ -252,11 +186,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
252
186
|
}
|
|
253
187
|
},
|
|
254
188
|
|
|
255
|
-
|
|
189
|
+
msgFundCommunityPool({ value }: msgFundCommunityPoolParams): EncodeObject {
|
|
256
190
|
try {
|
|
257
|
-
return { typeUrl: "/cosmos.distribution.v1beta1.
|
|
191
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: MsgFundCommunityPool.fromPartial( value ) }
|
|
258
192
|
} catch (e: any) {
|
|
259
|
-
throw new Error('TxClient:
|
|
193
|
+
throw new Error('TxClient:MsgFundCommunityPool: Could not create message: ' + e.message)
|
|
260
194
|
}
|
|
261
195
|
},
|
|
262
196
|
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
2
2
|
import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
|
|
3
|
-
import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx";
|
|
4
|
-
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
5
3
|
import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
|
|
6
|
-
import {
|
|
4
|
+
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
7
5
|
const msgTypes = [
|
|
8
6
|
["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission],
|
|
9
7
|
["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward],
|
|
10
|
-
["/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", MsgCommunityPoolSpend],
|
|
11
|
-
["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool],
|
|
12
8
|
["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress],
|
|
13
|
-
["/cosmos.distribution.v1beta1.
|
|
9
|
+
["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool],
|
|
14
10
|
];
|
|
15
11
|
export { msgTypes };
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
2
2
|
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
3
3
|
import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
|
|
4
|
-
import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx";
|
|
5
|
-
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
6
4
|
import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
|
|
7
|
-
import {
|
|
5
|
+
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
8
6
|
|
|
9
7
|
const msgTypes: Array<[string, GeneratedType]> = [
|
|
10
8
|
["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission],
|
|
11
9
|
["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward],
|
|
12
|
-
["/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", MsgCommunityPoolSpend],
|
|
13
|
-
["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool],
|
|
14
10
|
["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress],
|
|
15
|
-
["/cosmos.distribution.v1beta1.
|
|
11
|
+
["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool],
|
|
16
12
|
|
|
17
13
|
];
|
|
18
14
|
|
|
@@ -167,20 +167,6 @@ 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
|
-
});
|
|
184
170
|
/**
|
|
185
171
|
* No description
|
|
186
172
|
*
|
|
@@ -51,46 +51,27 @@ 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
|
-
|
|
62
54
|
/**
|
|
63
55
|
* MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type.
|
|
64
56
|
*/
|
|
65
57
|
export type V1Beta1MsgFundCommunityPoolResponse = object;
|
|
66
58
|
|
|
67
59
|
/**
|
|
68
|
-
* MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response
|
|
69
|
-
|
|
70
|
-
*/
|
|
60
|
+
* MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type.
|
|
61
|
+
*/
|
|
71
62
|
export type V1Beta1MsgSetWithdrawAddressResponse = object;
|
|
72
63
|
|
|
73
64
|
/**
|
|
74
|
-
*
|
|
75
|
-
|
|
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
|
-
*/
|
|
65
|
+
* MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type.
|
|
66
|
+
*/
|
|
85
67
|
export interface V1Beta1MsgWithdrawDelegatorRewardResponse {
|
|
86
68
|
/** Since: cosmos-sdk 0.46 */
|
|
87
69
|
amount?: V1Beta1Coin[];
|
|
88
70
|
}
|
|
89
71
|
|
|
90
72
|
/**
|
|
91
|
-
* MsgWithdrawValidatorCommissionResponse defines the
|
|
92
|
-
|
|
93
|
-
*/
|
|
73
|
+
* MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type.
|
|
74
|
+
*/
|
|
94
75
|
export interface V1Beta1MsgWithdrawValidatorCommissionResponse {
|
|
95
76
|
/** Since: cosmos-sdk 0.46 */
|
|
96
77
|
amount?: V1Beta1Coin[];
|
|
@@ -173,17 +154,7 @@ export interface V1Beta1PageResponse {
|
|
|
173
154
|
*/
|
|
174
155
|
export interface V1Beta1Params {
|
|
175
156
|
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
|
-
*/
|
|
181
157
|
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
|
-
*/
|
|
187
158
|
bonus_proposer_reward?: string;
|
|
188
159
|
withdraw_addr_enabled?: boolean;
|
|
189
160
|
}
|
|
@@ -245,24 +216,10 @@ export interface V1Beta1QueryParamsResponse {
|
|
|
245
216
|
}
|
|
246
217
|
|
|
247
218
|
export interface V1Beta1QueryValidatorCommissionResponse {
|
|
248
|
-
/** commission defines the
|
|
219
|
+
/** commission defines the commision the validator received. */
|
|
249
220
|
commission?: V1Beta1ValidatorAccumulatedCommission;
|
|
250
221
|
}
|
|
251
222
|
|
|
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
|
-
|
|
266
223
|
/**
|
|
267
224
|
* QueryValidatorOutstandingRewardsResponse is the response type for the
|
|
268
225
|
Query/ValidatorOutstandingRewards RPC method.
|
|
@@ -537,22 +494,6 @@ validator.
|
|
|
537
494
|
...params,
|
|
538
495
|
});
|
|
539
496
|
|
|
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
|
-
|
|
556
497
|
/**
|
|
557
498
|
* No description
|
|
558
499
|
*
|
|
@@ -8,19 +8,7 @@ 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
|
-
*/
|
|
17
11
|
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
|
-
*/
|
|
24
12
|
bonusProposerReward: string;
|
|
25
13
|
withdrawAddrEnabled: boolean;
|
|
26
14
|
}
|
|
@@ -95,13 +83,6 @@ export interface FeePool {
|
|
|
95
83
|
* CommunityPoolSpendProposal details a proposal for use of community funds,
|
|
96
84
|
* together with how many coins are proposed to be spent, and to which
|
|
97
85
|
* 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
|
|
105
86
|
*/
|
|
106
87
|
export interface CommunityPoolSpendProposal {
|
|
107
88
|
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 oustanding 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 occured. */
|
|
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 paramaters 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 commisions 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,120 +81,6 @@ 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
|
-
};
|
|
198
84
|
function createBaseQueryValidatorOutstandingRewardsRequest() {
|
|
199
85
|
return { validatorAddress: "" };
|
|
200
86
|
}
|
|
@@ -955,7 +841,6 @@ export class QueryClientImpl {
|
|
|
955
841
|
constructor(rpc) {
|
|
956
842
|
this.rpc = rpc;
|
|
957
843
|
this.Params = this.Params.bind(this);
|
|
958
|
-
this.ValidatorDistributionInfo = this.ValidatorDistributionInfo.bind(this);
|
|
959
844
|
this.ValidatorOutstandingRewards = this.ValidatorOutstandingRewards.bind(this);
|
|
960
845
|
this.ValidatorCommission = this.ValidatorCommission.bind(this);
|
|
961
846
|
this.ValidatorSlashes = this.ValidatorSlashes.bind(this);
|
|
@@ -970,11 +855,6 @@ export class QueryClientImpl {
|
|
|
970
855
|
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "Params", data);
|
|
971
856
|
return promise.then((data) => QueryParamsResponse.decode(new _m0.Reader(data)));
|
|
972
857
|
}
|
|
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
|
-
}
|
|
978
858
|
ValidatorOutstandingRewards(request) {
|
|
979
859
|
const data = QueryValidatorOutstandingRewardsRequest.encode(request).finish();
|
|
980
860
|
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorOutstandingRewards", data);
|