@burnt-labs/xion-types 16.0.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/README.md +111 -0
- package/package.json +26 -0
- package/types/.gitkeep +0 -0
- package/types/generated/amino/amino.ts +9 -0
- package/types/generated/cosmos/app/v1alpha1/config.ts +336 -0
- package/types/generated/cosmos/app/v1alpha1/query.ts +265 -0
- package/types/generated/cosmos/auth/v1beta1/auth.ts +520 -0
- package/types/generated/cosmos/auth/v1beta1/query.ts +1852 -0
- package/types/generated/cosmos/authz/v1beta1/authz.ts +404 -0
- package/types/generated/cosmos/authz/v1beta1/query.ts +774 -0
- package/types/generated/cosmos/autocli/v1/options.ts +1016 -0
- package/types/generated/cosmos/autocli/v1/query.ts +379 -0
- package/types/generated/cosmos/bank/v1beta1/bank.ts +752 -0
- package/types/generated/cosmos/bank/v1beta1/query.ts +2789 -0
- package/types/generated/cosmos/base/abci/v1beta1/abci.ts +1447 -0
- package/types/generated/cosmos/base/node/v1beta1/query.ts +587 -0
- package/types/generated/cosmos/base/query/v1beta1/pagination.ts +317 -0
- package/types/generated/cosmos/base/tendermint/v1beta1/query.ts +2228 -0
- package/types/generated/cosmos/base/tendermint/v1beta1/types.ts +522 -0
- package/types/generated/cosmos/base/v1beta1/coin.ts +326 -0
- package/types/generated/cosmos/circuit/v1/query.ts +606 -0
- package/types/generated/cosmos/circuit/v1/types.ts +353 -0
- package/types/generated/cosmos/consensus/v1/query.ts +271 -0
- package/types/generated/cosmos/crypto/multisig/v1beta1/multisig.ts +212 -0
- package/types/generated/cosmos/distribution/v1beta1/distribution.ts +1143 -0
- package/types/generated/cosmos/distribution/v1beta1/query.ts +2005 -0
- package/types/generated/cosmos/evidence/v1beta1/query.ts +526 -0
- package/types/generated/cosmos/feegrant/v1beta1/feegrant.ts +502 -0
- package/types/generated/cosmos/feegrant/v1beta1/query.ts +725 -0
- package/types/generated/cosmos/gov/v1/gov.ts +1656 -0
- package/types/generated/cosmos/gov/v1/query.ts +1847 -0
- package/types/generated/cosmos/gov/v1beta1/gov.ts +1239 -0
- package/types/generated/cosmos/gov/v1beta1/query.ts +1658 -0
- package/types/generated/cosmos/group/v1/query.ts +2840 -0
- package/types/generated/cosmos/group/v1/types.ts +1803 -0
- package/types/generated/cosmos/ics23/v1/proofs.ts +1685 -0
- package/types/generated/cosmos/mint/v1beta1/mint.ts +273 -0
- package/types/generated/cosmos/mint/v1beta1/query.ts +589 -0
- package/types/generated/cosmos/msg/v1/msg.ts +9 -0
- package/types/generated/cosmos/nft/v1beta1/nft.ts +333 -0
- package/types/generated/cosmos/nft/v1beta1/query.ts +1362 -0
- package/types/generated/cosmos/orm/query/v1alpha1/query.ts +1016 -0
- package/types/generated/cosmos/params/v1beta1/params.ts +227 -0
- package/types/generated/cosmos/params/v1beta1/query.ts +545 -0
- package/types/generated/cosmos/query/v1/query.ts +9 -0
- package/types/generated/cosmos/slashing/v1beta1/query.ts +626 -0
- package/types/generated/cosmos/slashing/v1beta1/slashing.ts +409 -0
- package/types/generated/cosmos/staking/v1beta1/query.ts +2912 -0
- package/types/generated/cosmos/staking/v1beta1/staking.ts +2515 -0
- package/types/generated/cosmos/tx/signing/v1beta1/signing.ts +608 -0
- package/types/generated/cosmos/tx/v1beta1/service.ts +2111 -0
- package/types/generated/cosmos/tx/v1beta1/tx.ts +1613 -0
- package/types/generated/cosmos/upgrade/v1beta1/query.ts +1007 -0
- package/types/generated/cosmos/upgrade/v1beta1/upgrade.ts +507 -0
- package/types/generated/cosmos_proto/cosmos.ts +299 -0
- package/types/generated/cosmwasm/wasm/v1/query.ts +2984 -0
- package/types/generated/cosmwasm/wasm/v1/types.ts +962 -0
- package/types/generated/gogoproto/gogo.ts +9 -0
- package/types/generated/google/api/annotations.ts +9 -0
- package/types/generated/google/api/http.ts +757 -0
- package/types/generated/google/protobuf/any.ts +253 -0
- package/types/generated/google/protobuf/descriptor.ts +4958 -0
- package/types/generated/google/protobuf/duration.ts +186 -0
- package/types/generated/google/protobuf/timestamp.ts +215 -0
- package/types/generated/ibc/applications/fee/v1/fee.ts +391 -0
- package/types/generated/ibc/applications/fee/v1/genesis.ts +553 -0
- package/types/generated/ibc/applications/fee/v1/query.ts +2056 -0
- package/types/generated/ibc/applications/interchain_accounts/controller/v1/controller.ts +100 -0
- package/types/generated/ibc/applications/interchain_accounts/controller/v1/query.ts +447 -0
- package/types/generated/ibc/applications/interchain_accounts/host/v1/host.ts +235 -0
- package/types/generated/ibc/applications/interchain_accounts/host/v1/query.ts +265 -0
- package/types/generated/ibc/applications/transfer/v1/query.ts +1135 -0
- package/types/generated/ibc/applications/transfer/v1/transfer.ts +213 -0
- package/types/generated/ibc/core/channel/v1/channel.ts +1329 -0
- package/types/generated/ibc/core/channel/v1/query.ts +4214 -0
- package/types/generated/ibc/core/channel/v1/upgrade.ts +330 -0
- package/types/generated/ibc/core/client/v1/client.ts +726 -0
- package/types/generated/ibc/core/client/v1/query.ts +2208 -0
- package/types/generated/ibc/core/commitment/v1/commitment.ts +329 -0
- package/types/generated/ibc/core/connection/v1/connection.ts +813 -0
- package/types/generated/ibc/core/connection/v1/query.ts +1442 -0
- package/types/generated/ibc/lightclients/wasm/v1/query.ts +484 -0
- package/types/generated/tendermint/abci/types.ts +6429 -0
- package/types/generated/tendermint/crypto/keys.ts +137 -0
- package/types/generated/tendermint/crypto/proof.ts +506 -0
- package/types/generated/tendermint/p2p/types.ts +514 -0
- package/types/generated/tendermint/types/block.ts +151 -0
- package/types/generated/tendermint/types/evidence.ts +493 -0
- package/types/generated/tendermint/types/params.ts +687 -0
- package/types/generated/tendermint/types/types.ts +2069 -0
- package/types/generated/tendermint/types/validator.ts +409 -0
- package/types/generated/tendermint/version/types.ts +202 -0
- package/types/generated/xion/globalfee/v1/genesis.ts +219 -0
- package/types/generated/xion/globalfee/v1/query.ts +269 -0
- package/types/generated/xion/jwk/v1/audience.ts +188 -0
- package/types/generated/xion/jwk/v1/params.ts +118 -0
- package/types/generated/xion/jwk/v1/query.ts +1061 -0
- package/types/generated/xion/mint/v1/mint.ts +273 -0
- package/types/generated/xion/mint/v1/query.ts +589 -0
- package/types/generated/xion/v1/query.ts +878 -0
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v1.181.2
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: tendermint/types/validator.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import Long from "long";
|
|
9
|
+
import _m0 from "protobufjs/minimal";
|
|
10
|
+
import { PublicKey } from "../crypto/keys";
|
|
11
|
+
|
|
12
|
+
export const protobufPackage = "tendermint.types";
|
|
13
|
+
|
|
14
|
+
/** BlockIdFlag indicates which BlockID the signature is for */
|
|
15
|
+
export enum BlockIDFlag {
|
|
16
|
+
/** BLOCK_ID_FLAG_UNKNOWN - indicates an error condition */
|
|
17
|
+
BLOCK_ID_FLAG_UNKNOWN = 0,
|
|
18
|
+
/** BLOCK_ID_FLAG_ABSENT - the vote was not received */
|
|
19
|
+
BLOCK_ID_FLAG_ABSENT = 1,
|
|
20
|
+
/** BLOCK_ID_FLAG_COMMIT - voted for the block that received the majority */
|
|
21
|
+
BLOCK_ID_FLAG_COMMIT = 2,
|
|
22
|
+
/** BLOCK_ID_FLAG_NIL - voted for nil */
|
|
23
|
+
BLOCK_ID_FLAG_NIL = 3,
|
|
24
|
+
UNRECOGNIZED = -1,
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function blockIDFlagFromJSON(object: any): BlockIDFlag {
|
|
28
|
+
switch (object) {
|
|
29
|
+
case 0:
|
|
30
|
+
case "BLOCK_ID_FLAG_UNKNOWN":
|
|
31
|
+
return BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN;
|
|
32
|
+
case 1:
|
|
33
|
+
case "BLOCK_ID_FLAG_ABSENT":
|
|
34
|
+
return BlockIDFlag.BLOCK_ID_FLAG_ABSENT;
|
|
35
|
+
case 2:
|
|
36
|
+
case "BLOCK_ID_FLAG_COMMIT":
|
|
37
|
+
return BlockIDFlag.BLOCK_ID_FLAG_COMMIT;
|
|
38
|
+
case 3:
|
|
39
|
+
case "BLOCK_ID_FLAG_NIL":
|
|
40
|
+
return BlockIDFlag.BLOCK_ID_FLAG_NIL;
|
|
41
|
+
case -1:
|
|
42
|
+
case "UNRECOGNIZED":
|
|
43
|
+
default:
|
|
44
|
+
return BlockIDFlag.UNRECOGNIZED;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function blockIDFlagToJSON(object: BlockIDFlag): string {
|
|
49
|
+
switch (object) {
|
|
50
|
+
case BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN:
|
|
51
|
+
return "BLOCK_ID_FLAG_UNKNOWN";
|
|
52
|
+
case BlockIDFlag.BLOCK_ID_FLAG_ABSENT:
|
|
53
|
+
return "BLOCK_ID_FLAG_ABSENT";
|
|
54
|
+
case BlockIDFlag.BLOCK_ID_FLAG_COMMIT:
|
|
55
|
+
return "BLOCK_ID_FLAG_COMMIT";
|
|
56
|
+
case BlockIDFlag.BLOCK_ID_FLAG_NIL:
|
|
57
|
+
return "BLOCK_ID_FLAG_NIL";
|
|
58
|
+
case BlockIDFlag.UNRECOGNIZED:
|
|
59
|
+
default:
|
|
60
|
+
return "UNRECOGNIZED";
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface ValidatorSet {
|
|
65
|
+
validators: Validator[];
|
|
66
|
+
proposer?: Validator | undefined;
|
|
67
|
+
totalVotingPower: Long;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface Validator {
|
|
71
|
+
address: Uint8Array;
|
|
72
|
+
pubKey?: PublicKey | undefined;
|
|
73
|
+
votingPower: Long;
|
|
74
|
+
proposerPriority: Long;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface SimpleValidator {
|
|
78
|
+
pubKey?: PublicKey | undefined;
|
|
79
|
+
votingPower: Long;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function createBaseValidatorSet(): ValidatorSet {
|
|
83
|
+
return { validators: [], proposer: undefined, totalVotingPower: Long.ZERO };
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export const ValidatorSet = {
|
|
87
|
+
encode(message: ValidatorSet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
88
|
+
for (const v of message.validators) {
|
|
89
|
+
Validator.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
90
|
+
}
|
|
91
|
+
if (message.proposer !== undefined) {
|
|
92
|
+
Validator.encode(message.proposer, writer.uint32(18).fork()).ldelim();
|
|
93
|
+
}
|
|
94
|
+
if (!message.totalVotingPower.equals(Long.ZERO)) {
|
|
95
|
+
writer.uint32(24).int64(message.totalVotingPower);
|
|
96
|
+
}
|
|
97
|
+
return writer;
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSet {
|
|
101
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
102
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
103
|
+
const message = createBaseValidatorSet();
|
|
104
|
+
while (reader.pos < end) {
|
|
105
|
+
const tag = reader.uint32();
|
|
106
|
+
switch (tag >>> 3) {
|
|
107
|
+
case 1:
|
|
108
|
+
if (tag !== 10) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
message.validators.push(Validator.decode(reader, reader.uint32()));
|
|
113
|
+
continue;
|
|
114
|
+
case 2:
|
|
115
|
+
if (tag !== 18) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message.proposer = Validator.decode(reader, reader.uint32());
|
|
120
|
+
continue;
|
|
121
|
+
case 3:
|
|
122
|
+
if (tag !== 24) {
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
message.totalVotingPower = reader.int64() as Long;
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
reader.skipType(tag & 7);
|
|
133
|
+
}
|
|
134
|
+
return message;
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
fromJSON(object: any): ValidatorSet {
|
|
138
|
+
return {
|
|
139
|
+
validators: globalThis.Array.isArray(object?.validators)
|
|
140
|
+
? object.validators.map((e: any) => Validator.fromJSON(e))
|
|
141
|
+
: [],
|
|
142
|
+
proposer: isSet(object.proposer) ? Validator.fromJSON(object.proposer) : undefined,
|
|
143
|
+
totalVotingPower: isSet(object.totalVotingPower) ? Long.fromValue(object.totalVotingPower) : Long.ZERO,
|
|
144
|
+
};
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
toJSON(message: ValidatorSet): unknown {
|
|
148
|
+
const obj: any = {};
|
|
149
|
+
if (message.validators?.length) {
|
|
150
|
+
obj.validators = message.validators.map((e) => Validator.toJSON(e));
|
|
151
|
+
}
|
|
152
|
+
if (message.proposer !== undefined) {
|
|
153
|
+
obj.proposer = Validator.toJSON(message.proposer);
|
|
154
|
+
}
|
|
155
|
+
if (!message.totalVotingPower.equals(Long.ZERO)) {
|
|
156
|
+
obj.totalVotingPower = (message.totalVotingPower || Long.ZERO).toString();
|
|
157
|
+
}
|
|
158
|
+
return obj;
|
|
159
|
+
},
|
|
160
|
+
|
|
161
|
+
create<I extends Exact<DeepPartial<ValidatorSet>, I>>(base?: I): ValidatorSet {
|
|
162
|
+
return ValidatorSet.fromPartial(base ?? ({} as any));
|
|
163
|
+
},
|
|
164
|
+
fromPartial<I extends Exact<DeepPartial<ValidatorSet>, I>>(object: I): ValidatorSet {
|
|
165
|
+
const message = createBaseValidatorSet();
|
|
166
|
+
message.validators = object.validators?.map((e) => Validator.fromPartial(e)) || [];
|
|
167
|
+
message.proposer = (object.proposer !== undefined && object.proposer !== null)
|
|
168
|
+
? Validator.fromPartial(object.proposer)
|
|
169
|
+
: undefined;
|
|
170
|
+
message.totalVotingPower = (object.totalVotingPower !== undefined && object.totalVotingPower !== null)
|
|
171
|
+
? Long.fromValue(object.totalVotingPower)
|
|
172
|
+
: Long.ZERO;
|
|
173
|
+
return message;
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
function createBaseValidator(): Validator {
|
|
178
|
+
return { address: new Uint8Array(0), pubKey: undefined, votingPower: Long.ZERO, proposerPriority: Long.ZERO };
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export const Validator = {
|
|
182
|
+
encode(message: Validator, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
183
|
+
if (message.address.length !== 0) {
|
|
184
|
+
writer.uint32(10).bytes(message.address);
|
|
185
|
+
}
|
|
186
|
+
if (message.pubKey !== undefined) {
|
|
187
|
+
PublicKey.encode(message.pubKey, writer.uint32(18).fork()).ldelim();
|
|
188
|
+
}
|
|
189
|
+
if (!message.votingPower.equals(Long.ZERO)) {
|
|
190
|
+
writer.uint32(24).int64(message.votingPower);
|
|
191
|
+
}
|
|
192
|
+
if (!message.proposerPriority.equals(Long.ZERO)) {
|
|
193
|
+
writer.uint32(32).int64(message.proposerPriority);
|
|
194
|
+
}
|
|
195
|
+
return writer;
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Validator {
|
|
199
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
200
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
201
|
+
const message = createBaseValidator();
|
|
202
|
+
while (reader.pos < end) {
|
|
203
|
+
const tag = reader.uint32();
|
|
204
|
+
switch (tag >>> 3) {
|
|
205
|
+
case 1:
|
|
206
|
+
if (tag !== 10) {
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
message.address = reader.bytes();
|
|
211
|
+
continue;
|
|
212
|
+
case 2:
|
|
213
|
+
if (tag !== 18) {
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
message.pubKey = PublicKey.decode(reader, reader.uint32());
|
|
218
|
+
continue;
|
|
219
|
+
case 3:
|
|
220
|
+
if (tag !== 24) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
message.votingPower = reader.int64() as Long;
|
|
225
|
+
continue;
|
|
226
|
+
case 4:
|
|
227
|
+
if (tag !== 32) {
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
message.proposerPriority = reader.int64() as Long;
|
|
232
|
+
continue;
|
|
233
|
+
}
|
|
234
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
reader.skipType(tag & 7);
|
|
238
|
+
}
|
|
239
|
+
return message;
|
|
240
|
+
},
|
|
241
|
+
|
|
242
|
+
fromJSON(object: any): Validator {
|
|
243
|
+
return {
|
|
244
|
+
address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(0),
|
|
245
|
+
pubKey: isSet(object.pubKey) ? PublicKey.fromJSON(object.pubKey) : undefined,
|
|
246
|
+
votingPower: isSet(object.votingPower) ? Long.fromValue(object.votingPower) : Long.ZERO,
|
|
247
|
+
proposerPriority: isSet(object.proposerPriority) ? Long.fromValue(object.proposerPriority) : Long.ZERO,
|
|
248
|
+
};
|
|
249
|
+
},
|
|
250
|
+
|
|
251
|
+
toJSON(message: Validator): unknown {
|
|
252
|
+
const obj: any = {};
|
|
253
|
+
if (message.address.length !== 0) {
|
|
254
|
+
obj.address = base64FromBytes(message.address);
|
|
255
|
+
}
|
|
256
|
+
if (message.pubKey !== undefined) {
|
|
257
|
+
obj.pubKey = PublicKey.toJSON(message.pubKey);
|
|
258
|
+
}
|
|
259
|
+
if (!message.votingPower.equals(Long.ZERO)) {
|
|
260
|
+
obj.votingPower = (message.votingPower || Long.ZERO).toString();
|
|
261
|
+
}
|
|
262
|
+
if (!message.proposerPriority.equals(Long.ZERO)) {
|
|
263
|
+
obj.proposerPriority = (message.proposerPriority || Long.ZERO).toString();
|
|
264
|
+
}
|
|
265
|
+
return obj;
|
|
266
|
+
},
|
|
267
|
+
|
|
268
|
+
create<I extends Exact<DeepPartial<Validator>, I>>(base?: I): Validator {
|
|
269
|
+
return Validator.fromPartial(base ?? ({} as any));
|
|
270
|
+
},
|
|
271
|
+
fromPartial<I extends Exact<DeepPartial<Validator>, I>>(object: I): Validator {
|
|
272
|
+
const message = createBaseValidator();
|
|
273
|
+
message.address = object.address ?? new Uint8Array(0);
|
|
274
|
+
message.pubKey = (object.pubKey !== undefined && object.pubKey !== null)
|
|
275
|
+
? PublicKey.fromPartial(object.pubKey)
|
|
276
|
+
: undefined;
|
|
277
|
+
message.votingPower = (object.votingPower !== undefined && object.votingPower !== null)
|
|
278
|
+
? Long.fromValue(object.votingPower)
|
|
279
|
+
: Long.ZERO;
|
|
280
|
+
message.proposerPriority = (object.proposerPriority !== undefined && object.proposerPriority !== null)
|
|
281
|
+
? Long.fromValue(object.proposerPriority)
|
|
282
|
+
: Long.ZERO;
|
|
283
|
+
return message;
|
|
284
|
+
},
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
function createBaseSimpleValidator(): SimpleValidator {
|
|
288
|
+
return { pubKey: undefined, votingPower: Long.ZERO };
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export const SimpleValidator = {
|
|
292
|
+
encode(message: SimpleValidator, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
293
|
+
if (message.pubKey !== undefined) {
|
|
294
|
+
PublicKey.encode(message.pubKey, writer.uint32(10).fork()).ldelim();
|
|
295
|
+
}
|
|
296
|
+
if (!message.votingPower.equals(Long.ZERO)) {
|
|
297
|
+
writer.uint32(16).int64(message.votingPower);
|
|
298
|
+
}
|
|
299
|
+
return writer;
|
|
300
|
+
},
|
|
301
|
+
|
|
302
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SimpleValidator {
|
|
303
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
304
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
305
|
+
const message = createBaseSimpleValidator();
|
|
306
|
+
while (reader.pos < end) {
|
|
307
|
+
const tag = reader.uint32();
|
|
308
|
+
switch (tag >>> 3) {
|
|
309
|
+
case 1:
|
|
310
|
+
if (tag !== 10) {
|
|
311
|
+
break;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
message.pubKey = PublicKey.decode(reader, reader.uint32());
|
|
315
|
+
continue;
|
|
316
|
+
case 2:
|
|
317
|
+
if (tag !== 16) {
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
message.votingPower = reader.int64() as Long;
|
|
322
|
+
continue;
|
|
323
|
+
}
|
|
324
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
325
|
+
break;
|
|
326
|
+
}
|
|
327
|
+
reader.skipType(tag & 7);
|
|
328
|
+
}
|
|
329
|
+
return message;
|
|
330
|
+
},
|
|
331
|
+
|
|
332
|
+
fromJSON(object: any): SimpleValidator {
|
|
333
|
+
return {
|
|
334
|
+
pubKey: isSet(object.pubKey) ? PublicKey.fromJSON(object.pubKey) : undefined,
|
|
335
|
+
votingPower: isSet(object.votingPower) ? Long.fromValue(object.votingPower) : Long.ZERO,
|
|
336
|
+
};
|
|
337
|
+
},
|
|
338
|
+
|
|
339
|
+
toJSON(message: SimpleValidator): unknown {
|
|
340
|
+
const obj: any = {};
|
|
341
|
+
if (message.pubKey !== undefined) {
|
|
342
|
+
obj.pubKey = PublicKey.toJSON(message.pubKey);
|
|
343
|
+
}
|
|
344
|
+
if (!message.votingPower.equals(Long.ZERO)) {
|
|
345
|
+
obj.votingPower = (message.votingPower || Long.ZERO).toString();
|
|
346
|
+
}
|
|
347
|
+
return obj;
|
|
348
|
+
},
|
|
349
|
+
|
|
350
|
+
create<I extends Exact<DeepPartial<SimpleValidator>, I>>(base?: I): SimpleValidator {
|
|
351
|
+
return SimpleValidator.fromPartial(base ?? ({} as any));
|
|
352
|
+
},
|
|
353
|
+
fromPartial<I extends Exact<DeepPartial<SimpleValidator>, I>>(object: I): SimpleValidator {
|
|
354
|
+
const message = createBaseSimpleValidator();
|
|
355
|
+
message.pubKey = (object.pubKey !== undefined && object.pubKey !== null)
|
|
356
|
+
? PublicKey.fromPartial(object.pubKey)
|
|
357
|
+
: undefined;
|
|
358
|
+
message.votingPower = (object.votingPower !== undefined && object.votingPower !== null)
|
|
359
|
+
? Long.fromValue(object.votingPower)
|
|
360
|
+
: Long.ZERO;
|
|
361
|
+
return message;
|
|
362
|
+
},
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
function bytesFromBase64(b64: string): Uint8Array {
|
|
366
|
+
if ((globalThis as any).Buffer) {
|
|
367
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
368
|
+
} else {
|
|
369
|
+
const bin = globalThis.atob(b64);
|
|
370
|
+
const arr = new Uint8Array(bin.length);
|
|
371
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
372
|
+
arr[i] = bin.charCodeAt(i);
|
|
373
|
+
}
|
|
374
|
+
return arr;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
function base64FromBytes(arr: Uint8Array): string {
|
|
379
|
+
if ((globalThis as any).Buffer) {
|
|
380
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
381
|
+
} else {
|
|
382
|
+
const bin: string[] = [];
|
|
383
|
+
arr.forEach((byte) => {
|
|
384
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
385
|
+
});
|
|
386
|
+
return globalThis.btoa(bin.join(""));
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
391
|
+
|
|
392
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
393
|
+
: T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
394
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
395
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
396
|
+
: Partial<T>;
|
|
397
|
+
|
|
398
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
399
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
400
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
401
|
+
|
|
402
|
+
if (_m0.util.Long !== Long) {
|
|
403
|
+
_m0.util.Long = Long as any;
|
|
404
|
+
_m0.configure();
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
function isSet(value: any): boolean {
|
|
408
|
+
return value !== null && value !== undefined;
|
|
409
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v1.181.2
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: tendermint/version/types.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import Long from "long";
|
|
9
|
+
import _m0 from "protobufjs/minimal";
|
|
10
|
+
|
|
11
|
+
export const protobufPackage = "tendermint.version";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* App includes the protocol and software version for the application.
|
|
15
|
+
* This information is included in ResponseInfo. The App.Protocol can be
|
|
16
|
+
* updated in ResponseEndBlock.
|
|
17
|
+
*/
|
|
18
|
+
export interface App {
|
|
19
|
+
protocol: Long;
|
|
20
|
+
software: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Consensus captures the consensus rules for processing a block in the blockchain,
|
|
25
|
+
* including all blockchain data structures and the rules of the application's
|
|
26
|
+
* state transition machine.
|
|
27
|
+
*/
|
|
28
|
+
export interface Consensus {
|
|
29
|
+
block: Long;
|
|
30
|
+
app: Long;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function createBaseApp(): App {
|
|
34
|
+
return { protocol: Long.UZERO, software: "" };
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const App = {
|
|
38
|
+
encode(message: App, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
39
|
+
if (!message.protocol.equals(Long.UZERO)) {
|
|
40
|
+
writer.uint32(8).uint64(message.protocol);
|
|
41
|
+
}
|
|
42
|
+
if (message.software !== "") {
|
|
43
|
+
writer.uint32(18).string(message.software);
|
|
44
|
+
}
|
|
45
|
+
return writer;
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): App {
|
|
49
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
50
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
51
|
+
const message = createBaseApp();
|
|
52
|
+
while (reader.pos < end) {
|
|
53
|
+
const tag = reader.uint32();
|
|
54
|
+
switch (tag >>> 3) {
|
|
55
|
+
case 1:
|
|
56
|
+
if (tag !== 8) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message.protocol = reader.uint64() as Long;
|
|
61
|
+
continue;
|
|
62
|
+
case 2:
|
|
63
|
+
if (tag !== 18) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message.software = reader.string();
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
reader.skipType(tag & 7);
|
|
74
|
+
}
|
|
75
|
+
return message;
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
fromJSON(object: any): App {
|
|
79
|
+
return {
|
|
80
|
+
protocol: isSet(object.protocol) ? Long.fromValue(object.protocol) : Long.UZERO,
|
|
81
|
+
software: isSet(object.software) ? globalThis.String(object.software) : "",
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
toJSON(message: App): unknown {
|
|
86
|
+
const obj: any = {};
|
|
87
|
+
if (!message.protocol.equals(Long.UZERO)) {
|
|
88
|
+
obj.protocol = (message.protocol || Long.UZERO).toString();
|
|
89
|
+
}
|
|
90
|
+
if (message.software !== "") {
|
|
91
|
+
obj.software = message.software;
|
|
92
|
+
}
|
|
93
|
+
return obj;
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
create<I extends Exact<DeepPartial<App>, I>>(base?: I): App {
|
|
97
|
+
return App.fromPartial(base ?? ({} as any));
|
|
98
|
+
},
|
|
99
|
+
fromPartial<I extends Exact<DeepPartial<App>, I>>(object: I): App {
|
|
100
|
+
const message = createBaseApp();
|
|
101
|
+
message.protocol = (object.protocol !== undefined && object.protocol !== null)
|
|
102
|
+
? Long.fromValue(object.protocol)
|
|
103
|
+
: Long.UZERO;
|
|
104
|
+
message.software = object.software ?? "";
|
|
105
|
+
return message;
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
function createBaseConsensus(): Consensus {
|
|
110
|
+
return { block: Long.UZERO, app: Long.UZERO };
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export const Consensus = {
|
|
114
|
+
encode(message: Consensus, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
115
|
+
if (!message.block.equals(Long.UZERO)) {
|
|
116
|
+
writer.uint32(8).uint64(message.block);
|
|
117
|
+
}
|
|
118
|
+
if (!message.app.equals(Long.UZERO)) {
|
|
119
|
+
writer.uint32(16).uint64(message.app);
|
|
120
|
+
}
|
|
121
|
+
return writer;
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Consensus {
|
|
125
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
126
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
127
|
+
const message = createBaseConsensus();
|
|
128
|
+
while (reader.pos < end) {
|
|
129
|
+
const tag = reader.uint32();
|
|
130
|
+
switch (tag >>> 3) {
|
|
131
|
+
case 1:
|
|
132
|
+
if (tag !== 8) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
message.block = reader.uint64() as Long;
|
|
137
|
+
continue;
|
|
138
|
+
case 2:
|
|
139
|
+
if (tag !== 16) {
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message.app = reader.uint64() as Long;
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
reader.skipType(tag & 7);
|
|
150
|
+
}
|
|
151
|
+
return message;
|
|
152
|
+
},
|
|
153
|
+
|
|
154
|
+
fromJSON(object: any): Consensus {
|
|
155
|
+
return {
|
|
156
|
+
block: isSet(object.block) ? Long.fromValue(object.block) : Long.UZERO,
|
|
157
|
+
app: isSet(object.app) ? Long.fromValue(object.app) : Long.UZERO,
|
|
158
|
+
};
|
|
159
|
+
},
|
|
160
|
+
|
|
161
|
+
toJSON(message: Consensus): unknown {
|
|
162
|
+
const obj: any = {};
|
|
163
|
+
if (!message.block.equals(Long.UZERO)) {
|
|
164
|
+
obj.block = (message.block || Long.UZERO).toString();
|
|
165
|
+
}
|
|
166
|
+
if (!message.app.equals(Long.UZERO)) {
|
|
167
|
+
obj.app = (message.app || Long.UZERO).toString();
|
|
168
|
+
}
|
|
169
|
+
return obj;
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
create<I extends Exact<DeepPartial<Consensus>, I>>(base?: I): Consensus {
|
|
173
|
+
return Consensus.fromPartial(base ?? ({} as any));
|
|
174
|
+
},
|
|
175
|
+
fromPartial<I extends Exact<DeepPartial<Consensus>, I>>(object: I): Consensus {
|
|
176
|
+
const message = createBaseConsensus();
|
|
177
|
+
message.block = (object.block !== undefined && object.block !== null) ? Long.fromValue(object.block) : Long.UZERO;
|
|
178
|
+
message.app = (object.app !== undefined && object.app !== null) ? Long.fromValue(object.app) : Long.UZERO;
|
|
179
|
+
return message;
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
184
|
+
|
|
185
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
186
|
+
: T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
187
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
188
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
189
|
+
: Partial<T>;
|
|
190
|
+
|
|
191
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
192
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
193
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
194
|
+
|
|
195
|
+
if (_m0.util.Long !== Long) {
|
|
196
|
+
_m0.util.Long = Long as any;
|
|
197
|
+
_m0.configure();
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
function isSet(value: any): boolean {
|
|
201
|
+
return value !== null && value !== undefined;
|
|
202
|
+
}
|