decentralcardgame-cardchain-client-ts 0.0.15 → 0.0.16
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 +318 -383
- package/DecentralCardGame.cardchain.cardchain/module.ts +463 -558
- package/DecentralCardGame.cardchain.cardchain/registry.js +72 -78
- package/DecentralCardGame.cardchain.cardchain/registry.ts +72 -78
- package/DecentralCardGame.cardchain.cardchain/rest.js +77 -60
- package/DecentralCardGame.cardchain.cardchain/rest.ts +123 -76
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +657 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +741 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/copyright_proposal.js +102 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/copyright_proposal.ts +134 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.js +356 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.ts +415 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.js +254 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.ts +281 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/image.js +88 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/image.ts +115 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match.js +308 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match.ts +355 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match_reporter_proposal.js +67 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match_reporter_proposal.ts +92 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/num.js +73 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/num.ts +102 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.js +325 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.ts +380 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +2200 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +2633 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/running_average.js +85 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/running_average.ts +111 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/sell_offer.js +148 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/sell_offer.ts +183 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/server.js +93 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/server.ts +124 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.js +365 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.ts +416 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set_proposal.js +93 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set_proposal.ts +124 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +4185 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +5139 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +580 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.ts +652 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.js +346 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.ts +417 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +25 -23
- package/DecentralCardGame.cardchain.cardchain/types.ts +26 -22
- package/DecentralCardGame.cardchain.featureflag/index.js +5 -0
- package/DecentralCardGame.cardchain.featureflag/index.ts +6 -0
- package/DecentralCardGame.cardchain.featureflag/module.js +62 -0
- package/DecentralCardGame.cardchain.featureflag/module.ts +102 -0
- package/DecentralCardGame.cardchain.featureflag/registry.js +2 -0
- package/DecentralCardGame.cardchain.featureflag/registry.ts +7 -0
- package/DecentralCardGame.cardchain.featureflag/rest.js +128 -0
- package/DecentralCardGame.cardchain.featureflag/rest.ts +222 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/flag.js +67 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/flag.ts +92 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/genesis.js +135 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/genesis.ts +172 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/params.js +36 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/params.ts +58 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/proposal.js +76 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/proposal.ts +102 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/query.js +279 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/query.ts +371 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/tx.js +7 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/tx.ts +17 -0
- package/DecentralCardGame.cardchain.featureflag/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/DecentralCardGame.cardchain.featureflag/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/DecentralCardGame.cardchain.featureflag/types/gogoproto/gogo.js +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/gogoproto/gogo.ts +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/annotations.js +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/annotations.ts +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/http.js +260 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/http.ts +589 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/protobuf/descriptor.js +2830 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/protobuf/descriptor.ts +3753 -0
- package/DecentralCardGame.cardchain.featureflag/types.js +4 -0
- package/DecentralCardGame.cardchain.featureflag/types.ts +11 -0
- package/client.js +7 -7
- package/client.ts +9 -10
- package/cosmos.auth.v1beta1/module.js +0 -2
- package/cosmos.auth.v1beta1/module.ts +0 -2
- package/cosmos.auth.v1beta1/rest.js +3 -18
- package/cosmos.auth.v1beta1/rest.ts +3 -113
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +3 -104
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +4 -157
- package/cosmos.auth.v1beta1/types.js +1 -2
- package/cosmos.auth.v1beta1/types.ts +0 -2
- 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/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 +6 -37
- package/cosmos.bank.v1beta1/rest.ts +6 -99
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +2 -18
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +2 -24
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +0 -9
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +2 -18
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +4 -25
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1 -230
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +5 -356
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +1 -206
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +1 -305
- package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
- package/cosmos.base.tendermint.v1beta1/rest.ts +27 -18
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +46 -16
- package/cosmos.crisis.v1beta1/module.js +1 -24
- package/cosmos.crisis.v1beta1/module.ts +1 -34
- package/cosmos.crisis.v1beta1/registry.js +0 -2
- package/cosmos.crisis.v1beta1/registry.ts +0 -2
- package/cosmos.crisis.v1beta1/rest.ts +0 -19
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +0 -95
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +1 -140
- package/cosmos.distribution.v1beta1/module.js +21 -67
- package/cosmos.distribution.v1beta1/module.ts +34 -100
- package/cosmos.distribution.v1beta1/registry.js +4 -8
- package/cosmos.distribution.v1beta1/registry.ts +4 -8
- package/cosmos.distribution.v1beta1/rest.js +0 -14
- package/cosmos.distribution.v1beta1/rest.ts +7 -66
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +0 -19
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +0 -120
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1 -158
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +0 -199
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +3 -300
- package/cosmos.evidence.v1beta1/rest.js +3 -4
- package/cosmos.evidence.v1beta1/rest.ts +3 -4
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +1 -7
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +2 -13
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +3 -25
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +0 -2
- package/cosmos.gov.v1/module.js +21 -46
- package/cosmos.gov.v1/module.ts +33 -68
- package/cosmos.gov.v1/registry.js +4 -6
- package/cosmos.gov.v1/registry.ts +4 -6
- package/cosmos.gov.v1/rest.ts +41 -155
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +1 -13
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +5 -40
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +0 -179
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +6 -277
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +2 -13
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +7 -45
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +2 -113
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +3 -186
- package/cosmos.gov.v1/types.js +1 -2
- package/cosmos.gov.v1/types.ts +0 -2
- 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 +96 -65
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +10 -45
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +2 -4
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +1 -16
- 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 +9 -29
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +34 -52
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +49 -79
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +0 -20
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +6 -46
- package/cosmos.mint.v1beta1/rest.ts +1 -9
- 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.nft.v1beta1/rest.ts +22 -18
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +0 -10
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +0 -1
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +0 -20
- package/cosmos.slashing.v1beta1/rest.ts +0 -8
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +0 -94
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +0 -139
- package/cosmos.staking.v1beta1/module.js +39 -41
- package/cosmos.staking.v1beta1/module.ts +59 -61
- 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 +8 -49
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +5 -36
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +2 -180
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +3 -206
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +1 -94
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1 -138
- package/cosmos.staking.v1beta1/types.js +1 -2
- package/cosmos.staking.v1beta1/types.ts +0 -2
- package/cosmos.tx.v1beta1/rest.js +2 -66
- package/cosmos.tx.v1beta1/rest.ts +16 -177
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +2 -360
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +2 -524
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +266 -592
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +332 -703
- package/cosmos.tx.v1beta1/types/tendermint/types/params.js +17 -8
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +25 -9
- package/cosmos.upgrade.v1beta1/rest.ts +1 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -1
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +2 -13
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +4 -16
- package/ibc.applications.transfer.v1/module.js +27 -5
- package/ibc.applications.transfer.v1/module.ts +34 -5
- package/ibc.applications.transfer.v1/registry.js +4 -1
- package/ibc.applications.transfer.v1/registry.ts +2 -0
- package/ibc.applications.transfer.v1/rest.js +1 -15
- package/ibc.applications.transfer.v1/rest.ts +1 -30
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +1 -16
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +2 -23
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +0 -91
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +0 -120
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.applications.transfer.v1/types.js +1 -3
- package/ibc.applications.transfer.v1/types.ts +0 -4
- package/ibc.core.channel.v1/rest.ts +0 -1
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +2 -13
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +2 -14
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.client.v1/rest.ts +1 -5
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +8 -9
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +14 -28
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +1 -5
- 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 +0 -26
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +0 -34
- package/ibc.core.connection.v1/types/proofs.js +1126 -0
- package/ibc.core.connection.v1/types/proofs.ts +1408 -0
- package/index.js +3 -3
- package/index.ts +3 -3
- package/package.json +1 -1
|
@@ -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 { EvidenceParams, ValidatorParams, VersionParams } 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 EvidenceType;
|
|
42
|
+
(function (EvidenceType) {
|
|
43
|
+
EvidenceType[EvidenceType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
44
|
+
EvidenceType[EvidenceType["DUPLICATE_VOTE"] = 1] = "DUPLICATE_VOTE";
|
|
45
|
+
EvidenceType[EvidenceType["LIGHT_CLIENT_ATTACK"] = 2] = "LIGHT_CLIENT_ATTACK";
|
|
46
|
+
EvidenceType[EvidenceType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
47
|
+
})(EvidenceType || (EvidenceType = {}));
|
|
48
|
+
export function evidenceTypeFromJSON(object) {
|
|
49
49
|
switch (object) {
|
|
50
50
|
case 0:
|
|
51
51
|
case "UNKNOWN":
|
|
52
|
-
return
|
|
52
|
+
return EvidenceType.UNKNOWN;
|
|
53
53
|
case 1:
|
|
54
54
|
case "DUPLICATE_VOTE":
|
|
55
|
-
return
|
|
55
|
+
return EvidenceType.DUPLICATE_VOTE;
|
|
56
56
|
case 2:
|
|
57
57
|
case "LIGHT_CLIENT_ATTACK":
|
|
58
|
-
return
|
|
58
|
+
return EvidenceType.LIGHT_CLIENT_ATTACK;
|
|
59
59
|
case -1:
|
|
60
60
|
case "UNRECOGNIZED":
|
|
61
61
|
default:
|
|
62
|
-
return
|
|
62
|
+
return EvidenceType.UNRECOGNIZED;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
export function
|
|
65
|
+
export function evidenceTypeToJSON(object) {
|
|
66
66
|
switch (object) {
|
|
67
|
-
case
|
|
67
|
+
case EvidenceType.UNKNOWN:
|
|
68
68
|
return "UNKNOWN";
|
|
69
|
-
case
|
|
69
|
+
case EvidenceType.DUPLICATE_VOTE:
|
|
70
70
|
return "DUPLICATE_VOTE";
|
|
71
|
-
case
|
|
71
|
+
case EvidenceType.LIGHT_CLIENT_ATTACK:
|
|
72
72
|
return "LIGHT_CLIENT_ATTACK";
|
|
73
|
-
case
|
|
73
|
+
case EvidenceType.UNRECOGNIZED:
|
|
74
74
|
default:
|
|
75
75
|
return "UNRECOGNIZED";
|
|
76
76
|
}
|
|
@@ -197,48 +197,12 @@ 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
|
-
}
|
|
237
200
|
function createBaseRequest() {
|
|
238
201
|
return {
|
|
239
202
|
echo: undefined,
|
|
240
203
|
flush: undefined,
|
|
241
204
|
info: undefined,
|
|
205
|
+
setOption: undefined,
|
|
242
206
|
initChain: undefined,
|
|
243
207
|
query: undefined,
|
|
244
208
|
beginBlock: undefined,
|
|
@@ -250,8 +214,6 @@ function createBaseRequest() {
|
|
|
250
214
|
offerSnapshot: undefined,
|
|
251
215
|
loadSnapshotChunk: undefined,
|
|
252
216
|
applySnapshotChunk: undefined,
|
|
253
|
-
prepareProposal: undefined,
|
|
254
|
-
processProposal: undefined,
|
|
255
217
|
};
|
|
256
218
|
}
|
|
257
219
|
export const Request = {
|
|
@@ -265,6 +227,9 @@ export const Request = {
|
|
|
265
227
|
if (message.info !== undefined) {
|
|
266
228
|
RequestInfo.encode(message.info, writer.uint32(26).fork()).ldelim();
|
|
267
229
|
}
|
|
230
|
+
if (message.setOption !== undefined) {
|
|
231
|
+
RequestSetOption.encode(message.setOption, writer.uint32(34).fork()).ldelim();
|
|
232
|
+
}
|
|
268
233
|
if (message.initChain !== undefined) {
|
|
269
234
|
RequestInitChain.encode(message.initChain, writer.uint32(42).fork()).ldelim();
|
|
270
235
|
}
|
|
@@ -298,12 +263,6 @@ export const Request = {
|
|
|
298
263
|
if (message.applySnapshotChunk !== undefined) {
|
|
299
264
|
RequestApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(122).fork()).ldelim();
|
|
300
265
|
}
|
|
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
|
-
}
|
|
307
266
|
return writer;
|
|
308
267
|
},
|
|
309
268
|
decode(input, length) {
|
|
@@ -322,6 +281,9 @@ export const Request = {
|
|
|
322
281
|
case 3:
|
|
323
282
|
message.info = RequestInfo.decode(reader, reader.uint32());
|
|
324
283
|
break;
|
|
284
|
+
case 4:
|
|
285
|
+
message.setOption = RequestSetOption.decode(reader, reader.uint32());
|
|
286
|
+
break;
|
|
325
287
|
case 5:
|
|
326
288
|
message.initChain = RequestInitChain.decode(reader, reader.uint32());
|
|
327
289
|
break;
|
|
@@ -355,12 +317,6 @@ export const Request = {
|
|
|
355
317
|
case 15:
|
|
356
318
|
message.applySnapshotChunk = RequestApplySnapshotChunk.decode(reader, reader.uint32());
|
|
357
319
|
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;
|
|
364
320
|
default:
|
|
365
321
|
reader.skipType(tag & 7);
|
|
366
322
|
break;
|
|
@@ -373,6 +329,7 @@ export const Request = {
|
|
|
373
329
|
echo: isSet(object.echo) ? RequestEcho.fromJSON(object.echo) : undefined,
|
|
374
330
|
flush: isSet(object.flush) ? RequestFlush.fromJSON(object.flush) : undefined,
|
|
375
331
|
info: isSet(object.info) ? RequestInfo.fromJSON(object.info) : undefined,
|
|
332
|
+
setOption: isSet(object.setOption) ? RequestSetOption.fromJSON(object.setOption) : undefined,
|
|
376
333
|
initChain: isSet(object.initChain) ? RequestInitChain.fromJSON(object.initChain) : undefined,
|
|
377
334
|
query: isSet(object.query) ? RequestQuery.fromJSON(object.query) : undefined,
|
|
378
335
|
beginBlock: isSet(object.beginBlock) ? RequestBeginBlock.fromJSON(object.beginBlock) : undefined,
|
|
@@ -388,12 +345,6 @@ export const Request = {
|
|
|
388
345
|
applySnapshotChunk: isSet(object.applySnapshotChunk)
|
|
389
346
|
? RequestApplySnapshotChunk.fromJSON(object.applySnapshotChunk)
|
|
390
347
|
: 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,
|
|
397
348
|
};
|
|
398
349
|
},
|
|
399
350
|
toJSON(message) {
|
|
@@ -401,6 +352,8 @@ export const Request = {
|
|
|
401
352
|
message.echo !== undefined && (obj.echo = message.echo ? RequestEcho.toJSON(message.echo) : undefined);
|
|
402
353
|
message.flush !== undefined && (obj.flush = message.flush ? RequestFlush.toJSON(message.flush) : undefined);
|
|
403
354
|
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);
|
|
404
357
|
message.initChain !== undefined
|
|
405
358
|
&& (obj.initChain = message.initChain ? RequestInitChain.toJSON(message.initChain) : undefined);
|
|
406
359
|
message.query !== undefined && (obj.query = message.query ? RequestQuery.toJSON(message.query) : undefined);
|
|
@@ -423,12 +376,6 @@ export const Request = {
|
|
|
423
376
|
message.applySnapshotChunk !== undefined && (obj.applySnapshotChunk = message.applySnapshotChunk
|
|
424
377
|
? RequestApplySnapshotChunk.toJSON(message.applySnapshotChunk)
|
|
425
378
|
: 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);
|
|
432
379
|
return obj;
|
|
433
380
|
},
|
|
434
381
|
fromPartial(object) {
|
|
@@ -442,6 +389,9 @@ export const Request = {
|
|
|
442
389
|
message.info = (object.info !== undefined && object.info !== null)
|
|
443
390
|
? RequestInfo.fromPartial(object.info)
|
|
444
391
|
: undefined;
|
|
392
|
+
message.setOption = (object.setOption !== undefined && object.setOption !== null)
|
|
393
|
+
? RequestSetOption.fromPartial(object.setOption)
|
|
394
|
+
: undefined;
|
|
445
395
|
message.initChain = (object.initChain !== undefined && object.initChain !== null)
|
|
446
396
|
? RequestInitChain.fromPartial(object.initChain)
|
|
447
397
|
: undefined;
|
|
@@ -475,12 +425,6 @@ export const Request = {
|
|
|
475
425
|
message.applySnapshotChunk = (object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null)
|
|
476
426
|
? RequestApplySnapshotChunk.fromPartial(object.applySnapshotChunk)
|
|
477
427
|
: 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;
|
|
484
428
|
return message;
|
|
485
429
|
},
|
|
486
430
|
};
|
|
@@ -559,7 +503,7 @@ export const RequestFlush = {
|
|
|
559
503
|
},
|
|
560
504
|
};
|
|
561
505
|
function createBaseRequestInfo() {
|
|
562
|
-
return { version: "", blockVersion: 0, p2pVersion: 0
|
|
506
|
+
return { version: "", blockVersion: 0, p2pVersion: 0 };
|
|
563
507
|
}
|
|
564
508
|
export const RequestInfo = {
|
|
565
509
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -572,9 +516,6 @@ export const RequestInfo = {
|
|
|
572
516
|
if (message.p2pVersion !== 0) {
|
|
573
517
|
writer.uint32(24).uint64(message.p2pVersion);
|
|
574
518
|
}
|
|
575
|
-
if (message.abciVersion !== "") {
|
|
576
|
-
writer.uint32(34).string(message.abciVersion);
|
|
577
|
-
}
|
|
578
519
|
return writer;
|
|
579
520
|
},
|
|
580
521
|
decode(input, length) {
|
|
@@ -593,9 +534,6 @@ export const RequestInfo = {
|
|
|
593
534
|
case 3:
|
|
594
535
|
message.p2pVersion = longToNumber(reader.uint64());
|
|
595
536
|
break;
|
|
596
|
-
case 4:
|
|
597
|
-
message.abciVersion = reader.string();
|
|
598
|
-
break;
|
|
599
537
|
default:
|
|
600
538
|
reader.skipType(tag & 7);
|
|
601
539
|
break;
|
|
@@ -608,7 +546,6 @@ export const RequestInfo = {
|
|
|
608
546
|
version: isSet(object.version) ? String(object.version) : "",
|
|
609
547
|
blockVersion: isSet(object.blockVersion) ? Number(object.blockVersion) : 0,
|
|
610
548
|
p2pVersion: isSet(object.p2pVersion) ? Number(object.p2pVersion) : 0,
|
|
611
|
-
abciVersion: isSet(object.abciVersion) ? String(object.abciVersion) : "",
|
|
612
549
|
};
|
|
613
550
|
},
|
|
614
551
|
toJSON(message) {
|
|
@@ -616,7 +553,6 @@ export const RequestInfo = {
|
|
|
616
553
|
message.version !== undefined && (obj.version = message.version);
|
|
617
554
|
message.blockVersion !== undefined && (obj.blockVersion = Math.round(message.blockVersion));
|
|
618
555
|
message.p2pVersion !== undefined && (obj.p2pVersion = Math.round(message.p2pVersion));
|
|
619
|
-
message.abciVersion !== undefined && (obj.abciVersion = message.abciVersion);
|
|
620
556
|
return obj;
|
|
621
557
|
},
|
|
622
558
|
fromPartial(object) {
|
|
@@ -624,7 +560,55 @@ export const RequestInfo = {
|
|
|
624
560
|
message.version = object.version ?? "";
|
|
625
561
|
message.blockVersion = object.blockVersion ?? 0;
|
|
626
562
|
message.p2pVersion = object.p2pVersion ?? 0;
|
|
627
|
-
message
|
|
563
|
+
return message;
|
|
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 ?? "";
|
|
628
612
|
return message;
|
|
629
613
|
},
|
|
630
614
|
};
|
|
@@ -817,10 +801,10 @@ export const RequestBeginBlock = {
|
|
|
817
801
|
Header.encode(message.header, writer.uint32(18).fork()).ldelim();
|
|
818
802
|
}
|
|
819
803
|
if (message.lastCommitInfo !== undefined) {
|
|
820
|
-
|
|
804
|
+
LastCommitInfo.encode(message.lastCommitInfo, writer.uint32(26).fork()).ldelim();
|
|
821
805
|
}
|
|
822
806
|
for (const v of message.byzantineValidators) {
|
|
823
|
-
|
|
807
|
+
Evidence.encode(v, writer.uint32(34).fork()).ldelim();
|
|
824
808
|
}
|
|
825
809
|
return writer;
|
|
826
810
|
},
|
|
@@ -838,10 +822,10 @@ export const RequestBeginBlock = {
|
|
|
838
822
|
message.header = Header.decode(reader, reader.uint32());
|
|
839
823
|
break;
|
|
840
824
|
case 3:
|
|
841
|
-
message.lastCommitInfo =
|
|
825
|
+
message.lastCommitInfo = LastCommitInfo.decode(reader, reader.uint32());
|
|
842
826
|
break;
|
|
843
827
|
case 4:
|
|
844
|
-
message.byzantineValidators.push(
|
|
828
|
+
message.byzantineValidators.push(Evidence.decode(reader, reader.uint32()));
|
|
845
829
|
break;
|
|
846
830
|
default:
|
|
847
831
|
reader.skipType(tag & 7);
|
|
@@ -854,9 +838,9 @@ export const RequestBeginBlock = {
|
|
|
854
838
|
return {
|
|
855
839
|
hash: isSet(object.hash) ? bytesFromBase64(object.hash) : new Uint8Array(),
|
|
856
840
|
header: isSet(object.header) ? Header.fromJSON(object.header) : undefined,
|
|
857
|
-
lastCommitInfo: isSet(object.lastCommitInfo) ?
|
|
841
|
+
lastCommitInfo: isSet(object.lastCommitInfo) ? LastCommitInfo.fromJSON(object.lastCommitInfo) : undefined,
|
|
858
842
|
byzantineValidators: Array.isArray(object?.byzantineValidators)
|
|
859
|
-
? object.byzantineValidators.map((e) =>
|
|
843
|
+
? object.byzantineValidators.map((e) => Evidence.fromJSON(e))
|
|
860
844
|
: [],
|
|
861
845
|
};
|
|
862
846
|
},
|
|
@@ -866,9 +850,9 @@ export const RequestBeginBlock = {
|
|
|
866
850
|
&& (obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array()));
|
|
867
851
|
message.header !== undefined && (obj.header = message.header ? Header.toJSON(message.header) : undefined);
|
|
868
852
|
message.lastCommitInfo !== undefined
|
|
869
|
-
&& (obj.lastCommitInfo = message.lastCommitInfo ?
|
|
853
|
+
&& (obj.lastCommitInfo = message.lastCommitInfo ? LastCommitInfo.toJSON(message.lastCommitInfo) : undefined);
|
|
870
854
|
if (message.byzantineValidators) {
|
|
871
|
-
obj.byzantineValidators = message.byzantineValidators.map((e) => e ?
|
|
855
|
+
obj.byzantineValidators = message.byzantineValidators.map((e) => e ? Evidence.toJSON(e) : undefined);
|
|
872
856
|
}
|
|
873
857
|
else {
|
|
874
858
|
obj.byzantineValidators = [];
|
|
@@ -882,9 +866,9 @@ export const RequestBeginBlock = {
|
|
|
882
866
|
? Header.fromPartial(object.header)
|
|
883
867
|
: undefined;
|
|
884
868
|
message.lastCommitInfo = (object.lastCommitInfo !== undefined && object.lastCommitInfo !== null)
|
|
885
|
-
?
|
|
869
|
+
? LastCommitInfo.fromPartial(object.lastCommitInfo)
|
|
886
870
|
: undefined;
|
|
887
|
-
message.byzantineValidators = object.byzantineValidators?.map((e) =>
|
|
871
|
+
message.byzantineValidators = object.byzantineValidators?.map((e) => Evidence.fromPartial(e)) || [];
|
|
888
872
|
return message;
|
|
889
873
|
},
|
|
890
874
|
};
|
|
@@ -1266,284 +1250,13 @@ export const RequestApplySnapshotChunk = {
|
|
|
1266
1250
|
return message;
|
|
1267
1251
|
},
|
|
1268
1252
|
};
|
|
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
|
-
};
|
|
1541
1253
|
function createBaseResponse() {
|
|
1542
1254
|
return {
|
|
1543
1255
|
exception: undefined,
|
|
1544
1256
|
echo: undefined,
|
|
1545
1257
|
flush: undefined,
|
|
1546
1258
|
info: undefined,
|
|
1259
|
+
setOption: undefined,
|
|
1547
1260
|
initChain: undefined,
|
|
1548
1261
|
query: undefined,
|
|
1549
1262
|
beginBlock: undefined,
|
|
@@ -1555,8 +1268,6 @@ function createBaseResponse() {
|
|
|
1555
1268
|
offerSnapshot: undefined,
|
|
1556
1269
|
loadSnapshotChunk: undefined,
|
|
1557
1270
|
applySnapshotChunk: undefined,
|
|
1558
|
-
prepareProposal: undefined,
|
|
1559
|
-
processProposal: undefined,
|
|
1560
1271
|
};
|
|
1561
1272
|
}
|
|
1562
1273
|
export const Response = {
|
|
@@ -1573,6 +1284,9 @@ export const Response = {
|
|
|
1573
1284
|
if (message.info !== undefined) {
|
|
1574
1285
|
ResponseInfo.encode(message.info, writer.uint32(34).fork()).ldelim();
|
|
1575
1286
|
}
|
|
1287
|
+
if (message.setOption !== undefined) {
|
|
1288
|
+
ResponseSetOption.encode(message.setOption, writer.uint32(42).fork()).ldelim();
|
|
1289
|
+
}
|
|
1576
1290
|
if (message.initChain !== undefined) {
|
|
1577
1291
|
ResponseInitChain.encode(message.initChain, writer.uint32(50).fork()).ldelim();
|
|
1578
1292
|
}
|
|
@@ -1606,12 +1320,6 @@ export const Response = {
|
|
|
1606
1320
|
if (message.applySnapshotChunk !== undefined) {
|
|
1607
1321
|
ResponseApplySnapshotChunk.encode(message.applySnapshotChunk, writer.uint32(130).fork()).ldelim();
|
|
1608
1322
|
}
|
|
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
|
-
}
|
|
1615
1323
|
return writer;
|
|
1616
1324
|
},
|
|
1617
1325
|
decode(input, length) {
|
|
@@ -1633,6 +1341,9 @@ export const Response = {
|
|
|
1633
1341
|
case 4:
|
|
1634
1342
|
message.info = ResponseInfo.decode(reader, reader.uint32());
|
|
1635
1343
|
break;
|
|
1344
|
+
case 5:
|
|
1345
|
+
message.setOption = ResponseSetOption.decode(reader, reader.uint32());
|
|
1346
|
+
break;
|
|
1636
1347
|
case 6:
|
|
1637
1348
|
message.initChain = ResponseInitChain.decode(reader, reader.uint32());
|
|
1638
1349
|
break;
|
|
@@ -1666,12 +1377,6 @@ export const Response = {
|
|
|
1666
1377
|
case 16:
|
|
1667
1378
|
message.applySnapshotChunk = ResponseApplySnapshotChunk.decode(reader, reader.uint32());
|
|
1668
1379
|
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;
|
|
1675
1380
|
default:
|
|
1676
1381
|
reader.skipType(tag & 7);
|
|
1677
1382
|
break;
|
|
@@ -1685,6 +1390,7 @@ export const Response = {
|
|
|
1685
1390
|
echo: isSet(object.echo) ? ResponseEcho.fromJSON(object.echo) : undefined,
|
|
1686
1391
|
flush: isSet(object.flush) ? ResponseFlush.fromJSON(object.flush) : undefined,
|
|
1687
1392
|
info: isSet(object.info) ? ResponseInfo.fromJSON(object.info) : undefined,
|
|
1393
|
+
setOption: isSet(object.setOption) ? ResponseSetOption.fromJSON(object.setOption) : undefined,
|
|
1688
1394
|
initChain: isSet(object.initChain) ? ResponseInitChain.fromJSON(object.initChain) : undefined,
|
|
1689
1395
|
query: isSet(object.query) ? ResponseQuery.fromJSON(object.query) : undefined,
|
|
1690
1396
|
beginBlock: isSet(object.beginBlock) ? ResponseBeginBlock.fromJSON(object.beginBlock) : undefined,
|
|
@@ -1700,12 +1406,6 @@ export const Response = {
|
|
|
1700
1406
|
applySnapshotChunk: isSet(object.applySnapshotChunk)
|
|
1701
1407
|
? ResponseApplySnapshotChunk.fromJSON(object.applySnapshotChunk)
|
|
1702
1408
|
: 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,
|
|
1709
1409
|
};
|
|
1710
1410
|
},
|
|
1711
1411
|
toJSON(message) {
|
|
@@ -1715,6 +1415,8 @@ export const Response = {
|
|
|
1715
1415
|
message.echo !== undefined && (obj.echo = message.echo ? ResponseEcho.toJSON(message.echo) : undefined);
|
|
1716
1416
|
message.flush !== undefined && (obj.flush = message.flush ? ResponseFlush.toJSON(message.flush) : undefined);
|
|
1717
1417
|
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);
|
|
1718
1420
|
message.initChain !== undefined
|
|
1719
1421
|
&& (obj.initChain = message.initChain ? ResponseInitChain.toJSON(message.initChain) : undefined);
|
|
1720
1422
|
message.query !== undefined && (obj.query = message.query ? ResponseQuery.toJSON(message.query) : undefined);
|
|
@@ -1737,12 +1439,6 @@ export const Response = {
|
|
|
1737
1439
|
message.applySnapshotChunk !== undefined && (obj.applySnapshotChunk = message.applySnapshotChunk
|
|
1738
1440
|
? ResponseApplySnapshotChunk.toJSON(message.applySnapshotChunk)
|
|
1739
1441
|
: 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);
|
|
1746
1442
|
return obj;
|
|
1747
1443
|
},
|
|
1748
1444
|
fromPartial(object) {
|
|
@@ -1759,6 +1455,9 @@ export const Response = {
|
|
|
1759
1455
|
message.info = (object.info !== undefined && object.info !== null)
|
|
1760
1456
|
? ResponseInfo.fromPartial(object.info)
|
|
1761
1457
|
: undefined;
|
|
1458
|
+
message.setOption = (object.setOption !== undefined && object.setOption !== null)
|
|
1459
|
+
? ResponseSetOption.fromPartial(object.setOption)
|
|
1460
|
+
: undefined;
|
|
1762
1461
|
message.initChain = (object.initChain !== undefined && object.initChain !== null)
|
|
1763
1462
|
? ResponseInitChain.fromPartial(object.initChain)
|
|
1764
1463
|
: undefined;
|
|
@@ -1792,12 +1491,6 @@ export const Response = {
|
|
|
1792
1491
|
message.applySnapshotChunk = (object.applySnapshotChunk !== undefined && object.applySnapshotChunk !== null)
|
|
1793
1492
|
? ResponseApplySnapshotChunk.fromPartial(object.applySnapshotChunk)
|
|
1794
1493
|
: 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;
|
|
1801
1494
|
return message;
|
|
1802
1495
|
},
|
|
1803
1496
|
};
|
|
@@ -1996,6 +1689,67 @@ export const ResponseInfo = {
|
|
|
1996
1689
|
return message;
|
|
1997
1690
|
},
|
|
1998
1691
|
};
|
|
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
|
+
};
|
|
1999
1753
|
function createBaseResponseInitChain() {
|
|
2000
1754
|
return { consensusParams: undefined, validators: [], appHash: new Uint8Array() };
|
|
2001
1755
|
}
|
|
@@ -2851,71 +2605,43 @@ export const ResponseApplySnapshotChunk = {
|
|
|
2851
2605
|
return message;
|
|
2852
2606
|
},
|
|
2853
2607
|
};
|
|
2854
|
-
function
|
|
2855
|
-
return {
|
|
2608
|
+
function createBaseConsensusParams() {
|
|
2609
|
+
return { block: undefined, evidence: undefined, validator: undefined, version: undefined };
|
|
2856
2610
|
}
|
|
2857
|
-
export const
|
|
2611
|
+
export const ConsensusParams = {
|
|
2858
2612
|
encode(message, writer = _m0.Writer.create()) {
|
|
2859
|
-
|
|
2860
|
-
writer.uint32(10).
|
|
2613
|
+
if (message.block !== undefined) {
|
|
2614
|
+
BlockParams.encode(message.block, writer.uint32(10).fork()).ldelim();
|
|
2861
2615
|
}
|
|
2862
|
-
|
|
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
|
-
}
|
|
2878
|
-
}
|
|
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()));
|
|
2616
|
+
if (message.evidence !== undefined) {
|
|
2617
|
+
EvidenceParams.encode(message.evidence, writer.uint32(18).fork()).ldelim();
|
|
2888
2618
|
}
|
|
2889
|
-
|
|
2890
|
-
|
|
2619
|
+
if (message.validator !== undefined) {
|
|
2620
|
+
ValidatorParams.encode(message.validator, writer.uint32(26).fork()).ldelim();
|
|
2891
2621
|
}
|
|
2892
|
-
|
|
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);
|
|
2622
|
+
if (message.version !== undefined) {
|
|
2623
|
+
VersionParams.encode(message.version, writer.uint32(34).fork()).ldelim();
|
|
2907
2624
|
}
|
|
2908
2625
|
return writer;
|
|
2909
2626
|
},
|
|
2910
2627
|
decode(input, length) {
|
|
2911
2628
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2912
2629
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2913
|
-
const message =
|
|
2630
|
+
const message = createBaseConsensusParams();
|
|
2914
2631
|
while (reader.pos < end) {
|
|
2915
2632
|
const tag = reader.uint32();
|
|
2916
2633
|
switch (tag >>> 3) {
|
|
2917
2634
|
case 1:
|
|
2918
|
-
message.
|
|
2635
|
+
message.block = BlockParams.decode(reader, reader.uint32());
|
|
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());
|
|
2919
2645
|
break;
|
|
2920
2646
|
default:
|
|
2921
2647
|
reader.skipType(tag & 7);
|
|
@@ -2925,44 +2651,66 @@ export const ResponseProcessProposal = {
|
|
|
2925
2651
|
return message;
|
|
2926
2652
|
},
|
|
2927
2653
|
fromJSON(object) {
|
|
2928
|
-
return {
|
|
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
|
+
};
|
|
2929
2660
|
},
|
|
2930
2661
|
toJSON(message) {
|
|
2931
2662
|
const obj = {};
|
|
2932
|
-
message.
|
|
2663
|
+
message.block !== undefined && (obj.block = message.block ? BlockParams.toJSON(message.block) : undefined);
|
|
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);
|
|
2933
2670
|
return obj;
|
|
2934
2671
|
},
|
|
2935
2672
|
fromPartial(object) {
|
|
2936
|
-
const message =
|
|
2937
|
-
message.
|
|
2673
|
+
const message = createBaseConsensusParams();
|
|
2674
|
+
message.block = (object.block !== undefined && object.block !== null)
|
|
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;
|
|
2938
2686
|
return message;
|
|
2939
2687
|
},
|
|
2940
2688
|
};
|
|
2941
|
-
function
|
|
2942
|
-
return {
|
|
2689
|
+
function createBaseBlockParams() {
|
|
2690
|
+
return { maxBytes: 0, maxGas: 0 };
|
|
2943
2691
|
}
|
|
2944
|
-
export const
|
|
2692
|
+
export const BlockParams = {
|
|
2945
2693
|
encode(message, writer = _m0.Writer.create()) {
|
|
2946
|
-
if (message.
|
|
2947
|
-
writer.uint32(8).
|
|
2694
|
+
if (message.maxBytes !== 0) {
|
|
2695
|
+
writer.uint32(8).int64(message.maxBytes);
|
|
2948
2696
|
}
|
|
2949
|
-
|
|
2950
|
-
|
|
2697
|
+
if (message.maxGas !== 0) {
|
|
2698
|
+
writer.uint32(16).int64(message.maxGas);
|
|
2951
2699
|
}
|
|
2952
2700
|
return writer;
|
|
2953
2701
|
},
|
|
2954
2702
|
decode(input, length) {
|
|
2955
2703
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2956
2704
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2957
|
-
const message =
|
|
2705
|
+
const message = createBaseBlockParams();
|
|
2958
2706
|
while (reader.pos < end) {
|
|
2959
2707
|
const tag = reader.uint32();
|
|
2960
2708
|
switch (tag >>> 3) {
|
|
2961
2709
|
case 1:
|
|
2962
|
-
message.
|
|
2710
|
+
message.maxBytes = longToNumber(reader.int64());
|
|
2963
2711
|
break;
|
|
2964
2712
|
case 2:
|
|
2965
|
-
message.
|
|
2713
|
+
message.maxGas = longToNumber(reader.int64());
|
|
2966
2714
|
break;
|
|
2967
2715
|
default:
|
|
2968
2716
|
reader.skipType(tag & 7);
|
|
@@ -2973,45 +2721,40 @@ export const CommitInfo = {
|
|
|
2973
2721
|
},
|
|
2974
2722
|
fromJSON(object) {
|
|
2975
2723
|
return {
|
|
2976
|
-
|
|
2977
|
-
|
|
2724
|
+
maxBytes: isSet(object.maxBytes) ? Number(object.maxBytes) : 0,
|
|
2725
|
+
maxGas: isSet(object.maxGas) ? Number(object.maxGas) : 0,
|
|
2978
2726
|
};
|
|
2979
2727
|
},
|
|
2980
2728
|
toJSON(message) {
|
|
2981
2729
|
const obj = {};
|
|
2982
|
-
message.
|
|
2983
|
-
|
|
2984
|
-
obj.votes = message.votes.map((e) => e ? VoteInfo.toJSON(e) : undefined);
|
|
2985
|
-
}
|
|
2986
|
-
else {
|
|
2987
|
-
obj.votes = [];
|
|
2988
|
-
}
|
|
2730
|
+
message.maxBytes !== undefined && (obj.maxBytes = Math.round(message.maxBytes));
|
|
2731
|
+
message.maxGas !== undefined && (obj.maxGas = Math.round(message.maxGas));
|
|
2989
2732
|
return obj;
|
|
2990
2733
|
},
|
|
2991
2734
|
fromPartial(object) {
|
|
2992
|
-
const message =
|
|
2993
|
-
message.
|
|
2994
|
-
message.
|
|
2735
|
+
const message = createBaseBlockParams();
|
|
2736
|
+
message.maxBytes = object.maxBytes ?? 0;
|
|
2737
|
+
message.maxGas = object.maxGas ?? 0;
|
|
2995
2738
|
return message;
|
|
2996
2739
|
},
|
|
2997
2740
|
};
|
|
2998
|
-
function
|
|
2741
|
+
function createBaseLastCommitInfo() {
|
|
2999
2742
|
return { round: 0, votes: [] };
|
|
3000
2743
|
}
|
|
3001
|
-
export const
|
|
2744
|
+
export const LastCommitInfo = {
|
|
3002
2745
|
encode(message, writer = _m0.Writer.create()) {
|
|
3003
2746
|
if (message.round !== 0) {
|
|
3004
2747
|
writer.uint32(8).int32(message.round);
|
|
3005
2748
|
}
|
|
3006
2749
|
for (const v of message.votes) {
|
|
3007
|
-
|
|
2750
|
+
VoteInfo.encode(v, writer.uint32(18).fork()).ldelim();
|
|
3008
2751
|
}
|
|
3009
2752
|
return writer;
|
|
3010
2753
|
},
|
|
3011
2754
|
decode(input, length) {
|
|
3012
2755
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3013
2756
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3014
|
-
const message =
|
|
2757
|
+
const message = createBaseLastCommitInfo();
|
|
3015
2758
|
while (reader.pos < end) {
|
|
3016
2759
|
const tag = reader.uint32();
|
|
3017
2760
|
switch (tag >>> 3) {
|
|
@@ -3019,7 +2762,7 @@ export const ExtendedCommitInfo = {
|
|
|
3019
2762
|
message.round = reader.int32();
|
|
3020
2763
|
break;
|
|
3021
2764
|
case 2:
|
|
3022
|
-
message.votes.push(
|
|
2765
|
+
message.votes.push(VoteInfo.decode(reader, reader.uint32()));
|
|
3023
2766
|
break;
|
|
3024
2767
|
default:
|
|
3025
2768
|
reader.skipType(tag & 7);
|
|
@@ -3031,14 +2774,14 @@ export const ExtendedCommitInfo = {
|
|
|
3031
2774
|
fromJSON(object) {
|
|
3032
2775
|
return {
|
|
3033
2776
|
round: isSet(object.round) ? Number(object.round) : 0,
|
|
3034
|
-
votes: Array.isArray(object?.votes) ? object.votes.map((e) =>
|
|
2777
|
+
votes: Array.isArray(object?.votes) ? object.votes.map((e) => VoteInfo.fromJSON(e)) : [],
|
|
3035
2778
|
};
|
|
3036
2779
|
},
|
|
3037
2780
|
toJSON(message) {
|
|
3038
2781
|
const obj = {};
|
|
3039
2782
|
message.round !== undefined && (obj.round = Math.round(message.round));
|
|
3040
2783
|
if (message.votes) {
|
|
3041
|
-
obj.votes = message.votes.map((e) => e ?
|
|
2784
|
+
obj.votes = message.votes.map((e) => e ? VoteInfo.toJSON(e) : undefined);
|
|
3042
2785
|
}
|
|
3043
2786
|
else {
|
|
3044
2787
|
obj.votes = [];
|
|
@@ -3046,9 +2789,9 @@ export const ExtendedCommitInfo = {
|
|
|
3046
2789
|
return obj;
|
|
3047
2790
|
},
|
|
3048
2791
|
fromPartial(object) {
|
|
3049
|
-
const message =
|
|
2792
|
+
const message = createBaseLastCommitInfo();
|
|
3050
2793
|
message.round = object.round ?? 0;
|
|
3051
|
-
message.votes = object.votes?.map((e) =>
|
|
2794
|
+
message.votes = object.votes?.map((e) => VoteInfo.fromPartial(e)) || [];
|
|
3052
2795
|
return message;
|
|
3053
2796
|
},
|
|
3054
2797
|
};
|
|
@@ -3112,15 +2855,15 @@ export const Event = {
|
|
|
3112
2855
|
},
|
|
3113
2856
|
};
|
|
3114
2857
|
function createBaseEventAttribute() {
|
|
3115
|
-
return { key:
|
|
2858
|
+
return { key: new Uint8Array(), value: new Uint8Array(), index: false };
|
|
3116
2859
|
}
|
|
3117
2860
|
export const EventAttribute = {
|
|
3118
2861
|
encode(message, writer = _m0.Writer.create()) {
|
|
3119
|
-
if (message.key !==
|
|
3120
|
-
writer.uint32(10).
|
|
2862
|
+
if (message.key.length !== 0) {
|
|
2863
|
+
writer.uint32(10).bytes(message.key);
|
|
3121
2864
|
}
|
|
3122
|
-
if (message.value !==
|
|
3123
|
-
writer.uint32(18).
|
|
2865
|
+
if (message.value.length !== 0) {
|
|
2866
|
+
writer.uint32(18).bytes(message.value);
|
|
3124
2867
|
}
|
|
3125
2868
|
if (message.index === true) {
|
|
3126
2869
|
writer.uint32(24).bool(message.index);
|
|
@@ -3135,10 +2878,10 @@ export const EventAttribute = {
|
|
|
3135
2878
|
const tag = reader.uint32();
|
|
3136
2879
|
switch (tag >>> 3) {
|
|
3137
2880
|
case 1:
|
|
3138
|
-
message.key = reader.
|
|
2881
|
+
message.key = reader.bytes();
|
|
3139
2882
|
break;
|
|
3140
2883
|
case 2:
|
|
3141
|
-
message.value = reader.
|
|
2884
|
+
message.value = reader.bytes();
|
|
3142
2885
|
break;
|
|
3143
2886
|
case 3:
|
|
3144
2887
|
message.index = reader.bool();
|
|
@@ -3152,22 +2895,24 @@ export const EventAttribute = {
|
|
|
3152
2895
|
},
|
|
3153
2896
|
fromJSON(object) {
|
|
3154
2897
|
return {
|
|
3155
|
-
key: isSet(object.key) ?
|
|
3156
|
-
value: isSet(object.value) ?
|
|
2898
|
+
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
2899
|
+
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(),
|
|
3157
2900
|
index: isSet(object.index) ? Boolean(object.index) : false,
|
|
3158
2901
|
};
|
|
3159
2902
|
},
|
|
3160
2903
|
toJSON(message) {
|
|
3161
2904
|
const obj = {};
|
|
3162
|
-
message.key !== undefined
|
|
3163
|
-
|
|
2905
|
+
message.key !== undefined
|
|
2906
|
+
&& (obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
2907
|
+
message.value !== undefined
|
|
2908
|
+
&& (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
3164
2909
|
message.index !== undefined && (obj.index = message.index);
|
|
3165
2910
|
return obj;
|
|
3166
2911
|
},
|
|
3167
2912
|
fromPartial(object) {
|
|
3168
2913
|
const message = createBaseEventAttribute();
|
|
3169
|
-
message.key = object.key ??
|
|
3170
|
-
message.value = object.value ??
|
|
2914
|
+
message.key = object.key ?? new Uint8Array();
|
|
2915
|
+
message.value = object.value ?? new Uint8Array();
|
|
3171
2916
|
message.index = object.index ?? false;
|
|
3172
2917
|
return message;
|
|
3173
2918
|
},
|
|
@@ -3407,75 +3152,10 @@ export const VoteInfo = {
|
|
|
3407
3152
|
return message;
|
|
3408
3153
|
},
|
|
3409
3154
|
};
|
|
3410
|
-
function
|
|
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() {
|
|
3155
|
+
function createBaseEvidence() {
|
|
3476
3156
|
return { type: 0, validator: undefined, height: 0, time: undefined, totalVotingPower: 0 };
|
|
3477
3157
|
}
|
|
3478
|
-
export const
|
|
3158
|
+
export const Evidence = {
|
|
3479
3159
|
encode(message, writer = _m0.Writer.create()) {
|
|
3480
3160
|
if (message.type !== 0) {
|
|
3481
3161
|
writer.uint32(8).int32(message.type);
|
|
@@ -3497,7 +3177,7 @@ export const Misbehavior = {
|
|
|
3497
3177
|
decode(input, length) {
|
|
3498
3178
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3499
3179
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3500
|
-
const message =
|
|
3180
|
+
const message = createBaseEvidence();
|
|
3501
3181
|
while (reader.pos < end) {
|
|
3502
3182
|
const tag = reader.uint32();
|
|
3503
3183
|
switch (tag >>> 3) {
|
|
@@ -3525,7 +3205,7 @@ export const Misbehavior = {
|
|
|
3525
3205
|
},
|
|
3526
3206
|
fromJSON(object) {
|
|
3527
3207
|
return {
|
|
3528
|
-
type: isSet(object.type) ?
|
|
3208
|
+
type: isSet(object.type) ? evidenceTypeFromJSON(object.type) : 0,
|
|
3529
3209
|
validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined,
|
|
3530
3210
|
height: isSet(object.height) ? Number(object.height) : 0,
|
|
3531
3211
|
time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
|
|
@@ -3534,7 +3214,7 @@ export const Misbehavior = {
|
|
|
3534
3214
|
},
|
|
3535
3215
|
toJSON(message) {
|
|
3536
3216
|
const obj = {};
|
|
3537
|
-
message.type !== undefined && (obj.type =
|
|
3217
|
+
message.type !== undefined && (obj.type = evidenceTypeToJSON(message.type));
|
|
3538
3218
|
message.validator !== undefined
|
|
3539
3219
|
&& (obj.validator = message.validator ? Validator.toJSON(message.validator) : undefined);
|
|
3540
3220
|
message.height !== undefined && (obj.height = Math.round(message.height));
|
|
@@ -3543,7 +3223,7 @@ export const Misbehavior = {
|
|
|
3543
3223
|
return obj;
|
|
3544
3224
|
},
|
|
3545
3225
|
fromPartial(object) {
|
|
3546
|
-
const message =
|
|
3226
|
+
const message = createBaseEvidence();
|
|
3547
3227
|
message.type = object.type ?? 0;
|
|
3548
3228
|
message.validator = (object.validator !== undefined && object.validator !== null)
|
|
3549
3229
|
? Validator.fromPartial(object.validator)
|
|
@@ -3641,6 +3321,7 @@ export class ABCIApplicationClientImpl {
|
|
|
3641
3321
|
this.Echo = this.Echo.bind(this);
|
|
3642
3322
|
this.Flush = this.Flush.bind(this);
|
|
3643
3323
|
this.Info = this.Info.bind(this);
|
|
3324
|
+
this.SetOption = this.SetOption.bind(this);
|
|
3644
3325
|
this.DeliverTx = this.DeliverTx.bind(this);
|
|
3645
3326
|
this.CheckTx = this.CheckTx.bind(this);
|
|
3646
3327
|
this.Query = this.Query.bind(this);
|
|
@@ -3652,8 +3333,6 @@ export class ABCIApplicationClientImpl {
|
|
|
3652
3333
|
this.OfferSnapshot = this.OfferSnapshot.bind(this);
|
|
3653
3334
|
this.LoadSnapshotChunk = this.LoadSnapshotChunk.bind(this);
|
|
3654
3335
|
this.ApplySnapshotChunk = this.ApplySnapshotChunk.bind(this);
|
|
3655
|
-
this.PrepareProposal = this.PrepareProposal.bind(this);
|
|
3656
|
-
this.ProcessProposal = this.ProcessProposal.bind(this);
|
|
3657
3336
|
}
|
|
3658
3337
|
Echo(request) {
|
|
3659
3338
|
const data = RequestEcho.encode(request).finish();
|
|
@@ -3670,6 +3349,11 @@ export class ABCIApplicationClientImpl {
|
|
|
3670
3349
|
const promise = this.rpc.request("tendermint.abci.ABCIApplication", "Info", data);
|
|
3671
3350
|
return promise.then((data) => ResponseInfo.decode(new _m0.Reader(data)));
|
|
3672
3351
|
}
|
|
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
|
+
}
|
|
3673
3357
|
DeliverTx(request) {
|
|
3674
3358
|
const data = RequestDeliverTx.encode(request).finish();
|
|
3675
3359
|
const promise = this.rpc.request("tendermint.abci.ABCIApplication", "DeliverTx", data);
|
|
@@ -3725,16 +3409,6 @@ export class ABCIApplicationClientImpl {
|
|
|
3725
3409
|
const promise = this.rpc.request("tendermint.abci.ABCIApplication", "ApplySnapshotChunk", data);
|
|
3726
3410
|
return promise.then((data) => ResponseApplySnapshotChunk.decode(new _m0.Reader(data)));
|
|
3727
3411
|
}
|
|
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
|
-
}
|
|
3738
3412
|
}
|
|
3739
3413
|
var globalThis = (() => {
|
|
3740
3414
|
if (typeof globalThis !== "undefined") {
|