@ocap/types 1.17.5

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.
@@ -0,0 +1,546 @@
1
+ // package: vendor
2
+ // file: vendor.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
6
+
7
+ export class KVPair extends jspb.Message {
8
+ getKey(): Uint8Array | string;
9
+ getKey_asU8(): Uint8Array;
10
+ getKey_asB64(): string;
11
+ setKey(value: Uint8Array | string): void;
12
+
13
+ getValue(): Uint8Array | string;
14
+ getValue_asU8(): Uint8Array;
15
+ getValue_asB64(): string;
16
+ setValue(value: Uint8Array | string): void;
17
+
18
+ serializeBinary(): Uint8Array;
19
+ toObject(includeInstance?: boolean): KVPair.AsObject;
20
+ static toObject(includeInstance: boolean, msg: KVPair): KVPair.AsObject;
21
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
22
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
23
+ static serializeBinaryToWriter(message: KVPair, writer: jspb.BinaryWriter): void;
24
+ static deserializeBinary(bytes: Uint8Array): KVPair;
25
+ static deserializeBinaryFromReader(message: KVPair, reader: jspb.BinaryReader): KVPair;
26
+ }
27
+
28
+ export namespace KVPair {
29
+ export type AsObject = {
30
+ key: Uint8Array | string,
31
+ value: Uint8Array | string,
32
+ }
33
+ }
34
+
35
+ export class BlockParams extends jspb.Message {
36
+ getMaxBytes(): number;
37
+ setMaxBytes(value: number): void;
38
+
39
+ getMaxGas(): number;
40
+ setMaxGas(value: number): void;
41
+
42
+ serializeBinary(): Uint8Array;
43
+ toObject(includeInstance?: boolean): BlockParams.AsObject;
44
+ static toObject(includeInstance: boolean, msg: BlockParams): BlockParams.AsObject;
45
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
46
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
47
+ static serializeBinaryToWriter(message: BlockParams, writer: jspb.BinaryWriter): void;
48
+ static deserializeBinary(bytes: Uint8Array): BlockParams;
49
+ static deserializeBinaryFromReader(message: BlockParams, reader: jspb.BinaryReader): BlockParams;
50
+ }
51
+
52
+ export namespace BlockParams {
53
+ export type AsObject = {
54
+ maxBytes: number,
55
+ maxGas: number,
56
+ }
57
+ }
58
+
59
+ export class EvidenceParams extends jspb.Message {
60
+ getMaxAge(): number;
61
+ setMaxAge(value: number): void;
62
+
63
+ serializeBinary(): Uint8Array;
64
+ toObject(includeInstance?: boolean): EvidenceParams.AsObject;
65
+ static toObject(includeInstance: boolean, msg: EvidenceParams): EvidenceParams.AsObject;
66
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
67
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
68
+ static serializeBinaryToWriter(message: EvidenceParams, writer: jspb.BinaryWriter): void;
69
+ static deserializeBinary(bytes: Uint8Array): EvidenceParams;
70
+ static deserializeBinaryFromReader(message: EvidenceParams, reader: jspb.BinaryReader): EvidenceParams;
71
+ }
72
+
73
+ export namespace EvidenceParams {
74
+ export type AsObject = {
75
+ maxAge: number,
76
+ }
77
+ }
78
+
79
+ export class ValidatorParams extends jspb.Message {
80
+ clearPubKeyTypesList(): void;
81
+ getPubKeyTypesList(): Array<string>;
82
+ setPubKeyTypesList(value: Array<string>): void;
83
+ addPubKeyTypes(value: string, index?: number): string;
84
+
85
+ serializeBinary(): Uint8Array;
86
+ toObject(includeInstance?: boolean): ValidatorParams.AsObject;
87
+ static toObject(includeInstance: boolean, msg: ValidatorParams): ValidatorParams.AsObject;
88
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
89
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
90
+ static serializeBinaryToWriter(message: ValidatorParams, writer: jspb.BinaryWriter): void;
91
+ static deserializeBinary(bytes: Uint8Array): ValidatorParams;
92
+ static deserializeBinaryFromReader(message: ValidatorParams, reader: jspb.BinaryReader): ValidatorParams;
93
+ }
94
+
95
+ export namespace ValidatorParams {
96
+ export type AsObject = {
97
+ pubKeyTypesList: Array<string>,
98
+ }
99
+ }
100
+
101
+ export class ConsensusParams extends jspb.Message {
102
+ hasBlock(): boolean;
103
+ clearBlock(): void;
104
+ getBlock(): BlockParams | undefined;
105
+ setBlock(value?: BlockParams): void;
106
+
107
+ hasEvidence(): boolean;
108
+ clearEvidence(): void;
109
+ getEvidence(): EvidenceParams | undefined;
110
+ setEvidence(value?: EvidenceParams): void;
111
+
112
+ hasValidator(): boolean;
113
+ clearValidator(): void;
114
+ getValidator(): ValidatorParams | undefined;
115
+ setValidator(value?: ValidatorParams): void;
116
+
117
+ serializeBinary(): Uint8Array;
118
+ toObject(includeInstance?: boolean): ConsensusParams.AsObject;
119
+ static toObject(includeInstance: boolean, msg: ConsensusParams): ConsensusParams.AsObject;
120
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
121
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
122
+ static serializeBinaryToWriter(message: ConsensusParams, writer: jspb.BinaryWriter): void;
123
+ static deserializeBinary(bytes: Uint8Array): ConsensusParams;
124
+ static deserializeBinaryFromReader(message: ConsensusParams, reader: jspb.BinaryReader): ConsensusParams;
125
+ }
126
+
127
+ export namespace ConsensusParams {
128
+ export type AsObject = {
129
+ block?: BlockParams.AsObject,
130
+ evidence?: EvidenceParams.AsObject,
131
+ validator?: ValidatorParams.AsObject,
132
+ }
133
+ }
134
+
135
+ export class LastCommitInfo extends jspb.Message {
136
+ getRound(): number;
137
+ setRound(value: number): void;
138
+
139
+ clearVotesList(): void;
140
+ getVotesList(): Array<VoteInfo>;
141
+ setVotesList(value: Array<VoteInfo>): void;
142
+ addVotes(value?: VoteInfo, index?: number): VoteInfo;
143
+
144
+ serializeBinary(): Uint8Array;
145
+ toObject(includeInstance?: boolean): LastCommitInfo.AsObject;
146
+ static toObject(includeInstance: boolean, msg: LastCommitInfo): LastCommitInfo.AsObject;
147
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
148
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
149
+ static serializeBinaryToWriter(message: LastCommitInfo, writer: jspb.BinaryWriter): void;
150
+ static deserializeBinary(bytes: Uint8Array): LastCommitInfo;
151
+ static deserializeBinaryFromReader(message: LastCommitInfo, reader: jspb.BinaryReader): LastCommitInfo;
152
+ }
153
+
154
+ export namespace LastCommitInfo {
155
+ export type AsObject = {
156
+ round: number,
157
+ votesList: Array<VoteInfo.AsObject>,
158
+ }
159
+ }
160
+
161
+ export class Version extends jspb.Message {
162
+ getBlock(): number;
163
+ setBlock(value: number): void;
164
+
165
+ getApp(): number;
166
+ setApp(value: number): void;
167
+
168
+ serializeBinary(): Uint8Array;
169
+ toObject(includeInstance?: boolean): Version.AsObject;
170
+ static toObject(includeInstance: boolean, msg: Version): Version.AsObject;
171
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
172
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
173
+ static serializeBinaryToWriter(message: Version, writer: jspb.BinaryWriter): void;
174
+ static deserializeBinary(bytes: Uint8Array): Version;
175
+ static deserializeBinaryFromReader(message: Version, reader: jspb.BinaryReader): Version;
176
+ }
177
+
178
+ export namespace Version {
179
+ export type AsObject = {
180
+ block: number,
181
+ app: number,
182
+ }
183
+ }
184
+
185
+ export class BlockID extends jspb.Message {
186
+ getHash(): Uint8Array | string;
187
+ getHash_asU8(): Uint8Array;
188
+ getHash_asB64(): string;
189
+ setHash(value: Uint8Array | string): void;
190
+
191
+ hasPartsHeader(): boolean;
192
+ clearPartsHeader(): void;
193
+ getPartsHeader(): PartSetHeader | undefined;
194
+ setPartsHeader(value?: PartSetHeader): void;
195
+
196
+ serializeBinary(): Uint8Array;
197
+ toObject(includeInstance?: boolean): BlockID.AsObject;
198
+ static toObject(includeInstance: boolean, msg: BlockID): BlockID.AsObject;
199
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
200
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
201
+ static serializeBinaryToWriter(message: BlockID, writer: jspb.BinaryWriter): void;
202
+ static deserializeBinary(bytes: Uint8Array): BlockID;
203
+ static deserializeBinaryFromReader(message: BlockID, reader: jspb.BinaryReader): BlockID;
204
+ }
205
+
206
+ export namespace BlockID {
207
+ export type AsObject = {
208
+ hash: Uint8Array | string,
209
+ partsHeader?: PartSetHeader.AsObject,
210
+ }
211
+ }
212
+
213
+ export class PartSetHeader extends jspb.Message {
214
+ getTotal(): number;
215
+ setTotal(value: number): void;
216
+
217
+ getHash(): Uint8Array | string;
218
+ getHash_asU8(): Uint8Array;
219
+ getHash_asB64(): string;
220
+ setHash(value: Uint8Array | string): void;
221
+
222
+ serializeBinary(): Uint8Array;
223
+ toObject(includeInstance?: boolean): PartSetHeader.AsObject;
224
+ static toObject(includeInstance: boolean, msg: PartSetHeader): PartSetHeader.AsObject;
225
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
226
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
227
+ static serializeBinaryToWriter(message: PartSetHeader, writer: jspb.BinaryWriter): void;
228
+ static deserializeBinary(bytes: Uint8Array): PartSetHeader;
229
+ static deserializeBinaryFromReader(message: PartSetHeader, reader: jspb.BinaryReader): PartSetHeader;
230
+ }
231
+
232
+ export namespace PartSetHeader {
233
+ export type AsObject = {
234
+ total: number,
235
+ hash: Uint8Array | string,
236
+ }
237
+ }
238
+
239
+ export class Validator extends jspb.Message {
240
+ getAddress(): Uint8Array | string;
241
+ getAddress_asU8(): Uint8Array;
242
+ getAddress_asB64(): string;
243
+ setAddress(value: Uint8Array | string): void;
244
+
245
+ getPower(): number;
246
+ setPower(value: number): void;
247
+
248
+ serializeBinary(): Uint8Array;
249
+ toObject(includeInstance?: boolean): Validator.AsObject;
250
+ static toObject(includeInstance: boolean, msg: Validator): Validator.AsObject;
251
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
252
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
253
+ static serializeBinaryToWriter(message: Validator, writer: jspb.BinaryWriter): void;
254
+ static deserializeBinary(bytes: Uint8Array): Validator;
255
+ static deserializeBinaryFromReader(message: Validator, reader: jspb.BinaryReader): Validator;
256
+ }
257
+
258
+ export namespace Validator {
259
+ export type AsObject = {
260
+ address: Uint8Array | string,
261
+ power: number,
262
+ }
263
+ }
264
+
265
+ export class ValidatorUpdate extends jspb.Message {
266
+ hasPubKey(): boolean;
267
+ clearPubKey(): void;
268
+ getPubKey(): PubKey | undefined;
269
+ setPubKey(value?: PubKey): void;
270
+
271
+ getPower(): number;
272
+ setPower(value: number): void;
273
+
274
+ serializeBinary(): Uint8Array;
275
+ toObject(includeInstance?: boolean): ValidatorUpdate.AsObject;
276
+ static toObject(includeInstance: boolean, msg: ValidatorUpdate): ValidatorUpdate.AsObject;
277
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
278
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
279
+ static serializeBinaryToWriter(message: ValidatorUpdate, writer: jspb.BinaryWriter): void;
280
+ static deserializeBinary(bytes: Uint8Array): ValidatorUpdate;
281
+ static deserializeBinaryFromReader(message: ValidatorUpdate, reader: jspb.BinaryReader): ValidatorUpdate;
282
+ }
283
+
284
+ export namespace ValidatorUpdate {
285
+ export type AsObject = {
286
+ pubKey?: PubKey.AsObject,
287
+ power: number,
288
+ }
289
+ }
290
+
291
+ export class VoteInfo extends jspb.Message {
292
+ hasValidator(): boolean;
293
+ clearValidator(): void;
294
+ getValidator(): Validator | undefined;
295
+ setValidator(value?: Validator): void;
296
+
297
+ getSignedLastBlock(): boolean;
298
+ setSignedLastBlock(value: boolean): void;
299
+
300
+ serializeBinary(): Uint8Array;
301
+ toObject(includeInstance?: boolean): VoteInfo.AsObject;
302
+ static toObject(includeInstance: boolean, msg: VoteInfo): VoteInfo.AsObject;
303
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
304
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
305
+ static serializeBinaryToWriter(message: VoteInfo, writer: jspb.BinaryWriter): void;
306
+ static deserializeBinary(bytes: Uint8Array): VoteInfo;
307
+ static deserializeBinaryFromReader(message: VoteInfo, reader: jspb.BinaryReader): VoteInfo;
308
+ }
309
+
310
+ export namespace VoteInfo {
311
+ export type AsObject = {
312
+ validator?: Validator.AsObject,
313
+ signedLastBlock: boolean,
314
+ }
315
+ }
316
+
317
+ export class PubKey extends jspb.Message {
318
+ getType(): string;
319
+ setType(value: string): void;
320
+
321
+ getData(): Uint8Array | string;
322
+ getData_asU8(): Uint8Array;
323
+ getData_asB64(): string;
324
+ setData(value: Uint8Array | string): void;
325
+
326
+ serializeBinary(): Uint8Array;
327
+ toObject(includeInstance?: boolean): PubKey.AsObject;
328
+ static toObject(includeInstance: boolean, msg: PubKey): PubKey.AsObject;
329
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
330
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
331
+ static serializeBinaryToWriter(message: PubKey, writer: jspb.BinaryWriter): void;
332
+ static deserializeBinary(bytes: Uint8Array): PubKey;
333
+ static deserializeBinaryFromReader(message: PubKey, reader: jspb.BinaryReader): PubKey;
334
+ }
335
+
336
+ export namespace PubKey {
337
+ export type AsObject = {
338
+ type: string,
339
+ data: Uint8Array | string,
340
+ }
341
+ }
342
+
343
+ export class Evidence extends jspb.Message {
344
+ getType(): string;
345
+ setType(value: string): void;
346
+
347
+ hasValidator(): boolean;
348
+ clearValidator(): void;
349
+ getValidator(): Validator | undefined;
350
+ setValidator(value?: Validator): void;
351
+
352
+ getHeight(): number;
353
+ setHeight(value: number): void;
354
+
355
+ hasTime(): boolean;
356
+ clearTime(): void;
357
+ getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
358
+ setTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
359
+
360
+ getTotalVotingPower(): number;
361
+ setTotalVotingPower(value: number): void;
362
+
363
+ serializeBinary(): Uint8Array;
364
+ toObject(includeInstance?: boolean): Evidence.AsObject;
365
+ static toObject(includeInstance: boolean, msg: Evidence): Evidence.AsObject;
366
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
367
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
368
+ static serializeBinaryToWriter(message: Evidence, writer: jspb.BinaryWriter): void;
369
+ static deserializeBinary(bytes: Uint8Array): Evidence;
370
+ static deserializeBinaryFromReader(message: Evidence, reader: jspb.BinaryReader): Evidence;
371
+ }
372
+
373
+ export namespace Evidence {
374
+ export type AsObject = {
375
+ type: string,
376
+ validator?: Validator.AsObject,
377
+ height: number,
378
+ time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
379
+ totalVotingPower: number,
380
+ }
381
+ }
382
+
383
+ export class Header extends jspb.Message {
384
+ hasVersion(): boolean;
385
+ clearVersion(): void;
386
+ getVersion(): Version | undefined;
387
+ setVersion(value?: Version): void;
388
+
389
+ getChainId(): string;
390
+ setChainId(value: string): void;
391
+
392
+ getHeight(): number;
393
+ setHeight(value: number): void;
394
+
395
+ hasTime(): boolean;
396
+ clearTime(): void;
397
+ getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
398
+ setTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
399
+
400
+ getNumTxs(): number;
401
+ setNumTxs(value: number): void;
402
+
403
+ getTotalTxs(): number;
404
+ setTotalTxs(value: number): void;
405
+
406
+ hasLastBlockId(): boolean;
407
+ clearLastBlockId(): void;
408
+ getLastBlockId(): BlockID | undefined;
409
+ setLastBlockId(value?: BlockID): void;
410
+
411
+ getLastCommitHash(): Uint8Array | string;
412
+ getLastCommitHash_asU8(): Uint8Array;
413
+ getLastCommitHash_asB64(): string;
414
+ setLastCommitHash(value: Uint8Array | string): void;
415
+
416
+ getDataHash(): Uint8Array | string;
417
+ getDataHash_asU8(): Uint8Array;
418
+ getDataHash_asB64(): string;
419
+ setDataHash(value: Uint8Array | string): void;
420
+
421
+ getValidatorsHash(): Uint8Array | string;
422
+ getValidatorsHash_asU8(): Uint8Array;
423
+ getValidatorsHash_asB64(): string;
424
+ setValidatorsHash(value: Uint8Array | string): void;
425
+
426
+ getNextValidatorsHash(): Uint8Array | string;
427
+ getNextValidatorsHash_asU8(): Uint8Array;
428
+ getNextValidatorsHash_asB64(): string;
429
+ setNextValidatorsHash(value: Uint8Array | string): void;
430
+
431
+ getConsensusHash(): Uint8Array | string;
432
+ getConsensusHash_asU8(): Uint8Array;
433
+ getConsensusHash_asB64(): string;
434
+ setConsensusHash(value: Uint8Array | string): void;
435
+
436
+ getAppHash(): Uint8Array | string;
437
+ getAppHash_asU8(): Uint8Array;
438
+ getAppHash_asB64(): string;
439
+ setAppHash(value: Uint8Array | string): void;
440
+
441
+ getLastResultsHash(): Uint8Array | string;
442
+ getLastResultsHash_asU8(): Uint8Array;
443
+ getLastResultsHash_asB64(): string;
444
+ setLastResultsHash(value: Uint8Array | string): void;
445
+
446
+ getEvidenceHash(): Uint8Array | string;
447
+ getEvidenceHash_asU8(): Uint8Array;
448
+ getEvidenceHash_asB64(): string;
449
+ setEvidenceHash(value: Uint8Array | string): void;
450
+
451
+ getProposerAddress(): Uint8Array | string;
452
+ getProposerAddress_asU8(): Uint8Array;
453
+ getProposerAddress_asB64(): string;
454
+ setProposerAddress(value: Uint8Array | string): void;
455
+
456
+ serializeBinary(): Uint8Array;
457
+ toObject(includeInstance?: boolean): Header.AsObject;
458
+ static toObject(includeInstance: boolean, msg: Header): Header.AsObject;
459
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
460
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
461
+ static serializeBinaryToWriter(message: Header, writer: jspb.BinaryWriter): void;
462
+ static deserializeBinary(bytes: Uint8Array): Header;
463
+ static deserializeBinaryFromReader(message: Header, reader: jspb.BinaryReader): Header;
464
+ }
465
+
466
+ export namespace Header {
467
+ export type AsObject = {
468
+ version?: Version.AsObject,
469
+ chainId: string,
470
+ height: number,
471
+ time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
472
+ numTxs: number,
473
+ totalTxs: number,
474
+ lastBlockId?: BlockID.AsObject,
475
+ lastCommitHash: Uint8Array | string,
476
+ dataHash: Uint8Array | string,
477
+ validatorsHash: Uint8Array | string,
478
+ nextValidatorsHash: Uint8Array | string,
479
+ consensusHash: Uint8Array | string,
480
+ appHash: Uint8Array | string,
481
+ lastResultsHash: Uint8Array | string,
482
+ evidenceHash: Uint8Array | string,
483
+ proposerAddress: Uint8Array | string,
484
+ }
485
+ }
486
+
487
+ export class RequestBeginBlock extends jspb.Message {
488
+ getHash(): Uint8Array | string;
489
+ getHash_asU8(): Uint8Array;
490
+ getHash_asB64(): string;
491
+ setHash(value: Uint8Array | string): void;
492
+
493
+ hasHeader(): boolean;
494
+ clearHeader(): void;
495
+ getHeader(): Header | undefined;
496
+ setHeader(value?: Header): void;
497
+
498
+ hasLastCommitInfo(): boolean;
499
+ clearLastCommitInfo(): void;
500
+ getLastCommitInfo(): LastCommitInfo | undefined;
501
+ setLastCommitInfo(value?: LastCommitInfo): void;
502
+
503
+ clearByzantineValidatorsList(): void;
504
+ getByzantineValidatorsList(): Array<Evidence>;
505
+ setByzantineValidatorsList(value: Array<Evidence>): void;
506
+ addByzantineValidators(value?: Evidence, index?: number): Evidence;
507
+
508
+ serializeBinary(): Uint8Array;
509
+ toObject(includeInstance?: boolean): RequestBeginBlock.AsObject;
510
+ static toObject(includeInstance: boolean, msg: RequestBeginBlock): RequestBeginBlock.AsObject;
511
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
512
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
513
+ static serializeBinaryToWriter(message: RequestBeginBlock, writer: jspb.BinaryWriter): void;
514
+ static deserializeBinary(bytes: Uint8Array): RequestBeginBlock;
515
+ static deserializeBinaryFromReader(message: RequestBeginBlock, reader: jspb.BinaryReader): RequestBeginBlock;
516
+ }
517
+
518
+ export namespace RequestBeginBlock {
519
+ export type AsObject = {
520
+ hash: Uint8Array | string,
521
+ header?: Header.AsObject,
522
+ lastCommitInfo?: LastCommitInfo.AsObject,
523
+ byzantineValidatorsList: Array<Evidence.AsObject>,
524
+ }
525
+ }
526
+
527
+ export class RequestEndBlock extends jspb.Message {
528
+ getHeight(): number;
529
+ setHeight(value: number): void;
530
+
531
+ serializeBinary(): Uint8Array;
532
+ toObject(includeInstance?: boolean): RequestEndBlock.AsObject;
533
+ static toObject(includeInstance: boolean, msg: RequestEndBlock): RequestEndBlock.AsObject;
534
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
535
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
536
+ static serializeBinaryToWriter(message: RequestEndBlock, writer: jspb.BinaryWriter): void;
537
+ static deserializeBinary(bytes: Uint8Array): RequestEndBlock;
538
+ static deserializeBinaryFromReader(message: RequestEndBlock, reader: jspb.BinaryReader): RequestEndBlock;
539
+ }
540
+
541
+ export namespace RequestEndBlock {
542
+ export type AsObject = {
543
+ height: number,
544
+ }
545
+ }
546
+
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@ocap/types",
3
+ "version": "1.17.5",
4
+ "description": "Typescript definitions generated from protobuf",
5
+ "keywords": [
6
+ "ocap",
7
+ "typescript"
8
+ ],
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "dependencies": {
13
+ "google-protobuf": "3.18.0"
14
+ },
15
+ "resolutions": {},
16
+ "devDependencies": {
17
+ "@arcblock/eslint-config-ts": "0.2.2",
18
+ "@types/jest": "^28.1.0",
19
+ "@types/node": "^17.0.38",
20
+ "eslint": "^8.17.0",
21
+ "typescript": "^4.7.3"
22
+ },
23
+ "author": {
24
+ "name": "wangshijun",
25
+ "email": "shijun@arcblock.io",
26
+ "url": "https://github.com/wangshijun"
27
+ },
28
+ "contributors": [
29
+ "wangshijun <shijun@arcblock.io> (https://github.com/wangshijun)"
30
+ ],
31
+ "types": "./index.d.ts",
32
+ "homepage": "https://github.com/ArcBlock/asset-chain/tree/master/core/forge-util",
33
+ "license": "Apache-2.0",
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/ArcBlock/asset-chain.git"
37
+ },
38
+ "scripts": {},
39
+ "bugs": {
40
+ "url": "https://github.com/ArcBlock/asset-chain/issues"
41
+ },
42
+ "gitHead": "5cacbffd2801318debfe38e5313c63dbdf013eec"
43
+ }