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
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Duration } from "../../google/protobuf/duration";
|
|
5
|
+
|
|
6
|
+
export const protobufPackage = "tendermint.types";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* ConsensusParams contains consensus critical parameters that determine the
|
|
10
|
+
* validity of blocks.
|
|
11
|
+
*/
|
|
12
|
+
export interface ConsensusParams {
|
|
13
|
+
block: BlockParams | undefined;
|
|
14
|
+
evidence: EvidenceParams | undefined;
|
|
15
|
+
validator: ValidatorParams | undefined;
|
|
16
|
+
version: VersionParams | undefined;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** BlockParams contains limits on the block size. */
|
|
20
|
+
export interface BlockParams {
|
|
21
|
+
/**
|
|
22
|
+
* Max block size, in bytes.
|
|
23
|
+
* Note: must be greater than 0
|
|
24
|
+
*/
|
|
25
|
+
maxBytes: number;
|
|
26
|
+
/**
|
|
27
|
+
* Max gas per block.
|
|
28
|
+
* Note: must be greater or equal to -1
|
|
29
|
+
*/
|
|
30
|
+
maxGas: number;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** EvidenceParams determine how we handle evidence of malfeasance. */
|
|
34
|
+
export interface EvidenceParams {
|
|
35
|
+
/**
|
|
36
|
+
* Max age of evidence, in blocks.
|
|
37
|
+
*
|
|
38
|
+
* The basic formula for calculating this is: MaxAgeDuration / {average block
|
|
39
|
+
* time}.
|
|
40
|
+
*/
|
|
41
|
+
maxAgeNumBlocks: number;
|
|
42
|
+
/**
|
|
43
|
+
* Max age of evidence, in time.
|
|
44
|
+
*
|
|
45
|
+
* It should correspond with an app's "unbonding period" or other similar
|
|
46
|
+
* mechanism for handling [Nothing-At-Stake
|
|
47
|
+
* attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
|
|
48
|
+
*/
|
|
49
|
+
maxAgeDuration:
|
|
50
|
+
| Duration
|
|
51
|
+
| undefined;
|
|
52
|
+
/**
|
|
53
|
+
* This sets the maximum size of total evidence in bytes that can be committed in a single block.
|
|
54
|
+
* and should fall comfortably under the max block bytes.
|
|
55
|
+
* Default is 1048576 or 1MB
|
|
56
|
+
*/
|
|
57
|
+
maxBytes: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* ValidatorParams restrict the public key types validators can use.
|
|
62
|
+
* NOTE: uses ABCI pubkey naming, not Amino names.
|
|
63
|
+
*/
|
|
64
|
+
export interface ValidatorParams {
|
|
65
|
+
pubKeyTypes: string[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** VersionParams contains the ABCI application version. */
|
|
69
|
+
export interface VersionParams {
|
|
70
|
+
app: number;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* HashedParams is a subset of ConsensusParams.
|
|
75
|
+
*
|
|
76
|
+
* It is hashed into the Header.ConsensusHash.
|
|
77
|
+
*/
|
|
78
|
+
export interface HashedParams {
|
|
79
|
+
blockMaxBytes: number;
|
|
80
|
+
blockMaxGas: number;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function createBaseConsensusParams(): ConsensusParams {
|
|
84
|
+
return { block: undefined, evidence: undefined, validator: undefined, version: undefined };
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export const ConsensusParams = {
|
|
88
|
+
encode(message: ConsensusParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
89
|
+
if (message.block !== undefined) {
|
|
90
|
+
BlockParams.encode(message.block, writer.uint32(10).fork()).ldelim();
|
|
91
|
+
}
|
|
92
|
+
if (message.evidence !== undefined) {
|
|
93
|
+
EvidenceParams.encode(message.evidence, writer.uint32(18).fork()).ldelim();
|
|
94
|
+
}
|
|
95
|
+
if (message.validator !== undefined) {
|
|
96
|
+
ValidatorParams.encode(message.validator, writer.uint32(26).fork()).ldelim();
|
|
97
|
+
}
|
|
98
|
+
if (message.version !== undefined) {
|
|
99
|
+
VersionParams.encode(message.version, writer.uint32(34).fork()).ldelim();
|
|
100
|
+
}
|
|
101
|
+
return writer;
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ConsensusParams {
|
|
105
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
106
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
107
|
+
const message = createBaseConsensusParams();
|
|
108
|
+
while (reader.pos < end) {
|
|
109
|
+
const tag = reader.uint32();
|
|
110
|
+
switch (tag >>> 3) {
|
|
111
|
+
case 1:
|
|
112
|
+
message.block = BlockParams.decode(reader, reader.uint32());
|
|
113
|
+
break;
|
|
114
|
+
case 2:
|
|
115
|
+
message.evidence = EvidenceParams.decode(reader, reader.uint32());
|
|
116
|
+
break;
|
|
117
|
+
case 3:
|
|
118
|
+
message.validator = ValidatorParams.decode(reader, reader.uint32());
|
|
119
|
+
break;
|
|
120
|
+
case 4:
|
|
121
|
+
message.version = VersionParams.decode(reader, reader.uint32());
|
|
122
|
+
break;
|
|
123
|
+
default:
|
|
124
|
+
reader.skipType(tag & 7);
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
fromJSON(object: any): ConsensusParams {
|
|
132
|
+
return {
|
|
133
|
+
block: isSet(object.block) ? BlockParams.fromJSON(object.block) : undefined,
|
|
134
|
+
evidence: isSet(object.evidence) ? EvidenceParams.fromJSON(object.evidence) : undefined,
|
|
135
|
+
validator: isSet(object.validator) ? ValidatorParams.fromJSON(object.validator) : undefined,
|
|
136
|
+
version: isSet(object.version) ? VersionParams.fromJSON(object.version) : undefined,
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
|
|
140
|
+
toJSON(message: ConsensusParams): unknown {
|
|
141
|
+
const obj: any = {};
|
|
142
|
+
message.block !== undefined && (obj.block = message.block ? BlockParams.toJSON(message.block) : undefined);
|
|
143
|
+
message.evidence !== undefined
|
|
144
|
+
&& (obj.evidence = message.evidence ? EvidenceParams.toJSON(message.evidence) : undefined);
|
|
145
|
+
message.validator !== undefined
|
|
146
|
+
&& (obj.validator = message.validator ? ValidatorParams.toJSON(message.validator) : undefined);
|
|
147
|
+
message.version !== undefined
|
|
148
|
+
&& (obj.version = message.version ? VersionParams.toJSON(message.version) : undefined);
|
|
149
|
+
return obj;
|
|
150
|
+
},
|
|
151
|
+
|
|
152
|
+
fromPartial<I extends Exact<DeepPartial<ConsensusParams>, I>>(object: I): ConsensusParams {
|
|
153
|
+
const message = createBaseConsensusParams();
|
|
154
|
+
message.block = (object.block !== undefined && object.block !== null)
|
|
155
|
+
? BlockParams.fromPartial(object.block)
|
|
156
|
+
: undefined;
|
|
157
|
+
message.evidence = (object.evidence !== undefined && object.evidence !== null)
|
|
158
|
+
? EvidenceParams.fromPartial(object.evidence)
|
|
159
|
+
: undefined;
|
|
160
|
+
message.validator = (object.validator !== undefined && object.validator !== null)
|
|
161
|
+
? ValidatorParams.fromPartial(object.validator)
|
|
162
|
+
: undefined;
|
|
163
|
+
message.version = (object.version !== undefined && object.version !== null)
|
|
164
|
+
? VersionParams.fromPartial(object.version)
|
|
165
|
+
: undefined;
|
|
166
|
+
return message;
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
function createBaseBlockParams(): BlockParams {
|
|
171
|
+
return { maxBytes: 0, maxGas: 0 };
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export const BlockParams = {
|
|
175
|
+
encode(message: BlockParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
176
|
+
if (message.maxBytes !== 0) {
|
|
177
|
+
writer.uint32(8).int64(message.maxBytes);
|
|
178
|
+
}
|
|
179
|
+
if (message.maxGas !== 0) {
|
|
180
|
+
writer.uint32(16).int64(message.maxGas);
|
|
181
|
+
}
|
|
182
|
+
return writer;
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BlockParams {
|
|
186
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
187
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
188
|
+
const message = createBaseBlockParams();
|
|
189
|
+
while (reader.pos < end) {
|
|
190
|
+
const tag = reader.uint32();
|
|
191
|
+
switch (tag >>> 3) {
|
|
192
|
+
case 1:
|
|
193
|
+
message.maxBytes = longToNumber(reader.int64() as Long);
|
|
194
|
+
break;
|
|
195
|
+
case 2:
|
|
196
|
+
message.maxGas = longToNumber(reader.int64() as Long);
|
|
197
|
+
break;
|
|
198
|
+
default:
|
|
199
|
+
reader.skipType(tag & 7);
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return message;
|
|
204
|
+
},
|
|
205
|
+
|
|
206
|
+
fromJSON(object: any): BlockParams {
|
|
207
|
+
return {
|
|
208
|
+
maxBytes: isSet(object.maxBytes) ? Number(object.maxBytes) : 0,
|
|
209
|
+
maxGas: isSet(object.maxGas) ? Number(object.maxGas) : 0,
|
|
210
|
+
};
|
|
211
|
+
},
|
|
212
|
+
|
|
213
|
+
toJSON(message: BlockParams): unknown {
|
|
214
|
+
const obj: any = {};
|
|
215
|
+
message.maxBytes !== undefined && (obj.maxBytes = Math.round(message.maxBytes));
|
|
216
|
+
message.maxGas !== undefined && (obj.maxGas = Math.round(message.maxGas));
|
|
217
|
+
return obj;
|
|
218
|
+
},
|
|
219
|
+
|
|
220
|
+
fromPartial<I extends Exact<DeepPartial<BlockParams>, I>>(object: I): BlockParams {
|
|
221
|
+
const message = createBaseBlockParams();
|
|
222
|
+
message.maxBytes = object.maxBytes ?? 0;
|
|
223
|
+
message.maxGas = object.maxGas ?? 0;
|
|
224
|
+
return message;
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
function createBaseEvidenceParams(): EvidenceParams {
|
|
229
|
+
return { maxAgeNumBlocks: 0, maxAgeDuration: undefined, maxBytes: 0 };
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export const EvidenceParams = {
|
|
233
|
+
encode(message: EvidenceParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
234
|
+
if (message.maxAgeNumBlocks !== 0) {
|
|
235
|
+
writer.uint32(8).int64(message.maxAgeNumBlocks);
|
|
236
|
+
}
|
|
237
|
+
if (message.maxAgeDuration !== undefined) {
|
|
238
|
+
Duration.encode(message.maxAgeDuration, writer.uint32(18).fork()).ldelim();
|
|
239
|
+
}
|
|
240
|
+
if (message.maxBytes !== 0) {
|
|
241
|
+
writer.uint32(24).int64(message.maxBytes);
|
|
242
|
+
}
|
|
243
|
+
return writer;
|
|
244
|
+
},
|
|
245
|
+
|
|
246
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EvidenceParams {
|
|
247
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
248
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
249
|
+
const message = createBaseEvidenceParams();
|
|
250
|
+
while (reader.pos < end) {
|
|
251
|
+
const tag = reader.uint32();
|
|
252
|
+
switch (tag >>> 3) {
|
|
253
|
+
case 1:
|
|
254
|
+
message.maxAgeNumBlocks = longToNumber(reader.int64() as Long);
|
|
255
|
+
break;
|
|
256
|
+
case 2:
|
|
257
|
+
message.maxAgeDuration = Duration.decode(reader, reader.uint32());
|
|
258
|
+
break;
|
|
259
|
+
case 3:
|
|
260
|
+
message.maxBytes = longToNumber(reader.int64() as Long);
|
|
261
|
+
break;
|
|
262
|
+
default:
|
|
263
|
+
reader.skipType(tag & 7);
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return message;
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
fromJSON(object: any): EvidenceParams {
|
|
271
|
+
return {
|
|
272
|
+
maxAgeNumBlocks: isSet(object.maxAgeNumBlocks) ? Number(object.maxAgeNumBlocks) : 0,
|
|
273
|
+
maxAgeDuration: isSet(object.maxAgeDuration) ? Duration.fromJSON(object.maxAgeDuration) : undefined,
|
|
274
|
+
maxBytes: isSet(object.maxBytes) ? Number(object.maxBytes) : 0,
|
|
275
|
+
};
|
|
276
|
+
},
|
|
277
|
+
|
|
278
|
+
toJSON(message: EvidenceParams): unknown {
|
|
279
|
+
const obj: any = {};
|
|
280
|
+
message.maxAgeNumBlocks !== undefined && (obj.maxAgeNumBlocks = Math.round(message.maxAgeNumBlocks));
|
|
281
|
+
message.maxAgeDuration !== undefined
|
|
282
|
+
&& (obj.maxAgeDuration = message.maxAgeDuration ? Duration.toJSON(message.maxAgeDuration) : undefined);
|
|
283
|
+
message.maxBytes !== undefined && (obj.maxBytes = Math.round(message.maxBytes));
|
|
284
|
+
return obj;
|
|
285
|
+
},
|
|
286
|
+
|
|
287
|
+
fromPartial<I extends Exact<DeepPartial<EvidenceParams>, I>>(object: I): EvidenceParams {
|
|
288
|
+
const message = createBaseEvidenceParams();
|
|
289
|
+
message.maxAgeNumBlocks = object.maxAgeNumBlocks ?? 0;
|
|
290
|
+
message.maxAgeDuration = (object.maxAgeDuration !== undefined && object.maxAgeDuration !== null)
|
|
291
|
+
? Duration.fromPartial(object.maxAgeDuration)
|
|
292
|
+
: undefined;
|
|
293
|
+
message.maxBytes = object.maxBytes ?? 0;
|
|
294
|
+
return message;
|
|
295
|
+
},
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
function createBaseValidatorParams(): ValidatorParams {
|
|
299
|
+
return { pubKeyTypes: [] };
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export const ValidatorParams = {
|
|
303
|
+
encode(message: ValidatorParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
304
|
+
for (const v of message.pubKeyTypes) {
|
|
305
|
+
writer.uint32(10).string(v!);
|
|
306
|
+
}
|
|
307
|
+
return writer;
|
|
308
|
+
},
|
|
309
|
+
|
|
310
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorParams {
|
|
311
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
312
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
313
|
+
const message = createBaseValidatorParams();
|
|
314
|
+
while (reader.pos < end) {
|
|
315
|
+
const tag = reader.uint32();
|
|
316
|
+
switch (tag >>> 3) {
|
|
317
|
+
case 1:
|
|
318
|
+
message.pubKeyTypes.push(reader.string());
|
|
319
|
+
break;
|
|
320
|
+
default:
|
|
321
|
+
reader.skipType(tag & 7);
|
|
322
|
+
break;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
return message;
|
|
326
|
+
},
|
|
327
|
+
|
|
328
|
+
fromJSON(object: any): ValidatorParams {
|
|
329
|
+
return { pubKeyTypes: Array.isArray(object?.pubKeyTypes) ? object.pubKeyTypes.map((e: any) => String(e)) : [] };
|
|
330
|
+
},
|
|
331
|
+
|
|
332
|
+
toJSON(message: ValidatorParams): unknown {
|
|
333
|
+
const obj: any = {};
|
|
334
|
+
if (message.pubKeyTypes) {
|
|
335
|
+
obj.pubKeyTypes = message.pubKeyTypes.map((e) => e);
|
|
336
|
+
} else {
|
|
337
|
+
obj.pubKeyTypes = [];
|
|
338
|
+
}
|
|
339
|
+
return obj;
|
|
340
|
+
},
|
|
341
|
+
|
|
342
|
+
fromPartial<I extends Exact<DeepPartial<ValidatorParams>, I>>(object: I): ValidatorParams {
|
|
343
|
+
const message = createBaseValidatorParams();
|
|
344
|
+
message.pubKeyTypes = object.pubKeyTypes?.map((e) => e) || [];
|
|
345
|
+
return message;
|
|
346
|
+
},
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
function createBaseVersionParams(): VersionParams {
|
|
350
|
+
return { app: 0 };
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export const VersionParams = {
|
|
354
|
+
encode(message: VersionParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
355
|
+
if (message.app !== 0) {
|
|
356
|
+
writer.uint32(8).uint64(message.app);
|
|
357
|
+
}
|
|
358
|
+
return writer;
|
|
359
|
+
},
|
|
360
|
+
|
|
361
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): VersionParams {
|
|
362
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
363
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
364
|
+
const message = createBaseVersionParams();
|
|
365
|
+
while (reader.pos < end) {
|
|
366
|
+
const tag = reader.uint32();
|
|
367
|
+
switch (tag >>> 3) {
|
|
368
|
+
case 1:
|
|
369
|
+
message.app = longToNumber(reader.uint64() as Long);
|
|
370
|
+
break;
|
|
371
|
+
default:
|
|
372
|
+
reader.skipType(tag & 7);
|
|
373
|
+
break;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
return message;
|
|
377
|
+
},
|
|
378
|
+
|
|
379
|
+
fromJSON(object: any): VersionParams {
|
|
380
|
+
return { app: isSet(object.app) ? Number(object.app) : 0 };
|
|
381
|
+
},
|
|
382
|
+
|
|
383
|
+
toJSON(message: VersionParams): unknown {
|
|
384
|
+
const obj: any = {};
|
|
385
|
+
message.app !== undefined && (obj.app = Math.round(message.app));
|
|
386
|
+
return obj;
|
|
387
|
+
},
|
|
388
|
+
|
|
389
|
+
fromPartial<I extends Exact<DeepPartial<VersionParams>, I>>(object: I): VersionParams {
|
|
390
|
+
const message = createBaseVersionParams();
|
|
391
|
+
message.app = object.app ?? 0;
|
|
392
|
+
return message;
|
|
393
|
+
},
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
function createBaseHashedParams(): HashedParams {
|
|
397
|
+
return { blockMaxBytes: 0, blockMaxGas: 0 };
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export const HashedParams = {
|
|
401
|
+
encode(message: HashedParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
402
|
+
if (message.blockMaxBytes !== 0) {
|
|
403
|
+
writer.uint32(8).int64(message.blockMaxBytes);
|
|
404
|
+
}
|
|
405
|
+
if (message.blockMaxGas !== 0) {
|
|
406
|
+
writer.uint32(16).int64(message.blockMaxGas);
|
|
407
|
+
}
|
|
408
|
+
return writer;
|
|
409
|
+
},
|
|
410
|
+
|
|
411
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): HashedParams {
|
|
412
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
413
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
414
|
+
const message = createBaseHashedParams();
|
|
415
|
+
while (reader.pos < end) {
|
|
416
|
+
const tag = reader.uint32();
|
|
417
|
+
switch (tag >>> 3) {
|
|
418
|
+
case 1:
|
|
419
|
+
message.blockMaxBytes = longToNumber(reader.int64() as Long);
|
|
420
|
+
break;
|
|
421
|
+
case 2:
|
|
422
|
+
message.blockMaxGas = longToNumber(reader.int64() as Long);
|
|
423
|
+
break;
|
|
424
|
+
default:
|
|
425
|
+
reader.skipType(tag & 7);
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
return message;
|
|
430
|
+
},
|
|
431
|
+
|
|
432
|
+
fromJSON(object: any): HashedParams {
|
|
433
|
+
return {
|
|
434
|
+
blockMaxBytes: isSet(object.blockMaxBytes) ? Number(object.blockMaxBytes) : 0,
|
|
435
|
+
blockMaxGas: isSet(object.blockMaxGas) ? Number(object.blockMaxGas) : 0,
|
|
436
|
+
};
|
|
437
|
+
},
|
|
438
|
+
|
|
439
|
+
toJSON(message: HashedParams): unknown {
|
|
440
|
+
const obj: any = {};
|
|
441
|
+
message.blockMaxBytes !== undefined && (obj.blockMaxBytes = Math.round(message.blockMaxBytes));
|
|
442
|
+
message.blockMaxGas !== undefined && (obj.blockMaxGas = Math.round(message.blockMaxGas));
|
|
443
|
+
return obj;
|
|
444
|
+
},
|
|
445
|
+
|
|
446
|
+
fromPartial<I extends Exact<DeepPartial<HashedParams>, I>>(object: I): HashedParams {
|
|
447
|
+
const message = createBaseHashedParams();
|
|
448
|
+
message.blockMaxBytes = object.blockMaxBytes ?? 0;
|
|
449
|
+
message.blockMaxGas = object.blockMaxGas ?? 0;
|
|
450
|
+
return message;
|
|
451
|
+
},
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
declare var self: any | undefined;
|
|
455
|
+
declare var window: any | undefined;
|
|
456
|
+
declare var global: any | undefined;
|
|
457
|
+
var globalThis: any = (() => {
|
|
458
|
+
if (typeof globalThis !== "undefined") {
|
|
459
|
+
return globalThis;
|
|
460
|
+
}
|
|
461
|
+
if (typeof self !== "undefined") {
|
|
462
|
+
return self;
|
|
463
|
+
}
|
|
464
|
+
if (typeof window !== "undefined") {
|
|
465
|
+
return window;
|
|
466
|
+
}
|
|
467
|
+
if (typeof global !== "undefined") {
|
|
468
|
+
return global;
|
|
469
|
+
}
|
|
470
|
+
throw "Unable to locate global object";
|
|
471
|
+
})();
|
|
472
|
+
|
|
473
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
474
|
+
|
|
475
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
476
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
477
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
478
|
+
: Partial<T>;
|
|
479
|
+
|
|
480
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
481
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
482
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
483
|
+
|
|
484
|
+
function longToNumber(long: Long): number {
|
|
485
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
486
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
487
|
+
}
|
|
488
|
+
return long.toNumber();
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
if (_m0.util.Long !== Long) {
|
|
492
|
+
_m0.util.Long = Long as any;
|
|
493
|
+
_m0.configure();
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
function isSet(value: any): boolean {
|
|
497
|
+
return value !== null && value !== undefined;
|
|
498
|
+
}
|
|
@@ -21,4 +21,5 @@ import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking";
|
|
|
21
21
|
import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking";
|
|
22
22
|
import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking";
|
|
23
23
|
import { Pool } from "./types/cosmos/staking/v1beta1/staking";
|
|
24
|
-
|
|
24
|
+
import { ValidatorUpdates } from "./types/cosmos/staking/v1beta1/staking";
|
|
25
|
+
export { StakeAuthorization, StakeAuthorization_Validators, LastValidatorPower, HistoricalInfo, CommissionRates, Commission, Description, Validator, ValAddresses, DVPair, DVPairs, DVVTriplet, DVVTriplets, Delegation, UnbondingDelegation, UnbondingDelegationEntry, RedelegationEntry, Redelegation, Params, DelegationResponse, RedelegationEntryResponse, RedelegationResponse, Pool, ValidatorUpdates, };
|
|
@@ -21,6 +21,7 @@ import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"
|
|
|
21
21
|
import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"
|
|
22
22
|
import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"
|
|
23
23
|
import { Pool } from "./types/cosmos/staking/v1beta1/staking"
|
|
24
|
+
import { ValidatorUpdates } from "./types/cosmos/staking/v1beta1/staking"
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
export {
|
|
@@ -47,5 +48,6 @@ export {
|
|
|
47
48
|
RedelegationEntryResponse,
|
|
48
49
|
RedelegationResponse,
|
|
49
50
|
Pool,
|
|
51
|
+
ValidatorUpdates,
|
|
50
52
|
|
|
51
53
|
}
|
|
@@ -32,8 +32,8 @@ export var TypesSignedMsgType;
|
|
|
32
32
|
* BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.
|
|
33
33
|
|
|
34
34
|
- BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering
|
|
35
|
-
- BROADCAST_MODE_BLOCK:
|
|
36
|
-
|
|
35
|
+
- BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead,
|
|
36
|
+
BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards.
|
|
37
37
|
- BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
|
|
38
38
|
a CheckTx execution response only.
|
|
39
39
|
- BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
|
|
@@ -176,6 +176,70 @@ export class HttpClient {
|
|
|
176
176
|
export class Api extends HttpClient {
|
|
177
177
|
constructor() {
|
|
178
178
|
super(...arguments);
|
|
179
|
+
/**
|
|
180
|
+
* @description Since: cosmos-sdk 0.47
|
|
181
|
+
*
|
|
182
|
+
* @tags Service
|
|
183
|
+
* @name ServiceTxDecode
|
|
184
|
+
* @summary TxDecode decodes the transaction.
|
|
185
|
+
* @request POST:/cosmos/tx/v1beta1/decode
|
|
186
|
+
*/
|
|
187
|
+
this.serviceTxDecode = (body, params = {}) => this.request({
|
|
188
|
+
path: `/cosmos/tx/v1beta1/decode`,
|
|
189
|
+
method: "POST",
|
|
190
|
+
body: body,
|
|
191
|
+
type: ContentType.Json,
|
|
192
|
+
format: "json",
|
|
193
|
+
...params,
|
|
194
|
+
});
|
|
195
|
+
/**
|
|
196
|
+
* @description Since: cosmos-sdk 0.47
|
|
197
|
+
*
|
|
198
|
+
* @tags Service
|
|
199
|
+
* @name ServiceTxDecodeAmino
|
|
200
|
+
* @summary TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON.
|
|
201
|
+
* @request POST:/cosmos/tx/v1beta1/decode/amino
|
|
202
|
+
*/
|
|
203
|
+
this.serviceTxDecodeAmino = (body, params = {}) => this.request({
|
|
204
|
+
path: `/cosmos/tx/v1beta1/decode/amino`,
|
|
205
|
+
method: "POST",
|
|
206
|
+
body: body,
|
|
207
|
+
type: ContentType.Json,
|
|
208
|
+
format: "json",
|
|
209
|
+
...params,
|
|
210
|
+
});
|
|
211
|
+
/**
|
|
212
|
+
* @description Since: cosmos-sdk 0.47
|
|
213
|
+
*
|
|
214
|
+
* @tags Service
|
|
215
|
+
* @name ServiceTxEncode
|
|
216
|
+
* @summary TxEncode encodes the transaction.
|
|
217
|
+
* @request POST:/cosmos/tx/v1beta1/encode
|
|
218
|
+
*/
|
|
219
|
+
this.serviceTxEncode = (body, params = {}) => this.request({
|
|
220
|
+
path: `/cosmos/tx/v1beta1/encode`,
|
|
221
|
+
method: "POST",
|
|
222
|
+
body: body,
|
|
223
|
+
type: ContentType.Json,
|
|
224
|
+
format: "json",
|
|
225
|
+
...params,
|
|
226
|
+
});
|
|
227
|
+
/**
|
|
228
|
+
* @description Since: cosmos-sdk 0.47
|
|
229
|
+
*
|
|
230
|
+
* @tags Service
|
|
231
|
+
* @name ServiceTxEncodeAmino
|
|
232
|
+
* @summary TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes.
|
|
233
|
+
* @request POST:/cosmos/tx/v1beta1/encode/amino
|
|
234
|
+
*/
|
|
235
|
+
this.serviceTxEncodeAmino = (body, params = {}) => this.request({
|
|
236
|
+
path: `/cosmos/tx/v1beta1/encode/amino`,
|
|
237
|
+
method: "POST",
|
|
238
|
+
body: body,
|
|
239
|
+
type: ContentType.Json,
|
|
240
|
+
format: "json",
|
|
241
|
+
...params,
|
|
242
|
+
});
|
|
179
243
|
/**
|
|
180
244
|
* No description
|
|
181
245
|
*
|