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
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
|
|
4
|
+
|
|
5
|
+
export const protobufPackage = "ibc.applications.transfer.v1";
|
|
6
|
+
|
|
7
|
+
/** Allocation defines the spend limit for a particular port and channel */
|
|
8
|
+
export interface Allocation {
|
|
9
|
+
/** the port on which the packet will be sent */
|
|
10
|
+
sourcePort: string;
|
|
11
|
+
/** the channel by which the packet will be sent */
|
|
12
|
+
sourceChannel: string;
|
|
13
|
+
/** spend limitation on the channel */
|
|
14
|
+
spendLimit: Coin[];
|
|
15
|
+
/** allow list of receivers, an empty allow list permits any receiver address */
|
|
16
|
+
allowList: string[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* TransferAuthorization allows the grantee to spend up to spend_limit coins from
|
|
21
|
+
* the granter's account for ibc transfer on a specific channel
|
|
22
|
+
*/
|
|
23
|
+
export interface TransferAuthorization {
|
|
24
|
+
/** port and channel amounts */
|
|
25
|
+
allocations: Allocation[];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function createBaseAllocation(): Allocation {
|
|
29
|
+
return { sourcePort: "", sourceChannel: "", spendLimit: [], allowList: [] };
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const Allocation = {
|
|
33
|
+
encode(message: Allocation, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
34
|
+
if (message.sourcePort !== "") {
|
|
35
|
+
writer.uint32(10).string(message.sourcePort);
|
|
36
|
+
}
|
|
37
|
+
if (message.sourceChannel !== "") {
|
|
38
|
+
writer.uint32(18).string(message.sourceChannel);
|
|
39
|
+
}
|
|
40
|
+
for (const v of message.spendLimit) {
|
|
41
|
+
Coin.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
42
|
+
}
|
|
43
|
+
for (const v of message.allowList) {
|
|
44
|
+
writer.uint32(34).string(v!);
|
|
45
|
+
}
|
|
46
|
+
return writer;
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Allocation {
|
|
50
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
51
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
52
|
+
const message = createBaseAllocation();
|
|
53
|
+
while (reader.pos < end) {
|
|
54
|
+
const tag = reader.uint32();
|
|
55
|
+
switch (tag >>> 3) {
|
|
56
|
+
case 1:
|
|
57
|
+
message.sourcePort = reader.string();
|
|
58
|
+
break;
|
|
59
|
+
case 2:
|
|
60
|
+
message.sourceChannel = reader.string();
|
|
61
|
+
break;
|
|
62
|
+
case 3:
|
|
63
|
+
message.spendLimit.push(Coin.decode(reader, reader.uint32()));
|
|
64
|
+
break;
|
|
65
|
+
case 4:
|
|
66
|
+
message.allowList.push(reader.string());
|
|
67
|
+
break;
|
|
68
|
+
default:
|
|
69
|
+
reader.skipType(tag & 7);
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return message;
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
fromJSON(object: any): Allocation {
|
|
77
|
+
return {
|
|
78
|
+
sourcePort: isSet(object.sourcePort) ? String(object.sourcePort) : "",
|
|
79
|
+
sourceChannel: isSet(object.sourceChannel) ? String(object.sourceChannel) : "",
|
|
80
|
+
spendLimit: Array.isArray(object?.spendLimit) ? object.spendLimit.map((e: any) => Coin.fromJSON(e)) : [],
|
|
81
|
+
allowList: Array.isArray(object?.allowList) ? object.allowList.map((e: any) => String(e)) : [],
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
toJSON(message: Allocation): unknown {
|
|
86
|
+
const obj: any = {};
|
|
87
|
+
message.sourcePort !== undefined && (obj.sourcePort = message.sourcePort);
|
|
88
|
+
message.sourceChannel !== undefined && (obj.sourceChannel = message.sourceChannel);
|
|
89
|
+
if (message.spendLimit) {
|
|
90
|
+
obj.spendLimit = message.spendLimit.map((e) => e ? Coin.toJSON(e) : undefined);
|
|
91
|
+
} else {
|
|
92
|
+
obj.spendLimit = [];
|
|
93
|
+
}
|
|
94
|
+
if (message.allowList) {
|
|
95
|
+
obj.allowList = message.allowList.map((e) => e);
|
|
96
|
+
} else {
|
|
97
|
+
obj.allowList = [];
|
|
98
|
+
}
|
|
99
|
+
return obj;
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
fromPartial<I extends Exact<DeepPartial<Allocation>, I>>(object: I): Allocation {
|
|
103
|
+
const message = createBaseAllocation();
|
|
104
|
+
message.sourcePort = object.sourcePort ?? "";
|
|
105
|
+
message.sourceChannel = object.sourceChannel ?? "";
|
|
106
|
+
message.spendLimit = object.spendLimit?.map((e) => Coin.fromPartial(e)) || [];
|
|
107
|
+
message.allowList = object.allowList?.map((e) => e) || [];
|
|
108
|
+
return message;
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
function createBaseTransferAuthorization(): TransferAuthorization {
|
|
113
|
+
return { allocations: [] };
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export const TransferAuthorization = {
|
|
117
|
+
encode(message: TransferAuthorization, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
118
|
+
for (const v of message.allocations) {
|
|
119
|
+
Allocation.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
120
|
+
}
|
|
121
|
+
return writer;
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TransferAuthorization {
|
|
125
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
126
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
127
|
+
const message = createBaseTransferAuthorization();
|
|
128
|
+
while (reader.pos < end) {
|
|
129
|
+
const tag = reader.uint32();
|
|
130
|
+
switch (tag >>> 3) {
|
|
131
|
+
case 1:
|
|
132
|
+
message.allocations.push(Allocation.decode(reader, reader.uint32()));
|
|
133
|
+
break;
|
|
134
|
+
default:
|
|
135
|
+
reader.skipType(tag & 7);
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return message;
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
fromJSON(object: any): TransferAuthorization {
|
|
143
|
+
return {
|
|
144
|
+
allocations: Array.isArray(object?.allocations) ? object.allocations.map((e: any) => Allocation.fromJSON(e)) : [],
|
|
145
|
+
};
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
toJSON(message: TransferAuthorization): unknown {
|
|
149
|
+
const obj: any = {};
|
|
150
|
+
if (message.allocations) {
|
|
151
|
+
obj.allocations = message.allocations.map((e) => e ? Allocation.toJSON(e) : undefined);
|
|
152
|
+
} else {
|
|
153
|
+
obj.allocations = [];
|
|
154
|
+
}
|
|
155
|
+
return obj;
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
fromPartial<I extends Exact<DeepPartial<TransferAuthorization>, I>>(object: I): TransferAuthorization {
|
|
159
|
+
const message = createBaseTransferAuthorization();
|
|
160
|
+
message.allocations = object.allocations?.map((e) => Allocation.fromPartial(e)) || [];
|
|
161
|
+
return message;
|
|
162
|
+
},
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
166
|
+
|
|
167
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
168
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
169
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
170
|
+
: Partial<T>;
|
|
171
|
+
|
|
172
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
173
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
174
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
175
|
+
|
|
176
|
+
function isSet(value: any): boolean {
|
|
177
|
+
return value !== null && value !== undefined;
|
|
178
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
|
|
3
4
|
import { DenomTrace, Params } from "./transfer";
|
|
4
5
|
export const protobufPackage = "ibc.applications.transfer.v1";
|
|
5
6
|
function createBaseGenesisState() {
|
|
6
|
-
return { portId: "", denomTraces: [], params: undefined };
|
|
7
|
+
return { portId: "", denomTraces: [], params: undefined, totalEscrowed: [] };
|
|
7
8
|
}
|
|
8
9
|
export const GenesisState = {
|
|
9
10
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -16,6 +17,9 @@ export const GenesisState = {
|
|
|
16
17
|
if (message.params !== undefined) {
|
|
17
18
|
Params.encode(message.params, writer.uint32(26).fork()).ldelim();
|
|
18
19
|
}
|
|
20
|
+
for (const v of message.totalEscrowed) {
|
|
21
|
+
Coin.encode(v, writer.uint32(34).fork()).ldelim();
|
|
22
|
+
}
|
|
19
23
|
return writer;
|
|
20
24
|
},
|
|
21
25
|
decode(input, length) {
|
|
@@ -34,6 +38,9 @@ export const GenesisState = {
|
|
|
34
38
|
case 3:
|
|
35
39
|
message.params = Params.decode(reader, reader.uint32());
|
|
36
40
|
break;
|
|
41
|
+
case 4:
|
|
42
|
+
message.totalEscrowed.push(Coin.decode(reader, reader.uint32()));
|
|
43
|
+
break;
|
|
37
44
|
default:
|
|
38
45
|
reader.skipType(tag & 7);
|
|
39
46
|
break;
|
|
@@ -46,6 +53,7 @@ export const GenesisState = {
|
|
|
46
53
|
portId: isSet(object.portId) ? String(object.portId) : "",
|
|
47
54
|
denomTraces: Array.isArray(object?.denomTraces) ? object.denomTraces.map((e) => DenomTrace.fromJSON(e)) : [],
|
|
48
55
|
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
56
|
+
totalEscrowed: Array.isArray(object?.totalEscrowed) ? object.totalEscrowed.map((e) => Coin.fromJSON(e)) : [],
|
|
49
57
|
};
|
|
50
58
|
},
|
|
51
59
|
toJSON(message) {
|
|
@@ -58,6 +66,12 @@ export const GenesisState = {
|
|
|
58
66
|
obj.denomTraces = [];
|
|
59
67
|
}
|
|
60
68
|
message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
69
|
+
if (message.totalEscrowed) {
|
|
70
|
+
obj.totalEscrowed = message.totalEscrowed.map((e) => e ? Coin.toJSON(e) : undefined);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
obj.totalEscrowed = [];
|
|
74
|
+
}
|
|
61
75
|
return obj;
|
|
62
76
|
},
|
|
63
77
|
fromPartial(object) {
|
|
@@ -67,6 +81,7 @@ export const GenesisState = {
|
|
|
67
81
|
message.params = (object.params !== undefined && object.params !== null)
|
|
68
82
|
? Params.fromPartial(object.params)
|
|
69
83
|
: undefined;
|
|
84
|
+
message.totalEscrowed = object.totalEscrowed?.map((e) => Coin.fromPartial(e)) || [];
|
|
70
85
|
return message;
|
|
71
86
|
},
|
|
72
87
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
|
|
3
4
|
import { DenomTrace, Params } from "./transfer";
|
|
4
5
|
|
|
5
6
|
export const protobufPackage = "ibc.applications.transfer.v1";
|
|
@@ -8,11 +9,18 @@ export const protobufPackage = "ibc.applications.transfer.v1";
|
|
|
8
9
|
export interface GenesisState {
|
|
9
10
|
portId: string;
|
|
10
11
|
denomTraces: DenomTrace[];
|
|
11
|
-
params:
|
|
12
|
+
params:
|
|
13
|
+
| Params
|
|
14
|
+
| undefined;
|
|
15
|
+
/**
|
|
16
|
+
* total_escrowed contains the total amount of tokens escrowed
|
|
17
|
+
* by the transfer module
|
|
18
|
+
*/
|
|
19
|
+
totalEscrowed: Coin[];
|
|
12
20
|
}
|
|
13
21
|
|
|
14
22
|
function createBaseGenesisState(): GenesisState {
|
|
15
|
-
return { portId: "", denomTraces: [], params: undefined };
|
|
23
|
+
return { portId: "", denomTraces: [], params: undefined, totalEscrowed: [] };
|
|
16
24
|
}
|
|
17
25
|
|
|
18
26
|
export const GenesisState = {
|
|
@@ -26,6 +34,9 @@ export const GenesisState = {
|
|
|
26
34
|
if (message.params !== undefined) {
|
|
27
35
|
Params.encode(message.params, writer.uint32(26).fork()).ldelim();
|
|
28
36
|
}
|
|
37
|
+
for (const v of message.totalEscrowed) {
|
|
38
|
+
Coin.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
39
|
+
}
|
|
29
40
|
return writer;
|
|
30
41
|
},
|
|
31
42
|
|
|
@@ -45,6 +56,9 @@ export const GenesisState = {
|
|
|
45
56
|
case 3:
|
|
46
57
|
message.params = Params.decode(reader, reader.uint32());
|
|
47
58
|
break;
|
|
59
|
+
case 4:
|
|
60
|
+
message.totalEscrowed.push(Coin.decode(reader, reader.uint32()));
|
|
61
|
+
break;
|
|
48
62
|
default:
|
|
49
63
|
reader.skipType(tag & 7);
|
|
50
64
|
break;
|
|
@@ -58,6 +72,7 @@ export const GenesisState = {
|
|
|
58
72
|
portId: isSet(object.portId) ? String(object.portId) : "",
|
|
59
73
|
denomTraces: Array.isArray(object?.denomTraces) ? object.denomTraces.map((e: any) => DenomTrace.fromJSON(e)) : [],
|
|
60
74
|
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
75
|
+
totalEscrowed: Array.isArray(object?.totalEscrowed) ? object.totalEscrowed.map((e: any) => Coin.fromJSON(e)) : [],
|
|
61
76
|
};
|
|
62
77
|
},
|
|
63
78
|
|
|
@@ -70,6 +85,11 @@ export const GenesisState = {
|
|
|
70
85
|
obj.denomTraces = [];
|
|
71
86
|
}
|
|
72
87
|
message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
88
|
+
if (message.totalEscrowed) {
|
|
89
|
+
obj.totalEscrowed = message.totalEscrowed.map((e) => e ? Coin.toJSON(e) : undefined);
|
|
90
|
+
} else {
|
|
91
|
+
obj.totalEscrowed = [];
|
|
92
|
+
}
|
|
73
93
|
return obj;
|
|
74
94
|
},
|
|
75
95
|
|
|
@@ -80,6 +100,7 @@ export const GenesisState = {
|
|
|
80
100
|
message.params = (object.params !== undefined && object.params !== null)
|
|
81
101
|
? Params.fromPartial(object.params)
|
|
82
102
|
: undefined;
|
|
103
|
+
message.totalEscrowed = object.totalEscrowed?.map((e) => Coin.fromPartial(e)) || [];
|
|
83
104
|
return message;
|
|
84
105
|
},
|
|
85
106
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
|
|
4
|
+
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
|
|
4
5
|
import { DenomTrace, Params } from "./transfer";
|
|
5
6
|
export const protobufPackage = "ibc.applications.transfer.v1";
|
|
6
7
|
function createBaseQueryDenomTraceRequest() {
|
|
@@ -443,6 +444,90 @@ export const QueryEscrowAddressResponse = {
|
|
|
443
444
|
return message;
|
|
444
445
|
},
|
|
445
446
|
};
|
|
447
|
+
function createBaseQueryTotalEscrowForDenomRequest() {
|
|
448
|
+
return { denom: "" };
|
|
449
|
+
}
|
|
450
|
+
export const QueryTotalEscrowForDenomRequest = {
|
|
451
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
452
|
+
if (message.denom !== "") {
|
|
453
|
+
writer.uint32(10).string(message.denom);
|
|
454
|
+
}
|
|
455
|
+
return writer;
|
|
456
|
+
},
|
|
457
|
+
decode(input, length) {
|
|
458
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
459
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
460
|
+
const message = createBaseQueryTotalEscrowForDenomRequest();
|
|
461
|
+
while (reader.pos < end) {
|
|
462
|
+
const tag = reader.uint32();
|
|
463
|
+
switch (tag >>> 3) {
|
|
464
|
+
case 1:
|
|
465
|
+
message.denom = reader.string();
|
|
466
|
+
break;
|
|
467
|
+
default:
|
|
468
|
+
reader.skipType(tag & 7);
|
|
469
|
+
break;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
return message;
|
|
473
|
+
},
|
|
474
|
+
fromJSON(object) {
|
|
475
|
+
return { denom: isSet(object.denom) ? String(object.denom) : "" };
|
|
476
|
+
},
|
|
477
|
+
toJSON(message) {
|
|
478
|
+
const obj = {};
|
|
479
|
+
message.denom !== undefined && (obj.denom = message.denom);
|
|
480
|
+
return obj;
|
|
481
|
+
},
|
|
482
|
+
fromPartial(object) {
|
|
483
|
+
const message = createBaseQueryTotalEscrowForDenomRequest();
|
|
484
|
+
message.denom = object.denom ?? "";
|
|
485
|
+
return message;
|
|
486
|
+
},
|
|
487
|
+
};
|
|
488
|
+
function createBaseQueryTotalEscrowForDenomResponse() {
|
|
489
|
+
return { amount: undefined };
|
|
490
|
+
}
|
|
491
|
+
export const QueryTotalEscrowForDenomResponse = {
|
|
492
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
493
|
+
if (message.amount !== undefined) {
|
|
494
|
+
Coin.encode(message.amount, writer.uint32(10).fork()).ldelim();
|
|
495
|
+
}
|
|
496
|
+
return writer;
|
|
497
|
+
},
|
|
498
|
+
decode(input, length) {
|
|
499
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
500
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
501
|
+
const message = createBaseQueryTotalEscrowForDenomResponse();
|
|
502
|
+
while (reader.pos < end) {
|
|
503
|
+
const tag = reader.uint32();
|
|
504
|
+
switch (tag >>> 3) {
|
|
505
|
+
case 1:
|
|
506
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
507
|
+
break;
|
|
508
|
+
default:
|
|
509
|
+
reader.skipType(tag & 7);
|
|
510
|
+
break;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
return message;
|
|
514
|
+
},
|
|
515
|
+
fromJSON(object) {
|
|
516
|
+
return { amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined };
|
|
517
|
+
},
|
|
518
|
+
toJSON(message) {
|
|
519
|
+
const obj = {};
|
|
520
|
+
message.amount !== undefined && (obj.amount = message.amount ? Coin.toJSON(message.amount) : undefined);
|
|
521
|
+
return obj;
|
|
522
|
+
},
|
|
523
|
+
fromPartial(object) {
|
|
524
|
+
const message = createBaseQueryTotalEscrowForDenomResponse();
|
|
525
|
+
message.amount = (object.amount !== undefined && object.amount !== null)
|
|
526
|
+
? Coin.fromPartial(object.amount)
|
|
527
|
+
: undefined;
|
|
528
|
+
return message;
|
|
529
|
+
},
|
|
530
|
+
};
|
|
446
531
|
export class QueryClientImpl {
|
|
447
532
|
constructor(rpc) {
|
|
448
533
|
this.rpc = rpc;
|
|
@@ -451,6 +536,7 @@ export class QueryClientImpl {
|
|
|
451
536
|
this.Params = this.Params.bind(this);
|
|
452
537
|
this.DenomHash = this.DenomHash.bind(this);
|
|
453
538
|
this.EscrowAddress = this.EscrowAddress.bind(this);
|
|
539
|
+
this.TotalEscrowForDenom = this.TotalEscrowForDenom.bind(this);
|
|
454
540
|
}
|
|
455
541
|
DenomTrace(request) {
|
|
456
542
|
const data = QueryDenomTraceRequest.encode(request).finish();
|
|
@@ -477,6 +563,11 @@ export class QueryClientImpl {
|
|
|
477
563
|
const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "EscrowAddress", data);
|
|
478
564
|
return promise.then((data) => QueryEscrowAddressResponse.decode(new _m0.Reader(data)));
|
|
479
565
|
}
|
|
566
|
+
TotalEscrowForDenom(request) {
|
|
567
|
+
const data = QueryTotalEscrowForDenomRequest.encode(request).finish();
|
|
568
|
+
const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "TotalEscrowForDenom", data);
|
|
569
|
+
return promise.then((data) => QueryTotalEscrowForDenomResponse.decode(new _m0.Reader(data)));
|
|
570
|
+
}
|
|
480
571
|
}
|
|
481
572
|
function isSet(value) {
|
|
482
573
|
return value !== null && value !== undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
|
|
4
|
+
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
|
|
4
5
|
import { DenomTrace, Params } from "./transfer";
|
|
5
6
|
|
|
6
7
|
export const protobufPackage = "ibc.applications.transfer.v1";
|
|
@@ -85,6 +86,16 @@ export interface QueryEscrowAddressResponse {
|
|
|
85
86
|
escrowAddress: string;
|
|
86
87
|
}
|
|
87
88
|
|
|
89
|
+
/** QueryTotalEscrowForDenomRequest is the request type for TotalEscrowForDenom RPC method. */
|
|
90
|
+
export interface QueryTotalEscrowForDenomRequest {
|
|
91
|
+
denom: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** QueryTotalEscrowForDenomResponse is the response type for TotalEscrowForDenom RPC method. */
|
|
95
|
+
export interface QueryTotalEscrowForDenomResponse {
|
|
96
|
+
amount: Coin | undefined;
|
|
97
|
+
}
|
|
98
|
+
|
|
88
99
|
function createBaseQueryDenomTraceRequest(): QueryDenomTraceRequest {
|
|
89
100
|
return { hash: "" };
|
|
90
101
|
}
|
|
@@ -584,6 +595,106 @@ export const QueryEscrowAddressResponse = {
|
|
|
584
595
|
},
|
|
585
596
|
};
|
|
586
597
|
|
|
598
|
+
function createBaseQueryTotalEscrowForDenomRequest(): QueryTotalEscrowForDenomRequest {
|
|
599
|
+
return { denom: "" };
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
export const QueryTotalEscrowForDenomRequest = {
|
|
603
|
+
encode(message: QueryTotalEscrowForDenomRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
604
|
+
if (message.denom !== "") {
|
|
605
|
+
writer.uint32(10).string(message.denom);
|
|
606
|
+
}
|
|
607
|
+
return writer;
|
|
608
|
+
},
|
|
609
|
+
|
|
610
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTotalEscrowForDenomRequest {
|
|
611
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
612
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
613
|
+
const message = createBaseQueryTotalEscrowForDenomRequest();
|
|
614
|
+
while (reader.pos < end) {
|
|
615
|
+
const tag = reader.uint32();
|
|
616
|
+
switch (tag >>> 3) {
|
|
617
|
+
case 1:
|
|
618
|
+
message.denom = reader.string();
|
|
619
|
+
break;
|
|
620
|
+
default:
|
|
621
|
+
reader.skipType(tag & 7);
|
|
622
|
+
break;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
return message;
|
|
626
|
+
},
|
|
627
|
+
|
|
628
|
+
fromJSON(object: any): QueryTotalEscrowForDenomRequest {
|
|
629
|
+
return { denom: isSet(object.denom) ? String(object.denom) : "" };
|
|
630
|
+
},
|
|
631
|
+
|
|
632
|
+
toJSON(message: QueryTotalEscrowForDenomRequest): unknown {
|
|
633
|
+
const obj: any = {};
|
|
634
|
+
message.denom !== undefined && (obj.denom = message.denom);
|
|
635
|
+
return obj;
|
|
636
|
+
},
|
|
637
|
+
|
|
638
|
+
fromPartial<I extends Exact<DeepPartial<QueryTotalEscrowForDenomRequest>, I>>(
|
|
639
|
+
object: I,
|
|
640
|
+
): QueryTotalEscrowForDenomRequest {
|
|
641
|
+
const message = createBaseQueryTotalEscrowForDenomRequest();
|
|
642
|
+
message.denom = object.denom ?? "";
|
|
643
|
+
return message;
|
|
644
|
+
},
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
function createBaseQueryTotalEscrowForDenomResponse(): QueryTotalEscrowForDenomResponse {
|
|
648
|
+
return { amount: undefined };
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
export const QueryTotalEscrowForDenomResponse = {
|
|
652
|
+
encode(message: QueryTotalEscrowForDenomResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
653
|
+
if (message.amount !== undefined) {
|
|
654
|
+
Coin.encode(message.amount, writer.uint32(10).fork()).ldelim();
|
|
655
|
+
}
|
|
656
|
+
return writer;
|
|
657
|
+
},
|
|
658
|
+
|
|
659
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTotalEscrowForDenomResponse {
|
|
660
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
661
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
662
|
+
const message = createBaseQueryTotalEscrowForDenomResponse();
|
|
663
|
+
while (reader.pos < end) {
|
|
664
|
+
const tag = reader.uint32();
|
|
665
|
+
switch (tag >>> 3) {
|
|
666
|
+
case 1:
|
|
667
|
+
message.amount = Coin.decode(reader, reader.uint32());
|
|
668
|
+
break;
|
|
669
|
+
default:
|
|
670
|
+
reader.skipType(tag & 7);
|
|
671
|
+
break;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
return message;
|
|
675
|
+
},
|
|
676
|
+
|
|
677
|
+
fromJSON(object: any): QueryTotalEscrowForDenomResponse {
|
|
678
|
+
return { amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : undefined };
|
|
679
|
+
},
|
|
680
|
+
|
|
681
|
+
toJSON(message: QueryTotalEscrowForDenomResponse): unknown {
|
|
682
|
+
const obj: any = {};
|
|
683
|
+
message.amount !== undefined && (obj.amount = message.amount ? Coin.toJSON(message.amount) : undefined);
|
|
684
|
+
return obj;
|
|
685
|
+
},
|
|
686
|
+
|
|
687
|
+
fromPartial<I extends Exact<DeepPartial<QueryTotalEscrowForDenomResponse>, I>>(
|
|
688
|
+
object: I,
|
|
689
|
+
): QueryTotalEscrowForDenomResponse {
|
|
690
|
+
const message = createBaseQueryTotalEscrowForDenomResponse();
|
|
691
|
+
message.amount = (object.amount !== undefined && object.amount !== null)
|
|
692
|
+
? Coin.fromPartial(object.amount)
|
|
693
|
+
: undefined;
|
|
694
|
+
return message;
|
|
695
|
+
},
|
|
696
|
+
};
|
|
697
|
+
|
|
587
698
|
/** Query provides defines the gRPC querier service. */
|
|
588
699
|
export interface Query {
|
|
589
700
|
/** DenomTrace queries a denomination trace information. */
|
|
@@ -596,6 +707,8 @@ export interface Query {
|
|
|
596
707
|
DenomHash(request: QueryDenomHashRequest): Promise<QueryDenomHashResponse>;
|
|
597
708
|
/** EscrowAddress returns the escrow address for a particular port and channel id. */
|
|
598
709
|
EscrowAddress(request: QueryEscrowAddressRequest): Promise<QueryEscrowAddressResponse>;
|
|
710
|
+
/** TotalEscrowForDenom returns the total amount of tokens in escrow based on the denom. */
|
|
711
|
+
TotalEscrowForDenom(request: QueryTotalEscrowForDenomRequest): Promise<QueryTotalEscrowForDenomResponse>;
|
|
599
712
|
}
|
|
600
713
|
|
|
601
714
|
export class QueryClientImpl implements Query {
|
|
@@ -607,6 +720,7 @@ export class QueryClientImpl implements Query {
|
|
|
607
720
|
this.Params = this.Params.bind(this);
|
|
608
721
|
this.DenomHash = this.DenomHash.bind(this);
|
|
609
722
|
this.EscrowAddress = this.EscrowAddress.bind(this);
|
|
723
|
+
this.TotalEscrowForDenom = this.TotalEscrowForDenom.bind(this);
|
|
610
724
|
}
|
|
611
725
|
DenomTrace(request: QueryDenomTraceRequest): Promise<QueryDenomTraceResponse> {
|
|
612
726
|
const data = QueryDenomTraceRequest.encode(request).finish();
|
|
@@ -637,6 +751,12 @@ export class QueryClientImpl implements Query {
|
|
|
637
751
|
const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "EscrowAddress", data);
|
|
638
752
|
return promise.then((data) => QueryEscrowAddressResponse.decode(new _m0.Reader(data)));
|
|
639
753
|
}
|
|
754
|
+
|
|
755
|
+
TotalEscrowForDenom(request: QueryTotalEscrowForDenomRequest): Promise<QueryTotalEscrowForDenomResponse> {
|
|
756
|
+
const data = QueryTotalEscrowForDenomRequest.encode(request).finish();
|
|
757
|
+
const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "TotalEscrowForDenom", data);
|
|
758
|
+
return promise.then((data) => QueryTotalEscrowForDenomResponse.decode(new _m0.Reader(data)));
|
|
759
|
+
}
|
|
640
760
|
}
|
|
641
761
|
|
|
642
762
|
interface Rpc {
|
|
@@ -103,7 +103,11 @@ export interface Height {
|
|
|
103
103
|
|
|
104
104
|
/** Params defines the set of IBC light client parameters. */
|
|
105
105
|
export interface Params {
|
|
106
|
-
/**
|
|
106
|
+
/**
|
|
107
|
+
* allowed_clients defines the list of allowed client state types which can be created
|
|
108
|
+
* and interacted with. If a client type is removed from the allowed clients list, usage
|
|
109
|
+
* of this client will be disabled until it is added again to the list.
|
|
110
|
+
*/
|
|
107
111
|
allowedClients: string[];
|
|
108
112
|
}
|
|
109
113
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Allocation } from "./types/ibc/applications/transfer/v1/authz";
|
|
2
|
+
import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz";
|
|
1
3
|
import { DenomTrace } from "./types/ibc/applications/transfer/v1/transfer";
|
|
2
4
|
import { Params } from "./types/ibc/applications/transfer/v1/transfer";
|
|
3
|
-
export { DenomTrace, Params, };
|
|
5
|
+
export { Allocation, TransferAuthorization, DenomTrace, Params, };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { Allocation } from "./types/ibc/applications/transfer/v1/authz"
|
|
2
|
+
import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"
|
|
1
3
|
import { DenomTrace } from "./types/ibc/applications/transfer/v1/transfer"
|
|
2
4
|
import { Params } from "./types/ibc/applications/transfer/v1/transfer"
|
|
3
5
|
|
|
4
6
|
|
|
5
7
|
export {
|
|
8
|
+
Allocation,
|
|
9
|
+
TransferAuthorization,
|
|
6
10
|
DenomTrace,
|
|
7
11
|
Params,
|
|
8
12
|
|
|
@@ -28,10 +28,7 @@ export interface Plan {
|
|
|
28
28
|
time:
|
|
29
29
|
| Date
|
|
30
30
|
| undefined;
|
|
31
|
-
/**
|
|
32
|
-
* The height at which the upgrade must be performed.
|
|
33
|
-
* Only used if Time is not set.
|
|
34
|
-
*/
|
|
31
|
+
/** The height at which the upgrade must be performed. */
|
|
35
32
|
height: number;
|
|
36
33
|
/**
|
|
37
34
|
* Any application specific upgrade info to be included on-chain
|
|
@@ -57,8 +54,11 @@ export interface Plan {
|
|
|
57
54
|
* @deprecated
|
|
58
55
|
*/
|
|
59
56
|
export interface SoftwareUpgradeProposal {
|
|
57
|
+
/** title of the proposal */
|
|
60
58
|
title: string;
|
|
59
|
+
/** description of the proposal */
|
|
61
60
|
description: string;
|
|
61
|
+
/** plan of the proposal */
|
|
62
62
|
plan: Plan | undefined;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -71,7 +71,9 @@ export interface SoftwareUpgradeProposal {
|
|
|
71
71
|
* @deprecated
|
|
72
72
|
*/
|
|
73
73
|
export interface CancelSoftwareUpgradeProposal {
|
|
74
|
+
/** title of the proposal */
|
|
74
75
|
title: string;
|
|
76
|
+
/** description of the proposal */
|
|
75
77
|
description: string;
|
|
76
78
|
}
|
|
77
79
|
|