decentralcardgame-cardchain-client-ts 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DecentralCardGame.cardchain.cardchain/module.js +322 -322
- package/DecentralCardGame.cardchain.cardchain/module.ts +486 -486
- package/DecentralCardGame.cardchain.cardchain/registry.js +71 -71
- package/DecentralCardGame.cardchain.cardchain/registry.ts +71 -71
- package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/rest.ts +8 -3
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +44 -13
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +44 -13
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +2 -0
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +2 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +22 -22
- package/DecentralCardGame.cardchain.cardchain/types.ts +22 -22
- package/client.js +7 -7
- package/client.ts +11 -10
- package/cosmos.auth.v1beta1/module.js +2 -0
- package/cosmos.auth.v1beta1/module.ts +2 -0
- package/cosmos.auth.v1beta1/rest.js +18 -3
- package/cosmos.auth.v1beta1/rest.ts +113 -3
- package/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.auth.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +104 -3
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +157 -4
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +172 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.auth.v1beta1/types.js +2 -1
- package/cosmos.auth.v1beta1/types.ts +2 -0
- package/cosmos.authz.v1beta1/module.js +19 -19
- package/cosmos.authz.v1beta1/module.ts +29 -29
- package/cosmos.authz.v1beta1/registry.js +2 -2
- package/cosmos.authz.v1beta1/registry.ts +2 -2
- package/cosmos.authz.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.authz.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
- package/cosmos.bank.v1beta1/module.js +16 -16
- package/cosmos.bank.v1beta1/module.ts +24 -24
- package/cosmos.bank.v1beta1/registry.js +2 -2
- package/cosmos.bank.v1beta1/registry.ts +2 -2
- package/cosmos.bank.v1beta1/rest.js +37 -6
- package/cosmos.bank.v1beta1/rest.ts +99 -6
- package/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.bank.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +18 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +24 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +9 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +18 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +25 -4
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +230 -1
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +356 -5
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +206 -1
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +305 -1
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
- package/cosmos.base.tendermint.v1beta1/rest.ts +18 -27
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
- package/cosmos.consensus.v1/index.js +5 -0
- package/cosmos.consensus.v1/index.ts +6 -0
- package/cosmos.consensus.v1/module.js +81 -0
- package/cosmos.consensus.v1/module.ts +129 -0
- package/cosmos.consensus.v1/registry.js +5 -0
- package/cosmos.consensus.v1/registry.ts +9 -0
- package/cosmos.consensus.v1/rest.js +100 -0
- package/cosmos.consensus.v1/rest.ts +268 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/http.js +260 -0
- package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
- package/cosmos.consensus.v1/types.js +1 -0
- package/cosmos.consensus.v1/types.ts +5 -0
- package/cosmos.crisis.v1beta1/module.js +24 -1
- package/cosmos.crisis.v1beta1/module.ts +34 -1
- package/cosmos.crisis.v1beta1/registry.js +2 -0
- package/cosmos.crisis.v1beta1/registry.ts +2 -0
- package/cosmos.crisis.v1beta1/rest.ts +19 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +95 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
- package/cosmos.distribution.v1beta1/module.js +63 -17
- package/cosmos.distribution.v1beta1/module.ts +91 -25
- package/cosmos.distribution.v1beta1/registry.js +8 -4
- package/cosmos.distribution.v1beta1/registry.ts +8 -4
- package/cosmos.distribution.v1beta1/rest.js +14 -0
- package/cosmos.distribution.v1beta1/rest.ts +66 -7
- package/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +120 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +199 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
- package/cosmos.evidence.v1beta1/rest.js +4 -3
- package/cosmos.evidence.v1beta1/rest.ts +4 -3
- package/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +13 -2
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
- package/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/module.js +44 -19
- package/cosmos.gov.v1/module.ts +62 -27
- package/cosmos.gov.v1/registry.js +4 -2
- package/cosmos.gov.v1/registry.ts +4 -2
- package/cosmos.gov.v1/rest.ts +155 -41
- package/cosmos.gov.v1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +13 -1
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +179 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +13 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +113 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
- package/cosmos.gov.v1/types.js +2 -1
- package/cosmos.gov.v1/types.ts +2 -0
- package/cosmos.gov.v1beta1/module.js +24 -24
- package/cosmos.gov.v1beta1/module.ts +36 -36
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +65 -96
- package/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
- package/cosmos.group.v1/module.js +98 -96
- package/cosmos.group.v1/module.ts +149 -147
- package/cosmos.group.v1/registry.js +16 -16
- package/cosmos.group.v1/registry.ts +16 -16
- package/cosmos.group.v1/rest.js +3 -3
- package/cosmos.group.v1/rest.ts +29 -9
- package/cosmos.group.v1/types/amino/amino.js +2 -0
- package/cosmos.group.v1/types/amino/amino.ts +2 -0
- package/cosmos.group.v1/types/cosmos/group/v1/events.js +65 -1
- package/cosmos.group.v1/types/cosmos/group/v1/events.ts +89 -1
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +52 -34
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +20 -0
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
- package/cosmos.group.v1/types.js +2 -1
- package/cosmos.group.v1/types.ts +2 -0
- package/cosmos.mint.v1beta1/rest.ts +9 -1
- package/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.nft.v1beta1/rest.ts +18 -22
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/rest.ts +8 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +94 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
- package/cosmos.staking.v1beta1/module.js +34 -32
- package/cosmos.staking.v1beta1/module.ts +50 -48
- package/cosmos.staking.v1beta1/registry.js +6 -6
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.js +7 -7
- package/cosmos.staking.v1beta1/rest.ts +49 -8
- package/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +180 -2
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +94 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
- package/cosmos.staking.v1beta1/types.js +2 -1
- package/cosmos.staking.v1beta1/types.ts +2 -0
- package/cosmos.tx.v1beta1/rest.js +66 -2
- package/cosmos.tx.v1beta1/rest.ts +177 -16
- package/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +360 -2
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +592 -266
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +703 -332
- package/cosmos.tx.v1beta1/types/tendermint/types/params.js +8 -17
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
- package/cosmos.upgrade.v1beta1/rest.ts +0 -1
- package/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/cosmos.vesting.v1beta1/module.js +19 -19
- package/cosmos.vesting.v1beta1/module.ts +29 -29
- package/cosmos.vesting.v1beta1/registry.js +2 -2
- package/cosmos.vesting.v1beta1/registry.ts +2 -2
- package/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +13 -2
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
- package/ibc.applications.transfer.v1/module.js +5 -27
- package/ibc.applications.transfer.v1/module.ts +5 -34
- package/ibc.applications.transfer.v1/registry.js +1 -4
- package/ibc.applications.transfer.v1/registry.ts +0 -2
- package/ibc.applications.transfer.v1/rest.js +15 -1
- package/ibc.applications.transfer.v1/rest.ts +30 -1
- package/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
- package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +16 -1
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +91 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.applications.transfer.v1/types.js +3 -1
- package/ibc.applications.transfer.v1/types.ts +4 -0
- package/ibc.core.channel.v1/rest.ts +1 -0
- package/ibc.core.channel.v1/types/amino/amino.js +2 -0
- package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +13 -2
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/rest.ts +5 -1
- package/ibc.core.client.v1/types/amino/amino.js +2 -0
- package/ibc.core.client.v1/types/amino/amino.ts +2 -0
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +9 -8
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
- package/ibc.core.connection.v1/types/amino/amino.js +2 -0
- package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
- package/ibc.core.connection.v1/types/{proofs.js → cosmos/ics23/v1/proofs.js} +1 -1
- package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +26 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
- package/index.js +3 -1
- package/index.ts +3 -1
- package/package.json +1 -4
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
|
-
import { Coin } from "
|
|
4
|
+
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
5
5
|
import { Response, responseFromJSON, responseToJSON } from "./council";
|
|
6
6
|
|
|
7
7
|
export const protobufPackage = "DecentralCardGame.cardchain.cardchain";
|
|
@@ -66,6 +66,7 @@ export interface MsgBuyCardScheme {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export interface MsgBuyCardSchemeResponse {
|
|
69
|
+
cardId: number;
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
export interface MsgVoteCard {
|
|
@@ -372,6 +373,7 @@ export interface MsgOpenBoosterPack {
|
|
|
372
373
|
}
|
|
373
374
|
|
|
374
375
|
export interface MsgOpenBoosterPackResponse {
|
|
376
|
+
cardIds: number[];
|
|
375
377
|
}
|
|
376
378
|
|
|
377
379
|
export interface MsgTransferBoosterPack {
|
|
@@ -596,11 +598,14 @@ export const MsgBuyCardScheme = {
|
|
|
596
598
|
};
|
|
597
599
|
|
|
598
600
|
function createBaseMsgBuyCardSchemeResponse(): MsgBuyCardSchemeResponse {
|
|
599
|
-
return {};
|
|
601
|
+
return { cardId: 0 };
|
|
600
602
|
}
|
|
601
603
|
|
|
602
604
|
export const MsgBuyCardSchemeResponse = {
|
|
603
|
-
encode(
|
|
605
|
+
encode(message: MsgBuyCardSchemeResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
606
|
+
if (message.cardId !== 0) {
|
|
607
|
+
writer.uint32(8).uint64(message.cardId);
|
|
608
|
+
}
|
|
604
609
|
return writer;
|
|
605
610
|
},
|
|
606
611
|
|
|
@@ -611,6 +616,9 @@ export const MsgBuyCardSchemeResponse = {
|
|
|
611
616
|
while (reader.pos < end) {
|
|
612
617
|
const tag = reader.uint32();
|
|
613
618
|
switch (tag >>> 3) {
|
|
619
|
+
case 1:
|
|
620
|
+
message.cardId = longToNumber(reader.uint64() as Long);
|
|
621
|
+
break;
|
|
614
622
|
default:
|
|
615
623
|
reader.skipType(tag & 7);
|
|
616
624
|
break;
|
|
@@ -619,17 +627,19 @@ export const MsgBuyCardSchemeResponse = {
|
|
|
619
627
|
return message;
|
|
620
628
|
},
|
|
621
629
|
|
|
622
|
-
fromJSON(
|
|
623
|
-
return {};
|
|
630
|
+
fromJSON(object: any): MsgBuyCardSchemeResponse {
|
|
631
|
+
return { cardId: isSet(object.cardId) ? Number(object.cardId) : 0 };
|
|
624
632
|
},
|
|
625
633
|
|
|
626
|
-
toJSON(
|
|
634
|
+
toJSON(message: MsgBuyCardSchemeResponse): unknown {
|
|
627
635
|
const obj: any = {};
|
|
636
|
+
message.cardId !== undefined && (obj.cardId = Math.round(message.cardId));
|
|
628
637
|
return obj;
|
|
629
638
|
},
|
|
630
639
|
|
|
631
|
-
fromPartial<I extends Exact<DeepPartial<MsgBuyCardSchemeResponse>, I>>(
|
|
640
|
+
fromPartial<I extends Exact<DeepPartial<MsgBuyCardSchemeResponse>, I>>(object: I): MsgBuyCardSchemeResponse {
|
|
632
641
|
const message = createBaseMsgBuyCardSchemeResponse();
|
|
642
|
+
message.cardId = object.cardId ?? 0;
|
|
633
643
|
return message;
|
|
634
644
|
},
|
|
635
645
|
};
|
|
@@ -4181,11 +4191,16 @@ export const MsgOpenBoosterPack = {
|
|
|
4181
4191
|
};
|
|
4182
4192
|
|
|
4183
4193
|
function createBaseMsgOpenBoosterPackResponse(): MsgOpenBoosterPackResponse {
|
|
4184
|
-
return {};
|
|
4194
|
+
return { cardIds: [] };
|
|
4185
4195
|
}
|
|
4186
4196
|
|
|
4187
4197
|
export const MsgOpenBoosterPackResponse = {
|
|
4188
|
-
encode(
|
|
4198
|
+
encode(message: MsgOpenBoosterPackResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
4199
|
+
writer.uint32(10).fork();
|
|
4200
|
+
for (const v of message.cardIds) {
|
|
4201
|
+
writer.uint64(v);
|
|
4202
|
+
}
|
|
4203
|
+
writer.ldelim();
|
|
4189
4204
|
return writer;
|
|
4190
4205
|
},
|
|
4191
4206
|
|
|
@@ -4196,6 +4211,16 @@ export const MsgOpenBoosterPackResponse = {
|
|
|
4196
4211
|
while (reader.pos < end) {
|
|
4197
4212
|
const tag = reader.uint32();
|
|
4198
4213
|
switch (tag >>> 3) {
|
|
4214
|
+
case 1:
|
|
4215
|
+
if ((tag & 7) === 2) {
|
|
4216
|
+
const end2 = reader.uint32() + reader.pos;
|
|
4217
|
+
while (reader.pos < end2) {
|
|
4218
|
+
message.cardIds.push(longToNumber(reader.uint64() as Long));
|
|
4219
|
+
}
|
|
4220
|
+
} else {
|
|
4221
|
+
message.cardIds.push(longToNumber(reader.uint64() as Long));
|
|
4222
|
+
}
|
|
4223
|
+
break;
|
|
4199
4224
|
default:
|
|
4200
4225
|
reader.skipType(tag & 7);
|
|
4201
4226
|
break;
|
|
@@ -4204,17 +4229,23 @@ export const MsgOpenBoosterPackResponse = {
|
|
|
4204
4229
|
return message;
|
|
4205
4230
|
},
|
|
4206
4231
|
|
|
4207
|
-
fromJSON(
|
|
4208
|
-
return {};
|
|
4232
|
+
fromJSON(object: any): MsgOpenBoosterPackResponse {
|
|
4233
|
+
return { cardIds: Array.isArray(object?.cardIds) ? object.cardIds.map((e: any) => Number(e)) : [] };
|
|
4209
4234
|
},
|
|
4210
4235
|
|
|
4211
|
-
toJSON(
|
|
4236
|
+
toJSON(message: MsgOpenBoosterPackResponse): unknown {
|
|
4212
4237
|
const obj: any = {};
|
|
4238
|
+
if (message.cardIds) {
|
|
4239
|
+
obj.cardIds = message.cardIds.map((e) => Math.round(e));
|
|
4240
|
+
} else {
|
|
4241
|
+
obj.cardIds = [];
|
|
4242
|
+
}
|
|
4213
4243
|
return obj;
|
|
4214
4244
|
},
|
|
4215
4245
|
|
|
4216
|
-
fromPartial<I extends Exact<DeepPartial<MsgOpenBoosterPackResponse>, I>>(
|
|
4246
|
+
fromPartial<I extends Exact<DeepPartial<MsgOpenBoosterPackResponse>, I>>(object: I): MsgOpenBoosterPackResponse {
|
|
4217
4247
|
const message = createBaseMsgOpenBoosterPackResponse();
|
|
4248
|
+
message.cardIds = object.cardIds?.map((e) => e) || [];
|
|
4218
4249
|
return message;
|
|
4219
4250
|
},
|
|
4220
4251
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Card } from "./types/cardchain/cardchain/card";
|
|
2
|
-
import { TimeStamp } from "./types/cardchain/cardchain/card";
|
|
3
|
-
import { Collection } from "./types/cardchain/cardchain/collection";
|
|
4
|
-
import { CollectionProposal } from "./types/cardchain/cardchain/collection_proposal";
|
|
5
|
-
import { CopyrightProposal } from "./types/cardchain/cardchain/copyright_proposal";
|
|
6
|
-
import { WrapClearResponse } from "./types/cardchain/cardchain/council";
|
|
7
|
-
import { WrapHashResponse } from "./types/cardchain/cardchain/council";
|
|
8
|
-
import { Image } from "./types/cardchain/cardchain/image";
|
|
9
|
-
import { MatchPlayer } from "./types/cardchain/cardchain/match";
|
|
10
|
-
import { MatchReporterProposal } from "./types/cardchain/cardchain/match_reporter_proposal";
|
|
11
|
-
import { Num } from "./types/cardchain/cardchain/num";
|
|
12
|
-
import { Params } from "./types/cardchain/cardchain/params";
|
|
13
|
-
import { IgnoreMatches } from "./types/cardchain/cardchain/query";
|
|
14
|
-
import { IgnoreSellOffers } from "./types/cardchain/cardchain/query";
|
|
15
|
-
import { QueryQServerResponse } from "./types/cardchain/cardchain/query";
|
|
16
|
-
import { RunningAverage } from "./types/cardchain/cardchain/running_average";
|
|
17
|
-
import { SingleVote } from "./types/cardchain/cardchain/tx";
|
|
18
|
-
import { BoosterPack } from "./types/cardchain/cardchain/user";
|
|
19
|
-
import { AirDrops } from "./types/cardchain/cardchain/user";
|
|
20
|
-
import { VoteRight } from "./types/cardchain/cardchain/vote_right";
|
|
21
|
-
import { VotingResult } from "./types/cardchain/cardchain/voting_result";
|
|
22
|
-
import { VotingResults } from "./types/cardchain/cardchain/voting_results";
|
|
1
|
+
import { Card } from "./types/DecentralCardGame/cardchain/cardchain/card";
|
|
2
|
+
import { TimeStamp } from "./types/DecentralCardGame/cardchain/cardchain/card";
|
|
3
|
+
import { Collection } from "./types/DecentralCardGame/cardchain/cardchain/collection";
|
|
4
|
+
import { CollectionProposal } from "./types/DecentralCardGame/cardchain/cardchain/collection_proposal";
|
|
5
|
+
import { CopyrightProposal } from "./types/DecentralCardGame/cardchain/cardchain/copyright_proposal";
|
|
6
|
+
import { WrapClearResponse } from "./types/DecentralCardGame/cardchain/cardchain/council";
|
|
7
|
+
import { WrapHashResponse } from "./types/DecentralCardGame/cardchain/cardchain/council";
|
|
8
|
+
import { Image } from "./types/DecentralCardGame/cardchain/cardchain/image";
|
|
9
|
+
import { MatchPlayer } from "./types/DecentralCardGame/cardchain/cardchain/match";
|
|
10
|
+
import { MatchReporterProposal } from "./types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal";
|
|
11
|
+
import { Num } from "./types/DecentralCardGame/cardchain/cardchain/num";
|
|
12
|
+
import { Params } from "./types/DecentralCardGame/cardchain/cardchain/params";
|
|
13
|
+
import { IgnoreMatches } from "./types/DecentralCardGame/cardchain/cardchain/query";
|
|
14
|
+
import { IgnoreSellOffers } from "./types/DecentralCardGame/cardchain/cardchain/query";
|
|
15
|
+
import { QueryQServerResponse } from "./types/DecentralCardGame/cardchain/cardchain/query";
|
|
16
|
+
import { RunningAverage } from "./types/DecentralCardGame/cardchain/cardchain/running_average";
|
|
17
|
+
import { SingleVote } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
18
|
+
import { BoosterPack } from "./types/DecentralCardGame/cardchain/cardchain/user";
|
|
19
|
+
import { AirDrops } from "./types/DecentralCardGame/cardchain/cardchain/user";
|
|
20
|
+
import { VoteRight } from "./types/DecentralCardGame/cardchain/cardchain/vote_right";
|
|
21
|
+
import { VotingResult } from "./types/DecentralCardGame/cardchain/cardchain/voting_result";
|
|
22
|
+
import { VotingResults } from "./types/DecentralCardGame/cardchain/cardchain/voting_results";
|
|
23
23
|
export { Card, TimeStamp, Collection, CollectionProposal, CopyrightProposal, WrapClearResponse, WrapHashResponse, Image, MatchPlayer, MatchReporterProposal, Num, Params, IgnoreMatches, IgnoreSellOffers, QueryQServerResponse, RunningAverage, SingleVote, BoosterPack, AirDrops, VoteRight, VotingResult, VotingResults, };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Card } from "./types/cardchain/cardchain/card"
|
|
2
|
-
import { TimeStamp } from "./types/cardchain/cardchain/card"
|
|
3
|
-
import { Collection } from "./types/cardchain/cardchain/collection"
|
|
4
|
-
import { CollectionProposal } from "./types/cardchain/cardchain/collection_proposal"
|
|
5
|
-
import { CopyrightProposal } from "./types/cardchain/cardchain/copyright_proposal"
|
|
6
|
-
import { WrapClearResponse } from "./types/cardchain/cardchain/council"
|
|
7
|
-
import { WrapHashResponse } from "./types/cardchain/cardchain/council"
|
|
8
|
-
import { Image } from "./types/cardchain/cardchain/image"
|
|
9
|
-
import { MatchPlayer } from "./types/cardchain/cardchain/match"
|
|
10
|
-
import { MatchReporterProposal } from "./types/cardchain/cardchain/match_reporter_proposal"
|
|
11
|
-
import { Num } from "./types/cardchain/cardchain/num"
|
|
12
|
-
import { Params } from "./types/cardchain/cardchain/params"
|
|
13
|
-
import { IgnoreMatches } from "./types/cardchain/cardchain/query"
|
|
14
|
-
import { IgnoreSellOffers } from "./types/cardchain/cardchain/query"
|
|
15
|
-
import { QueryQServerResponse } from "./types/cardchain/cardchain/query"
|
|
16
|
-
import { RunningAverage } from "./types/cardchain/cardchain/running_average"
|
|
17
|
-
import { SingleVote } from "./types/cardchain/cardchain/tx"
|
|
18
|
-
import { BoosterPack } from "./types/cardchain/cardchain/user"
|
|
19
|
-
import { AirDrops } from "./types/cardchain/cardchain/user"
|
|
20
|
-
import { VoteRight } from "./types/cardchain/cardchain/vote_right"
|
|
21
|
-
import { VotingResult } from "./types/cardchain/cardchain/voting_result"
|
|
22
|
-
import { VotingResults } from "./types/cardchain/cardchain/voting_results"
|
|
1
|
+
import { Card } from "./types/DecentralCardGame/cardchain/cardchain/card"
|
|
2
|
+
import { TimeStamp } from "./types/DecentralCardGame/cardchain/cardchain/card"
|
|
3
|
+
import { Collection } from "./types/DecentralCardGame/cardchain/cardchain/collection"
|
|
4
|
+
import { CollectionProposal } from "./types/DecentralCardGame/cardchain/cardchain/collection_proposal"
|
|
5
|
+
import { CopyrightProposal } from "./types/DecentralCardGame/cardchain/cardchain/copyright_proposal"
|
|
6
|
+
import { WrapClearResponse } from "./types/DecentralCardGame/cardchain/cardchain/council"
|
|
7
|
+
import { WrapHashResponse } from "./types/DecentralCardGame/cardchain/cardchain/council"
|
|
8
|
+
import { Image } from "./types/DecentralCardGame/cardchain/cardchain/image"
|
|
9
|
+
import { MatchPlayer } from "./types/DecentralCardGame/cardchain/cardchain/match"
|
|
10
|
+
import { MatchReporterProposal } from "./types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal"
|
|
11
|
+
import { Num } from "./types/DecentralCardGame/cardchain/cardchain/num"
|
|
12
|
+
import { Params } from "./types/DecentralCardGame/cardchain/cardchain/params"
|
|
13
|
+
import { IgnoreMatches } from "./types/DecentralCardGame/cardchain/cardchain/query"
|
|
14
|
+
import { IgnoreSellOffers } from "./types/DecentralCardGame/cardchain/cardchain/query"
|
|
15
|
+
import { QueryQServerResponse } from "./types/DecentralCardGame/cardchain/cardchain/query"
|
|
16
|
+
import { RunningAverage } from "./types/DecentralCardGame/cardchain/cardchain/running_average"
|
|
17
|
+
import { SingleVote } from "./types/DecentralCardGame/cardchain/cardchain/tx"
|
|
18
|
+
import { BoosterPack } from "./types/DecentralCardGame/cardchain/cardchain/user"
|
|
19
|
+
import { AirDrops } from "./types/DecentralCardGame/cardchain/cardchain/user"
|
|
20
|
+
import { VoteRight } from "./types/DecentralCardGame/cardchain/cardchain/vote_right"
|
|
21
|
+
import { VotingResult } from "./types/DecentralCardGame/cardchain/cardchain/voting_result"
|
|
22
|
+
import { VotingResults } from "./types/DecentralCardGame/cardchain/cardchain/voting_results"
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
export {
|
package/client.js
CHANGED
|
@@ -54,25 +54,20 @@ export class IgniteClient extends EventEmitter {
|
|
|
54
54
|
// Using queryClients directly because BaseClient has no knowledge of the modules at this stage
|
|
55
55
|
try {
|
|
56
56
|
const queryClient = (await import("./cosmos.base.tendermint.v1beta1/module")).queryClient;
|
|
57
|
-
const stakingQueryClient = (await import("./cosmos.staking.v1beta1/module")).queryClient;
|
|
58
57
|
const bankQueryClient = (await import("./cosmos.bank.v1beta1/module"))
|
|
59
58
|
.queryClient;
|
|
59
|
+
const stakingQueryClient = (await import("./cosmos.staking.v1beta1/module")).queryClient;
|
|
60
60
|
const stakingqc = stakingQueryClient({ addr: this.env.apiURL });
|
|
61
|
+
const staking = await (await stakingqc.queryParams()).data;
|
|
61
62
|
const qc = queryClient({ addr: this.env.apiURL });
|
|
62
63
|
const node_info = await (await qc.serviceGetNodeInfo()).data;
|
|
63
64
|
const chainId = node_info.default_node_info?.network ?? "";
|
|
64
65
|
const chainName = chainId?.toUpperCase() + " Network";
|
|
65
|
-
const staking = await (await stakingqc.queryParams()).data;
|
|
66
66
|
const bankqc = bankQueryClient({ addr: this.env.apiURL });
|
|
67
67
|
const tokens = await (await bankqc.queryTotalSupply()).data;
|
|
68
68
|
const addrPrefix = this.env.prefix ?? "cosmos";
|
|
69
69
|
const rpc = this.env.rpcURL;
|
|
70
70
|
const rest = this.env.apiURL;
|
|
71
|
-
let stakeCurrency = {
|
|
72
|
-
coinDenom: staking.params?.bond_denom?.toUpperCase() ?? "",
|
|
73
|
-
coinMinimalDenom: staking.params?.bond_denom ?? "",
|
|
74
|
-
coinDecimals: 0,
|
|
75
|
-
};
|
|
76
71
|
let bip44 = {
|
|
77
72
|
coinType: 118,
|
|
78
73
|
};
|
|
@@ -92,6 +87,11 @@ export class IgniteClient extends EventEmitter {
|
|
|
92
87
|
};
|
|
93
88
|
return y;
|
|
94
89
|
}) ?? [];
|
|
90
|
+
let stakeCurrency = {
|
|
91
|
+
coinDenom: staking.params?.bond_denom?.toUpperCase() ?? "",
|
|
92
|
+
coinMinimalDenom: staking.params?.bond_denom ?? "",
|
|
93
|
+
coinDecimals: 0,
|
|
94
|
+
};
|
|
95
95
|
let feeCurrencies = tokens.supply?.map((x) => {
|
|
96
96
|
const y = {
|
|
97
97
|
coinDenom: x.denom?.toUpperCase() ?? "",
|
package/client.ts
CHANGED
|
@@ -77,28 +77,22 @@ export class IgniteClient extends EventEmitter {
|
|
|
77
77
|
const queryClient = (
|
|
78
78
|
await import("./cosmos.base.tendermint.v1beta1/module")
|
|
79
79
|
).queryClient;
|
|
80
|
-
const stakingQueryClient = (
|
|
81
|
-
await import("./cosmos.staking.v1beta1/module")
|
|
82
|
-
).queryClient;
|
|
83
80
|
const bankQueryClient = (await import("./cosmos.bank.v1beta1/module"))
|
|
84
81
|
.queryClient;
|
|
85
|
-
|
|
82
|
+
|
|
83
|
+
const stakingQueryClient = (await import("./cosmos.staking.v1beta1/module")).queryClient;
|
|
86
84
|
const stakingqc = stakingQueryClient({ addr: this.env.apiURL });
|
|
85
|
+
const staking = await (await stakingqc.queryParams()).data;
|
|
86
|
+
|
|
87
87
|
const qc = queryClient({ addr: this.env.apiURL });
|
|
88
88
|
const node_info = await (await qc.serviceGetNodeInfo()).data;
|
|
89
89
|
const chainId = node_info.default_node_info?.network ?? "";
|
|
90
90
|
const chainName = chainId?.toUpperCase() + " Network";
|
|
91
|
-
const staking = await (await stakingqc.queryParams()).data;
|
|
92
91
|
const bankqc = bankQueryClient({ addr: this.env.apiURL });
|
|
93
92
|
const tokens = await (await bankqc.queryTotalSupply()).data;
|
|
94
93
|
const addrPrefix = this.env.prefix ?? "cosmos";
|
|
95
94
|
const rpc = this.env.rpcURL;
|
|
96
95
|
const rest = this.env.apiURL;
|
|
97
|
-
let stakeCurrency = {
|
|
98
|
-
coinDenom: staking.params?.bond_denom?.toUpperCase() ?? "",
|
|
99
|
-
coinMinimalDenom: staking.params?.bond_denom ?? "",
|
|
100
|
-
coinDecimals: 0,
|
|
101
|
-
};
|
|
102
96
|
|
|
103
97
|
let bip44 = {
|
|
104
98
|
coinType: 118,
|
|
@@ -123,6 +117,13 @@ export class IgniteClient extends EventEmitter {
|
|
|
123
117
|
return y;
|
|
124
118
|
}) ?? [];
|
|
125
119
|
|
|
120
|
+
|
|
121
|
+
let stakeCurrency = {
|
|
122
|
+
coinDenom: staking.params?.bond_denom?.toUpperCase() ?? "",
|
|
123
|
+
coinMinimalDenom: staking.params?.bond_denom ?? "",
|
|
124
|
+
coinDecimals: 0,
|
|
125
|
+
};
|
|
126
|
+
|
|
126
127
|
let feeCurrencies =
|
|
127
128
|
tokens.supply?.map((x) => {
|
|
128
129
|
const y = {
|
|
@@ -4,6 +4,7 @@ import { msgTypes } from './registry';
|
|
|
4
4
|
import { Api } from "./rest";
|
|
5
5
|
import { BaseAccount as typeBaseAccount } from "./types";
|
|
6
6
|
import { ModuleAccount as typeModuleAccount } from "./types";
|
|
7
|
+
import { ModuleCredential as typeModuleCredential } from "./types";
|
|
7
8
|
import { Params as typeParams } from "./types";
|
|
8
9
|
export const registry = new Registry(msgTypes);
|
|
9
10
|
function getStructure(template) {
|
|
@@ -32,6 +33,7 @@ class SDKModule {
|
|
|
32
33
|
this.structure = {
|
|
33
34
|
BaseAccount: getStructure(typeBaseAccount.fromPartial({})),
|
|
34
35
|
ModuleAccount: getStructure(typeModuleAccount.fromPartial({})),
|
|
36
|
+
ModuleCredential: getStructure(typeModuleCredential.fromPartial({})),
|
|
35
37
|
Params: getStructure(typeParams.fromPartial({})),
|
|
36
38
|
};
|
|
37
39
|
client.on('signer-changed', (signer) => {
|
|
@@ -10,6 +10,7 @@ import { Api } from "./rest";
|
|
|
10
10
|
|
|
11
11
|
import { BaseAccount as typeBaseAccount} from "./types"
|
|
12
12
|
import { ModuleAccount as typeModuleAccount} from "./types"
|
|
13
|
+
import { ModuleCredential as typeModuleCredential} from "./types"
|
|
13
14
|
import { Params as typeParams} from "./types"
|
|
14
15
|
|
|
15
16
|
export { };
|
|
@@ -70,6 +71,7 @@ class SDKModule {
|
|
|
70
71
|
this.structure = {
|
|
71
72
|
BaseAccount: getStructure(typeBaseAccount.fromPartial({})),
|
|
72
73
|
ModuleAccount: getStructure(typeModuleAccount.fromPartial({})),
|
|
74
|
+
ModuleCredential: getStructure(typeModuleCredential.fromPartial({})),
|
|
73
75
|
Params: getStructure(typeParams.fromPartial({})),
|
|
74
76
|
|
|
75
77
|
};
|
|
@@ -83,11 +83,25 @@ export class Api extends HttpClient {
|
|
|
83
83
|
constructor() {
|
|
84
84
|
super(...arguments);
|
|
85
85
|
/**
|
|
86
|
-
* @description Since: cosmos-sdk 0.
|
|
86
|
+
* @description Since: cosmos-sdk 0.47
|
|
87
|
+
*
|
|
88
|
+
* @tags Query
|
|
89
|
+
* @name QueryAccountInfo
|
|
90
|
+
* @summary AccountInfo queries account info which is common to all account types.
|
|
91
|
+
* @request GET:/cosmos/auth/v1beta1/account_info/{address}
|
|
92
|
+
*/
|
|
93
|
+
this.queryAccountInfo = (address, params = {}) => this.request({
|
|
94
|
+
path: `/cosmos/auth/v1beta1/account_info/${address}`,
|
|
95
|
+
method: "GET",
|
|
96
|
+
format: "json",
|
|
97
|
+
...params,
|
|
98
|
+
});
|
|
99
|
+
/**
|
|
100
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set. Since: cosmos-sdk 0.43
|
|
87
101
|
*
|
|
88
102
|
* @tags Query
|
|
89
103
|
* @name QueryAccounts
|
|
90
|
-
* @summary Accounts returns all the existing accounts
|
|
104
|
+
* @summary Accounts returns all the existing accounts.
|
|
91
105
|
* @request GET:/cosmos/auth/v1beta1/accounts
|
|
92
106
|
*/
|
|
93
107
|
this.queryAccounts = (query, params = {}) => this.request({
|
|
@@ -119,9 +133,10 @@ export class Api extends HttpClient {
|
|
|
119
133
|
* @summary AccountAddressByID returns account address based on account number.
|
|
120
134
|
* @request GET:/cosmos/auth/v1beta1/address_by_id/{id}
|
|
121
135
|
*/
|
|
122
|
-
this.queryAccountAddressByID = (id, params = {}) => this.request({
|
|
136
|
+
this.queryAccountAddressByID = (id, query, params = {}) => this.request({
|
|
123
137
|
path: `/cosmos/auth/v1beta1/address_by_id/${id}`,
|
|
124
138
|
method: "GET",
|
|
139
|
+
query: query,
|
|
125
140
|
format: "json",
|
|
126
141
|
...params,
|
|
127
142
|
});
|
|
@@ -149,6 +149,81 @@ export interface V1Beta1AddressStringToBytesResponse {
|
|
|
149
149
|
address_bytes?: string;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
/**
|
|
153
|
+
* BaseAccount defines a base account type. It contains all the necessary fields
|
|
154
|
+
for basic account functionality. Any custom account type should extend this
|
|
155
|
+
type for additional functionality (e.g. vesting).
|
|
156
|
+
*/
|
|
157
|
+
export interface V1Beta1BaseAccount {
|
|
158
|
+
address?: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
162
|
+
* URL that describes the type of the serialized message.
|
|
163
|
+
*
|
|
164
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
165
|
+
* of utility functions or additional generated methods of the Any type.
|
|
166
|
+
* Example 1: Pack and unpack a message in C++.
|
|
167
|
+
* Foo foo = ...;
|
|
168
|
+
* Any any;
|
|
169
|
+
* any.PackFrom(foo);
|
|
170
|
+
* ...
|
|
171
|
+
* if (any.UnpackTo(&foo)) {
|
|
172
|
+
* ...
|
|
173
|
+
* }
|
|
174
|
+
* Example 2: Pack and unpack a message in Java.
|
|
175
|
+
* Any any = Any.pack(foo);
|
|
176
|
+
* if (any.is(Foo.class)) {
|
|
177
|
+
* foo = any.unpack(Foo.class);
|
|
178
|
+
* Example 3: Pack and unpack a message in Python.
|
|
179
|
+
* foo = Foo(...)
|
|
180
|
+
* any = Any()
|
|
181
|
+
* any.Pack(foo)
|
|
182
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
183
|
+
* any.Unpack(foo)
|
|
184
|
+
* Example 4: Pack and unpack a message in Go
|
|
185
|
+
* foo := &pb.Foo{...}
|
|
186
|
+
* any, err := anypb.New(foo)
|
|
187
|
+
* if err != nil {
|
|
188
|
+
* ...
|
|
189
|
+
* }
|
|
190
|
+
* ...
|
|
191
|
+
* foo := &pb.Foo{}
|
|
192
|
+
* if err := any.UnmarshalTo(foo); err != nil {
|
|
193
|
+
* The pack methods provided by protobuf library will by default use
|
|
194
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
195
|
+
* methods only use the fully qualified type name after the last '/'
|
|
196
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
197
|
+
* name "y.z".
|
|
198
|
+
* JSON
|
|
199
|
+
* ====
|
|
200
|
+
* The JSON representation of an `Any` value uses the regular
|
|
201
|
+
* representation of the deserialized, embedded message, with an
|
|
202
|
+
* additional field `@type` which contains the type URL. Example:
|
|
203
|
+
* package google.profile;
|
|
204
|
+
* message Person {
|
|
205
|
+
* string first_name = 1;
|
|
206
|
+
* string last_name = 2;
|
|
207
|
+
* {
|
|
208
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
209
|
+
* "firstName": <string>,
|
|
210
|
+
* "lastName": <string>
|
|
211
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
212
|
+
* representation, that representation will be embedded adding a field
|
|
213
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
214
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
215
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
216
|
+
* "value": "1.212s"
|
|
217
|
+
*/
|
|
218
|
+
pub_key?: ProtobufAny;
|
|
219
|
+
|
|
220
|
+
/** @format uint64 */
|
|
221
|
+
account_number?: string;
|
|
222
|
+
|
|
223
|
+
/** @format uint64 */
|
|
224
|
+
sequence?: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
152
227
|
/**
|
|
153
228
|
* Bech32PrefixResponse is the response type for Bech32Prefix rpc method.
|
|
154
229
|
|
|
@@ -158,6 +233,14 @@ export interface V1Beta1Bech32PrefixResponse {
|
|
|
158
233
|
bech32_prefix?: string;
|
|
159
234
|
}
|
|
160
235
|
|
|
236
|
+
/**
|
|
237
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
238
|
+
MsgUpdateParams message.
|
|
239
|
+
|
|
240
|
+
Since: cosmos-sdk 0.47
|
|
241
|
+
*/
|
|
242
|
+
export type V1Beta1MsgUpdateParamsResponse = object;
|
|
243
|
+
|
|
161
244
|
/**
|
|
162
245
|
* message SomeRequest {
|
|
163
246
|
Foo some_parameter = 1;
|
|
@@ -257,6 +340,16 @@ export interface V1Beta1QueryAccountAddressByIDResponse {
|
|
|
257
340
|
account_address?: string;
|
|
258
341
|
}
|
|
259
342
|
|
|
343
|
+
/**
|
|
344
|
+
* QueryAccountInfoResponse is the Query/AccountInfo response type.
|
|
345
|
+
|
|
346
|
+
Since: cosmos-sdk 0.47
|
|
347
|
+
*/
|
|
348
|
+
export interface V1Beta1QueryAccountInfoResponse {
|
|
349
|
+
/** info is the account info which is represented by BaseAccount. */
|
|
350
|
+
info?: V1Beta1BaseAccount;
|
|
351
|
+
}
|
|
352
|
+
|
|
260
353
|
/**
|
|
261
354
|
* QueryAccountResponse is the response type for the Query/Account RPC method.
|
|
262
355
|
*/
|
|
@@ -486,11 +579,27 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
486
579
|
*/
|
|
487
580
|
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
488
581
|
/**
|
|
489
|
-
* @description Since: cosmos-sdk 0.
|
|
582
|
+
* @description Since: cosmos-sdk 0.47
|
|
583
|
+
*
|
|
584
|
+
* @tags Query
|
|
585
|
+
* @name QueryAccountInfo
|
|
586
|
+
* @summary AccountInfo queries account info which is common to all account types.
|
|
587
|
+
* @request GET:/cosmos/auth/v1beta1/account_info/{address}
|
|
588
|
+
*/
|
|
589
|
+
queryAccountInfo = (address: string, params: RequestParams = {}) =>
|
|
590
|
+
this.request<V1Beta1QueryAccountInfoResponse, RpcStatus>({
|
|
591
|
+
path: `/cosmos/auth/v1beta1/account_info/${address}`,
|
|
592
|
+
method: "GET",
|
|
593
|
+
format: "json",
|
|
594
|
+
...params,
|
|
595
|
+
});
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* @description When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set. Since: cosmos-sdk 0.43
|
|
490
599
|
*
|
|
491
600
|
* @tags Query
|
|
492
601
|
* @name QueryAccounts
|
|
493
|
-
* @summary Accounts returns all the existing accounts
|
|
602
|
+
* @summary Accounts returns all the existing accounts.
|
|
494
603
|
* @request GET:/cosmos/auth/v1beta1/accounts
|
|
495
604
|
*/
|
|
496
605
|
queryAccounts = (
|
|
@@ -535,10 +644,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
535
644
|
* @summary AccountAddressByID returns account address based on account number.
|
|
536
645
|
* @request GET:/cosmos/auth/v1beta1/address_by_id/{id}
|
|
537
646
|
*/
|
|
538
|
-
queryAccountAddressByID = (id: string, params: RequestParams = {}) =>
|
|
647
|
+
queryAccountAddressByID = (id: string, query?: { account_id?: string }, params: RequestParams = {}) =>
|
|
539
648
|
this.request<V1Beta1QueryAccountAddressByIDResponse, RpcStatus>({
|
|
540
649
|
path: `/cosmos/auth/v1beta1/address_by_id/${id}`,
|
|
541
650
|
method: "GET",
|
|
651
|
+
query: query,
|
|
542
652
|
format: "json",
|
|
543
653
|
...params,
|
|
544
654
|
});
|
|
@@ -144,6 +144,65 @@ export const ModuleAccount = {
|
|
|
144
144
|
return message;
|
|
145
145
|
},
|
|
146
146
|
};
|
|
147
|
+
function createBaseModuleCredential() {
|
|
148
|
+
return { moduleName: "", derivationKeys: [] };
|
|
149
|
+
}
|
|
150
|
+
export const ModuleCredential = {
|
|
151
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
152
|
+
if (message.moduleName !== "") {
|
|
153
|
+
writer.uint32(10).string(message.moduleName);
|
|
154
|
+
}
|
|
155
|
+
for (const v of message.derivationKeys) {
|
|
156
|
+
writer.uint32(18).bytes(v);
|
|
157
|
+
}
|
|
158
|
+
return writer;
|
|
159
|
+
},
|
|
160
|
+
decode(input, length) {
|
|
161
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
162
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
163
|
+
const message = createBaseModuleCredential();
|
|
164
|
+
while (reader.pos < end) {
|
|
165
|
+
const tag = reader.uint32();
|
|
166
|
+
switch (tag >>> 3) {
|
|
167
|
+
case 1:
|
|
168
|
+
message.moduleName = reader.string();
|
|
169
|
+
break;
|
|
170
|
+
case 2:
|
|
171
|
+
message.derivationKeys.push(reader.bytes());
|
|
172
|
+
break;
|
|
173
|
+
default:
|
|
174
|
+
reader.skipType(tag & 7);
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return message;
|
|
179
|
+
},
|
|
180
|
+
fromJSON(object) {
|
|
181
|
+
return {
|
|
182
|
+
moduleName: isSet(object.moduleName) ? String(object.moduleName) : "",
|
|
183
|
+
derivationKeys: Array.isArray(object?.derivationKeys)
|
|
184
|
+
? object.derivationKeys.map((e) => bytesFromBase64(e))
|
|
185
|
+
: [],
|
|
186
|
+
};
|
|
187
|
+
},
|
|
188
|
+
toJSON(message) {
|
|
189
|
+
const obj = {};
|
|
190
|
+
message.moduleName !== undefined && (obj.moduleName = message.moduleName);
|
|
191
|
+
if (message.derivationKeys) {
|
|
192
|
+
obj.derivationKeys = message.derivationKeys.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
obj.derivationKeys = [];
|
|
196
|
+
}
|
|
197
|
+
return obj;
|
|
198
|
+
},
|
|
199
|
+
fromPartial(object) {
|
|
200
|
+
const message = createBaseModuleCredential();
|
|
201
|
+
message.moduleName = object.moduleName ?? "";
|
|
202
|
+
message.derivationKeys = object.derivationKeys?.map((e) => e) || [];
|
|
203
|
+
return message;
|
|
204
|
+
},
|
|
205
|
+
};
|
|
147
206
|
function createBaseParams() {
|
|
148
207
|
return {
|
|
149
208
|
maxMemoCharacters: 0,
|
|
@@ -245,6 +304,31 @@ var globalThis = (() => {
|
|
|
245
304
|
}
|
|
246
305
|
throw "Unable to locate global object";
|
|
247
306
|
})();
|
|
307
|
+
function bytesFromBase64(b64) {
|
|
308
|
+
if (globalThis.Buffer) {
|
|
309
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
const bin = globalThis.atob(b64);
|
|
313
|
+
const arr = new Uint8Array(bin.length);
|
|
314
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
315
|
+
arr[i] = bin.charCodeAt(i);
|
|
316
|
+
}
|
|
317
|
+
return arr;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
function base64FromBytes(arr) {
|
|
321
|
+
if (globalThis.Buffer) {
|
|
322
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
const bin = [];
|
|
326
|
+
arr.forEach((byte) => {
|
|
327
|
+
bin.push(String.fromCharCode(byte));
|
|
328
|
+
});
|
|
329
|
+
return globalThis.btoa(bin.join(""));
|
|
330
|
+
}
|
|
331
|
+
}
|
|
248
332
|
function longToNumber(long) {
|
|
249
333
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
250
334
|
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|