@dashevo/dapi-grpc 0.24.0-dev.6 → 0.25.0-dev.1

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