@ocap/types 1.17.6 → 1.17.7
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/lib/rpc_pb.d.ts +484 -598
- package/lib/state_pb.d.ts +260 -284
- package/lib/trace-type_pb.d.ts +341 -401
- package/lib/tx_pb.d.ts +521 -595
- package/lib/type_pb.d.ts +461 -557
- package/lib/vendor_pb.d.ts +128 -162
- package/package.json +2 -2
package/lib/vendor_pb.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ export class KVPair extends jspb.Message {
|
|
|
16
16
|
setValue(value: Uint8Array | string): void;
|
|
17
17
|
|
|
18
18
|
serializeBinary(): Uint8Array;
|
|
19
|
-
toObject(includeInstance?: boolean):
|
|
20
|
-
static toObject(includeInstance: boolean, msg: KVPair):
|
|
19
|
+
toObject(includeInstance?: boolean): TKVPair;
|
|
20
|
+
static toObject(includeInstance: boolean, msg: KVPair): TKVPair;
|
|
21
21
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
22
22
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
23
23
|
static serializeBinaryToWriter(message: KVPair, writer: jspb.BinaryWriter): void;
|
|
@@ -25,11 +25,9 @@ export class KVPair extends jspb.Message {
|
|
|
25
25
|
static deserializeBinaryFromReader(message: KVPair, reader: jspb.BinaryReader): KVPair;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
value: Uint8Array | string,
|
|
32
|
-
}
|
|
28
|
+
export type TKVPair = {
|
|
29
|
+
key: Uint8Array | string,
|
|
30
|
+
value: Uint8Array | string,
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
export class BlockParams extends jspb.Message {
|
|
@@ -40,8 +38,8 @@ export class BlockParams extends jspb.Message {
|
|
|
40
38
|
setMaxGas(value: number): void;
|
|
41
39
|
|
|
42
40
|
serializeBinary(): Uint8Array;
|
|
43
|
-
toObject(includeInstance?: boolean):
|
|
44
|
-
static toObject(includeInstance: boolean, msg: BlockParams):
|
|
41
|
+
toObject(includeInstance?: boolean): TBlockParams;
|
|
42
|
+
static toObject(includeInstance: boolean, msg: BlockParams): TBlockParams;
|
|
45
43
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
46
44
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
47
45
|
static serializeBinaryToWriter(message: BlockParams, writer: jspb.BinaryWriter): void;
|
|
@@ -49,11 +47,9 @@ export class BlockParams extends jspb.Message {
|
|
|
49
47
|
static deserializeBinaryFromReader(message: BlockParams, reader: jspb.BinaryReader): BlockParams;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
|
-
export
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
maxGas: number,
|
|
56
|
-
}
|
|
50
|
+
export type TBlockParams = {
|
|
51
|
+
maxBytes: number,
|
|
52
|
+
maxGas: number,
|
|
57
53
|
}
|
|
58
54
|
|
|
59
55
|
export class EvidenceParams extends jspb.Message {
|
|
@@ -61,8 +57,8 @@ export class EvidenceParams extends jspb.Message {
|
|
|
61
57
|
setMaxAge(value: number): void;
|
|
62
58
|
|
|
63
59
|
serializeBinary(): Uint8Array;
|
|
64
|
-
toObject(includeInstance?: boolean):
|
|
65
|
-
static toObject(includeInstance: boolean, msg: EvidenceParams):
|
|
60
|
+
toObject(includeInstance?: boolean): TEvidenceParams;
|
|
61
|
+
static toObject(includeInstance: boolean, msg: EvidenceParams): TEvidenceParams;
|
|
66
62
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
67
63
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
68
64
|
static serializeBinaryToWriter(message: EvidenceParams, writer: jspb.BinaryWriter): void;
|
|
@@ -70,10 +66,8 @@ export class EvidenceParams extends jspb.Message {
|
|
|
70
66
|
static deserializeBinaryFromReader(message: EvidenceParams, reader: jspb.BinaryReader): EvidenceParams;
|
|
71
67
|
}
|
|
72
68
|
|
|
73
|
-
export
|
|
74
|
-
|
|
75
|
-
maxAge: number,
|
|
76
|
-
}
|
|
69
|
+
export type TEvidenceParams = {
|
|
70
|
+
maxAge: number,
|
|
77
71
|
}
|
|
78
72
|
|
|
79
73
|
export class ValidatorParams extends jspb.Message {
|
|
@@ -83,8 +77,8 @@ export class ValidatorParams extends jspb.Message {
|
|
|
83
77
|
addPubKeyTypes(value: string, index?: number): string;
|
|
84
78
|
|
|
85
79
|
serializeBinary(): Uint8Array;
|
|
86
|
-
toObject(includeInstance?: boolean):
|
|
87
|
-
static toObject(includeInstance: boolean, msg: ValidatorParams):
|
|
80
|
+
toObject(includeInstance?: boolean): TValidatorParams;
|
|
81
|
+
static toObject(includeInstance: boolean, msg: ValidatorParams): TValidatorParams;
|
|
88
82
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
89
83
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
90
84
|
static serializeBinaryToWriter(message: ValidatorParams, writer: jspb.BinaryWriter): void;
|
|
@@ -92,31 +86,29 @@ export class ValidatorParams extends jspb.Message {
|
|
|
92
86
|
static deserializeBinaryFromReader(message: ValidatorParams, reader: jspb.BinaryReader): ValidatorParams;
|
|
93
87
|
}
|
|
94
88
|
|
|
95
|
-
export
|
|
96
|
-
|
|
97
|
-
pubKeyTypesList: Array<string>,
|
|
98
|
-
}
|
|
89
|
+
export type TValidatorParams = {
|
|
90
|
+
pubKeyTypes: Array<string>,
|
|
99
91
|
}
|
|
100
92
|
|
|
101
93
|
export class ConsensusParams extends jspb.Message {
|
|
102
94
|
hasBlock(): boolean;
|
|
103
95
|
clearBlock(): void;
|
|
104
|
-
getBlock():
|
|
105
|
-
setBlock(value?:
|
|
96
|
+
getBlock(): TBlockParams | undefined;
|
|
97
|
+
setBlock(value?: TBlockParams): void;
|
|
106
98
|
|
|
107
99
|
hasEvidence(): boolean;
|
|
108
100
|
clearEvidence(): void;
|
|
109
|
-
getEvidence():
|
|
110
|
-
setEvidence(value?:
|
|
101
|
+
getEvidence(): TEvidenceParams | undefined;
|
|
102
|
+
setEvidence(value?: TEvidenceParams): void;
|
|
111
103
|
|
|
112
104
|
hasValidator(): boolean;
|
|
113
105
|
clearValidator(): void;
|
|
114
|
-
getValidator():
|
|
115
|
-
setValidator(value?:
|
|
106
|
+
getValidator(): TValidatorParams | undefined;
|
|
107
|
+
setValidator(value?: TValidatorParams): void;
|
|
116
108
|
|
|
117
109
|
serializeBinary(): Uint8Array;
|
|
118
|
-
toObject(includeInstance?: boolean):
|
|
119
|
-
static toObject(includeInstance: boolean, msg: ConsensusParams):
|
|
110
|
+
toObject(includeInstance?: boolean): TConsensusParams;
|
|
111
|
+
static toObject(includeInstance: boolean, msg: ConsensusParams): TConsensusParams;
|
|
120
112
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
121
113
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
122
114
|
static serializeBinaryToWriter(message: ConsensusParams, writer: jspb.BinaryWriter): void;
|
|
@@ -124,12 +116,10 @@ export class ConsensusParams extends jspb.Message {
|
|
|
124
116
|
static deserializeBinaryFromReader(message: ConsensusParams, reader: jspb.BinaryReader): ConsensusParams;
|
|
125
117
|
}
|
|
126
118
|
|
|
127
|
-
export
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
validator?: ValidatorParams.AsObject,
|
|
132
|
-
}
|
|
119
|
+
export type TConsensusParams = {
|
|
120
|
+
block?: TBlockParams,
|
|
121
|
+
evidence?: TEvidenceParams,
|
|
122
|
+
validator?: TValidatorParams,
|
|
133
123
|
}
|
|
134
124
|
|
|
135
125
|
export class LastCommitInfo extends jspb.Message {
|
|
@@ -137,13 +127,13 @@ export class LastCommitInfo extends jspb.Message {
|
|
|
137
127
|
setRound(value: number): void;
|
|
138
128
|
|
|
139
129
|
clearVotesList(): void;
|
|
140
|
-
getVotesList(): Array<
|
|
141
|
-
setVotesList(value: Array<
|
|
130
|
+
getVotesList(): Array<TVoteInfo>;
|
|
131
|
+
setVotesList(value: Array<TVoteInfo>): void;
|
|
142
132
|
addVotes(value?: VoteInfo, index?: number): VoteInfo;
|
|
143
133
|
|
|
144
134
|
serializeBinary(): Uint8Array;
|
|
145
|
-
toObject(includeInstance?: boolean):
|
|
146
|
-
static toObject(includeInstance: boolean, msg: LastCommitInfo):
|
|
135
|
+
toObject(includeInstance?: boolean): TLastCommitInfo;
|
|
136
|
+
static toObject(includeInstance: boolean, msg: LastCommitInfo): TLastCommitInfo;
|
|
147
137
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
148
138
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
149
139
|
static serializeBinaryToWriter(message: LastCommitInfo, writer: jspb.BinaryWriter): void;
|
|
@@ -151,11 +141,9 @@ export class LastCommitInfo extends jspb.Message {
|
|
|
151
141
|
static deserializeBinaryFromReader(message: LastCommitInfo, reader: jspb.BinaryReader): LastCommitInfo;
|
|
152
142
|
}
|
|
153
143
|
|
|
154
|
-
export
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
votesList: Array<VoteInfo.AsObject>,
|
|
158
|
-
}
|
|
144
|
+
export type TLastCommitInfo = {
|
|
145
|
+
round: number,
|
|
146
|
+
votes: Array<TVoteInfo>,
|
|
159
147
|
}
|
|
160
148
|
|
|
161
149
|
export class Version extends jspb.Message {
|
|
@@ -166,8 +154,8 @@ export class Version extends jspb.Message {
|
|
|
166
154
|
setApp(value: number): void;
|
|
167
155
|
|
|
168
156
|
serializeBinary(): Uint8Array;
|
|
169
|
-
toObject(includeInstance?: boolean):
|
|
170
|
-
static toObject(includeInstance: boolean, msg: Version):
|
|
157
|
+
toObject(includeInstance?: boolean): TVersion;
|
|
158
|
+
static toObject(includeInstance: boolean, msg: Version): TVersion;
|
|
171
159
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
172
160
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
173
161
|
static serializeBinaryToWriter(message: Version, writer: jspb.BinaryWriter): void;
|
|
@@ -175,11 +163,9 @@ export class Version extends jspb.Message {
|
|
|
175
163
|
static deserializeBinaryFromReader(message: Version, reader: jspb.BinaryReader): Version;
|
|
176
164
|
}
|
|
177
165
|
|
|
178
|
-
export
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
app: number,
|
|
182
|
-
}
|
|
166
|
+
export type TVersion = {
|
|
167
|
+
block: number,
|
|
168
|
+
app: number,
|
|
183
169
|
}
|
|
184
170
|
|
|
185
171
|
export class BlockID extends jspb.Message {
|
|
@@ -190,12 +176,12 @@ export class BlockID extends jspb.Message {
|
|
|
190
176
|
|
|
191
177
|
hasPartsHeader(): boolean;
|
|
192
178
|
clearPartsHeader(): void;
|
|
193
|
-
getPartsHeader():
|
|
194
|
-
setPartsHeader(value?:
|
|
179
|
+
getPartsHeader(): TPartSetHeader | undefined;
|
|
180
|
+
setPartsHeader(value?: TPartSetHeader): void;
|
|
195
181
|
|
|
196
182
|
serializeBinary(): Uint8Array;
|
|
197
|
-
toObject(includeInstance?: boolean):
|
|
198
|
-
static toObject(includeInstance: boolean, msg: BlockID):
|
|
183
|
+
toObject(includeInstance?: boolean): TBlockID;
|
|
184
|
+
static toObject(includeInstance: boolean, msg: BlockID): TBlockID;
|
|
199
185
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
200
186
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
201
187
|
static serializeBinaryToWriter(message: BlockID, writer: jspb.BinaryWriter): void;
|
|
@@ -203,11 +189,9 @@ export class BlockID extends jspb.Message {
|
|
|
203
189
|
static deserializeBinaryFromReader(message: BlockID, reader: jspb.BinaryReader): BlockID;
|
|
204
190
|
}
|
|
205
191
|
|
|
206
|
-
export
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
partsHeader?: PartSetHeader.AsObject,
|
|
210
|
-
}
|
|
192
|
+
export type TBlockID = {
|
|
193
|
+
hash: Uint8Array | string,
|
|
194
|
+
partsHeader?: TPartSetHeader,
|
|
211
195
|
}
|
|
212
196
|
|
|
213
197
|
export class PartSetHeader extends jspb.Message {
|
|
@@ -220,8 +204,8 @@ export class PartSetHeader extends jspb.Message {
|
|
|
220
204
|
setHash(value: Uint8Array | string): void;
|
|
221
205
|
|
|
222
206
|
serializeBinary(): Uint8Array;
|
|
223
|
-
toObject(includeInstance?: boolean):
|
|
224
|
-
static toObject(includeInstance: boolean, msg: PartSetHeader):
|
|
207
|
+
toObject(includeInstance?: boolean): TPartSetHeader;
|
|
208
|
+
static toObject(includeInstance: boolean, msg: PartSetHeader): TPartSetHeader;
|
|
225
209
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
226
210
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
227
211
|
static serializeBinaryToWriter(message: PartSetHeader, writer: jspb.BinaryWriter): void;
|
|
@@ -229,11 +213,9 @@ export class PartSetHeader extends jspb.Message {
|
|
|
229
213
|
static deserializeBinaryFromReader(message: PartSetHeader, reader: jspb.BinaryReader): PartSetHeader;
|
|
230
214
|
}
|
|
231
215
|
|
|
232
|
-
export
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
hash: Uint8Array | string,
|
|
236
|
-
}
|
|
216
|
+
export type TPartSetHeader = {
|
|
217
|
+
total: number,
|
|
218
|
+
hash: Uint8Array | string,
|
|
237
219
|
}
|
|
238
220
|
|
|
239
221
|
export class Validator extends jspb.Message {
|
|
@@ -246,8 +228,8 @@ export class Validator extends jspb.Message {
|
|
|
246
228
|
setPower(value: number): void;
|
|
247
229
|
|
|
248
230
|
serializeBinary(): Uint8Array;
|
|
249
|
-
toObject(includeInstance?: boolean):
|
|
250
|
-
static toObject(includeInstance: boolean, msg: Validator):
|
|
231
|
+
toObject(includeInstance?: boolean): TValidator;
|
|
232
|
+
static toObject(includeInstance: boolean, msg: Validator): TValidator;
|
|
251
233
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
252
234
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
253
235
|
static serializeBinaryToWriter(message: Validator, writer: jspb.BinaryWriter): void;
|
|
@@ -255,25 +237,23 @@ export class Validator extends jspb.Message {
|
|
|
255
237
|
static deserializeBinaryFromReader(message: Validator, reader: jspb.BinaryReader): Validator;
|
|
256
238
|
}
|
|
257
239
|
|
|
258
|
-
export
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
power: number,
|
|
262
|
-
}
|
|
240
|
+
export type TValidator = {
|
|
241
|
+
address: Uint8Array | string,
|
|
242
|
+
power: number,
|
|
263
243
|
}
|
|
264
244
|
|
|
265
245
|
export class ValidatorUpdate extends jspb.Message {
|
|
266
246
|
hasPubKey(): boolean;
|
|
267
247
|
clearPubKey(): void;
|
|
268
|
-
getPubKey():
|
|
269
|
-
setPubKey(value?:
|
|
248
|
+
getPubKey(): TPubKey | undefined;
|
|
249
|
+
setPubKey(value?: TPubKey): void;
|
|
270
250
|
|
|
271
251
|
getPower(): number;
|
|
272
252
|
setPower(value: number): void;
|
|
273
253
|
|
|
274
254
|
serializeBinary(): Uint8Array;
|
|
275
|
-
toObject(includeInstance?: boolean):
|
|
276
|
-
static toObject(includeInstance: boolean, msg: ValidatorUpdate):
|
|
255
|
+
toObject(includeInstance?: boolean): TValidatorUpdate;
|
|
256
|
+
static toObject(includeInstance: boolean, msg: ValidatorUpdate): TValidatorUpdate;
|
|
277
257
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
278
258
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
279
259
|
static serializeBinaryToWriter(message: ValidatorUpdate, writer: jspb.BinaryWriter): void;
|
|
@@ -281,25 +261,23 @@ export class ValidatorUpdate extends jspb.Message {
|
|
|
281
261
|
static deserializeBinaryFromReader(message: ValidatorUpdate, reader: jspb.BinaryReader): ValidatorUpdate;
|
|
282
262
|
}
|
|
283
263
|
|
|
284
|
-
export
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
power: number,
|
|
288
|
-
}
|
|
264
|
+
export type TValidatorUpdate = {
|
|
265
|
+
pubKey?: TPubKey,
|
|
266
|
+
power: number,
|
|
289
267
|
}
|
|
290
268
|
|
|
291
269
|
export class VoteInfo extends jspb.Message {
|
|
292
270
|
hasValidator(): boolean;
|
|
293
271
|
clearValidator(): void;
|
|
294
|
-
getValidator():
|
|
295
|
-
setValidator(value?:
|
|
272
|
+
getValidator(): TValidator | undefined;
|
|
273
|
+
setValidator(value?: TValidator): void;
|
|
296
274
|
|
|
297
275
|
getSignedLastBlock(): boolean;
|
|
298
276
|
setSignedLastBlock(value: boolean): void;
|
|
299
277
|
|
|
300
278
|
serializeBinary(): Uint8Array;
|
|
301
|
-
toObject(includeInstance?: boolean):
|
|
302
|
-
static toObject(includeInstance: boolean, msg: VoteInfo):
|
|
279
|
+
toObject(includeInstance?: boolean): TVoteInfo;
|
|
280
|
+
static toObject(includeInstance: boolean, msg: VoteInfo): TVoteInfo;
|
|
303
281
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
304
282
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
305
283
|
static serializeBinaryToWriter(message: VoteInfo, writer: jspb.BinaryWriter): void;
|
|
@@ -307,11 +285,9 @@ export class VoteInfo extends jspb.Message {
|
|
|
307
285
|
static deserializeBinaryFromReader(message: VoteInfo, reader: jspb.BinaryReader): VoteInfo;
|
|
308
286
|
}
|
|
309
287
|
|
|
310
|
-
export
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
signedLastBlock: boolean,
|
|
314
|
-
}
|
|
288
|
+
export type TVoteInfo = {
|
|
289
|
+
validator?: TValidator,
|
|
290
|
+
signedLastBlock: boolean,
|
|
315
291
|
}
|
|
316
292
|
|
|
317
293
|
export class PubKey extends jspb.Message {
|
|
@@ -324,8 +300,8 @@ export class PubKey extends jspb.Message {
|
|
|
324
300
|
setData(value: Uint8Array | string): void;
|
|
325
301
|
|
|
326
302
|
serializeBinary(): Uint8Array;
|
|
327
|
-
toObject(includeInstance?: boolean):
|
|
328
|
-
static toObject(includeInstance: boolean, msg: PubKey):
|
|
303
|
+
toObject(includeInstance?: boolean): TPubKey;
|
|
304
|
+
static toObject(includeInstance: boolean, msg: PubKey): TPubKey;
|
|
329
305
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
330
306
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
331
307
|
static serializeBinaryToWriter(message: PubKey, writer: jspb.BinaryWriter): void;
|
|
@@ -333,11 +309,9 @@ export class PubKey extends jspb.Message {
|
|
|
333
309
|
static deserializeBinaryFromReader(message: PubKey, reader: jspb.BinaryReader): PubKey;
|
|
334
310
|
}
|
|
335
311
|
|
|
336
|
-
export
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
data: Uint8Array | string,
|
|
340
|
-
}
|
|
312
|
+
export type TPubKey = {
|
|
313
|
+
type: string,
|
|
314
|
+
data: Uint8Array | string,
|
|
341
315
|
}
|
|
342
316
|
|
|
343
317
|
export class Evidence extends jspb.Message {
|
|
@@ -346,8 +320,8 @@ export class Evidence extends jspb.Message {
|
|
|
346
320
|
|
|
347
321
|
hasValidator(): boolean;
|
|
348
322
|
clearValidator(): void;
|
|
349
|
-
getValidator():
|
|
350
|
-
setValidator(value?:
|
|
323
|
+
getValidator(): TValidator | undefined;
|
|
324
|
+
setValidator(value?: TValidator): void;
|
|
351
325
|
|
|
352
326
|
getHeight(): number;
|
|
353
327
|
setHeight(value: number): void;
|
|
@@ -361,8 +335,8 @@ export class Evidence extends jspb.Message {
|
|
|
361
335
|
setTotalVotingPower(value: number): void;
|
|
362
336
|
|
|
363
337
|
serializeBinary(): Uint8Array;
|
|
364
|
-
toObject(includeInstance?: boolean):
|
|
365
|
-
static toObject(includeInstance: boolean, msg: Evidence):
|
|
338
|
+
toObject(includeInstance?: boolean): TEvidence;
|
|
339
|
+
static toObject(includeInstance: boolean, msg: Evidence): TEvidence;
|
|
366
340
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
367
341
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
368
342
|
static serializeBinaryToWriter(message: Evidence, writer: jspb.BinaryWriter): void;
|
|
@@ -370,21 +344,19 @@ export class Evidence extends jspb.Message {
|
|
|
370
344
|
static deserializeBinaryFromReader(message: Evidence, reader: jspb.BinaryReader): Evidence;
|
|
371
345
|
}
|
|
372
346
|
|
|
373
|
-
export
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
totalVotingPower: number,
|
|
380
|
-
}
|
|
347
|
+
export type TEvidence = {
|
|
348
|
+
type: string,
|
|
349
|
+
validator?: TValidator,
|
|
350
|
+
height: number,
|
|
351
|
+
time?: google_protobuf_timestamp_pb.Timestamp,
|
|
352
|
+
totalVotingPower: number,
|
|
381
353
|
}
|
|
382
354
|
|
|
383
355
|
export class Header extends jspb.Message {
|
|
384
356
|
hasVersion(): boolean;
|
|
385
357
|
clearVersion(): void;
|
|
386
|
-
getVersion():
|
|
387
|
-
setVersion(value?:
|
|
358
|
+
getVersion(): TVersion | undefined;
|
|
359
|
+
setVersion(value?: TVersion): void;
|
|
388
360
|
|
|
389
361
|
getChainId(): string;
|
|
390
362
|
setChainId(value: string): void;
|
|
@@ -405,8 +377,8 @@ export class Header extends jspb.Message {
|
|
|
405
377
|
|
|
406
378
|
hasLastBlockId(): boolean;
|
|
407
379
|
clearLastBlockId(): void;
|
|
408
|
-
getLastBlockId():
|
|
409
|
-
setLastBlockId(value?:
|
|
380
|
+
getLastBlockId(): TBlockID | undefined;
|
|
381
|
+
setLastBlockId(value?: TBlockID): void;
|
|
410
382
|
|
|
411
383
|
getLastCommitHash(): Uint8Array | string;
|
|
412
384
|
getLastCommitHash_asU8(): Uint8Array;
|
|
@@ -454,8 +426,8 @@ export class Header extends jspb.Message {
|
|
|
454
426
|
setProposerAddress(value: Uint8Array | string): void;
|
|
455
427
|
|
|
456
428
|
serializeBinary(): Uint8Array;
|
|
457
|
-
toObject(includeInstance?: boolean):
|
|
458
|
-
static toObject(includeInstance: boolean, msg: Header):
|
|
429
|
+
toObject(includeInstance?: boolean): THeader;
|
|
430
|
+
static toObject(includeInstance: boolean, msg: Header): THeader;
|
|
459
431
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
460
432
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
461
433
|
static serializeBinaryToWriter(message: Header, writer: jspb.BinaryWriter): void;
|
|
@@ -463,25 +435,23 @@ export class Header extends jspb.Message {
|
|
|
463
435
|
static deserializeBinaryFromReader(message: Header, reader: jspb.BinaryReader): Header;
|
|
464
436
|
}
|
|
465
437
|
|
|
466
|
-
export
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
proposerAddress: Uint8Array | string,
|
|
484
|
-
}
|
|
438
|
+
export type THeader = {
|
|
439
|
+
version?: TVersion,
|
|
440
|
+
chainId: string,
|
|
441
|
+
height: number,
|
|
442
|
+
time?: google_protobuf_timestamp_pb.Timestamp,
|
|
443
|
+
numTxs: number,
|
|
444
|
+
totalTxs: number,
|
|
445
|
+
lastBlockId?: TBlockID,
|
|
446
|
+
lastCommitHash: Uint8Array | string,
|
|
447
|
+
dataHash: Uint8Array | string,
|
|
448
|
+
validatorsHash: Uint8Array | string,
|
|
449
|
+
nextValidatorsHash: Uint8Array | string,
|
|
450
|
+
consensusHash: Uint8Array | string,
|
|
451
|
+
appHash: Uint8Array | string,
|
|
452
|
+
lastResultsHash: Uint8Array | string,
|
|
453
|
+
evidenceHash: Uint8Array | string,
|
|
454
|
+
proposerAddress: Uint8Array | string,
|
|
485
455
|
}
|
|
486
456
|
|
|
487
457
|
export class RequestBeginBlock extends jspb.Message {
|
|
@@ -492,22 +462,22 @@ export class RequestBeginBlock extends jspb.Message {
|
|
|
492
462
|
|
|
493
463
|
hasHeader(): boolean;
|
|
494
464
|
clearHeader(): void;
|
|
495
|
-
getHeader():
|
|
496
|
-
setHeader(value?:
|
|
465
|
+
getHeader(): THeader | undefined;
|
|
466
|
+
setHeader(value?: THeader): void;
|
|
497
467
|
|
|
498
468
|
hasLastCommitInfo(): boolean;
|
|
499
469
|
clearLastCommitInfo(): void;
|
|
500
|
-
getLastCommitInfo():
|
|
501
|
-
setLastCommitInfo(value?:
|
|
470
|
+
getLastCommitInfo(): TLastCommitInfo | undefined;
|
|
471
|
+
setLastCommitInfo(value?: TLastCommitInfo): void;
|
|
502
472
|
|
|
503
473
|
clearByzantineValidatorsList(): void;
|
|
504
|
-
getByzantineValidatorsList(): Array<
|
|
505
|
-
setByzantineValidatorsList(value: Array<
|
|
474
|
+
getByzantineValidatorsList(): Array<TEvidence>;
|
|
475
|
+
setByzantineValidatorsList(value: Array<TEvidence>): void;
|
|
506
476
|
addByzantineValidators(value?: Evidence, index?: number): Evidence;
|
|
507
477
|
|
|
508
478
|
serializeBinary(): Uint8Array;
|
|
509
|
-
toObject(includeInstance?: boolean):
|
|
510
|
-
static toObject(includeInstance: boolean, msg: RequestBeginBlock):
|
|
479
|
+
toObject(includeInstance?: boolean): TRequestBeginBlock;
|
|
480
|
+
static toObject(includeInstance: boolean, msg: RequestBeginBlock): TRequestBeginBlock;
|
|
511
481
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
512
482
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
513
483
|
static serializeBinaryToWriter(message: RequestBeginBlock, writer: jspb.BinaryWriter): void;
|
|
@@ -515,13 +485,11 @@ export class RequestBeginBlock extends jspb.Message {
|
|
|
515
485
|
static deserializeBinaryFromReader(message: RequestBeginBlock, reader: jspb.BinaryReader): RequestBeginBlock;
|
|
516
486
|
}
|
|
517
487
|
|
|
518
|
-
export
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
byzantineValidatorsList: Array<Evidence.AsObject>,
|
|
524
|
-
}
|
|
488
|
+
export type TRequestBeginBlock = {
|
|
489
|
+
hash: Uint8Array | string,
|
|
490
|
+
header?: THeader,
|
|
491
|
+
lastCommitInfo?: TLastCommitInfo,
|
|
492
|
+
byzantineValidators: Array<TEvidence>,
|
|
525
493
|
}
|
|
526
494
|
|
|
527
495
|
export class RequestEndBlock extends jspb.Message {
|
|
@@ -529,8 +497,8 @@ export class RequestEndBlock extends jspb.Message {
|
|
|
529
497
|
setHeight(value: number): void;
|
|
530
498
|
|
|
531
499
|
serializeBinary(): Uint8Array;
|
|
532
|
-
toObject(includeInstance?: boolean):
|
|
533
|
-
static toObject(includeInstance: boolean, msg: RequestEndBlock):
|
|
500
|
+
toObject(includeInstance?: boolean): TRequestEndBlock;
|
|
501
|
+
static toObject(includeInstance: boolean, msg: RequestEndBlock): TRequestEndBlock;
|
|
534
502
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
535
503
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
536
504
|
static serializeBinaryToWriter(message: RequestEndBlock, writer: jspb.BinaryWriter): void;
|
|
@@ -538,9 +506,7 @@ export class RequestEndBlock extends jspb.Message {
|
|
|
538
506
|
static deserializeBinaryFromReader(message: RequestEndBlock, reader: jspb.BinaryReader): RequestEndBlock;
|
|
539
507
|
}
|
|
540
508
|
|
|
541
|
-
export
|
|
542
|
-
|
|
543
|
-
height: number,
|
|
544
|
-
}
|
|
509
|
+
export type TRequestEndBlock = {
|
|
510
|
+
height: number,
|
|
545
511
|
}
|
|
546
512
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocap/types",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.7",
|
|
4
4
|
"description": "Typescript definitions generated from protobuf",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ocap",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"bugs": {
|
|
40
40
|
"url": "https://github.com/ArcBlock/asset-chain/issues"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "02d9fa7c14c70f0a5fc1dcc5dc5506e43cb71ba5"
|
|
43
43
|
}
|