pactus-grpc 1.11.1 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -115,6 +115,28 @@ function deserialize_pactus_GetBlockchainInfoResponse(buffer_arg) {
115
115
  return blockchain_pb.GetBlockchainInfoResponse.deserializeBinary(new Uint8Array(buffer_arg));
116
116
  }
117
117
 
118
+ function serialize_pactus_GetCommitteeInfoRequest(arg) {
119
+ if (!(arg instanceof blockchain_pb.GetCommitteeInfoRequest)) {
120
+ throw new Error('Expected argument of type pactus.GetCommitteeInfoRequest');
121
+ }
122
+ return Buffer.from(arg.serializeBinary());
123
+ }
124
+
125
+ function deserialize_pactus_GetCommitteeInfoRequest(buffer_arg) {
126
+ return blockchain_pb.GetCommitteeInfoRequest.deserializeBinary(new Uint8Array(buffer_arg));
127
+ }
128
+
129
+ function serialize_pactus_GetCommitteeInfoResponse(arg) {
130
+ if (!(arg instanceof blockchain_pb.GetCommitteeInfoResponse)) {
131
+ throw new Error('Expected argument of type pactus.GetCommitteeInfoResponse');
132
+ }
133
+ return Buffer.from(arg.serializeBinary());
134
+ }
135
+
136
+ function deserialize_pactus_GetCommitteeInfoResponse(buffer_arg) {
137
+ return blockchain_pb.GetCommitteeInfoResponse.deserializeBinary(new Uint8Array(buffer_arg));
138
+ }
139
+
118
140
  function serialize_pactus_GetConsensusInfoRequest(arg) {
119
141
  if (!(arg instanceof blockchain_pb.GetConsensusInfoRequest)) {
120
142
  throw new Error('Expected argument of type pactus.GetConsensusInfoRequest');
@@ -287,6 +309,18 @@ getBlockchainInfo: {
287
309
  responseSerialize: serialize_pactus_GetBlockchainInfoResponse,
288
310
  responseDeserialize: deserialize_pactus_GetBlockchainInfoResponse,
289
311
  },
312
+ // GetCommitteeInfo retrieves information about the current committee.
313
+ getCommitteeInfo: {
314
+ path: '/pactus.Blockchain/GetCommitteeInfo',
315
+ requestStream: false,
316
+ responseStream: false,
317
+ requestType: blockchain_pb.GetCommitteeInfoRequest,
318
+ responseType: blockchain_pb.GetCommitteeInfoResponse,
319
+ requestSerialize: serialize_pactus_GetCommitteeInfoRequest,
320
+ requestDeserialize: deserialize_pactus_GetCommitteeInfoRequest,
321
+ responseSerialize: serialize_pactus_GetCommitteeInfoResponse,
322
+ responseDeserialize: deserialize_pactus_GetCommitteeInfoResponse,
323
+ },
290
324
  // GetConsensusInfo retrieves information about the consensus instances.
291
325
  getConsensusInfo: {
292
326
  path: '/pactus.Blockchain/GetConsensusInfo',
@@ -320,6 +320,67 @@ proto.pactus.BlockchainPromiseClient.prototype.getBlockchainInfo =
320
320
  };
321
321
 
322
322
 
323
+ /**
324
+ * @const
325
+ * @type {!grpc.web.MethodDescriptor<
326
+ * !proto.pactus.GetCommitteeInfoRequest,
327
+ * !proto.pactus.GetCommitteeInfoResponse>}
328
+ */
329
+ const methodDescriptor_Blockchain_GetCommitteeInfo = new grpc.web.MethodDescriptor(
330
+ '/pactus.Blockchain/GetCommitteeInfo',
331
+ grpc.web.MethodType.UNARY,
332
+ proto.pactus.GetCommitteeInfoRequest,
333
+ proto.pactus.GetCommitteeInfoResponse,
334
+ /**
335
+ * @param {!proto.pactus.GetCommitteeInfoRequest} request
336
+ * @return {!Uint8Array}
337
+ */
338
+ function(request) {
339
+ return request.serializeBinary();
340
+ },
341
+ proto.pactus.GetCommitteeInfoResponse.deserializeBinary
342
+ );
343
+
344
+
345
+ /**
346
+ * @param {!proto.pactus.GetCommitteeInfoRequest} request The
347
+ * request proto
348
+ * @param {?Object<string, string>} metadata User defined
349
+ * call metadata
350
+ * @param {function(?grpc.web.RpcError, ?proto.pactus.GetCommitteeInfoResponse)}
351
+ * callback The callback function(error, response)
352
+ * @return {!grpc.web.ClientReadableStream<!proto.pactus.GetCommitteeInfoResponse>|undefined}
353
+ * The XHR Node Readable Stream
354
+ */
355
+ proto.pactus.BlockchainClient.prototype.getCommitteeInfo =
356
+ function(request, metadata, callback) {
357
+ return this.client_.rpcCall(this.hostname_ +
358
+ '/pactus.Blockchain/GetCommitteeInfo',
359
+ request,
360
+ metadata || {},
361
+ methodDescriptor_Blockchain_GetCommitteeInfo,
362
+ callback);
363
+ };
364
+
365
+
366
+ /**
367
+ * @param {!proto.pactus.GetCommitteeInfoRequest} request The
368
+ * request proto
369
+ * @param {?Object<string, string>=} metadata User defined
370
+ * call metadata
371
+ * @return {!Promise<!proto.pactus.GetCommitteeInfoResponse>}
372
+ * Promise that resolves to the response
373
+ */
374
+ proto.pactus.BlockchainPromiseClient.prototype.getCommitteeInfo =
375
+ function(request, metadata) {
376
+ return this.client_.unaryCall(this.hostname_ +
377
+ '/pactus.Blockchain/GetCommitteeInfo',
378
+ request,
379
+ metadata || {},
380
+ methodDescriptor_Blockchain_GetCommitteeInfo);
381
+ };
382
+
383
+
323
384
  /**
324
385
  * @const
325
386
  * @type {!grpc.web.MethodDescriptor<