@dashevo/dapi-grpc 0.23.0-dev.9 → 0.23.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,495 +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('./core_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.CoreClient =
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.CorePromiseClient =
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.GetStatusRequest,
81
- * !proto.org.dash.platform.dapi.v0.GetStatusResponse>}
82
- */
83
- const methodDescriptor_Core_getStatus = new grpc.web.MethodDescriptor(
84
- '/org.dash.platform.dapi.v0.Core/getStatus',
85
- grpc.web.MethodType.UNARY,
86
- proto.org.dash.platform.dapi.v0.GetStatusRequest,
87
- proto.org.dash.platform.dapi.v0.GetStatusResponse,
88
- /**
89
- * @param {!proto.org.dash.platform.dapi.v0.GetStatusRequest} request
90
- * @return {!Uint8Array}
91
- */
92
- function(request) {
93
- return request.serializeBinary();
94
- },
95
- proto.org.dash.platform.dapi.v0.GetStatusResponse.deserializeBinary
96
- );
97
-
98
-
99
- /**
100
- * @param {!proto.org.dash.platform.dapi.v0.GetStatusRequest} 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.GetStatusResponse)}
105
- * callback The callback function(error, response)
106
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetStatusResponse>|undefined}
107
- * The XHR Node Readable Stream
108
- */
109
- proto.org.dash.platform.dapi.v0.CoreClient.prototype.getStatus =
110
- function(request, metadata, callback) {
111
- return this.client_.rpcCall(this.hostname_ +
112
- '/org.dash.platform.dapi.v0.Core/getStatus',
113
- request,
114
- metadata || {},
115
- methodDescriptor_Core_getStatus,
116
- callback);
117
- };
118
-
119
-
120
- /**
121
- * @param {!proto.org.dash.platform.dapi.v0.GetStatusRequest} 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.GetStatusResponse>}
126
- * Promise that resolves to the response
127
- */
128
- proto.org.dash.platform.dapi.v0.CorePromiseClient.prototype.getStatus =
129
- function(request, metadata) {
130
- return this.client_.unaryCall(this.hostname_ +
131
- '/org.dash.platform.dapi.v0.Core/getStatus',
132
- request,
133
- metadata || {},
134
- methodDescriptor_Core_getStatus);
135
- };
136
-
137
-
138
- /**
139
- * @const
140
- * @type {!grpc.web.MethodDescriptor<
141
- * !proto.org.dash.platform.dapi.v0.GetBlockRequest,
142
- * !proto.org.dash.platform.dapi.v0.GetBlockResponse>}
143
- */
144
- const methodDescriptor_Core_getBlock = new grpc.web.MethodDescriptor(
145
- '/org.dash.platform.dapi.v0.Core/getBlock',
146
- grpc.web.MethodType.UNARY,
147
- proto.org.dash.platform.dapi.v0.GetBlockRequest,
148
- proto.org.dash.platform.dapi.v0.GetBlockResponse,
149
- /**
150
- * @param {!proto.org.dash.platform.dapi.v0.GetBlockRequest} request
151
- * @return {!Uint8Array}
152
- */
153
- function(request) {
154
- return request.serializeBinary();
155
- },
156
- proto.org.dash.platform.dapi.v0.GetBlockResponse.deserializeBinary
157
- );
158
-
159
-
160
- /**
161
- * @param {!proto.org.dash.platform.dapi.v0.GetBlockRequest} 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.GetBlockResponse)}
166
- * callback The callback function(error, response)
167
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetBlockResponse>|undefined}
168
- * The XHR Node Readable Stream
169
- */
170
- proto.org.dash.platform.dapi.v0.CoreClient.prototype.getBlock =
171
- function(request, metadata, callback) {
172
- return this.client_.rpcCall(this.hostname_ +
173
- '/org.dash.platform.dapi.v0.Core/getBlock',
174
- request,
175
- metadata || {},
176
- methodDescriptor_Core_getBlock,
177
- callback);
178
- };
179
-
180
-
181
- /**
182
- * @param {!proto.org.dash.platform.dapi.v0.GetBlockRequest} 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.GetBlockResponse>}
187
- * Promise that resolves to the response
188
- */
189
- proto.org.dash.platform.dapi.v0.CorePromiseClient.prototype.getBlock =
190
- function(request, metadata) {
191
- return this.client_.unaryCall(this.hostname_ +
192
- '/org.dash.platform.dapi.v0.Core/getBlock',
193
- request,
194
- metadata || {},
195
- methodDescriptor_Core_getBlock);
196
- };
197
-
198
-
199
- /**
200
- * @const
201
- * @type {!grpc.web.MethodDescriptor<
202
- * !proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest,
203
- * !proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse>}
204
- */
205
- const methodDescriptor_Core_broadcastTransaction = new grpc.web.MethodDescriptor(
206
- '/org.dash.platform.dapi.v0.Core/broadcastTransaction',
207
- grpc.web.MethodType.UNARY,
208
- proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest,
209
- proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse,
210
- /**
211
- * @param {!proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest} request
212
- * @return {!Uint8Array}
213
- */
214
- function(request) {
215
- return request.serializeBinary();
216
- },
217
- proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse.deserializeBinary
218
- );
219
-
220
-
221
- /**
222
- * @param {!proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest} 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.BroadcastTransactionResponse)}
227
- * callback The callback function(error, response)
228
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse>|undefined}
229
- * The XHR Node Readable Stream
230
- */
231
- proto.org.dash.platform.dapi.v0.CoreClient.prototype.broadcastTransaction =
232
- function(request, metadata, callback) {
233
- return this.client_.rpcCall(this.hostname_ +
234
- '/org.dash.platform.dapi.v0.Core/broadcastTransaction',
235
- request,
236
- metadata || {},
237
- methodDescriptor_Core_broadcastTransaction,
238
- callback);
239
- };
240
-
241
-
242
- /**
243
- * @param {!proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest} 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.BroadcastTransactionResponse>}
248
- * Promise that resolves to the response
249
- */
250
- proto.org.dash.platform.dapi.v0.CorePromiseClient.prototype.broadcastTransaction =
251
- function(request, metadata) {
252
- return this.client_.unaryCall(this.hostname_ +
253
- '/org.dash.platform.dapi.v0.Core/broadcastTransaction',
254
- request,
255
- metadata || {},
256
- methodDescriptor_Core_broadcastTransaction);
257
- };
258
-
259
-
260
- /**
261
- * @const
262
- * @type {!grpc.web.MethodDescriptor<
263
- * !proto.org.dash.platform.dapi.v0.GetTransactionRequest,
264
- * !proto.org.dash.platform.dapi.v0.GetTransactionResponse>}
265
- */
266
- const methodDescriptor_Core_getTransaction = new grpc.web.MethodDescriptor(
267
- '/org.dash.platform.dapi.v0.Core/getTransaction',
268
- grpc.web.MethodType.UNARY,
269
- proto.org.dash.platform.dapi.v0.GetTransactionRequest,
270
- proto.org.dash.platform.dapi.v0.GetTransactionResponse,
271
- /**
272
- * @param {!proto.org.dash.platform.dapi.v0.GetTransactionRequest} request
273
- * @return {!Uint8Array}
274
- */
275
- function(request) {
276
- return request.serializeBinary();
277
- },
278
- proto.org.dash.platform.dapi.v0.GetTransactionResponse.deserializeBinary
279
- );
280
-
281
-
282
- /**
283
- * @param {!proto.org.dash.platform.dapi.v0.GetTransactionRequest} 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.GetTransactionResponse)}
288
- * callback The callback function(error, response)
289
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetTransactionResponse>|undefined}
290
- * The XHR Node Readable Stream
291
- */
292
- proto.org.dash.platform.dapi.v0.CoreClient.prototype.getTransaction =
293
- function(request, metadata, callback) {
294
- return this.client_.rpcCall(this.hostname_ +
295
- '/org.dash.platform.dapi.v0.Core/getTransaction',
296
- request,
297
- metadata || {},
298
- methodDescriptor_Core_getTransaction,
299
- callback);
300
- };
301
-
302
-
303
- /**
304
- * @param {!proto.org.dash.platform.dapi.v0.GetTransactionRequest} 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.GetTransactionResponse>}
309
- * Promise that resolves to the response
310
- */
311
- proto.org.dash.platform.dapi.v0.CorePromiseClient.prototype.getTransaction =
312
- function(request, metadata) {
313
- return this.client_.unaryCall(this.hostname_ +
314
- '/org.dash.platform.dapi.v0.Core/getTransaction',
315
- request,
316
- metadata || {},
317
- methodDescriptor_Core_getTransaction);
318
- };
319
-
320
-
321
- /**
322
- * @const
323
- * @type {!grpc.web.MethodDescriptor<
324
- * !proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeRequest,
325
- * !proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeResponse>}
326
- */
327
- const methodDescriptor_Core_getEstimatedTransactionFee = new grpc.web.MethodDescriptor(
328
- '/org.dash.platform.dapi.v0.Core/getEstimatedTransactionFee',
329
- grpc.web.MethodType.UNARY,
330
- proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeRequest,
331
- proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeResponse,
332
- /**
333
- * @param {!proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeRequest} request
334
- * @return {!Uint8Array}
335
- */
336
- function(request) {
337
- return request.serializeBinary();
338
- },
339
- proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeResponse.deserializeBinary
340
- );
341
-
342
-
343
- /**
344
- * @param {!proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeRequest} 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.GetEstimatedTransactionFeeResponse)}
349
- * callback The callback function(error, response)
350
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeResponse>|undefined}
351
- * The XHR Node Readable Stream
352
- */
353
- proto.org.dash.platform.dapi.v0.CoreClient.prototype.getEstimatedTransactionFee =
354
- function(request, metadata, callback) {
355
- return this.client_.rpcCall(this.hostname_ +
356
- '/org.dash.platform.dapi.v0.Core/getEstimatedTransactionFee',
357
- request,
358
- metadata || {},
359
- methodDescriptor_Core_getEstimatedTransactionFee,
360
- callback);
361
- };
362
-
363
-
364
- /**
365
- * @param {!proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeRequest} 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.GetEstimatedTransactionFeeResponse>}
370
- * Promise that resolves to the response
371
- */
372
- proto.org.dash.platform.dapi.v0.CorePromiseClient.prototype.getEstimatedTransactionFee =
373
- function(request, metadata) {
374
- return this.client_.unaryCall(this.hostname_ +
375
- '/org.dash.platform.dapi.v0.Core/getEstimatedTransactionFee',
376
- request,
377
- metadata || {},
378
- methodDescriptor_Core_getEstimatedTransactionFee);
379
- };
380
-
381
-
382
- /**
383
- * @const
384
- * @type {!grpc.web.MethodDescriptor<
385
- * !proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest,
386
- * !proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse>}
387
- */
388
- const methodDescriptor_Core_subscribeToBlockHeadersWithChainLocks = new grpc.web.MethodDescriptor(
389
- '/org.dash.platform.dapi.v0.Core/subscribeToBlockHeadersWithChainLocks',
390
- grpc.web.MethodType.SERVER_STREAMING,
391
- proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest,
392
- proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse,
393
- /**
394
- * @param {!proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest} request
395
- * @return {!Uint8Array}
396
- */
397
- function(request) {
398
- return request.serializeBinary();
399
- },
400
- proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.deserializeBinary
401
- );
402
-
403
-
404
- /**
405
- * @param {!proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest} request The request proto
406
- * @param {?Object<string, string>=} metadata User defined
407
- * call metadata
408
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse>}
409
- * The XHR Node Readable Stream
410
- */
411
- proto.org.dash.platform.dapi.v0.CoreClient.prototype.subscribeToBlockHeadersWithChainLocks =
412
- function(request, metadata) {
413
- return this.client_.serverStreaming(this.hostname_ +
414
- '/org.dash.platform.dapi.v0.Core/subscribeToBlockHeadersWithChainLocks',
415
- request,
416
- metadata || {},
417
- methodDescriptor_Core_subscribeToBlockHeadersWithChainLocks);
418
- };
419
-
420
-
421
- /**
422
- * @param {!proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest} request The request proto
423
- * @param {?Object<string, string>=} metadata User defined
424
- * call metadata
425
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse>}
426
- * The XHR Node Readable Stream
427
- */
428
- proto.org.dash.platform.dapi.v0.CorePromiseClient.prototype.subscribeToBlockHeadersWithChainLocks =
429
- function(request, metadata) {
430
- return this.client_.serverStreaming(this.hostname_ +
431
- '/org.dash.platform.dapi.v0.Core/subscribeToBlockHeadersWithChainLocks',
432
- request,
433
- metadata || {},
434
- methodDescriptor_Core_subscribeToBlockHeadersWithChainLocks);
435
- };
436
-
437
-
438
- /**
439
- * @const
440
- * @type {!grpc.web.MethodDescriptor<
441
- * !proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest,
442
- * !proto.org.dash.platform.dapi.v0.TransactionsWithProofsResponse>}
443
- */
444
- const methodDescriptor_Core_subscribeToTransactionsWithProofs = new grpc.web.MethodDescriptor(
445
- '/org.dash.platform.dapi.v0.Core/subscribeToTransactionsWithProofs',
446
- grpc.web.MethodType.SERVER_STREAMING,
447
- proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest,
448
- proto.org.dash.platform.dapi.v0.TransactionsWithProofsResponse,
449
- /**
450
- * @param {!proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest} request
451
- * @return {!Uint8Array}
452
- */
453
- function(request) {
454
- return request.serializeBinary();
455
- },
456
- proto.org.dash.platform.dapi.v0.TransactionsWithProofsResponse.deserializeBinary
457
- );
458
-
459
-
460
- /**
461
- * @param {!proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest} request The request proto
462
- * @param {?Object<string, string>=} metadata User defined
463
- * call metadata
464
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.TransactionsWithProofsResponse>}
465
- * The XHR Node Readable Stream
466
- */
467
- proto.org.dash.platform.dapi.v0.CoreClient.prototype.subscribeToTransactionsWithProofs =
468
- function(request, metadata) {
469
- return this.client_.serverStreaming(this.hostname_ +
470
- '/org.dash.platform.dapi.v0.Core/subscribeToTransactionsWithProofs',
471
- request,
472
- metadata || {},
473
- methodDescriptor_Core_subscribeToTransactionsWithProofs);
474
- };
475
-
476
-
477
- /**
478
- * @param {!proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest} request The request proto
479
- * @param {?Object<string, string>=} metadata User defined
480
- * call metadata
481
- * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.TransactionsWithProofsResponse>}
482
- * The XHR Node Readable Stream
483
- */
484
- proto.org.dash.platform.dapi.v0.CorePromiseClient.prototype.subscribeToTransactionsWithProofs =
485
- function(request, metadata) {
486
- return this.client_.serverStreaming(this.hostname_ +
487
- '/org.dash.platform.dapi.v0.Core/subscribeToTransactionsWithProofs',
488
- request,
489
- metadata || {},
490
- methodDescriptor_Core_subscribeToTransactionsWithProofs);
491
- };
492
-
493
-
494
- module.exports = proto.org.dash.platform.dapi.v0;
495
-