decentralcardgame-cardchain-client-ts 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DecentralCardGame.cardchain.cardchain/module.js +357 -334
- package/DecentralCardGame.cardchain.cardchain/module.ts +532 -499
- package/DecentralCardGame.cardchain.cardchain/registry.js +77 -75
- package/DecentralCardGame.cardchain.cardchain/registry.ts +77 -75
- package/DecentralCardGame.cardchain.cardchain/rest.js +31 -23
- package/DecentralCardGame.cardchain.cardchain/rest.ts +89 -62
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +89 -0
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +95 -0
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +11 -11
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +12 -12
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.js +58 -29
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +65 -33
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +72 -66
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.ts +99 -92
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection.js → DecentralCardGame/cardchain/cardchain/set.js} +8 -8
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection.ts → DecentralCardGame/cardchain/cardchain/set.ts} +20 -20
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection_proposal.js → DecentralCardGame/cardchain/cardchain/set_proposal.js} +11 -11
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection_proposal.ts → DecentralCardGame/cardchain/cardchain/set_proposal.ts} +18 -18
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +362 -261
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +568 -466
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.js +34 -8
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +36 -9
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +2 -0
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +2 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +23 -23
- package/DecentralCardGame.cardchain.cardchain/types.ts +24 -24
- package/client.js +7 -8
- package/client.ts +11 -11
- package/cosmos.auth.v1beta1/module.js +2 -0
- package/cosmos.auth.v1beta1/module.ts +3 -1
- package/cosmos.auth.v1beta1/rest.js +18 -3
- package/cosmos.auth.v1beta1/rest.ts +113 -3
- package/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.auth.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +104 -3
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +157 -4
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +172 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.auth.v1beta1/types.js +2 -1
- package/cosmos.auth.v1beta1/types.ts +2 -0
- package/cosmos.authz.v1beta1/module.js +19 -19
- package/cosmos.authz.v1beta1/module.ts +30 -30
- package/cosmos.authz.v1beta1/registry.js +2 -2
- package/cosmos.authz.v1beta1/registry.ts +2 -2
- package/cosmos.authz.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.authz.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
- package/cosmos.bank.v1beta1/module.js +16 -16
- package/cosmos.bank.v1beta1/module.ts +25 -25
- package/cosmos.bank.v1beta1/registry.js +2 -2
- package/cosmos.bank.v1beta1/registry.ts +2 -2
- package/cosmos.bank.v1beta1/rest.js +37 -6
- package/cosmos.bank.v1beta1/rest.ts +99 -6
- package/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.bank.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +18 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +24 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +9 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +18 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +25 -4
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +230 -1
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +356 -5
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +206 -1
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +305 -1
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/module.ts +1 -1
- package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
- package/cosmos.base.tendermint.v1beta1/rest.ts +18 -27
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
- package/cosmos.consensus.v1/index.js +5 -0
- package/cosmos.consensus.v1/index.ts +6 -0
- package/cosmos.consensus.v1/module.js +81 -0
- package/cosmos.consensus.v1/module.ts +129 -0
- package/cosmos.consensus.v1/registry.js +5 -0
- package/cosmos.consensus.v1/registry.ts +9 -0
- package/cosmos.consensus.v1/rest.js +100 -0
- package/cosmos.consensus.v1/rest.ts +268 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/http.js +260 -0
- package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
- package/cosmos.consensus.v1/types.js +1 -0
- package/cosmos.consensus.v1/types.ts +5 -0
- package/cosmos.crisis.v1beta1/module.js +24 -1
- package/cosmos.crisis.v1beta1/module.ts +35 -2
- package/cosmos.crisis.v1beta1/registry.js +2 -0
- package/cosmos.crisis.v1beta1/registry.ts +2 -0
- package/cosmos.crisis.v1beta1/rest.ts +19 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +95 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
- package/cosmos.distribution.v1beta1/module.js +67 -21
- package/cosmos.distribution.v1beta1/module.ts +101 -35
- package/cosmos.distribution.v1beta1/registry.js +8 -4
- package/cosmos.distribution.v1beta1/registry.ts +8 -4
- package/cosmos.distribution.v1beta1/rest.js +14 -0
- package/cosmos.distribution.v1beta1/rest.ts +66 -7
- package/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +120 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +199 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
- package/cosmos.evidence.v1beta1/module.ts +1 -1
- package/cosmos.evidence.v1beta1/rest.js +4 -3
- package/cosmos.evidence.v1beta1/rest.ts +4 -3
- package/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +13 -2
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
- package/cosmos.feegrant.v1beta1/module.ts +1 -1
- package/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/module.js +46 -21
- package/cosmos.gov.v1/module.ts +69 -34
- package/cosmos.gov.v1/registry.js +6 -4
- package/cosmos.gov.v1/registry.ts +6 -4
- package/cosmos.gov.v1/rest.ts +155 -41
- package/cosmos.gov.v1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +13 -1
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +179 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +13 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +113 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
- package/cosmos.gov.v1/types.js +2 -1
- package/cosmos.gov.v1/types.ts +2 -0
- package/cosmos.gov.v1beta1/module.js +24 -24
- package/cosmos.gov.v1beta1/module.ts +37 -37
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +65 -96
- package/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
- package/cosmos.group.v1/module.js +92 -92
- package/cosmos.group.v1/module.ts +139 -139
- package/cosmos.group.v1/registry.js +16 -16
- package/cosmos.group.v1/registry.ts +16 -16
- package/cosmos.group.v1/rest.js +3 -3
- package/cosmos.group.v1/rest.ts +29 -9
- package/cosmos.group.v1/types/amino/amino.js +2 -0
- package/cosmos.group.v1/types/amino/amino.ts +2 -0
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +52 -34
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +20 -0
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
- package/cosmos.mint.v1beta1/module.ts +1 -1
- package/cosmos.mint.v1beta1/rest.ts +9 -1
- package/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.nft.v1beta1/module.ts +1 -1
- package/cosmos.nft.v1beta1/rest.ts +18 -22
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.params.v1beta1/module.ts +1 -1
- package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/module.ts +1 -1
- package/cosmos.slashing.v1beta1/rest.ts +8 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +94 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
- package/cosmos.staking.v1beta1/module.js +41 -39
- package/cosmos.staking.v1beta1/module.ts +62 -60
- package/cosmos.staking.v1beta1/registry.js +6 -6
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.js +7 -7
- package/cosmos.staking.v1beta1/rest.ts +49 -8
- package/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +180 -2
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +94 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
- package/cosmos.staking.v1beta1/types.js +2 -1
- package/cosmos.staking.v1beta1/types.ts +2 -0
- package/cosmos.tx.v1beta1/module.ts +1 -1
- package/cosmos.tx.v1beta1/rest.js +66 -2
- package/cosmos.tx.v1beta1/rest.ts +177 -16
- package/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +360 -2
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +592 -266
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +703 -332
- package/cosmos.tx.v1beta1/types/tendermint/types/params.js +8 -17
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
- package/cosmos.upgrade.v1beta1/module.ts +1 -1
- package/cosmos.upgrade.v1beta1/rest.ts +0 -1
- package/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/cosmos.vesting.v1beta1/module.ts +1 -1
- package/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/ibc.applications.interchain_accounts.controller.v1/module.ts +1 -1
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +13 -2
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
- package/ibc.applications.interchain_accounts.host.v1/module.ts +1 -1
- package/ibc.applications.transfer.v1/module.js +5 -27
- package/ibc.applications.transfer.v1/module.ts +6 -35
- package/ibc.applications.transfer.v1/registry.js +1 -4
- package/ibc.applications.transfer.v1/registry.ts +0 -2
- package/ibc.applications.transfer.v1/rest.js +15 -1
- package/ibc.applications.transfer.v1/rest.ts +30 -1
- package/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
- package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +16 -1
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +91 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.applications.transfer.v1/types.js +3 -1
- package/ibc.applications.transfer.v1/types.ts +4 -0
- package/ibc.core.channel.v1/module.ts +1 -1
- package/ibc.core.channel.v1/rest.ts +1 -0
- package/ibc.core.channel.v1/types/amino/amino.js +2 -0
- package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +13 -2
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/module.ts +1 -1
- package/ibc.core.client.v1/rest.ts +5 -1
- package/ibc.core.client.v1/types/amino/amino.js +2 -0
- package/ibc.core.client.v1/types/amino/amino.ts +2 -0
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +9 -8
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
- package/ibc.core.connection.v1/module.ts +1 -1
- package/ibc.core.connection.v1/types/amino/amino.js +2 -0
- package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
- package/ibc.core.connection.v1/types/{proofs.js → cosmos/ics23/v1/proofs.js} +1 -1
- package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +26 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
- package/index.js +3 -1
- package/index.ts +3 -1
- package/package.json +8 -8
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.js → DecentralCardGame/cardchain/cardchain/voting.js} +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.ts → DecentralCardGame/cardchain/cardchain/voting.ts} +0 -0
|
@@ -3,13 +3,16 @@ import _m0 from "protobufjs/minimal";
|
|
|
3
3
|
import { Coin } from "../../base/v1beta1/coin";
|
|
4
4
|
export const protobufPackage = "cosmos.bank.v1beta1";
|
|
5
5
|
function createBaseSendAuthorization() {
|
|
6
|
-
return { spendLimit: [] };
|
|
6
|
+
return { spendLimit: [], allowList: [] };
|
|
7
7
|
}
|
|
8
8
|
export const SendAuthorization = {
|
|
9
9
|
encode(message, writer = _m0.Writer.create()) {
|
|
10
10
|
for (const v of message.spendLimit) {
|
|
11
11
|
Coin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
12
12
|
}
|
|
13
|
+
for (const v of message.allowList) {
|
|
14
|
+
writer.uint32(18).string(v);
|
|
15
|
+
}
|
|
13
16
|
return writer;
|
|
14
17
|
},
|
|
15
18
|
decode(input, length) {
|
|
@@ -22,6 +25,9 @@ export const SendAuthorization = {
|
|
|
22
25
|
case 1:
|
|
23
26
|
message.spendLimit.push(Coin.decode(reader, reader.uint32()));
|
|
24
27
|
break;
|
|
28
|
+
case 2:
|
|
29
|
+
message.allowList.push(reader.string());
|
|
30
|
+
break;
|
|
25
31
|
default:
|
|
26
32
|
reader.skipType(tag & 7);
|
|
27
33
|
break;
|
|
@@ -30,7 +36,10 @@ export const SendAuthorization = {
|
|
|
30
36
|
return message;
|
|
31
37
|
},
|
|
32
38
|
fromJSON(object) {
|
|
33
|
-
return {
|
|
39
|
+
return {
|
|
40
|
+
spendLimit: Array.isArray(object?.spendLimit) ? object.spendLimit.map((e) => Coin.fromJSON(e)) : [],
|
|
41
|
+
allowList: Array.isArray(object?.allowList) ? object.allowList.map((e) => String(e)) : [],
|
|
42
|
+
};
|
|
34
43
|
},
|
|
35
44
|
toJSON(message) {
|
|
36
45
|
const obj = {};
|
|
@@ -40,11 +49,18 @@ export const SendAuthorization = {
|
|
|
40
49
|
else {
|
|
41
50
|
obj.spendLimit = [];
|
|
42
51
|
}
|
|
52
|
+
if (message.allowList) {
|
|
53
|
+
obj.allowList = message.allowList.map((e) => e);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
obj.allowList = [];
|
|
57
|
+
}
|
|
43
58
|
return obj;
|
|
44
59
|
},
|
|
45
60
|
fromPartial(object) {
|
|
46
61
|
const message = createBaseSendAuthorization();
|
|
47
62
|
message.spendLimit = object.spendLimit?.map((e) => Coin.fromPartial(e)) || [];
|
|
63
|
+
message.allowList = object.allowList?.map((e) => e) || [];
|
|
48
64
|
return message;
|
|
49
65
|
},
|
|
50
66
|
};
|
|
@@ -12,10 +12,17 @@ export const protobufPackage = "cosmos.bank.v1beta1";
|
|
|
12
12
|
*/
|
|
13
13
|
export interface SendAuthorization {
|
|
14
14
|
spendLimit: Coin[];
|
|
15
|
+
/**
|
|
16
|
+
* allow_list specifies an optional list of addresses to whom the grantee can send tokens on behalf of the
|
|
17
|
+
* granter. If omitted, any recipient is allowed.
|
|
18
|
+
*
|
|
19
|
+
* Since: cosmos-sdk 0.47
|
|
20
|
+
*/
|
|
21
|
+
allowList: string[];
|
|
15
22
|
}
|
|
16
23
|
|
|
17
24
|
function createBaseSendAuthorization(): SendAuthorization {
|
|
18
|
-
return { spendLimit: [] };
|
|
25
|
+
return { spendLimit: [], allowList: [] };
|
|
19
26
|
}
|
|
20
27
|
|
|
21
28
|
export const SendAuthorization = {
|
|
@@ -23,6 +30,9 @@ export const SendAuthorization = {
|
|
|
23
30
|
for (const v of message.spendLimit) {
|
|
24
31
|
Coin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
25
32
|
}
|
|
33
|
+
for (const v of message.allowList) {
|
|
34
|
+
writer.uint32(18).string(v!);
|
|
35
|
+
}
|
|
26
36
|
return writer;
|
|
27
37
|
},
|
|
28
38
|
|
|
@@ -36,6 +46,9 @@ export const SendAuthorization = {
|
|
|
36
46
|
case 1:
|
|
37
47
|
message.spendLimit.push(Coin.decode(reader, reader.uint32()));
|
|
38
48
|
break;
|
|
49
|
+
case 2:
|
|
50
|
+
message.allowList.push(reader.string());
|
|
51
|
+
break;
|
|
39
52
|
default:
|
|
40
53
|
reader.skipType(tag & 7);
|
|
41
54
|
break;
|
|
@@ -45,7 +58,10 @@ export const SendAuthorization = {
|
|
|
45
58
|
},
|
|
46
59
|
|
|
47
60
|
fromJSON(object: any): SendAuthorization {
|
|
48
|
-
return {
|
|
61
|
+
return {
|
|
62
|
+
spendLimit: Array.isArray(object?.spendLimit) ? object.spendLimit.map((e: any) => Coin.fromJSON(e)) : [],
|
|
63
|
+
allowList: Array.isArray(object?.allowList) ? object.allowList.map((e: any) => String(e)) : [],
|
|
64
|
+
};
|
|
49
65
|
},
|
|
50
66
|
|
|
51
67
|
toJSON(message: SendAuthorization): unknown {
|
|
@@ -55,12 +71,18 @@ export const SendAuthorization = {
|
|
|
55
71
|
} else {
|
|
56
72
|
obj.spendLimit = [];
|
|
57
73
|
}
|
|
74
|
+
if (message.allowList) {
|
|
75
|
+
obj.allowList = message.allowList.map((e) => e);
|
|
76
|
+
} else {
|
|
77
|
+
obj.allowList = [];
|
|
78
|
+
}
|
|
58
79
|
return obj;
|
|
59
80
|
},
|
|
60
81
|
|
|
61
82
|
fromPartial<I extends Exact<DeepPartial<SendAuthorization>, I>>(object: I): SendAuthorization {
|
|
62
83
|
const message = createBaseSendAuthorization();
|
|
63
84
|
message.spendLimit = object.spendLimit?.map((e) => Coin.fromPartial(e)) || [];
|
|
85
|
+
message.allowList = object.allowList?.map((e) => e) || [];
|
|
64
86
|
return message;
|
|
65
87
|
},
|
|
66
88
|
};
|
|
@@ -6,6 +6,15 @@ export const protobufPackage = "cosmos.bank.v1beta1";
|
|
|
6
6
|
|
|
7
7
|
/** Params defines the parameters for the bank module. */
|
|
8
8
|
export interface Params {
|
|
9
|
+
/**
|
|
10
|
+
* Deprecated: Use of SendEnabled in params is deprecated.
|
|
11
|
+
* For genesis, use the newly added send_enabled field in the genesis object.
|
|
12
|
+
* Storage, lookup, and manipulation of this information is now in the keeper.
|
|
13
|
+
*
|
|
14
|
+
* As of cosmos-sdk 0.47, this only exists for backwards compatibility of genesis files.
|
|
15
|
+
*
|
|
16
|
+
* @deprecated
|
|
17
|
+
*/
|
|
9
18
|
sendEnabled: SendEnabled[];
|
|
10
19
|
defaultSendEnabled: boolean;
|
|
11
20
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { Coin } from "../../base/v1beta1/coin";
|
|
4
|
-
import { Metadata, Params } from "./bank";
|
|
4
|
+
import { Metadata, Params, SendEnabled } from "./bank";
|
|
5
5
|
export const protobufPackage = "cosmos.bank.v1beta1";
|
|
6
6
|
function createBaseGenesisState() {
|
|
7
|
-
return { params: undefined, balances: [], supply: [], denomMetadata: [] };
|
|
7
|
+
return { params: undefined, balances: [], supply: [], denomMetadata: [], sendEnabled: [] };
|
|
8
8
|
}
|
|
9
9
|
export const GenesisState = {
|
|
10
10
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -20,6 +20,9 @@ export const GenesisState = {
|
|
|
20
20
|
for (const v of message.denomMetadata) {
|
|
21
21
|
Metadata.encode(v, writer.uint32(34).fork()).ldelim();
|
|
22
22
|
}
|
|
23
|
+
for (const v of message.sendEnabled) {
|
|
24
|
+
SendEnabled.encode(v, writer.uint32(42).fork()).ldelim();
|
|
25
|
+
}
|
|
23
26
|
return writer;
|
|
24
27
|
},
|
|
25
28
|
decode(input, length) {
|
|
@@ -41,6 +44,9 @@ export const GenesisState = {
|
|
|
41
44
|
case 4:
|
|
42
45
|
message.denomMetadata.push(Metadata.decode(reader, reader.uint32()));
|
|
43
46
|
break;
|
|
47
|
+
case 5:
|
|
48
|
+
message.sendEnabled.push(SendEnabled.decode(reader, reader.uint32()));
|
|
49
|
+
break;
|
|
44
50
|
default:
|
|
45
51
|
reader.skipType(tag & 7);
|
|
46
52
|
break;
|
|
@@ -56,6 +62,9 @@ export const GenesisState = {
|
|
|
56
62
|
denomMetadata: Array.isArray(object?.denomMetadata)
|
|
57
63
|
? object.denomMetadata.map((e) => Metadata.fromJSON(e))
|
|
58
64
|
: [],
|
|
65
|
+
sendEnabled: Array.isArray(object?.sendEnabled)
|
|
66
|
+
? object.sendEnabled.map((e) => SendEnabled.fromJSON(e))
|
|
67
|
+
: [],
|
|
59
68
|
};
|
|
60
69
|
},
|
|
61
70
|
toJSON(message) {
|
|
@@ -79,6 +88,12 @@ export const GenesisState = {
|
|
|
79
88
|
else {
|
|
80
89
|
obj.denomMetadata = [];
|
|
81
90
|
}
|
|
91
|
+
if (message.sendEnabled) {
|
|
92
|
+
obj.sendEnabled = message.sendEnabled.map((e) => e ? SendEnabled.toJSON(e) : undefined);
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
obj.sendEnabled = [];
|
|
96
|
+
}
|
|
82
97
|
return obj;
|
|
83
98
|
},
|
|
84
99
|
fromPartial(object) {
|
|
@@ -89,6 +104,7 @@ export const GenesisState = {
|
|
|
89
104
|
message.balances = object.balances?.map((e) => Balance.fromPartial(e)) || [];
|
|
90
105
|
message.supply = object.supply?.map((e) => Coin.fromPartial(e)) || [];
|
|
91
106
|
message.denomMetadata = object.denomMetadata?.map((e) => Metadata.fromPartial(e)) || [];
|
|
107
|
+
message.sendEnabled = object.sendEnabled?.map((e) => SendEnabled.fromPartial(e)) || [];
|
|
92
108
|
return message;
|
|
93
109
|
},
|
|
94
110
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { Coin } from "../../base/v1beta1/coin";
|
|
4
|
-
import { Metadata, Params } from "./bank";
|
|
4
|
+
import { Metadata, Params, SendEnabled } from "./bank";
|
|
5
5
|
|
|
6
6
|
export const protobufPackage = "cosmos.bank.v1beta1";
|
|
7
7
|
|
|
8
8
|
/** GenesisState defines the bank module's genesis state. */
|
|
9
9
|
export interface GenesisState {
|
|
10
|
-
/** params defines all the
|
|
10
|
+
/** params defines all the parameters of the module. */
|
|
11
11
|
params:
|
|
12
12
|
| Params
|
|
13
13
|
| undefined;
|
|
@@ -18,8 +18,14 @@ export interface GenesisState {
|
|
|
18
18
|
* balances. Otherwise, it will be used to validate that the sum of the balances equals this amount.
|
|
19
19
|
*/
|
|
20
20
|
supply: Coin[];
|
|
21
|
-
/** denom_metadata defines the metadata of the
|
|
21
|
+
/** denom_metadata defines the metadata of the different coins. */
|
|
22
22
|
denomMetadata: Metadata[];
|
|
23
|
+
/**
|
|
24
|
+
* send_enabled defines the denoms where send is enabled or disabled.
|
|
25
|
+
*
|
|
26
|
+
* Since: cosmos-sdk 0.47
|
|
27
|
+
*/
|
|
28
|
+
sendEnabled: SendEnabled[];
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
/**
|
|
@@ -34,7 +40,7 @@ export interface Balance {
|
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
function createBaseGenesisState(): GenesisState {
|
|
37
|
-
return { params: undefined, balances: [], supply: [], denomMetadata: [] };
|
|
43
|
+
return { params: undefined, balances: [], supply: [], denomMetadata: [], sendEnabled: [] };
|
|
38
44
|
}
|
|
39
45
|
|
|
40
46
|
export const GenesisState = {
|
|
@@ -51,6 +57,9 @@ export const GenesisState = {
|
|
|
51
57
|
for (const v of message.denomMetadata) {
|
|
52
58
|
Metadata.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
53
59
|
}
|
|
60
|
+
for (const v of message.sendEnabled) {
|
|
61
|
+
SendEnabled.encode(v!, writer.uint32(42).fork()).ldelim();
|
|
62
|
+
}
|
|
54
63
|
return writer;
|
|
55
64
|
},
|
|
56
65
|
|
|
@@ -73,6 +82,9 @@ export const GenesisState = {
|
|
|
73
82
|
case 4:
|
|
74
83
|
message.denomMetadata.push(Metadata.decode(reader, reader.uint32()));
|
|
75
84
|
break;
|
|
85
|
+
case 5:
|
|
86
|
+
message.sendEnabled.push(SendEnabled.decode(reader, reader.uint32()));
|
|
87
|
+
break;
|
|
76
88
|
default:
|
|
77
89
|
reader.skipType(tag & 7);
|
|
78
90
|
break;
|
|
@@ -89,6 +101,9 @@ export const GenesisState = {
|
|
|
89
101
|
denomMetadata: Array.isArray(object?.denomMetadata)
|
|
90
102
|
? object.denomMetadata.map((e: any) => Metadata.fromJSON(e))
|
|
91
103
|
: [],
|
|
104
|
+
sendEnabled: Array.isArray(object?.sendEnabled)
|
|
105
|
+
? object.sendEnabled.map((e: any) => SendEnabled.fromJSON(e))
|
|
106
|
+
: [],
|
|
92
107
|
};
|
|
93
108
|
},
|
|
94
109
|
|
|
@@ -110,6 +125,11 @@ export const GenesisState = {
|
|
|
110
125
|
} else {
|
|
111
126
|
obj.denomMetadata = [];
|
|
112
127
|
}
|
|
128
|
+
if (message.sendEnabled) {
|
|
129
|
+
obj.sendEnabled = message.sendEnabled.map((e) => e ? SendEnabled.toJSON(e) : undefined);
|
|
130
|
+
} else {
|
|
131
|
+
obj.sendEnabled = [];
|
|
132
|
+
}
|
|
113
133
|
return obj;
|
|
114
134
|
},
|
|
115
135
|
|
|
@@ -121,6 +141,7 @@ export const GenesisState = {
|
|
|
121
141
|
message.balances = object.balances?.map((e) => Balance.fromPartial(e)) || [];
|
|
122
142
|
message.supply = object.supply?.map((e) => Coin.fromPartial(e)) || [];
|
|
123
143
|
message.denomMetadata = object.denomMetadata?.map((e) => Metadata.fromPartial(e)) || [];
|
|
144
|
+
message.sendEnabled = object.sendEnabled?.map((e) => SendEnabled.fromPartial(e)) || [];
|
|
124
145
|
return message;
|
|
125
146
|
},
|
|
126
147
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
4
4
|
import { Coin } from "../../base/v1beta1/coin";
|
|
5
|
-
import { Metadata, Params } from "./bank";
|
|
5
|
+
import { Metadata, Params, SendEnabled } from "./bank";
|
|
6
6
|
export const protobufPackage = "cosmos.bank.v1beta1";
|
|
7
7
|
function createBaseQueryBalanceRequest() {
|
|
8
8
|
return { address: "", denom: "" };
|
|
@@ -329,6 +329,101 @@ export const QuerySpendableBalancesResponse = {
|
|
|
329
329
|
return message;
|
|
330
330
|
},
|
|
331
331
|
};
|
|
332
|
+
function createBaseQuerySpendableBalanceByDenomRequest() {
|
|
333
|
+
return { address: "", denom: "" };
|
|
334
|
+
}
|
|
335
|
+
export const QuerySpendableBalanceByDenomRequest = {
|
|
336
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
337
|
+
if (message.address !== "") {
|
|
338
|
+
writer.uint32(10).string(message.address);
|
|
339
|
+
}
|
|
340
|
+
if (message.denom !== "") {
|
|
341
|
+
writer.uint32(18).string(message.denom);
|
|
342
|
+
}
|
|
343
|
+
return writer;
|
|
344
|
+
},
|
|
345
|
+
decode(input, length) {
|
|
346
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
347
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
348
|
+
const message = createBaseQuerySpendableBalanceByDenomRequest();
|
|
349
|
+
while (reader.pos < end) {
|
|
350
|
+
const tag = reader.uint32();
|
|
351
|
+
switch (tag >>> 3) {
|
|
352
|
+
case 1:
|
|
353
|
+
message.address = reader.string();
|
|
354
|
+
break;
|
|
355
|
+
case 2:
|
|
356
|
+
message.denom = reader.string();
|
|
357
|
+
break;
|
|
358
|
+
default:
|
|
359
|
+
reader.skipType(tag & 7);
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return message;
|
|
364
|
+
},
|
|
365
|
+
fromJSON(object) {
|
|
366
|
+
return {
|
|
367
|
+
address: isSet(object.address) ? String(object.address) : "",
|
|
368
|
+
denom: isSet(object.denom) ? String(object.denom) : "",
|
|
369
|
+
};
|
|
370
|
+
},
|
|
371
|
+
toJSON(message) {
|
|
372
|
+
const obj = {};
|
|
373
|
+
message.address !== undefined && (obj.address = message.address);
|
|
374
|
+
message.denom !== undefined && (obj.denom = message.denom);
|
|
375
|
+
return obj;
|
|
376
|
+
},
|
|
377
|
+
fromPartial(object) {
|
|
378
|
+
const message = createBaseQuerySpendableBalanceByDenomRequest();
|
|
379
|
+
message.address = object.address ?? "";
|
|
380
|
+
message.denom = object.denom ?? "";
|
|
381
|
+
return message;
|
|
382
|
+
},
|
|
383
|
+
};
|
|
384
|
+
function createBaseQuerySpendableBalanceByDenomResponse() {
|
|
385
|
+
return { balance: undefined };
|
|
386
|
+
}
|
|
387
|
+
export const QuerySpendableBalanceByDenomResponse = {
|
|
388
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
389
|
+
if (message.balance !== undefined) {
|
|
390
|
+
Coin.encode(message.balance, writer.uint32(10).fork()).ldelim();
|
|
391
|
+
}
|
|
392
|
+
return writer;
|
|
393
|
+
},
|
|
394
|
+
decode(input, length) {
|
|
395
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
396
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
397
|
+
const message = createBaseQuerySpendableBalanceByDenomResponse();
|
|
398
|
+
while (reader.pos < end) {
|
|
399
|
+
const tag = reader.uint32();
|
|
400
|
+
switch (tag >>> 3) {
|
|
401
|
+
case 1:
|
|
402
|
+
message.balance = Coin.decode(reader, reader.uint32());
|
|
403
|
+
break;
|
|
404
|
+
default:
|
|
405
|
+
reader.skipType(tag & 7);
|
|
406
|
+
break;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
return message;
|
|
410
|
+
},
|
|
411
|
+
fromJSON(object) {
|
|
412
|
+
return { balance: isSet(object.balance) ? Coin.fromJSON(object.balance) : undefined };
|
|
413
|
+
},
|
|
414
|
+
toJSON(message) {
|
|
415
|
+
const obj = {};
|
|
416
|
+
message.balance !== undefined && (obj.balance = message.balance ? Coin.toJSON(message.balance) : undefined);
|
|
417
|
+
return obj;
|
|
418
|
+
},
|
|
419
|
+
fromPartial(object) {
|
|
420
|
+
const message = createBaseQuerySpendableBalanceByDenomResponse();
|
|
421
|
+
message.balance = (object.balance !== undefined && object.balance !== null)
|
|
422
|
+
? Coin.fromPartial(object.balance)
|
|
423
|
+
: undefined;
|
|
424
|
+
return message;
|
|
425
|
+
},
|
|
426
|
+
};
|
|
332
427
|
function createBaseQueryTotalSupplyRequest() {
|
|
333
428
|
return { pagination: undefined };
|
|
334
429
|
}
|
|
@@ -950,18 +1045,142 @@ export const QueryDenomOwnersResponse = {
|
|
|
950
1045
|
return message;
|
|
951
1046
|
},
|
|
952
1047
|
};
|
|
1048
|
+
function createBaseQuerySendEnabledRequest() {
|
|
1049
|
+
return { denoms: [], pagination: undefined };
|
|
1050
|
+
}
|
|
1051
|
+
export const QuerySendEnabledRequest = {
|
|
1052
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1053
|
+
for (const v of message.denoms) {
|
|
1054
|
+
writer.uint32(10).string(v);
|
|
1055
|
+
}
|
|
1056
|
+
if (message.pagination !== undefined) {
|
|
1057
|
+
PageRequest.encode(message.pagination, writer.uint32(794).fork()).ldelim();
|
|
1058
|
+
}
|
|
1059
|
+
return writer;
|
|
1060
|
+
},
|
|
1061
|
+
decode(input, length) {
|
|
1062
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1063
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1064
|
+
const message = createBaseQuerySendEnabledRequest();
|
|
1065
|
+
while (reader.pos < end) {
|
|
1066
|
+
const tag = reader.uint32();
|
|
1067
|
+
switch (tag >>> 3) {
|
|
1068
|
+
case 1:
|
|
1069
|
+
message.denoms.push(reader.string());
|
|
1070
|
+
break;
|
|
1071
|
+
case 99:
|
|
1072
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1073
|
+
break;
|
|
1074
|
+
default:
|
|
1075
|
+
reader.skipType(tag & 7);
|
|
1076
|
+
break;
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
return message;
|
|
1080
|
+
},
|
|
1081
|
+
fromJSON(object) {
|
|
1082
|
+
return {
|
|
1083
|
+
denoms: Array.isArray(object?.denoms) ? object.denoms.map((e) => String(e)) : [],
|
|
1084
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
1085
|
+
};
|
|
1086
|
+
},
|
|
1087
|
+
toJSON(message) {
|
|
1088
|
+
const obj = {};
|
|
1089
|
+
if (message.denoms) {
|
|
1090
|
+
obj.denoms = message.denoms.map((e) => e);
|
|
1091
|
+
}
|
|
1092
|
+
else {
|
|
1093
|
+
obj.denoms = [];
|
|
1094
|
+
}
|
|
1095
|
+
message.pagination !== undefined
|
|
1096
|
+
&& (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
|
|
1097
|
+
return obj;
|
|
1098
|
+
},
|
|
1099
|
+
fromPartial(object) {
|
|
1100
|
+
const message = createBaseQuerySendEnabledRequest();
|
|
1101
|
+
message.denoms = object.denoms?.map((e) => e) || [];
|
|
1102
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1103
|
+
? PageRequest.fromPartial(object.pagination)
|
|
1104
|
+
: undefined;
|
|
1105
|
+
return message;
|
|
1106
|
+
},
|
|
1107
|
+
};
|
|
1108
|
+
function createBaseQuerySendEnabledResponse() {
|
|
1109
|
+
return { sendEnabled: [], pagination: undefined };
|
|
1110
|
+
}
|
|
1111
|
+
export const QuerySendEnabledResponse = {
|
|
1112
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1113
|
+
for (const v of message.sendEnabled) {
|
|
1114
|
+
SendEnabled.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1115
|
+
}
|
|
1116
|
+
if (message.pagination !== undefined) {
|
|
1117
|
+
PageResponse.encode(message.pagination, writer.uint32(794).fork()).ldelim();
|
|
1118
|
+
}
|
|
1119
|
+
return writer;
|
|
1120
|
+
},
|
|
1121
|
+
decode(input, length) {
|
|
1122
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1123
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1124
|
+
const message = createBaseQuerySendEnabledResponse();
|
|
1125
|
+
while (reader.pos < end) {
|
|
1126
|
+
const tag = reader.uint32();
|
|
1127
|
+
switch (tag >>> 3) {
|
|
1128
|
+
case 1:
|
|
1129
|
+
message.sendEnabled.push(SendEnabled.decode(reader, reader.uint32()));
|
|
1130
|
+
break;
|
|
1131
|
+
case 99:
|
|
1132
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1133
|
+
break;
|
|
1134
|
+
default:
|
|
1135
|
+
reader.skipType(tag & 7);
|
|
1136
|
+
break;
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
return message;
|
|
1140
|
+
},
|
|
1141
|
+
fromJSON(object) {
|
|
1142
|
+
return {
|
|
1143
|
+
sendEnabled: Array.isArray(object?.sendEnabled)
|
|
1144
|
+
? object.sendEnabled.map((e) => SendEnabled.fromJSON(e))
|
|
1145
|
+
: [],
|
|
1146
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1147
|
+
};
|
|
1148
|
+
},
|
|
1149
|
+
toJSON(message) {
|
|
1150
|
+
const obj = {};
|
|
1151
|
+
if (message.sendEnabled) {
|
|
1152
|
+
obj.sendEnabled = message.sendEnabled.map((e) => e ? SendEnabled.toJSON(e) : undefined);
|
|
1153
|
+
}
|
|
1154
|
+
else {
|
|
1155
|
+
obj.sendEnabled = [];
|
|
1156
|
+
}
|
|
1157
|
+
message.pagination !== undefined
|
|
1158
|
+
&& (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
|
|
1159
|
+
return obj;
|
|
1160
|
+
},
|
|
1161
|
+
fromPartial(object) {
|
|
1162
|
+
const message = createBaseQuerySendEnabledResponse();
|
|
1163
|
+
message.sendEnabled = object.sendEnabled?.map((e) => SendEnabled.fromPartial(e)) || [];
|
|
1164
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1165
|
+
? PageResponse.fromPartial(object.pagination)
|
|
1166
|
+
: undefined;
|
|
1167
|
+
return message;
|
|
1168
|
+
},
|
|
1169
|
+
};
|
|
953
1170
|
export class QueryClientImpl {
|
|
954
1171
|
constructor(rpc) {
|
|
955
1172
|
this.rpc = rpc;
|
|
956
1173
|
this.Balance = this.Balance.bind(this);
|
|
957
1174
|
this.AllBalances = this.AllBalances.bind(this);
|
|
958
1175
|
this.SpendableBalances = this.SpendableBalances.bind(this);
|
|
1176
|
+
this.SpendableBalanceByDenom = this.SpendableBalanceByDenom.bind(this);
|
|
959
1177
|
this.TotalSupply = this.TotalSupply.bind(this);
|
|
960
1178
|
this.SupplyOf = this.SupplyOf.bind(this);
|
|
961
1179
|
this.Params = this.Params.bind(this);
|
|
962
1180
|
this.DenomMetadata = this.DenomMetadata.bind(this);
|
|
963
1181
|
this.DenomsMetadata = this.DenomsMetadata.bind(this);
|
|
964
1182
|
this.DenomOwners = this.DenomOwners.bind(this);
|
|
1183
|
+
this.SendEnabled = this.SendEnabled.bind(this);
|
|
965
1184
|
}
|
|
966
1185
|
Balance(request) {
|
|
967
1186
|
const data = QueryBalanceRequest.encode(request).finish();
|
|
@@ -978,6 +1197,11 @@ export class QueryClientImpl {
|
|
|
978
1197
|
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SpendableBalances", data);
|
|
979
1198
|
return promise.then((data) => QuerySpendableBalancesResponse.decode(new _m0.Reader(data)));
|
|
980
1199
|
}
|
|
1200
|
+
SpendableBalanceByDenom(request) {
|
|
1201
|
+
const data = QuerySpendableBalanceByDenomRequest.encode(request).finish();
|
|
1202
|
+
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SpendableBalanceByDenom", data);
|
|
1203
|
+
return promise.then((data) => QuerySpendableBalanceByDenomResponse.decode(new _m0.Reader(data)));
|
|
1204
|
+
}
|
|
981
1205
|
TotalSupply(request) {
|
|
982
1206
|
const data = QueryTotalSupplyRequest.encode(request).finish();
|
|
983
1207
|
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "TotalSupply", data);
|
|
@@ -1008,6 +1232,11 @@ export class QueryClientImpl {
|
|
|
1008
1232
|
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomOwners", data);
|
|
1009
1233
|
return promise.then((data) => QueryDenomOwnersResponse.decode(new _m0.Reader(data)));
|
|
1010
1234
|
}
|
|
1235
|
+
SendEnabled(request) {
|
|
1236
|
+
const data = QuerySendEnabledRequest.encode(request).finish();
|
|
1237
|
+
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SendEnabled", data);
|
|
1238
|
+
return promise.then((data) => QuerySendEnabledResponse.decode(new _m0.Reader(data)));
|
|
1239
|
+
}
|
|
1011
1240
|
}
|
|
1012
1241
|
function isSet(value) {
|
|
1013
1242
|
return value !== null && value !== undefined;
|