@dashevo/dapi-grpc 0.22.6 → 0.23.0-dev.2

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/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # DAPI GRPC
2
2
 
3
- [![Build Status](https://github.com/dashevo/dapi-grpc/actions/workflows/test_and_release.yml/badge.svg)](https://github.com/dashevo/dapi-grpc/actions/workflows/test_and_release.yml)
3
+ [![Build Status](https://github.com/dashevo/platform/actions/workflows/release.yml/badge.svg)](https://github.com/dashevo/platform/actions/workflows/release.yml)
4
4
  [![NPM version](https://img.shields.io/npm/v/@dashevo/dapi-grpc.svg)](https://npmjs.org/package/@dashevo/dapi-grpc)
5
- [![Release Date](https://img.shields.io/github/release-date/dashevo/dapi-grpc)](https://github.com/dashevo/dapi-grpc/releases/latest)
5
+ [![Release Date](https://img.shields.io/github/release-date/dashevo/platform)](https://github.com/dashevo/platform/releases/latest)
6
6
  [![license](https://img.shields.io/github/license/dashevo/dapi-grpc.svg)](LICENSE)
7
7
 
8
8
  Decentralized API GRPC definition files and generated clients
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeaders', null, global);
19
25
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest', null, global);
@@ -25,7 +25,7 @@ proto.org.dash.platform.dapi.v0 = require('./core_pb.js');
25
25
  /**
26
26
  * @param {string} hostname
27
27
  * @param {?Object} credentials
28
- * @param {?Object} options
28
+ * @param {?grpc.web.ClientOptions} options
29
29
  * @constructor
30
30
  * @struct
31
31
  * @final
@@ -33,7 +33,7 @@ proto.org.dash.platform.dapi.v0 = require('./core_pb.js');
33
33
  proto.org.dash.platform.dapi.v0.CoreClient =
34
34
  function(hostname, credentials, options) {
35
35
  if (!options) options = {};
36
- options['format'] = 'text';
36
+ options.format = 'text';
37
37
 
38
38
  /**
39
39
  * @private @const {!grpc.web.GrpcWebClientBase} The client
@@ -51,7 +51,7 @@ proto.org.dash.platform.dapi.v0.CoreClient =
51
51
  /**
52
52
  * @param {string} hostname
53
53
  * @param {?Object} credentials
54
- * @param {?Object} options
54
+ * @param {?grpc.web.ClientOptions} options
55
55
  * @constructor
56
56
  * @struct
57
57
  * @final
@@ -59,7 +59,7 @@ proto.org.dash.platform.dapi.v0.CoreClient =
59
59
  proto.org.dash.platform.dapi.v0.CorePromiseClient =
60
60
  function(hostname, credentials, options) {
61
61
  if (!options) options = {};
62
- options['format'] = 'text';
62
+ options.format = 'text';
63
63
 
64
64
  /**
65
65
  * @private @const {!grpc.web.GrpcWebClientBase} The client
@@ -96,31 +96,12 @@ const methodDescriptor_Core_getStatus = new grpc.web.MethodDescriptor(
96
96
  );
97
97
 
98
98
 
99
- /**
100
- * @const
101
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
102
- * !proto.org.dash.platform.dapi.v0.GetStatusRequest,
103
- * !proto.org.dash.platform.dapi.v0.GetStatusResponse>}
104
- */
105
- const methodInfo_Core_getStatus = new grpc.web.AbstractClientBase.MethodInfo(
106
- proto.org.dash.platform.dapi.v0.GetStatusResponse,
107
- /**
108
- * @param {!proto.org.dash.platform.dapi.v0.GetStatusRequest} request
109
- * @return {!Uint8Array}
110
- */
111
- function(request) {
112
- return request.serializeBinary();
113
- },
114
- proto.org.dash.platform.dapi.v0.GetStatusResponse.deserializeBinary
115
- );
116
-
117
-
118
99
  /**
119
100
  * @param {!proto.org.dash.platform.dapi.v0.GetStatusRequest} request The
120
101
  * request proto
121
102
  * @param {?Object<string, string>} metadata User defined
122
103
  * call metadata
123
- * @param {function(?grpc.web.Error, ?proto.org.dash.platform.dapi.v0.GetStatusResponse)}
104
+ * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetStatusResponse)}
124
105
  * callback The callback function(error, response)
125
106
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetStatusResponse>|undefined}
126
107
  * The XHR Node Readable Stream
@@ -139,7 +120,7 @@ proto.org.dash.platform.dapi.v0.CoreClient.prototype.getStatus =
139
120
  /**
140
121
  * @param {!proto.org.dash.platform.dapi.v0.GetStatusRequest} request The
141
122
  * request proto
142
- * @param {?Object<string, string>} metadata User defined
123
+ * @param {?Object<string, string>=} metadata User defined
143
124
  * call metadata
144
125
  * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetStatusResponse>}
145
126
  * Promise that resolves to the response
@@ -176,31 +157,12 @@ const methodDescriptor_Core_getBlock = new grpc.web.MethodDescriptor(
176
157
  );
177
158
 
178
159
 
179
- /**
180
- * @const
181
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
182
- * !proto.org.dash.platform.dapi.v0.GetBlockRequest,
183
- * !proto.org.dash.platform.dapi.v0.GetBlockResponse>}
184
- */
185
- const methodInfo_Core_getBlock = new grpc.web.AbstractClientBase.MethodInfo(
186
- proto.org.dash.platform.dapi.v0.GetBlockResponse,
187
- /**
188
- * @param {!proto.org.dash.platform.dapi.v0.GetBlockRequest} request
189
- * @return {!Uint8Array}
190
- */
191
- function(request) {
192
- return request.serializeBinary();
193
- },
194
- proto.org.dash.platform.dapi.v0.GetBlockResponse.deserializeBinary
195
- );
196
-
197
-
198
160
  /**
199
161
  * @param {!proto.org.dash.platform.dapi.v0.GetBlockRequest} request The
200
162
  * request proto
201
163
  * @param {?Object<string, string>} metadata User defined
202
164
  * call metadata
203
- * @param {function(?grpc.web.Error, ?proto.org.dash.platform.dapi.v0.GetBlockResponse)}
165
+ * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetBlockResponse)}
204
166
  * callback The callback function(error, response)
205
167
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetBlockResponse>|undefined}
206
168
  * The XHR Node Readable Stream
@@ -219,7 +181,7 @@ proto.org.dash.platform.dapi.v0.CoreClient.prototype.getBlock =
219
181
  /**
220
182
  * @param {!proto.org.dash.platform.dapi.v0.GetBlockRequest} request The
221
183
  * request proto
222
- * @param {?Object<string, string>} metadata User defined
184
+ * @param {?Object<string, string>=} metadata User defined
223
185
  * call metadata
224
186
  * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetBlockResponse>}
225
187
  * Promise that resolves to the response
@@ -256,31 +218,12 @@ const methodDescriptor_Core_broadcastTransaction = new grpc.web.MethodDescriptor
256
218
  );
257
219
 
258
220
 
259
- /**
260
- * @const
261
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
262
- * !proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest,
263
- * !proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse>}
264
- */
265
- const methodInfo_Core_broadcastTransaction = new grpc.web.AbstractClientBase.MethodInfo(
266
- proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse,
267
- /**
268
- * @param {!proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest} request
269
- * @return {!Uint8Array}
270
- */
271
- function(request) {
272
- return request.serializeBinary();
273
- },
274
- proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse.deserializeBinary
275
- );
276
-
277
-
278
221
  /**
279
222
  * @param {!proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest} request The
280
223
  * request proto
281
224
  * @param {?Object<string, string>} metadata User defined
282
225
  * call metadata
283
- * @param {function(?grpc.web.Error, ?proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse)}
226
+ * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse)}
284
227
  * callback The callback function(error, response)
285
228
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse>|undefined}
286
229
  * The XHR Node Readable Stream
@@ -299,7 +242,7 @@ proto.org.dash.platform.dapi.v0.CoreClient.prototype.broadcastTransaction =
299
242
  /**
300
243
  * @param {!proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest} request The
301
244
  * request proto
302
- * @param {?Object<string, string>} metadata User defined
245
+ * @param {?Object<string, string>=} metadata User defined
303
246
  * call metadata
304
247
  * @return {!Promise<!proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse>}
305
248
  * Promise that resolves to the response
@@ -336,31 +279,12 @@ const methodDescriptor_Core_getTransaction = new grpc.web.MethodDescriptor(
336
279
  );
337
280
 
338
281
 
339
- /**
340
- * @const
341
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
342
- * !proto.org.dash.platform.dapi.v0.GetTransactionRequest,
343
- * !proto.org.dash.platform.dapi.v0.GetTransactionResponse>}
344
- */
345
- const methodInfo_Core_getTransaction = new grpc.web.AbstractClientBase.MethodInfo(
346
- proto.org.dash.platform.dapi.v0.GetTransactionResponse,
347
- /**
348
- * @param {!proto.org.dash.platform.dapi.v0.GetTransactionRequest} request
349
- * @return {!Uint8Array}
350
- */
351
- function(request) {
352
- return request.serializeBinary();
353
- },
354
- proto.org.dash.platform.dapi.v0.GetTransactionResponse.deserializeBinary
355
- );
356
-
357
-
358
282
  /**
359
283
  * @param {!proto.org.dash.platform.dapi.v0.GetTransactionRequest} request The
360
284
  * request proto
361
285
  * @param {?Object<string, string>} metadata User defined
362
286
  * call metadata
363
- * @param {function(?grpc.web.Error, ?proto.org.dash.platform.dapi.v0.GetTransactionResponse)}
287
+ * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetTransactionResponse)}
364
288
  * callback The callback function(error, response)
365
289
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetTransactionResponse>|undefined}
366
290
  * The XHR Node Readable Stream
@@ -379,7 +303,7 @@ proto.org.dash.platform.dapi.v0.CoreClient.prototype.getTransaction =
379
303
  /**
380
304
  * @param {!proto.org.dash.platform.dapi.v0.GetTransactionRequest} request The
381
305
  * request proto
382
- * @param {?Object<string, string>} metadata User defined
306
+ * @param {?Object<string, string>=} metadata User defined
383
307
  * call metadata
384
308
  * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetTransactionResponse>}
385
309
  * Promise that resolves to the response
@@ -416,31 +340,12 @@ const methodDescriptor_Core_getEstimatedTransactionFee = new grpc.web.MethodDesc
416
340
  );
417
341
 
418
342
 
419
- /**
420
- * @const
421
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
422
- * !proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeRequest,
423
- * !proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeResponse>}
424
- */
425
- const methodInfo_Core_getEstimatedTransactionFee = new grpc.web.AbstractClientBase.MethodInfo(
426
- proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeResponse,
427
- /**
428
- * @param {!proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeRequest} request
429
- * @return {!Uint8Array}
430
- */
431
- function(request) {
432
- return request.serializeBinary();
433
- },
434
- proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeResponse.deserializeBinary
435
- );
436
-
437
-
438
343
  /**
439
344
  * @param {!proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeRequest} request The
440
345
  * request proto
441
346
  * @param {?Object<string, string>} metadata User defined
442
347
  * call metadata
443
- * @param {function(?grpc.web.Error, ?proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeResponse)}
348
+ * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeResponse)}
444
349
  * callback The callback function(error, response)
445
350
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeResponse>|undefined}
446
351
  * The XHR Node Readable Stream
@@ -459,7 +364,7 @@ proto.org.dash.platform.dapi.v0.CoreClient.prototype.getEstimatedTransactionFee
459
364
  /**
460
365
  * @param {!proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeRequest} request The
461
366
  * request proto
462
- * @param {?Object<string, string>} metadata User defined
367
+ * @param {?Object<string, string>=} metadata User defined
463
368
  * call metadata
464
369
  * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeResponse>}
465
370
  * Promise that resolves to the response
@@ -496,28 +401,9 @@ const methodDescriptor_Core_subscribeToBlockHeadersWithChainLocks = new grpc.web
496
401
  );
497
402
 
498
403
 
499
- /**
500
- * @const
501
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
502
- * !proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest,
503
- * !proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse>}
504
- */
505
- const methodInfo_Core_subscribeToBlockHeadersWithChainLocks = new grpc.web.AbstractClientBase.MethodInfo(
506
- proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse,
507
- /**
508
- * @param {!proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest} request
509
- * @return {!Uint8Array}
510
- */
511
- function(request) {
512
- return request.serializeBinary();
513
- },
514
- proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.deserializeBinary
515
- );
516
-
517
-
518
404
  /**
519
405
  * @param {!proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest} request The request proto
520
- * @param {?Object<string, string>} metadata User defined
406
+ * @param {?Object<string, string>=} metadata User defined
521
407
  * call metadata
522
408
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse>}
523
409
  * The XHR Node Readable Stream
@@ -534,7 +420,7 @@ proto.org.dash.platform.dapi.v0.CoreClient.prototype.subscribeToBlockHeadersWith
534
420
 
535
421
  /**
536
422
  * @param {!proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest} request The request proto
537
- * @param {?Object<string, string>} metadata User defined
423
+ * @param {?Object<string, string>=} metadata User defined
538
424
  * call metadata
539
425
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse>}
540
426
  * The XHR Node Readable Stream
@@ -571,28 +457,9 @@ const methodDescriptor_Core_subscribeToTransactionsWithProofs = new grpc.web.Met
571
457
  );
572
458
 
573
459
 
574
- /**
575
- * @const
576
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
577
- * !proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest,
578
- * !proto.org.dash.platform.dapi.v0.TransactionsWithProofsResponse>}
579
- */
580
- const methodInfo_Core_subscribeToTransactionsWithProofs = new grpc.web.AbstractClientBase.MethodInfo(
581
- proto.org.dash.platform.dapi.v0.TransactionsWithProofsResponse,
582
- /**
583
- * @param {!proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest} request
584
- * @return {!Uint8Array}
585
- */
586
- function(request) {
587
- return request.serializeBinary();
588
- },
589
- proto.org.dash.platform.dapi.v0.TransactionsWithProofsResponse.deserializeBinary
590
- );
591
-
592
-
593
460
  /**
594
461
  * @param {!proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest} request The request proto
595
- * @param {?Object<string, string>} metadata User defined
462
+ * @param {?Object<string, string>=} metadata User defined
596
463
  * call metadata
597
464
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.TransactionsWithProofsResponse>}
598
465
  * The XHR Node Readable Stream
@@ -609,7 +476,7 @@ proto.org.dash.platform.dapi.v0.CoreClient.prototype.subscribeToTransactionsWith
609
476
 
610
477
  /**
611
478
  * @param {!proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest} request The request proto
612
- * @param {?Object<string, string>} metadata User defined
479
+ * @param {?Object<string, string>=} metadata User defined
613
480
  * call metadata
614
481
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.TransactionsWithProofsResponse>}
615
482
  * The XHR Node Readable Stream
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeaders', null, global);
19
25
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest', null, global);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest', null, global);
19
25
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse', null, global);
@@ -25,7 +25,7 @@ proto.org.dash.platform.dapi.v0 = require('./platform_pb.js');
25
25
  /**
26
26
  * @param {string} hostname
27
27
  * @param {?Object} credentials
28
- * @param {?Object} options
28
+ * @param {?grpc.web.ClientOptions} options
29
29
  * @constructor
30
30
  * @struct
31
31
  * @final
@@ -33,7 +33,7 @@ proto.org.dash.platform.dapi.v0 = require('./platform_pb.js');
33
33
  proto.org.dash.platform.dapi.v0.PlatformClient =
34
34
  function(hostname, credentials, options) {
35
35
  if (!options) options = {};
36
- options['format'] = 'text';
36
+ options.format = 'text';
37
37
 
38
38
  /**
39
39
  * @private @const {!grpc.web.GrpcWebClientBase} The client
@@ -51,7 +51,7 @@ proto.org.dash.platform.dapi.v0.PlatformClient =
51
51
  /**
52
52
  * @param {string} hostname
53
53
  * @param {?Object} credentials
54
- * @param {?Object} options
54
+ * @param {?grpc.web.ClientOptions} options
55
55
  * @constructor
56
56
  * @struct
57
57
  * @final
@@ -59,7 +59,7 @@ proto.org.dash.platform.dapi.v0.PlatformClient =
59
59
  proto.org.dash.platform.dapi.v0.PlatformPromiseClient =
60
60
  function(hostname, credentials, options) {
61
61
  if (!options) options = {};
62
- options['format'] = 'text';
62
+ options.format = 'text';
63
63
 
64
64
  /**
65
65
  * @private @const {!grpc.web.GrpcWebClientBase} The client
@@ -96,31 +96,12 @@ const methodDescriptor_Platform_broadcastStateTransition = new grpc.web.MethodDe
96
96
  );
97
97
 
98
98
 
99
- /**
100
- * @const
101
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
102
- * !proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest,
103
- * !proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse>}
104
- */
105
- const methodInfo_Platform_broadcastStateTransition = new grpc.web.AbstractClientBase.MethodInfo(
106
- proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse,
107
- /**
108
- * @param {!proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest} request
109
- * @return {!Uint8Array}
110
- */
111
- function(request) {
112
- return request.serializeBinary();
113
- },
114
- proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse.deserializeBinary
115
- );
116
-
117
-
118
99
  /**
119
100
  * @param {!proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest} request The
120
101
  * request proto
121
102
  * @param {?Object<string, string>} metadata User defined
122
103
  * call metadata
123
- * @param {function(?grpc.web.Error, ?proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse)}
104
+ * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse)}
124
105
  * callback The callback function(error, response)
125
106
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse>|undefined}
126
107
  * The XHR Node Readable Stream
@@ -139,7 +120,7 @@ proto.org.dash.platform.dapi.v0.PlatformClient.prototype.broadcastStateTransitio
139
120
  /**
140
121
  * @param {!proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest} request The
141
122
  * request proto
142
- * @param {?Object<string, string>} metadata User defined
123
+ * @param {?Object<string, string>=} metadata User defined
143
124
  * call metadata
144
125
  * @return {!Promise<!proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse>}
145
126
  * Promise that resolves to the response
@@ -176,31 +157,12 @@ const methodDescriptor_Platform_getIdentity = new grpc.web.MethodDescriptor(
176
157
  );
177
158
 
178
159
 
179
- /**
180
- * @const
181
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
182
- * !proto.org.dash.platform.dapi.v0.GetIdentityRequest,
183
- * !proto.org.dash.platform.dapi.v0.GetIdentityResponse>}
184
- */
185
- const methodInfo_Platform_getIdentity = new grpc.web.AbstractClientBase.MethodInfo(
186
- proto.org.dash.platform.dapi.v0.GetIdentityResponse,
187
- /**
188
- * @param {!proto.org.dash.platform.dapi.v0.GetIdentityRequest} request
189
- * @return {!Uint8Array}
190
- */
191
- function(request) {
192
- return request.serializeBinary();
193
- },
194
- proto.org.dash.platform.dapi.v0.GetIdentityResponse.deserializeBinary
195
- );
196
-
197
-
198
160
  /**
199
161
  * @param {!proto.org.dash.platform.dapi.v0.GetIdentityRequest} request The
200
162
  * request proto
201
163
  * @param {?Object<string, string>} metadata User defined
202
164
  * call metadata
203
- * @param {function(?grpc.web.Error, ?proto.org.dash.platform.dapi.v0.GetIdentityResponse)}
165
+ * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetIdentityResponse)}
204
166
  * callback The callback function(error, response)
205
167
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetIdentityResponse>|undefined}
206
168
  * The XHR Node Readable Stream
@@ -219,7 +181,7 @@ proto.org.dash.platform.dapi.v0.PlatformClient.prototype.getIdentity =
219
181
  /**
220
182
  * @param {!proto.org.dash.platform.dapi.v0.GetIdentityRequest} request The
221
183
  * request proto
222
- * @param {?Object<string, string>} metadata User defined
184
+ * @param {?Object<string, string>=} metadata User defined
223
185
  * call metadata
224
186
  * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetIdentityResponse>}
225
187
  * Promise that resolves to the response
@@ -256,31 +218,12 @@ const methodDescriptor_Platform_getDataContract = new grpc.web.MethodDescriptor(
256
218
  );
257
219
 
258
220
 
259
- /**
260
- * @const
261
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
262
- * !proto.org.dash.platform.dapi.v0.GetDataContractRequest,
263
- * !proto.org.dash.platform.dapi.v0.GetDataContractResponse>}
264
- */
265
- const methodInfo_Platform_getDataContract = new grpc.web.AbstractClientBase.MethodInfo(
266
- proto.org.dash.platform.dapi.v0.GetDataContractResponse,
267
- /**
268
- * @param {!proto.org.dash.platform.dapi.v0.GetDataContractRequest} request
269
- * @return {!Uint8Array}
270
- */
271
- function(request) {
272
- return request.serializeBinary();
273
- },
274
- proto.org.dash.platform.dapi.v0.GetDataContractResponse.deserializeBinary
275
- );
276
-
277
-
278
221
  /**
279
222
  * @param {!proto.org.dash.platform.dapi.v0.GetDataContractRequest} request The
280
223
  * request proto
281
224
  * @param {?Object<string, string>} metadata User defined
282
225
  * call metadata
283
- * @param {function(?grpc.web.Error, ?proto.org.dash.platform.dapi.v0.GetDataContractResponse)}
226
+ * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetDataContractResponse)}
284
227
  * callback The callback function(error, response)
285
228
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetDataContractResponse>|undefined}
286
229
  * The XHR Node Readable Stream
@@ -299,7 +242,7 @@ proto.org.dash.platform.dapi.v0.PlatformClient.prototype.getDataContract =
299
242
  /**
300
243
  * @param {!proto.org.dash.platform.dapi.v0.GetDataContractRequest} request The
301
244
  * request proto
302
- * @param {?Object<string, string>} metadata User defined
245
+ * @param {?Object<string, string>=} metadata User defined
303
246
  * call metadata
304
247
  * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetDataContractResponse>}
305
248
  * Promise that resolves to the response
@@ -336,31 +279,12 @@ const methodDescriptor_Platform_getDocuments = new grpc.web.MethodDescriptor(
336
279
  );
337
280
 
338
281
 
339
- /**
340
- * @const
341
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
342
- * !proto.org.dash.platform.dapi.v0.GetDocumentsRequest,
343
- * !proto.org.dash.platform.dapi.v0.GetDocumentsResponse>}
344
- */
345
- const methodInfo_Platform_getDocuments = new grpc.web.AbstractClientBase.MethodInfo(
346
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse,
347
- /**
348
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} request
349
- * @return {!Uint8Array}
350
- */
351
- function(request) {
352
- return request.serializeBinary();
353
- },
354
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.deserializeBinary
355
- );
356
-
357
-
358
282
  /**
359
283
  * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} request The
360
284
  * request proto
361
285
  * @param {?Object<string, string>} metadata User defined
362
286
  * call metadata
363
- * @param {function(?grpc.web.Error, ?proto.org.dash.platform.dapi.v0.GetDocumentsResponse)}
287
+ * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetDocumentsResponse)}
364
288
  * callback The callback function(error, response)
365
289
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetDocumentsResponse>|undefined}
366
290
  * The XHR Node Readable Stream
@@ -379,7 +303,7 @@ proto.org.dash.platform.dapi.v0.PlatformClient.prototype.getDocuments =
379
303
  /**
380
304
  * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} request The
381
305
  * request proto
382
- * @param {?Object<string, string>} metadata User defined
306
+ * @param {?Object<string, string>=} metadata User defined
383
307
  * call metadata
384
308
  * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetDocumentsResponse>}
385
309
  * Promise that resolves to the response
@@ -416,31 +340,12 @@ const methodDescriptor_Platform_getIdentitiesByPublicKeyHashes = new grpc.web.Me
416
340
  );
417
341
 
418
342
 
419
- /**
420
- * @const
421
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
422
- * !proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest,
423
- * !proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse>}
424
- */
425
- const methodInfo_Platform_getIdentitiesByPublicKeyHashes = new grpc.web.AbstractClientBase.MethodInfo(
426
- proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse,
427
- /**
428
- * @param {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest} request
429
- * @return {!Uint8Array}
430
- */
431
- function(request) {
432
- return request.serializeBinary();
433
- },
434
- proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.deserializeBinary
435
- );
436
-
437
-
438
343
  /**
439
344
  * @param {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest} request The
440
345
  * request proto
441
346
  * @param {?Object<string, string>} metadata User defined
442
347
  * call metadata
443
- * @param {function(?grpc.web.Error, ?proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse)}
348
+ * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse)}
444
349
  * callback The callback function(error, response)
445
350
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse>|undefined}
446
351
  * The XHR Node Readable Stream
@@ -459,7 +364,7 @@ proto.org.dash.platform.dapi.v0.PlatformClient.prototype.getIdentitiesByPublicKe
459
364
  /**
460
365
  * @param {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest} request The
461
366
  * request proto
462
- * @param {?Object<string, string>} metadata User defined
367
+ * @param {?Object<string, string>=} metadata User defined
463
368
  * call metadata
464
369
  * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse>}
465
370
  * Promise that resolves to the response
@@ -496,31 +401,12 @@ const methodDescriptor_Platform_getIdentityIdsByPublicKeyHashes = new grpc.web.M
496
401
  );
497
402
 
498
403
 
499
- /**
500
- * @const
501
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
502
- * !proto.org.dash.platform.dapi.v0.GetIdentityIdsByPublicKeyHashesRequest,
503
- * !proto.org.dash.platform.dapi.v0.GetIdentityIdsByPublicKeyHashesResponse>}
504
- */
505
- const methodInfo_Platform_getIdentityIdsByPublicKeyHashes = new grpc.web.AbstractClientBase.MethodInfo(
506
- proto.org.dash.platform.dapi.v0.GetIdentityIdsByPublicKeyHashesResponse,
507
- /**
508
- * @param {!proto.org.dash.platform.dapi.v0.GetIdentityIdsByPublicKeyHashesRequest} request
509
- * @return {!Uint8Array}
510
- */
511
- function(request) {
512
- return request.serializeBinary();
513
- },
514
- proto.org.dash.platform.dapi.v0.GetIdentityIdsByPublicKeyHashesResponse.deserializeBinary
515
- );
516
-
517
-
518
404
  /**
519
405
  * @param {!proto.org.dash.platform.dapi.v0.GetIdentityIdsByPublicKeyHashesRequest} request The
520
406
  * request proto
521
407
  * @param {?Object<string, string>} metadata User defined
522
408
  * call metadata
523
- * @param {function(?grpc.web.Error, ?proto.org.dash.platform.dapi.v0.GetIdentityIdsByPublicKeyHashesResponse)}
409
+ * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetIdentityIdsByPublicKeyHashesResponse)}
524
410
  * callback The callback function(error, response)
525
411
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetIdentityIdsByPublicKeyHashesResponse>|undefined}
526
412
  * The XHR Node Readable Stream
@@ -539,7 +425,7 @@ proto.org.dash.platform.dapi.v0.PlatformClient.prototype.getIdentityIdsByPublicK
539
425
  /**
540
426
  * @param {!proto.org.dash.platform.dapi.v0.GetIdentityIdsByPublicKeyHashesRequest} request The
541
427
  * request proto
542
- * @param {?Object<string, string>} metadata User defined
428
+ * @param {?Object<string, string>=} metadata User defined
543
429
  * call metadata
544
430
  * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetIdentityIdsByPublicKeyHashesResponse>}
545
431
  * Promise that resolves to the response
@@ -576,31 +462,12 @@ const methodDescriptor_Platform_waitForStateTransitionResult = new grpc.web.Meth
576
462
  );
577
463
 
578
464
 
579
- /**
580
- * @const
581
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
582
- * !proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest,
583
- * !proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse>}
584
- */
585
- const methodInfo_Platform_waitForStateTransitionResult = new grpc.web.AbstractClientBase.MethodInfo(
586
- proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse,
587
- /**
588
- * @param {!proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest} request
589
- * @return {!Uint8Array}
590
- */
591
- function(request) {
592
- return request.serializeBinary();
593
- },
594
- proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.deserializeBinary
595
- );
596
-
597
-
598
465
  /**
599
466
  * @param {!proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest} request The
600
467
  * request proto
601
468
  * @param {?Object<string, string>} metadata User defined
602
469
  * call metadata
603
- * @param {function(?grpc.web.Error, ?proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse)}
470
+ * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse)}
604
471
  * callback The callback function(error, response)
605
472
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse>|undefined}
606
473
  * The XHR Node Readable Stream
@@ -619,7 +486,7 @@ proto.org.dash.platform.dapi.v0.PlatformClient.prototype.waitForStateTransitionR
619
486
  /**
620
487
  * @param {!proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest} request The
621
488
  * request proto
622
- * @param {?Object<string, string>} metadata User defined
489
+ * @param {?Object<string, string>=} metadata User defined
623
490
  * call metadata
624
491
  * @return {!Promise<!proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse>}
625
492
  * Promise that resolves to the response
@@ -656,31 +523,12 @@ const methodDescriptor_Platform_getConsensusParams = new grpc.web.MethodDescript
656
523
  );
657
524
 
658
525
 
659
- /**
660
- * @const
661
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
662
- * !proto.org.dash.platform.dapi.v0.GetConsensusParamsRequest,
663
- * !proto.org.dash.platform.dapi.v0.GetConsensusParamsResponse>}
664
- */
665
- const methodInfo_Platform_getConsensusParams = new grpc.web.AbstractClientBase.MethodInfo(
666
- proto.org.dash.platform.dapi.v0.GetConsensusParamsResponse,
667
- /**
668
- * @param {!proto.org.dash.platform.dapi.v0.GetConsensusParamsRequest} request
669
- * @return {!Uint8Array}
670
- */
671
- function(request) {
672
- return request.serializeBinary();
673
- },
674
- proto.org.dash.platform.dapi.v0.GetConsensusParamsResponse.deserializeBinary
675
- );
676
-
677
-
678
526
  /**
679
527
  * @param {!proto.org.dash.platform.dapi.v0.GetConsensusParamsRequest} request The
680
528
  * request proto
681
529
  * @param {?Object<string, string>} metadata User defined
682
530
  * call metadata
683
- * @param {function(?grpc.web.Error, ?proto.org.dash.platform.dapi.v0.GetConsensusParamsResponse)}
531
+ * @param {function(?grpc.web.RpcError, ?proto.org.dash.platform.dapi.v0.GetConsensusParamsResponse)}
684
532
  * callback The callback function(error, response)
685
533
  * @return {!grpc.web.ClientReadableStream<!proto.org.dash.platform.dapi.v0.GetConsensusParamsResponse>|undefined}
686
534
  * The XHR Node Readable Stream
@@ -699,7 +547,7 @@ proto.org.dash.platform.dapi.v0.PlatformClient.prototype.getConsensusParams =
699
547
  /**
700
548
  * @param {!proto.org.dash.platform.dapi.v0.GetConsensusParamsRequest} request The
701
549
  * request proto
702
- * @param {?Object<string, string>} metadata User defined
550
+ * @param {?Object<string, string>=} metadata User defined
703
551
  * call metadata
704
552
  * @return {!Promise<!proto.org.dash.platform.dapi.v0.GetConsensusParamsResponse>}
705
553
  * Promise that resolves to the response
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
17
23
 
18
24
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest', null, global);
19
25
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse', null, global);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashevo/dapi-grpc",
3
- "version": "0.22.6",
3
+ "version": "0.23.0-dev.2",
4
4
  "description": "DAPI GRPC definition file and generated clients",
5
5
  "browser": "browser.js",
6
6
  "main": "node.js",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "homepage": "https://github.com/dashevo/dapi-grpc#readme",
35
35
  "dependencies": {
36
- "@dashevo/grpc-common": "~0.22.6",
36
+ "@dashevo/grpc-common": "~0.23.0-dev.2",
37
37
  "@dashevo/protobufjs": "6.10.5",
38
38
  "@grpc/grpc-js": "^1.3.7",
39
39
  "google-protobuf": "^3.12.2",
package/scripts/build.sh CHANGED
@@ -18,6 +18,8 @@ PLATFORM_OBJ_C_OUT_PATH="$PLATFORM_CLIENTS_PATH/objective-c"
18
18
  CORE_PYTHON_OUT_PATH="$CORE_CLIENTS_PATH/python"
19
19
  PLATFORM_PYTHON_OUT_PATH="$PLATFORM_CLIENTS_PATH/python"
20
20
 
21
+ GRPC_WEB_COMMON_IMAGE="strophy/grpc-web-common:1.3.2"
22
+ PROTOC_IMAGE="strophy/protoc:3.3.2"
21
23
 
22
24
  #################################################
23
25
  # Generate JavaScript client for `Core` service #
@@ -28,7 +30,7 @@ rm -rf "$CORE_WEB_OUT_PATH/*"
28
30
  docker run -v "$CORE_PROTO_PATH:$CORE_PROTO_PATH" \
29
31
  -v "$CORE_WEB_OUT_PATH:$CORE_WEB_OUT_PATH" \
30
32
  --rm \
31
- dashpay/grpc-web-common \
33
+ "$GRPC_WEB_COMMON_IMAGE" \
32
34
  protoc -I="$CORE_PROTO_PATH" "core.proto" \
33
35
  --js_out="import_style=commonjs:$CORE_WEB_OUT_PATH" \
34
36
  --grpc-web_out="import_style=commonjs,mode=grpcwebtext:$CORE_WEB_OUT_PATH"
@@ -59,7 +61,7 @@ rm -rf "$PLATFORM_WEB_OUT_PATH/*"
59
61
  docker run -v "$PLATFORM_PROTO_PATH:$PLATFORM_PROTO_PATH" \
60
62
  -v "$PLATFORM_WEB_OUT_PATH:$PLATFORM_WEB_OUT_PATH" \
61
63
  --rm \
62
- dashpay/grpc-web-common \
64
+ "$GRPC_WEB_COMMON_IMAGE" \
63
65
  protoc -I="$PLATFORM_PROTO_PATH" "platform.proto" \
64
66
  --js_out="import_style=commonjs:$PLATFORM_WEB_OUT_PATH" \
65
67
  --grpc-web_out="import_style=commonjs,mode=grpcwebtext:$PLATFORM_WEB_OUT_PATH"
@@ -89,11 +91,11 @@ rm -rf "$CORE_JAVA_OUT_PATH/*"
89
91
  docker run -v "$CORE_PROTO_PATH:$CORE_PROTO_PATH" \
90
92
  -v "$CORE_JAVA_OUT_PATH:$CORE_JAVA_OUT_PATH" \
91
93
  --rm \
92
- znly/protoc \
94
+ "$PROTOC_IMAGE" \
93
95
  --plugin=protoc-gen-grpc=/usr/bin/protoc-gen-grpc-java \
94
96
  --grpc-java_out="$CORE_JAVA_OUT_PATH" \
95
97
  --proto_path="$CORE_PROTO_PATH" \
96
- -I "$CORE_PROTO_PATH" \
98
+ -I="$CORE_PROTO_PATH" \
97
99
  "core.proto"
98
100
 
99
101
  #######################################
@@ -105,11 +107,11 @@ rm -rf "$PLATFORM_JAVA_OUT_PATH/*"
105
107
  docker run -v "$PLATFORM_PROTO_PATH:$PLATFORM_PROTO_PATH" \
106
108
  -v "$PLATFORM_JAVA_OUT_PATH:$PLATFORM_JAVA_OUT_PATH" \
107
109
  --rm \
108
- znly/protoc \
110
+ "$PROTOC_IMAGE" \
109
111
  --plugin=protoc-gen-grpc=/usr/bin/protoc-gen-grpc-java \
110
112
  --grpc-java_out="$PLATFORM_JAVA_OUT_PATH" \
111
113
  --proto_path="$PLATFORM_PROTO_PATH" \
112
- -I "$PLATFORM_PROTO_PATH" \
114
+ -I="$PLATFORM_PROTO_PATH" \
113
115
  "platform.proto"
114
116
 
115
117
  ##########################################
@@ -121,12 +123,12 @@ rm -rf "$CORE_OBJ_C_OUT_PATH/*"
121
123
  docker run -v "$CORE_PROTO_PATH:$CORE_PROTO_PATH" \
122
124
  -v "$CORE_OBJ_C_OUT_PATH:$CORE_OBJ_C_OUT_PATH" \
123
125
  --rm \
124
- znly/protoc \
126
+ "$PROTOC_IMAGE" \
125
127
  --plugin=protoc-gen-grpc=/usr/bin/grpc_objective_c_plugin \
126
128
  --objc_out="$CORE_OBJ_C_OUT_PATH" \
127
129
  --grpc_out="$CORE_OBJ_C_OUT_PATH" \
128
130
  --proto_path="$CORE_PROTO_PATH" \
129
- -I "$CORE_PROTO_PATH" \
131
+ -I="$CORE_PROTO_PATH" \
130
132
  "core.proto"
131
133
 
132
134
  ##############################################
@@ -138,12 +140,12 @@ rm -rf "$PLATFORM_OBJ_C_OUT_PATH/*"
138
140
  docker run -v "$PLATFORM_PROTO_PATH:$PLATFORM_PROTO_PATH" \
139
141
  -v "$PLATFORM_OBJ_C_OUT_PATH:$PLATFORM_OBJ_C_OUT_PATH" \
140
142
  --rm \
141
- znly/protoc \
143
+ "$PROTOC_IMAGE" \
142
144
  --plugin=protoc-gen-grpc=/usr/bin/grpc_objective_c_plugin \
143
145
  --objc_out="$PLATFORM_OBJ_C_OUT_PATH" \
144
146
  --grpc_out="$PLATFORM_OBJ_C_OUT_PATH" \
145
147
  --proto_path="$PLATFORM_PROTO_PATH" \
146
- -I "$PLATFORM_PROTO_PATH" \
148
+ -I="$PLATFORM_PROTO_PATH" \
147
149
  "platform.proto"
148
150
 
149
151
  #####################################
@@ -155,12 +157,12 @@ rm -rf "$CORE_PYTHON_OUT_PATH/*"
155
157
  docker run -v "$CORE_PROTO_PATH:$CORE_PROTO_PATH" \
156
158
  -v "$CORE_PYTHON_OUT_PATH:$CORE_PYTHON_OUT_PATH" \
157
159
  --rm \
158
- znly/protoc \
160
+ "$PROTOC_IMAGE" \
159
161
  --plugin=protoc-gen-grpc=/usr/bin/grpc_python_plugin \
160
162
  --python_out="$CORE_PYTHON_OUT_PATH" \
161
163
  --grpc_out="$CORE_PYTHON_OUT_PATH" \
162
164
  --proto_path="$CORE_PROTO_PATH" \
163
- -I "$CORE_PROTO_PATH" \
165
+ -I="$CORE_PROTO_PATH" \
164
166
  "core.proto"
165
167
 
166
168
  #########################################
@@ -172,10 +174,10 @@ rm -rf "$PLATFORM_PYTHON_OUT_PATH/*"
172
174
  docker run -v "$PLATFORM_PROTO_PATH:$PLATFORM_PROTO_PATH" \
173
175
  -v "$PLATFORM_PYTHON_OUT_PATH:$PLATFORM_PYTHON_OUT_PATH" \
174
176
  --rm \
175
- znly/protoc \
177
+ "$PROTOC_IMAGE" \
176
178
  --plugin=protoc-gen-grpc=/usr/bin/grpc_python_plugin \
177
179
  --python_out="$PLATFORM_PYTHON_OUT_PATH" \
178
180
  --grpc_out="$PLATFORM_PYTHON_OUT_PATH" \
179
181
  --proto_path="$PLATFORM_PROTO_PATH" \
180
- -I "$PLATFORM_PROTO_PATH" \
182
+ -I="$PLATFORM_PROTO_PATH" \
181
183
  "platform.proto"