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
|
@@ -24,6 +24,21 @@ export interface ModuleAccount {
|
|
|
24
24
|
permissions: string[];
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* ModuleCredential represents a unclaimable pubkey for base accounts controlled by modules.
|
|
29
|
+
*
|
|
30
|
+
* Since: cosmos-sdk 0.47
|
|
31
|
+
*/
|
|
32
|
+
export interface ModuleCredential {
|
|
33
|
+
/** module_name is the name of the module used for address derivation (passed into address.Module). */
|
|
34
|
+
moduleName: string;
|
|
35
|
+
/**
|
|
36
|
+
* derivation_keys is for deriving a module account address (passed into address.Module)
|
|
37
|
+
* adding more keys creates sub-account addresses (passed into address.Derive)
|
|
38
|
+
*/
|
|
39
|
+
derivationKeys: Uint8Array[];
|
|
40
|
+
}
|
|
41
|
+
|
|
27
42
|
/** Params defines the parameters for the auth module. */
|
|
28
43
|
export interface Params {
|
|
29
44
|
maxMemoCharacters: number;
|
|
@@ -185,6 +200,70 @@ export const ModuleAccount = {
|
|
|
185
200
|
},
|
|
186
201
|
};
|
|
187
202
|
|
|
203
|
+
function createBaseModuleCredential(): ModuleCredential {
|
|
204
|
+
return { moduleName: "", derivationKeys: [] };
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export const ModuleCredential = {
|
|
208
|
+
encode(message: ModuleCredential, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
209
|
+
if (message.moduleName !== "") {
|
|
210
|
+
writer.uint32(10).string(message.moduleName);
|
|
211
|
+
}
|
|
212
|
+
for (const v of message.derivationKeys) {
|
|
213
|
+
writer.uint32(18).bytes(v!);
|
|
214
|
+
}
|
|
215
|
+
return writer;
|
|
216
|
+
},
|
|
217
|
+
|
|
218
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ModuleCredential {
|
|
219
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
220
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
221
|
+
const message = createBaseModuleCredential();
|
|
222
|
+
while (reader.pos < end) {
|
|
223
|
+
const tag = reader.uint32();
|
|
224
|
+
switch (tag >>> 3) {
|
|
225
|
+
case 1:
|
|
226
|
+
message.moduleName = reader.string();
|
|
227
|
+
break;
|
|
228
|
+
case 2:
|
|
229
|
+
message.derivationKeys.push(reader.bytes());
|
|
230
|
+
break;
|
|
231
|
+
default:
|
|
232
|
+
reader.skipType(tag & 7);
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
return message;
|
|
237
|
+
},
|
|
238
|
+
|
|
239
|
+
fromJSON(object: any): ModuleCredential {
|
|
240
|
+
return {
|
|
241
|
+
moduleName: isSet(object.moduleName) ? String(object.moduleName) : "",
|
|
242
|
+
derivationKeys: Array.isArray(object?.derivationKeys)
|
|
243
|
+
? object.derivationKeys.map((e: any) => bytesFromBase64(e))
|
|
244
|
+
: [],
|
|
245
|
+
};
|
|
246
|
+
},
|
|
247
|
+
|
|
248
|
+
toJSON(message: ModuleCredential): unknown {
|
|
249
|
+
const obj: any = {};
|
|
250
|
+
message.moduleName !== undefined && (obj.moduleName = message.moduleName);
|
|
251
|
+
if (message.derivationKeys) {
|
|
252
|
+
obj.derivationKeys = message.derivationKeys.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
|
|
253
|
+
} else {
|
|
254
|
+
obj.derivationKeys = [];
|
|
255
|
+
}
|
|
256
|
+
return obj;
|
|
257
|
+
},
|
|
258
|
+
|
|
259
|
+
fromPartial<I extends Exact<DeepPartial<ModuleCredential>, I>>(object: I): ModuleCredential {
|
|
260
|
+
const message = createBaseModuleCredential();
|
|
261
|
+
message.moduleName = object.moduleName ?? "";
|
|
262
|
+
message.derivationKeys = object.derivationKeys?.map((e) => e) || [];
|
|
263
|
+
return message;
|
|
264
|
+
},
|
|
265
|
+
};
|
|
266
|
+
|
|
188
267
|
function createBaseParams(): Params {
|
|
189
268
|
return {
|
|
190
269
|
maxMemoCharacters: 0,
|
|
@@ -296,6 +375,31 @@ var globalThis: any = (() => {
|
|
|
296
375
|
throw "Unable to locate global object";
|
|
297
376
|
})();
|
|
298
377
|
|
|
378
|
+
function bytesFromBase64(b64: string): Uint8Array {
|
|
379
|
+
if (globalThis.Buffer) {
|
|
380
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
381
|
+
} else {
|
|
382
|
+
const bin = globalThis.atob(b64);
|
|
383
|
+
const arr = new Uint8Array(bin.length);
|
|
384
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
385
|
+
arr[i] = bin.charCodeAt(i);
|
|
386
|
+
}
|
|
387
|
+
return arr;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
function base64FromBytes(arr: Uint8Array): string {
|
|
392
|
+
if (globalThis.Buffer) {
|
|
393
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
394
|
+
} else {
|
|
395
|
+
const bin: string[] = [];
|
|
396
|
+
arr.forEach((byte) => {
|
|
397
|
+
bin.push(String.fromCharCode(byte));
|
|
398
|
+
});
|
|
399
|
+
return globalThis.btoa(bin.join(""));
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
299
403
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
300
404
|
|
|
301
405
|
export type DeepPartial<T> = T extends Builtin ? T
|
|
@@ -65,13 +65,16 @@ export const MsgRegisterInterchainAccount = {
|
|
|
65
65
|
},
|
|
66
66
|
};
|
|
67
67
|
function createBaseMsgRegisterInterchainAccountResponse() {
|
|
68
|
-
return { channelId: "" };
|
|
68
|
+
return { channelId: "", portId: "" };
|
|
69
69
|
}
|
|
70
70
|
export const MsgRegisterInterchainAccountResponse = {
|
|
71
71
|
encode(message, writer = _m0.Writer.create()) {
|
|
72
72
|
if (message.channelId !== "") {
|
|
73
73
|
writer.uint32(10).string(message.channelId);
|
|
74
74
|
}
|
|
75
|
+
if (message.portId !== "") {
|
|
76
|
+
writer.uint32(18).string(message.portId);
|
|
77
|
+
}
|
|
75
78
|
return writer;
|
|
76
79
|
},
|
|
77
80
|
decode(input, length) {
|
|
@@ -84,6 +87,9 @@ export const MsgRegisterInterchainAccountResponse = {
|
|
|
84
87
|
case 1:
|
|
85
88
|
message.channelId = reader.string();
|
|
86
89
|
break;
|
|
90
|
+
case 2:
|
|
91
|
+
message.portId = reader.string();
|
|
92
|
+
break;
|
|
87
93
|
default:
|
|
88
94
|
reader.skipType(tag & 7);
|
|
89
95
|
break;
|
|
@@ -92,16 +98,21 @@ export const MsgRegisterInterchainAccountResponse = {
|
|
|
92
98
|
return message;
|
|
93
99
|
},
|
|
94
100
|
fromJSON(object) {
|
|
95
|
-
return {
|
|
101
|
+
return {
|
|
102
|
+
channelId: isSet(object.channelId) ? String(object.channelId) : "",
|
|
103
|
+
portId: isSet(object.portId) ? String(object.portId) : "",
|
|
104
|
+
};
|
|
96
105
|
},
|
|
97
106
|
toJSON(message) {
|
|
98
107
|
const obj = {};
|
|
99
108
|
message.channelId !== undefined && (obj.channelId = message.channelId);
|
|
109
|
+
message.portId !== undefined && (obj.portId = message.portId);
|
|
100
110
|
return obj;
|
|
101
111
|
},
|
|
102
112
|
fromPartial(object) {
|
|
103
113
|
const message = createBaseMsgRegisterInterchainAccountResponse();
|
|
104
114
|
message.channelId = object.channelId ?? "";
|
|
115
|
+
message.portId = object.portId ?? "";
|
|
105
116
|
return message;
|
|
106
117
|
},
|
|
107
118
|
};
|
|
@@ -5,16 +5,17 @@ import { InterchainAccountPacketData } from "../../v1/packet";
|
|
|
5
5
|
|
|
6
6
|
export const protobufPackage = "ibc.applications.interchain_accounts.controller.v1";
|
|
7
7
|
|
|
8
|
-
/** MsgRegisterInterchainAccount defines the payload for Msg/
|
|
8
|
+
/** MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount */
|
|
9
9
|
export interface MsgRegisterInterchainAccount {
|
|
10
10
|
owner: string;
|
|
11
11
|
connectionId: string;
|
|
12
12
|
version: string;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
/** MsgRegisterInterchainAccountResponse defines the response for Msg/
|
|
15
|
+
/** MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount */
|
|
16
16
|
export interface MsgRegisterInterchainAccountResponse {
|
|
17
17
|
channelId: string;
|
|
18
|
+
portId: string;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
/** MsgSendTx defines the payload for Msg/SendTx */
|
|
@@ -104,7 +105,7 @@ export const MsgRegisterInterchainAccount = {
|
|
|
104
105
|
};
|
|
105
106
|
|
|
106
107
|
function createBaseMsgRegisterInterchainAccountResponse(): MsgRegisterInterchainAccountResponse {
|
|
107
|
-
return { channelId: "" };
|
|
108
|
+
return { channelId: "", portId: "" };
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
export const MsgRegisterInterchainAccountResponse = {
|
|
@@ -112,6 +113,9 @@ export const MsgRegisterInterchainAccountResponse = {
|
|
|
112
113
|
if (message.channelId !== "") {
|
|
113
114
|
writer.uint32(10).string(message.channelId);
|
|
114
115
|
}
|
|
116
|
+
if (message.portId !== "") {
|
|
117
|
+
writer.uint32(18).string(message.portId);
|
|
118
|
+
}
|
|
115
119
|
return writer;
|
|
116
120
|
},
|
|
117
121
|
|
|
@@ -125,6 +129,9 @@ export const MsgRegisterInterchainAccountResponse = {
|
|
|
125
129
|
case 1:
|
|
126
130
|
message.channelId = reader.string();
|
|
127
131
|
break;
|
|
132
|
+
case 2:
|
|
133
|
+
message.portId = reader.string();
|
|
134
|
+
break;
|
|
128
135
|
default:
|
|
129
136
|
reader.skipType(tag & 7);
|
|
130
137
|
break;
|
|
@@ -134,12 +141,16 @@ export const MsgRegisterInterchainAccountResponse = {
|
|
|
134
141
|
},
|
|
135
142
|
|
|
136
143
|
fromJSON(object: any): MsgRegisterInterchainAccountResponse {
|
|
137
|
-
return {
|
|
144
|
+
return {
|
|
145
|
+
channelId: isSet(object.channelId) ? String(object.channelId) : "",
|
|
146
|
+
portId: isSet(object.portId) ? String(object.portId) : "",
|
|
147
|
+
};
|
|
138
148
|
},
|
|
139
149
|
|
|
140
150
|
toJSON(message: MsgRegisterInterchainAccountResponse): unknown {
|
|
141
151
|
const obj: any = {};
|
|
142
152
|
message.channelId !== undefined && (obj.channelId = message.channelId);
|
|
153
|
+
message.portId !== undefined && (obj.portId = message.portId);
|
|
143
154
|
return obj;
|
|
144
155
|
},
|
|
145
156
|
|
|
@@ -148,6 +159,7 @@ export const MsgRegisterInterchainAccountResponse = {
|
|
|
148
159
|
): MsgRegisterInterchainAccountResponse {
|
|
149
160
|
const message = createBaseMsgRegisterInterchainAccountResponse();
|
|
150
161
|
message.channelId = object.channelId ?? "";
|
|
162
|
+
message.portId = object.portId ?? "";
|
|
151
163
|
return message;
|
|
152
164
|
},
|
|
153
165
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
// Generated by Ignite ignite.com/cli
|
|
2
|
-
import { SigningStargateClient } from "@cosmjs/stargate";
|
|
3
2
|
import { Registry } from "@cosmjs/proto-signing";
|
|
4
3
|
import { msgTypes } from './registry';
|
|
5
4
|
import { Api } from "./rest";
|
|
6
|
-
import {
|
|
5
|
+
import { Allocation as typeAllocation } from "./types";
|
|
6
|
+
import { TransferAuthorization as typeTransferAuthorization } from "./types";
|
|
7
7
|
import { DenomTrace as typeDenomTrace } from "./types";
|
|
8
8
|
import { Params as typeParams } from "./types";
|
|
9
|
-
export { MsgTransfer };
|
|
10
9
|
export const registry = new Registry(msgTypes);
|
|
11
10
|
function getStructure(template) {
|
|
12
11
|
const structure = { fields: [] };
|
|
@@ -21,30 +20,7 @@ const defaultFee = {
|
|
|
21
20
|
gas: "200000",
|
|
22
21
|
};
|
|
23
22
|
export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
|
|
24
|
-
return {
|
|
25
|
-
async sendMsgTransfer({ value, fee, memo }) {
|
|
26
|
-
if (!signer) {
|
|
27
|
-
throw new Error('TxClient:sendMsgTransfer: Unable to sign Tx. Signer is not present.');
|
|
28
|
-
}
|
|
29
|
-
try {
|
|
30
|
-
const { address } = (await signer.getAccounts())[0];
|
|
31
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
32
|
-
let msg = this.msgTransfer({ value: MsgTransfer.fromPartial(value) });
|
|
33
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
34
|
-
}
|
|
35
|
-
catch (e) {
|
|
36
|
-
throw new Error('TxClient:sendMsgTransfer: Could not broadcast Tx: ' + e.message);
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
msgTransfer({ value }) {
|
|
40
|
-
try {
|
|
41
|
-
return { typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", value: MsgTransfer.fromPartial(value) };
|
|
42
|
-
}
|
|
43
|
-
catch (e) {
|
|
44
|
-
throw new Error('TxClient:MsgTransfer: Could not create message: ' + e.message);
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
};
|
|
23
|
+
return {};
|
|
48
24
|
};
|
|
49
25
|
export const queryClient = ({ addr: addr } = { addr: "http://localhost:1317" }) => {
|
|
50
26
|
return new Api({ baseURL: addr });
|
|
@@ -55,6 +31,8 @@ class SDKModule {
|
|
|
55
31
|
this.query = queryClient({ addr: client.env.apiURL });
|
|
56
32
|
this.updateTX(client);
|
|
57
33
|
this.structure = {
|
|
34
|
+
Allocation: getStructure(typeAllocation.fromPartial({})),
|
|
35
|
+
TransferAuthorization: getStructure(typeTransferAuthorization.fromPartial({})),
|
|
58
36
|
DenomTrace: getStructure(typeDenomTrace.fromPartial({})),
|
|
59
37
|
Params: getStructure(typeParams.fromPartial({})),
|
|
60
38
|
};
|
|
@@ -7,23 +7,14 @@ import { msgTypes } from './registry';
|
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
-
import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx";
|
|
11
10
|
|
|
11
|
+
import { Allocation as typeAllocation} from "./types"
|
|
12
|
+
import { TransferAuthorization as typeTransferAuthorization} from "./types"
|
|
12
13
|
import { DenomTrace as typeDenomTrace} from "./types"
|
|
13
14
|
import { Params as typeParams} from "./types"
|
|
14
15
|
|
|
15
|
-
export {
|
|
16
|
+
export { };
|
|
16
17
|
|
|
17
|
-
type sendMsgTransferParams = {
|
|
18
|
-
value: MsgTransfer,
|
|
19
|
-
fee?: StdFee,
|
|
20
|
-
memo?: string
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
type msgTransferParams = {
|
|
25
|
-
value: MsgTransfer,
|
|
26
|
-
};
|
|
27
18
|
|
|
28
19
|
|
|
29
20
|
export const registry = new Registry(msgTypes);
|
|
@@ -55,28 +46,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
55
46
|
|
|
56
47
|
return {
|
|
57
48
|
|
|
58
|
-
async sendMsgTransfer({ value, fee, memo }: sendMsgTransferParams): Promise<DeliverTxResponse> {
|
|
59
|
-
if (!signer) {
|
|
60
|
-
throw new Error('TxClient:sendMsgTransfer: Unable to sign Tx. Signer is not present.')
|
|
61
|
-
}
|
|
62
|
-
try {
|
|
63
|
-
const { address } = (await signer.getAccounts())[0];
|
|
64
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
65
|
-
let msg = this.msgTransfer({ value: MsgTransfer.fromPartial(value) })
|
|
66
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
67
|
-
} catch (e: any) {
|
|
68
|
-
throw new Error('TxClient:sendMsgTransfer: Could not broadcast Tx: '+ e.message)
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
msgTransfer({ value }: msgTransferParams): EncodeObject {
|
|
74
|
-
try {
|
|
75
|
-
return { typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", value: MsgTransfer.fromPartial( value ) }
|
|
76
|
-
} catch (e: any) {
|
|
77
|
-
throw new Error('TxClient:MsgTransfer: Could not create message: ' + e.message)
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
49
|
|
|
81
50
|
}
|
|
82
51
|
};
|
|
@@ -100,6 +69,8 @@ class SDKModule {
|
|
|
100
69
|
this.query = queryClient({ addr: client.env.apiURL });
|
|
101
70
|
this.updateTX(client);
|
|
102
71
|
this.structure = {
|
|
72
|
+
Allocation: getStructure(typeAllocation.fromPartial({})),
|
|
73
|
+
TransferAuthorization: getStructure(typeTransferAuthorization.fromPartial({})),
|
|
103
74
|
DenomTrace: getStructure(typeDenomTrace.fromPartial({})),
|
|
104
75
|
Params: getStructure(typeParams.fromPartial({})),
|
|
105
76
|
|
|
@@ -76,7 +76,7 @@ export class HttpClient {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* @title ibc/applications/transfer/v1/
|
|
79
|
+
* @title ibc/applications/transfer/v1/authz.proto
|
|
80
80
|
* @version version not set
|
|
81
81
|
*/
|
|
82
82
|
export class Api extends HttpClient {
|
|
@@ -139,6 +139,20 @@ export class Api extends HttpClient {
|
|
|
139
139
|
format: "json",
|
|
140
140
|
...params,
|
|
141
141
|
});
|
|
142
|
+
/**
|
|
143
|
+
* No description
|
|
144
|
+
*
|
|
145
|
+
* @tags Query
|
|
146
|
+
* @name QueryTotalEscrowForDenom
|
|
147
|
+
* @summary TotalEscrowForDenom returns the total amount of tokens in escrow based on the denom.
|
|
148
|
+
* @request GET:/ibc/apps/transfer/v1/denoms/{denom}/total_escrow
|
|
149
|
+
*/
|
|
150
|
+
this.queryTotalEscrowForDenom = (denom, params = {}) => this.request({
|
|
151
|
+
path: `/ibc/apps/transfer/v1/denoms/${denom}/total_escrow`,
|
|
152
|
+
method: "GET",
|
|
153
|
+
format: "json",
|
|
154
|
+
...params,
|
|
155
|
+
});
|
|
142
156
|
/**
|
|
143
157
|
* No description
|
|
144
158
|
*
|
|
@@ -244,6 +244,19 @@ export interface V1QueryParamsResponse {
|
|
|
244
244
|
params?: Applicationstransferv1Params;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
+
/**
|
|
248
|
+
* QueryTotalEscrowForDenomResponse is the response type for TotalEscrowForDenom RPC method.
|
|
249
|
+
*/
|
|
250
|
+
export interface V1QueryTotalEscrowForDenomResponse {
|
|
251
|
+
/**
|
|
252
|
+
* Coin defines a token with a denomination and an amount.
|
|
253
|
+
*
|
|
254
|
+
* NOTE: The amount field is an Int which implements the custom method
|
|
255
|
+
* signatures required by gogoproto.
|
|
256
|
+
*/
|
|
257
|
+
amount?: V1Beta1Coin;
|
|
258
|
+
}
|
|
259
|
+
|
|
247
260
|
/**
|
|
248
261
|
* Coin defines a token with a denomination and an amount.
|
|
249
262
|
|
|
@@ -448,7 +461,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
448
461
|
}
|
|
449
462
|
|
|
450
463
|
/**
|
|
451
|
-
* @title ibc/applications/transfer/v1/
|
|
464
|
+
* @title ibc/applications/transfer/v1/authz.proto
|
|
452
465
|
* @version version not set
|
|
453
466
|
*/
|
|
454
467
|
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
@@ -526,6 +539,22 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
526
539
|
...params,
|
|
527
540
|
});
|
|
528
541
|
|
|
542
|
+
/**
|
|
543
|
+
* No description
|
|
544
|
+
*
|
|
545
|
+
* @tags Query
|
|
546
|
+
* @name QueryTotalEscrowForDenom
|
|
547
|
+
* @summary TotalEscrowForDenom returns the total amount of tokens in escrow based on the denom.
|
|
548
|
+
* @request GET:/ibc/apps/transfer/v1/denoms/{denom}/total_escrow
|
|
549
|
+
*/
|
|
550
|
+
queryTotalEscrowForDenom = (denom: string, params: RequestParams = {}) =>
|
|
551
|
+
this.request<V1QueryTotalEscrowForDenomResponse, RpcStatus>({
|
|
552
|
+
path: `/ibc/apps/transfer/v1/denoms/${denom}/total_escrow`,
|
|
553
|
+
method: "GET",
|
|
554
|
+
format: "json",
|
|
555
|
+
...params,
|
|
556
|
+
});
|
|
557
|
+
|
|
529
558
|
/**
|
|
530
559
|
* No description
|
|
531
560
|
*
|
|
@@ -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
|
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
|
|
4
|
+
export const protobufPackage = "ibc.applications.transfer.v1";
|
|
5
|
+
function createBaseAllocation() {
|
|
6
|
+
return { sourcePort: "", sourceChannel: "", spendLimit: [], allowList: [] };
|
|
7
|
+
}
|
|
8
|
+
export const Allocation = {
|
|
9
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
10
|
+
if (message.sourcePort !== "") {
|
|
11
|
+
writer.uint32(10).string(message.sourcePort);
|
|
12
|
+
}
|
|
13
|
+
if (message.sourceChannel !== "") {
|
|
14
|
+
writer.uint32(18).string(message.sourceChannel);
|
|
15
|
+
}
|
|
16
|
+
for (const v of message.spendLimit) {
|
|
17
|
+
Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
18
|
+
}
|
|
19
|
+
for (const v of message.allowList) {
|
|
20
|
+
writer.uint32(34).string(v);
|
|
21
|
+
}
|
|
22
|
+
return writer;
|
|
23
|
+
},
|
|
24
|
+
decode(input, length) {
|
|
25
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
26
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
27
|
+
const message = createBaseAllocation();
|
|
28
|
+
while (reader.pos < end) {
|
|
29
|
+
const tag = reader.uint32();
|
|
30
|
+
switch (tag >>> 3) {
|
|
31
|
+
case 1:
|
|
32
|
+
message.sourcePort = reader.string();
|
|
33
|
+
break;
|
|
34
|
+
case 2:
|
|
35
|
+
message.sourceChannel = reader.string();
|
|
36
|
+
break;
|
|
37
|
+
case 3:
|
|
38
|
+
message.spendLimit.push(Coin.decode(reader, reader.uint32()));
|
|
39
|
+
break;
|
|
40
|
+
case 4:
|
|
41
|
+
message.allowList.push(reader.string());
|
|
42
|
+
break;
|
|
43
|
+
default:
|
|
44
|
+
reader.skipType(tag & 7);
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return message;
|
|
49
|
+
},
|
|
50
|
+
fromJSON(object) {
|
|
51
|
+
return {
|
|
52
|
+
sourcePort: isSet(object.sourcePort) ? String(object.sourcePort) : "",
|
|
53
|
+
sourceChannel: isSet(object.sourceChannel) ? String(object.sourceChannel) : "",
|
|
54
|
+
spendLimit: Array.isArray(object?.spendLimit) ? object.spendLimit.map((e) => Coin.fromJSON(e)) : [],
|
|
55
|
+
allowList: Array.isArray(object?.allowList) ? object.allowList.map((e) => String(e)) : [],
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
toJSON(message) {
|
|
59
|
+
const obj = {};
|
|
60
|
+
message.sourcePort !== undefined && (obj.sourcePort = message.sourcePort);
|
|
61
|
+
message.sourceChannel !== undefined && (obj.sourceChannel = message.sourceChannel);
|
|
62
|
+
if (message.spendLimit) {
|
|
63
|
+
obj.spendLimit = message.spendLimit.map((e) => e ? Coin.toJSON(e) : undefined);
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
obj.spendLimit = [];
|
|
67
|
+
}
|
|
68
|
+
if (message.allowList) {
|
|
69
|
+
obj.allowList = message.allowList.map((e) => e);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
obj.allowList = [];
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
},
|
|
76
|
+
fromPartial(object) {
|
|
77
|
+
const message = createBaseAllocation();
|
|
78
|
+
message.sourcePort = object.sourcePort ?? "";
|
|
79
|
+
message.sourceChannel = object.sourceChannel ?? "";
|
|
80
|
+
message.spendLimit = object.spendLimit?.map((e) => Coin.fromPartial(e)) || [];
|
|
81
|
+
message.allowList = object.allowList?.map((e) => e) || [];
|
|
82
|
+
return message;
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
function createBaseTransferAuthorization() {
|
|
86
|
+
return { allocations: [] };
|
|
87
|
+
}
|
|
88
|
+
export const TransferAuthorization = {
|
|
89
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
90
|
+
for (const v of message.allocations) {
|
|
91
|
+
Allocation.encode(v, writer.uint32(10).fork()).ldelim();
|
|
92
|
+
}
|
|
93
|
+
return writer;
|
|
94
|
+
},
|
|
95
|
+
decode(input, length) {
|
|
96
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
97
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
98
|
+
const message = createBaseTransferAuthorization();
|
|
99
|
+
while (reader.pos < end) {
|
|
100
|
+
const tag = reader.uint32();
|
|
101
|
+
switch (tag >>> 3) {
|
|
102
|
+
case 1:
|
|
103
|
+
message.allocations.push(Allocation.decode(reader, reader.uint32()));
|
|
104
|
+
break;
|
|
105
|
+
default:
|
|
106
|
+
reader.skipType(tag & 7);
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return message;
|
|
111
|
+
},
|
|
112
|
+
fromJSON(object) {
|
|
113
|
+
return {
|
|
114
|
+
allocations: Array.isArray(object?.allocations) ? object.allocations.map((e) => Allocation.fromJSON(e)) : [],
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
toJSON(message) {
|
|
118
|
+
const obj = {};
|
|
119
|
+
if (message.allocations) {
|
|
120
|
+
obj.allocations = message.allocations.map((e) => e ? Allocation.toJSON(e) : undefined);
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
obj.allocations = [];
|
|
124
|
+
}
|
|
125
|
+
return obj;
|
|
126
|
+
},
|
|
127
|
+
fromPartial(object) {
|
|
128
|
+
const message = createBaseTransferAuthorization();
|
|
129
|
+
message.allocations = object.allocations?.map((e) => Allocation.fromPartial(e)) || [];
|
|
130
|
+
return message;
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
function isSet(value) {
|
|
134
|
+
return value !== null && value !== undefined;
|
|
135
|
+
}
|