@dashevo/dapi-grpc 2.1.0-pr.2716.1 → 2.1.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.
@@ -6,448 +6,6 @@ import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wr
6
6
  import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
7
7
  import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
8
8
 
9
- export class PlatformEventsCommand extends jspb.Message {
10
- hasV0(): boolean;
11
- clearV0(): void;
12
- getV0(): PlatformEventsCommand.PlatformEventsCommandV0 | undefined;
13
- setV0(value?: PlatformEventsCommand.PlatformEventsCommandV0): void;
14
-
15
- getVersionCase(): PlatformEventsCommand.VersionCase;
16
- serializeBinary(): Uint8Array;
17
- toObject(includeInstance?: boolean): PlatformEventsCommand.AsObject;
18
- static toObject(includeInstance: boolean, msg: PlatformEventsCommand): PlatformEventsCommand.AsObject;
19
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
20
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
21
- static serializeBinaryToWriter(message: PlatformEventsCommand, writer: jspb.BinaryWriter): void;
22
- static deserializeBinary(bytes: Uint8Array): PlatformEventsCommand;
23
- static deserializeBinaryFromReader(message: PlatformEventsCommand, reader: jspb.BinaryReader): PlatformEventsCommand;
24
- }
25
-
26
- export namespace PlatformEventsCommand {
27
- export type AsObject = {
28
- v0?: PlatformEventsCommand.PlatformEventsCommandV0.AsObject,
29
- }
30
-
31
- export class PlatformEventsCommandV0 extends jspb.Message {
32
- hasAdd(): boolean;
33
- clearAdd(): void;
34
- getAdd(): AddSubscriptionV0 | undefined;
35
- setAdd(value?: AddSubscriptionV0): void;
36
-
37
- hasRemove(): boolean;
38
- clearRemove(): void;
39
- getRemove(): RemoveSubscriptionV0 | undefined;
40
- setRemove(value?: RemoveSubscriptionV0): void;
41
-
42
- getCommandCase(): PlatformEventsCommandV0.CommandCase;
43
- serializeBinary(): Uint8Array;
44
- toObject(includeInstance?: boolean): PlatformEventsCommandV0.AsObject;
45
- static toObject(includeInstance: boolean, msg: PlatformEventsCommandV0): PlatformEventsCommandV0.AsObject;
46
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
47
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
48
- static serializeBinaryToWriter(message: PlatformEventsCommandV0, writer: jspb.BinaryWriter): void;
49
- static deserializeBinary(bytes: Uint8Array): PlatformEventsCommandV0;
50
- static deserializeBinaryFromReader(message: PlatformEventsCommandV0, reader: jspb.BinaryReader): PlatformEventsCommandV0;
51
- }
52
-
53
- export namespace PlatformEventsCommandV0 {
54
- export type AsObject = {
55
- add?: AddSubscriptionV0.AsObject,
56
- remove?: RemoveSubscriptionV0.AsObject,
57
- }
58
-
59
- export enum CommandCase {
60
- COMMAND_NOT_SET = 0,
61
- ADD = 1,
62
- REMOVE = 2,
63
- }
64
- }
65
-
66
- export enum VersionCase {
67
- VERSION_NOT_SET = 0,
68
- V0 = 1,
69
- }
70
- }
71
-
72
- export class PlatformEventsResponse extends jspb.Message {
73
- hasV0(): boolean;
74
- clearV0(): void;
75
- getV0(): PlatformEventsResponse.PlatformEventsResponseV0 | undefined;
76
- setV0(value?: PlatformEventsResponse.PlatformEventsResponseV0): void;
77
-
78
- getVersionCase(): PlatformEventsResponse.VersionCase;
79
- serializeBinary(): Uint8Array;
80
- toObject(includeInstance?: boolean): PlatformEventsResponse.AsObject;
81
- static toObject(includeInstance: boolean, msg: PlatformEventsResponse): PlatformEventsResponse.AsObject;
82
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
83
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
84
- static serializeBinaryToWriter(message: PlatformEventsResponse, writer: jspb.BinaryWriter): void;
85
- static deserializeBinary(bytes: Uint8Array): PlatformEventsResponse;
86
- static deserializeBinaryFromReader(message: PlatformEventsResponse, reader: jspb.BinaryReader): PlatformEventsResponse;
87
- }
88
-
89
- export namespace PlatformEventsResponse {
90
- export type AsObject = {
91
- v0?: PlatformEventsResponse.PlatformEventsResponseV0.AsObject,
92
- }
93
-
94
- export class PlatformEventsResponseV0 extends jspb.Message {
95
- hasEvent(): boolean;
96
- clearEvent(): void;
97
- getEvent(): PlatformEventMessageV0 | undefined;
98
- setEvent(value?: PlatformEventMessageV0): void;
99
-
100
- hasAck(): boolean;
101
- clearAck(): void;
102
- getAck(): AckV0 | undefined;
103
- setAck(value?: AckV0): void;
104
-
105
- hasError(): boolean;
106
- clearError(): void;
107
- getError(): PlatformErrorV0 | undefined;
108
- setError(value?: PlatformErrorV0): void;
109
-
110
- getResponseCase(): PlatformEventsResponseV0.ResponseCase;
111
- serializeBinary(): Uint8Array;
112
- toObject(includeInstance?: boolean): PlatformEventsResponseV0.AsObject;
113
- static toObject(includeInstance: boolean, msg: PlatformEventsResponseV0): PlatformEventsResponseV0.AsObject;
114
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
115
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
116
- static serializeBinaryToWriter(message: PlatformEventsResponseV0, writer: jspb.BinaryWriter): void;
117
- static deserializeBinary(bytes: Uint8Array): PlatformEventsResponseV0;
118
- static deserializeBinaryFromReader(message: PlatformEventsResponseV0, reader: jspb.BinaryReader): PlatformEventsResponseV0;
119
- }
120
-
121
- export namespace PlatformEventsResponseV0 {
122
- export type AsObject = {
123
- event?: PlatformEventMessageV0.AsObject,
124
- ack?: AckV0.AsObject,
125
- error?: PlatformErrorV0.AsObject,
126
- }
127
-
128
- export enum ResponseCase {
129
- RESPONSE_NOT_SET = 0,
130
- EVENT = 1,
131
- ACK = 2,
132
- ERROR = 3,
133
- }
134
- }
135
-
136
- export enum VersionCase {
137
- VERSION_NOT_SET = 0,
138
- V0 = 1,
139
- }
140
- }
141
-
142
- export class AddSubscriptionV0 extends jspb.Message {
143
- getClientSubscriptionId(): string;
144
- setClientSubscriptionId(value: string): void;
145
-
146
- hasFilter(): boolean;
147
- clearFilter(): void;
148
- getFilter(): PlatformFilterV0 | undefined;
149
- setFilter(value?: PlatformFilterV0): void;
150
-
151
- serializeBinary(): Uint8Array;
152
- toObject(includeInstance?: boolean): AddSubscriptionV0.AsObject;
153
- static toObject(includeInstance: boolean, msg: AddSubscriptionV0): AddSubscriptionV0.AsObject;
154
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
155
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
156
- static serializeBinaryToWriter(message: AddSubscriptionV0, writer: jspb.BinaryWriter): void;
157
- static deserializeBinary(bytes: Uint8Array): AddSubscriptionV0;
158
- static deserializeBinaryFromReader(message: AddSubscriptionV0, reader: jspb.BinaryReader): AddSubscriptionV0;
159
- }
160
-
161
- export namespace AddSubscriptionV0 {
162
- export type AsObject = {
163
- clientSubscriptionId: string,
164
- filter?: PlatformFilterV0.AsObject,
165
- }
166
- }
167
-
168
- export class RemoveSubscriptionV0 extends jspb.Message {
169
- getClientSubscriptionId(): string;
170
- setClientSubscriptionId(value: string): void;
171
-
172
- serializeBinary(): Uint8Array;
173
- toObject(includeInstance?: boolean): RemoveSubscriptionV0.AsObject;
174
- static toObject(includeInstance: boolean, msg: RemoveSubscriptionV0): RemoveSubscriptionV0.AsObject;
175
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
176
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
177
- static serializeBinaryToWriter(message: RemoveSubscriptionV0, writer: jspb.BinaryWriter): void;
178
- static deserializeBinary(bytes: Uint8Array): RemoveSubscriptionV0;
179
- static deserializeBinaryFromReader(message: RemoveSubscriptionV0, reader: jspb.BinaryReader): RemoveSubscriptionV0;
180
- }
181
-
182
- export namespace RemoveSubscriptionV0 {
183
- export type AsObject = {
184
- clientSubscriptionId: string,
185
- }
186
- }
187
-
188
- export class AckV0 extends jspb.Message {
189
- getClientSubscriptionId(): string;
190
- setClientSubscriptionId(value: string): void;
191
-
192
- getOp(): string;
193
- setOp(value: string): void;
194
-
195
- serializeBinary(): Uint8Array;
196
- toObject(includeInstance?: boolean): AckV0.AsObject;
197
- static toObject(includeInstance: boolean, msg: AckV0): AckV0.AsObject;
198
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
199
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
200
- static serializeBinaryToWriter(message: AckV0, writer: jspb.BinaryWriter): void;
201
- static deserializeBinary(bytes: Uint8Array): AckV0;
202
- static deserializeBinaryFromReader(message: AckV0, reader: jspb.BinaryReader): AckV0;
203
- }
204
-
205
- export namespace AckV0 {
206
- export type AsObject = {
207
- clientSubscriptionId: string,
208
- op: string,
209
- }
210
- }
211
-
212
- export class PlatformErrorV0 extends jspb.Message {
213
- getClientSubscriptionId(): string;
214
- setClientSubscriptionId(value: string): void;
215
-
216
- getCode(): number;
217
- setCode(value: number): void;
218
-
219
- getMessage(): string;
220
- setMessage(value: string): void;
221
-
222
- serializeBinary(): Uint8Array;
223
- toObject(includeInstance?: boolean): PlatformErrorV0.AsObject;
224
- static toObject(includeInstance: boolean, msg: PlatformErrorV0): PlatformErrorV0.AsObject;
225
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
226
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
227
- static serializeBinaryToWriter(message: PlatformErrorV0, writer: jspb.BinaryWriter): void;
228
- static deserializeBinary(bytes: Uint8Array): PlatformErrorV0;
229
- static deserializeBinaryFromReader(message: PlatformErrorV0, reader: jspb.BinaryReader): PlatformErrorV0;
230
- }
231
-
232
- export namespace PlatformErrorV0 {
233
- export type AsObject = {
234
- clientSubscriptionId: string,
235
- code: number,
236
- message: string,
237
- }
238
- }
239
-
240
- export class PlatformEventMessageV0 extends jspb.Message {
241
- getClientSubscriptionId(): string;
242
- setClientSubscriptionId(value: string): void;
243
-
244
- hasEvent(): boolean;
245
- clearEvent(): void;
246
- getEvent(): PlatformEventV0 | undefined;
247
- setEvent(value?: PlatformEventV0): void;
248
-
249
- serializeBinary(): Uint8Array;
250
- toObject(includeInstance?: boolean): PlatformEventMessageV0.AsObject;
251
- static toObject(includeInstance: boolean, msg: PlatformEventMessageV0): PlatformEventMessageV0.AsObject;
252
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
253
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
254
- static serializeBinaryToWriter(message: PlatformEventMessageV0, writer: jspb.BinaryWriter): void;
255
- static deserializeBinary(bytes: Uint8Array): PlatformEventMessageV0;
256
- static deserializeBinaryFromReader(message: PlatformEventMessageV0, reader: jspb.BinaryReader): PlatformEventMessageV0;
257
- }
258
-
259
- export namespace PlatformEventMessageV0 {
260
- export type AsObject = {
261
- clientSubscriptionId: string,
262
- event?: PlatformEventV0.AsObject,
263
- }
264
- }
265
-
266
- export class StateTransitionResultFilter extends jspb.Message {
267
- hasTxHash(): boolean;
268
- clearTxHash(): void;
269
- getTxHash(): Uint8Array | string;
270
- getTxHash_asU8(): Uint8Array;
271
- getTxHash_asB64(): string;
272
- setTxHash(value: Uint8Array | string): void;
273
-
274
- serializeBinary(): Uint8Array;
275
- toObject(includeInstance?: boolean): StateTransitionResultFilter.AsObject;
276
- static toObject(includeInstance: boolean, msg: StateTransitionResultFilter): StateTransitionResultFilter.AsObject;
277
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
278
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
279
- static serializeBinaryToWriter(message: StateTransitionResultFilter, writer: jspb.BinaryWriter): void;
280
- static deserializeBinary(bytes: Uint8Array): StateTransitionResultFilter;
281
- static deserializeBinaryFromReader(message: StateTransitionResultFilter, reader: jspb.BinaryReader): StateTransitionResultFilter;
282
- }
283
-
284
- export namespace StateTransitionResultFilter {
285
- export type AsObject = {
286
- txHash: Uint8Array | string,
287
- }
288
- }
289
-
290
- export class PlatformFilterV0 extends jspb.Message {
291
- hasAll(): boolean;
292
- clearAll(): void;
293
- getAll(): boolean;
294
- setAll(value: boolean): void;
295
-
296
- hasBlockCommitted(): boolean;
297
- clearBlockCommitted(): void;
298
- getBlockCommitted(): boolean;
299
- setBlockCommitted(value: boolean): void;
300
-
301
- hasStateTransitionResult(): boolean;
302
- clearStateTransitionResult(): void;
303
- getStateTransitionResult(): StateTransitionResultFilter | undefined;
304
- setStateTransitionResult(value?: StateTransitionResultFilter): void;
305
-
306
- getKindCase(): PlatformFilterV0.KindCase;
307
- serializeBinary(): Uint8Array;
308
- toObject(includeInstance?: boolean): PlatformFilterV0.AsObject;
309
- static toObject(includeInstance: boolean, msg: PlatformFilterV0): PlatformFilterV0.AsObject;
310
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
311
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
312
- static serializeBinaryToWriter(message: PlatformFilterV0, writer: jspb.BinaryWriter): void;
313
- static deserializeBinary(bytes: Uint8Array): PlatformFilterV0;
314
- static deserializeBinaryFromReader(message: PlatformFilterV0, reader: jspb.BinaryReader): PlatformFilterV0;
315
- }
316
-
317
- export namespace PlatformFilterV0 {
318
- export type AsObject = {
319
- all: boolean,
320
- blockCommitted: boolean,
321
- stateTransitionResult?: StateTransitionResultFilter.AsObject,
322
- }
323
-
324
- export enum KindCase {
325
- KIND_NOT_SET = 0,
326
- ALL = 1,
327
- BLOCK_COMMITTED = 2,
328
- STATE_TRANSITION_RESULT = 3,
329
- }
330
- }
331
-
332
- export class PlatformEventV0 extends jspb.Message {
333
- hasBlockCommitted(): boolean;
334
- clearBlockCommitted(): void;
335
- getBlockCommitted(): PlatformEventV0.BlockCommitted | undefined;
336
- setBlockCommitted(value?: PlatformEventV0.BlockCommitted): void;
337
-
338
- hasStateTransitionFinalized(): boolean;
339
- clearStateTransitionFinalized(): void;
340
- getStateTransitionFinalized(): PlatformEventV0.StateTransitionFinalized | undefined;
341
- setStateTransitionFinalized(value?: PlatformEventV0.StateTransitionFinalized): void;
342
-
343
- getEventCase(): PlatformEventV0.EventCase;
344
- serializeBinary(): Uint8Array;
345
- toObject(includeInstance?: boolean): PlatformEventV0.AsObject;
346
- static toObject(includeInstance: boolean, msg: PlatformEventV0): PlatformEventV0.AsObject;
347
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
348
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
349
- static serializeBinaryToWriter(message: PlatformEventV0, writer: jspb.BinaryWriter): void;
350
- static deserializeBinary(bytes: Uint8Array): PlatformEventV0;
351
- static deserializeBinaryFromReader(message: PlatformEventV0, reader: jspb.BinaryReader): PlatformEventV0;
352
- }
353
-
354
- export namespace PlatformEventV0 {
355
- export type AsObject = {
356
- blockCommitted?: PlatformEventV0.BlockCommitted.AsObject,
357
- stateTransitionFinalized?: PlatformEventV0.StateTransitionFinalized.AsObject,
358
- }
359
-
360
- export class BlockMetadata extends jspb.Message {
361
- getHeight(): string;
362
- setHeight(value: string): void;
363
-
364
- getTimeMs(): string;
365
- setTimeMs(value: string): void;
366
-
367
- getBlockIdHash(): Uint8Array | string;
368
- getBlockIdHash_asU8(): Uint8Array;
369
- getBlockIdHash_asB64(): string;
370
- setBlockIdHash(value: Uint8Array | string): void;
371
-
372
- serializeBinary(): Uint8Array;
373
- toObject(includeInstance?: boolean): BlockMetadata.AsObject;
374
- static toObject(includeInstance: boolean, msg: BlockMetadata): BlockMetadata.AsObject;
375
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
376
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
377
- static serializeBinaryToWriter(message: BlockMetadata, writer: jspb.BinaryWriter): void;
378
- static deserializeBinary(bytes: Uint8Array): BlockMetadata;
379
- static deserializeBinaryFromReader(message: BlockMetadata, reader: jspb.BinaryReader): BlockMetadata;
380
- }
381
-
382
- export namespace BlockMetadata {
383
- export type AsObject = {
384
- height: string,
385
- timeMs: string,
386
- blockIdHash: Uint8Array | string,
387
- }
388
- }
389
-
390
- export class BlockCommitted extends jspb.Message {
391
- hasMeta(): boolean;
392
- clearMeta(): void;
393
- getMeta(): PlatformEventV0.BlockMetadata | undefined;
394
- setMeta(value?: PlatformEventV0.BlockMetadata): void;
395
-
396
- getTxCount(): number;
397
- setTxCount(value: number): void;
398
-
399
- serializeBinary(): Uint8Array;
400
- toObject(includeInstance?: boolean): BlockCommitted.AsObject;
401
- static toObject(includeInstance: boolean, msg: BlockCommitted): BlockCommitted.AsObject;
402
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
403
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
404
- static serializeBinaryToWriter(message: BlockCommitted, writer: jspb.BinaryWriter): void;
405
- static deserializeBinary(bytes: Uint8Array): BlockCommitted;
406
- static deserializeBinaryFromReader(message: BlockCommitted, reader: jspb.BinaryReader): BlockCommitted;
407
- }
408
-
409
- export namespace BlockCommitted {
410
- export type AsObject = {
411
- meta?: PlatformEventV0.BlockMetadata.AsObject,
412
- txCount: number,
413
- }
414
- }
415
-
416
- export class StateTransitionFinalized extends jspb.Message {
417
- hasMeta(): boolean;
418
- clearMeta(): void;
419
- getMeta(): PlatformEventV0.BlockMetadata | undefined;
420
- setMeta(value?: PlatformEventV0.BlockMetadata): void;
421
-
422
- getTxHash(): Uint8Array | string;
423
- getTxHash_asU8(): Uint8Array;
424
- getTxHash_asB64(): string;
425
- setTxHash(value: Uint8Array | string): void;
426
-
427
- serializeBinary(): Uint8Array;
428
- toObject(includeInstance?: boolean): StateTransitionFinalized.AsObject;
429
- static toObject(includeInstance: boolean, msg: StateTransitionFinalized): StateTransitionFinalized.AsObject;
430
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
431
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
432
- static serializeBinaryToWriter(message: StateTransitionFinalized, writer: jspb.BinaryWriter): void;
433
- static deserializeBinary(bytes: Uint8Array): StateTransitionFinalized;
434
- static deserializeBinaryFromReader(message: StateTransitionFinalized, reader: jspb.BinaryReader): StateTransitionFinalized;
435
- }
436
-
437
- export namespace StateTransitionFinalized {
438
- export type AsObject = {
439
- meta?: PlatformEventV0.BlockMetadata.AsObject,
440
- txHash: Uint8Array | string,
441
- }
442
- }
443
-
444
- export enum EventCase {
445
- EVENT_NOT_SET = 0,
446
- BLOCK_COMMITTED = 1,
447
- STATE_TRANSITION_FINALIZED = 2,
448
- }
449
- }
450
-
451
9
  export class Proof extends jspb.Message {
452
10
  getGrovedbProof(): Uint8Array | string;
453
11
  getGrovedbProof_asU8(): Uint8Array;