@dashevo/dapi-grpc 0.24.0-dev.1 → 0.24.0-dev.10

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.
@@ -1,505 +0,0 @@
1
- /**
2
- * @fileoverview gRPC-Web generated client stub for org.dash.platform.dapi.v0
3
- * @enhanceable
4
- * @public
5
- */
6
-
7
- // GENERATED CODE -- DO NOT EDIT!
8
-
9
-
10
- /* eslint-disable */
11
- // @ts-nocheck
12
-
13
-
14
-
15
- const grpc = {};
16
- grpc.web = require('grpc-web');
17
-
18
- const proto = {};
19
- proto.org = {};
20
- proto.org.dash = {};
21
- proto.org.dash.platform = {};
22
- proto.org.dash.platform.dapi = {};
23
- proto.org.dash.platform.dapi.v0 = require('./platform_pb.js');
24
-
25
- /**
26
- * @param {string} hostname
27
- * @param {?Object} credentials
28
- * @param {?grpc.web.ClientOptions} options
29
- * @constructor
30
- * @struct
31
- * @final
32
- */
33
- proto.org.dash.platform.dapi.v0.PlatformClient =
34
- function(hostname, credentials, options) {
35
- if (!options) options = {};
36
- options.format = 'text';
37
-
38
- /**
39
- * @private @const {!grpc.web.GrpcWebClientBase} The client
40
- */
41
- this.client_ = new grpc.web.GrpcWebClientBase(options);
42
-
43
- /**
44
- * @private @const {string} The hostname
45
- */
46
- this.hostname_ = hostname;
47
-
48
- };
49
-
50
-
51
- /**
52
- * @param {string} hostname
53
- * @param {?Object} credentials
54
- * @param {?grpc.web.ClientOptions} options
55
- * @constructor
56
- * @struct
57
- * @final
58
- */
59
- proto.org.dash.platform.dapi.v0.PlatformPromiseClient =
60
- function(hostname, credentials, options) {
61
- if (!options) options = {};
62
- options.format = 'text';
63
-
64
- /**
65
- * @private @const {!grpc.web.GrpcWebClientBase} The client
66
- */
67
- this.client_ = new grpc.web.GrpcWebClientBase(options);
68
-
69
- /**
70
- * @private @const {string} The hostname
71
- */
72
- this.hostname_ = hostname;
73
-
74
- };
75
-
76
-
77
- /**
78
- * @const
79
- * @type {!grpc.web.MethodDescriptor<
80
- * !proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest,
81
- * !proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse>}
82
- */
83
- const methodDescriptor_Platform_broadcastStateTransition = new grpc.web.MethodDescriptor(
84
- '/org.dash.platform.dapi.v0.Platform/broadcastStateTransition',
85
- grpc.web.MethodType.UNARY,
86
- proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest,
87
- proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse,
88
- /**
89
- * @param {!proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest} request
90
- * @return {!Uint8Array}
91
- */
92
- function(request) {
93
- return request.serializeBinary();
94
- },
95
- proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse.deserializeBinary
96
- );
97
-
98
-
99
- /**
100
- * @param {!proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest} request The
101
- * request proto
102
- * @param {?Object<string, string>} metadata User defined
103
- * call metadata
104
- * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse)}
105
- * callback The callback function(error, response)
106
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse>|undefined}
107
- * The XHR Node Readable Stream
108
- */
109
- proto.org.dash.platform.dapi.v0.PlatformClient.prototype.broadcastStateTransition =
110
- function(request, metadata, callback) {
111
- return this.client_.rpcCall(this.hostname_ +
112
- '/org.dash.platform.dapi.v0.Platform/broadcastStateTransition',
113
- request,
114
- metadata || {},
115
- methodDescriptor_Platform_broadcastStateTransition,
116
- callback);
117
- };
118
-
119
-
120
- /**
121
- * @param {!proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest} request The
122
- * request proto
123
- * @param {?Object<string, string>=} metadata User defined
124
- * call metadata
125
- * @return {!Promise<!proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse>}
126
- * Promise that resolves to the response
127
- */
128
- proto.org.dash.platform.dapi.v0.PlatformPromiseClient.prototype.broadcastStateTransition =
129
- function(request, metadata) {
130
- return this.client_.unaryCall(this.hostname_ +
131
- '/org.dash.platform.dapi.v0.Platform/broadcastStateTransition',
132
- request,
133
- metadata || {},
134
- methodDescriptor_Platform_broadcastStateTransition);
135
- };
136
-
137
-
138
- /**
139
- * @const
140
- * @type {!grpc.web.MethodDescriptor<
141
- * !proto.org.dash.platform.dapi.v0.GetIdentityRequest,
142
- * !proto.org.dash.platform.dapi.v0.GetIdentityResponse>}
143
- */
144
- const methodDescriptor_Platform_getIdentity = new grpc.web.MethodDescriptor(
145
- '/org.dash.platform.dapi.v0.Platform/getIdentity',
146
- grpc.web.MethodType.UNARY,
147
- proto.org.dash.platform.dapi.v0.GetIdentityRequest,
148
- proto.org.dash.platform.dapi.v0.GetIdentityResponse,
149
- /**
150
- * @param {!proto.org.dash.platform.dapi.v0.GetIdentityRequest} request
151
- * @return {!Uint8Array}
152
- */
153
- function(request) {
154
- return request.serializeBinary();
155
- },
156
- proto.org.dash.platform.dapi.v0.GetIdentityResponse.deserializeBinary
157
- );
158
-
159
-
160
- /**
161
- * @param {!proto.org.dash.platform.dapi.v0.GetIdentityRequest} request The
162
- * request proto
163
- * @param {?Object<string, string>} metadata User defined
164
- * call metadata
165
- * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetIdentityResponse)}
166
- * callback The callback function(error, response)
167
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetIdentityResponse>|undefined}
168
- * The XHR Node Readable Stream
169
- */
170
- proto.org.dash.platform.dapi.v0.PlatformClient.prototype.getIdentity =
171
- function(request, metadata, callback) {
172
- return this.client_.rpcCall(this.hostname_ +
173
- '/org.dash.platform.dapi.v0.Platform/getIdentity',
174
- request,
175
- metadata || {},
176
- methodDescriptor_Platform_getIdentity,
177
- callback);
178
- };
179
-
180
-
181
- /**
182
- * @param {!proto.org.dash.platform.dapi.v0.GetIdentityRequest} request The
183
- * request proto
184
- * @param {?Object<string, string>=} metadata User defined
185
- * call metadata
186
- * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetIdentityResponse>}
187
- * Promise that resolves to the response
188
- */
189
- proto.org.dash.platform.dapi.v0.PlatformPromiseClient.prototype.getIdentity =
190
- function(request, metadata) {
191
- return this.client_.unaryCall(this.hostname_ +
192
- '/org.dash.platform.dapi.v0.Platform/getIdentity',
193
- request,
194
- metadata || {},
195
- methodDescriptor_Platform_getIdentity);
196
- };
197
-
198
-
199
- /**
200
- * @const
201
- * @type {!grpc.web.MethodDescriptor<
202
- * !proto.org.dash.platform.dapi.v0.GetDataContractRequest,
203
- * !proto.org.dash.platform.dapi.v0.GetDataContractResponse>}
204
- */
205
- const methodDescriptor_Platform_getDataContract = new grpc.web.MethodDescriptor(
206
- '/org.dash.platform.dapi.v0.Platform/getDataContract',
207
- grpc.web.MethodType.UNARY,
208
- proto.org.dash.platform.dapi.v0.GetDataContractRequest,
209
- proto.org.dash.platform.dapi.v0.GetDataContractResponse,
210
- /**
211
- * @param {!proto.org.dash.platform.dapi.v0.GetDataContractRequest} request
212
- * @return {!Uint8Array}
213
- */
214
- function(request) {
215
- return request.serializeBinary();
216
- },
217
- proto.org.dash.platform.dapi.v0.GetDataContractResponse.deserializeBinary
218
- );
219
-
220
-
221
- /**
222
- * @param {!proto.org.dash.platform.dapi.v0.GetDataContractRequest} request The
223
- * request proto
224
- * @param {?Object<string, string>} metadata User defined
225
- * call metadata
226
- * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetDataContractResponse)}
227
- * callback The callback function(error, response)
228
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetDataContractResponse>|undefined}
229
- * The XHR Node Readable Stream
230
- */
231
- proto.org.dash.platform.dapi.v0.PlatformClient.prototype.getDataContract =
232
- function(request, metadata, callback) {
233
- return this.client_.rpcCall(this.hostname_ +
234
- '/org.dash.platform.dapi.v0.Platform/getDataContract',
235
- request,
236
- metadata || {},
237
- methodDescriptor_Platform_getDataContract,
238
- callback);
239
- };
240
-
241
-
242
- /**
243
- * @param {!proto.org.dash.platform.dapi.v0.GetDataContractRequest} request The
244
- * request proto
245
- * @param {?Object<string, string>=} metadata User defined
246
- * call metadata
247
- * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetDataContractResponse>}
248
- * Promise that resolves to the response
249
- */
250
- proto.org.dash.platform.dapi.v0.PlatformPromiseClient.prototype.getDataContract =
251
- function(request, metadata) {
252
- return this.client_.unaryCall(this.hostname_ +
253
- '/org.dash.platform.dapi.v0.Platform/getDataContract',
254
- request,
255
- metadata || {},
256
- methodDescriptor_Platform_getDataContract);
257
- };
258
-
259
-
260
- /**
261
- * @const
262
- * @type {!grpc.web.MethodDescriptor<
263
- * !proto.org.dash.platform.dapi.v0.GetDocumentsRequest,
264
- * !proto.org.dash.platform.dapi.v0.GetDocumentsResponse>}
265
- */
266
- const methodDescriptor_Platform_getDocuments = new grpc.web.MethodDescriptor(
267
- '/org.dash.platform.dapi.v0.Platform/getDocuments',
268
- grpc.web.MethodType.UNARY,
269
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest,
270
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse,
271
- /**
272
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} request
273
- * @return {!Uint8Array}
274
- */
275
- function(request) {
276
- return request.serializeBinary();
277
- },
278
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.deserializeBinary
279
- );
280
-
281
-
282
- /**
283
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} request The
284
- * request proto
285
- * @param {?Object<string, string>} metadata User defined
286
- * call metadata
287
- * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetDocumentsResponse)}
288
- * callback The callback function(error, response)
289
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetDocumentsResponse>|undefined}
290
- * The XHR Node Readable Stream
291
- */
292
- proto.org.dash.platform.dapi.v0.PlatformClient.prototype.getDocuments =
293
- function(request, metadata, callback) {
294
- return this.client_.rpcCall(this.hostname_ +
295
- '/org.dash.platform.dapi.v0.Platform/getDocuments',
296
- request,
297
- metadata || {},
298
- methodDescriptor_Platform_getDocuments,
299
- callback);
300
- };
301
-
302
-
303
- /**
304
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} request The
305
- * request proto
306
- * @param {?Object<string, string>=} metadata User defined
307
- * call metadata
308
- * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetDocumentsResponse>}
309
- * Promise that resolves to the response
310
- */
311
- proto.org.dash.platform.dapi.v0.PlatformPromiseClient.prototype.getDocuments =
312
- function(request, metadata) {
313
- return this.client_.unaryCall(this.hostname_ +
314
- '/org.dash.platform.dapi.v0.Platform/getDocuments',
315
- request,
316
- metadata || {},
317
- methodDescriptor_Platform_getDocuments);
318
- };
319
-
320
-
321
- /**
322
- * @const
323
- * @type {!grpc.web.MethodDescriptor<
324
- * !proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest,
325
- * !proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse>}
326
- */
327
- const methodDescriptor_Platform_getIdentitiesByPublicKeyHashes = new grpc.web.MethodDescriptor(
328
- '/org.dash.platform.dapi.v0.Platform/getIdentitiesByPublicKeyHashes',
329
- grpc.web.MethodType.UNARY,
330
- proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest,
331
- proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse,
332
- /**
333
- * @param {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest} request
334
- * @return {!Uint8Array}
335
- */
336
- function(request) {
337
- return request.serializeBinary();
338
- },
339
- proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.deserializeBinary
340
- );
341
-
342
-
343
- /**
344
- * @param {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest} request The
345
- * request proto
346
- * @param {?Object<string, string>} metadata User defined
347
- * call metadata
348
- * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse)}
349
- * callback The callback function(error, response)
350
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse>|undefined}
351
- * The XHR Node Readable Stream
352
- */
353
- proto.org.dash.platform.dapi.v0.PlatformClient.prototype.getIdentitiesByPublicKeyHashes =
354
- function(request, metadata, callback) {
355
- return this.client_.rpcCall(this.hostname_ +
356
- '/org.dash.platform.dapi.v0.Platform/getIdentitiesByPublicKeyHashes',
357
- request,
358
- metadata || {},
359
- methodDescriptor_Platform_getIdentitiesByPublicKeyHashes,
360
- callback);
361
- };
362
-
363
-
364
- /**
365
- * @param {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest} request The
366
- * request proto
367
- * @param {?Object<string, string>=} metadata User defined
368
- * call metadata
369
- * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse>}
370
- * Promise that resolves to the response
371
- */
372
- proto.org.dash.platform.dapi.v0.PlatformPromiseClient.prototype.getIdentitiesByPublicKeyHashes =
373
- function(request, metadata) {
374
- return this.client_.unaryCall(this.hostname_ +
375
- '/org.dash.platform.dapi.v0.Platform/getIdentitiesByPublicKeyHashes',
376
- request,
377
- metadata || {},
378
- methodDescriptor_Platform_getIdentitiesByPublicKeyHashes);
379
- };
380
-
381
-
382
- /**
383
- * @const
384
- * @type {!grpc.web.MethodDescriptor<
385
- * !proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest,
386
- * !proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse>}
387
- */
388
- const methodDescriptor_Platform_waitForStateTransitionResult = new grpc.web.MethodDescriptor(
389
- '/org.dash.platform.dapi.v0.Platform/waitForStateTransitionResult',
390
- grpc.web.MethodType.UNARY,
391
- proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest,
392
- proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse,
393
- /**
394
- * @param {!proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest} request
395
- * @return {!Uint8Array}
396
- */
397
- function(request) {
398
- return request.serializeBinary();
399
- },
400
- proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.deserializeBinary
401
- );
402
-
403
-
404
- /**
405
- * @param {!proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest} request The
406
- * request proto
407
- * @param {?Object<string, string>} metadata User defined
408
- * call metadata
409
- * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse)}
410
- * callback The callback function(error, response)
411
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse>|undefined}
412
- * The XHR Node Readable Stream
413
- */
414
- proto.org.dash.platform.dapi.v0.PlatformClient.prototype.waitForStateTransitionResult =
415
- function(request, metadata, callback) {
416
- return this.client_.rpcCall(this.hostname_ +
417
- '/org.dash.platform.dapi.v0.Platform/waitForStateTransitionResult',
418
- request,
419
- metadata || {},
420
- methodDescriptor_Platform_waitForStateTransitionResult,
421
- callback);
422
- };
423
-
424
-
425
- /**
426
- * @param {!proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest} request The
427
- * request proto
428
- * @param {?Object<string, string>=} metadata User defined
429
- * call metadata
430
- * @return {!Promise<!proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse>}
431
- * Promise that resolves to the response
432
- */
433
- proto.org.dash.platform.dapi.v0.PlatformPromiseClient.prototype.waitForStateTransitionResult =
434
- function(request, metadata) {
435
- return this.client_.unaryCall(this.hostname_ +
436
- '/org.dash.platform.dapi.v0.Platform/waitForStateTransitionResult',
437
- request,
438
- metadata || {},
439
- methodDescriptor_Platform_waitForStateTransitionResult);
440
- };
441
-
442
-
443
- /**
444
- * @const
445
- * @type {!grpc.web.MethodDescriptor<
446
- * !proto.org.dash.platform.dapi.v0.GetConsensusParamsRequest,
447
- * !proto.org.dash.platform.dapi.v0.GetConsensusParamsResponse>}
448
- */
449
- const methodDescriptor_Platform_getConsensusParams = new grpc.web.MethodDescriptor(
450
- '/org.dash.platform.dapi.v0.Platform/getConsensusParams',
451
- grpc.web.MethodType.UNARY,
452
- proto.org.dash.platform.dapi.v0.GetConsensusParamsRequest,
453
- proto.org.dash.platform.dapi.v0.GetConsensusParamsResponse,
454
- /**
455
- * @param {!proto.org.dash.platform.dapi.v0.GetConsensusParamsRequest} request
456
- * @return {!Uint8Array}
457
- */
458
- function(request) {
459
- return request.serializeBinary();
460
- },
461
- proto.org.dash.platform.dapi.v0.GetConsensusParamsResponse.deserializeBinary
462
- );
463
-
464
-
465
- /**
466
- * @param {!proto.org.dash.platform.dapi.v0.GetConsensusParamsRequest} request The
467
- * request proto
468
- * @param {?Object<string, string>} metadata User defined
469
- * call metadata
470
- * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetConsensusParamsResponse)}
471
- * callback The callback function(error, response)
472
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetConsensusParamsResponse>|undefined}
473
- * The XHR Node Readable Stream
474
- */
475
- proto.org.dash.platform.dapi.v0.PlatformClient.prototype.getConsensusParams =
476
- function(request, metadata, callback) {
477
- return this.client_.rpcCall(this.hostname_ +
478
- '/org.dash.platform.dapi.v0.Platform/getConsensusParams',
479
- request,
480
- metadata || {},
481
- methodDescriptor_Platform_getConsensusParams,
482
- callback);
483
- };
484
-
485
-
486
- /**
487
- * @param {!proto.org.dash.platform.dapi.v0.GetConsensusParamsRequest} request The
488
- * request proto
489
- * @param {?Object<string, string>=} metadata User defined
490
- * call metadata
491
- * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetConsensusParamsResponse>}
492
- * Promise that resolves to the response
493
- */
494
- proto.org.dash.platform.dapi.v0.PlatformPromiseClient.prototype.getConsensusParams =
495
- function(request, metadata) {
496
- return this.client_.unaryCall(this.hostname_ +
497
- '/org.dash.platform.dapi.v0.Platform/getConsensusParams',
498
- request,
499
- metadata || {},
500
- methodDescriptor_Platform_getConsensusParams);
501
- };
502
-
503
-
504
- module.exports = proto.org.dash.platform.dapi.v0;
505
-