decentralcardgame-cardchain-client-ts 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DecentralCardGame.cardchain.cardchain/module.js +322 -322
- package/DecentralCardGame.cardchain.cardchain/module.ts +486 -486
- package/DecentralCardGame.cardchain.cardchain/registry.js +71 -71
- package/DecentralCardGame.cardchain.cardchain/registry.ts +71 -71
- package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/rest.ts +8 -3
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +44 -13
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +44 -13
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +2 -0
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +2 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +22 -22
- package/DecentralCardGame.cardchain.cardchain/types.ts +22 -22
- package/client.js +7 -7
- package/client.ts +11 -10
- package/cosmos.auth.v1beta1/module.js +2 -0
- package/cosmos.auth.v1beta1/module.ts +2 -0
- package/cosmos.auth.v1beta1/rest.js +18 -3
- package/cosmos.auth.v1beta1/rest.ts +113 -3
- package/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.auth.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +104 -3
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +157 -4
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +172 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.auth.v1beta1/types.js +2 -1
- package/cosmos.auth.v1beta1/types.ts +2 -0
- package/cosmos.authz.v1beta1/module.js +19 -19
- package/cosmos.authz.v1beta1/module.ts +29 -29
- package/cosmos.authz.v1beta1/registry.js +2 -2
- package/cosmos.authz.v1beta1/registry.ts +2 -2
- package/cosmos.authz.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.authz.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
- package/cosmos.bank.v1beta1/module.js +16 -16
- package/cosmos.bank.v1beta1/module.ts +24 -24
- package/cosmos.bank.v1beta1/registry.js +2 -2
- package/cosmos.bank.v1beta1/registry.ts +2 -2
- package/cosmos.bank.v1beta1/rest.js +37 -6
- package/cosmos.bank.v1beta1/rest.ts +99 -6
- package/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.bank.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +18 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +24 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +9 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +18 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +25 -4
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +230 -1
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +356 -5
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +206 -1
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +305 -1
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
- package/cosmos.base.tendermint.v1beta1/rest.ts +18 -27
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
- package/cosmos.consensus.v1/index.js +5 -0
- package/cosmos.consensus.v1/index.ts +6 -0
- package/cosmos.consensus.v1/module.js +81 -0
- package/cosmos.consensus.v1/module.ts +129 -0
- package/cosmos.consensus.v1/registry.js +5 -0
- package/cosmos.consensus.v1/registry.ts +9 -0
- package/cosmos.consensus.v1/rest.js +100 -0
- package/cosmos.consensus.v1/rest.ts +268 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/http.js +260 -0
- package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
- package/cosmos.consensus.v1/types.js +1 -0
- package/cosmos.consensus.v1/types.ts +5 -0
- package/cosmos.crisis.v1beta1/module.js +24 -1
- package/cosmos.crisis.v1beta1/module.ts +34 -1
- package/cosmos.crisis.v1beta1/registry.js +2 -0
- package/cosmos.crisis.v1beta1/registry.ts +2 -0
- package/cosmos.crisis.v1beta1/rest.ts +19 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +95 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
- package/cosmos.distribution.v1beta1/module.js +63 -17
- package/cosmos.distribution.v1beta1/module.ts +91 -25
- package/cosmos.distribution.v1beta1/registry.js +8 -4
- package/cosmos.distribution.v1beta1/registry.ts +8 -4
- package/cosmos.distribution.v1beta1/rest.js +14 -0
- package/cosmos.distribution.v1beta1/rest.ts +66 -7
- package/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +120 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +199 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
- package/cosmos.evidence.v1beta1/rest.js +4 -3
- package/cosmos.evidence.v1beta1/rest.ts +4 -3
- package/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +13 -2
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
- package/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/module.js +44 -19
- package/cosmos.gov.v1/module.ts +62 -27
- package/cosmos.gov.v1/registry.js +4 -2
- package/cosmos.gov.v1/registry.ts +4 -2
- package/cosmos.gov.v1/rest.ts +155 -41
- package/cosmos.gov.v1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +13 -1
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +179 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +13 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +113 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
- package/cosmos.gov.v1/types.js +2 -1
- package/cosmos.gov.v1/types.ts +2 -0
- package/cosmos.gov.v1beta1/module.js +24 -24
- package/cosmos.gov.v1beta1/module.ts +36 -36
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +65 -96
- package/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
- package/cosmos.group.v1/module.js +98 -96
- package/cosmos.group.v1/module.ts +149 -147
- package/cosmos.group.v1/registry.js +16 -16
- package/cosmos.group.v1/registry.ts +16 -16
- package/cosmos.group.v1/rest.js +3 -3
- package/cosmos.group.v1/rest.ts +29 -9
- package/cosmos.group.v1/types/amino/amino.js +2 -0
- package/cosmos.group.v1/types/amino/amino.ts +2 -0
- package/cosmos.group.v1/types/cosmos/group/v1/events.js +65 -1
- package/cosmos.group.v1/types/cosmos/group/v1/events.ts +89 -1
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +52 -34
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +20 -0
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
- package/cosmos.group.v1/types.js +2 -1
- package/cosmos.group.v1/types.ts +2 -0
- package/cosmos.mint.v1beta1/rest.ts +9 -1
- package/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.nft.v1beta1/rest.ts +18 -22
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/rest.ts +8 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +94 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
- package/cosmos.staking.v1beta1/module.js +34 -32
- package/cosmos.staking.v1beta1/module.ts +50 -48
- package/cosmos.staking.v1beta1/registry.js +6 -6
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.js +7 -7
- package/cosmos.staking.v1beta1/rest.ts +49 -8
- package/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +180 -2
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +94 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
- package/cosmos.staking.v1beta1/types.js +2 -1
- package/cosmos.staking.v1beta1/types.ts +2 -0
- package/cosmos.tx.v1beta1/rest.js +66 -2
- package/cosmos.tx.v1beta1/rest.ts +177 -16
- package/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +360 -2
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +592 -266
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +703 -332
- package/cosmos.tx.v1beta1/types/tendermint/types/params.js +8 -17
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
- package/cosmos.upgrade.v1beta1/rest.ts +0 -1
- package/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/cosmos.vesting.v1beta1/module.js +19 -19
- package/cosmos.vesting.v1beta1/module.ts +29 -29
- package/cosmos.vesting.v1beta1/registry.js +2 -2
- package/cosmos.vesting.v1beta1/registry.ts +2 -2
- package/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +13 -2
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
- package/ibc.applications.transfer.v1/module.js +5 -27
- package/ibc.applications.transfer.v1/module.ts +5 -34
- package/ibc.applications.transfer.v1/registry.js +1 -4
- package/ibc.applications.transfer.v1/registry.ts +0 -2
- package/ibc.applications.transfer.v1/rest.js +15 -1
- package/ibc.applications.transfer.v1/rest.ts +30 -1
- package/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
- package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +16 -1
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +91 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.applications.transfer.v1/types.js +3 -1
- package/ibc.applications.transfer.v1/types.ts +4 -0
- package/ibc.core.channel.v1/rest.ts +1 -0
- package/ibc.core.channel.v1/types/amino/amino.js +2 -0
- package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +13 -2
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/rest.ts +5 -1
- package/ibc.core.client.v1/types/amino/amino.js +2 -0
- package/ibc.core.client.v1/types/amino/amino.ts +2 -0
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +9 -8
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
- package/ibc.core.connection.v1/types/amino/amino.js +2 -0
- package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
- package/ibc.core.connection.v1/types/{proofs.js → cosmos/ics23/v1/proofs.js} +1 -1
- package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +26 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
- package/index.js +3 -1
- package/index.ts +3 -1
- package/package.json +1 -4
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.ts +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
3
4
|
export const protobufPackage = "cosmos.crisis.v1beta1";
|
|
4
5
|
function createBaseMsgVerifyInvariant() {
|
|
5
6
|
return { sender: "", invariantModuleName: "", invariantRoute: "" };
|
|
@@ -95,16 +96,110 @@ export const MsgVerifyInvariantResponse = {
|
|
|
95
96
|
return message;
|
|
96
97
|
},
|
|
97
98
|
};
|
|
99
|
+
function createBaseMsgUpdateParams() {
|
|
100
|
+
return { authority: "", constantFee: undefined };
|
|
101
|
+
}
|
|
102
|
+
export const MsgUpdateParams = {
|
|
103
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
104
|
+
if (message.authority !== "") {
|
|
105
|
+
writer.uint32(10).string(message.authority);
|
|
106
|
+
}
|
|
107
|
+
if (message.constantFee !== undefined) {
|
|
108
|
+
Coin.encode(message.constantFee, writer.uint32(18).fork()).ldelim();
|
|
109
|
+
}
|
|
110
|
+
return writer;
|
|
111
|
+
},
|
|
112
|
+
decode(input, length) {
|
|
113
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
114
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
115
|
+
const message = createBaseMsgUpdateParams();
|
|
116
|
+
while (reader.pos < end) {
|
|
117
|
+
const tag = reader.uint32();
|
|
118
|
+
switch (tag >>> 3) {
|
|
119
|
+
case 1:
|
|
120
|
+
message.authority = reader.string();
|
|
121
|
+
break;
|
|
122
|
+
case 2:
|
|
123
|
+
message.constantFee = Coin.decode(reader, reader.uint32());
|
|
124
|
+
break;
|
|
125
|
+
default:
|
|
126
|
+
reader.skipType(tag & 7);
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return message;
|
|
131
|
+
},
|
|
132
|
+
fromJSON(object) {
|
|
133
|
+
return {
|
|
134
|
+
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
135
|
+
constantFee: isSet(object.constantFee) ? Coin.fromJSON(object.constantFee) : undefined,
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
toJSON(message) {
|
|
139
|
+
const obj = {};
|
|
140
|
+
message.authority !== undefined && (obj.authority = message.authority);
|
|
141
|
+
message.constantFee !== undefined
|
|
142
|
+
&& (obj.constantFee = message.constantFee ? Coin.toJSON(message.constantFee) : undefined);
|
|
143
|
+
return obj;
|
|
144
|
+
},
|
|
145
|
+
fromPartial(object) {
|
|
146
|
+
const message = createBaseMsgUpdateParams();
|
|
147
|
+
message.authority = object.authority ?? "";
|
|
148
|
+
message.constantFee = (object.constantFee !== undefined && object.constantFee !== null)
|
|
149
|
+
? Coin.fromPartial(object.constantFee)
|
|
150
|
+
: undefined;
|
|
151
|
+
return message;
|
|
152
|
+
},
|
|
153
|
+
};
|
|
154
|
+
function createBaseMsgUpdateParamsResponse() {
|
|
155
|
+
return {};
|
|
156
|
+
}
|
|
157
|
+
export const MsgUpdateParamsResponse = {
|
|
158
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
159
|
+
return writer;
|
|
160
|
+
},
|
|
161
|
+
decode(input, length) {
|
|
162
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
163
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
164
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
165
|
+
while (reader.pos < end) {
|
|
166
|
+
const tag = reader.uint32();
|
|
167
|
+
switch (tag >>> 3) {
|
|
168
|
+
default:
|
|
169
|
+
reader.skipType(tag & 7);
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return message;
|
|
174
|
+
},
|
|
175
|
+
fromJSON(_) {
|
|
176
|
+
return {};
|
|
177
|
+
},
|
|
178
|
+
toJSON(_) {
|
|
179
|
+
const obj = {};
|
|
180
|
+
return obj;
|
|
181
|
+
},
|
|
182
|
+
fromPartial(_) {
|
|
183
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
184
|
+
return message;
|
|
185
|
+
},
|
|
186
|
+
};
|
|
98
187
|
export class MsgClientImpl {
|
|
99
188
|
constructor(rpc) {
|
|
100
189
|
this.rpc = rpc;
|
|
101
190
|
this.VerifyInvariant = this.VerifyInvariant.bind(this);
|
|
191
|
+
this.UpdateParams = this.UpdateParams.bind(this);
|
|
102
192
|
}
|
|
103
193
|
VerifyInvariant(request) {
|
|
104
194
|
const data = MsgVerifyInvariant.encode(request).finish();
|
|
105
195
|
const promise = this.rpc.request("cosmos.crisis.v1beta1.Msg", "VerifyInvariant", data);
|
|
106
196
|
return promise.then((data) => MsgVerifyInvariantResponse.decode(new _m0.Reader(data)));
|
|
107
197
|
}
|
|
198
|
+
UpdateParams(request) {
|
|
199
|
+
const data = MsgUpdateParams.encode(request).finish();
|
|
200
|
+
const promise = this.rpc.request("cosmos.crisis.v1beta1.Msg", "UpdateParams", data);
|
|
201
|
+
return promise.then((data) => MsgUpdateParamsResponse.decode(new _m0.Reader(data)));
|
|
202
|
+
}
|
|
108
203
|
}
|
|
109
204
|
function isSet(value) {
|
|
110
205
|
return value !== null && value !== undefined;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
3
4
|
|
|
4
5
|
export const protobufPackage = "cosmos.crisis.v1beta1";
|
|
5
6
|
|
|
6
7
|
/** MsgVerifyInvariant represents a message to verify a particular invariance. */
|
|
7
8
|
export interface MsgVerifyInvariant {
|
|
9
|
+
/** sender is the account address of private key to send coins to fee collector account. */
|
|
8
10
|
sender: string;
|
|
11
|
+
/** name of the invariant module. */
|
|
9
12
|
invariantModuleName: string;
|
|
13
|
+
/** invariant_route is the msg's invariant route. */
|
|
10
14
|
invariantRoute: string;
|
|
11
15
|
}
|
|
12
16
|
|
|
@@ -14,6 +18,27 @@ export interface MsgVerifyInvariant {
|
|
|
14
18
|
export interface MsgVerifyInvariantResponse {
|
|
15
19
|
}
|
|
16
20
|
|
|
21
|
+
/**
|
|
22
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
23
|
+
*
|
|
24
|
+
* Since: cosmos-sdk 0.47
|
|
25
|
+
*/
|
|
26
|
+
export interface MsgUpdateParams {
|
|
27
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
28
|
+
authority: string;
|
|
29
|
+
/** constant_fee defines the x/crisis parameter. */
|
|
30
|
+
constantFee: Coin | undefined;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
35
|
+
* MsgUpdateParams message.
|
|
36
|
+
*
|
|
37
|
+
* Since: cosmos-sdk 0.47
|
|
38
|
+
*/
|
|
39
|
+
export interface MsgUpdateParamsResponse {
|
|
40
|
+
}
|
|
41
|
+
|
|
17
42
|
function createBaseMsgVerifyInvariant(): MsgVerifyInvariant {
|
|
18
43
|
return { sender: "", invariantModuleName: "", invariantRoute: "" };
|
|
19
44
|
}
|
|
@@ -120,10 +145,117 @@ export const MsgVerifyInvariantResponse = {
|
|
|
120
145
|
},
|
|
121
146
|
};
|
|
122
147
|
|
|
148
|
+
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
149
|
+
return { authority: "", constantFee: undefined };
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export const MsgUpdateParams = {
|
|
153
|
+
encode(message: MsgUpdateParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
154
|
+
if (message.authority !== "") {
|
|
155
|
+
writer.uint32(10).string(message.authority);
|
|
156
|
+
}
|
|
157
|
+
if (message.constantFee !== undefined) {
|
|
158
|
+
Coin.encode(message.constantFee, writer.uint32(18).fork()).ldelim();
|
|
159
|
+
}
|
|
160
|
+
return writer;
|
|
161
|
+
},
|
|
162
|
+
|
|
163
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams {
|
|
164
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
165
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
166
|
+
const message = createBaseMsgUpdateParams();
|
|
167
|
+
while (reader.pos < end) {
|
|
168
|
+
const tag = reader.uint32();
|
|
169
|
+
switch (tag >>> 3) {
|
|
170
|
+
case 1:
|
|
171
|
+
message.authority = reader.string();
|
|
172
|
+
break;
|
|
173
|
+
case 2:
|
|
174
|
+
message.constantFee = Coin.decode(reader, reader.uint32());
|
|
175
|
+
break;
|
|
176
|
+
default:
|
|
177
|
+
reader.skipType(tag & 7);
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return message;
|
|
182
|
+
},
|
|
183
|
+
|
|
184
|
+
fromJSON(object: any): MsgUpdateParams {
|
|
185
|
+
return {
|
|
186
|
+
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
187
|
+
constantFee: isSet(object.constantFee) ? Coin.fromJSON(object.constantFee) : undefined,
|
|
188
|
+
};
|
|
189
|
+
},
|
|
190
|
+
|
|
191
|
+
toJSON(message: MsgUpdateParams): unknown {
|
|
192
|
+
const obj: any = {};
|
|
193
|
+
message.authority !== undefined && (obj.authority = message.authority);
|
|
194
|
+
message.constantFee !== undefined
|
|
195
|
+
&& (obj.constantFee = message.constantFee ? Coin.toJSON(message.constantFee) : undefined);
|
|
196
|
+
return obj;
|
|
197
|
+
},
|
|
198
|
+
|
|
199
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams {
|
|
200
|
+
const message = createBaseMsgUpdateParams();
|
|
201
|
+
message.authority = object.authority ?? "";
|
|
202
|
+
message.constantFee = (object.constantFee !== undefined && object.constantFee !== null)
|
|
203
|
+
? Coin.fromPartial(object.constantFee)
|
|
204
|
+
: undefined;
|
|
205
|
+
return message;
|
|
206
|
+
},
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
210
|
+
return {};
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export const MsgUpdateParamsResponse = {
|
|
214
|
+
encode(_: MsgUpdateParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
215
|
+
return writer;
|
|
216
|
+
},
|
|
217
|
+
|
|
218
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
219
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
220
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
221
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
222
|
+
while (reader.pos < end) {
|
|
223
|
+
const tag = reader.uint32();
|
|
224
|
+
switch (tag >>> 3) {
|
|
225
|
+
default:
|
|
226
|
+
reader.skipType(tag & 7);
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
return message;
|
|
231
|
+
},
|
|
232
|
+
|
|
233
|
+
fromJSON(_: any): MsgUpdateParamsResponse {
|
|
234
|
+
return {};
|
|
235
|
+
},
|
|
236
|
+
|
|
237
|
+
toJSON(_: MsgUpdateParamsResponse): unknown {
|
|
238
|
+
const obj: any = {};
|
|
239
|
+
return obj;
|
|
240
|
+
},
|
|
241
|
+
|
|
242
|
+
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse {
|
|
243
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
244
|
+
return message;
|
|
245
|
+
},
|
|
246
|
+
};
|
|
247
|
+
|
|
123
248
|
/** Msg defines the bank Msg service. */
|
|
124
249
|
export interface Msg {
|
|
125
|
-
/** VerifyInvariant defines a method to verify a particular
|
|
250
|
+
/** VerifyInvariant defines a method to verify a particular invariant. */
|
|
126
251
|
VerifyInvariant(request: MsgVerifyInvariant): Promise<MsgVerifyInvariantResponse>;
|
|
252
|
+
/**
|
|
253
|
+
* UpdateParams defines a governance operation for updating the x/crisis module
|
|
254
|
+
* parameters. The authority is defined in the keeper.
|
|
255
|
+
*
|
|
256
|
+
* Since: cosmos-sdk 0.47
|
|
257
|
+
*/
|
|
258
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
127
259
|
}
|
|
128
260
|
|
|
129
261
|
export class MsgClientImpl implements Msg {
|
|
@@ -131,12 +263,19 @@ export class MsgClientImpl implements Msg {
|
|
|
131
263
|
constructor(rpc: Rpc) {
|
|
132
264
|
this.rpc = rpc;
|
|
133
265
|
this.VerifyInvariant = this.VerifyInvariant.bind(this);
|
|
266
|
+
this.UpdateParams = this.UpdateParams.bind(this);
|
|
134
267
|
}
|
|
135
268
|
VerifyInvariant(request: MsgVerifyInvariant): Promise<MsgVerifyInvariantResponse> {
|
|
136
269
|
const data = MsgVerifyInvariant.encode(request).finish();
|
|
137
270
|
const promise = this.rpc.request("cosmos.crisis.v1beta1.Msg", "VerifyInvariant", data);
|
|
138
271
|
return promise.then((data) => MsgVerifyInvariantResponse.decode(new _m0.Reader(data)));
|
|
139
272
|
}
|
|
273
|
+
|
|
274
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse> {
|
|
275
|
+
const data = MsgUpdateParams.encode(request).finish();
|
|
276
|
+
const promise = this.rpc.request("cosmos.crisis.v1beta1.Msg", "UpdateParams", data);
|
|
277
|
+
return promise.then((data) => MsgUpdateParamsResponse.decode(new _m0.Reader(data)));
|
|
278
|
+
}
|
|
140
279
|
}
|
|
141
280
|
|
|
142
281
|
interface Rpc {
|
|
@@ -3,10 +3,12 @@ import { SigningStargateClient } from "@cosmjs/stargate";
|
|
|
3
3
|
import { Registry } from "@cosmjs/proto-signing";
|
|
4
4
|
import { msgTypes } from './registry';
|
|
5
5
|
import { Api } from "./rest";
|
|
6
|
-
import {
|
|
6
|
+
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
7
7
|
import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
|
|
8
|
+
import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx";
|
|
9
|
+
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
8
10
|
import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
|
|
9
|
-
import {
|
|
11
|
+
import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx";
|
|
10
12
|
import { Params as typeParams } from "./types";
|
|
11
13
|
import { ValidatorHistoricalRewards as typeValidatorHistoricalRewards } from "./types";
|
|
12
14
|
import { ValidatorCurrentRewards as typeValidatorCurrentRewards } from "./types";
|
|
@@ -26,7 +28,7 @@ import { ValidatorHistoricalRewardsRecord as typeValidatorHistoricalRewardsRecor
|
|
|
26
28
|
import { ValidatorCurrentRewardsRecord as typeValidatorCurrentRewardsRecord } from "./types";
|
|
27
29
|
import { DelegatorStartingInfoRecord as typeDelegatorStartingInfoRecord } from "./types";
|
|
28
30
|
import { ValidatorSlashEventRecord as typeValidatorSlashEventRecord } from "./types";
|
|
29
|
-
export {
|
|
31
|
+
export { MsgWithdrawValidatorCommission, MsgWithdrawDelegatorReward, MsgCommunityPoolSpend, MsgFundCommunityPool, MsgSetWithdrawAddress, MsgUpdateParams };
|
|
30
32
|
export const registry = new Registry(msgTypes);
|
|
31
33
|
function getStructure(template) {
|
|
32
34
|
const structure = { fields: [] };
|
|
@@ -42,18 +44,18 @@ const defaultFee = {
|
|
|
42
44
|
};
|
|
43
45
|
export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
|
|
44
46
|
return {
|
|
45
|
-
async
|
|
47
|
+
async sendMsgWithdrawValidatorCommission({ value, fee, memo }) {
|
|
46
48
|
if (!signer) {
|
|
47
|
-
throw new Error('TxClient:
|
|
49
|
+
throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Unable to sign Tx. Signer is not present.');
|
|
48
50
|
}
|
|
49
51
|
try {
|
|
50
52
|
const { address } = (await signer.getAccounts())[0];
|
|
51
53
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
52
|
-
let msg = this.
|
|
54
|
+
let msg = this.msgWithdrawValidatorCommission({ value: MsgWithdrawValidatorCommission.fromPartial(value) });
|
|
53
55
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
54
56
|
}
|
|
55
57
|
catch (e) {
|
|
56
|
-
throw new Error('TxClient:
|
|
58
|
+
throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Could not broadcast Tx: ' + e.message);
|
|
57
59
|
}
|
|
58
60
|
},
|
|
59
61
|
async sendMsgWithdrawDelegatorReward({ value, fee, memo }) {
|
|
@@ -70,6 +72,34 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
70
72
|
throw new Error('TxClient:sendMsgWithdrawDelegatorReward: Could not broadcast Tx: ' + e.message);
|
|
71
73
|
}
|
|
72
74
|
},
|
|
75
|
+
async sendMsgCommunityPoolSpend({ value, fee, memo }) {
|
|
76
|
+
if (!signer) {
|
|
77
|
+
throw new Error('TxClient:sendMsgCommunityPoolSpend: Unable to sign Tx. Signer is not present.');
|
|
78
|
+
}
|
|
79
|
+
try {
|
|
80
|
+
const { address } = (await signer.getAccounts())[0];
|
|
81
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
82
|
+
let msg = this.msgCommunityPoolSpend({ value: MsgCommunityPoolSpend.fromPartial(value) });
|
|
83
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
84
|
+
}
|
|
85
|
+
catch (e) {
|
|
86
|
+
throw new Error('TxClient:sendMsgCommunityPoolSpend: Could not broadcast Tx: ' + e.message);
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
async sendMsgFundCommunityPool({ value, fee, memo }) {
|
|
90
|
+
if (!signer) {
|
|
91
|
+
throw new Error('TxClient:sendMsgFundCommunityPool: Unable to sign Tx. Signer is not present.');
|
|
92
|
+
}
|
|
93
|
+
try {
|
|
94
|
+
const { address } = (await signer.getAccounts())[0];
|
|
95
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
96
|
+
let msg = this.msgFundCommunityPool({ value: MsgFundCommunityPool.fromPartial(value) });
|
|
97
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
98
|
+
}
|
|
99
|
+
catch (e) {
|
|
100
|
+
throw new Error('TxClient:sendMsgFundCommunityPool: Could not broadcast Tx: ' + e.message);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
73
103
|
async sendMsgSetWithdrawAddress({ value, fee, memo }) {
|
|
74
104
|
if (!signer) {
|
|
75
105
|
throw new Error('TxClient:sendMsgSetWithdrawAddress: Unable to sign Tx. Signer is not present.');
|
|
@@ -84,26 +114,26 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
84
114
|
throw new Error('TxClient:sendMsgSetWithdrawAddress: Could not broadcast Tx: ' + e.message);
|
|
85
115
|
}
|
|
86
116
|
},
|
|
87
|
-
async
|
|
117
|
+
async sendMsgUpdateParams({ value, fee, memo }) {
|
|
88
118
|
if (!signer) {
|
|
89
|
-
throw new Error('TxClient:
|
|
119
|
+
throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.');
|
|
90
120
|
}
|
|
91
121
|
try {
|
|
92
122
|
const { address } = (await signer.getAccounts())[0];
|
|
93
123
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
94
|
-
let msg = this.
|
|
124
|
+
let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) });
|
|
95
125
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
96
126
|
}
|
|
97
127
|
catch (e) {
|
|
98
|
-
throw new Error('TxClient:
|
|
128
|
+
throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message);
|
|
99
129
|
}
|
|
100
130
|
},
|
|
101
|
-
|
|
131
|
+
msgWithdrawValidatorCommission({ value }) {
|
|
102
132
|
try {
|
|
103
|
-
return { typeUrl: "/cosmos.distribution.v1beta1.
|
|
133
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: MsgWithdrawValidatorCommission.fromPartial(value) };
|
|
104
134
|
}
|
|
105
135
|
catch (e) {
|
|
106
|
-
throw new Error('TxClient:
|
|
136
|
+
throw new Error('TxClient:MsgWithdrawValidatorCommission: Could not create message: ' + e.message);
|
|
107
137
|
}
|
|
108
138
|
},
|
|
109
139
|
msgWithdrawDelegatorReward({ value }) {
|
|
@@ -114,6 +144,22 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
114
144
|
throw new Error('TxClient:MsgWithdrawDelegatorReward: Could not create message: ' + e.message);
|
|
115
145
|
}
|
|
116
146
|
},
|
|
147
|
+
msgCommunityPoolSpend({ value }) {
|
|
148
|
+
try {
|
|
149
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", value: MsgCommunityPoolSpend.fromPartial(value) };
|
|
150
|
+
}
|
|
151
|
+
catch (e) {
|
|
152
|
+
throw new Error('TxClient:MsgCommunityPoolSpend: Could not create message: ' + e.message);
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
msgFundCommunityPool({ value }) {
|
|
156
|
+
try {
|
|
157
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: MsgFundCommunityPool.fromPartial(value) };
|
|
158
|
+
}
|
|
159
|
+
catch (e) {
|
|
160
|
+
throw new Error('TxClient:MsgFundCommunityPool: Could not create message: ' + e.message);
|
|
161
|
+
}
|
|
162
|
+
},
|
|
117
163
|
msgSetWithdrawAddress({ value }) {
|
|
118
164
|
try {
|
|
119
165
|
return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: MsgSetWithdrawAddress.fromPartial(value) };
|
|
@@ -122,12 +168,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
122
168
|
throw new Error('TxClient:MsgSetWithdrawAddress: Could not create message: ' + e.message);
|
|
123
169
|
}
|
|
124
170
|
},
|
|
125
|
-
|
|
171
|
+
msgUpdateParams({ value }) {
|
|
126
172
|
try {
|
|
127
|
-
return { typeUrl: "/cosmos.distribution.v1beta1.
|
|
173
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) };
|
|
128
174
|
}
|
|
129
175
|
catch (e) {
|
|
130
|
-
throw new Error('TxClient:
|
|
176
|
+
throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message);
|
|
131
177
|
}
|
|
132
178
|
},
|
|
133
179
|
};
|
|
@@ -7,10 +7,12 @@ import { msgTypes } from './registry';
|
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
-
import {
|
|
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";
|
|
12
14
|
import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
|
|
13
|
-
import {
|
|
15
|
+
import { MsgUpdateParams } 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,10 +34,10 @@ 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 {
|
|
37
|
+
export { MsgWithdrawValidatorCommission, MsgWithdrawDelegatorReward, MsgCommunityPoolSpend, MsgFundCommunityPool, MsgSetWithdrawAddress, MsgUpdateParams };
|
|
36
38
|
|
|
37
|
-
type
|
|
38
|
-
value:
|
|
39
|
+
type sendMsgWithdrawValidatorCommissionParams = {
|
|
40
|
+
value: MsgWithdrawValidatorCommission,
|
|
39
41
|
fee?: StdFee,
|
|
40
42
|
memo?: string
|
|
41
43
|
};
|
|
@@ -46,33 +48,53 @@ type sendMsgWithdrawDelegatorRewardParams = {
|
|
|
46
48
|
memo?: string
|
|
47
49
|
};
|
|
48
50
|
|
|
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
|
+
|
|
49
63
|
type sendMsgSetWithdrawAddressParams = {
|
|
50
64
|
value: MsgSetWithdrawAddress,
|
|
51
65
|
fee?: StdFee,
|
|
52
66
|
memo?: string
|
|
53
67
|
};
|
|
54
68
|
|
|
55
|
-
type
|
|
56
|
-
value:
|
|
69
|
+
type sendMsgUpdateParamsParams = {
|
|
70
|
+
value: MsgUpdateParams,
|
|
57
71
|
fee?: StdFee,
|
|
58
72
|
memo?: string
|
|
59
73
|
};
|
|
60
74
|
|
|
61
75
|
|
|
62
|
-
type
|
|
63
|
-
value:
|
|
76
|
+
type msgWithdrawValidatorCommissionParams = {
|
|
77
|
+
value: MsgWithdrawValidatorCommission,
|
|
64
78
|
};
|
|
65
79
|
|
|
66
80
|
type msgWithdrawDelegatorRewardParams = {
|
|
67
81
|
value: MsgWithdrawDelegatorReward,
|
|
68
82
|
};
|
|
69
83
|
|
|
84
|
+
type msgCommunityPoolSpendParams = {
|
|
85
|
+
value: MsgCommunityPoolSpend,
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
type msgFundCommunityPoolParams = {
|
|
89
|
+
value: MsgFundCommunityPool,
|
|
90
|
+
};
|
|
91
|
+
|
|
70
92
|
type msgSetWithdrawAddressParams = {
|
|
71
93
|
value: MsgSetWithdrawAddress,
|
|
72
94
|
};
|
|
73
95
|
|
|
74
|
-
type
|
|
75
|
-
value:
|
|
96
|
+
type msgUpdateParamsParams = {
|
|
97
|
+
value: MsgUpdateParams,
|
|
76
98
|
};
|
|
77
99
|
|
|
78
100
|
|
|
@@ -105,17 +127,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
105
127
|
|
|
106
128
|
return {
|
|
107
129
|
|
|
108
|
-
async
|
|
130
|
+
async sendMsgWithdrawValidatorCommission({ value, fee, memo }: sendMsgWithdrawValidatorCommissionParams): Promise<DeliverTxResponse> {
|
|
109
131
|
if (!signer) {
|
|
110
|
-
throw new Error('TxClient:
|
|
132
|
+
throw new Error('TxClient:sendMsgWithdrawValidatorCommission: 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.msgWithdrawValidatorCommission({ value: MsgWithdrawValidatorCommission.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:sendMsgWithdrawValidatorCommission: Could not broadcast Tx: '+ e.message)
|
|
119
141
|
}
|
|
120
142
|
},
|
|
121
143
|
|
|
@@ -133,6 +155,34 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
133
155
|
}
|
|
134
156
|
},
|
|
135
157
|
|
|
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
|
+
|
|
136
186
|
async sendMsgSetWithdrawAddress({ value, fee, memo }: sendMsgSetWithdrawAddressParams): Promise<DeliverTxResponse> {
|
|
137
187
|
if (!signer) {
|
|
138
188
|
throw new Error('TxClient:sendMsgSetWithdrawAddress: Unable to sign Tx. Signer is not present.')
|
|
@@ -147,26 +197,26 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
147
197
|
}
|
|
148
198
|
},
|
|
149
199
|
|
|
150
|
-
async
|
|
200
|
+
async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse> {
|
|
151
201
|
if (!signer) {
|
|
152
|
-
throw new Error('TxClient:
|
|
202
|
+
throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.')
|
|
153
203
|
}
|
|
154
204
|
try {
|
|
155
205
|
const { address } = (await signer.getAccounts())[0];
|
|
156
206
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
157
|
-
let msg = this.
|
|
207
|
+
let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) })
|
|
158
208
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
159
209
|
} catch (e: any) {
|
|
160
|
-
throw new Error('TxClient:
|
|
210
|
+
throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message)
|
|
161
211
|
}
|
|
162
212
|
},
|
|
163
213
|
|
|
164
214
|
|
|
165
|
-
|
|
215
|
+
msgWithdrawValidatorCommission({ value }: msgWithdrawValidatorCommissionParams): EncodeObject {
|
|
166
216
|
try {
|
|
167
|
-
return { typeUrl: "/cosmos.distribution.v1beta1.
|
|
217
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: MsgWithdrawValidatorCommission.fromPartial( value ) }
|
|
168
218
|
} catch (e: any) {
|
|
169
|
-
throw new Error('TxClient:
|
|
219
|
+
throw new Error('TxClient:MsgWithdrawValidatorCommission: Could not create message: ' + e.message)
|
|
170
220
|
}
|
|
171
221
|
},
|
|
172
222
|
|
|
@@ -178,6 +228,22 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
178
228
|
}
|
|
179
229
|
},
|
|
180
230
|
|
|
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
|
+
|
|
181
247
|
msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject {
|
|
182
248
|
try {
|
|
183
249
|
return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: MsgSetWithdrawAddress.fromPartial( value ) }
|
|
@@ -186,11 +252,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
186
252
|
}
|
|
187
253
|
},
|
|
188
254
|
|
|
189
|
-
|
|
255
|
+
msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject {
|
|
190
256
|
try {
|
|
191
|
-
return { typeUrl: "/cosmos.distribution.v1beta1.
|
|
257
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) }
|
|
192
258
|
} catch (e: any) {
|
|
193
|
-
throw new Error('TxClient:
|
|
259
|
+
throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message)
|
|
194
260
|
}
|
|
195
261
|
},
|
|
196
262
|
|