decentralcardgame-cardchain-client-ts 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DecentralCardGame.cardchain.cardchain/module.js +357 -334
- package/DecentralCardGame.cardchain.cardchain/module.ts +531 -498
- package/DecentralCardGame.cardchain.cardchain/registry.js +77 -75
- package/DecentralCardGame.cardchain.cardchain/registry.ts +77 -75
- package/DecentralCardGame.cardchain.cardchain/rest.js +31 -23
- package/DecentralCardGame.cardchain.cardchain/rest.ts +89 -62
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +89 -0
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +95 -0
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +11 -11
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +12 -12
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.js +58 -29
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +65 -33
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +72 -66
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.ts +99 -92
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection.js → DecentralCardGame/cardchain/cardchain/set.js} +8 -8
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection.ts → DecentralCardGame/cardchain/cardchain/set.ts} +20 -20
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection_proposal.js → DecentralCardGame/cardchain/cardchain/set_proposal.js} +11 -11
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection_proposal.ts → DecentralCardGame/cardchain/cardchain/set_proposal.ts} +18 -18
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +362 -261
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +568 -466
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.js +34 -8
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +36 -9
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +2 -0
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +2 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +23 -23
- package/DecentralCardGame.cardchain.cardchain/types.ts +24 -24
- package/client.js +7 -7
- package/client.ts +10 -9
- 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 +67 -21
- package/cosmos.distribution.v1beta1/module.ts +100 -34
- 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 +46 -21
- package/cosmos.gov.v1/module.ts +68 -33
- package/cosmos.gov.v1/registry.js +6 -4
- package/cosmos.gov.v1/registry.ts +6 -4
- package/cosmos.gov.v1/rest.ts +155 -41
- package/cosmos.gov.v1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +13 -1
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +179 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +13 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +113 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
- package/cosmos.gov.v1/types.js +2 -1
- package/cosmos.gov.v1/types.ts +2 -0
- package/cosmos.gov.v1beta1/module.js +24 -24
- package/cosmos.gov.v1beta1/module.ts +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 +92 -92
- package/cosmos.group.v1/module.ts +138 -138
- package/cosmos.group.v1/registry.js +16 -16
- package/cosmos.group.v1/registry.ts +16 -16
- package/cosmos.group.v1/rest.js +3 -3
- package/cosmos.group.v1/rest.ts +29 -9
- package/cosmos.group.v1/types/amino/amino.js +2 -0
- package/cosmos.group.v1/types/amino/amino.ts +2 -0
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +52 -34
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +20 -0
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
- package/cosmos.mint.v1beta1/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 +41 -39
- package/cosmos.staking.v1beta1/module.ts +61 -59
- 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/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 +5 -6
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.js → DecentralCardGame/cardchain/cardchain/voting.js} +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.ts → DecentralCardGame/cardchain/cardchain/voting.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
|
-
import { VoteRight } from "./
|
|
4
|
+
import { VoteRight } from "./voting";
|
|
5
5
|
export const protobufPackage = "DecentralCardGame.cardchain.cardchain";
|
|
6
6
|
export var CouncilStatus;
|
|
7
7
|
(function (CouncilStatus) {
|
|
@@ -312,12 +312,12 @@ export const User = {
|
|
|
312
312
|
},
|
|
313
313
|
};
|
|
314
314
|
function createBaseBoosterPack() {
|
|
315
|
-
return {
|
|
315
|
+
return { setId: 0, timeStamp: 0, raritiesPerPack: [], dropRatiosPerPack: [] };
|
|
316
316
|
}
|
|
317
317
|
export const BoosterPack = {
|
|
318
318
|
encode(message, writer = _m0.Writer.create()) {
|
|
319
|
-
if (message.
|
|
320
|
-
writer.uint32(8).uint64(message.
|
|
319
|
+
if (message.setId !== 0) {
|
|
320
|
+
writer.uint32(8).uint64(message.setId);
|
|
321
321
|
}
|
|
322
322
|
if (message.timeStamp !== 0) {
|
|
323
323
|
writer.uint32(16).int64(message.timeStamp);
|
|
@@ -327,6 +327,11 @@ export const BoosterPack = {
|
|
|
327
327
|
writer.uint64(v);
|
|
328
328
|
}
|
|
329
329
|
writer.ldelim();
|
|
330
|
+
writer.uint32(34).fork();
|
|
331
|
+
for (const v of message.dropRatiosPerPack) {
|
|
332
|
+
writer.uint64(v);
|
|
333
|
+
}
|
|
334
|
+
writer.ldelim();
|
|
330
335
|
return writer;
|
|
331
336
|
},
|
|
332
337
|
decode(input, length) {
|
|
@@ -337,7 +342,7 @@ export const BoosterPack = {
|
|
|
337
342
|
const tag = reader.uint32();
|
|
338
343
|
switch (tag >>> 3) {
|
|
339
344
|
case 1:
|
|
340
|
-
message.
|
|
345
|
+
message.setId = longToNumber(reader.uint64());
|
|
341
346
|
break;
|
|
342
347
|
case 2:
|
|
343
348
|
message.timeStamp = longToNumber(reader.int64());
|
|
@@ -353,6 +358,17 @@ export const BoosterPack = {
|
|
|
353
358
|
message.raritiesPerPack.push(longToNumber(reader.uint64()));
|
|
354
359
|
}
|
|
355
360
|
break;
|
|
361
|
+
case 4:
|
|
362
|
+
if ((tag & 7) === 2) {
|
|
363
|
+
const end2 = reader.uint32() + reader.pos;
|
|
364
|
+
while (reader.pos < end2) {
|
|
365
|
+
message.dropRatiosPerPack.push(longToNumber(reader.uint64()));
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
message.dropRatiosPerPack.push(longToNumber(reader.uint64()));
|
|
370
|
+
}
|
|
371
|
+
break;
|
|
356
372
|
default:
|
|
357
373
|
reader.skipType(tag & 7);
|
|
358
374
|
break;
|
|
@@ -362,14 +378,17 @@ export const BoosterPack = {
|
|
|
362
378
|
},
|
|
363
379
|
fromJSON(object) {
|
|
364
380
|
return {
|
|
365
|
-
|
|
381
|
+
setId: isSet(object.setId) ? Number(object.setId) : 0,
|
|
366
382
|
timeStamp: isSet(object.timeStamp) ? Number(object.timeStamp) : 0,
|
|
367
383
|
raritiesPerPack: Array.isArray(object?.raritiesPerPack) ? object.raritiesPerPack.map((e) => Number(e)) : [],
|
|
384
|
+
dropRatiosPerPack: Array.isArray(object?.dropRatiosPerPack)
|
|
385
|
+
? object.dropRatiosPerPack.map((e) => Number(e))
|
|
386
|
+
: [],
|
|
368
387
|
};
|
|
369
388
|
},
|
|
370
389
|
toJSON(message) {
|
|
371
390
|
const obj = {};
|
|
372
|
-
message.
|
|
391
|
+
message.setId !== undefined && (obj.setId = Math.round(message.setId));
|
|
373
392
|
message.timeStamp !== undefined && (obj.timeStamp = Math.round(message.timeStamp));
|
|
374
393
|
if (message.raritiesPerPack) {
|
|
375
394
|
obj.raritiesPerPack = message.raritiesPerPack.map((e) => Math.round(e));
|
|
@@ -377,13 +396,20 @@ export const BoosterPack = {
|
|
|
377
396
|
else {
|
|
378
397
|
obj.raritiesPerPack = [];
|
|
379
398
|
}
|
|
399
|
+
if (message.dropRatiosPerPack) {
|
|
400
|
+
obj.dropRatiosPerPack = message.dropRatiosPerPack.map((e) => Math.round(e));
|
|
401
|
+
}
|
|
402
|
+
else {
|
|
403
|
+
obj.dropRatiosPerPack = [];
|
|
404
|
+
}
|
|
380
405
|
return obj;
|
|
381
406
|
},
|
|
382
407
|
fromPartial(object) {
|
|
383
408
|
const message = createBaseBoosterPack();
|
|
384
|
-
message.
|
|
409
|
+
message.setId = object.setId ?? 0;
|
|
385
410
|
message.timeStamp = object.timeStamp ?? 0;
|
|
386
411
|
message.raritiesPerPack = object.raritiesPerPack?.map((e) => e) || [];
|
|
412
|
+
message.dropRatiosPerPack = object.dropRatiosPerPack?.map((e) => e) || [];
|
|
387
413
|
return message;
|
|
388
414
|
},
|
|
389
415
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
|
-
import { VoteRight } from "./
|
|
4
|
+
import { VoteRight } from "./voting";
|
|
5
5
|
|
|
6
6
|
export const protobufPackage = "DecentralCardGame.cardchain.cardchain";
|
|
7
7
|
|
|
@@ -117,9 +117,12 @@ export interface User {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
export interface BoosterPack {
|
|
120
|
-
|
|
120
|
+
setId: number;
|
|
121
121
|
timeStamp: number;
|
|
122
|
+
/** How often the different rarities will appear in a BoosterPack */
|
|
122
123
|
raritiesPerPack: number[];
|
|
124
|
+
/** The chances of the rare beeing a normal rare, an exceptional or a unique */
|
|
125
|
+
dropRatiosPerPack: number[];
|
|
123
126
|
}
|
|
124
127
|
|
|
125
128
|
export interface AirDrops {
|
|
@@ -345,13 +348,13 @@ export const User = {
|
|
|
345
348
|
};
|
|
346
349
|
|
|
347
350
|
function createBaseBoosterPack(): BoosterPack {
|
|
348
|
-
return {
|
|
351
|
+
return { setId: 0, timeStamp: 0, raritiesPerPack: [], dropRatiosPerPack: [] };
|
|
349
352
|
}
|
|
350
353
|
|
|
351
354
|
export const BoosterPack = {
|
|
352
355
|
encode(message: BoosterPack, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
353
|
-
if (message.
|
|
354
|
-
writer.uint32(8).uint64(message.
|
|
356
|
+
if (message.setId !== 0) {
|
|
357
|
+
writer.uint32(8).uint64(message.setId);
|
|
355
358
|
}
|
|
356
359
|
if (message.timeStamp !== 0) {
|
|
357
360
|
writer.uint32(16).int64(message.timeStamp);
|
|
@@ -361,6 +364,11 @@ export const BoosterPack = {
|
|
|
361
364
|
writer.uint64(v);
|
|
362
365
|
}
|
|
363
366
|
writer.ldelim();
|
|
367
|
+
writer.uint32(34).fork();
|
|
368
|
+
for (const v of message.dropRatiosPerPack) {
|
|
369
|
+
writer.uint64(v);
|
|
370
|
+
}
|
|
371
|
+
writer.ldelim();
|
|
364
372
|
return writer;
|
|
365
373
|
},
|
|
366
374
|
|
|
@@ -372,7 +380,7 @@ export const BoosterPack = {
|
|
|
372
380
|
const tag = reader.uint32();
|
|
373
381
|
switch (tag >>> 3) {
|
|
374
382
|
case 1:
|
|
375
|
-
message.
|
|
383
|
+
message.setId = longToNumber(reader.uint64() as Long);
|
|
376
384
|
break;
|
|
377
385
|
case 2:
|
|
378
386
|
message.timeStamp = longToNumber(reader.int64() as Long);
|
|
@@ -387,6 +395,16 @@ export const BoosterPack = {
|
|
|
387
395
|
message.raritiesPerPack.push(longToNumber(reader.uint64() as Long));
|
|
388
396
|
}
|
|
389
397
|
break;
|
|
398
|
+
case 4:
|
|
399
|
+
if ((tag & 7) === 2) {
|
|
400
|
+
const end2 = reader.uint32() + reader.pos;
|
|
401
|
+
while (reader.pos < end2) {
|
|
402
|
+
message.dropRatiosPerPack.push(longToNumber(reader.uint64() as Long));
|
|
403
|
+
}
|
|
404
|
+
} else {
|
|
405
|
+
message.dropRatiosPerPack.push(longToNumber(reader.uint64() as Long));
|
|
406
|
+
}
|
|
407
|
+
break;
|
|
390
408
|
default:
|
|
391
409
|
reader.skipType(tag & 7);
|
|
392
410
|
break;
|
|
@@ -397,29 +415,38 @@ export const BoosterPack = {
|
|
|
397
415
|
|
|
398
416
|
fromJSON(object: any): BoosterPack {
|
|
399
417
|
return {
|
|
400
|
-
|
|
418
|
+
setId: isSet(object.setId) ? Number(object.setId) : 0,
|
|
401
419
|
timeStamp: isSet(object.timeStamp) ? Number(object.timeStamp) : 0,
|
|
402
420
|
raritiesPerPack: Array.isArray(object?.raritiesPerPack) ? object.raritiesPerPack.map((e: any) => Number(e)) : [],
|
|
421
|
+
dropRatiosPerPack: Array.isArray(object?.dropRatiosPerPack)
|
|
422
|
+
? object.dropRatiosPerPack.map((e: any) => Number(e))
|
|
423
|
+
: [],
|
|
403
424
|
};
|
|
404
425
|
},
|
|
405
426
|
|
|
406
427
|
toJSON(message: BoosterPack): unknown {
|
|
407
428
|
const obj: any = {};
|
|
408
|
-
message.
|
|
429
|
+
message.setId !== undefined && (obj.setId = Math.round(message.setId));
|
|
409
430
|
message.timeStamp !== undefined && (obj.timeStamp = Math.round(message.timeStamp));
|
|
410
431
|
if (message.raritiesPerPack) {
|
|
411
432
|
obj.raritiesPerPack = message.raritiesPerPack.map((e) => Math.round(e));
|
|
412
433
|
} else {
|
|
413
434
|
obj.raritiesPerPack = [];
|
|
414
435
|
}
|
|
436
|
+
if (message.dropRatiosPerPack) {
|
|
437
|
+
obj.dropRatiosPerPack = message.dropRatiosPerPack.map((e) => Math.round(e));
|
|
438
|
+
} else {
|
|
439
|
+
obj.dropRatiosPerPack = [];
|
|
440
|
+
}
|
|
415
441
|
return obj;
|
|
416
442
|
},
|
|
417
443
|
|
|
418
444
|
fromPartial<I extends Exact<DeepPartial<BoosterPack>, I>>(object: I): BoosterPack {
|
|
419
445
|
const message = createBaseBoosterPack();
|
|
420
|
-
message.
|
|
446
|
+
message.setId = object.setId ?? 0;
|
|
421
447
|
message.timeStamp = object.timeStamp ?? 0;
|
|
422
448
|
message.raritiesPerPack = object.raritiesPerPack?.map((e) => e) || [];
|
|
449
|
+
message.dropRatiosPerPack = object.dropRatiosPerPack?.map((e) => e) || [];
|
|
423
450
|
return message;
|
|
424
451
|
},
|
|
425
452
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Card } from "./types/cardchain/cardchain/card";
|
|
2
|
-
import { TimeStamp } from "./types/cardchain/cardchain/card";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { BoosterPack } from "./types/cardchain/cardchain/user";
|
|
18
|
-
import { AirDrops } from "./types/cardchain/cardchain/user";
|
|
19
|
-
import { VotingResults } from "./types/cardchain/cardchain/
|
|
20
|
-
import { VotingResult } from "./types/cardchain/cardchain/
|
|
21
|
-
import { SingleVote } from "./types/cardchain/cardchain/
|
|
22
|
-
import { VoteRight } from "./types/cardchain/cardchain/
|
|
23
|
-
export { Card, TimeStamp,
|
|
1
|
+
import { Card } from "./types/DecentralCardGame/cardchain/cardchain/card";
|
|
2
|
+
import { TimeStamp } from "./types/DecentralCardGame/cardchain/cardchain/card";
|
|
3
|
+
import { CopyrightProposal } from "./types/DecentralCardGame/cardchain/cardchain/copyright_proposal";
|
|
4
|
+
import { WrapClearResponse } from "./types/DecentralCardGame/cardchain/cardchain/council";
|
|
5
|
+
import { WrapHashResponse } from "./types/DecentralCardGame/cardchain/cardchain/council";
|
|
6
|
+
import { Image } from "./types/DecentralCardGame/cardchain/cardchain/image";
|
|
7
|
+
import { MatchPlayer } from "./types/DecentralCardGame/cardchain/cardchain/match";
|
|
8
|
+
import { MatchReporterProposal } from "./types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal";
|
|
9
|
+
import { Num } from "./types/DecentralCardGame/cardchain/cardchain/num";
|
|
10
|
+
import { Params } from "./types/DecentralCardGame/cardchain/cardchain/params";
|
|
11
|
+
import { IgnoreMatches } from "./types/DecentralCardGame/cardchain/cardchain/query";
|
|
12
|
+
import { IgnoreSellOffers } from "./types/DecentralCardGame/cardchain/cardchain/query";
|
|
13
|
+
import { QueryQServerResponse } from "./types/DecentralCardGame/cardchain/cardchain/query";
|
|
14
|
+
import { RunningAverage } from "./types/DecentralCardGame/cardchain/cardchain/running_average";
|
|
15
|
+
import { Set } from "./types/DecentralCardGame/cardchain/cardchain/set";
|
|
16
|
+
import { SetProposal } from "./types/DecentralCardGame/cardchain/cardchain/set_proposal";
|
|
17
|
+
import { BoosterPack } from "./types/DecentralCardGame/cardchain/cardchain/user";
|
|
18
|
+
import { AirDrops } from "./types/DecentralCardGame/cardchain/cardchain/user";
|
|
19
|
+
import { VotingResults } from "./types/DecentralCardGame/cardchain/cardchain/voting";
|
|
20
|
+
import { VotingResult } from "./types/DecentralCardGame/cardchain/cardchain/voting";
|
|
21
|
+
import { SingleVote } from "./types/DecentralCardGame/cardchain/cardchain/voting";
|
|
22
|
+
import { VoteRight } from "./types/DecentralCardGame/cardchain/cardchain/voting";
|
|
23
|
+
export { Card, TimeStamp, CopyrightProposal, WrapClearResponse, WrapHashResponse, Image, MatchPlayer, MatchReporterProposal, Num, Params, IgnoreMatches, IgnoreSellOffers, QueryQServerResponse, RunningAverage, Set, SetProposal, BoosterPack, AirDrops, VotingResults, VotingResult, SingleVote, VoteRight, };
|
|
@@ -1,32 +1,30 @@
|
|
|
1
|
-
import { Card } from "./types/cardchain/cardchain/card"
|
|
2
|
-
import { TimeStamp } from "./types/cardchain/cardchain/card"
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { BoosterPack } from "./types/cardchain/cardchain/user"
|
|
18
|
-
import { AirDrops } from "./types/cardchain/cardchain/user"
|
|
19
|
-
import { VotingResults } from "./types/cardchain/cardchain/
|
|
20
|
-
import { VotingResult } from "./types/cardchain/cardchain/
|
|
21
|
-
import { SingleVote } from "./types/cardchain/cardchain/
|
|
22
|
-
import { VoteRight } from "./types/cardchain/cardchain/
|
|
1
|
+
import { Card } from "./types/DecentralCardGame/cardchain/cardchain/card"
|
|
2
|
+
import { TimeStamp } from "./types/DecentralCardGame/cardchain/cardchain/card"
|
|
3
|
+
import { CopyrightProposal } from "./types/DecentralCardGame/cardchain/cardchain/copyright_proposal"
|
|
4
|
+
import { WrapClearResponse } from "./types/DecentralCardGame/cardchain/cardchain/council"
|
|
5
|
+
import { WrapHashResponse } from "./types/DecentralCardGame/cardchain/cardchain/council"
|
|
6
|
+
import { Image } from "./types/DecentralCardGame/cardchain/cardchain/image"
|
|
7
|
+
import { MatchPlayer } from "./types/DecentralCardGame/cardchain/cardchain/match"
|
|
8
|
+
import { MatchReporterProposal } from "./types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal"
|
|
9
|
+
import { Num } from "./types/DecentralCardGame/cardchain/cardchain/num"
|
|
10
|
+
import { Params } from "./types/DecentralCardGame/cardchain/cardchain/params"
|
|
11
|
+
import { IgnoreMatches } from "./types/DecentralCardGame/cardchain/cardchain/query"
|
|
12
|
+
import { IgnoreSellOffers } from "./types/DecentralCardGame/cardchain/cardchain/query"
|
|
13
|
+
import { QueryQServerResponse } from "./types/DecentralCardGame/cardchain/cardchain/query"
|
|
14
|
+
import { RunningAverage } from "./types/DecentralCardGame/cardchain/cardchain/running_average"
|
|
15
|
+
import { Set } from "./types/DecentralCardGame/cardchain/cardchain/set"
|
|
16
|
+
import { SetProposal } from "./types/DecentralCardGame/cardchain/cardchain/set_proposal"
|
|
17
|
+
import { BoosterPack } from "./types/DecentralCardGame/cardchain/cardchain/user"
|
|
18
|
+
import { AirDrops } from "./types/DecentralCardGame/cardchain/cardchain/user"
|
|
19
|
+
import { VotingResults } from "./types/DecentralCardGame/cardchain/cardchain/voting"
|
|
20
|
+
import { VotingResult } from "./types/DecentralCardGame/cardchain/cardchain/voting"
|
|
21
|
+
import { SingleVote } from "./types/DecentralCardGame/cardchain/cardchain/voting"
|
|
22
|
+
import { VoteRight } from "./types/DecentralCardGame/cardchain/cardchain/voting"
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
export {
|
|
26
26
|
Card,
|
|
27
27
|
TimeStamp,
|
|
28
|
-
Collection,
|
|
29
|
-
CollectionProposal,
|
|
30
28
|
CopyrightProposal,
|
|
31
29
|
WrapClearResponse,
|
|
32
30
|
WrapHashResponse,
|
|
@@ -39,6 +37,8 @@ export {
|
|
|
39
37
|
IgnoreSellOffers,
|
|
40
38
|
QueryQServerResponse,
|
|
41
39
|
RunningAverage,
|
|
40
|
+
Set,
|
|
41
|
+
SetProposal,
|
|
42
42
|
BoosterPack,
|
|
43
43
|
AirDrops,
|
|
44
44
|
VotingResults,
|
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
|
});
|