decentralcardgame-cardchain-client-ts 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DecentralCardGame.cardchain.cardchain/module.js +322 -322
- package/DecentralCardGame.cardchain.cardchain/module.ts +486 -486
- package/DecentralCardGame.cardchain.cardchain/registry.js +71 -71
- package/DecentralCardGame.cardchain.cardchain/registry.ts +71 -71
- package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/rest.ts +8 -3
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +44 -13
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +44 -13
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +2 -0
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +2 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +22 -22
- package/DecentralCardGame.cardchain.cardchain/types.ts +22 -22
- package/client.js +7 -7
- package/client.ts +11 -10
- package/cosmos.auth.v1beta1/module.js +2 -0
- package/cosmos.auth.v1beta1/module.ts +2 -0
- package/cosmos.auth.v1beta1/rest.js +18 -3
- package/cosmos.auth.v1beta1/rest.ts +113 -3
- package/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.auth.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +104 -3
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +157 -4
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +172 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.auth.v1beta1/types.js +2 -1
- package/cosmos.auth.v1beta1/types.ts +2 -0
- package/cosmos.authz.v1beta1/module.js +19 -19
- package/cosmos.authz.v1beta1/module.ts +29 -29
- package/cosmos.authz.v1beta1/registry.js +2 -2
- package/cosmos.authz.v1beta1/registry.ts +2 -2
- package/cosmos.authz.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.authz.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
- package/cosmos.bank.v1beta1/module.js +16 -16
- package/cosmos.bank.v1beta1/module.ts +24 -24
- package/cosmos.bank.v1beta1/registry.js +2 -2
- package/cosmos.bank.v1beta1/registry.ts +2 -2
- package/cosmos.bank.v1beta1/rest.js +37 -6
- package/cosmos.bank.v1beta1/rest.ts +99 -6
- package/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.bank.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +18 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +24 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +9 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +18 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +25 -4
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +230 -1
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +356 -5
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +206 -1
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +305 -1
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
- package/cosmos.base.tendermint.v1beta1/rest.ts +18 -27
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
- package/cosmos.consensus.v1/index.js +5 -0
- package/cosmos.consensus.v1/index.ts +6 -0
- package/cosmos.consensus.v1/module.js +81 -0
- package/cosmos.consensus.v1/module.ts +129 -0
- package/cosmos.consensus.v1/registry.js +5 -0
- package/cosmos.consensus.v1/registry.ts +9 -0
- package/cosmos.consensus.v1/rest.js +100 -0
- package/cosmos.consensus.v1/rest.ts +268 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/http.js +260 -0
- package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
- package/cosmos.consensus.v1/types.js +1 -0
- package/cosmos.consensus.v1/types.ts +5 -0
- package/cosmos.crisis.v1beta1/module.js +24 -1
- package/cosmos.crisis.v1beta1/module.ts +34 -1
- package/cosmos.crisis.v1beta1/registry.js +2 -0
- package/cosmos.crisis.v1beta1/registry.ts +2 -0
- package/cosmos.crisis.v1beta1/rest.ts +19 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +95 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
- package/cosmos.distribution.v1beta1/module.js +63 -17
- package/cosmos.distribution.v1beta1/module.ts +91 -25
- package/cosmos.distribution.v1beta1/registry.js +8 -4
- package/cosmos.distribution.v1beta1/registry.ts +8 -4
- package/cosmos.distribution.v1beta1/rest.js +14 -0
- package/cosmos.distribution.v1beta1/rest.ts +66 -7
- package/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +120 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +199 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
- package/cosmos.evidence.v1beta1/rest.js +4 -3
- package/cosmos.evidence.v1beta1/rest.ts +4 -3
- package/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +13 -2
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
- package/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/module.js +44 -19
- package/cosmos.gov.v1/module.ts +62 -27
- package/cosmos.gov.v1/registry.js +4 -2
- package/cosmos.gov.v1/registry.ts +4 -2
- package/cosmos.gov.v1/rest.ts +155 -41
- package/cosmos.gov.v1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +13 -1
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +179 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +13 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +113 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
- package/cosmos.gov.v1/types.js +2 -1
- package/cosmos.gov.v1/types.ts +2 -0
- package/cosmos.gov.v1beta1/module.js +24 -24
- package/cosmos.gov.v1beta1/module.ts +36 -36
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +65 -96
- package/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
- package/cosmos.group.v1/module.js +98 -96
- package/cosmos.group.v1/module.ts +149 -147
- package/cosmos.group.v1/registry.js +16 -16
- package/cosmos.group.v1/registry.ts +16 -16
- package/cosmos.group.v1/rest.js +3 -3
- package/cosmos.group.v1/rest.ts +29 -9
- package/cosmos.group.v1/types/amino/amino.js +2 -0
- package/cosmos.group.v1/types/amino/amino.ts +2 -0
- package/cosmos.group.v1/types/cosmos/group/v1/events.js +65 -1
- package/cosmos.group.v1/types/cosmos/group/v1/events.ts +89 -1
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +52 -34
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +20 -0
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
- package/cosmos.group.v1/types.js +2 -1
- package/cosmos.group.v1/types.ts +2 -0
- package/cosmos.mint.v1beta1/rest.ts +9 -1
- package/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.nft.v1beta1/rest.ts +18 -22
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/rest.ts +8 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +94 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
- package/cosmos.staking.v1beta1/module.js +34 -32
- package/cosmos.staking.v1beta1/module.ts +50 -48
- package/cosmos.staking.v1beta1/registry.js +6 -6
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.js +7 -7
- package/cosmos.staking.v1beta1/rest.ts +49 -8
- package/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +180 -2
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +94 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
- package/cosmos.staking.v1beta1/types.js +2 -1
- package/cosmos.staking.v1beta1/types.ts +2 -0
- package/cosmos.tx.v1beta1/rest.js +66 -2
- package/cosmos.tx.v1beta1/rest.ts +177 -16
- package/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +360 -2
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +592 -266
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +703 -332
- package/cosmos.tx.v1beta1/types/tendermint/types/params.js +8 -17
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
- package/cosmos.upgrade.v1beta1/rest.ts +0 -1
- package/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/cosmos.vesting.v1beta1/module.js +19 -19
- package/cosmos.vesting.v1beta1/module.ts +29 -29
- package/cosmos.vesting.v1beta1/registry.js +2 -2
- package/cosmos.vesting.v1beta1/registry.ts +2 -2
- package/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +13 -2
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
- package/ibc.applications.transfer.v1/module.js +5 -27
- package/ibc.applications.transfer.v1/module.ts +5 -34
- package/ibc.applications.transfer.v1/registry.js +1 -4
- package/ibc.applications.transfer.v1/registry.ts +0 -2
- package/ibc.applications.transfer.v1/rest.js +15 -1
- package/ibc.applications.transfer.v1/rest.ts +30 -1
- package/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
- package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +16 -1
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +91 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.applications.transfer.v1/types.js +3 -1
- package/ibc.applications.transfer.v1/types.ts +4 -0
- package/ibc.core.channel.v1/rest.ts +1 -0
- package/ibc.core.channel.v1/types/amino/amino.js +2 -0
- package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +13 -2
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/rest.ts +5 -1
- package/ibc.core.client.v1/types/amino/amino.js +2 -0
- package/ibc.core.client.v1/types/amino/amino.ts +2 -0
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +9 -8
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
- package/ibc.core.connection.v1/types/amino/amino.js +2 -0
- package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
- package/ibc.core.connection.v1/types/{proofs.js → cosmos/ics23/v1/proofs.js} +1 -1
- package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +26 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
- package/index.js +3 -1
- package/index.ts +3 -1
- package/package.json +1 -4
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.ts +0 -0
|
@@ -4,7 +4,7 @@ import _m0 from "protobufjs/minimal";
|
|
|
4
4
|
import { Timestamp } from "../../google/protobuf/timestamp";
|
|
5
5
|
import { PublicKey } from "../crypto/keys";
|
|
6
6
|
import { ProofOps } from "../crypto/proof";
|
|
7
|
-
import {
|
|
7
|
+
import { ConsensusParams } from "../types/params";
|
|
8
8
|
import { Header } from "../types/types";
|
|
9
9
|
export const protobufPackage = "tendermint.abci";
|
|
10
10
|
export var CheckTxType;
|
|
@@ -38,39 +38,39 @@ export function checkTxTypeToJSON(object) {
|
|
|
38
38
|
return "UNRECOGNIZED";
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
export var
|
|
42
|
-
(function (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
})(
|
|
48
|
-
export function
|
|
41
|
+
export var MisbehaviorType;
|
|
42
|
+
(function (MisbehaviorType) {
|
|
43
|
+
MisbehaviorType[MisbehaviorType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
44
|
+
MisbehaviorType[MisbehaviorType["DUPLICATE_VOTE"] = 1] = "DUPLICATE_VOTE";
|
|
45
|
+
MisbehaviorType[MisbehaviorType["LIGHT_CLIENT_ATTACK"] = 2] = "LIGHT_CLIENT_ATTACK";
|
|
46
|
+
MisbehaviorType[MisbehaviorType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
47
|
+
})(MisbehaviorType || (MisbehaviorType = {}));
|
|
48
|
+
export function misbehaviorTypeFromJSON(object) {
|
|
49
49
|
switch (object) {
|
|
50
50
|
case 0:
|
|
51
51
|
case "UNKNOWN":
|
|
52
|
-
return
|
|
52
|
+
return MisbehaviorType.UNKNOWN;
|
|
53
53
|
case 1:
|
|
54
54
|
case "DUPLICATE_VOTE":
|
|
55
|
-
return
|
|
55
|
+
return MisbehaviorType.DUPLICATE_VOTE;
|
|
56
56
|
case 2:
|
|
57
57
|
case "LIGHT_CLIENT_ATTACK":
|
|
58
|
-
return
|
|
58
|
+
return MisbehaviorType.LIGHT_CLIENT_ATTACK;
|
|
59
59
|
case -1:
|
|
60
60
|
case "UNRECOGNIZED":
|
|
61
61
|
default:
|
|
62
|
-
return
|
|
62
|
+
return MisbehaviorType.UNRECOGNIZED;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
export function
|
|
65
|
+
export function misbehaviorTypeToJSON(object) {
|
|
66
66
|
switch (object) {
|
|
67
|
-
case
|
|
67
|
+
case MisbehaviorType.UNKNOWN:
|
|
68
68
|
return "UNKNOWN";
|
|
69
|
-
case
|
|
69
|
+
case MisbehaviorType.DUPLICATE_VOTE:
|
|
70
70
|
return "DUPLICATE_VOTE";
|
|
71
|
-
case
|
|
71
|
+
case MisbehaviorType.LIGHT_CLIENT_ATTACK:
|
|
72
72
|
return "LIGHT_CLIENT_ATTACK";
|
|
73
|
-
case
|
|
73
|
+
case MisbehaviorType.UNRECOGNIZED:
|
|
74
74
|
default:
|
|
75
75
|
return "UNRECOGNIZED";
|
|
76
76
|
}
|
|
@@ -197,12 +197,48 @@ export function responseApplySnapshotChunk_ResultToJSON(object) {
|
|
|
197
197
|
return "UNRECOGNIZED";
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
+
export var ResponseProcessProposal_ProposalStatus;
|
|
201
|
+
(function (ResponseProcessProposal_ProposalStatus) {
|
|
202
|
+
ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["UNKNOWN"] = 0] = "UNKNOWN";
|
|
203
|
+
ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["ACCEPT"] = 1] = "ACCEPT";
|
|
204
|
+
ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["REJECT"] = 2] = "REJECT";
|
|
205
|
+
ResponseProcessProposal_ProposalStatus[ResponseProcessProposal_ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
206
|
+
})(ResponseProcessProposal_ProposalStatus || (ResponseProcessProposal_ProposalStatus = {}));
|
|
207
|
+
export function responseProcessProposal_ProposalStatusFromJSON(object) {
|
|
208
|
+
switch (object) {
|
|
209
|
+
case 0:
|
|
210
|
+
case "UNKNOWN":
|
|
211
|
+
return ResponseProcessProposal_ProposalStatus.UNKNOWN;
|
|
212
|
+
case 1:
|
|
213
|
+
case "ACCEPT":
|
|
214
|
+
return ResponseProcessProposal_ProposalStatus.ACCEPT;
|
|
215
|
+
case 2:
|
|
216
|
+
case "REJECT":
|
|
217
|
+
return ResponseProcessProposal_ProposalStatus.REJECT;
|
|
218
|
+
case -1:
|
|
219
|
+
case "UNRECOGNIZED":
|
|
220
|
+
default:
|
|
221
|
+
return ResponseProcessProposal_ProposalStatus.UNRECOGNIZED;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
export function responseProcessProposal_ProposalStatusToJSON(object) {
|
|
225
|
+
switch (object) {
|
|
226
|
+
case ResponseProcessProposal_ProposalStatus.UNKNOWN:
|
|
227
|
+
return "UNKNOWN";
|
|
228
|
+
case ResponseProcessProposal_ProposalStatus.ACCEPT:
|
|
229
|
+
return "ACCEPT";
|
|
230
|
+
case ResponseProcessProposal_ProposalStatus.REJECT:
|
|
231
|
+
return "REJECT";
|
|
232
|
+
case ResponseProcessProposal_ProposalStatus.UNRECOGNIZED:
|
|
233
|
+
default:
|
|
234
|
+
return "UNRECOGNIZED";
|
|
235
|
+
}
|
|
236
|
+
}
|
|
200
237
|
function createBaseRequest() {
|
|
201
238
|
return {
|
|
202
239
|
echo: undefined,
|
|
203
240
|
flush: undefined,
|
|
204
241
|
info: undefined,
|
|
205
|
-
setOption: undefined,
|
|
206
242
|
initChain: undefined,
|
|
207
243
|
query: undefined,
|
|
208
244
|
beginBlock: undefined,
|
|
@@ -214,6 +250,8 @@ function createBaseRequest() {
|
|
|
214
250
|
offerSnapshot: undefined,
|
|
215
251
|
loadSnapshotChunk: undefined,
|
|
216
252
|
applySnapshotChunk: undefined,
|
|
253
|
+
prepareProposal: undefined,
|
|
254
|
+
processProposal: undefined,
|
|
217
255
|
};
|
|
218
256
|
}
|
|
219
257
|
export const Request = {
|
|
@@ -227,9 +265,6 @@ export const Request = {
|
|
|
227
265
|
if (message.info !== undefined) {
|
|
228
266
|
RequestInfo.encode(message.info, writer.uint32(26).fork()).ldelim();
|
|
229
267
|
}
|
|
230
|
-
if (message.setOption !== undefined) {
|
|
231
|
-
RequestSetOption.encode(message.setOption, writer.uint32(34).fork()).ldelim();
|
|
232
|
-
}
|
|
233
268
|
if (message.initChain !== undefined) {
|
|
234
269
|
RequestInitChain.encode(message.initChain, writer.uint32(42).fork()).ldelim();
|
|
235
270
|
}
|
|
@@ -263,6 +298,12 @@ export const Request = {
|
|
|
263
298
|
if (message.applySnapshotChunk !== undefined) {
|
|
264
299
|
RequestApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(122).fork()).ldelim();
|
|
265
300
|
}
|
|
301
|
+
if (message.prepareProposal !== undefined) {
|
|
302
|
+
RequestPrepareProposal.encode(message.prepareProposal, writer.uint32(130).fork()).ldelim();
|
|
303
|
+
}
|
|
304
|
+
if (message.processProposal !== undefined) {
|
|
305
|
+
RequestProcessProposal.encode(message.processProposal, writer.uint32(138).fork()).ldelim();
|
|
306
|
+
}
|
|
266
307
|
return writer;
|
|
267
308
|
},
|
|
268
309
|
decode(input, length) {
|
|
@@ -281,9 +322,6 @@ export const Request = {
|
|
|
281
322
|
case 3:
|
|
282
323
|
message.info = RequestInfo.decode(reader, reader.uint32());
|
|
283
324
|
break;
|
|
284
|
-
case 4:
|
|
285
|
-
message.setOption = RequestSetOption.decode(reader, reader.uint32());
|
|
286
|
-
break;
|
|
287
325
|
case 5:
|
|
288
326
|
message.initChain = RequestInitChain.decode(reader, reader.uint32());
|
|
289
327
|
break;
|
|
@@ -317,6 +355,12 @@ export const Request = {
|
|
|
317
355
|
case 15:
|
|
318
356
|
message.applySnapshotChunk = RequestApplySnapshotChunk.decode(reader, reader.uint32());
|
|
319
357
|
break;
|
|
358
|
+
case 16:
|
|
359
|
+
message.prepareProposal = RequestPrepareProposal.decode(reader, reader.uint32());
|
|
360
|
+
break;
|
|
361
|
+
case 17:
|
|
362
|
+
message.processProposal = RequestProcessProposal.decode(reader, reader.uint32());
|
|
363
|
+
break;
|
|
320
364
|
default:
|
|
321
365
|
reader.skipType(tag & 7);
|
|
322
366
|
break;
|
|
@@ -329,7 +373,6 @@ export const Request = {
|
|
|
329
373
|
echo: isSet(object.echo) ? RequestEcho.fromJSON(object.echo) : undefined,
|
|
330
374
|
flush: isSet(object.flush) ? RequestFlush.fromJSON(object.flush) : undefined,
|
|
331
375
|
info: isSet(object.info) ? RequestInfo.fromJSON(object.info) : undefined,
|
|
332
|
-
setOption: isSet(object.setOption) ? RequestSetOption.fromJSON(object.setOption) : undefined,
|
|
333
376
|
initChain: isSet(object.initChain) ? RequestInitChain.fromJSON(object.initChain) : undefined,
|
|
334
377
|
query: isSet(object.query) ? RequestQuery.fromJSON(object.query) : undefined,
|
|
335
378
|
beginBlock: isSet(object.beginBlock) ? RequestBeginBlock.fromJSON(object.beginBlock) : undefined,
|
|
@@ -345,6 +388,12 @@ export const Request = {
|
|
|
345
388
|
applySnapshotChunk: isSet(object.applySnapshotChunk)
|
|
346
389
|
? RequestApplySnapshotChunk.fromJSON(object.applySnapshotChunk)
|
|
347
390
|
: undefined,
|
|
391
|
+
prepareProposal: isSet(object.prepareProposal)
|
|
392
|
+
? RequestPrepareProposal.fromJSON(object.prepareProposal)
|
|
393
|
+
: undefined,
|
|
394
|
+
processProposal: isSet(object.processProposal)
|
|
395
|
+
? RequestProcessProposal.fromJSON(object.processProposal)
|
|
396
|
+
: undefined,
|
|
348
397
|
};
|
|
349
398
|
},
|
|
350
399
|
toJSON(message) {
|
|
@@ -352,8 +401,6 @@ export const Request = {
|
|
|
352
401
|
message.echo !== undefined && (obj.echo = message.echo ? RequestEcho.toJSON(message.echo) : undefined);
|
|
353
402
|
message.flush !== undefined && (obj.flush = message.flush ? RequestFlush.toJSON(message.flush) : undefined);
|
|
354
403
|
message.info !== undefined && (obj.info = message.info ? RequestInfo.toJSON(message.info) : undefined);
|
|
355
|
-
message.setOption !== undefined
|
|
356
|
-
&& (obj.setOption = message.setOption ? RequestSetOption.toJSON(message.setOption) : undefined);
|
|
357
404
|
message.initChain !== undefined
|
|
358
405
|
&& (obj.initChain = message.initChain ? RequestInitChain.toJSON(message.initChain) : undefined);
|
|
359
406
|
message.query !== undefined && (obj.query = message.query ? RequestQuery.toJSON(message.query) : undefined);
|
|
@@ -376,6 +423,12 @@ export const Request = {
|
|
|
376
423
|
message.applySnapshotChunk !== undefined && (obj.applySnapshotChunk = message.applySnapshotChunk
|
|
377
424
|
? RequestApplySnapshotChunk.toJSON(message.applySnapshotChunk)
|
|
378
425
|
: undefined);
|
|
426
|
+
message.prepareProposal !== undefined && (obj.prepareProposal = message.prepareProposal
|
|
427
|
+
? RequestPrepareProposal.toJSON(message.prepareProposal)
|
|
428
|
+
: undefined);
|
|
429
|
+
message.processProposal !== undefined && (obj.processProposal = message.processProposal
|
|
430
|
+
? RequestProcessProposal.toJSON(message.processProposal)
|
|
431
|
+
: undefined);
|
|
379
432
|
return obj;
|
|
380
433
|
},
|
|
381
434
|
fromPartial(object) {
|
|
@@ -389,9 +442,6 @@ export const Request = {
|
|
|
389
442
|
message.info = (object.info !== undefined && object.info !== null)
|
|
390
443
|
? RequestInfo.fromPartial(object.info)
|
|
391
444
|
: undefined;
|
|
392
|
-
message.setOption = (object.setOption !== undefined && object.setOption !== null)
|
|
393
|
-
? RequestSetOption.fromPartial(object.setOption)
|
|
394
|
-
: undefined;
|
|
395
445
|
message.initChain = (object.initChain !== undefined && object.initChain !== null)
|
|
396
446
|
? RequestInitChain.fromPartial(object.initChain)
|
|
397
447
|
: undefined;
|
|
@@ -425,6 +475,12 @@ export const Request = {
|
|
|
425
475
|
message.applySnapshotChunk = (object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null)
|
|
426
476
|
? RequestApplySnapshotChunk.fromPartial(object.applySnapshotChunk)
|
|
427
477
|
: undefined;
|
|
478
|
+
message.prepareProposal = (object.prepareProposal !== undefined && object.prepareProposal !== null)
|
|
479
|
+
? RequestPrepareProposal.fromPartial(object.prepareProposal)
|
|
480
|
+
: undefined;
|
|
481
|
+
message.processProposal = (object.processProposal !== undefined && object.processProposal !== null)
|
|
482
|
+
? RequestProcessProposal.fromPartial(object.processProposal)
|
|
483
|
+
: undefined;
|
|
428
484
|
return message;
|
|
429
485
|
},
|
|
430
486
|
};
|
|
@@ -503,7 +559,7 @@ export const RequestFlush = {
|
|
|
503
559
|
},
|
|
504
560
|
};
|
|
505
561
|
function createBaseRequestInfo() {
|
|
506
|
-
return { version: "", blockVersion: 0, p2pVersion: 0 };
|
|
562
|
+
return { version: "", blockVersion: 0, p2pVersion: 0, abciVersion: "" };
|
|
507
563
|
}
|
|
508
564
|
export const RequestInfo = {
|
|
509
565
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -516,6 +572,9 @@ export const RequestInfo = {
|
|
|
516
572
|
if (message.p2pVersion !== 0) {
|
|
517
573
|
writer.uint32(24).uint64(message.p2pVersion);
|
|
518
574
|
}
|
|
575
|
+
if (message.abciVersion !== "") {
|
|
576
|
+
writer.uint32(34).string(message.abciVersion);
|
|
577
|
+
}
|
|
519
578
|
return writer;
|
|
520
579
|
},
|
|
521
580
|
decode(input, length) {
|
|
@@ -534,6 +593,9 @@ export const RequestInfo = {
|
|
|
534
593
|
case 3:
|
|
535
594
|
message.p2pVersion = longToNumber(reader.uint64());
|
|
536
595
|
break;
|
|
596
|
+
case 4:
|
|
597
|
+
message.abciVersion = reader.string();
|
|
598
|
+
break;
|
|
537
599
|
default:
|
|
538
600
|
reader.skipType(tag & 7);
|
|
539
601
|
break;
|
|
@@ -546,6 +608,7 @@ export const RequestInfo = {
|
|
|
546
608
|
version: isSet(object.version) ? String(object.version) : "",
|
|
547
609
|
blockVersion: isSet(object.blockVersion) ? Number(object.blockVersion) : 0,
|
|
548
610
|
p2pVersion: isSet(object.p2pVersion) ? Number(object.p2pVersion) : 0,
|
|
611
|
+
abciVersion: isSet(object.abciVersion) ? String(object.abciVersion) : "",
|
|
549
612
|
};
|
|
550
613
|
},
|
|
551
614
|
toJSON(message) {
|
|
@@ -553,6 +616,7 @@ export const RequestInfo = {
|
|
|
553
616
|
message.version !== undefined && (obj.version = message.version);
|
|
554
617
|
message.blockVersion !== undefined && (obj.blockVersion = Math.round(message.blockVersion));
|
|
555
618
|
message.p2pVersion !== undefined && (obj.p2pVersion = Math.round(message.p2pVersion));
|
|
619
|
+
message.abciVersion !== undefined && (obj.abciVersion = message.abciVersion);
|
|
556
620
|
return obj;
|
|
557
621
|
},
|
|
558
622
|
fromPartial(object) {
|
|
@@ -560,55 +624,7 @@ export const RequestInfo = {
|
|
|
560
624
|
message.version = object.version ?? "";
|
|
561
625
|
message.blockVersion = object.blockVersion ?? 0;
|
|
562
626
|
message.p2pVersion = object.p2pVersion ?? 0;
|
|
563
|
-
|
|
564
|
-
},
|
|
565
|
-
};
|
|
566
|
-
function createBaseRequestSetOption() {
|
|
567
|
-
return { key: "", value: "" };
|
|
568
|
-
}
|
|
569
|
-
export const RequestSetOption = {
|
|
570
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
571
|
-
if (message.key !== "") {
|
|
572
|
-
writer.uint32(10).string(message.key);
|
|
573
|
-
}
|
|
574
|
-
if (message.value !== "") {
|
|
575
|
-
writer.uint32(18).string(message.value);
|
|
576
|
-
}
|
|
577
|
-
return writer;
|
|
578
|
-
},
|
|
579
|
-
decode(input, length) {
|
|
580
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
581
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
582
|
-
const message = createBaseRequestSetOption();
|
|
583
|
-
while (reader.pos < end) {
|
|
584
|
-
const tag = reader.uint32();
|
|
585
|
-
switch (tag >>> 3) {
|
|
586
|
-
case 1:
|
|
587
|
-
message.key = reader.string();
|
|
588
|
-
break;
|
|
589
|
-
case 2:
|
|
590
|
-
message.value = reader.string();
|
|
591
|
-
break;
|
|
592
|
-
default:
|
|
593
|
-
reader.skipType(tag & 7);
|
|
594
|
-
break;
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
return message;
|
|
598
|
-
},
|
|
599
|
-
fromJSON(object) {
|
|
600
|
-
return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
|
|
601
|
-
},
|
|
602
|
-
toJSON(message) {
|
|
603
|
-
const obj = {};
|
|
604
|
-
message.key !== undefined && (obj.key = message.key);
|
|
605
|
-
message.value !== undefined && (obj.value = message.value);
|
|
606
|
-
return obj;
|
|
607
|
-
},
|
|
608
|
-
fromPartial(object) {
|
|
609
|
-
const message = createBaseRequestSetOption();
|
|
610
|
-
message.key = object.key ?? "";
|
|
611
|
-
message.value = object.value ?? "";
|
|
627
|
+
message.abciVersion = object.abciVersion ?? "";
|
|
612
628
|
return message;
|
|
613
629
|
},
|
|
614
630
|
};
|
|
@@ -801,10 +817,10 @@ export const RequestBeginBlock = {
|
|
|
801
817
|
Header.encode(message.header, writer.uint32(18).fork()).ldelim();
|
|
802
818
|
}
|
|
803
819
|
if (message.lastCommitInfo !== undefined) {
|
|
804
|
-
|
|
820
|
+
CommitInfo.encode(message.lastCommitInfo, writer.uint32(26).fork()).ldelim();
|
|
805
821
|
}
|
|
806
822
|
for (const v of message.byzantineValidators) {
|
|
807
|
-
|
|
823
|
+
Misbehavior.encode(v, writer.uint32(34).fork()).ldelim();
|
|
808
824
|
}
|
|
809
825
|
return writer;
|
|
810
826
|
},
|
|
@@ -822,10 +838,10 @@ export const RequestBeginBlock = {
|
|
|
822
838
|
message.header = Header.decode(reader, reader.uint32());
|
|
823
839
|
break;
|
|
824
840
|
case 3:
|
|
825
|
-
message.lastCommitInfo =
|
|
841
|
+
message.lastCommitInfo = CommitInfo.decode(reader, reader.uint32());
|
|
826
842
|
break;
|
|
827
843
|
case 4:
|
|
828
|
-
message.byzantineValidators.push(
|
|
844
|
+
message.byzantineValidators.push(Misbehavior.decode(reader, reader.uint32()));
|
|
829
845
|
break;
|
|
830
846
|
default:
|
|
831
847
|
reader.skipType(tag & 7);
|
|
@@ -838,9 +854,9 @@ export const RequestBeginBlock = {
|
|
|
838
854
|
return {
|
|
839
855
|
hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(),
|
|
840
856
|
header: isSet(object.header) ? Header.fromJSON(object.header) : undefined,
|
|
841
|
-
lastCommitInfo: isSet(object.lastCommitInfo) ?
|
|
857
|
+
lastCommitInfo: isSet(object.lastCommitInfo) ? CommitInfo.fromJSON(object.lastCommitInfo) : undefined,
|
|
842
858
|
byzantineValidators: Array.isArray(object?.byzantineValidators)
|
|
843
|
-
? object.byzantineValidators.map((e) =>
|
|
859
|
+
? object.byzantineValidators.map((e) => Misbehavior.fromJSON(e))
|
|
844
860
|
: [],
|
|
845
861
|
};
|
|
846
862
|
},
|
|
@@ -850,9 +866,9 @@ export const RequestBeginBlock = {
|
|
|
850
866
|
&& (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array()));
|
|
851
867
|
message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined);
|
|
852
868
|
message.lastCommitInfo !== undefined
|
|
853
|
-
&& (obj.lastCommitInfo = message.lastCommitInfo ?
|
|
869
|
+
&& (obj.lastCommitInfo = message.lastCommitInfo ? CommitInfo.toJSON(message.lastCommitInfo) : undefined);
|
|
854
870
|
if (message.byzantineValidators) {
|
|
855
|
-
obj.byzantineValidators = message.byzantineValidators.map((e) => e ?
|
|
871
|
+
obj.byzantineValidators = message.byzantineValidators.map((e) => e ? Misbehavior.toJSON(e) : undefined);
|
|
856
872
|
}
|
|
857
873
|
else {
|
|
858
874
|
obj.byzantineValidators = [];
|
|
@@ -866,9 +882,9 @@ export const RequestBeginBlock = {
|
|
|
866
882
|
? Header.fromPartial(object.header)
|
|
867
883
|
: undefined;
|
|
868
884
|
message.lastCommitInfo = (object.lastCommitInfo !== undefined && object.lastCommitInfo !== null)
|
|
869
|
-
?
|
|
885
|
+
? CommitInfo.fromPartial(object.lastCommitInfo)
|
|
870
886
|
: undefined;
|
|
871
|
-
message.byzantineValidators = object.byzantineValidators?.map((e) =>
|
|
887
|
+
message.byzantineValidators = object.byzantineValidators?.map((e) => Misbehavior.fromPartial(e)) || [];
|
|
872
888
|
return message;
|
|
873
889
|
},
|
|
874
890
|
};
|
|
@@ -1250,13 +1266,284 @@ export const RequestApplySnapshotChunk = {
|
|
|
1250
1266
|
return message;
|
|
1251
1267
|
},
|
|
1252
1268
|
};
|
|
1269
|
+
function createBaseRequestPrepareProposal() {
|
|
1270
|
+
return {
|
|
1271
|
+
maxTxBytes: 0,
|
|
1272
|
+
txs: [],
|
|
1273
|
+
localLastCommit: undefined,
|
|
1274
|
+
misbehavior: [],
|
|
1275
|
+
height: 0,
|
|
1276
|
+
time: undefined,
|
|
1277
|
+
nextValidatorsHash: new Uint8Array(),
|
|
1278
|
+
proposerAddress: new Uint8Array(),
|
|
1279
|
+
};
|
|
1280
|
+
}
|
|
1281
|
+
export const RequestPrepareProposal = {
|
|
1282
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1283
|
+
if (message.maxTxBytes !== 0) {
|
|
1284
|
+
writer.uint32(8).int64(message.maxTxBytes);
|
|
1285
|
+
}
|
|
1286
|
+
for (const v of message.txs) {
|
|
1287
|
+
writer.uint32(18).bytes(v);
|
|
1288
|
+
}
|
|
1289
|
+
if (message.localLastCommit !== undefined) {
|
|
1290
|
+
ExtendedCommitInfo.encode(message.localLastCommit, writer.uint32(26).fork()).ldelim();
|
|
1291
|
+
}
|
|
1292
|
+
for (const v of message.misbehavior) {
|
|
1293
|
+
Misbehavior.encode(v, writer.uint32(34).fork()).ldelim();
|
|
1294
|
+
}
|
|
1295
|
+
if (message.height !== 0) {
|
|
1296
|
+
writer.uint32(40).int64(message.height);
|
|
1297
|
+
}
|
|
1298
|
+
if (message.time !== undefined) {
|
|
1299
|
+
Timestamp.encode(toTimestamp(message.time), writer.uint32(50).fork()).ldelim();
|
|
1300
|
+
}
|
|
1301
|
+
if (message.nextValidatorsHash.length !== 0) {
|
|
1302
|
+
writer.uint32(58).bytes(message.nextValidatorsHash);
|
|
1303
|
+
}
|
|
1304
|
+
if (message.proposerAddress.length !== 0) {
|
|
1305
|
+
writer.uint32(66).bytes(message.proposerAddress);
|
|
1306
|
+
}
|
|
1307
|
+
return writer;
|
|
1308
|
+
},
|
|
1309
|
+
decode(input, length) {
|
|
1310
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1311
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1312
|
+
const message = createBaseRequestPrepareProposal();
|
|
1313
|
+
while (reader.pos < end) {
|
|
1314
|
+
const tag = reader.uint32();
|
|
1315
|
+
switch (tag >>> 3) {
|
|
1316
|
+
case 1:
|
|
1317
|
+
message.maxTxBytes = longToNumber(reader.int64());
|
|
1318
|
+
break;
|
|
1319
|
+
case 2:
|
|
1320
|
+
message.txs.push(reader.bytes());
|
|
1321
|
+
break;
|
|
1322
|
+
case 3:
|
|
1323
|
+
message.localLastCommit = ExtendedCommitInfo.decode(reader, reader.uint32());
|
|
1324
|
+
break;
|
|
1325
|
+
case 4:
|
|
1326
|
+
message.misbehavior.push(Misbehavior.decode(reader, reader.uint32()));
|
|
1327
|
+
break;
|
|
1328
|
+
case 5:
|
|
1329
|
+
message.height = longToNumber(reader.int64());
|
|
1330
|
+
break;
|
|
1331
|
+
case 6:
|
|
1332
|
+
message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1333
|
+
break;
|
|
1334
|
+
case 7:
|
|
1335
|
+
message.nextValidatorsHash = reader.bytes();
|
|
1336
|
+
break;
|
|
1337
|
+
case 8:
|
|
1338
|
+
message.proposerAddress = reader.bytes();
|
|
1339
|
+
break;
|
|
1340
|
+
default:
|
|
1341
|
+
reader.skipType(tag & 7);
|
|
1342
|
+
break;
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
return message;
|
|
1346
|
+
},
|
|
1347
|
+
fromJSON(object) {
|
|
1348
|
+
return {
|
|
1349
|
+
maxTxBytes: isSet(object.maxTxBytes) ? Number(object.maxTxBytes) : 0,
|
|
1350
|
+
txs: Array.isArray(object?.txs) ? object.txs.map((e) => bytesFromBase64(e)) : [],
|
|
1351
|
+
localLastCommit: isSet(object.localLastCommit) ? ExtendedCommitInfo.fromJSON(object.localLastCommit) : undefined,
|
|
1352
|
+
misbehavior: Array.isArray(object?.misbehavior)
|
|
1353
|
+
? object.misbehavior.map((e) => Misbehavior.fromJSON(e))
|
|
1354
|
+
: [],
|
|
1355
|
+
height: isSet(object.height) ? Number(object.height) : 0,
|
|
1356
|
+
time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
|
|
1357
|
+
nextValidatorsHash: isSet(object.nextValidatorsHash)
|
|
1358
|
+
? bytesFromBase64(object.nextValidatorsHash)
|
|
1359
|
+
: new Uint8Array(),
|
|
1360
|
+
proposerAddress: isSet(object.proposerAddress) ? bytesFromBase64(object.proposerAddress) : new Uint8Array(),
|
|
1361
|
+
};
|
|
1362
|
+
},
|
|
1363
|
+
toJSON(message) {
|
|
1364
|
+
const obj = {};
|
|
1365
|
+
message.maxTxBytes !== undefined && (obj.maxTxBytes = Math.round(message.maxTxBytes));
|
|
1366
|
+
if (message.txs) {
|
|
1367
|
+
obj.txs = message.txs.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
|
|
1368
|
+
}
|
|
1369
|
+
else {
|
|
1370
|
+
obj.txs = [];
|
|
1371
|
+
}
|
|
1372
|
+
message.localLastCommit !== undefined
|
|
1373
|
+
&& (obj.localLastCommit = message.localLastCommit
|
|
1374
|
+
? ExtendedCommitInfo.toJSON(message.localLastCommit)
|
|
1375
|
+
: undefined);
|
|
1376
|
+
if (message.misbehavior) {
|
|
1377
|
+
obj.misbehavior = message.misbehavior.map((e) => e ? Misbehavior.toJSON(e) : undefined);
|
|
1378
|
+
}
|
|
1379
|
+
else {
|
|
1380
|
+
obj.misbehavior = [];
|
|
1381
|
+
}
|
|
1382
|
+
message.height !== undefined && (obj.height = Math.round(message.height));
|
|
1383
|
+
message.time !== undefined && (obj.time = message.time.toISOString());
|
|
1384
|
+
message.nextValidatorsHash !== undefined
|
|
1385
|
+
&& (obj.nextValidatorsHash = base64FromBytes(message.nextValidatorsHash !== undefined ? message.nextValidatorsHash : new Uint8Array()));
|
|
1386
|
+
message.proposerAddress !== undefined
|
|
1387
|
+
&& (obj.proposerAddress = base64FromBytes(message.proposerAddress !== undefined ? message.proposerAddress : new Uint8Array()));
|
|
1388
|
+
return obj;
|
|
1389
|
+
},
|
|
1390
|
+
fromPartial(object) {
|
|
1391
|
+
const message = createBaseRequestPrepareProposal();
|
|
1392
|
+
message.maxTxBytes = object.maxTxBytes ?? 0;
|
|
1393
|
+
message.txs = object.txs?.map((e) => e) || [];
|
|
1394
|
+
message.localLastCommit = (object.localLastCommit !== undefined && object.localLastCommit !== null)
|
|
1395
|
+
? ExtendedCommitInfo.fromPartial(object.localLastCommit)
|
|
1396
|
+
: undefined;
|
|
1397
|
+
message.misbehavior = object.misbehavior?.map((e) => Misbehavior.fromPartial(e)) || [];
|
|
1398
|
+
message.height = object.height ?? 0;
|
|
1399
|
+
message.time = object.time ?? undefined;
|
|
1400
|
+
message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array();
|
|
1401
|
+
message.proposerAddress = object.proposerAddress ?? new Uint8Array();
|
|
1402
|
+
return message;
|
|
1403
|
+
},
|
|
1404
|
+
};
|
|
1405
|
+
function createBaseRequestProcessProposal() {
|
|
1406
|
+
return {
|
|
1407
|
+
txs: [],
|
|
1408
|
+
proposedLastCommit: undefined,
|
|
1409
|
+
misbehavior: [],
|
|
1410
|
+
hash: new Uint8Array(),
|
|
1411
|
+
height: 0,
|
|
1412
|
+
time: undefined,
|
|
1413
|
+
nextValidatorsHash: new Uint8Array(),
|
|
1414
|
+
proposerAddress: new Uint8Array(),
|
|
1415
|
+
};
|
|
1416
|
+
}
|
|
1417
|
+
export const RequestProcessProposal = {
|
|
1418
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1419
|
+
for (const v of message.txs) {
|
|
1420
|
+
writer.uint32(10).bytes(v);
|
|
1421
|
+
}
|
|
1422
|
+
if (message.proposedLastCommit !== undefined) {
|
|
1423
|
+
CommitInfo.encode(message.proposedLastCommit, writer.uint32(18).fork()).ldelim();
|
|
1424
|
+
}
|
|
1425
|
+
for (const v of message.misbehavior) {
|
|
1426
|
+
Misbehavior.encode(v, writer.uint32(26).fork()).ldelim();
|
|
1427
|
+
}
|
|
1428
|
+
if (message.hash.length !== 0) {
|
|
1429
|
+
writer.uint32(34).bytes(message.hash);
|
|
1430
|
+
}
|
|
1431
|
+
if (message.height !== 0) {
|
|
1432
|
+
writer.uint32(40).int64(message.height);
|
|
1433
|
+
}
|
|
1434
|
+
if (message.time !== undefined) {
|
|
1435
|
+
Timestamp.encode(toTimestamp(message.time), writer.uint32(50).fork()).ldelim();
|
|
1436
|
+
}
|
|
1437
|
+
if (message.nextValidatorsHash.length !== 0) {
|
|
1438
|
+
writer.uint32(58).bytes(message.nextValidatorsHash);
|
|
1439
|
+
}
|
|
1440
|
+
if (message.proposerAddress.length !== 0) {
|
|
1441
|
+
writer.uint32(66).bytes(message.proposerAddress);
|
|
1442
|
+
}
|
|
1443
|
+
return writer;
|
|
1444
|
+
},
|
|
1445
|
+
decode(input, length) {
|
|
1446
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1447
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1448
|
+
const message = createBaseRequestProcessProposal();
|
|
1449
|
+
while (reader.pos < end) {
|
|
1450
|
+
const tag = reader.uint32();
|
|
1451
|
+
switch (tag >>> 3) {
|
|
1452
|
+
case 1:
|
|
1453
|
+
message.txs.push(reader.bytes());
|
|
1454
|
+
break;
|
|
1455
|
+
case 2:
|
|
1456
|
+
message.proposedLastCommit = CommitInfo.decode(reader, reader.uint32());
|
|
1457
|
+
break;
|
|
1458
|
+
case 3:
|
|
1459
|
+
message.misbehavior.push(Misbehavior.decode(reader, reader.uint32()));
|
|
1460
|
+
break;
|
|
1461
|
+
case 4:
|
|
1462
|
+
message.hash = reader.bytes();
|
|
1463
|
+
break;
|
|
1464
|
+
case 5:
|
|
1465
|
+
message.height = longToNumber(reader.int64());
|
|
1466
|
+
break;
|
|
1467
|
+
case 6:
|
|
1468
|
+
message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1469
|
+
break;
|
|
1470
|
+
case 7:
|
|
1471
|
+
message.nextValidatorsHash = reader.bytes();
|
|
1472
|
+
break;
|
|
1473
|
+
case 8:
|
|
1474
|
+
message.proposerAddress = reader.bytes();
|
|
1475
|
+
break;
|
|
1476
|
+
default:
|
|
1477
|
+
reader.skipType(tag & 7);
|
|
1478
|
+
break;
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
return message;
|
|
1482
|
+
},
|
|
1483
|
+
fromJSON(object) {
|
|
1484
|
+
return {
|
|
1485
|
+
txs: Array.isArray(object?.txs) ? object.txs.map((e) => bytesFromBase64(e)) : [],
|
|
1486
|
+
proposedLastCommit: isSet(object.proposedLastCommit) ? CommitInfo.fromJSON(object.proposedLastCommit) : undefined,
|
|
1487
|
+
misbehavior: Array.isArray(object?.misbehavior)
|
|
1488
|
+
? object.misbehavior.map((e) => Misbehavior.fromJSON(e))
|
|
1489
|
+
: [],
|
|
1490
|
+
hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(),
|
|
1491
|
+
height: isSet(object.height) ? Number(object.height) : 0,
|
|
1492
|
+
time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
|
|
1493
|
+
nextValidatorsHash: isSet(object.nextValidatorsHash)
|
|
1494
|
+
? bytesFromBase64(object.nextValidatorsHash)
|
|
1495
|
+
: new Uint8Array(),
|
|
1496
|
+
proposerAddress: isSet(object.proposerAddress) ? bytesFromBase64(object.proposerAddress) : new Uint8Array(),
|
|
1497
|
+
};
|
|
1498
|
+
},
|
|
1499
|
+
toJSON(message) {
|
|
1500
|
+
const obj = {};
|
|
1501
|
+
if (message.txs) {
|
|
1502
|
+
obj.txs = message.txs.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
|
|
1503
|
+
}
|
|
1504
|
+
else {
|
|
1505
|
+
obj.txs = [];
|
|
1506
|
+
}
|
|
1507
|
+
message.proposedLastCommit !== undefined && (obj.proposedLastCommit = message.proposedLastCommit
|
|
1508
|
+
? CommitInfo.toJSON(message.proposedLastCommit)
|
|
1509
|
+
: undefined);
|
|
1510
|
+
if (message.misbehavior) {
|
|
1511
|
+
obj.misbehavior = message.misbehavior.map((e) => e ? Misbehavior.toJSON(e) : undefined);
|
|
1512
|
+
}
|
|
1513
|
+
else {
|
|
1514
|
+
obj.misbehavior = [];
|
|
1515
|
+
}
|
|
1516
|
+
message.hash !== undefined
|
|
1517
|
+
&& (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array()));
|
|
1518
|
+
message.height !== undefined && (obj.height = Math.round(message.height));
|
|
1519
|
+
message.time !== undefined && (obj.time = message.time.toISOString());
|
|
1520
|
+
message.nextValidatorsHash !== undefined
|
|
1521
|
+
&& (obj.nextValidatorsHash = base64FromBytes(message.nextValidatorsHash !== undefined ? message.nextValidatorsHash : new Uint8Array()));
|
|
1522
|
+
message.proposerAddress !== undefined
|
|
1523
|
+
&& (obj.proposerAddress = base64FromBytes(message.proposerAddress !== undefined ? message.proposerAddress : new Uint8Array()));
|
|
1524
|
+
return obj;
|
|
1525
|
+
},
|
|
1526
|
+
fromPartial(object) {
|
|
1527
|
+
const message = createBaseRequestProcessProposal();
|
|
1528
|
+
message.txs = object.txs?.map((e) => e) || [];
|
|
1529
|
+
message.proposedLastCommit = (object.proposedLastCommit !== undefined && object.proposedLastCommit !== null)
|
|
1530
|
+
? CommitInfo.fromPartial(object.proposedLastCommit)
|
|
1531
|
+
: undefined;
|
|
1532
|
+
message.misbehavior = object.misbehavior?.map((e) => Misbehavior.fromPartial(e)) || [];
|
|
1533
|
+
message.hash = object.hash ?? new Uint8Array();
|
|
1534
|
+
message.height = object.height ?? 0;
|
|
1535
|
+
message.time = object.time ?? undefined;
|
|
1536
|
+
message.nextValidatorsHash = object.nextValidatorsHash ?? new Uint8Array();
|
|
1537
|
+
message.proposerAddress = object.proposerAddress ?? new Uint8Array();
|
|
1538
|
+
return message;
|
|
1539
|
+
},
|
|
1540
|
+
};
|
|
1253
1541
|
function createBaseResponse() {
|
|
1254
1542
|
return {
|
|
1255
1543
|
exception: undefined,
|
|
1256
1544
|
echo: undefined,
|
|
1257
1545
|
flush: undefined,
|
|
1258
1546
|
info: undefined,
|
|
1259
|
-
setOption: undefined,
|
|
1260
1547
|
initChain: undefined,
|
|
1261
1548
|
query: undefined,
|
|
1262
1549
|
beginBlock: undefined,
|
|
@@ -1268,6 +1555,8 @@ function createBaseResponse() {
|
|
|
1268
1555
|
offerSnapshot: undefined,
|
|
1269
1556
|
loadSnapshotChunk: undefined,
|
|
1270
1557
|
applySnapshotChunk: undefined,
|
|
1558
|
+
prepareProposal: undefined,
|
|
1559
|
+
processProposal: undefined,
|
|
1271
1560
|
};
|
|
1272
1561
|
}
|
|
1273
1562
|
export const Response = {
|
|
@@ -1284,9 +1573,6 @@ export const Response = {
|
|
|
1284
1573
|
if (message.info !== undefined) {
|
|
1285
1574
|
ResponseInfo.encode(message.info, writer.uint32(34).fork()).ldelim();
|
|
1286
1575
|
}
|
|
1287
|
-
if (message.setOption !== undefined) {
|
|
1288
|
-
ResponseSetOption.encode(message.setOption, writer.uint32(42).fork()).ldelim();
|
|
1289
|
-
}
|
|
1290
1576
|
if (message.initChain !== undefined) {
|
|
1291
1577
|
ResponseInitChain.encode(message.initChain, writer.uint32(50).fork()).ldelim();
|
|
1292
1578
|
}
|
|
@@ -1320,6 +1606,12 @@ export const Response = {
|
|
|
1320
1606
|
if (message.applySnapshotChunk !== undefined) {
|
|
1321
1607
|
ResponseApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(130).fork()).ldelim();
|
|
1322
1608
|
}
|
|
1609
|
+
if (message.prepareProposal !== undefined) {
|
|
1610
|
+
ResponsePrepareProposal.encode(message.prepareProposal, writer.uint32(138).fork()).ldelim();
|
|
1611
|
+
}
|
|
1612
|
+
if (message.processProposal !== undefined) {
|
|
1613
|
+
ResponseProcessProposal.encode(message.processProposal, writer.uint32(146).fork()).ldelim();
|
|
1614
|
+
}
|
|
1323
1615
|
return writer;
|
|
1324
1616
|
},
|
|
1325
1617
|
decode(input, length) {
|
|
@@ -1341,9 +1633,6 @@ export const Response = {
|
|
|
1341
1633
|
case 4:
|
|
1342
1634
|
message.info = ResponseInfo.decode(reader, reader.uint32());
|
|
1343
1635
|
break;
|
|
1344
|
-
case 5:
|
|
1345
|
-
message.setOption = ResponseSetOption.decode(reader, reader.uint32());
|
|
1346
|
-
break;
|
|
1347
1636
|
case 6:
|
|
1348
1637
|
message.initChain = ResponseInitChain.decode(reader, reader.uint32());
|
|
1349
1638
|
break;
|
|
@@ -1377,6 +1666,12 @@ export const Response = {
|
|
|
1377
1666
|
case 16:
|
|
1378
1667
|
message.applySnapshotChunk = ResponseApplySnapshotChunk.decode(reader, reader.uint32());
|
|
1379
1668
|
break;
|
|
1669
|
+
case 17:
|
|
1670
|
+
message.prepareProposal = ResponsePrepareProposal.decode(reader, reader.uint32());
|
|
1671
|
+
break;
|
|
1672
|
+
case 18:
|
|
1673
|
+
message.processProposal = ResponseProcessProposal.decode(reader, reader.uint32());
|
|
1674
|
+
break;
|
|
1380
1675
|
default:
|
|
1381
1676
|
reader.skipType(tag & 7);
|
|
1382
1677
|
break;
|
|
@@ -1390,7 +1685,6 @@ export const Response = {
|
|
|
1390
1685
|
echo: isSet(object.echo) ? ResponseEcho.fromJSON(object.echo) : undefined,
|
|
1391
1686
|
flush: isSet(object.flush) ? ResponseFlush.fromJSON(object.flush) : undefined,
|
|
1392
1687
|
info: isSet(object.info) ? ResponseInfo.fromJSON(object.info) : undefined,
|
|
1393
|
-
setOption: isSet(object.setOption) ? ResponseSetOption.fromJSON(object.setOption) : undefined,
|
|
1394
1688
|
initChain: isSet(object.initChain) ? ResponseInitChain.fromJSON(object.initChain) : undefined,
|
|
1395
1689
|
query: isSet(object.query) ? ResponseQuery.fromJSON(object.query) : undefined,
|
|
1396
1690
|
beginBlock: isSet(object.beginBlock) ? ResponseBeginBlock.fromJSON(object.beginBlock) : undefined,
|
|
@@ -1406,6 +1700,12 @@ export const Response = {
|
|
|
1406
1700
|
applySnapshotChunk: isSet(object.applySnapshotChunk)
|
|
1407
1701
|
? ResponseApplySnapshotChunk.fromJSON(object.applySnapshotChunk)
|
|
1408
1702
|
: undefined,
|
|
1703
|
+
prepareProposal: isSet(object.prepareProposal)
|
|
1704
|
+
? ResponsePrepareProposal.fromJSON(object.prepareProposal)
|
|
1705
|
+
: undefined,
|
|
1706
|
+
processProposal: isSet(object.processProposal)
|
|
1707
|
+
? ResponseProcessProposal.fromJSON(object.processProposal)
|
|
1708
|
+
: undefined,
|
|
1409
1709
|
};
|
|
1410
1710
|
},
|
|
1411
1711
|
toJSON(message) {
|
|
@@ -1415,8 +1715,6 @@ export const Response = {
|
|
|
1415
1715
|
message.echo !== undefined && (obj.echo = message.echo ? ResponseEcho.toJSON(message.echo) : undefined);
|
|
1416
1716
|
message.flush !== undefined && (obj.flush = message.flush ? ResponseFlush.toJSON(message.flush) : undefined);
|
|
1417
1717
|
message.info !== undefined && (obj.info = message.info ? ResponseInfo.toJSON(message.info) : undefined);
|
|
1418
|
-
message.setOption !== undefined
|
|
1419
|
-
&& (obj.setOption = message.setOption ? ResponseSetOption.toJSON(message.setOption) : undefined);
|
|
1420
1718
|
message.initChain !== undefined
|
|
1421
1719
|
&& (obj.initChain = message.initChain ? ResponseInitChain.toJSON(message.initChain) : undefined);
|
|
1422
1720
|
message.query !== undefined && (obj.query = message.query ? ResponseQuery.toJSON(message.query) : undefined);
|
|
@@ -1439,6 +1737,12 @@ export const Response = {
|
|
|
1439
1737
|
message.applySnapshotChunk !== undefined && (obj.applySnapshotChunk = message.applySnapshotChunk
|
|
1440
1738
|
? ResponseApplySnapshotChunk.toJSON(message.applySnapshotChunk)
|
|
1441
1739
|
: undefined);
|
|
1740
|
+
message.prepareProposal !== undefined && (obj.prepareProposal = message.prepareProposal
|
|
1741
|
+
? ResponsePrepareProposal.toJSON(message.prepareProposal)
|
|
1742
|
+
: undefined);
|
|
1743
|
+
message.processProposal !== undefined && (obj.processProposal = message.processProposal
|
|
1744
|
+
? ResponseProcessProposal.toJSON(message.processProposal)
|
|
1745
|
+
: undefined);
|
|
1442
1746
|
return obj;
|
|
1443
1747
|
},
|
|
1444
1748
|
fromPartial(object) {
|
|
@@ -1455,9 +1759,6 @@ export const Response = {
|
|
|
1455
1759
|
message.info = (object.info !== undefined && object.info !== null)
|
|
1456
1760
|
? ResponseInfo.fromPartial(object.info)
|
|
1457
1761
|
: undefined;
|
|
1458
|
-
message.setOption = (object.setOption !== undefined && object.setOption !== null)
|
|
1459
|
-
? ResponseSetOption.fromPartial(object.setOption)
|
|
1460
|
-
: undefined;
|
|
1461
1762
|
message.initChain = (object.initChain !== undefined && object.initChain !== null)
|
|
1462
1763
|
? ResponseInitChain.fromPartial(object.initChain)
|
|
1463
1764
|
: undefined;
|
|
@@ -1491,6 +1792,12 @@ export const Response = {
|
|
|
1491
1792
|
message.applySnapshotChunk = (object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null)
|
|
1492
1793
|
? ResponseApplySnapshotChunk.fromPartial(object.applySnapshotChunk)
|
|
1493
1794
|
: undefined;
|
|
1795
|
+
message.prepareProposal = (object.prepareProposal !== undefined && object.prepareProposal !== null)
|
|
1796
|
+
? ResponsePrepareProposal.fromPartial(object.prepareProposal)
|
|
1797
|
+
: undefined;
|
|
1798
|
+
message.processProposal = (object.processProposal !== undefined && object.processProposal !== null)
|
|
1799
|
+
? ResponseProcessProposal.fromPartial(object.processProposal)
|
|
1800
|
+
: undefined;
|
|
1494
1801
|
return message;
|
|
1495
1802
|
},
|
|
1496
1803
|
};
|
|
@@ -1689,67 +1996,6 @@ export const ResponseInfo = {
|
|
|
1689
1996
|
return message;
|
|
1690
1997
|
},
|
|
1691
1998
|
};
|
|
1692
|
-
function createBaseResponseSetOption() {
|
|
1693
|
-
return { code: 0, log: "", info: "" };
|
|
1694
|
-
}
|
|
1695
|
-
export const ResponseSetOption = {
|
|
1696
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
1697
|
-
if (message.code !== 0) {
|
|
1698
|
-
writer.uint32(8).uint32(message.code);
|
|
1699
|
-
}
|
|
1700
|
-
if (message.log !== "") {
|
|
1701
|
-
writer.uint32(26).string(message.log);
|
|
1702
|
-
}
|
|
1703
|
-
if (message.info !== "") {
|
|
1704
|
-
writer.uint32(34).string(message.info);
|
|
1705
|
-
}
|
|
1706
|
-
return writer;
|
|
1707
|
-
},
|
|
1708
|
-
decode(input, length) {
|
|
1709
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1710
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1711
|
-
const message = createBaseResponseSetOption();
|
|
1712
|
-
while (reader.pos < end) {
|
|
1713
|
-
const tag = reader.uint32();
|
|
1714
|
-
switch (tag >>> 3) {
|
|
1715
|
-
case 1:
|
|
1716
|
-
message.code = reader.uint32();
|
|
1717
|
-
break;
|
|
1718
|
-
case 3:
|
|
1719
|
-
message.log = reader.string();
|
|
1720
|
-
break;
|
|
1721
|
-
case 4:
|
|
1722
|
-
message.info = reader.string();
|
|
1723
|
-
break;
|
|
1724
|
-
default:
|
|
1725
|
-
reader.skipType(tag & 7);
|
|
1726
|
-
break;
|
|
1727
|
-
}
|
|
1728
|
-
}
|
|
1729
|
-
return message;
|
|
1730
|
-
},
|
|
1731
|
-
fromJSON(object) {
|
|
1732
|
-
return {
|
|
1733
|
-
code: isSet(object.code) ? Number(object.code) : 0,
|
|
1734
|
-
log: isSet(object.log) ? String(object.log) : "",
|
|
1735
|
-
info: isSet(object.info) ? String(object.info) : "",
|
|
1736
|
-
};
|
|
1737
|
-
},
|
|
1738
|
-
toJSON(message) {
|
|
1739
|
-
const obj = {};
|
|
1740
|
-
message.code !== undefined && (obj.code = Math.round(message.code));
|
|
1741
|
-
message.log !== undefined && (obj.log = message.log);
|
|
1742
|
-
message.info !== undefined && (obj.info = message.info);
|
|
1743
|
-
return obj;
|
|
1744
|
-
},
|
|
1745
|
-
fromPartial(object) {
|
|
1746
|
-
const message = createBaseResponseSetOption();
|
|
1747
|
-
message.code = object.code ?? 0;
|
|
1748
|
-
message.log = object.log ?? "";
|
|
1749
|
-
message.info = object.info ?? "";
|
|
1750
|
-
return message;
|
|
1751
|
-
},
|
|
1752
|
-
};
|
|
1753
1999
|
function createBaseResponseInitChain() {
|
|
1754
2000
|
return { consensusParams: undefined, validators: [], appHash: new Uint8Array() };
|
|
1755
2001
|
}
|
|
@@ -2605,43 +2851,71 @@ export const ResponseApplySnapshotChunk = {
|
|
|
2605
2851
|
return message;
|
|
2606
2852
|
},
|
|
2607
2853
|
};
|
|
2608
|
-
function
|
|
2609
|
-
return {
|
|
2854
|
+
function createBaseResponsePrepareProposal() {
|
|
2855
|
+
return { txs: [] };
|
|
2610
2856
|
}
|
|
2611
|
-
export const
|
|
2857
|
+
export const ResponsePrepareProposal = {
|
|
2612
2858
|
encode(message, writer = _m0.Writer.create()) {
|
|
2613
|
-
|
|
2614
|
-
|
|
2859
|
+
for (const v of message.txs) {
|
|
2860
|
+
writer.uint32(10).bytes(v);
|
|
2615
2861
|
}
|
|
2616
|
-
|
|
2617
|
-
|
|
2862
|
+
return writer;
|
|
2863
|
+
},
|
|
2864
|
+
decode(input, length) {
|
|
2865
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2866
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2867
|
+
const message = createBaseResponsePrepareProposal();
|
|
2868
|
+
while (reader.pos < end) {
|
|
2869
|
+
const tag = reader.uint32();
|
|
2870
|
+
switch (tag >>> 3) {
|
|
2871
|
+
case 1:
|
|
2872
|
+
message.txs.push(reader.bytes());
|
|
2873
|
+
break;
|
|
2874
|
+
default:
|
|
2875
|
+
reader.skipType(tag & 7);
|
|
2876
|
+
break;
|
|
2877
|
+
}
|
|
2618
2878
|
}
|
|
2619
|
-
|
|
2620
|
-
|
|
2879
|
+
return message;
|
|
2880
|
+
},
|
|
2881
|
+
fromJSON(object) {
|
|
2882
|
+
return { txs: Array.isArray(object?.txs) ? object.txs.map((e) => bytesFromBase64(e)) : [] };
|
|
2883
|
+
},
|
|
2884
|
+
toJSON(message) {
|
|
2885
|
+
const obj = {};
|
|
2886
|
+
if (message.txs) {
|
|
2887
|
+
obj.txs = message.txs.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
|
|
2888
|
+
}
|
|
2889
|
+
else {
|
|
2890
|
+
obj.txs = [];
|
|
2621
2891
|
}
|
|
2622
|
-
|
|
2623
|
-
|
|
2892
|
+
return obj;
|
|
2893
|
+
},
|
|
2894
|
+
fromPartial(object) {
|
|
2895
|
+
const message = createBaseResponsePrepareProposal();
|
|
2896
|
+
message.txs = object.txs?.map((e) => e) || [];
|
|
2897
|
+
return message;
|
|
2898
|
+
},
|
|
2899
|
+
};
|
|
2900
|
+
function createBaseResponseProcessProposal() {
|
|
2901
|
+
return { status: 0 };
|
|
2902
|
+
}
|
|
2903
|
+
export const ResponseProcessProposal = {
|
|
2904
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2905
|
+
if (message.status !== 0) {
|
|
2906
|
+
writer.uint32(8).int32(message.status);
|
|
2624
2907
|
}
|
|
2625
2908
|
return writer;
|
|
2626
2909
|
},
|
|
2627
2910
|
decode(input, length) {
|
|
2628
2911
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2629
2912
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2630
|
-
const message =
|
|
2913
|
+
const message = createBaseResponseProcessProposal();
|
|
2631
2914
|
while (reader.pos < end) {
|
|
2632
2915
|
const tag = reader.uint32();
|
|
2633
2916
|
switch (tag >>> 3) {
|
|
2634
2917
|
case 1:
|
|
2635
|
-
message.
|
|
2636
|
-
break;
|
|
2637
|
-
case 2:
|
|
2638
|
-
message.evidence = EvidenceParams.decode(reader, reader.uint32());
|
|
2639
|
-
break;
|
|
2640
|
-
case 3:
|
|
2641
|
-
message.validator = ValidatorParams.decode(reader, reader.uint32());
|
|
2642
|
-
break;
|
|
2643
|
-
case 4:
|
|
2644
|
-
message.version = VersionParams.decode(reader, reader.uint32());
|
|
2918
|
+
message.status = reader.int32();
|
|
2645
2919
|
break;
|
|
2646
2920
|
default:
|
|
2647
2921
|
reader.skipType(tag & 7);
|
|
@@ -2651,66 +2925,44 @@ export const ConsensusParams = {
|
|
|
2651
2925
|
return message;
|
|
2652
2926
|
},
|
|
2653
2927
|
fromJSON(object) {
|
|
2654
|
-
return {
|
|
2655
|
-
block: isSet(object.block) ? BlockParams.fromJSON(object.block) : undefined,
|
|
2656
|
-
evidence: isSet(object.evidence) ? EvidenceParams.fromJSON(object.evidence) : undefined,
|
|
2657
|
-
validator: isSet(object.validator) ? ValidatorParams.fromJSON(object.validator) : undefined,
|
|
2658
|
-
version: isSet(object.version) ? VersionParams.fromJSON(object.version) : undefined,
|
|
2659
|
-
};
|
|
2928
|
+
return { status: isSet(object.status) ? responseProcessProposal_ProposalStatusFromJSON(object.status) : 0 };
|
|
2660
2929
|
},
|
|
2661
2930
|
toJSON(message) {
|
|
2662
2931
|
const obj = {};
|
|
2663
|
-
message.
|
|
2664
|
-
message.evidence !== undefined
|
|
2665
|
-
&& (obj.evidence = message.evidence ? EvidenceParams.toJSON(message.evidence) : undefined);
|
|
2666
|
-
message.validator !== undefined
|
|
2667
|
-
&& (obj.validator = message.validator ? ValidatorParams.toJSON(message.validator) : undefined);
|
|
2668
|
-
message.version !== undefined
|
|
2669
|
-
&& (obj.version = message.version ? VersionParams.toJSON(message.version) : undefined);
|
|
2932
|
+
message.status !== undefined && (obj.status = responseProcessProposal_ProposalStatusToJSON(message.status));
|
|
2670
2933
|
return obj;
|
|
2671
2934
|
},
|
|
2672
2935
|
fromPartial(object) {
|
|
2673
|
-
const message =
|
|
2674
|
-
message.
|
|
2675
|
-
? BlockParams.fromPartial(object.block)
|
|
2676
|
-
: undefined;
|
|
2677
|
-
message.evidence = (object.evidence !== undefined && object.evidence !== null)
|
|
2678
|
-
? EvidenceParams.fromPartial(object.evidence)
|
|
2679
|
-
: undefined;
|
|
2680
|
-
message.validator = (object.validator !== undefined && object.validator !== null)
|
|
2681
|
-
? ValidatorParams.fromPartial(object.validator)
|
|
2682
|
-
: undefined;
|
|
2683
|
-
message.version = (object.version !== undefined && object.version !== null)
|
|
2684
|
-
? VersionParams.fromPartial(object.version)
|
|
2685
|
-
: undefined;
|
|
2936
|
+
const message = createBaseResponseProcessProposal();
|
|
2937
|
+
message.status = object.status ?? 0;
|
|
2686
2938
|
return message;
|
|
2687
2939
|
},
|
|
2688
2940
|
};
|
|
2689
|
-
function
|
|
2690
|
-
return {
|
|
2941
|
+
function createBaseCommitInfo() {
|
|
2942
|
+
return { round: 0, votes: [] };
|
|
2691
2943
|
}
|
|
2692
|
-
export const
|
|
2944
|
+
export const CommitInfo = {
|
|
2693
2945
|
encode(message, writer = _m0.Writer.create()) {
|
|
2694
|
-
if (message.
|
|
2695
|
-
writer.uint32(8).
|
|
2946
|
+
if (message.round !== 0) {
|
|
2947
|
+
writer.uint32(8).int32(message.round);
|
|
2696
2948
|
}
|
|
2697
|
-
|
|
2698
|
-
writer.uint32(
|
|
2949
|
+
for (const v of message.votes) {
|
|
2950
|
+
VoteInfo.encode(v, writer.uint32(18).fork()).ldelim();
|
|
2699
2951
|
}
|
|
2700
2952
|
return writer;
|
|
2701
2953
|
},
|
|
2702
2954
|
decode(input, length) {
|
|
2703
2955
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2704
2956
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2705
|
-
const message =
|
|
2957
|
+
const message = createBaseCommitInfo();
|
|
2706
2958
|
while (reader.pos < end) {
|
|
2707
2959
|
const tag = reader.uint32();
|
|
2708
2960
|
switch (tag >>> 3) {
|
|
2709
2961
|
case 1:
|
|
2710
|
-
message.
|
|
2962
|
+
message.round = reader.int32();
|
|
2711
2963
|
break;
|
|
2712
2964
|
case 2:
|
|
2713
|
-
message.
|
|
2965
|
+
message.votes.push(VoteInfo.decode(reader, reader.uint32()));
|
|
2714
2966
|
break;
|
|
2715
2967
|
default:
|
|
2716
2968
|
reader.skipType(tag & 7);
|
|
@@ -2721,40 +2973,45 @@ export const BlockParams = {
|
|
|
2721
2973
|
},
|
|
2722
2974
|
fromJSON(object) {
|
|
2723
2975
|
return {
|
|
2724
|
-
|
|
2725
|
-
|
|
2976
|
+
round: isSet(object.round) ? Number(object.round) : 0,
|
|
2977
|
+
votes: Array.isArray(object?.votes) ? object.votes.map((e) => VoteInfo.fromJSON(e)) : [],
|
|
2726
2978
|
};
|
|
2727
2979
|
},
|
|
2728
2980
|
toJSON(message) {
|
|
2729
2981
|
const obj = {};
|
|
2730
|
-
message.
|
|
2731
|
-
|
|
2982
|
+
message.round !== undefined && (obj.round = Math.round(message.round));
|
|
2983
|
+
if (message.votes) {
|
|
2984
|
+
obj.votes = message.votes.map((e) => e ? VoteInfo.toJSON(e) : undefined);
|
|
2985
|
+
}
|
|
2986
|
+
else {
|
|
2987
|
+
obj.votes = [];
|
|
2988
|
+
}
|
|
2732
2989
|
return obj;
|
|
2733
2990
|
},
|
|
2734
2991
|
fromPartial(object) {
|
|
2735
|
-
const message =
|
|
2736
|
-
message.
|
|
2737
|
-
message.
|
|
2992
|
+
const message = createBaseCommitInfo();
|
|
2993
|
+
message.round = object.round ?? 0;
|
|
2994
|
+
message.votes = object.votes?.map((e) => VoteInfo.fromPartial(e)) || [];
|
|
2738
2995
|
return message;
|
|
2739
2996
|
},
|
|
2740
2997
|
};
|
|
2741
|
-
function
|
|
2998
|
+
function createBaseExtendedCommitInfo() {
|
|
2742
2999
|
return { round: 0, votes: [] };
|
|
2743
3000
|
}
|
|
2744
|
-
export const
|
|
3001
|
+
export const ExtendedCommitInfo = {
|
|
2745
3002
|
encode(message, writer = _m0.Writer.create()) {
|
|
2746
3003
|
if (message.round !== 0) {
|
|
2747
3004
|
writer.uint32(8).int32(message.round);
|
|
2748
3005
|
}
|
|
2749
3006
|
for (const v of message.votes) {
|
|
2750
|
-
|
|
3007
|
+
ExtendedVoteInfo.encode(v, writer.uint32(18).fork()).ldelim();
|
|
2751
3008
|
}
|
|
2752
3009
|
return writer;
|
|
2753
3010
|
},
|
|
2754
3011
|
decode(input, length) {
|
|
2755
3012
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2756
3013
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2757
|
-
const message =
|
|
3014
|
+
const message = createBaseExtendedCommitInfo();
|
|
2758
3015
|
while (reader.pos < end) {
|
|
2759
3016
|
const tag = reader.uint32();
|
|
2760
3017
|
switch (tag >>> 3) {
|
|
@@ -2762,7 +3019,7 @@ export const LastCommitInfo = {
|
|
|
2762
3019
|
message.round = reader.int32();
|
|
2763
3020
|
break;
|
|
2764
3021
|
case 2:
|
|
2765
|
-
message.votes.push(
|
|
3022
|
+
message.votes.push(ExtendedVoteInfo.decode(reader, reader.uint32()));
|
|
2766
3023
|
break;
|
|
2767
3024
|
default:
|
|
2768
3025
|
reader.skipType(tag & 7);
|
|
@@ -2774,14 +3031,14 @@ export const LastCommitInfo = {
|
|
|
2774
3031
|
fromJSON(object) {
|
|
2775
3032
|
return {
|
|
2776
3033
|
round: isSet(object.round) ? Number(object.round) : 0,
|
|
2777
|
-
votes: Array.isArray(object?.votes) ? object.votes.map((e) =>
|
|
3034
|
+
votes: Array.isArray(object?.votes) ? object.votes.map((e) => ExtendedVoteInfo.fromJSON(e)) : [],
|
|
2778
3035
|
};
|
|
2779
3036
|
},
|
|
2780
3037
|
toJSON(message) {
|
|
2781
3038
|
const obj = {};
|
|
2782
3039
|
message.round !== undefined && (obj.round = Math.round(message.round));
|
|
2783
3040
|
if (message.votes) {
|
|
2784
|
-
obj.votes = message.votes.map((e) => e ?
|
|
3041
|
+
obj.votes = message.votes.map((e) => e ? ExtendedVoteInfo.toJSON(e) : undefined);
|
|
2785
3042
|
}
|
|
2786
3043
|
else {
|
|
2787
3044
|
obj.votes = [];
|
|
@@ -2789,9 +3046,9 @@ export const LastCommitInfo = {
|
|
|
2789
3046
|
return obj;
|
|
2790
3047
|
},
|
|
2791
3048
|
fromPartial(object) {
|
|
2792
|
-
const message =
|
|
3049
|
+
const message = createBaseExtendedCommitInfo();
|
|
2793
3050
|
message.round = object.round ?? 0;
|
|
2794
|
-
message.votes = object.votes?.map((e) =>
|
|
3051
|
+
message.votes = object.votes?.map((e) => ExtendedVoteInfo.fromPartial(e)) || [];
|
|
2795
3052
|
return message;
|
|
2796
3053
|
},
|
|
2797
3054
|
};
|
|
@@ -2855,15 +3112,15 @@ export const Event = {
|
|
|
2855
3112
|
},
|
|
2856
3113
|
};
|
|
2857
3114
|
function createBaseEventAttribute() {
|
|
2858
|
-
return { key:
|
|
3115
|
+
return { key: "", value: "", index: false };
|
|
2859
3116
|
}
|
|
2860
3117
|
export const EventAttribute = {
|
|
2861
3118
|
encode(message, writer = _m0.Writer.create()) {
|
|
2862
|
-
if (message.key
|
|
2863
|
-
writer.uint32(10).
|
|
3119
|
+
if (message.key !== "") {
|
|
3120
|
+
writer.uint32(10).string(message.key);
|
|
2864
3121
|
}
|
|
2865
|
-
if (message.value
|
|
2866
|
-
writer.uint32(18).
|
|
3122
|
+
if (message.value !== "") {
|
|
3123
|
+
writer.uint32(18).string(message.value);
|
|
2867
3124
|
}
|
|
2868
3125
|
if (message.index === true) {
|
|
2869
3126
|
writer.uint32(24).bool(message.index);
|
|
@@ -2878,10 +3135,10 @@ export const EventAttribute = {
|
|
|
2878
3135
|
const tag = reader.uint32();
|
|
2879
3136
|
switch (tag >>> 3) {
|
|
2880
3137
|
case 1:
|
|
2881
|
-
message.key = reader.
|
|
3138
|
+
message.key = reader.string();
|
|
2882
3139
|
break;
|
|
2883
3140
|
case 2:
|
|
2884
|
-
message.value = reader.
|
|
3141
|
+
message.value = reader.string();
|
|
2885
3142
|
break;
|
|
2886
3143
|
case 3:
|
|
2887
3144
|
message.index = reader.bool();
|
|
@@ -2895,24 +3152,22 @@ export const EventAttribute = {
|
|
|
2895
3152
|
},
|
|
2896
3153
|
fromJSON(object) {
|
|
2897
3154
|
return {
|
|
2898
|
-
key: isSet(object.key) ?
|
|
2899
|
-
value: isSet(object.value) ?
|
|
3155
|
+
key: isSet(object.key) ? String(object.key) : "",
|
|
3156
|
+
value: isSet(object.value) ? String(object.value) : "",
|
|
2900
3157
|
index: isSet(object.index) ? Boolean(object.index) : false,
|
|
2901
3158
|
};
|
|
2902
3159
|
},
|
|
2903
3160
|
toJSON(message) {
|
|
2904
3161
|
const obj = {};
|
|
2905
|
-
message.key !== undefined
|
|
2906
|
-
|
|
2907
|
-
message.value !== undefined
|
|
2908
|
-
&& (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
3162
|
+
message.key !== undefined && (obj.key = message.key);
|
|
3163
|
+
message.value !== undefined && (obj.value = message.value);
|
|
2909
3164
|
message.index !== undefined && (obj.index = message.index);
|
|
2910
3165
|
return obj;
|
|
2911
3166
|
},
|
|
2912
3167
|
fromPartial(object) {
|
|
2913
3168
|
const message = createBaseEventAttribute();
|
|
2914
|
-
message.key = object.key ??
|
|
2915
|
-
message.value = object.value ??
|
|
3169
|
+
message.key = object.key ?? "";
|
|
3170
|
+
message.value = object.value ?? "";
|
|
2916
3171
|
message.index = object.index ?? false;
|
|
2917
3172
|
return message;
|
|
2918
3173
|
},
|
|
@@ -3152,10 +3407,75 @@ export const VoteInfo = {
|
|
|
3152
3407
|
return message;
|
|
3153
3408
|
},
|
|
3154
3409
|
};
|
|
3155
|
-
function
|
|
3410
|
+
function createBaseExtendedVoteInfo() {
|
|
3411
|
+
return { validator: undefined, signedLastBlock: false, voteExtension: new Uint8Array() };
|
|
3412
|
+
}
|
|
3413
|
+
export const ExtendedVoteInfo = {
|
|
3414
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
3415
|
+
if (message.validator !== undefined) {
|
|
3416
|
+
Validator.encode(message.validator, writer.uint32(10).fork()).ldelim();
|
|
3417
|
+
}
|
|
3418
|
+
if (message.signedLastBlock === true) {
|
|
3419
|
+
writer.uint32(16).bool(message.signedLastBlock);
|
|
3420
|
+
}
|
|
3421
|
+
if (message.voteExtension.length !== 0) {
|
|
3422
|
+
writer.uint32(26).bytes(message.voteExtension);
|
|
3423
|
+
}
|
|
3424
|
+
return writer;
|
|
3425
|
+
},
|
|
3426
|
+
decode(input, length) {
|
|
3427
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3428
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3429
|
+
const message = createBaseExtendedVoteInfo();
|
|
3430
|
+
while (reader.pos < end) {
|
|
3431
|
+
const tag = reader.uint32();
|
|
3432
|
+
switch (tag >>> 3) {
|
|
3433
|
+
case 1:
|
|
3434
|
+
message.validator = Validator.decode(reader, reader.uint32());
|
|
3435
|
+
break;
|
|
3436
|
+
case 2:
|
|
3437
|
+
message.signedLastBlock = reader.bool();
|
|
3438
|
+
break;
|
|
3439
|
+
case 3:
|
|
3440
|
+
message.voteExtension = reader.bytes();
|
|
3441
|
+
break;
|
|
3442
|
+
default:
|
|
3443
|
+
reader.skipType(tag & 7);
|
|
3444
|
+
break;
|
|
3445
|
+
}
|
|
3446
|
+
}
|
|
3447
|
+
return message;
|
|
3448
|
+
},
|
|
3449
|
+
fromJSON(object) {
|
|
3450
|
+
return {
|
|
3451
|
+
validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined,
|
|
3452
|
+
signedLastBlock: isSet(object.signedLastBlock) ? Boolean(object.signedLastBlock) : false,
|
|
3453
|
+
voteExtension: isSet(object.voteExtension) ? bytesFromBase64(object.voteExtension) : new Uint8Array(),
|
|
3454
|
+
};
|
|
3455
|
+
},
|
|
3456
|
+
toJSON(message) {
|
|
3457
|
+
const obj = {};
|
|
3458
|
+
message.validator !== undefined
|
|
3459
|
+
&& (obj.validator = message.validator ? Validator.toJSON(message.validator) : undefined);
|
|
3460
|
+
message.signedLastBlock !== undefined && (obj.signedLastBlock = message.signedLastBlock);
|
|
3461
|
+
message.voteExtension !== undefined
|
|
3462
|
+
&& (obj.voteExtension = base64FromBytes(message.voteExtension !== undefined ? message.voteExtension : new Uint8Array()));
|
|
3463
|
+
return obj;
|
|
3464
|
+
},
|
|
3465
|
+
fromPartial(object) {
|
|
3466
|
+
const message = createBaseExtendedVoteInfo();
|
|
3467
|
+
message.validator = (object.validator !== undefined && object.validator !== null)
|
|
3468
|
+
? Validator.fromPartial(object.validator)
|
|
3469
|
+
: undefined;
|
|
3470
|
+
message.signedLastBlock = object.signedLastBlock ?? false;
|
|
3471
|
+
message.voteExtension = object.voteExtension ?? new Uint8Array();
|
|
3472
|
+
return message;
|
|
3473
|
+
},
|
|
3474
|
+
};
|
|
3475
|
+
function createBaseMisbehavior() {
|
|
3156
3476
|
return { type: 0, validator: undefined, height: 0, time: undefined, totalVotingPower: 0 };
|
|
3157
3477
|
}
|
|
3158
|
-
export const
|
|
3478
|
+
export const Misbehavior = {
|
|
3159
3479
|
encode(message, writer = _m0.Writer.create()) {
|
|
3160
3480
|
if (message.type !== 0) {
|
|
3161
3481
|
writer.uint32(8).int32(message.type);
|
|
@@ -3177,7 +3497,7 @@ export const Evidence = {
|
|
|
3177
3497
|
decode(input, length) {
|
|
3178
3498
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3179
3499
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3180
|
-
const message =
|
|
3500
|
+
const message = createBaseMisbehavior();
|
|
3181
3501
|
while (reader.pos < end) {
|
|
3182
3502
|
const tag = reader.uint32();
|
|
3183
3503
|
switch (tag >>> 3) {
|
|
@@ -3205,7 +3525,7 @@ export const Evidence = {
|
|
|
3205
3525
|
},
|
|
3206
3526
|
fromJSON(object) {
|
|
3207
3527
|
return {
|
|
3208
|
-
type: isSet(object.type) ?
|
|
3528
|
+
type: isSet(object.type) ? misbehaviorTypeFromJSON(object.type) : 0,
|
|
3209
3529
|
validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined,
|
|
3210
3530
|
height: isSet(object.height) ? Number(object.height) : 0,
|
|
3211
3531
|
time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
|
|
@@ -3214,7 +3534,7 @@ export const Evidence = {
|
|
|
3214
3534
|
},
|
|
3215
3535
|
toJSON(message) {
|
|
3216
3536
|
const obj = {};
|
|
3217
|
-
message.type !== undefined && (obj.type =
|
|
3537
|
+
message.type !== undefined && (obj.type = misbehaviorTypeToJSON(message.type));
|
|
3218
3538
|
message.validator !== undefined
|
|
3219
3539
|
&& (obj.validator = message.validator ? Validator.toJSON(message.validator) : undefined);
|
|
3220
3540
|
message.height !== undefined && (obj.height = Math.round(message.height));
|
|
@@ -3223,7 +3543,7 @@ export const Evidence = {
|
|
|
3223
3543
|
return obj;
|
|
3224
3544
|
},
|
|
3225
3545
|
fromPartial(object) {
|
|
3226
|
-
const message =
|
|
3546
|
+
const message = createBaseMisbehavior();
|
|
3227
3547
|
message.type = object.type ?? 0;
|
|
3228
3548
|
message.validator = (object.validator !== undefined && object.validator !== null)
|
|
3229
3549
|
? Validator.fromPartial(object.validator)
|
|
@@ -3321,7 +3641,6 @@ export class ABCIApplicationClientImpl {
|
|
|
3321
3641
|
this.Echo = this.Echo.bind(this);
|
|
3322
3642
|
this.Flush = this.Flush.bind(this);
|
|
3323
3643
|
this.Info = this.Info.bind(this);
|
|
3324
|
-
this.SetOption = this.SetOption.bind(this);
|
|
3325
3644
|
this.DeliverTx = this.DeliverTx.bind(this);
|
|
3326
3645
|
this.CheckTx = this.CheckTx.bind(this);
|
|
3327
3646
|
this.Query = this.Query.bind(this);
|
|
@@ -3333,6 +3652,8 @@ export class ABCIApplicationClientImpl {
|
|
|
3333
3652
|
this.OfferSnapshot = this.OfferSnapshot.bind(this);
|
|
3334
3653
|
this.LoadSnapshotChunk = this.LoadSnapshotChunk.bind(this);
|
|
3335
3654
|
this.ApplySnapshotChunk = this.ApplySnapshotChunk.bind(this);
|
|
3655
|
+
this.PrepareProposal = this.PrepareProposal.bind(this);
|
|
3656
|
+
this.ProcessProposal = this.ProcessProposal.bind(this);
|
|
3336
3657
|
}
|
|
3337
3658
|
Echo(request) {
|
|
3338
3659
|
const data = RequestEcho.encode(request).finish();
|
|
@@ -3349,11 +3670,6 @@ export class ABCIApplicationClientImpl {
|
|
|
3349
3670
|
const promise = this.rpc.request("tendermint.abci.ABCIApplication", "Info", data);
|
|
3350
3671
|
return promise.then((data) => ResponseInfo.decode(new _m0.Reader(data)));
|
|
3351
3672
|
}
|
|
3352
|
-
SetOption(request) {
|
|
3353
|
-
const data = RequestSetOption.encode(request).finish();
|
|
3354
|
-
const promise = this.rpc.request("tendermint.abci.ABCIApplication", "SetOption", data);
|
|
3355
|
-
return promise.then((data) => ResponseSetOption.decode(new _m0.Reader(data)));
|
|
3356
|
-
}
|
|
3357
3673
|
DeliverTx(request) {
|
|
3358
3674
|
const data = RequestDeliverTx.encode(request).finish();
|
|
3359
3675
|
const promise = this.rpc.request("tendermint.abci.ABCIApplication", "DeliverTx", data);
|
|
@@ -3409,6 +3725,16 @@ export class ABCIApplicationClientImpl {
|
|
|
3409
3725
|
const promise = this.rpc.request("tendermint.abci.ABCIApplication", "ApplySnapshotChunk", data);
|
|
3410
3726
|
return promise.then((data) => ResponseApplySnapshotChunk.decode(new _m0.Reader(data)));
|
|
3411
3727
|
}
|
|
3728
|
+
PrepareProposal(request) {
|
|
3729
|
+
const data = RequestPrepareProposal.encode(request).finish();
|
|
3730
|
+
const promise = this.rpc.request("tendermint.abci.ABCIApplication", "PrepareProposal", data);
|
|
3731
|
+
return promise.then((data) => ResponsePrepareProposal.decode(new _m0.Reader(data)));
|
|
3732
|
+
}
|
|
3733
|
+
ProcessProposal(request) {
|
|
3734
|
+
const data = RequestProcessProposal.encode(request).finish();
|
|
3735
|
+
const promise = this.rpc.request("tendermint.abci.ABCIApplication", "ProcessProposal", data);
|
|
3736
|
+
return promise.then((data) => ResponseProcessProposal.decode(new _m0.Reader(data)));
|
|
3737
|
+
}
|
|
3412
3738
|
}
|
|
3413
3739
|
var globalThis = (() => {
|
|
3414
3740
|
if (typeof globalThis !== "undefined") {
|