@agoric/cosmic-proto 0.4.1-dev-9f8732f.0 → 0.4.1-dev-1cee3dd.0
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/dist/address-hooks.js +1 -217
- package/dist/codegen/agoric/bundle.js +1 -51
- package/dist/codegen/agoric/lien/genesis.js +1 -143
- package/dist/codegen/agoric/lien/lien.js +1 -87
- package/dist/codegen/agoric/swingset/genesis.js +1 -181
- package/dist/codegen/agoric/swingset/msgs.js +1 -700
- package/dist/codegen/agoric/swingset/query.js +1 -356
- package/dist/codegen/agoric/swingset/swingset.js +1 -816
- package/dist/codegen/agoric/vbank/genesis.js +1 -82
- package/dist/codegen/agoric/vbank/msgs.js +1 -2
- package/dist/codegen/agoric/vbank/query.js +1 -222
- package/dist/codegen/agoric/vbank/vbank.js +1 -237
- package/dist/codegen/agoric/vibc/msgs.js +1 -127
- package/dist/codegen/agoric/vlocalchain/vlocalchain.js +1 -307
- package/dist/codegen/agoric/vstorage/genesis.js +1 -138
- package/dist/codegen/agoric/vstorage/query.js +1 -441
- package/dist/codegen/agoric/vstorage/vstorage.js +1 -128
- package/dist/codegen/agoric/vtransfer/genesis.js +1 -70
- package/dist/codegen/amino/amino.js +1 -2
- package/dist/codegen/amino/bundle.js +1 -6
- package/dist/codegen/binary.js +1 -367
- package/dist/codegen/circle/bundle.js +1 -40
- package/dist/codegen/circle/cctp/v1/attester.js +1 -63
- package/dist/codegen/circle/cctp/v1/burn_message.js +1 -117
- package/dist/codegen/circle/cctp/v1/burning_and_minting_paused.js +1 -63
- package/dist/codegen/circle/cctp/v1/events.js +1 -1612
- package/dist/codegen/circle/cctp/v1/genesis.js +1 -295
- package/dist/codegen/circle/cctp/v1/max_message_body_size.js +1 -69
- package/dist/codegen/circle/cctp/v1/message.js +1 -160
- package/dist/codegen/circle/cctp/v1/nonce.js +1 -80
- package/dist/codegen/circle/cctp/v1/per_message_burn_limit.js +1 -73
- package/dist/codegen/circle/cctp/v1/query.js +1 -2421
- package/dist/codegen/circle/cctp/v1/remote_token_messenger.js +1 -77
- package/dist/codegen/circle/cctp/v1/sending_and_receiving_messages_paused.js +1 -63
- package/dist/codegen/circle/cctp/v1/signature_threshold.js +1 -63
- package/dist/codegen/circle/cctp/v1/token_pair.js +1 -91
- package/dist/codegen/circle/cctp/v1/tx.js +1 -356
- package/dist/codegen/cosmos/auth/v1beta1/auth.js +1 -337
- package/dist/codegen/cosmos/auth/v1beta1/genesis.js +1 -86
- package/dist/codegen/cosmos/auth/v1beta1/query.js +1 -1113
- package/dist/codegen/cosmos/authz/v1beta1/authz.js +1 -334
- package/dist/codegen/cosmos/authz/v1beta1/event.js +1 -161
- package/dist/codegen/cosmos/authz/v1beta1/genesis.js +1 -71
- package/dist/codegen/cosmos/authz/v1beta1/query.js +1 -506
- package/dist/codegen/cosmos/authz/v1beta1/tx.js +1 -415
- package/dist/codegen/cosmos/bank/v1beta1/authz.js +1 -71
- package/dist/codegen/cosmos/bank/v1beta1/bank.js +1 -592
- package/dist/codegen/cosmos/bank/v1beta1/genesis.js +1 -196
- package/dist/codegen/cosmos/bank/v1beta1/query.js +1 -1347
- package/dist/codegen/cosmos/bank/v1beta1/tx.js +1 -267
- package/dist/codegen/cosmos/base/abci/v1beta1/abci.js +1 -1012
- package/dist/codegen/cosmos/base/node/v1beta1/query.js +1 -112
- package/dist/codegen/cosmos/base/query/v1beta1/pagination.js +1 -189
- package/dist/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1 -1755
- package/dist/codegen/cosmos/base/v1beta1/coin.js +1 -257
- package/dist/codegen/cosmos/bundle.js +1 -249
- package/dist/codegen/cosmos/crypto/ed25519/keys.js +1 -123
- package/dist/codegen/cosmos/crypto/hd/v1/hd.js +1 -109
- package/dist/codegen/cosmos/crypto/keyring/v1/record.js +1 -367
- package/dist/codegen/cosmos/crypto/multisig/keys.js +1 -82
- package/dist/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +1 -144
- package/dist/codegen/cosmos/crypto/secp256k1/keys.js +1 -123
- package/dist/codegen/cosmos/crypto/secp256r1/keys.js +1 -125
- package/dist/codegen/cosmos/distribution/v1beta1/distribution.js +1 -978
- package/dist/codegen/cosmos/distribution/v1beta1/genesis.js +1 -837
- package/dist/codegen/cosmos/distribution/v1beta1/query.js +1 -1207
- package/dist/codegen/cosmos/distribution/v1beta1/tx.js +1 -512
- package/dist/codegen/cosmos/feegrant/v1beta1/feegrant.js +1 -412
- package/dist/codegen/cosmos/feegrant/v1beta1/genesis.js +1 -71
- package/dist/codegen/cosmos/feegrant/v1beta1/query.js +1 -461
- package/dist/codegen/cosmos/feegrant/v1beta1/tx.js +1 -267
- package/dist/codegen/cosmos/gov/v1/genesis.js +1 -177
- package/dist/codegen/cosmos/gov/v1/gov.js +1 -928
- package/dist/codegen/cosmos/gov/v1/query.js +1 -1216
- package/dist/codegen/cosmos/gov/v1/tx.js +1 -730
- package/dist/codegen/cosmos/gov/v1beta1/genesis.js +1 -177
- package/dist/codegen/cosmos/gov/v1beta1/gov.js +1 -1003
- package/dist/codegen/cosmos/gov/v1beta1/query.js +1 -1216
- package/dist/codegen/cosmos/gov/v1beta1/tx.js +1 -578
- package/dist/codegen/cosmos/group/v1/events.js +1 -696
- package/dist/codegen/cosmos/group/v1/genesis.js +1 -190
- package/dist/codegen/cosmos/group/v1/query.js +1 -2096
- package/dist/codegen/cosmos/group/v1/tx.js +1 -2073
- package/dist/codegen/cosmos/group/v1/types.js +1 -1387
- package/dist/codegen/cosmos/mint/v1beta1/genesis.js +1 -82
- package/dist/codegen/cosmos/mint/v1beta1/mint.js +1 -211
- package/dist/codegen/cosmos/mint/v1beta1/query.js +1 -330
- package/dist/codegen/cosmos/msg/v1/msg.js +1 -2
- package/dist/codegen/cosmos/params/v1beta1/params.js +1 -171
- package/dist/codegen/cosmos/params/v1beta1/query.js +1 -327
- package/dist/codegen/cosmos/staking/v1beta1/authz.js +1 -240
- package/dist/codegen/cosmos/staking/v1beta1/genesis.js +1 -256
- package/dist/codegen/cosmos/staking/v1beta1/query.js +1 -2069
- package/dist/codegen/cosmos/staking/v1beta1/staking.js +1 -1915
- package/dist/codegen/cosmos/staking/v1beta1/tx.js +1 -968
- package/dist/codegen/cosmos/tx/signing/v1beta1/signing.js +1 -516
- package/dist/codegen/cosmos/tx/v1beta1/service.js +1 -975
- package/dist/codegen/cosmos/tx/v1beta1/tx.js +1 -1256
- package/dist/codegen/cosmos/upgrade/v1beta1/query.js +1 -592
- package/dist/codegen/cosmos/upgrade/v1beta1/tx.js +1 -228
- package/dist/codegen/cosmos/upgrade/v1beta1/upgrade.js +1 -352
- package/dist/codegen/cosmos/vesting/v1beta1/tx.js +1 -865
- package/dist/codegen/cosmos/vesting/v1beta1/vesting.js +1 -674
- package/dist/codegen/cosmos_proto/bundle.js +1 -6
- package/dist/codegen/cosmos_proto/cosmos.js +1 -208
- package/dist/codegen/gogoproto/bundle.js +1 -6
- package/dist/codegen/gogoproto/gogo.js +1 -2
- package/dist/codegen/google/api/annotations.js +1 -2
- package/dist/codegen/google/api/http.js +1 -319
- package/dist/codegen/google/bundle.js +1 -17
- package/dist/codegen/google/protobuf/any.js +1 -77
- package/dist/codegen/google/protobuf/descriptor.js +1 -3421
- package/dist/codegen/google/protobuf/duration.js +1 -79
- package/dist/codegen/google/protobuf/empty.js +1 -50
- package/dist/codegen/google/protobuf/timestamp.js +1 -79
- package/dist/codegen/helpers.js +1 -196
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +1 -66
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +1 -243
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +1 -314
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +1 -503
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +1 -83
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +1 -114
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +1 -86
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +1 -119
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +1 -190
- package/dist/codegen/ibc/applications/transfer/v1/authz.js +1 -178
- package/dist/codegen/ibc/applications/transfer/v1/genesis.js +1 -96
- package/dist/codegen/ibc/applications/transfer/v1/query.js +1 -634
- package/dist/codegen/ibc/applications/transfer/v1/transfer.js +1 -147
- package/dist/codegen/ibc/applications/transfer/v1/tx.js +1 -220
- package/dist/codegen/ibc/applications/transfer/v2/packet.js +1 -103
- package/dist/codegen/ibc/bundle.js +1 -142
- package/dist/codegen/ibc/core/channel/v1/channel.js +1 -845
- package/dist/codegen/ibc/core/channel/v1/genesis.js +1 -281
- package/dist/codegen/ibc/core/channel/v1/query.js +1 -2344
- package/dist/codegen/ibc/core/channel/v1/tx.js +1 -1745
- package/dist/codegen/ibc/core/client/v1/client.js +1 -583
- package/dist/codegen/ibc/core/client/v1/genesis.js +1 -301
- package/dist/codegen/ibc/core/client/v1/query.js +1 -1283
- package/dist/codegen/ibc/core/client/v1/tx.js +1 -587
- package/dist/codegen/ibc/core/commitment/v1/commitment.js +1 -259
- package/dist/codegen/ibc/core/connection/v1/connection.js +1 -678
- package/dist/codegen/ibc/core/connection/v1/genesis.js +1 -122
- package/dist/codegen/ibc/core/connection/v1/query.js +1 -952
- package/dist/codegen/ibc/core/connection/v1/tx.js +1 -843
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +1 -78
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1 -1520
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1 -1514
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +1 -628
- package/dist/codegen/icq/bundle.js +1 -17
- package/dist/codegen/icq/v1/genesis.js +1 -78
- package/dist/codegen/icq/v1/icq.js +1 -83
- package/dist/codegen/icq/v1/packet.js +1 -270
- package/dist/codegen/icq/v1/query.js +1 -114
- package/dist/codegen/icq/v1/tx.js +1 -124
- package/dist/codegen/ics23/bundle.js +1 -6
- package/dist/codegen/index.js +1 -23
- package/dist/codegen/json-safe.js +1 -8
- package/dist/codegen/proofs.js +1 -1436
- package/dist/codegen/stride/bundle.js +1 -71
- package/dist/codegen/stride/epochs/genesis.js +1 -227
- package/dist/codegen/stride/epochs/query.js +1 -398
- package/dist/codegen/stride/records/callbacks.js +1 -136
- package/dist/codegen/stride/records/genesis.js +1 -186
- package/dist/codegen/stride/records/params.js +1 -50
- package/dist/codegen/stride/records/query.js +1 -1552
- package/dist/codegen/stride/records/records.js +1 -939
- package/dist/codegen/stride/stakedym/genesis.js +1 -312
- package/dist/codegen/stride/stakedym/query.js +1 -887
- package/dist/codegen/stride/stakedym/stakedym.js +1 -909
- package/dist/codegen/stride/stakedym/tx.js +1 -1661
- package/dist/codegen/stride/stakeibc/address_unbonding.js +1 -135
- package/dist/codegen/stride/stakeibc/callbacks.js +1 -1191
- package/dist/codegen/stride/stakeibc/epoch_tracker.js +1 -115
- package/dist/codegen/stride/stakeibc/genesis.js +1 -135
- package/dist/codegen/stride/stakeibc/gov.js +1 -212
- package/dist/codegen/stride/stakeibc/host_zone.js +1 -544
- package/dist/codegen/stride/stakeibc/ica_account.js +1 -165
- package/dist/codegen/stride/stakeibc/packet.js +1 -113
- package/dist/codegen/stride/stakeibc/params.js +1 -317
- package/dist/codegen/stride/stakeibc/query.js +1 -1372
- package/dist/codegen/stride/stakeibc/trade_route.js +1 -377
- package/dist/codegen/stride/stakeibc/tx.js +1 -3392
- package/dist/codegen/stride/stakeibc/validator.js +1 -170
- package/dist/codegen/stride/staketia/genesis.js +1 -312
- package/dist/codegen/stride/staketia/query.js +1 -887
- package/dist/codegen/stride/staketia/staketia.js +1 -819
- package/dist/codegen/stride/staketia/tx.js +1 -1671
- package/dist/codegen/tendermint/abci/types.js +1 -1922
- package/dist/codegen/tendermint/bundle.js +1 -42
- package/dist/codegen/tendermint/crypto/keys.js +1 -85
- package/dist/codegen/tendermint/crypto/proof.js +1 -409
- package/dist/codegen/tendermint/libs/bits/types.js +1 -94
- package/dist/codegen/tendermint/p2p/types.js +1 -506
- package/dist/codegen/tendermint/types/block.js +1 -119
- package/dist/codegen/tendermint/types/evidence.js +1 -415
- package/dist/codegen/tendermint/types/params.js +1 -529
- package/dist/codegen/tendermint/types/types.js +1 -1534
- package/dist/codegen/tendermint/types/validator.js +1 -299
- package/dist/codegen/tendermint/version/types.js +1 -155
- package/dist/codegen/utf8.js +1 -138
- package/dist/codegen/varint.js +1 -409
- package/dist/helpers.js +1 -22
- package/dist/index.js +1 -6
- package/package.json +7 -5
|
@@ -1,1922 +1 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { Header } from '../types/types.js';
|
|
3
|
-
import { ProofOps } from '../crypto/proof.js';
|
|
4
|
-
import { ConsensusParams, } from '../types/params.js';
|
|
5
|
-
import { PublicKey } from '../crypto/keys.js';
|
|
6
|
-
import { Timestamp, } from '../../google/protobuf/timestamp.js';
|
|
7
|
-
import { BinaryReader, BinaryWriter } from '../../binary.js';
|
|
8
|
-
import { isSet, bytesFromBase64, base64FromBytes, fromJsonTimestamp, fromTimestamp, } from '../../helpers.js';
|
|
9
|
-
import {} from '../../json-safe.js';
|
|
10
|
-
export var CheckTxType;
|
|
11
|
-
(function (CheckTxType) {
|
|
12
|
-
CheckTxType[CheckTxType["NEW"] = 0] = "NEW";
|
|
13
|
-
CheckTxType[CheckTxType["RECHECK"] = 1] = "RECHECK";
|
|
14
|
-
CheckTxType[CheckTxType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
15
|
-
})(CheckTxType || (CheckTxType = {}));
|
|
16
|
-
export const CheckTxTypeSDKType = CheckTxType;
|
|
17
|
-
export function checkTxTypeFromJSON(object) {
|
|
18
|
-
switch (object) {
|
|
19
|
-
case 0:
|
|
20
|
-
case 'NEW':
|
|
21
|
-
return CheckTxType.NEW;
|
|
22
|
-
case 1:
|
|
23
|
-
case 'RECHECK':
|
|
24
|
-
return CheckTxType.RECHECK;
|
|
25
|
-
case -1:
|
|
26
|
-
case 'UNRECOGNIZED':
|
|
27
|
-
default:
|
|
28
|
-
return CheckTxType.UNRECOGNIZED;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export function checkTxTypeToJSON(object) {
|
|
32
|
-
switch (object) {
|
|
33
|
-
case CheckTxType.NEW:
|
|
34
|
-
return 'NEW';
|
|
35
|
-
case CheckTxType.RECHECK:
|
|
36
|
-
return 'RECHECK';
|
|
37
|
-
case CheckTxType.UNRECOGNIZED:
|
|
38
|
-
default:
|
|
39
|
-
return 'UNRECOGNIZED';
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export var EvidenceType;
|
|
43
|
-
(function (EvidenceType) {
|
|
44
|
-
EvidenceType[EvidenceType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
45
|
-
EvidenceType[EvidenceType["DUPLICATE_VOTE"] = 1] = "DUPLICATE_VOTE";
|
|
46
|
-
EvidenceType[EvidenceType["LIGHT_CLIENT_ATTACK"] = 2] = "LIGHT_CLIENT_ATTACK";
|
|
47
|
-
EvidenceType[EvidenceType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
48
|
-
})(EvidenceType || (EvidenceType = {}));
|
|
49
|
-
export const EvidenceTypeSDKType = EvidenceType;
|
|
50
|
-
export function evidenceTypeFromJSON(object) {
|
|
51
|
-
switch (object) {
|
|
52
|
-
case 0:
|
|
53
|
-
case 'UNKNOWN':
|
|
54
|
-
return EvidenceType.UNKNOWN;
|
|
55
|
-
case 1:
|
|
56
|
-
case 'DUPLICATE_VOTE':
|
|
57
|
-
return EvidenceType.DUPLICATE_VOTE;
|
|
58
|
-
case 2:
|
|
59
|
-
case 'LIGHT_CLIENT_ATTACK':
|
|
60
|
-
return EvidenceType.LIGHT_CLIENT_ATTACK;
|
|
61
|
-
case -1:
|
|
62
|
-
case 'UNRECOGNIZED':
|
|
63
|
-
default:
|
|
64
|
-
return EvidenceType.UNRECOGNIZED;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
export function evidenceTypeToJSON(object) {
|
|
68
|
-
switch (object) {
|
|
69
|
-
case EvidenceType.UNKNOWN:
|
|
70
|
-
return 'UNKNOWN';
|
|
71
|
-
case EvidenceType.DUPLICATE_VOTE:
|
|
72
|
-
return 'DUPLICATE_VOTE';
|
|
73
|
-
case EvidenceType.LIGHT_CLIENT_ATTACK:
|
|
74
|
-
return 'LIGHT_CLIENT_ATTACK';
|
|
75
|
-
case EvidenceType.UNRECOGNIZED:
|
|
76
|
-
default:
|
|
77
|
-
return 'UNRECOGNIZED';
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function createBaseRequestQuery() {
|
|
81
|
-
return {
|
|
82
|
-
data: new Uint8Array(),
|
|
83
|
-
path: '',
|
|
84
|
-
height: BigInt(0),
|
|
85
|
-
prove: false,
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export const RequestQuery = {
|
|
89
|
-
typeUrl: '/tendermint.abci.RequestQuery',
|
|
90
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
91
|
-
if (message.data.length !== 0) {
|
|
92
|
-
writer.uint32(10).bytes(message.data);
|
|
93
|
-
}
|
|
94
|
-
if (message.path !== '') {
|
|
95
|
-
writer.uint32(18).string(message.path);
|
|
96
|
-
}
|
|
97
|
-
if (message.height !== BigInt(0)) {
|
|
98
|
-
writer.uint32(24).int64(message.height);
|
|
99
|
-
}
|
|
100
|
-
if (message.prove === true) {
|
|
101
|
-
writer.uint32(32).bool(message.prove);
|
|
102
|
-
}
|
|
103
|
-
return writer;
|
|
104
|
-
},
|
|
105
|
-
decode(input, length) {
|
|
106
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
107
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
108
|
-
const message = createBaseRequestQuery();
|
|
109
|
-
while (reader.pos < end) {
|
|
110
|
-
const tag = reader.uint32();
|
|
111
|
-
switch (tag >>> 3) {
|
|
112
|
-
case 1:
|
|
113
|
-
message.data = reader.bytes();
|
|
114
|
-
break;
|
|
115
|
-
case 2:
|
|
116
|
-
message.path = reader.string();
|
|
117
|
-
break;
|
|
118
|
-
case 3:
|
|
119
|
-
message.height = reader.int64();
|
|
120
|
-
break;
|
|
121
|
-
case 4:
|
|
122
|
-
message.prove = reader.bool();
|
|
123
|
-
break;
|
|
124
|
-
default:
|
|
125
|
-
reader.skipType(tag & 7);
|
|
126
|
-
break;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
return message;
|
|
130
|
-
},
|
|
131
|
-
fromJSON(object) {
|
|
132
|
-
return {
|
|
133
|
-
data: isSet(object.data)
|
|
134
|
-
? bytesFromBase64(object.data)
|
|
135
|
-
: new Uint8Array(),
|
|
136
|
-
path: isSet(object.path) ? String(object.path) : '',
|
|
137
|
-
height: isSet(object.height)
|
|
138
|
-
? BigInt(object.height.toString())
|
|
139
|
-
: BigInt(0),
|
|
140
|
-
prove: isSet(object.prove) ? Boolean(object.prove) : false,
|
|
141
|
-
};
|
|
142
|
-
},
|
|
143
|
-
toJSON(message) {
|
|
144
|
-
const obj = {};
|
|
145
|
-
message.data !== undefined &&
|
|
146
|
-
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
|
147
|
-
message.path !== undefined && (obj.path = message.path);
|
|
148
|
-
message.height !== undefined &&
|
|
149
|
-
(obj.height = (message.height || BigInt(0)).toString());
|
|
150
|
-
message.prove !== undefined && (obj.prove = message.prove);
|
|
151
|
-
return obj;
|
|
152
|
-
},
|
|
153
|
-
fromPartial(object) {
|
|
154
|
-
const message = createBaseRequestQuery();
|
|
155
|
-
message.data = object.data ?? new Uint8Array();
|
|
156
|
-
message.path = object.path ?? '';
|
|
157
|
-
message.height =
|
|
158
|
-
object.height !== undefined && object.height !== null
|
|
159
|
-
? BigInt(object.height.toString())
|
|
160
|
-
: BigInt(0);
|
|
161
|
-
message.prove = object.prove ?? false;
|
|
162
|
-
return message;
|
|
163
|
-
},
|
|
164
|
-
fromProtoMsg(message) {
|
|
165
|
-
return RequestQuery.decode(message.value);
|
|
166
|
-
},
|
|
167
|
-
toProto(message) {
|
|
168
|
-
return RequestQuery.encode(message).finish();
|
|
169
|
-
},
|
|
170
|
-
toProtoMsg(message) {
|
|
171
|
-
return {
|
|
172
|
-
typeUrl: '/tendermint.abci.RequestQuery',
|
|
173
|
-
value: RequestQuery.encode(message).finish(),
|
|
174
|
-
};
|
|
175
|
-
},
|
|
176
|
-
};
|
|
177
|
-
function createBaseRequestBeginBlock() {
|
|
178
|
-
return {
|
|
179
|
-
hash: new Uint8Array(),
|
|
180
|
-
header: Header.fromPartial({}),
|
|
181
|
-
lastCommitInfo: LastCommitInfo.fromPartial({}),
|
|
182
|
-
byzantineValidators: [],
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
export const RequestBeginBlock = {
|
|
186
|
-
typeUrl: '/tendermint.abci.RequestBeginBlock',
|
|
187
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
188
|
-
if (message.hash.length !== 0) {
|
|
189
|
-
writer.uint32(10).bytes(message.hash);
|
|
190
|
-
}
|
|
191
|
-
if (message.header !== undefined) {
|
|
192
|
-
Header.encode(message.header, writer.uint32(18).fork()).ldelim();
|
|
193
|
-
}
|
|
194
|
-
if (message.lastCommitInfo !== undefined) {
|
|
195
|
-
LastCommitInfo.encode(message.lastCommitInfo, writer.uint32(26).fork()).ldelim();
|
|
196
|
-
}
|
|
197
|
-
for (const v of message.byzantineValidators) {
|
|
198
|
-
Evidence.encode(v, writer.uint32(34).fork()).ldelim();
|
|
199
|
-
}
|
|
200
|
-
return writer;
|
|
201
|
-
},
|
|
202
|
-
decode(input, length) {
|
|
203
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
204
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
205
|
-
const message = createBaseRequestBeginBlock();
|
|
206
|
-
while (reader.pos < end) {
|
|
207
|
-
const tag = reader.uint32();
|
|
208
|
-
switch (tag >>> 3) {
|
|
209
|
-
case 1:
|
|
210
|
-
message.hash = reader.bytes();
|
|
211
|
-
break;
|
|
212
|
-
case 2:
|
|
213
|
-
message.header = Header.decode(reader, reader.uint32());
|
|
214
|
-
break;
|
|
215
|
-
case 3:
|
|
216
|
-
message.lastCommitInfo = LastCommitInfo.decode(reader, reader.uint32());
|
|
217
|
-
break;
|
|
218
|
-
case 4:
|
|
219
|
-
message.byzantineValidators.push(Evidence.decode(reader, reader.uint32()));
|
|
220
|
-
break;
|
|
221
|
-
default:
|
|
222
|
-
reader.skipType(tag & 7);
|
|
223
|
-
break;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
return message;
|
|
227
|
-
},
|
|
228
|
-
fromJSON(object) {
|
|
229
|
-
return {
|
|
230
|
-
hash: isSet(object.hash)
|
|
231
|
-
? bytesFromBase64(object.hash)
|
|
232
|
-
: new Uint8Array(),
|
|
233
|
-
header: isSet(object.header) ? Header.fromJSON(object.header) : undefined,
|
|
234
|
-
lastCommitInfo: isSet(object.lastCommitInfo)
|
|
235
|
-
? LastCommitInfo.fromJSON(object.lastCommitInfo)
|
|
236
|
-
: undefined,
|
|
237
|
-
byzantineValidators: Array.isArray(object?.byzantineValidators)
|
|
238
|
-
? object.byzantineValidators.map((e) => Evidence.fromJSON(e))
|
|
239
|
-
: [],
|
|
240
|
-
};
|
|
241
|
-
},
|
|
242
|
-
toJSON(message) {
|
|
243
|
-
const obj = {};
|
|
244
|
-
message.hash !== undefined &&
|
|
245
|
-
(obj.hash = base64FromBytes(message.hash !== undefined ? message.hash : new Uint8Array()));
|
|
246
|
-
message.header !== undefined &&
|
|
247
|
-
(obj.header = message.header ? Header.toJSON(message.header) : undefined);
|
|
248
|
-
message.lastCommitInfo !== undefined &&
|
|
249
|
-
(obj.lastCommitInfo = message.lastCommitInfo
|
|
250
|
-
? LastCommitInfo.toJSON(message.lastCommitInfo)
|
|
251
|
-
: undefined);
|
|
252
|
-
if (message.byzantineValidators) {
|
|
253
|
-
obj.byzantineValidators = message.byzantineValidators.map(e => e ? Evidence.toJSON(e) : undefined);
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
obj.byzantineValidators = [];
|
|
257
|
-
}
|
|
258
|
-
return obj;
|
|
259
|
-
},
|
|
260
|
-
fromPartial(object) {
|
|
261
|
-
const message = createBaseRequestBeginBlock();
|
|
262
|
-
message.hash = object.hash ?? new Uint8Array();
|
|
263
|
-
message.header =
|
|
264
|
-
object.header !== undefined && object.header !== null
|
|
265
|
-
? Header.fromPartial(object.header)
|
|
266
|
-
: undefined;
|
|
267
|
-
message.lastCommitInfo =
|
|
268
|
-
object.lastCommitInfo !== undefined && object.lastCommitInfo !== null
|
|
269
|
-
? LastCommitInfo.fromPartial(object.lastCommitInfo)
|
|
270
|
-
: undefined;
|
|
271
|
-
message.byzantineValidators =
|
|
272
|
-
object.byzantineValidators?.map(e => Evidence.fromPartial(e)) || [];
|
|
273
|
-
return message;
|
|
274
|
-
},
|
|
275
|
-
fromProtoMsg(message) {
|
|
276
|
-
return RequestBeginBlock.decode(message.value);
|
|
277
|
-
},
|
|
278
|
-
toProto(message) {
|
|
279
|
-
return RequestBeginBlock.encode(message).finish();
|
|
280
|
-
},
|
|
281
|
-
toProtoMsg(message) {
|
|
282
|
-
return {
|
|
283
|
-
typeUrl: '/tendermint.abci.RequestBeginBlock',
|
|
284
|
-
value: RequestBeginBlock.encode(message).finish(),
|
|
285
|
-
};
|
|
286
|
-
},
|
|
287
|
-
};
|
|
288
|
-
function createBaseRequestCheckTx() {
|
|
289
|
-
return {
|
|
290
|
-
tx: new Uint8Array(),
|
|
291
|
-
type: 0,
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
export const RequestCheckTx = {
|
|
295
|
-
typeUrl: '/tendermint.abci.RequestCheckTx',
|
|
296
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
297
|
-
if (message.tx.length !== 0) {
|
|
298
|
-
writer.uint32(10).bytes(message.tx);
|
|
299
|
-
}
|
|
300
|
-
if (message.type !== 0) {
|
|
301
|
-
writer.uint32(16).int32(message.type);
|
|
302
|
-
}
|
|
303
|
-
return writer;
|
|
304
|
-
},
|
|
305
|
-
decode(input, length) {
|
|
306
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
307
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
308
|
-
const message = createBaseRequestCheckTx();
|
|
309
|
-
while (reader.pos < end) {
|
|
310
|
-
const tag = reader.uint32();
|
|
311
|
-
switch (tag >>> 3) {
|
|
312
|
-
case 1:
|
|
313
|
-
message.tx = reader.bytes();
|
|
314
|
-
break;
|
|
315
|
-
case 2:
|
|
316
|
-
message.type = reader.int32();
|
|
317
|
-
break;
|
|
318
|
-
default:
|
|
319
|
-
reader.skipType(tag & 7);
|
|
320
|
-
break;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
return message;
|
|
324
|
-
},
|
|
325
|
-
fromJSON(object) {
|
|
326
|
-
return {
|
|
327
|
-
tx: isSet(object.tx) ? bytesFromBase64(object.tx) : new Uint8Array(),
|
|
328
|
-
type: isSet(object.type) ? checkTxTypeFromJSON(object.type) : -1,
|
|
329
|
-
};
|
|
330
|
-
},
|
|
331
|
-
toJSON(message) {
|
|
332
|
-
const obj = {};
|
|
333
|
-
message.tx !== undefined &&
|
|
334
|
-
(obj.tx = base64FromBytes(message.tx !== undefined ? message.tx : new Uint8Array()));
|
|
335
|
-
message.type !== undefined && (obj.type = checkTxTypeToJSON(message.type));
|
|
336
|
-
return obj;
|
|
337
|
-
},
|
|
338
|
-
fromPartial(object) {
|
|
339
|
-
const message = createBaseRequestCheckTx();
|
|
340
|
-
message.tx = object.tx ?? new Uint8Array();
|
|
341
|
-
message.type = object.type ?? 0;
|
|
342
|
-
return message;
|
|
343
|
-
},
|
|
344
|
-
fromProtoMsg(message) {
|
|
345
|
-
return RequestCheckTx.decode(message.value);
|
|
346
|
-
},
|
|
347
|
-
toProto(message) {
|
|
348
|
-
return RequestCheckTx.encode(message).finish();
|
|
349
|
-
},
|
|
350
|
-
toProtoMsg(message) {
|
|
351
|
-
return {
|
|
352
|
-
typeUrl: '/tendermint.abci.RequestCheckTx',
|
|
353
|
-
value: RequestCheckTx.encode(message).finish(),
|
|
354
|
-
};
|
|
355
|
-
},
|
|
356
|
-
};
|
|
357
|
-
function createBaseRequestDeliverTx() {
|
|
358
|
-
return {
|
|
359
|
-
tx: new Uint8Array(),
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
export const RequestDeliverTx = {
|
|
363
|
-
typeUrl: '/tendermint.abci.RequestDeliverTx',
|
|
364
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
365
|
-
if (message.tx.length !== 0) {
|
|
366
|
-
writer.uint32(10).bytes(message.tx);
|
|
367
|
-
}
|
|
368
|
-
return writer;
|
|
369
|
-
},
|
|
370
|
-
decode(input, length) {
|
|
371
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
372
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
373
|
-
const message = createBaseRequestDeliverTx();
|
|
374
|
-
while (reader.pos < end) {
|
|
375
|
-
const tag = reader.uint32();
|
|
376
|
-
switch (tag >>> 3) {
|
|
377
|
-
case 1:
|
|
378
|
-
message.tx = reader.bytes();
|
|
379
|
-
break;
|
|
380
|
-
default:
|
|
381
|
-
reader.skipType(tag & 7);
|
|
382
|
-
break;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
return message;
|
|
386
|
-
},
|
|
387
|
-
fromJSON(object) {
|
|
388
|
-
return {
|
|
389
|
-
tx: isSet(object.tx) ? bytesFromBase64(object.tx) : new Uint8Array(),
|
|
390
|
-
};
|
|
391
|
-
},
|
|
392
|
-
toJSON(message) {
|
|
393
|
-
const obj = {};
|
|
394
|
-
message.tx !== undefined &&
|
|
395
|
-
(obj.tx = base64FromBytes(message.tx !== undefined ? message.tx : new Uint8Array()));
|
|
396
|
-
return obj;
|
|
397
|
-
},
|
|
398
|
-
fromPartial(object) {
|
|
399
|
-
const message = createBaseRequestDeliverTx();
|
|
400
|
-
message.tx = object.tx ?? new Uint8Array();
|
|
401
|
-
return message;
|
|
402
|
-
},
|
|
403
|
-
fromProtoMsg(message) {
|
|
404
|
-
return RequestDeliverTx.decode(message.value);
|
|
405
|
-
},
|
|
406
|
-
toProto(message) {
|
|
407
|
-
return RequestDeliverTx.encode(message).finish();
|
|
408
|
-
},
|
|
409
|
-
toProtoMsg(message) {
|
|
410
|
-
return {
|
|
411
|
-
typeUrl: '/tendermint.abci.RequestDeliverTx',
|
|
412
|
-
value: RequestDeliverTx.encode(message).finish(),
|
|
413
|
-
};
|
|
414
|
-
},
|
|
415
|
-
};
|
|
416
|
-
function createBaseRequestEndBlock() {
|
|
417
|
-
return {
|
|
418
|
-
height: BigInt(0),
|
|
419
|
-
};
|
|
420
|
-
}
|
|
421
|
-
export const RequestEndBlock = {
|
|
422
|
-
typeUrl: '/tendermint.abci.RequestEndBlock',
|
|
423
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
424
|
-
if (message.height !== BigInt(0)) {
|
|
425
|
-
writer.uint32(8).int64(message.height);
|
|
426
|
-
}
|
|
427
|
-
return writer;
|
|
428
|
-
},
|
|
429
|
-
decode(input, length) {
|
|
430
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
431
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
432
|
-
const message = createBaseRequestEndBlock();
|
|
433
|
-
while (reader.pos < end) {
|
|
434
|
-
const tag = reader.uint32();
|
|
435
|
-
switch (tag >>> 3) {
|
|
436
|
-
case 1:
|
|
437
|
-
message.height = reader.int64();
|
|
438
|
-
break;
|
|
439
|
-
default:
|
|
440
|
-
reader.skipType(tag & 7);
|
|
441
|
-
break;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
return message;
|
|
445
|
-
},
|
|
446
|
-
fromJSON(object) {
|
|
447
|
-
return {
|
|
448
|
-
height: isSet(object.height)
|
|
449
|
-
? BigInt(object.height.toString())
|
|
450
|
-
: BigInt(0),
|
|
451
|
-
};
|
|
452
|
-
},
|
|
453
|
-
toJSON(message) {
|
|
454
|
-
const obj = {};
|
|
455
|
-
message.height !== undefined &&
|
|
456
|
-
(obj.height = (message.height || BigInt(0)).toString());
|
|
457
|
-
return obj;
|
|
458
|
-
},
|
|
459
|
-
fromPartial(object) {
|
|
460
|
-
const message = createBaseRequestEndBlock();
|
|
461
|
-
message.height =
|
|
462
|
-
object.height !== undefined && object.height !== null
|
|
463
|
-
? BigInt(object.height.toString())
|
|
464
|
-
: BigInt(0);
|
|
465
|
-
return message;
|
|
466
|
-
},
|
|
467
|
-
fromProtoMsg(message) {
|
|
468
|
-
return RequestEndBlock.decode(message.value);
|
|
469
|
-
},
|
|
470
|
-
toProto(message) {
|
|
471
|
-
return RequestEndBlock.encode(message).finish();
|
|
472
|
-
},
|
|
473
|
-
toProtoMsg(message) {
|
|
474
|
-
return {
|
|
475
|
-
typeUrl: '/tendermint.abci.RequestEndBlock',
|
|
476
|
-
value: RequestEndBlock.encode(message).finish(),
|
|
477
|
-
};
|
|
478
|
-
},
|
|
479
|
-
};
|
|
480
|
-
function createBaseRequestCommit() {
|
|
481
|
-
return {};
|
|
482
|
-
}
|
|
483
|
-
export const RequestCommit = {
|
|
484
|
-
typeUrl: '/tendermint.abci.RequestCommit',
|
|
485
|
-
encode(_, writer = BinaryWriter.create()) {
|
|
486
|
-
return writer;
|
|
487
|
-
},
|
|
488
|
-
decode(input, length) {
|
|
489
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
490
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
491
|
-
const message = createBaseRequestCommit();
|
|
492
|
-
while (reader.pos < end) {
|
|
493
|
-
const tag = reader.uint32();
|
|
494
|
-
switch (tag >>> 3) {
|
|
495
|
-
default:
|
|
496
|
-
reader.skipType(tag & 7);
|
|
497
|
-
break;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
return message;
|
|
501
|
-
},
|
|
502
|
-
fromJSON(_) {
|
|
503
|
-
return {};
|
|
504
|
-
},
|
|
505
|
-
toJSON(_) {
|
|
506
|
-
const obj = {};
|
|
507
|
-
return obj;
|
|
508
|
-
},
|
|
509
|
-
fromPartial(_) {
|
|
510
|
-
const message = createBaseRequestCommit();
|
|
511
|
-
return message;
|
|
512
|
-
},
|
|
513
|
-
fromProtoMsg(message) {
|
|
514
|
-
return RequestCommit.decode(message.value);
|
|
515
|
-
},
|
|
516
|
-
toProto(message) {
|
|
517
|
-
return RequestCommit.encode(message).finish();
|
|
518
|
-
},
|
|
519
|
-
toProtoMsg(message) {
|
|
520
|
-
return {
|
|
521
|
-
typeUrl: '/tendermint.abci.RequestCommit',
|
|
522
|
-
value: RequestCommit.encode(message).finish(),
|
|
523
|
-
};
|
|
524
|
-
},
|
|
525
|
-
};
|
|
526
|
-
function createBaseResponseQuery() {
|
|
527
|
-
return {
|
|
528
|
-
code: 0,
|
|
529
|
-
log: '',
|
|
530
|
-
info: '',
|
|
531
|
-
index: BigInt(0),
|
|
532
|
-
key: new Uint8Array(),
|
|
533
|
-
value: new Uint8Array(),
|
|
534
|
-
proofOps: undefined,
|
|
535
|
-
height: BigInt(0),
|
|
536
|
-
codespace: '',
|
|
537
|
-
};
|
|
538
|
-
}
|
|
539
|
-
export const ResponseQuery = {
|
|
540
|
-
typeUrl: '/tendermint.abci.ResponseQuery',
|
|
541
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
542
|
-
if (message.code !== 0) {
|
|
543
|
-
writer.uint32(8).uint32(message.code);
|
|
544
|
-
}
|
|
545
|
-
if (message.log !== '') {
|
|
546
|
-
writer.uint32(26).string(message.log);
|
|
547
|
-
}
|
|
548
|
-
if (message.info !== '') {
|
|
549
|
-
writer.uint32(34).string(message.info);
|
|
550
|
-
}
|
|
551
|
-
if (message.index !== BigInt(0)) {
|
|
552
|
-
writer.uint32(40).int64(message.index);
|
|
553
|
-
}
|
|
554
|
-
if (message.key.length !== 0) {
|
|
555
|
-
writer.uint32(50).bytes(message.key);
|
|
556
|
-
}
|
|
557
|
-
if (message.value.length !== 0) {
|
|
558
|
-
writer.uint32(58).bytes(message.value);
|
|
559
|
-
}
|
|
560
|
-
if (message.proofOps !== undefined) {
|
|
561
|
-
ProofOps.encode(message.proofOps, writer.uint32(66).fork()).ldelim();
|
|
562
|
-
}
|
|
563
|
-
if (message.height !== BigInt(0)) {
|
|
564
|
-
writer.uint32(72).int64(message.height);
|
|
565
|
-
}
|
|
566
|
-
if (message.codespace !== '') {
|
|
567
|
-
writer.uint32(82).string(message.codespace);
|
|
568
|
-
}
|
|
569
|
-
return writer;
|
|
570
|
-
},
|
|
571
|
-
decode(input, length) {
|
|
572
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
573
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
574
|
-
const message = createBaseResponseQuery();
|
|
575
|
-
while (reader.pos < end) {
|
|
576
|
-
const tag = reader.uint32();
|
|
577
|
-
switch (tag >>> 3) {
|
|
578
|
-
case 1:
|
|
579
|
-
message.code = reader.uint32();
|
|
580
|
-
break;
|
|
581
|
-
case 3:
|
|
582
|
-
message.log = reader.string();
|
|
583
|
-
break;
|
|
584
|
-
case 4:
|
|
585
|
-
message.info = reader.string();
|
|
586
|
-
break;
|
|
587
|
-
case 5:
|
|
588
|
-
message.index = reader.int64();
|
|
589
|
-
break;
|
|
590
|
-
case 6:
|
|
591
|
-
message.key = reader.bytes();
|
|
592
|
-
break;
|
|
593
|
-
case 7:
|
|
594
|
-
message.value = reader.bytes();
|
|
595
|
-
break;
|
|
596
|
-
case 8:
|
|
597
|
-
message.proofOps = ProofOps.decode(reader, reader.uint32());
|
|
598
|
-
break;
|
|
599
|
-
case 9:
|
|
600
|
-
message.height = reader.int64();
|
|
601
|
-
break;
|
|
602
|
-
case 10:
|
|
603
|
-
message.codespace = reader.string();
|
|
604
|
-
break;
|
|
605
|
-
default:
|
|
606
|
-
reader.skipType(tag & 7);
|
|
607
|
-
break;
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
return message;
|
|
611
|
-
},
|
|
612
|
-
fromJSON(object) {
|
|
613
|
-
return {
|
|
614
|
-
code: isSet(object.code) ? Number(object.code) : 0,
|
|
615
|
-
log: isSet(object.log) ? String(object.log) : '',
|
|
616
|
-
info: isSet(object.info) ? String(object.info) : '',
|
|
617
|
-
index: isSet(object.index) ? BigInt(object.index.toString()) : BigInt(0),
|
|
618
|
-
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
619
|
-
value: isSet(object.value)
|
|
620
|
-
? bytesFromBase64(object.value)
|
|
621
|
-
: new Uint8Array(),
|
|
622
|
-
proofOps: isSet(object.proofOps)
|
|
623
|
-
? ProofOps.fromJSON(object.proofOps)
|
|
624
|
-
: undefined,
|
|
625
|
-
height: isSet(object.height)
|
|
626
|
-
? BigInt(object.height.toString())
|
|
627
|
-
: BigInt(0),
|
|
628
|
-
codespace: isSet(object.codespace) ? String(object.codespace) : '',
|
|
629
|
-
};
|
|
630
|
-
},
|
|
631
|
-
toJSON(message) {
|
|
632
|
-
const obj = {};
|
|
633
|
-
message.code !== undefined && (obj.code = Math.round(message.code));
|
|
634
|
-
message.log !== undefined && (obj.log = message.log);
|
|
635
|
-
message.info !== undefined && (obj.info = message.info);
|
|
636
|
-
message.index !== undefined &&
|
|
637
|
-
(obj.index = (message.index || BigInt(0)).toString());
|
|
638
|
-
message.key !== undefined &&
|
|
639
|
-
(obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
640
|
-
message.value !== undefined &&
|
|
641
|
-
(obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
642
|
-
message.proofOps !== undefined &&
|
|
643
|
-
(obj.proofOps = message.proofOps
|
|
644
|
-
? ProofOps.toJSON(message.proofOps)
|
|
645
|
-
: undefined);
|
|
646
|
-
message.height !== undefined &&
|
|
647
|
-
(obj.height = (message.height || BigInt(0)).toString());
|
|
648
|
-
message.codespace !== undefined && (obj.codespace = message.codespace);
|
|
649
|
-
return obj;
|
|
650
|
-
},
|
|
651
|
-
fromPartial(object) {
|
|
652
|
-
const message = createBaseResponseQuery();
|
|
653
|
-
message.code = object.code ?? 0;
|
|
654
|
-
message.log = object.log ?? '';
|
|
655
|
-
message.info = object.info ?? '';
|
|
656
|
-
message.index =
|
|
657
|
-
object.index !== undefined && object.index !== null
|
|
658
|
-
? BigInt(object.index.toString())
|
|
659
|
-
: BigInt(0);
|
|
660
|
-
message.key = object.key ?? new Uint8Array();
|
|
661
|
-
message.value = object.value ?? new Uint8Array();
|
|
662
|
-
message.proofOps =
|
|
663
|
-
object.proofOps !== undefined && object.proofOps !== null
|
|
664
|
-
? ProofOps.fromPartial(object.proofOps)
|
|
665
|
-
: undefined;
|
|
666
|
-
message.height =
|
|
667
|
-
object.height !== undefined && object.height !== null
|
|
668
|
-
? BigInt(object.height.toString())
|
|
669
|
-
: BigInt(0);
|
|
670
|
-
message.codespace = object.codespace ?? '';
|
|
671
|
-
return message;
|
|
672
|
-
},
|
|
673
|
-
fromProtoMsg(message) {
|
|
674
|
-
return ResponseQuery.decode(message.value);
|
|
675
|
-
},
|
|
676
|
-
toProto(message) {
|
|
677
|
-
return ResponseQuery.encode(message).finish();
|
|
678
|
-
},
|
|
679
|
-
toProtoMsg(message) {
|
|
680
|
-
return {
|
|
681
|
-
typeUrl: '/tendermint.abci.ResponseQuery',
|
|
682
|
-
value: ResponseQuery.encode(message).finish(),
|
|
683
|
-
};
|
|
684
|
-
},
|
|
685
|
-
};
|
|
686
|
-
function createBaseResponseBeginBlock() {
|
|
687
|
-
return {
|
|
688
|
-
events: [],
|
|
689
|
-
};
|
|
690
|
-
}
|
|
691
|
-
export const ResponseBeginBlock = {
|
|
692
|
-
typeUrl: '/tendermint.abci.ResponseBeginBlock',
|
|
693
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
694
|
-
for (const v of message.events) {
|
|
695
|
-
Event.encode(v, writer.uint32(10).fork()).ldelim();
|
|
696
|
-
}
|
|
697
|
-
return writer;
|
|
698
|
-
},
|
|
699
|
-
decode(input, length) {
|
|
700
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
701
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
702
|
-
const message = createBaseResponseBeginBlock();
|
|
703
|
-
while (reader.pos < end) {
|
|
704
|
-
const tag = reader.uint32();
|
|
705
|
-
switch (tag >>> 3) {
|
|
706
|
-
case 1:
|
|
707
|
-
message.events.push(Event.decode(reader, reader.uint32()));
|
|
708
|
-
break;
|
|
709
|
-
default:
|
|
710
|
-
reader.skipType(tag & 7);
|
|
711
|
-
break;
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
return message;
|
|
715
|
-
},
|
|
716
|
-
fromJSON(object) {
|
|
717
|
-
return {
|
|
718
|
-
events: Array.isArray(object?.events)
|
|
719
|
-
? object.events.map((e) => Event.fromJSON(e))
|
|
720
|
-
: [],
|
|
721
|
-
};
|
|
722
|
-
},
|
|
723
|
-
toJSON(message) {
|
|
724
|
-
const obj = {};
|
|
725
|
-
if (message.events) {
|
|
726
|
-
obj.events = message.events.map(e => (e ? Event.toJSON(e) : undefined));
|
|
727
|
-
}
|
|
728
|
-
else {
|
|
729
|
-
obj.events = [];
|
|
730
|
-
}
|
|
731
|
-
return obj;
|
|
732
|
-
},
|
|
733
|
-
fromPartial(object) {
|
|
734
|
-
const message = createBaseResponseBeginBlock();
|
|
735
|
-
message.events = object.events?.map(e => Event.fromPartial(e)) || [];
|
|
736
|
-
return message;
|
|
737
|
-
},
|
|
738
|
-
fromProtoMsg(message) {
|
|
739
|
-
return ResponseBeginBlock.decode(message.value);
|
|
740
|
-
},
|
|
741
|
-
toProto(message) {
|
|
742
|
-
return ResponseBeginBlock.encode(message).finish();
|
|
743
|
-
},
|
|
744
|
-
toProtoMsg(message) {
|
|
745
|
-
return {
|
|
746
|
-
typeUrl: '/tendermint.abci.ResponseBeginBlock',
|
|
747
|
-
value: ResponseBeginBlock.encode(message).finish(),
|
|
748
|
-
};
|
|
749
|
-
},
|
|
750
|
-
};
|
|
751
|
-
function createBaseResponseCheckTx() {
|
|
752
|
-
return {
|
|
753
|
-
code: 0,
|
|
754
|
-
data: new Uint8Array(),
|
|
755
|
-
log: '',
|
|
756
|
-
info: '',
|
|
757
|
-
gasWanted: BigInt(0),
|
|
758
|
-
gasUsed: BigInt(0),
|
|
759
|
-
events: [],
|
|
760
|
-
codespace: '',
|
|
761
|
-
};
|
|
762
|
-
}
|
|
763
|
-
export const ResponseCheckTx = {
|
|
764
|
-
typeUrl: '/tendermint.abci.ResponseCheckTx',
|
|
765
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
766
|
-
if (message.code !== 0) {
|
|
767
|
-
writer.uint32(8).uint32(message.code);
|
|
768
|
-
}
|
|
769
|
-
if (message.data.length !== 0) {
|
|
770
|
-
writer.uint32(18).bytes(message.data);
|
|
771
|
-
}
|
|
772
|
-
if (message.log !== '') {
|
|
773
|
-
writer.uint32(26).string(message.log);
|
|
774
|
-
}
|
|
775
|
-
if (message.info !== '') {
|
|
776
|
-
writer.uint32(34).string(message.info);
|
|
777
|
-
}
|
|
778
|
-
if (message.gasWanted !== BigInt(0)) {
|
|
779
|
-
writer.uint32(40).int64(message.gasWanted);
|
|
780
|
-
}
|
|
781
|
-
if (message.gasUsed !== BigInt(0)) {
|
|
782
|
-
writer.uint32(48).int64(message.gasUsed);
|
|
783
|
-
}
|
|
784
|
-
for (const v of message.events) {
|
|
785
|
-
Event.encode(v, writer.uint32(58).fork()).ldelim();
|
|
786
|
-
}
|
|
787
|
-
if (message.codespace !== '') {
|
|
788
|
-
writer.uint32(66).string(message.codespace);
|
|
789
|
-
}
|
|
790
|
-
return writer;
|
|
791
|
-
},
|
|
792
|
-
decode(input, length) {
|
|
793
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
794
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
795
|
-
const message = createBaseResponseCheckTx();
|
|
796
|
-
while (reader.pos < end) {
|
|
797
|
-
const tag = reader.uint32();
|
|
798
|
-
switch (tag >>> 3) {
|
|
799
|
-
case 1:
|
|
800
|
-
message.code = reader.uint32();
|
|
801
|
-
break;
|
|
802
|
-
case 2:
|
|
803
|
-
message.data = reader.bytes();
|
|
804
|
-
break;
|
|
805
|
-
case 3:
|
|
806
|
-
message.log = reader.string();
|
|
807
|
-
break;
|
|
808
|
-
case 4:
|
|
809
|
-
message.info = reader.string();
|
|
810
|
-
break;
|
|
811
|
-
case 5:
|
|
812
|
-
message.gasWanted = reader.int64();
|
|
813
|
-
break;
|
|
814
|
-
case 6:
|
|
815
|
-
message.gasUsed = reader.int64();
|
|
816
|
-
break;
|
|
817
|
-
case 7:
|
|
818
|
-
message.events.push(Event.decode(reader, reader.uint32()));
|
|
819
|
-
break;
|
|
820
|
-
case 8:
|
|
821
|
-
message.codespace = reader.string();
|
|
822
|
-
break;
|
|
823
|
-
default:
|
|
824
|
-
reader.skipType(tag & 7);
|
|
825
|
-
break;
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
return message;
|
|
829
|
-
},
|
|
830
|
-
fromJSON(object) {
|
|
831
|
-
return {
|
|
832
|
-
code: isSet(object.code) ? Number(object.code) : 0,
|
|
833
|
-
data: isSet(object.data)
|
|
834
|
-
? bytesFromBase64(object.data)
|
|
835
|
-
: new Uint8Array(),
|
|
836
|
-
log: isSet(object.log) ? String(object.log) : '',
|
|
837
|
-
info: isSet(object.info) ? String(object.info) : '',
|
|
838
|
-
gasWanted: isSet(object.gas_wanted)
|
|
839
|
-
? BigInt(object.gas_wanted.toString())
|
|
840
|
-
: BigInt(0),
|
|
841
|
-
gasUsed: isSet(object.gas_used)
|
|
842
|
-
? BigInt(object.gas_used.toString())
|
|
843
|
-
: BigInt(0),
|
|
844
|
-
events: Array.isArray(object?.events)
|
|
845
|
-
? object.events.map((e) => Event.fromJSON(e))
|
|
846
|
-
: [],
|
|
847
|
-
codespace: isSet(object.codespace) ? String(object.codespace) : '',
|
|
848
|
-
};
|
|
849
|
-
},
|
|
850
|
-
toJSON(message) {
|
|
851
|
-
const obj = {};
|
|
852
|
-
message.code !== undefined && (obj.code = Math.round(message.code));
|
|
853
|
-
message.data !== undefined &&
|
|
854
|
-
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
|
855
|
-
message.log !== undefined && (obj.log = message.log);
|
|
856
|
-
message.info !== undefined && (obj.info = message.info);
|
|
857
|
-
message.gasWanted !== undefined &&
|
|
858
|
-
(obj.gas_wanted = (message.gasWanted || BigInt(0)).toString());
|
|
859
|
-
message.gasUsed !== undefined &&
|
|
860
|
-
(obj.gas_used = (message.gasUsed || BigInt(0)).toString());
|
|
861
|
-
if (message.events) {
|
|
862
|
-
obj.events = message.events.map(e => (e ? Event.toJSON(e) : undefined));
|
|
863
|
-
}
|
|
864
|
-
else {
|
|
865
|
-
obj.events = [];
|
|
866
|
-
}
|
|
867
|
-
message.codespace !== undefined && (obj.codespace = message.codespace);
|
|
868
|
-
return obj;
|
|
869
|
-
},
|
|
870
|
-
fromPartial(object) {
|
|
871
|
-
const message = createBaseResponseCheckTx();
|
|
872
|
-
message.code = object.code ?? 0;
|
|
873
|
-
message.data = object.data ?? new Uint8Array();
|
|
874
|
-
message.log = object.log ?? '';
|
|
875
|
-
message.info = object.info ?? '';
|
|
876
|
-
message.gasWanted =
|
|
877
|
-
object.gasWanted !== undefined && object.gasWanted !== null
|
|
878
|
-
? BigInt(object.gasWanted.toString())
|
|
879
|
-
: BigInt(0);
|
|
880
|
-
message.gasUsed =
|
|
881
|
-
object.gasUsed !== undefined && object.gasUsed !== null
|
|
882
|
-
? BigInt(object.gasUsed.toString())
|
|
883
|
-
: BigInt(0);
|
|
884
|
-
message.events = object.events?.map(e => Event.fromPartial(e)) || [];
|
|
885
|
-
message.codespace = object.codespace ?? '';
|
|
886
|
-
return message;
|
|
887
|
-
},
|
|
888
|
-
fromProtoMsg(message) {
|
|
889
|
-
return ResponseCheckTx.decode(message.value);
|
|
890
|
-
},
|
|
891
|
-
toProto(message) {
|
|
892
|
-
return ResponseCheckTx.encode(message).finish();
|
|
893
|
-
},
|
|
894
|
-
toProtoMsg(message) {
|
|
895
|
-
return {
|
|
896
|
-
typeUrl: '/tendermint.abci.ResponseCheckTx',
|
|
897
|
-
value: ResponseCheckTx.encode(message).finish(),
|
|
898
|
-
};
|
|
899
|
-
},
|
|
900
|
-
};
|
|
901
|
-
function createBaseResponseDeliverTx() {
|
|
902
|
-
return {
|
|
903
|
-
code: 0,
|
|
904
|
-
data: new Uint8Array(),
|
|
905
|
-
log: '',
|
|
906
|
-
info: '',
|
|
907
|
-
gasWanted: BigInt(0),
|
|
908
|
-
gasUsed: BigInt(0),
|
|
909
|
-
events: [],
|
|
910
|
-
codespace: '',
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
export const ResponseDeliverTx = {
|
|
914
|
-
typeUrl: '/tendermint.abci.ResponseDeliverTx',
|
|
915
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
916
|
-
if (message.code !== 0) {
|
|
917
|
-
writer.uint32(8).uint32(message.code);
|
|
918
|
-
}
|
|
919
|
-
if (message.data.length !== 0) {
|
|
920
|
-
writer.uint32(18).bytes(message.data);
|
|
921
|
-
}
|
|
922
|
-
if (message.log !== '') {
|
|
923
|
-
writer.uint32(26).string(message.log);
|
|
924
|
-
}
|
|
925
|
-
if (message.info !== '') {
|
|
926
|
-
writer.uint32(34).string(message.info);
|
|
927
|
-
}
|
|
928
|
-
if (message.gasWanted !== BigInt(0)) {
|
|
929
|
-
writer.uint32(40).int64(message.gasWanted);
|
|
930
|
-
}
|
|
931
|
-
if (message.gasUsed !== BigInt(0)) {
|
|
932
|
-
writer.uint32(48).int64(message.gasUsed);
|
|
933
|
-
}
|
|
934
|
-
for (const v of message.events) {
|
|
935
|
-
Event.encode(v, writer.uint32(58).fork()).ldelim();
|
|
936
|
-
}
|
|
937
|
-
if (message.codespace !== '') {
|
|
938
|
-
writer.uint32(66).string(message.codespace);
|
|
939
|
-
}
|
|
940
|
-
return writer;
|
|
941
|
-
},
|
|
942
|
-
decode(input, length) {
|
|
943
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
944
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
945
|
-
const message = createBaseResponseDeliverTx();
|
|
946
|
-
while (reader.pos < end) {
|
|
947
|
-
const tag = reader.uint32();
|
|
948
|
-
switch (tag >>> 3) {
|
|
949
|
-
case 1:
|
|
950
|
-
message.code = reader.uint32();
|
|
951
|
-
break;
|
|
952
|
-
case 2:
|
|
953
|
-
message.data = reader.bytes();
|
|
954
|
-
break;
|
|
955
|
-
case 3:
|
|
956
|
-
message.log = reader.string();
|
|
957
|
-
break;
|
|
958
|
-
case 4:
|
|
959
|
-
message.info = reader.string();
|
|
960
|
-
break;
|
|
961
|
-
case 5:
|
|
962
|
-
message.gasWanted = reader.int64();
|
|
963
|
-
break;
|
|
964
|
-
case 6:
|
|
965
|
-
message.gasUsed = reader.int64();
|
|
966
|
-
break;
|
|
967
|
-
case 7:
|
|
968
|
-
message.events.push(Event.decode(reader, reader.uint32()));
|
|
969
|
-
break;
|
|
970
|
-
case 8:
|
|
971
|
-
message.codespace = reader.string();
|
|
972
|
-
break;
|
|
973
|
-
default:
|
|
974
|
-
reader.skipType(tag & 7);
|
|
975
|
-
break;
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
return message;
|
|
979
|
-
},
|
|
980
|
-
fromJSON(object) {
|
|
981
|
-
return {
|
|
982
|
-
code: isSet(object.code) ? Number(object.code) : 0,
|
|
983
|
-
data: isSet(object.data)
|
|
984
|
-
? bytesFromBase64(object.data)
|
|
985
|
-
: new Uint8Array(),
|
|
986
|
-
log: isSet(object.log) ? String(object.log) : '',
|
|
987
|
-
info: isSet(object.info) ? String(object.info) : '',
|
|
988
|
-
gasWanted: isSet(object.gas_wanted)
|
|
989
|
-
? BigInt(object.gas_wanted.toString())
|
|
990
|
-
: BigInt(0),
|
|
991
|
-
gasUsed: isSet(object.gas_used)
|
|
992
|
-
? BigInt(object.gas_used.toString())
|
|
993
|
-
: BigInt(0),
|
|
994
|
-
events: Array.isArray(object?.events)
|
|
995
|
-
? object.events.map((e) => Event.fromJSON(e))
|
|
996
|
-
: [],
|
|
997
|
-
codespace: isSet(object.codespace) ? String(object.codespace) : '',
|
|
998
|
-
};
|
|
999
|
-
},
|
|
1000
|
-
toJSON(message) {
|
|
1001
|
-
const obj = {};
|
|
1002
|
-
message.code !== undefined && (obj.code = Math.round(message.code));
|
|
1003
|
-
message.data !== undefined &&
|
|
1004
|
-
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
|
1005
|
-
message.log !== undefined && (obj.log = message.log);
|
|
1006
|
-
message.info !== undefined && (obj.info = message.info);
|
|
1007
|
-
message.gasWanted !== undefined &&
|
|
1008
|
-
(obj.gas_wanted = (message.gasWanted || BigInt(0)).toString());
|
|
1009
|
-
message.gasUsed !== undefined &&
|
|
1010
|
-
(obj.gas_used = (message.gasUsed || BigInt(0)).toString());
|
|
1011
|
-
if (message.events) {
|
|
1012
|
-
obj.events = message.events.map(e => (e ? Event.toJSON(e) : undefined));
|
|
1013
|
-
}
|
|
1014
|
-
else {
|
|
1015
|
-
obj.events = [];
|
|
1016
|
-
}
|
|
1017
|
-
message.codespace !== undefined && (obj.codespace = message.codespace);
|
|
1018
|
-
return obj;
|
|
1019
|
-
},
|
|
1020
|
-
fromPartial(object) {
|
|
1021
|
-
const message = createBaseResponseDeliverTx();
|
|
1022
|
-
message.code = object.code ?? 0;
|
|
1023
|
-
message.data = object.data ?? new Uint8Array();
|
|
1024
|
-
message.log = object.log ?? '';
|
|
1025
|
-
message.info = object.info ?? '';
|
|
1026
|
-
message.gasWanted =
|
|
1027
|
-
object.gasWanted !== undefined && object.gasWanted !== null
|
|
1028
|
-
? BigInt(object.gasWanted.toString())
|
|
1029
|
-
: BigInt(0);
|
|
1030
|
-
message.gasUsed =
|
|
1031
|
-
object.gasUsed !== undefined && object.gasUsed !== null
|
|
1032
|
-
? BigInt(object.gasUsed.toString())
|
|
1033
|
-
: BigInt(0);
|
|
1034
|
-
message.events = object.events?.map(e => Event.fromPartial(e)) || [];
|
|
1035
|
-
message.codespace = object.codespace ?? '';
|
|
1036
|
-
return message;
|
|
1037
|
-
},
|
|
1038
|
-
fromProtoMsg(message) {
|
|
1039
|
-
return ResponseDeliverTx.decode(message.value);
|
|
1040
|
-
},
|
|
1041
|
-
toProto(message) {
|
|
1042
|
-
return ResponseDeliverTx.encode(message).finish();
|
|
1043
|
-
},
|
|
1044
|
-
toProtoMsg(message) {
|
|
1045
|
-
return {
|
|
1046
|
-
typeUrl: '/tendermint.abci.ResponseDeliverTx',
|
|
1047
|
-
value: ResponseDeliverTx.encode(message).finish(),
|
|
1048
|
-
};
|
|
1049
|
-
},
|
|
1050
|
-
};
|
|
1051
|
-
function createBaseResponseEndBlock() {
|
|
1052
|
-
return {
|
|
1053
|
-
validatorUpdates: [],
|
|
1054
|
-
consensusParamUpdates: undefined,
|
|
1055
|
-
events: [],
|
|
1056
|
-
};
|
|
1057
|
-
}
|
|
1058
|
-
export const ResponseEndBlock = {
|
|
1059
|
-
typeUrl: '/tendermint.abci.ResponseEndBlock',
|
|
1060
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1061
|
-
for (const v of message.validatorUpdates) {
|
|
1062
|
-
ValidatorUpdate.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1063
|
-
}
|
|
1064
|
-
if (message.consensusParamUpdates !== undefined) {
|
|
1065
|
-
ConsensusParams.encode(message.consensusParamUpdates, writer.uint32(18).fork()).ldelim();
|
|
1066
|
-
}
|
|
1067
|
-
for (const v of message.events) {
|
|
1068
|
-
Event.encode(v, writer.uint32(26).fork()).ldelim();
|
|
1069
|
-
}
|
|
1070
|
-
return writer;
|
|
1071
|
-
},
|
|
1072
|
-
decode(input, length) {
|
|
1073
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1074
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1075
|
-
const message = createBaseResponseEndBlock();
|
|
1076
|
-
while (reader.pos < end) {
|
|
1077
|
-
const tag = reader.uint32();
|
|
1078
|
-
switch (tag >>> 3) {
|
|
1079
|
-
case 1:
|
|
1080
|
-
message.validatorUpdates.push(ValidatorUpdate.decode(reader, reader.uint32()));
|
|
1081
|
-
break;
|
|
1082
|
-
case 2:
|
|
1083
|
-
message.consensusParamUpdates = ConsensusParams.decode(reader, reader.uint32());
|
|
1084
|
-
break;
|
|
1085
|
-
case 3:
|
|
1086
|
-
message.events.push(Event.decode(reader, reader.uint32()));
|
|
1087
|
-
break;
|
|
1088
|
-
default:
|
|
1089
|
-
reader.skipType(tag & 7);
|
|
1090
|
-
break;
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
return message;
|
|
1094
|
-
},
|
|
1095
|
-
fromJSON(object) {
|
|
1096
|
-
return {
|
|
1097
|
-
validatorUpdates: Array.isArray(object?.validatorUpdates)
|
|
1098
|
-
? object.validatorUpdates.map((e) => ValidatorUpdate.fromJSON(e))
|
|
1099
|
-
: [],
|
|
1100
|
-
consensusParamUpdates: isSet(object.consensusParamUpdates)
|
|
1101
|
-
? ConsensusParams.fromJSON(object.consensusParamUpdates)
|
|
1102
|
-
: undefined,
|
|
1103
|
-
events: Array.isArray(object?.events)
|
|
1104
|
-
? object.events.map((e) => Event.fromJSON(e))
|
|
1105
|
-
: [],
|
|
1106
|
-
};
|
|
1107
|
-
},
|
|
1108
|
-
toJSON(message) {
|
|
1109
|
-
const obj = {};
|
|
1110
|
-
if (message.validatorUpdates) {
|
|
1111
|
-
obj.validatorUpdates = message.validatorUpdates.map(e => e ? ValidatorUpdate.toJSON(e) : undefined);
|
|
1112
|
-
}
|
|
1113
|
-
else {
|
|
1114
|
-
obj.validatorUpdates = [];
|
|
1115
|
-
}
|
|
1116
|
-
message.consensusParamUpdates !== undefined &&
|
|
1117
|
-
(obj.consensusParamUpdates = message.consensusParamUpdates
|
|
1118
|
-
? ConsensusParams.toJSON(message.consensusParamUpdates)
|
|
1119
|
-
: undefined);
|
|
1120
|
-
if (message.events) {
|
|
1121
|
-
obj.events = message.events.map(e => (e ? Event.toJSON(e) : undefined));
|
|
1122
|
-
}
|
|
1123
|
-
else {
|
|
1124
|
-
obj.events = [];
|
|
1125
|
-
}
|
|
1126
|
-
return obj;
|
|
1127
|
-
},
|
|
1128
|
-
fromPartial(object) {
|
|
1129
|
-
const message = createBaseResponseEndBlock();
|
|
1130
|
-
message.validatorUpdates =
|
|
1131
|
-
object.validatorUpdates?.map(e => ValidatorUpdate.fromPartial(e)) || [];
|
|
1132
|
-
message.consensusParamUpdates =
|
|
1133
|
-
object.consensusParamUpdates !== undefined &&
|
|
1134
|
-
object.consensusParamUpdates !== null
|
|
1135
|
-
? ConsensusParams.fromPartial(object.consensusParamUpdates)
|
|
1136
|
-
: undefined;
|
|
1137
|
-
message.events = object.events?.map(e => Event.fromPartial(e)) || [];
|
|
1138
|
-
return message;
|
|
1139
|
-
},
|
|
1140
|
-
fromProtoMsg(message) {
|
|
1141
|
-
return ResponseEndBlock.decode(message.value);
|
|
1142
|
-
},
|
|
1143
|
-
toProto(message) {
|
|
1144
|
-
return ResponseEndBlock.encode(message).finish();
|
|
1145
|
-
},
|
|
1146
|
-
toProtoMsg(message) {
|
|
1147
|
-
return {
|
|
1148
|
-
typeUrl: '/tendermint.abci.ResponseEndBlock',
|
|
1149
|
-
value: ResponseEndBlock.encode(message).finish(),
|
|
1150
|
-
};
|
|
1151
|
-
},
|
|
1152
|
-
};
|
|
1153
|
-
function createBaseResponseCommit() {
|
|
1154
|
-
return {
|
|
1155
|
-
data: new Uint8Array(),
|
|
1156
|
-
retainHeight: BigInt(0),
|
|
1157
|
-
};
|
|
1158
|
-
}
|
|
1159
|
-
export const ResponseCommit = {
|
|
1160
|
-
typeUrl: '/tendermint.abci.ResponseCommit',
|
|
1161
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1162
|
-
if (message.data.length !== 0) {
|
|
1163
|
-
writer.uint32(18).bytes(message.data);
|
|
1164
|
-
}
|
|
1165
|
-
if (message.retainHeight !== BigInt(0)) {
|
|
1166
|
-
writer.uint32(24).int64(message.retainHeight);
|
|
1167
|
-
}
|
|
1168
|
-
return writer;
|
|
1169
|
-
},
|
|
1170
|
-
decode(input, length) {
|
|
1171
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1172
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1173
|
-
const message = createBaseResponseCommit();
|
|
1174
|
-
while (reader.pos < end) {
|
|
1175
|
-
const tag = reader.uint32();
|
|
1176
|
-
switch (tag >>> 3) {
|
|
1177
|
-
case 2:
|
|
1178
|
-
message.data = reader.bytes();
|
|
1179
|
-
break;
|
|
1180
|
-
case 3:
|
|
1181
|
-
message.retainHeight = reader.int64();
|
|
1182
|
-
break;
|
|
1183
|
-
default:
|
|
1184
|
-
reader.skipType(tag & 7);
|
|
1185
|
-
break;
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
return message;
|
|
1189
|
-
},
|
|
1190
|
-
fromJSON(object) {
|
|
1191
|
-
return {
|
|
1192
|
-
data: isSet(object.data)
|
|
1193
|
-
? bytesFromBase64(object.data)
|
|
1194
|
-
: new Uint8Array(),
|
|
1195
|
-
retainHeight: isSet(object.retainHeight)
|
|
1196
|
-
? BigInt(object.retainHeight.toString())
|
|
1197
|
-
: BigInt(0),
|
|
1198
|
-
};
|
|
1199
|
-
},
|
|
1200
|
-
toJSON(message) {
|
|
1201
|
-
const obj = {};
|
|
1202
|
-
message.data !== undefined &&
|
|
1203
|
-
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
|
1204
|
-
message.retainHeight !== undefined &&
|
|
1205
|
-
(obj.retainHeight = (message.retainHeight || BigInt(0)).toString());
|
|
1206
|
-
return obj;
|
|
1207
|
-
},
|
|
1208
|
-
fromPartial(object) {
|
|
1209
|
-
const message = createBaseResponseCommit();
|
|
1210
|
-
message.data = object.data ?? new Uint8Array();
|
|
1211
|
-
message.retainHeight =
|
|
1212
|
-
object.retainHeight !== undefined && object.retainHeight !== null
|
|
1213
|
-
? BigInt(object.retainHeight.toString())
|
|
1214
|
-
: BigInt(0);
|
|
1215
|
-
return message;
|
|
1216
|
-
},
|
|
1217
|
-
fromProtoMsg(message) {
|
|
1218
|
-
return ResponseCommit.decode(message.value);
|
|
1219
|
-
},
|
|
1220
|
-
toProto(message) {
|
|
1221
|
-
return ResponseCommit.encode(message).finish();
|
|
1222
|
-
},
|
|
1223
|
-
toProtoMsg(message) {
|
|
1224
|
-
return {
|
|
1225
|
-
typeUrl: '/tendermint.abci.ResponseCommit',
|
|
1226
|
-
value: ResponseCommit.encode(message).finish(),
|
|
1227
|
-
};
|
|
1228
|
-
},
|
|
1229
|
-
};
|
|
1230
|
-
function createBaseLastCommitInfo() {
|
|
1231
|
-
return {
|
|
1232
|
-
round: 0,
|
|
1233
|
-
votes: [],
|
|
1234
|
-
};
|
|
1235
|
-
}
|
|
1236
|
-
export const LastCommitInfo = {
|
|
1237
|
-
typeUrl: '/tendermint.abci.LastCommitInfo',
|
|
1238
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1239
|
-
if (message.round !== 0) {
|
|
1240
|
-
writer.uint32(8).int32(message.round);
|
|
1241
|
-
}
|
|
1242
|
-
for (const v of message.votes) {
|
|
1243
|
-
VoteInfo.encode(v, writer.uint32(18).fork()).ldelim();
|
|
1244
|
-
}
|
|
1245
|
-
return writer;
|
|
1246
|
-
},
|
|
1247
|
-
decode(input, length) {
|
|
1248
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1249
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1250
|
-
const message = createBaseLastCommitInfo();
|
|
1251
|
-
while (reader.pos < end) {
|
|
1252
|
-
const tag = reader.uint32();
|
|
1253
|
-
switch (tag >>> 3) {
|
|
1254
|
-
case 1:
|
|
1255
|
-
message.round = reader.int32();
|
|
1256
|
-
break;
|
|
1257
|
-
case 2:
|
|
1258
|
-
message.votes.push(VoteInfo.decode(reader, reader.uint32()));
|
|
1259
|
-
break;
|
|
1260
|
-
default:
|
|
1261
|
-
reader.skipType(tag & 7);
|
|
1262
|
-
break;
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
return message;
|
|
1266
|
-
},
|
|
1267
|
-
fromJSON(object) {
|
|
1268
|
-
return {
|
|
1269
|
-
round: isSet(object.round) ? Number(object.round) : 0,
|
|
1270
|
-
votes: Array.isArray(object?.votes)
|
|
1271
|
-
? object.votes.map((e) => VoteInfo.fromJSON(e))
|
|
1272
|
-
: [],
|
|
1273
|
-
};
|
|
1274
|
-
},
|
|
1275
|
-
toJSON(message) {
|
|
1276
|
-
const obj = {};
|
|
1277
|
-
message.round !== undefined && (obj.round = Math.round(message.round));
|
|
1278
|
-
if (message.votes) {
|
|
1279
|
-
obj.votes = message.votes.map(e => (e ? VoteInfo.toJSON(e) : undefined));
|
|
1280
|
-
}
|
|
1281
|
-
else {
|
|
1282
|
-
obj.votes = [];
|
|
1283
|
-
}
|
|
1284
|
-
return obj;
|
|
1285
|
-
},
|
|
1286
|
-
fromPartial(object) {
|
|
1287
|
-
const message = createBaseLastCommitInfo();
|
|
1288
|
-
message.round = object.round ?? 0;
|
|
1289
|
-
message.votes = object.votes?.map(e => VoteInfo.fromPartial(e)) || [];
|
|
1290
|
-
return message;
|
|
1291
|
-
},
|
|
1292
|
-
fromProtoMsg(message) {
|
|
1293
|
-
return LastCommitInfo.decode(message.value);
|
|
1294
|
-
},
|
|
1295
|
-
toProto(message) {
|
|
1296
|
-
return LastCommitInfo.encode(message).finish();
|
|
1297
|
-
},
|
|
1298
|
-
toProtoMsg(message) {
|
|
1299
|
-
return {
|
|
1300
|
-
typeUrl: '/tendermint.abci.LastCommitInfo',
|
|
1301
|
-
value: LastCommitInfo.encode(message).finish(),
|
|
1302
|
-
};
|
|
1303
|
-
},
|
|
1304
|
-
};
|
|
1305
|
-
function createBaseEvent() {
|
|
1306
|
-
return {
|
|
1307
|
-
type: '',
|
|
1308
|
-
attributes: [],
|
|
1309
|
-
};
|
|
1310
|
-
}
|
|
1311
|
-
export const Event = {
|
|
1312
|
-
typeUrl: '/tendermint.abci.Event',
|
|
1313
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1314
|
-
if (message.type !== '') {
|
|
1315
|
-
writer.uint32(10).string(message.type);
|
|
1316
|
-
}
|
|
1317
|
-
for (const v of message.attributes) {
|
|
1318
|
-
EventAttribute.encode(v, writer.uint32(18).fork()).ldelim();
|
|
1319
|
-
}
|
|
1320
|
-
return writer;
|
|
1321
|
-
},
|
|
1322
|
-
decode(input, length) {
|
|
1323
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1324
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1325
|
-
const message = createBaseEvent();
|
|
1326
|
-
while (reader.pos < end) {
|
|
1327
|
-
const tag = reader.uint32();
|
|
1328
|
-
switch (tag >>> 3) {
|
|
1329
|
-
case 1:
|
|
1330
|
-
message.type = reader.string();
|
|
1331
|
-
break;
|
|
1332
|
-
case 2:
|
|
1333
|
-
message.attributes.push(EventAttribute.decode(reader, reader.uint32()));
|
|
1334
|
-
break;
|
|
1335
|
-
default:
|
|
1336
|
-
reader.skipType(tag & 7);
|
|
1337
|
-
break;
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
return message;
|
|
1341
|
-
},
|
|
1342
|
-
fromJSON(object) {
|
|
1343
|
-
return {
|
|
1344
|
-
type: isSet(object.type) ? String(object.type) : '',
|
|
1345
|
-
attributes: Array.isArray(object?.attributes)
|
|
1346
|
-
? object.attributes.map((e) => EventAttribute.fromJSON(e))
|
|
1347
|
-
: [],
|
|
1348
|
-
};
|
|
1349
|
-
},
|
|
1350
|
-
toJSON(message) {
|
|
1351
|
-
const obj = {};
|
|
1352
|
-
message.type !== undefined && (obj.type = message.type);
|
|
1353
|
-
if (message.attributes) {
|
|
1354
|
-
obj.attributes = message.attributes.map(e => e ? EventAttribute.toJSON(e) : undefined);
|
|
1355
|
-
}
|
|
1356
|
-
else {
|
|
1357
|
-
obj.attributes = [];
|
|
1358
|
-
}
|
|
1359
|
-
return obj;
|
|
1360
|
-
},
|
|
1361
|
-
fromPartial(object) {
|
|
1362
|
-
const message = createBaseEvent();
|
|
1363
|
-
message.type = object.type ?? '';
|
|
1364
|
-
message.attributes =
|
|
1365
|
-
object.attributes?.map(e => EventAttribute.fromPartial(e)) || [];
|
|
1366
|
-
return message;
|
|
1367
|
-
},
|
|
1368
|
-
fromProtoMsg(message) {
|
|
1369
|
-
return Event.decode(message.value);
|
|
1370
|
-
},
|
|
1371
|
-
toProto(message) {
|
|
1372
|
-
return Event.encode(message).finish();
|
|
1373
|
-
},
|
|
1374
|
-
toProtoMsg(message) {
|
|
1375
|
-
return {
|
|
1376
|
-
typeUrl: '/tendermint.abci.Event',
|
|
1377
|
-
value: Event.encode(message).finish(),
|
|
1378
|
-
};
|
|
1379
|
-
},
|
|
1380
|
-
};
|
|
1381
|
-
function createBaseEventAttribute() {
|
|
1382
|
-
return {
|
|
1383
|
-
key: new Uint8Array(),
|
|
1384
|
-
value: new Uint8Array(),
|
|
1385
|
-
index: false,
|
|
1386
|
-
};
|
|
1387
|
-
}
|
|
1388
|
-
export const EventAttribute = {
|
|
1389
|
-
typeUrl: '/tendermint.abci.EventAttribute',
|
|
1390
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1391
|
-
if (message.key.length !== 0) {
|
|
1392
|
-
writer.uint32(10).bytes(message.key);
|
|
1393
|
-
}
|
|
1394
|
-
if (message.value.length !== 0) {
|
|
1395
|
-
writer.uint32(18).bytes(message.value);
|
|
1396
|
-
}
|
|
1397
|
-
if (message.index === true) {
|
|
1398
|
-
writer.uint32(24).bool(message.index);
|
|
1399
|
-
}
|
|
1400
|
-
return writer;
|
|
1401
|
-
},
|
|
1402
|
-
decode(input, length) {
|
|
1403
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1404
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1405
|
-
const message = createBaseEventAttribute();
|
|
1406
|
-
while (reader.pos < end) {
|
|
1407
|
-
const tag = reader.uint32();
|
|
1408
|
-
switch (tag >>> 3) {
|
|
1409
|
-
case 1:
|
|
1410
|
-
message.key = reader.bytes();
|
|
1411
|
-
break;
|
|
1412
|
-
case 2:
|
|
1413
|
-
message.value = reader.bytes();
|
|
1414
|
-
break;
|
|
1415
|
-
case 3:
|
|
1416
|
-
message.index = reader.bool();
|
|
1417
|
-
break;
|
|
1418
|
-
default:
|
|
1419
|
-
reader.skipType(tag & 7);
|
|
1420
|
-
break;
|
|
1421
|
-
}
|
|
1422
|
-
}
|
|
1423
|
-
return message;
|
|
1424
|
-
},
|
|
1425
|
-
fromJSON(object) {
|
|
1426
|
-
return {
|
|
1427
|
-
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(),
|
|
1428
|
-
value: isSet(object.value)
|
|
1429
|
-
? bytesFromBase64(object.value)
|
|
1430
|
-
: new Uint8Array(),
|
|
1431
|
-
index: isSet(object.index) ? Boolean(object.index) : false,
|
|
1432
|
-
};
|
|
1433
|
-
},
|
|
1434
|
-
toJSON(message) {
|
|
1435
|
-
const obj = {};
|
|
1436
|
-
message.key !== undefined &&
|
|
1437
|
-
(obj.key = base64FromBytes(message.key !== undefined ? message.key : new Uint8Array()));
|
|
1438
|
-
message.value !== undefined &&
|
|
1439
|
-
(obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
1440
|
-
message.index !== undefined && (obj.index = message.index);
|
|
1441
|
-
return obj;
|
|
1442
|
-
},
|
|
1443
|
-
fromPartial(object) {
|
|
1444
|
-
const message = createBaseEventAttribute();
|
|
1445
|
-
message.key = object.key ?? new Uint8Array();
|
|
1446
|
-
message.value = object.value ?? new Uint8Array();
|
|
1447
|
-
message.index = object.index ?? false;
|
|
1448
|
-
return message;
|
|
1449
|
-
},
|
|
1450
|
-
fromProtoMsg(message) {
|
|
1451
|
-
return EventAttribute.decode(message.value);
|
|
1452
|
-
},
|
|
1453
|
-
toProto(message) {
|
|
1454
|
-
return EventAttribute.encode(message).finish();
|
|
1455
|
-
},
|
|
1456
|
-
toProtoMsg(message) {
|
|
1457
|
-
return {
|
|
1458
|
-
typeUrl: '/tendermint.abci.EventAttribute',
|
|
1459
|
-
value: EventAttribute.encode(message).finish(),
|
|
1460
|
-
};
|
|
1461
|
-
},
|
|
1462
|
-
};
|
|
1463
|
-
function createBaseTxResult() {
|
|
1464
|
-
return {
|
|
1465
|
-
height: BigInt(0),
|
|
1466
|
-
index: 0,
|
|
1467
|
-
tx: new Uint8Array(),
|
|
1468
|
-
result: ResponseDeliverTx.fromPartial({}),
|
|
1469
|
-
};
|
|
1470
|
-
}
|
|
1471
|
-
export const TxResult = {
|
|
1472
|
-
typeUrl: '/tendermint.abci.TxResult',
|
|
1473
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1474
|
-
if (message.height !== BigInt(0)) {
|
|
1475
|
-
writer.uint32(8).int64(message.height);
|
|
1476
|
-
}
|
|
1477
|
-
if (message.index !== 0) {
|
|
1478
|
-
writer.uint32(16).uint32(message.index);
|
|
1479
|
-
}
|
|
1480
|
-
if (message.tx.length !== 0) {
|
|
1481
|
-
writer.uint32(26).bytes(message.tx);
|
|
1482
|
-
}
|
|
1483
|
-
if (message.result !== undefined) {
|
|
1484
|
-
ResponseDeliverTx.encode(message.result, writer.uint32(34).fork()).ldelim();
|
|
1485
|
-
}
|
|
1486
|
-
return writer;
|
|
1487
|
-
},
|
|
1488
|
-
decode(input, length) {
|
|
1489
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1490
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1491
|
-
const message = createBaseTxResult();
|
|
1492
|
-
while (reader.pos < end) {
|
|
1493
|
-
const tag = reader.uint32();
|
|
1494
|
-
switch (tag >>> 3) {
|
|
1495
|
-
case 1:
|
|
1496
|
-
message.height = reader.int64();
|
|
1497
|
-
break;
|
|
1498
|
-
case 2:
|
|
1499
|
-
message.index = reader.uint32();
|
|
1500
|
-
break;
|
|
1501
|
-
case 3:
|
|
1502
|
-
message.tx = reader.bytes();
|
|
1503
|
-
break;
|
|
1504
|
-
case 4:
|
|
1505
|
-
message.result = ResponseDeliverTx.decode(reader, reader.uint32());
|
|
1506
|
-
break;
|
|
1507
|
-
default:
|
|
1508
|
-
reader.skipType(tag & 7);
|
|
1509
|
-
break;
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
return message;
|
|
1513
|
-
},
|
|
1514
|
-
fromJSON(object) {
|
|
1515
|
-
return {
|
|
1516
|
-
height: isSet(object.height)
|
|
1517
|
-
? BigInt(object.height.toString())
|
|
1518
|
-
: BigInt(0),
|
|
1519
|
-
index: isSet(object.index) ? Number(object.index) : 0,
|
|
1520
|
-
tx: isSet(object.tx) ? bytesFromBase64(object.tx) : new Uint8Array(),
|
|
1521
|
-
result: isSet(object.result)
|
|
1522
|
-
? ResponseDeliverTx.fromJSON(object.result)
|
|
1523
|
-
: undefined,
|
|
1524
|
-
};
|
|
1525
|
-
},
|
|
1526
|
-
toJSON(message) {
|
|
1527
|
-
const obj = {};
|
|
1528
|
-
message.height !== undefined &&
|
|
1529
|
-
(obj.height = (message.height || BigInt(0)).toString());
|
|
1530
|
-
message.index !== undefined && (obj.index = Math.round(message.index));
|
|
1531
|
-
message.tx !== undefined &&
|
|
1532
|
-
(obj.tx = base64FromBytes(message.tx !== undefined ? message.tx : new Uint8Array()));
|
|
1533
|
-
message.result !== undefined &&
|
|
1534
|
-
(obj.result = message.result
|
|
1535
|
-
? ResponseDeliverTx.toJSON(message.result)
|
|
1536
|
-
: undefined);
|
|
1537
|
-
return obj;
|
|
1538
|
-
},
|
|
1539
|
-
fromPartial(object) {
|
|
1540
|
-
const message = createBaseTxResult();
|
|
1541
|
-
message.height =
|
|
1542
|
-
object.height !== undefined && object.height !== null
|
|
1543
|
-
? BigInt(object.height.toString())
|
|
1544
|
-
: BigInt(0);
|
|
1545
|
-
message.index = object.index ?? 0;
|
|
1546
|
-
message.tx = object.tx ?? new Uint8Array();
|
|
1547
|
-
message.result =
|
|
1548
|
-
object.result !== undefined && object.result !== null
|
|
1549
|
-
? ResponseDeliverTx.fromPartial(object.result)
|
|
1550
|
-
: undefined;
|
|
1551
|
-
return message;
|
|
1552
|
-
},
|
|
1553
|
-
fromProtoMsg(message) {
|
|
1554
|
-
return TxResult.decode(message.value);
|
|
1555
|
-
},
|
|
1556
|
-
toProto(message) {
|
|
1557
|
-
return TxResult.encode(message).finish();
|
|
1558
|
-
},
|
|
1559
|
-
toProtoMsg(message) {
|
|
1560
|
-
return {
|
|
1561
|
-
typeUrl: '/tendermint.abci.TxResult',
|
|
1562
|
-
value: TxResult.encode(message).finish(),
|
|
1563
|
-
};
|
|
1564
|
-
},
|
|
1565
|
-
};
|
|
1566
|
-
function createBaseValidator() {
|
|
1567
|
-
return {
|
|
1568
|
-
address: new Uint8Array(),
|
|
1569
|
-
power: BigInt(0),
|
|
1570
|
-
};
|
|
1571
|
-
}
|
|
1572
|
-
export const Validator = {
|
|
1573
|
-
typeUrl: '/tendermint.abci.Validator',
|
|
1574
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1575
|
-
if (message.address.length !== 0) {
|
|
1576
|
-
writer.uint32(10).bytes(message.address);
|
|
1577
|
-
}
|
|
1578
|
-
if (message.power !== BigInt(0)) {
|
|
1579
|
-
writer.uint32(24).int64(message.power);
|
|
1580
|
-
}
|
|
1581
|
-
return writer;
|
|
1582
|
-
},
|
|
1583
|
-
decode(input, length) {
|
|
1584
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1585
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1586
|
-
const message = createBaseValidator();
|
|
1587
|
-
while (reader.pos < end) {
|
|
1588
|
-
const tag = reader.uint32();
|
|
1589
|
-
switch (tag >>> 3) {
|
|
1590
|
-
case 1:
|
|
1591
|
-
message.address = reader.bytes();
|
|
1592
|
-
break;
|
|
1593
|
-
case 3:
|
|
1594
|
-
message.power = reader.int64();
|
|
1595
|
-
break;
|
|
1596
|
-
default:
|
|
1597
|
-
reader.skipType(tag & 7);
|
|
1598
|
-
break;
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
return message;
|
|
1602
|
-
},
|
|
1603
|
-
fromJSON(object) {
|
|
1604
|
-
return {
|
|
1605
|
-
address: isSet(object.address)
|
|
1606
|
-
? bytesFromBase64(object.address)
|
|
1607
|
-
: new Uint8Array(),
|
|
1608
|
-
power: isSet(object.power) ? BigInt(object.power.toString()) : BigInt(0),
|
|
1609
|
-
};
|
|
1610
|
-
},
|
|
1611
|
-
toJSON(message) {
|
|
1612
|
-
const obj = {};
|
|
1613
|
-
message.address !== undefined &&
|
|
1614
|
-
(obj.address = base64FromBytes(message.address !== undefined ? message.address : new Uint8Array()));
|
|
1615
|
-
message.power !== undefined &&
|
|
1616
|
-
(obj.power = (message.power || BigInt(0)).toString());
|
|
1617
|
-
return obj;
|
|
1618
|
-
},
|
|
1619
|
-
fromPartial(object) {
|
|
1620
|
-
const message = createBaseValidator();
|
|
1621
|
-
message.address = object.address ?? new Uint8Array();
|
|
1622
|
-
message.power =
|
|
1623
|
-
object.power !== undefined && object.power !== null
|
|
1624
|
-
? BigInt(object.power.toString())
|
|
1625
|
-
: BigInt(0);
|
|
1626
|
-
return message;
|
|
1627
|
-
},
|
|
1628
|
-
fromProtoMsg(message) {
|
|
1629
|
-
return Validator.decode(message.value);
|
|
1630
|
-
},
|
|
1631
|
-
toProto(message) {
|
|
1632
|
-
return Validator.encode(message).finish();
|
|
1633
|
-
},
|
|
1634
|
-
toProtoMsg(message) {
|
|
1635
|
-
return {
|
|
1636
|
-
typeUrl: '/tendermint.abci.Validator',
|
|
1637
|
-
value: Validator.encode(message).finish(),
|
|
1638
|
-
};
|
|
1639
|
-
},
|
|
1640
|
-
};
|
|
1641
|
-
function createBaseValidatorUpdate() {
|
|
1642
|
-
return {
|
|
1643
|
-
pubKey: PublicKey.fromPartial({}),
|
|
1644
|
-
power: BigInt(0),
|
|
1645
|
-
};
|
|
1646
|
-
}
|
|
1647
|
-
export const ValidatorUpdate = {
|
|
1648
|
-
typeUrl: '/tendermint.abci.ValidatorUpdate',
|
|
1649
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1650
|
-
if (message.pubKey !== undefined) {
|
|
1651
|
-
PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim();
|
|
1652
|
-
}
|
|
1653
|
-
if (message.power !== BigInt(0)) {
|
|
1654
|
-
writer.uint32(16).int64(message.power);
|
|
1655
|
-
}
|
|
1656
|
-
return writer;
|
|
1657
|
-
},
|
|
1658
|
-
decode(input, length) {
|
|
1659
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1660
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1661
|
-
const message = createBaseValidatorUpdate();
|
|
1662
|
-
while (reader.pos < end) {
|
|
1663
|
-
const tag = reader.uint32();
|
|
1664
|
-
switch (tag >>> 3) {
|
|
1665
|
-
case 1:
|
|
1666
|
-
message.pubKey = PublicKey.decode(reader, reader.uint32());
|
|
1667
|
-
break;
|
|
1668
|
-
case 2:
|
|
1669
|
-
message.power = reader.int64();
|
|
1670
|
-
break;
|
|
1671
|
-
default:
|
|
1672
|
-
reader.skipType(tag & 7);
|
|
1673
|
-
break;
|
|
1674
|
-
}
|
|
1675
|
-
}
|
|
1676
|
-
return message;
|
|
1677
|
-
},
|
|
1678
|
-
fromJSON(object) {
|
|
1679
|
-
return {
|
|
1680
|
-
pubKey: isSet(object.pubKey)
|
|
1681
|
-
? PublicKey.fromJSON(object.pubKey)
|
|
1682
|
-
: undefined,
|
|
1683
|
-
power: isSet(object.power) ? BigInt(object.power.toString()) : BigInt(0),
|
|
1684
|
-
};
|
|
1685
|
-
},
|
|
1686
|
-
toJSON(message) {
|
|
1687
|
-
const obj = {};
|
|
1688
|
-
message.pubKey !== undefined &&
|
|
1689
|
-
(obj.pubKey = message.pubKey
|
|
1690
|
-
? PublicKey.toJSON(message.pubKey)
|
|
1691
|
-
: undefined);
|
|
1692
|
-
message.power !== undefined &&
|
|
1693
|
-
(obj.power = (message.power || BigInt(0)).toString());
|
|
1694
|
-
return obj;
|
|
1695
|
-
},
|
|
1696
|
-
fromPartial(object) {
|
|
1697
|
-
const message = createBaseValidatorUpdate();
|
|
1698
|
-
message.pubKey =
|
|
1699
|
-
object.pubKey !== undefined && object.pubKey !== null
|
|
1700
|
-
? PublicKey.fromPartial(object.pubKey)
|
|
1701
|
-
: undefined;
|
|
1702
|
-
message.power =
|
|
1703
|
-
object.power !== undefined && object.power !== null
|
|
1704
|
-
? BigInt(object.power.toString())
|
|
1705
|
-
: BigInt(0);
|
|
1706
|
-
return message;
|
|
1707
|
-
},
|
|
1708
|
-
fromProtoMsg(message) {
|
|
1709
|
-
return ValidatorUpdate.decode(message.value);
|
|
1710
|
-
},
|
|
1711
|
-
toProto(message) {
|
|
1712
|
-
return ValidatorUpdate.encode(message).finish();
|
|
1713
|
-
},
|
|
1714
|
-
toProtoMsg(message) {
|
|
1715
|
-
return {
|
|
1716
|
-
typeUrl: '/tendermint.abci.ValidatorUpdate',
|
|
1717
|
-
value: ValidatorUpdate.encode(message).finish(),
|
|
1718
|
-
};
|
|
1719
|
-
},
|
|
1720
|
-
};
|
|
1721
|
-
function createBaseVoteInfo() {
|
|
1722
|
-
return {
|
|
1723
|
-
validator: Validator.fromPartial({}),
|
|
1724
|
-
signedLastBlock: false,
|
|
1725
|
-
};
|
|
1726
|
-
}
|
|
1727
|
-
export const VoteInfo = {
|
|
1728
|
-
typeUrl: '/tendermint.abci.VoteInfo',
|
|
1729
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1730
|
-
if (message.validator !== undefined) {
|
|
1731
|
-
Validator.encode(message.validator, writer.uint32(10).fork()).ldelim();
|
|
1732
|
-
}
|
|
1733
|
-
if (message.signedLastBlock === true) {
|
|
1734
|
-
writer.uint32(16).bool(message.signedLastBlock);
|
|
1735
|
-
}
|
|
1736
|
-
return writer;
|
|
1737
|
-
},
|
|
1738
|
-
decode(input, length) {
|
|
1739
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1740
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1741
|
-
const message = createBaseVoteInfo();
|
|
1742
|
-
while (reader.pos < end) {
|
|
1743
|
-
const tag = reader.uint32();
|
|
1744
|
-
switch (tag >>> 3) {
|
|
1745
|
-
case 1:
|
|
1746
|
-
message.validator = Validator.decode(reader, reader.uint32());
|
|
1747
|
-
break;
|
|
1748
|
-
case 2:
|
|
1749
|
-
message.signedLastBlock = reader.bool();
|
|
1750
|
-
break;
|
|
1751
|
-
default:
|
|
1752
|
-
reader.skipType(tag & 7);
|
|
1753
|
-
break;
|
|
1754
|
-
}
|
|
1755
|
-
}
|
|
1756
|
-
return message;
|
|
1757
|
-
},
|
|
1758
|
-
fromJSON(object) {
|
|
1759
|
-
return {
|
|
1760
|
-
validator: isSet(object.validator)
|
|
1761
|
-
? Validator.fromJSON(object.validator)
|
|
1762
|
-
: undefined,
|
|
1763
|
-
signedLastBlock: isSet(object.signedLastBlock)
|
|
1764
|
-
? Boolean(object.signedLastBlock)
|
|
1765
|
-
: false,
|
|
1766
|
-
};
|
|
1767
|
-
},
|
|
1768
|
-
toJSON(message) {
|
|
1769
|
-
const obj = {};
|
|
1770
|
-
message.validator !== undefined &&
|
|
1771
|
-
(obj.validator = message.validator
|
|
1772
|
-
? Validator.toJSON(message.validator)
|
|
1773
|
-
: undefined);
|
|
1774
|
-
message.signedLastBlock !== undefined &&
|
|
1775
|
-
(obj.signedLastBlock = message.signedLastBlock);
|
|
1776
|
-
return obj;
|
|
1777
|
-
},
|
|
1778
|
-
fromPartial(object) {
|
|
1779
|
-
const message = createBaseVoteInfo();
|
|
1780
|
-
message.validator =
|
|
1781
|
-
object.validator !== undefined && object.validator !== null
|
|
1782
|
-
? Validator.fromPartial(object.validator)
|
|
1783
|
-
: undefined;
|
|
1784
|
-
message.signedLastBlock = object.signedLastBlock ?? false;
|
|
1785
|
-
return message;
|
|
1786
|
-
},
|
|
1787
|
-
fromProtoMsg(message) {
|
|
1788
|
-
return VoteInfo.decode(message.value);
|
|
1789
|
-
},
|
|
1790
|
-
toProto(message) {
|
|
1791
|
-
return VoteInfo.encode(message).finish();
|
|
1792
|
-
},
|
|
1793
|
-
toProtoMsg(message) {
|
|
1794
|
-
return {
|
|
1795
|
-
typeUrl: '/tendermint.abci.VoteInfo',
|
|
1796
|
-
value: VoteInfo.encode(message).finish(),
|
|
1797
|
-
};
|
|
1798
|
-
},
|
|
1799
|
-
};
|
|
1800
|
-
function createBaseEvidence() {
|
|
1801
|
-
return {
|
|
1802
|
-
type: 0,
|
|
1803
|
-
validator: Validator.fromPartial({}),
|
|
1804
|
-
height: BigInt(0),
|
|
1805
|
-
time: Timestamp.fromPartial({}),
|
|
1806
|
-
totalVotingPower: BigInt(0),
|
|
1807
|
-
};
|
|
1808
|
-
}
|
|
1809
|
-
export const Evidence = {
|
|
1810
|
-
typeUrl: '/tendermint.abci.Evidence',
|
|
1811
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
1812
|
-
if (message.type !== 0) {
|
|
1813
|
-
writer.uint32(8).int32(message.type);
|
|
1814
|
-
}
|
|
1815
|
-
if (message.validator !== undefined) {
|
|
1816
|
-
Validator.encode(message.validator, writer.uint32(18).fork()).ldelim();
|
|
1817
|
-
}
|
|
1818
|
-
if (message.height !== BigInt(0)) {
|
|
1819
|
-
writer.uint32(24).int64(message.height);
|
|
1820
|
-
}
|
|
1821
|
-
if (message.time !== undefined) {
|
|
1822
|
-
Timestamp.encode(message.time, writer.uint32(34).fork()).ldelim();
|
|
1823
|
-
}
|
|
1824
|
-
if (message.totalVotingPower !== BigInt(0)) {
|
|
1825
|
-
writer.uint32(40).int64(message.totalVotingPower);
|
|
1826
|
-
}
|
|
1827
|
-
return writer;
|
|
1828
|
-
},
|
|
1829
|
-
decode(input, length) {
|
|
1830
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1831
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1832
|
-
const message = createBaseEvidence();
|
|
1833
|
-
while (reader.pos < end) {
|
|
1834
|
-
const tag = reader.uint32();
|
|
1835
|
-
switch (tag >>> 3) {
|
|
1836
|
-
case 1:
|
|
1837
|
-
message.type = reader.int32();
|
|
1838
|
-
break;
|
|
1839
|
-
case 2:
|
|
1840
|
-
message.validator = Validator.decode(reader, reader.uint32());
|
|
1841
|
-
break;
|
|
1842
|
-
case 3:
|
|
1843
|
-
message.height = reader.int64();
|
|
1844
|
-
break;
|
|
1845
|
-
case 4:
|
|
1846
|
-
message.time = Timestamp.decode(reader, reader.uint32());
|
|
1847
|
-
break;
|
|
1848
|
-
case 5:
|
|
1849
|
-
message.totalVotingPower = reader.int64();
|
|
1850
|
-
break;
|
|
1851
|
-
default:
|
|
1852
|
-
reader.skipType(tag & 7);
|
|
1853
|
-
break;
|
|
1854
|
-
}
|
|
1855
|
-
}
|
|
1856
|
-
return message;
|
|
1857
|
-
},
|
|
1858
|
-
fromJSON(object) {
|
|
1859
|
-
return {
|
|
1860
|
-
type: isSet(object.type) ? evidenceTypeFromJSON(object.type) : -1,
|
|
1861
|
-
validator: isSet(object.validator)
|
|
1862
|
-
? Validator.fromJSON(object.validator)
|
|
1863
|
-
: undefined,
|
|
1864
|
-
height: isSet(object.height)
|
|
1865
|
-
? BigInt(object.height.toString())
|
|
1866
|
-
: BigInt(0),
|
|
1867
|
-
time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
|
|
1868
|
-
totalVotingPower: isSet(object.totalVotingPower)
|
|
1869
|
-
? BigInt(object.totalVotingPower.toString())
|
|
1870
|
-
: BigInt(0),
|
|
1871
|
-
};
|
|
1872
|
-
},
|
|
1873
|
-
toJSON(message) {
|
|
1874
|
-
const obj = {};
|
|
1875
|
-
message.type !== undefined && (obj.type = evidenceTypeToJSON(message.type));
|
|
1876
|
-
message.validator !== undefined &&
|
|
1877
|
-
(obj.validator = message.validator
|
|
1878
|
-
? Validator.toJSON(message.validator)
|
|
1879
|
-
: undefined);
|
|
1880
|
-
message.height !== undefined &&
|
|
1881
|
-
(obj.height = (message.height || BigInt(0)).toString());
|
|
1882
|
-
message.time !== undefined &&
|
|
1883
|
-
(obj.time = fromTimestamp(message.time).toISOString());
|
|
1884
|
-
message.totalVotingPower !== undefined &&
|
|
1885
|
-
(obj.totalVotingPower = (message.totalVotingPower || BigInt(0)).toString());
|
|
1886
|
-
return obj;
|
|
1887
|
-
},
|
|
1888
|
-
fromPartial(object) {
|
|
1889
|
-
const message = createBaseEvidence();
|
|
1890
|
-
message.type = object.type ?? 0;
|
|
1891
|
-
message.validator =
|
|
1892
|
-
object.validator !== undefined && object.validator !== null
|
|
1893
|
-
? Validator.fromPartial(object.validator)
|
|
1894
|
-
: undefined;
|
|
1895
|
-
message.height =
|
|
1896
|
-
object.height !== undefined && object.height !== null
|
|
1897
|
-
? BigInt(object.height.toString())
|
|
1898
|
-
: BigInt(0);
|
|
1899
|
-
message.time =
|
|
1900
|
-
object.time !== undefined && object.time !== null
|
|
1901
|
-
? Timestamp.fromPartial(object.time)
|
|
1902
|
-
: undefined;
|
|
1903
|
-
message.totalVotingPower =
|
|
1904
|
-
object.totalVotingPower !== undefined && object.totalVotingPower !== null
|
|
1905
|
-
? BigInt(object.totalVotingPower.toString())
|
|
1906
|
-
: BigInt(0);
|
|
1907
|
-
return message;
|
|
1908
|
-
},
|
|
1909
|
-
fromProtoMsg(message) {
|
|
1910
|
-
return Evidence.decode(message.value);
|
|
1911
|
-
},
|
|
1912
|
-
toProto(message) {
|
|
1913
|
-
return Evidence.encode(message).finish();
|
|
1914
|
-
},
|
|
1915
|
-
toProtoMsg(message) {
|
|
1916
|
-
return {
|
|
1917
|
-
typeUrl: '/tendermint.abci.Evidence',
|
|
1918
|
-
value: Evidence.encode(message).finish(),
|
|
1919
|
-
};
|
|
1920
|
-
},
|
|
1921
|
-
};
|
|
1922
|
-
//# sourceMappingURL=types.js.map
|
|
1
|
+
import{Header as e}from"../types/types.js";import{ProofOps as t}from"../crypto/proof.js";import{ConsensusParams as o}from"../types/params.js";import{PublicKey as n}from"../crypto/keys.js";import{Timestamp as i}from"../../google/protobuf/timestamp.js";import{BinaryReader as r,BinaryWriter as a}from"../../binary.js";import{isSet as s,bytesFromBase64 as d,base64FromBytes as c,fromJsonTimestamp as l,fromTimestamp as u}from"../../helpers.js";import{}from"../../json-safe.js";export var CheckTxType;!function(e){e[e.NEW=0]="NEW",e[e.RECHECK=1]="RECHECK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(CheckTxType||(CheckTxType={}));export const CheckTxTypeSDKType=CheckTxType;export function checkTxTypeFromJSON(e){switch(e){case 0:case"NEW":return CheckTxType.NEW;case 1:case"RECHECK":return CheckTxType.RECHECK;default:return CheckTxType.UNRECOGNIZED}}export function checkTxTypeToJSON(e){switch(e){case CheckTxType.NEW:return"NEW";case CheckTxType.RECHECK:return"RECHECK";case CheckTxType.UNRECOGNIZED:default:return"UNRECOGNIZED"}}export var EvidenceType;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",e[e.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(EvidenceType||(EvidenceType={}));export const EvidenceTypeSDKType=EvidenceType;export function evidenceTypeFromJSON(e){switch(e){case 0:case"UNKNOWN":return EvidenceType.UNKNOWN;case 1:case"DUPLICATE_VOTE":return EvidenceType.DUPLICATE_VOTE;case 2:case"LIGHT_CLIENT_ATTACK":return EvidenceType.LIGHT_CLIENT_ATTACK;default:return EvidenceType.UNRECOGNIZED}}export function evidenceTypeToJSON(e){switch(e){case EvidenceType.UNKNOWN:return"UNKNOWN";case EvidenceType.DUPLICATE_VOTE:return"DUPLICATE_VOTE";case EvidenceType.LIGHT_CLIENT_ATTACK:return"LIGHT_CLIENT_ATTACK";case EvidenceType.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(){return{data:new Uint8Array,path:"",height:BigInt(0),prove:!1}}export const RequestQuery={typeUrl:"/tendermint.abci.RequestQuery",encode:(e,t=a.create())=>(0!==e.data.length&&t.uint32(10).bytes(e.data),""!==e.path&&t.uint32(18).string(e.path),e.height!==BigInt(0)&&t.uint32(24).int64(e.height),!0===e.prove&&t.uint32(32).bool(e.prove),t),decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i=p();for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:i.data=o.bytes();break;case 2:i.path=o.string();break;case 3:i.height=o.int64();break;case 4:i.prove=o.bool();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({data:s(e.data)?d(e.data):new Uint8Array,path:s(e.path)?String(e.path):"",height:s(e.height)?BigInt(e.height.toString()):BigInt(0),prove:!!s(e.prove)&&Boolean(e.prove)}),toJSON(e){const t={};return void 0!==e.data&&(t.data=c(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.path&&(t.path=e.path),void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.prove&&(t.prove=e.prove),t},fromPartial(e){const t=p();return t.data=e.data??new Uint8Array,t.path=e.path??"",t.height=void 0!==e.height&&null!==e.height?BigInt(e.height.toString()):BigInt(0),t.prove=e.prove??!1,t},fromProtoMsg:e=>RequestQuery.decode(e.value),toProto:e=>RequestQuery.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestQuery",value:RequestQuery.encode(e).finish()})};function g(){return{hash:new Uint8Array,header:e.fromPartial({}),lastCommitInfo:LastCommitInfo.fromPartial({}),byzantineValidators:[]}}export const RequestBeginBlock={typeUrl:"/tendermint.abci.RequestBeginBlock",encode(t,o=a.create()){0!==t.hash.length&&o.uint32(10).bytes(t.hash),void 0!==t.header&&e.encode(t.header,o.uint32(18).fork()).ldelim(),void 0!==t.lastCommitInfo&&LastCommitInfo.encode(t.lastCommitInfo,o.uint32(26).fork()).ldelim();for(const e of t.byzantineValidators)Evidence.encode(e,o.uint32(34).fork()).ldelim();return o},decode(t,o){const n=t instanceof r?t:new r(t);let i=void 0===o?n.len:n.pos+o;const a=g();for(;n.pos<i;){const t=n.uint32();switch(t>>>3){case 1:a.hash=n.bytes();break;case 2:a.header=e.decode(n,n.uint32());break;case 3:a.lastCommitInfo=LastCommitInfo.decode(n,n.uint32());break;case 4:a.byzantineValidators.push(Evidence.decode(n,n.uint32()));break;default:n.skipType(7&t)}}return a},fromJSON:t=>({hash:s(t.hash)?d(t.hash):new Uint8Array,header:s(t.header)?e.fromJSON(t.header):void 0,lastCommitInfo:s(t.lastCommitInfo)?LastCommitInfo.fromJSON(t.lastCommitInfo):void 0,byzantineValidators:Array.isArray(t?.byzantineValidators)?t.byzantineValidators.map((e=>Evidence.fromJSON(e))):[]}),toJSON(t){const o={};return void 0!==t.hash&&(o.hash=c(void 0!==t.hash?t.hash:new Uint8Array)),void 0!==t.header&&(o.header=t.header?e.toJSON(t.header):void 0),void 0!==t.lastCommitInfo&&(o.lastCommitInfo=t.lastCommitInfo?LastCommitInfo.toJSON(t.lastCommitInfo):void 0),t.byzantineValidators?o.byzantineValidators=t.byzantineValidators.map((e=>e?Evidence.toJSON(e):void 0)):o.byzantineValidators=[],o},fromPartial(t){const o=g();return o.hash=t.hash??new Uint8Array,o.header=void 0!==t.header&&null!==t.header?e.fromPartial(t.header):void 0,o.lastCommitInfo=void 0!==t.lastCommitInfo&&null!==t.lastCommitInfo?LastCommitInfo.fromPartial(t.lastCommitInfo):void 0,o.byzantineValidators=t.byzantineValidators?.map((e=>Evidence.fromPartial(e)))||[],o},fromProtoMsg:e=>RequestBeginBlock.decode(e.value),toProto:e=>RequestBeginBlock.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestBeginBlock",value:RequestBeginBlock.encode(e).finish()})};function v(){return{tx:new Uint8Array,type:0}}export const RequestCheckTx={typeUrl:"/tendermint.abci.RequestCheckTx",encode:(e,t=a.create())=>(0!==e.tx.length&&t.uint32(10).bytes(e.tx),0!==e.type&&t.uint32(16).int32(e.type),t),decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i=v();for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:i.tx=o.bytes();break;case 2:i.type=o.int32();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({tx:s(e.tx)?d(e.tx):new Uint8Array,type:s(e.type)?checkTxTypeFromJSON(e.type):-1}),toJSON(e){const t={};return void 0!==e.tx&&(t.tx=c(void 0!==e.tx?e.tx:new Uint8Array)),void 0!==e.type&&(t.type=checkTxTypeToJSON(e.type)),t},fromPartial(e){const t=v();return t.tx=e.tx??new Uint8Array,t.type=e.type??0,t},fromProtoMsg:e=>RequestCheckTx.decode(e.value),toProto:e=>RequestCheckTx.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestCheckTx",value:RequestCheckTx.encode(e).finish()})};function f(){return{tx:new Uint8Array}}export const RequestDeliverTx={typeUrl:"/tendermint.abci.RequestDeliverTx",encode:(e,t=a.create())=>(0!==e.tx.length&&t.uint32(10).bytes(e.tx),t),decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i=f();for(;o.pos<n;){const e=o.uint32();if(e>>>3==1)i.tx=o.bytes();else o.skipType(7&e)}return i},fromJSON:e=>({tx:s(e.tx)?d(e.tx):new Uint8Array}),toJSON(e){const t={};return void 0!==e.tx&&(t.tx=c(void 0!==e.tx?e.tx:new Uint8Array)),t},fromPartial(e){const t=f();return t.tx=e.tx??new Uint8Array,t},fromProtoMsg:e=>RequestDeliverTx.decode(e.value),toProto:e=>RequestDeliverTx.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestDeliverTx",value:RequestDeliverTx.encode(e).finish()})};function h(){return{height:BigInt(0)}}export const RequestEndBlock={typeUrl:"/tendermint.abci.RequestEndBlock",encode:(e,t=a.create())=>(e.height!==BigInt(0)&&t.uint32(8).int64(e.height),t),decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i=h();for(;o.pos<n;){const e=o.uint32();if(e>>>3==1)i.height=o.int64();else o.skipType(7&e)}return i},fromJSON:e=>({height:s(e.height)?BigInt(e.height.toString()):BigInt(0)}),toJSON(e){const t={};return void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),t},fromPartial(e){const t=h();return t.height=void 0!==e.height&&null!==e.height?BigInt(e.height.toString()):BigInt(0),t},fromProtoMsg:e=>RequestEndBlock.decode(e.value),toProto:e=>RequestEndBlock.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestEndBlock",value:RequestEndBlock.encode(e).finish()})};export const RequestCommit={typeUrl:"/tendermint.abci.RequestCommit",encode:(e,t=a.create())=>t,decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i={};for(;o.pos<n;){const e=o.uint32();o.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>RequestCommit.decode(e.value),toProto:e=>RequestCommit.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.RequestCommit",value:RequestCommit.encode(e).finish()})};function m(){return{code:0,log:"",info:"",index:BigInt(0),key:new Uint8Array,value:new Uint8Array,proofOps:void 0,height:BigInt(0),codespace:""}}export const ResponseQuery={typeUrl:"/tendermint.abci.ResponseQuery",encode:(e,o=a.create())=>(0!==e.code&&o.uint32(8).uint32(e.code),""!==e.log&&o.uint32(26).string(e.log),""!==e.info&&o.uint32(34).string(e.info),e.index!==BigInt(0)&&o.uint32(40).int64(e.index),0!==e.key.length&&o.uint32(50).bytes(e.key),0!==e.value.length&&o.uint32(58).bytes(e.value),void 0!==e.proofOps&&t.encode(e.proofOps,o.uint32(66).fork()).ldelim(),e.height!==BigInt(0)&&o.uint32(72).int64(e.height),""!==e.codespace&&o.uint32(82).string(e.codespace),o),decode(e,o){const n=e instanceof r?e:new r(e);let i=void 0===o?n.len:n.pos+o;const a=m();for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:a.code=n.uint32();break;case 3:a.log=n.string();break;case 4:a.info=n.string();break;case 5:a.index=n.int64();break;case 6:a.key=n.bytes();break;case 7:a.value=n.bytes();break;case 8:a.proofOps=t.decode(n,n.uint32());break;case 9:a.height=n.int64();break;case 10:a.codespace=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({code:s(e.code)?Number(e.code):0,log:s(e.log)?String(e.log):"",info:s(e.info)?String(e.info):"",index:s(e.index)?BigInt(e.index.toString()):BigInt(0),key:s(e.key)?d(e.key):new Uint8Array,value:s(e.value)?d(e.value):new Uint8Array,proofOps:s(e.proofOps)?t.fromJSON(e.proofOps):void 0,height:s(e.height)?BigInt(e.height.toString()):BigInt(0),codespace:s(e.codespace)?String(e.codespace):""}),toJSON(e){const o={};return void 0!==e.code&&(o.code=Math.round(e.code)),void 0!==e.log&&(o.log=e.log),void 0!==e.info&&(o.info=e.info),void 0!==e.index&&(o.index=(e.index||BigInt(0)).toString()),void 0!==e.key&&(o.key=c(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(o.value=c(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.proofOps&&(o.proofOps=e.proofOps?t.toJSON(e.proofOps):void 0),void 0!==e.height&&(o.height=(e.height||BigInt(0)).toString()),void 0!==e.codespace&&(o.codespace=e.codespace),o},fromPartial(e){const o=m();return o.code=e.code??0,o.log=e.log??"",o.info=e.info??"",o.index=void 0!==e.index&&null!==e.index?BigInt(e.index.toString()):BigInt(0),o.key=e.key??new Uint8Array,o.value=e.value??new Uint8Array,o.proofOps=void 0!==e.proofOps&&null!==e.proofOps?t.fromPartial(e.proofOps):void 0,o.height=void 0!==e.height&&null!==e.height?BigInt(e.height.toString()):BigInt(0),o.codespace=e.codespace??"",o},fromProtoMsg:e=>ResponseQuery.decode(e.value),toProto:e=>ResponseQuery.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseQuery",value:ResponseQuery.encode(e).finish()})};export const ResponseBeginBlock={typeUrl:"/tendermint.abci.ResponseBeginBlock",encode(e,t=a.create()){for(const o of e.events)Event.encode(o,t.uint32(10).fork()).ldelim();return t},decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i={events:[]};for(;o.pos<n;){const e=o.uint32();if(e>>>3==1)i.events.push(Event.decode(o,o.uint32()));else o.skipType(7&e)}return i},fromJSON:e=>({events:Array.isArray(e?.events)?e.events.map((e=>Event.fromJSON(e))):[]}),toJSON(e){const t={};return e.events?t.events=e.events.map((e=>e?Event.toJSON(e):void 0)):t.events=[],t},fromPartial(e){const t={events:[]};return t.events=e.events?.map((e=>Event.fromPartial(e)))||[],t},fromProtoMsg:e=>ResponseBeginBlock.decode(e.value),toProto:e=>ResponseBeginBlock.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseBeginBlock",value:ResponseBeginBlock.encode(e).finish()})};function y(){return{code:0,data:new Uint8Array,log:"",info:"",gasWanted:BigInt(0),gasUsed:BigInt(0),events:[],codespace:""}}export const ResponseCheckTx={typeUrl:"/tendermint.abci.ResponseCheckTx",encode(e,t=a.create()){0!==e.code&&t.uint32(8).uint32(e.code),0!==e.data.length&&t.uint32(18).bytes(e.data),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),e.gasWanted!==BigInt(0)&&t.uint32(40).int64(e.gasWanted),e.gasUsed!==BigInt(0)&&t.uint32(48).int64(e.gasUsed);for(const o of e.events)Event.encode(o,t.uint32(58).fork()).ldelim();return""!==e.codespace&&t.uint32(66).string(e.codespace),t},decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i=y();for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:i.code=o.uint32();break;case 2:i.data=o.bytes();break;case 3:i.log=o.string();break;case 4:i.info=o.string();break;case 5:i.gasWanted=o.int64();break;case 6:i.gasUsed=o.int64();break;case 7:i.events.push(Event.decode(o,o.uint32()));break;case 8:i.codespace=o.string();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({code:s(e.code)?Number(e.code):0,data:s(e.data)?d(e.data):new Uint8Array,log:s(e.log)?String(e.log):"",info:s(e.info)?String(e.info):"",gasWanted:s(e.gas_wanted)?BigInt(e.gas_wanted.toString()):BigInt(0),gasUsed:s(e.gas_used)?BigInt(e.gas_used.toString()):BigInt(0),events:Array.isArray(e?.events)?e.events.map((e=>Event.fromJSON(e))):[],codespace:s(e.codespace)?String(e.codespace):""}),toJSON(e){const t={};return void 0!==e.code&&(t.code=Math.round(e.code)),void 0!==e.data&&(t.data=c(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),void 0!==e.gasWanted&&(t.gas_wanted=(e.gasWanted||BigInt(0)).toString()),void 0!==e.gasUsed&&(t.gas_used=(e.gasUsed||BigInt(0)).toString()),e.events?t.events=e.events.map((e=>e?Event.toJSON(e):void 0)):t.events=[],void 0!==e.codespace&&(t.codespace=e.codespace),t},fromPartial(e){const t=y();return t.code=e.code??0,t.data=e.data??new Uint8Array,t.log=e.log??"",t.info=e.info??"",t.gasWanted=void 0!==e.gasWanted&&null!==e.gasWanted?BigInt(e.gasWanted.toString()):BigInt(0),t.gasUsed=void 0!==e.gasUsed&&null!==e.gasUsed?BigInt(e.gasUsed.toString()):BigInt(0),t.events=e.events?.map((e=>Event.fromPartial(e)))||[],t.codespace=e.codespace??"",t},fromProtoMsg:e=>ResponseCheckTx.decode(e.value),toProto:e=>ResponseCheckTx.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseCheckTx",value:ResponseCheckTx.encode(e).finish()})};function b(){return{code:0,data:new Uint8Array,log:"",info:"",gasWanted:BigInt(0),gasUsed:BigInt(0),events:[],codespace:""}}export const ResponseDeliverTx={typeUrl:"/tendermint.abci.ResponseDeliverTx",encode(e,t=a.create()){0!==e.code&&t.uint32(8).uint32(e.code),0!==e.data.length&&t.uint32(18).bytes(e.data),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),e.gasWanted!==BigInt(0)&&t.uint32(40).int64(e.gasWanted),e.gasUsed!==BigInt(0)&&t.uint32(48).int64(e.gasUsed);for(const o of e.events)Event.encode(o,t.uint32(58).fork()).ldelim();return""!==e.codespace&&t.uint32(66).string(e.codespace),t},decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i=b();for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:i.code=o.uint32();break;case 2:i.data=o.bytes();break;case 3:i.log=o.string();break;case 4:i.info=o.string();break;case 5:i.gasWanted=o.int64();break;case 6:i.gasUsed=o.int64();break;case 7:i.events.push(Event.decode(o,o.uint32()));break;case 8:i.codespace=o.string();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({code:s(e.code)?Number(e.code):0,data:s(e.data)?d(e.data):new Uint8Array,log:s(e.log)?String(e.log):"",info:s(e.info)?String(e.info):"",gasWanted:s(e.gas_wanted)?BigInt(e.gas_wanted.toString()):BigInt(0),gasUsed:s(e.gas_used)?BigInt(e.gas_used.toString()):BigInt(0),events:Array.isArray(e?.events)?e.events.map((e=>Event.fromJSON(e))):[],codespace:s(e.codespace)?String(e.codespace):""}),toJSON(e){const t={};return void 0!==e.code&&(t.code=Math.round(e.code)),void 0!==e.data&&(t.data=c(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),void 0!==e.gasWanted&&(t.gas_wanted=(e.gasWanted||BigInt(0)).toString()),void 0!==e.gasUsed&&(t.gas_used=(e.gasUsed||BigInt(0)).toString()),e.events?t.events=e.events.map((e=>e?Event.toJSON(e):void 0)):t.events=[],void 0!==e.codespace&&(t.codespace=e.codespace),t},fromPartial(e){const t=b();return t.code=e.code??0,t.data=e.data??new Uint8Array,t.log=e.log??"",t.info=e.info??"",t.gasWanted=void 0!==e.gasWanted&&null!==e.gasWanted?BigInt(e.gasWanted.toString()):BigInt(0),t.gasUsed=void 0!==e.gasUsed&&null!==e.gasUsed?BigInt(e.gasUsed.toString()):BigInt(0),t.events=e.events?.map((e=>Event.fromPartial(e)))||[],t.codespace=e.codespace??"",t},fromProtoMsg:e=>ResponseDeliverTx.decode(e.value),toProto:e=>ResponseDeliverTx.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseDeliverTx",value:ResponseDeliverTx.encode(e).finish()})};export const ResponseEndBlock={typeUrl:"/tendermint.abci.ResponseEndBlock",encode(e,t=a.create()){for(const o of e.validatorUpdates)ValidatorUpdate.encode(o,t.uint32(10).fork()).ldelim();void 0!==e.consensusParamUpdates&&o.encode(e.consensusParamUpdates,t.uint32(18).fork()).ldelim();for(const o of e.events)Event.encode(o,t.uint32(26).fork()).ldelim();return t},decode(e,t){const n=e instanceof r?e:new r(e);let i=void 0===t?n.len:n.pos+t;const a={validatorUpdates:[],consensusParamUpdates:void 0,events:[]};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:a.validatorUpdates.push(ValidatorUpdate.decode(n,n.uint32()));break;case 2:a.consensusParamUpdates=o.decode(n,n.uint32());break;case 3:a.events.push(Event.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return a},fromJSON:e=>({validatorUpdates:Array.isArray(e?.validatorUpdates)?e.validatorUpdates.map((e=>ValidatorUpdate.fromJSON(e))):[],consensusParamUpdates:s(e.consensusParamUpdates)?o.fromJSON(e.consensusParamUpdates):void 0,events:Array.isArray(e?.events)?e.events.map((e=>Event.fromJSON(e))):[]}),toJSON(e){const t={};return e.validatorUpdates?t.validatorUpdates=e.validatorUpdates.map((e=>e?ValidatorUpdate.toJSON(e):void 0)):t.validatorUpdates=[],void 0!==e.consensusParamUpdates&&(t.consensusParamUpdates=e.consensusParamUpdates?o.toJSON(e.consensusParamUpdates):void 0),e.events?t.events=e.events.map((e=>e?Event.toJSON(e):void 0)):t.events=[],t},fromPartial(e){const t={validatorUpdates:[],consensusParamUpdates:void 0,events:[]};return t.validatorUpdates=e.validatorUpdates?.map((e=>ValidatorUpdate.fromPartial(e)))||[],t.consensusParamUpdates=void 0!==e.consensusParamUpdates&&null!==e.consensusParamUpdates?o.fromPartial(e.consensusParamUpdates):void 0,t.events=e.events?.map((e=>Event.fromPartial(e)))||[],t},fromProtoMsg:e=>ResponseEndBlock.decode(e.value),toProto:e=>ResponseEndBlock.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseEndBlock",value:ResponseEndBlock.encode(e).finish()})};function k(){return{data:new Uint8Array,retainHeight:BigInt(0)}}export const ResponseCommit={typeUrl:"/tendermint.abci.ResponseCommit",encode:(e,t=a.create())=>(0!==e.data.length&&t.uint32(18).bytes(e.data),e.retainHeight!==BigInt(0)&&t.uint32(24).int64(e.retainHeight),t),decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i=k();for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 2:i.data=o.bytes();break;case 3:i.retainHeight=o.int64();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({data:s(e.data)?d(e.data):new Uint8Array,retainHeight:s(e.retainHeight)?BigInt(e.retainHeight.toString()):BigInt(0)}),toJSON(e){const t={};return void 0!==e.data&&(t.data=c(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.retainHeight&&(t.retainHeight=(e.retainHeight||BigInt(0)).toString()),t},fromPartial(e){const t=k();return t.data=e.data??new Uint8Array,t.retainHeight=void 0!==e.retainHeight&&null!==e.retainHeight?BigInt(e.retainHeight.toString()):BigInt(0),t},fromProtoMsg:e=>ResponseCommit.decode(e.value),toProto:e=>ResponseCommit.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ResponseCommit",value:ResponseCommit.encode(e).finish()})};export const LastCommitInfo={typeUrl:"/tendermint.abci.LastCommitInfo",encode(e,t=a.create()){0!==e.round&&t.uint32(8).int32(e.round);for(const o of e.votes)VoteInfo.encode(o,t.uint32(18).fork()).ldelim();return t},decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i={round:0,votes:[]};for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:i.round=o.int32();break;case 2:i.votes.push(VoteInfo.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return i},fromJSON:e=>({round:s(e.round)?Number(e.round):0,votes:Array.isArray(e?.votes)?e.votes.map((e=>VoteInfo.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.round&&(t.round=Math.round(e.round)),e.votes?t.votes=e.votes.map((e=>e?VoteInfo.toJSON(e):void 0)):t.votes=[],t},fromPartial(e){const t={round:0,votes:[]};return t.round=e.round??0,t.votes=e.votes?.map((e=>VoteInfo.fromPartial(e)))||[],t},fromProtoMsg:e=>LastCommitInfo.decode(e.value),toProto:e=>LastCommitInfo.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.LastCommitInfo",value:LastCommitInfo.encode(e).finish()})};export const Event={typeUrl:"/tendermint.abci.Event",encode(e,t=a.create()){""!==e.type&&t.uint32(10).string(e.type);for(const o of e.attributes)EventAttribute.encode(o,t.uint32(18).fork()).ldelim();return t},decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i={type:"",attributes:[]};for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:i.type=o.string();break;case 2:i.attributes.push(EventAttribute.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return i},fromJSON:e=>({type:s(e.type)?String(e.type):"",attributes:Array.isArray(e?.attributes)?e.attributes.map((e=>EventAttribute.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.type&&(t.type=e.type),e.attributes?t.attributes=e.attributes.map((e=>e?EventAttribute.toJSON(e):void 0)):t.attributes=[],t},fromPartial(e){const t={type:"",attributes:[]};return t.type=e.type??"",t.attributes=e.attributes?.map((e=>EventAttribute.fromPartial(e)))||[],t},fromProtoMsg:e=>Event.decode(e.value),toProto:e=>Event.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.Event",value:Event.encode(e).finish()})};function U(){return{key:new Uint8Array,value:new Uint8Array,index:!1}}export const EventAttribute={typeUrl:"/tendermint.abci.EventAttribute",encode:(e,t=a.create())=>(0!==e.key.length&&t.uint32(10).bytes(e.key),0!==e.value.length&&t.uint32(18).bytes(e.value),!0===e.index&&t.uint32(24).bool(e.index),t),decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i=U();for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:i.key=o.bytes();break;case 2:i.value=o.bytes();break;case 3:i.index=o.bool();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({key:s(e.key)?d(e.key):new Uint8Array,value:s(e.value)?d(e.value):new Uint8Array,index:!!s(e.index)&&Boolean(e.index)}),toJSON(e){const t={};return void 0!==e.key&&(t.key=c(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(t.value=c(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.index&&(t.index=e.index),t},fromPartial(e){const t=U();return t.key=e.key??new Uint8Array,t.value=e.value??new Uint8Array,t.index=e.index??!1,t},fromProtoMsg:e=>EventAttribute.decode(e.value),toProto:e=>EventAttribute.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.EventAttribute",value:EventAttribute.encode(e).finish()})};function I(){return{height:BigInt(0),index:0,tx:new Uint8Array,result:ResponseDeliverTx.fromPartial({})}}export const TxResult={typeUrl:"/tendermint.abci.TxResult",encode:(e,t=a.create())=>(e.height!==BigInt(0)&&t.uint32(8).int64(e.height),0!==e.index&&t.uint32(16).uint32(e.index),0!==e.tx.length&&t.uint32(26).bytes(e.tx),void 0!==e.result&&ResponseDeliverTx.encode(e.result,t.uint32(34).fork()).ldelim(),t),decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i=I();for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:i.height=o.int64();break;case 2:i.index=o.uint32();break;case 3:i.tx=o.bytes();break;case 4:i.result=ResponseDeliverTx.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({height:s(e.height)?BigInt(e.height.toString()):BigInt(0),index:s(e.index)?Number(e.index):0,tx:s(e.tx)?d(e.tx):new Uint8Array,result:s(e.result)?ResponseDeliverTx.fromJSON(e.result):void 0}),toJSON(e){const t={};return void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.index&&(t.index=Math.round(e.index)),void 0!==e.tx&&(t.tx=c(void 0!==e.tx?e.tx:new Uint8Array)),void 0!==e.result&&(t.result=e.result?ResponseDeliverTx.toJSON(e.result):void 0),t},fromPartial(e){const t=I();return t.height=void 0!==e.height&&null!==e.height?BigInt(e.height.toString()):BigInt(0),t.index=e.index??0,t.tx=e.tx??new Uint8Array,t.result=void 0!==e.result&&null!==e.result?ResponseDeliverTx.fromPartial(e.result):void 0,t},fromProtoMsg:e=>TxResult.decode(e.value),toProto:e=>TxResult.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.TxResult",value:TxResult.encode(e).finish()})};function x(){return{address:new Uint8Array,power:BigInt(0)}}export const Validator={typeUrl:"/tendermint.abci.Validator",encode:(e,t=a.create())=>(0!==e.address.length&&t.uint32(10).bytes(e.address),e.power!==BigInt(0)&&t.uint32(24).int64(e.power),t),decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i=x();for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:i.address=o.bytes();break;case 3:i.power=o.int64();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({address:s(e.address)?d(e.address):new Uint8Array,power:s(e.power)?BigInt(e.power.toString()):BigInt(0)}),toJSON(e){const t={};return void 0!==e.address&&(t.address=c(void 0!==e.address?e.address:new Uint8Array)),void 0!==e.power&&(t.power=(e.power||BigInt(0)).toString()),t},fromPartial(e){const t=x();return t.address=e.address??new Uint8Array,t.power=void 0!==e.power&&null!==e.power?BigInt(e.power.toString()):BigInt(0),t},fromProtoMsg:e=>Validator.decode(e.value),toProto:e=>Validator.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.Validator",value:Validator.encode(e).finish()})};function B(){return{pubKey:n.fromPartial({}),power:BigInt(0)}}export const ValidatorUpdate={typeUrl:"/tendermint.abci.ValidatorUpdate",encode:(e,t=a.create())=>(void 0!==e.pubKey&&n.encode(e.pubKey,t.uint32(10).fork()).ldelim(),e.power!==BigInt(0)&&t.uint32(16).int64(e.power),t),decode(e,t){const o=e instanceof r?e:new r(e);let i=void 0===t?o.len:o.pos+t;const a=B();for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.pubKey=n.decode(o,o.uint32());break;case 2:a.power=o.int64();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({pubKey:s(e.pubKey)?n.fromJSON(e.pubKey):void 0,power:s(e.power)?BigInt(e.power.toString()):BigInt(0)}),toJSON(e){const t={};return void 0!==e.pubKey&&(t.pubKey=e.pubKey?n.toJSON(e.pubKey):void 0),void 0!==e.power&&(t.power=(e.power||BigInt(0)).toString()),t},fromPartial(e){const t=B();return t.pubKey=void 0!==e.pubKey&&null!==e.pubKey?n.fromPartial(e.pubKey):void 0,t.power=void 0!==e.power&&null!==e.power?BigInt(e.power.toString()):BigInt(0),t},fromProtoMsg:e=>ValidatorUpdate.decode(e.value),toProto:e=>ValidatorUpdate.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.ValidatorUpdate",value:ValidatorUpdate.encode(e).finish()})};function T(){return{validator:Validator.fromPartial({}),signedLastBlock:!1}}export const VoteInfo={typeUrl:"/tendermint.abci.VoteInfo",encode:(e,t=a.create())=>(void 0!==e.validator&&Validator.encode(e.validator,t.uint32(10).fork()).ldelim(),!0===e.signedLastBlock&&t.uint32(16).bool(e.signedLastBlock),t),decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const i=T();for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:i.validator=Validator.decode(o,o.uint32());break;case 2:i.signedLastBlock=o.bool();break;default:o.skipType(7&e)}}return i},fromJSON:e=>({validator:s(e.validator)?Validator.fromJSON(e.validator):void 0,signedLastBlock:!!s(e.signedLastBlock)&&Boolean(e.signedLastBlock)}),toJSON(e){const t={};return void 0!==e.validator&&(t.validator=e.validator?Validator.toJSON(e.validator):void 0),void 0!==e.signedLastBlock&&(t.signedLastBlock=e.signedLastBlock),t},fromPartial(e){const t=T();return t.validator=void 0!==e.validator&&null!==e.validator?Validator.fromPartial(e.validator):void 0,t.signedLastBlock=e.signedLastBlock??!1,t},fromProtoMsg:e=>VoteInfo.decode(e.value),toProto:e=>VoteInfo.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.VoteInfo",value:VoteInfo.encode(e).finish()})};function w(){return{type:0,validator:Validator.fromPartial({}),height:BigInt(0),time:i.fromPartial({}),totalVotingPower:BigInt(0)}}export const Evidence={typeUrl:"/tendermint.abci.Evidence",encode:(e,t=a.create())=>(0!==e.type&&t.uint32(8).int32(e.type),void 0!==e.validator&&Validator.encode(e.validator,t.uint32(18).fork()).ldelim(),e.height!==BigInt(0)&&t.uint32(24).int64(e.height),void 0!==e.time&&i.encode(e.time,t.uint32(34).fork()).ldelim(),e.totalVotingPower!==BigInt(0)&&t.uint32(40).int64(e.totalVotingPower),t),decode(e,t){const o=e instanceof r?e:new r(e);let n=void 0===t?o.len:o.pos+t;const a=w();for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:a.type=o.int32();break;case 2:a.validator=Validator.decode(o,o.uint32());break;case 3:a.height=o.int64();break;case 4:a.time=i.decode(o,o.uint32());break;case 5:a.totalVotingPower=o.int64();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({type:s(e.type)?evidenceTypeFromJSON(e.type):-1,validator:s(e.validator)?Validator.fromJSON(e.validator):void 0,height:s(e.height)?BigInt(e.height.toString()):BigInt(0),time:s(e.time)?l(e.time):void 0,totalVotingPower:s(e.totalVotingPower)?BigInt(e.totalVotingPower.toString()):BigInt(0)}),toJSON(e){const t={};return void 0!==e.type&&(t.type=evidenceTypeToJSON(e.type)),void 0!==e.validator&&(t.validator=e.validator?Validator.toJSON(e.validator):void 0),void 0!==e.height&&(t.height=(e.height||BigInt(0)).toString()),void 0!==e.time&&(t.time=u(e.time).toISOString()),void 0!==e.totalVotingPower&&(t.totalVotingPower=(e.totalVotingPower||BigInt(0)).toString()),t},fromPartial(e){const t=w();return t.type=e.type??0,t.validator=void 0!==e.validator&&null!==e.validator?Validator.fromPartial(e.validator):void 0,t.height=void 0!==e.height&&null!==e.height?BigInt(e.height.toString()):BigInt(0),t.time=void 0!==e.time&&null!==e.time?i.fromPartial(e.time):void 0,t.totalVotingPower=void 0!==e.totalVotingPower&&null!==e.totalVotingPower?BigInt(e.totalVotingPower.toString()):BigInt(0),t},fromProtoMsg:e=>Evidence.decode(e.value),toProto:e=>Evidence.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/tendermint.abci.Evidence",value:Evidence.encode(e).finish()})};
|