pactus-grpc 1.13.0 → 1.15.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.
package/blockchain_pb.js CHANGED
@@ -3094,7 +3094,8 @@ committeePower: jspb.Message.getFieldWithDefault(msg, 6, 0),
3094
3094
  isPruned: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
3095
3095
  pruningHeight: jspb.Message.getFieldWithDefault(msg, 9, 0),
3096
3096
  inCommittee: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
3097
- committeeSize: jspb.Message.getFieldWithDefault(msg, 14, 0)
3097
+ committeeSize: jspb.Message.getFieldWithDefault(msg, 14, 0),
3098
+ averageScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0)
3098
3099
  };
3099
3100
 
3100
3101
  if (includeInstance) {
@@ -3179,6 +3180,10 @@ proto.pactus.GetBlockchainInfoResponse.deserializeBinaryFromReader = function(ms
3179
3180
  var value = /** @type {number} */ (reader.readInt32());
3180
3181
  msg.setCommitteeSize(value);
3181
3182
  break;
3183
+ case 15:
3184
+ var value = /** @type {number} */ (reader.readDouble());
3185
+ msg.setAverageScore(value);
3186
+ break;
3182
3187
  default:
3183
3188
  reader.skipField();
3184
3189
  break;
@@ -3292,6 +3297,13 @@ proto.pactus.GetBlockchainInfoResponse.serializeBinaryToWriter = function(messag
3292
3297
  f
3293
3298
  );
3294
3299
  }
3300
+ f = message.getAverageScore();
3301
+ if (f !== 0.0) {
3302
+ writer.writeDouble(
3303
+ 15,
3304
+ f
3305
+ );
3306
+ }
3295
3307
  };
3296
3308
 
3297
3309
 
@@ -3511,6 +3523,24 @@ proto.pactus.GetBlockchainInfoResponse.prototype.setCommitteeSize = function(val
3511
3523
  };
3512
3524
 
3513
3525
 
3526
+ /**
3527
+ * optional double average_score = 15;
3528
+ * @return {number}
3529
+ */
3530
+ proto.pactus.GetBlockchainInfoResponse.prototype.getAverageScore = function() {
3531
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 15, 0.0));
3532
+ };
3533
+
3534
+
3535
+ /**
3536
+ * @param {number} value
3537
+ * @return {!proto.pactus.GetBlockchainInfoResponse} returns this
3538
+ */
3539
+ proto.pactus.GetBlockchainInfoResponse.prototype.setAverageScore = function(value) {
3540
+ return jspb.Message.setProto3FloatField(this, 15, value);
3541
+ };
3542
+
3543
+
3514
3544
 
3515
3545
 
3516
3546
 
@@ -107,7 +107,7 @@ getNetworkInfo: {
107
107
  responseSerialize: serialize_pactus_GetNetworkInfoResponse,
108
108
  responseDeserialize: deserialize_pactus_GetNetworkInfoResponse,
109
109
  },
110
- // ListPeers lists all peers in the network.
110
+ // ListPeers lists all connected peers to this node.
111
111
  listPeers: {
112
112
  path: '/pactus.Network/ListPeers',
113
113
  requestStream: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pactus-grpc",
3
- "version": "1.13.0",
3
+ "version": "1.15.0",
4
4
  "description": "JavaScript client for interacting with the Pactus blockchain via gRPC",
5
5
  "author": "Pactus Development Team",
6
6
  "license": "MIT",
@@ -48,6 +48,28 @@ function deserialize_pactus_CalculateFeeResponse(buffer_arg) {
48
48
  return transaction_pb.CalculateFeeResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
49
  }
50
50
 
51
+ function serialize_pactus_CheckTransactionRequest(arg) {
52
+ if (!(arg instanceof transaction_pb.CheckTransactionRequest)) {
53
+ throw new Error('Expected argument of type pactus.CheckTransactionRequest');
54
+ }
55
+ return Buffer.from(arg.serializeBinary());
56
+ }
57
+
58
+ function deserialize_pactus_CheckTransactionRequest(buffer_arg) {
59
+ return transaction_pb.CheckTransactionRequest.deserializeBinary(new Uint8Array(buffer_arg));
60
+ }
61
+
62
+ function serialize_pactus_CheckTransactionResponse(arg) {
63
+ if (!(arg instanceof transaction_pb.CheckTransactionResponse)) {
64
+ throw new Error('Expected argument of type pactus.CheckTransactionResponse');
65
+ }
66
+ return Buffer.from(arg.serializeBinary());
67
+ }
68
+
69
+ function deserialize_pactus_CheckTransactionResponse(buffer_arg) {
70
+ return transaction_pb.CheckTransactionResponse.deserializeBinary(new Uint8Array(buffer_arg));
71
+ }
72
+
51
73
  function serialize_pactus_DecodeRawTransactionRequest(arg) {
52
74
  if (!(arg instanceof transaction_pb.DecodeRawTransactionRequest)) {
53
75
  throw new Error('Expected argument of type pactus.DecodeRawTransactionRequest');
@@ -269,6 +291,18 @@ decodeRawTransaction: {
269
291
  responseSerialize: serialize_pactus_DecodeRawTransactionResponse,
270
292
  responseDeserialize: deserialize_pactus_DecodeRawTransactionResponse,
271
293
  },
294
+ // CheckTransaction checks if the transaction is valid and can be included in the blockchain.
295
+ checkTransaction: {
296
+ path: '/pactus.Transaction/CheckTransaction',
297
+ requestStream: false,
298
+ responseStream: false,
299
+ requestType: transaction_pb.CheckTransactionRequest,
300
+ responseType: transaction_pb.CheckTransactionResponse,
301
+ requestSerialize: serialize_pactus_CheckTransactionRequest,
302
+ requestDeserialize: deserialize_pactus_CheckTransactionRequest,
303
+ responseSerialize: serialize_pactus_CheckTransactionResponse,
304
+ responseDeserialize: deserialize_pactus_CheckTransactionResponse,
305
+ },
272
306
  };
273
307
 
274
308
  exports.TransactionClient = grpc.makeGenericClientConstructor(TransactionService, 'Transaction');
@@ -623,5 +623,66 @@ proto.pactus.TransactionPromiseClient.prototype.decodeRawTransaction =
623
623
  };
624
624
 
625
625
 
626
+ /**
627
+ * @const
628
+ * @type {!grpc.web.MethodDescriptor<
629
+ * !proto.pactus.CheckTransactionRequest,
630
+ * !proto.pactus.CheckTransactionResponse>}
631
+ */
632
+ const methodDescriptor_Transaction_CheckTransaction = new grpc.web.MethodDescriptor(
633
+ '/pactus.Transaction/CheckTransaction',
634
+ grpc.web.MethodType.UNARY,
635
+ proto.pactus.CheckTransactionRequest,
636
+ proto.pactus.CheckTransactionResponse,
637
+ /**
638
+ * @param {!proto.pactus.CheckTransactionRequest} request
639
+ * @return {!Uint8Array}
640
+ */
641
+ function(request) {
642
+ return request.serializeBinary();
643
+ },
644
+ proto.pactus.CheckTransactionResponse.deserializeBinary
645
+ );
646
+
647
+
648
+ /**
649
+ * @param {!proto.pactus.CheckTransactionRequest} request The
650
+ * request proto
651
+ * @param {?Object<string, string>} metadata User defined
652
+ * call metadata
653
+ * @param {function(?grpc.web.RpcError, ?proto.pactus.CheckTransactionResponse)}
654
+ * callback The callback function(error, response)
655
+ * @return {!grpc.web.ClientReadableStream<!proto.pactus.CheckTransactionResponse>|undefined}
656
+ * The XHR Node Readable Stream
657
+ */
658
+ proto.pactus.TransactionClient.prototype.checkTransaction =
659
+ function(request, metadata, callback) {
660
+ return this.client_.rpcCall(this.hostname_ +
661
+ '/pactus.Transaction/CheckTransaction',
662
+ request,
663
+ metadata || {},
664
+ methodDescriptor_Transaction_CheckTransaction,
665
+ callback);
666
+ };
667
+
668
+
669
+ /**
670
+ * @param {!proto.pactus.CheckTransactionRequest} request The
671
+ * request proto
672
+ * @param {?Object<string, string>=} metadata User defined
673
+ * call metadata
674
+ * @return {!Promise<!proto.pactus.CheckTransactionResponse>}
675
+ * Promise that resolves to the response
676
+ */
677
+ proto.pactus.TransactionPromiseClient.prototype.checkTransaction =
678
+ function(request, metadata) {
679
+ return this.client_.unaryCall(this.hostname_ +
680
+ '/pactus.Transaction/CheckTransaction',
681
+ request,
682
+ metadata || {},
683
+ methodDescriptor_Transaction_CheckTransaction);
684
+ };
685
+
686
+
626
687
  module.exports = proto.pactus;
627
688
 
package/transaction_pb.js CHANGED
@@ -19,6 +19,8 @@ goog.exportSymbol('proto.pactus.BroadcastTransactionRequest', null, global);
19
19
  goog.exportSymbol('proto.pactus.BroadcastTransactionResponse', null, global);
20
20
  goog.exportSymbol('proto.pactus.CalculateFeeRequest', null, global);
21
21
  goog.exportSymbol('proto.pactus.CalculateFeeResponse', null, global);
22
+ goog.exportSymbol('proto.pactus.CheckTransactionRequest', null, global);
23
+ goog.exportSymbol('proto.pactus.CheckTransactionResponse', null, global);
22
24
  goog.exportSymbol('proto.pactus.DecodeRawTransactionRequest', null, global);
23
25
  goog.exportSymbol('proto.pactus.DecodeRawTransactionResponse', null, global);
24
26
  goog.exportSymbol('proto.pactus.GetRawBatchTransferTransactionRequest', null, global);
@@ -502,6 +504,48 @@ if (goog.DEBUG && !COMPILED) {
502
504
  */
503
505
  proto.pactus.DecodeRawTransactionResponse.displayName = 'proto.pactus.DecodeRawTransactionResponse';
504
506
  }
507
+ /**
508
+ * Generated by JsPbCodeGenerator.
509
+ * @param {Array=} opt_data Optional initial data array, typically from a
510
+ * server response, or constructed directly in Javascript. The array is used
511
+ * in place and becomes part of the constructed object. It is not cloned.
512
+ * If no data is provided, the constructed object will be empty, but still
513
+ * valid.
514
+ * @extends {jspb.Message}
515
+ * @constructor
516
+ */
517
+ proto.pactus.CheckTransactionRequest = function(opt_data) {
518
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
519
+ };
520
+ goog.inherits(proto.pactus.CheckTransactionRequest, jspb.Message);
521
+ if (goog.DEBUG && !COMPILED) {
522
+ /**
523
+ * @public
524
+ * @override
525
+ */
526
+ proto.pactus.CheckTransactionRequest.displayName = 'proto.pactus.CheckTransactionRequest';
527
+ }
528
+ /**
529
+ * Generated by JsPbCodeGenerator.
530
+ * @param {Array=} opt_data Optional initial data array, typically from a
531
+ * server response, or constructed directly in Javascript. The array is used
532
+ * in place and becomes part of the constructed object. It is not cloned.
533
+ * If no data is provided, the constructed object will be empty, but still
534
+ * valid.
535
+ * @extends {jspb.Message}
536
+ * @constructor
537
+ */
538
+ proto.pactus.CheckTransactionResponse = function(opt_data) {
539
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
540
+ };
541
+ goog.inherits(proto.pactus.CheckTransactionResponse, jspb.Message);
542
+ if (goog.DEBUG && !COMPILED) {
543
+ /**
544
+ * @public
545
+ * @override
546
+ */
547
+ proto.pactus.CheckTransactionResponse.displayName = 'proto.pactus.CheckTransactionResponse';
548
+ }
505
549
 
506
550
 
507
551
 
@@ -1801,7 +1845,10 @@ receiver: jspb.Message.getFieldWithDefault(msg, 3, ""),
1801
1845
  stake: jspb.Message.getFieldWithDefault(msg, 4, 0),
1802
1846
  publicKey: jspb.Message.getFieldWithDefault(msg, 5, ""),
1803
1847
  fee: jspb.Message.getFieldWithDefault(msg, 6, 0),
1804
- memo: jspb.Message.getFieldWithDefault(msg, 7, "")
1848
+ memo: jspb.Message.getFieldWithDefault(msg, 7, ""),
1849
+ delegateOwner: jspb.Message.getFieldWithDefault(msg, 8, ""),
1850
+ delegateShare: jspb.Message.getFieldWithDefault(msg, 9, 0),
1851
+ delegateExpiry: jspb.Message.getFieldWithDefault(msg, 10, 0)
1805
1852
  };
1806
1853
 
1807
1854
  if (includeInstance) {
@@ -1866,6 +1913,18 @@ proto.pactus.GetRawBondTransactionRequest.deserializeBinaryFromReader = function
1866
1913
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1867
1914
  msg.setMemo(value);
1868
1915
  break;
1916
+ case 8:
1917
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1918
+ msg.setDelegateOwner(value);
1919
+ break;
1920
+ case 9:
1921
+ var value = /** @type {number} */ (reader.readInt64());
1922
+ msg.setDelegateShare(value);
1923
+ break;
1924
+ case 10:
1925
+ var value = /** @type {number} */ (reader.readUint32());
1926
+ msg.setDelegateExpiry(value);
1927
+ break;
1869
1928
  default:
1870
1929
  reader.skipField();
1871
1930
  break;
@@ -1944,6 +2003,27 @@ proto.pactus.GetRawBondTransactionRequest.serializeBinaryToWriter = function(mes
1944
2003
  f
1945
2004
  );
1946
2005
  }
2006
+ f = message.getDelegateOwner();
2007
+ if (f.length > 0) {
2008
+ writer.writeString(
2009
+ 8,
2010
+ f
2011
+ );
2012
+ }
2013
+ f = message.getDelegateShare();
2014
+ if (f !== 0) {
2015
+ writer.writeInt64(
2016
+ 9,
2017
+ f
2018
+ );
2019
+ }
2020
+ f = message.getDelegateExpiry();
2021
+ if (f !== 0) {
2022
+ writer.writeUint32(
2023
+ 10,
2024
+ f
2025
+ );
2026
+ }
1947
2027
  };
1948
2028
 
1949
2029
 
@@ -2073,6 +2153,60 @@ proto.pactus.GetRawBondTransactionRequest.prototype.setMemo = function(value) {
2073
2153
  };
2074
2154
 
2075
2155
 
2156
+ /**
2157
+ * optional string delegate_owner = 8;
2158
+ * @return {string}
2159
+ */
2160
+ proto.pactus.GetRawBondTransactionRequest.prototype.getDelegateOwner = function() {
2161
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2162
+ };
2163
+
2164
+
2165
+ /**
2166
+ * @param {string} value
2167
+ * @return {!proto.pactus.GetRawBondTransactionRequest} returns this
2168
+ */
2169
+ proto.pactus.GetRawBondTransactionRequest.prototype.setDelegateOwner = function(value) {
2170
+ return jspb.Message.setProto3StringField(this, 8, value);
2171
+ };
2172
+
2173
+
2174
+ /**
2175
+ * optional int64 delegate_share = 9;
2176
+ * @return {number}
2177
+ */
2178
+ proto.pactus.GetRawBondTransactionRequest.prototype.getDelegateShare = function() {
2179
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
2180
+ };
2181
+
2182
+
2183
+ /**
2184
+ * @param {number} value
2185
+ * @return {!proto.pactus.GetRawBondTransactionRequest} returns this
2186
+ */
2187
+ proto.pactus.GetRawBondTransactionRequest.prototype.setDelegateShare = function(value) {
2188
+ return jspb.Message.setProto3IntField(this, 9, value);
2189
+ };
2190
+
2191
+
2192
+ /**
2193
+ * optional uint32 delegate_expiry = 10;
2194
+ * @return {number}
2195
+ */
2196
+ proto.pactus.GetRawBondTransactionRequest.prototype.getDelegateExpiry = function() {
2197
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
2198
+ };
2199
+
2200
+
2201
+ /**
2202
+ * @param {number} value
2203
+ * @return {!proto.pactus.GetRawBondTransactionRequest} returns this
2204
+ */
2205
+ proto.pactus.GetRawBondTransactionRequest.prototype.setDelegateExpiry = function(value) {
2206
+ return jspb.Message.setProto3IntField(this, 10, value);
2207
+ };
2208
+
2209
+
2076
2210
 
2077
2211
 
2078
2212
 
@@ -2106,8 +2240,9 @@ proto.pactus.GetRawUnbondTransactionRequest.prototype.toObject = function(opt_in
2106
2240
  proto.pactus.GetRawUnbondTransactionRequest.toObject = function(includeInstance, msg) {
2107
2241
  var f, obj = {
2108
2242
  lockTime: jspb.Message.getFieldWithDefault(msg, 1, 0),
2109
- validatorAddress: jspb.Message.getFieldWithDefault(msg, 3, ""),
2110
- memo: jspb.Message.getFieldWithDefault(msg, 4, "")
2243
+ validatorAddress: jspb.Message.getFieldWithDefault(msg, 2, ""),
2244
+ memo: jspb.Message.getFieldWithDefault(msg, 3, ""),
2245
+ delegateOwner: jspb.Message.getFieldWithDefault(msg, 4, "")
2111
2246
  };
2112
2247
 
2113
2248
  if (includeInstance) {
@@ -2148,14 +2283,18 @@ proto.pactus.GetRawUnbondTransactionRequest.deserializeBinaryFromReader = functi
2148
2283
  var value = /** @type {number} */ (reader.readUint32());
2149
2284
  msg.setLockTime(value);
2150
2285
  break;
2151
- case 3:
2286
+ case 2:
2152
2287
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2153
2288
  msg.setValidatorAddress(value);
2154
2289
  break;
2155
- case 4:
2290
+ case 3:
2156
2291
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2157
2292
  msg.setMemo(value);
2158
2293
  break;
2294
+ case 4:
2295
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2296
+ msg.setDelegateOwner(value);
2297
+ break;
2159
2298
  default:
2160
2299
  reader.skipField();
2161
2300
  break;
@@ -2195,11 +2334,18 @@ proto.pactus.GetRawUnbondTransactionRequest.serializeBinaryToWriter = function(m
2195
2334
  f = message.getValidatorAddress();
2196
2335
  if (f.length > 0) {
2197
2336
  writer.writeString(
2198
- 3,
2337
+ 2,
2199
2338
  f
2200
2339
  );
2201
2340
  }
2202
2341
  f = message.getMemo();
2342
+ if (f.length > 0) {
2343
+ writer.writeString(
2344
+ 3,
2345
+ f
2346
+ );
2347
+ }
2348
+ f = message.getDelegateOwner();
2203
2349
  if (f.length > 0) {
2204
2350
  writer.writeString(
2205
2351
  4,
@@ -2228,11 +2374,11 @@ proto.pactus.GetRawUnbondTransactionRequest.prototype.setLockTime = function(val
2228
2374
 
2229
2375
 
2230
2376
  /**
2231
- * optional string validator_address = 3;
2377
+ * optional string validator_address = 2;
2232
2378
  * @return {string}
2233
2379
  */
2234
2380
  proto.pactus.GetRawUnbondTransactionRequest.prototype.getValidatorAddress = function() {
2235
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2381
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2236
2382
  };
2237
2383
 
2238
2384
 
@@ -2241,16 +2387,16 @@ proto.pactus.GetRawUnbondTransactionRequest.prototype.getValidatorAddress = func
2241
2387
  * @return {!proto.pactus.GetRawUnbondTransactionRequest} returns this
2242
2388
  */
2243
2389
  proto.pactus.GetRawUnbondTransactionRequest.prototype.setValidatorAddress = function(value) {
2244
- return jspb.Message.setProto3StringField(this, 3, value);
2390
+ return jspb.Message.setProto3StringField(this, 2, value);
2245
2391
  };
2246
2392
 
2247
2393
 
2248
2394
  /**
2249
- * optional string memo = 4;
2395
+ * optional string memo = 3;
2250
2396
  * @return {string}
2251
2397
  */
2252
2398
  proto.pactus.GetRawUnbondTransactionRequest.prototype.getMemo = function() {
2253
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2399
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2254
2400
  };
2255
2401
 
2256
2402
 
@@ -2259,6 +2405,24 @@ proto.pactus.GetRawUnbondTransactionRequest.prototype.getMemo = function() {
2259
2405
  * @return {!proto.pactus.GetRawUnbondTransactionRequest} returns this
2260
2406
  */
2261
2407
  proto.pactus.GetRawUnbondTransactionRequest.prototype.setMemo = function(value) {
2408
+ return jspb.Message.setProto3StringField(this, 3, value);
2409
+ };
2410
+
2411
+
2412
+ /**
2413
+ * optional string delegate_owner = 4;
2414
+ * @return {string}
2415
+ */
2416
+ proto.pactus.GetRawUnbondTransactionRequest.prototype.getDelegateOwner = function() {
2417
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2418
+ };
2419
+
2420
+
2421
+ /**
2422
+ * @param {string} value
2423
+ * @return {!proto.pactus.GetRawUnbondTransactionRequest} returns this
2424
+ */
2425
+ proto.pactus.GetRawUnbondTransactionRequest.prototype.setDelegateOwner = function(value) {
2262
2426
  return jspb.Message.setProto3StringField(this, 4, value);
2263
2427
  };
2264
2428
 
@@ -3208,7 +3372,11 @@ proto.pactus.PayloadBond.toObject = function(includeInstance, msg) {
3208
3372
  sender: jspb.Message.getFieldWithDefault(msg, 1, ""),
3209
3373
  receiver: jspb.Message.getFieldWithDefault(msg, 2, ""),
3210
3374
  stake: jspb.Message.getFieldWithDefault(msg, 3, 0),
3211
- publicKey: jspb.Message.getFieldWithDefault(msg, 4, "")
3375
+ publicKey: jspb.Message.getFieldWithDefault(msg, 4, ""),
3376
+ isDelegated: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
3377
+ delegateOwner: jspb.Message.getFieldWithDefault(msg, 6, ""),
3378
+ delegateShare: jspb.Message.getFieldWithDefault(msg, 7, 0),
3379
+ delegateExpiry: jspb.Message.getFieldWithDefault(msg, 8, 0)
3212
3380
  };
3213
3381
 
3214
3382
  if (includeInstance) {
@@ -3261,6 +3429,22 @@ proto.pactus.PayloadBond.deserializeBinaryFromReader = function(msg, reader) {
3261
3429
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
3262
3430
  msg.setPublicKey(value);
3263
3431
  break;
3432
+ case 5:
3433
+ var value = /** @type {boolean} */ (reader.readBool());
3434
+ msg.setIsDelegated(value);
3435
+ break;
3436
+ case 6:
3437
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3438
+ msg.setDelegateOwner(value);
3439
+ break;
3440
+ case 7:
3441
+ var value = /** @type {number} */ (reader.readInt64());
3442
+ msg.setDelegateShare(value);
3443
+ break;
3444
+ case 8:
3445
+ var value = /** @type {number} */ (reader.readUint32());
3446
+ msg.setDelegateExpiry(value);
3447
+ break;
3264
3448
  default:
3265
3449
  reader.skipField();
3266
3450
  break;
@@ -3318,6 +3502,34 @@ proto.pactus.PayloadBond.serializeBinaryToWriter = function(message, writer) {
3318
3502
  f
3319
3503
  );
3320
3504
  }
3505
+ f = message.getIsDelegated();
3506
+ if (f) {
3507
+ writer.writeBool(
3508
+ 5,
3509
+ f
3510
+ );
3511
+ }
3512
+ f = message.getDelegateOwner();
3513
+ if (f.length > 0) {
3514
+ writer.writeString(
3515
+ 6,
3516
+ f
3517
+ );
3518
+ }
3519
+ f = message.getDelegateShare();
3520
+ if (f !== 0) {
3521
+ writer.writeInt64(
3522
+ 7,
3523
+ f
3524
+ );
3525
+ }
3526
+ f = message.getDelegateExpiry();
3527
+ if (f !== 0) {
3528
+ writer.writeUint32(
3529
+ 8,
3530
+ f
3531
+ );
3532
+ }
3321
3533
  };
3322
3534
 
3323
3535
 
@@ -3393,6 +3605,78 @@ proto.pactus.PayloadBond.prototype.setPublicKey = function(value) {
3393
3605
  };
3394
3606
 
3395
3607
 
3608
+ /**
3609
+ * optional bool is_delegated = 5;
3610
+ * @return {boolean}
3611
+ */
3612
+ proto.pactus.PayloadBond.prototype.getIsDelegated = function() {
3613
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
3614
+ };
3615
+
3616
+
3617
+ /**
3618
+ * @param {boolean} value
3619
+ * @return {!proto.pactus.PayloadBond} returns this
3620
+ */
3621
+ proto.pactus.PayloadBond.prototype.setIsDelegated = function(value) {
3622
+ return jspb.Message.setProto3BooleanField(this, 5, value);
3623
+ };
3624
+
3625
+
3626
+ /**
3627
+ * optional string delegate_owner = 6;
3628
+ * @return {string}
3629
+ */
3630
+ proto.pactus.PayloadBond.prototype.getDelegateOwner = function() {
3631
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3632
+ };
3633
+
3634
+
3635
+ /**
3636
+ * @param {string} value
3637
+ * @return {!proto.pactus.PayloadBond} returns this
3638
+ */
3639
+ proto.pactus.PayloadBond.prototype.setDelegateOwner = function(value) {
3640
+ return jspb.Message.setProto3StringField(this, 6, value);
3641
+ };
3642
+
3643
+
3644
+ /**
3645
+ * optional int64 delegate_share = 7;
3646
+ * @return {number}
3647
+ */
3648
+ proto.pactus.PayloadBond.prototype.getDelegateShare = function() {
3649
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
3650
+ };
3651
+
3652
+
3653
+ /**
3654
+ * @param {number} value
3655
+ * @return {!proto.pactus.PayloadBond} returns this
3656
+ */
3657
+ proto.pactus.PayloadBond.prototype.setDelegateShare = function(value) {
3658
+ return jspb.Message.setProto3IntField(this, 7, value);
3659
+ };
3660
+
3661
+
3662
+ /**
3663
+ * optional uint32 delegate_expiry = 8;
3664
+ * @return {number}
3665
+ */
3666
+ proto.pactus.PayloadBond.prototype.getDelegateExpiry = function() {
3667
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
3668
+ };
3669
+
3670
+
3671
+ /**
3672
+ * @param {number} value
3673
+ * @return {!proto.pactus.PayloadBond} returns this
3674
+ */
3675
+ proto.pactus.PayloadBond.prototype.setDelegateExpiry = function(value) {
3676
+ return jspb.Message.setProto3IntField(this, 8, value);
3677
+ };
3678
+
3679
+
3396
3680
 
3397
3681
 
3398
3682
 
@@ -3585,7 +3869,8 @@ proto.pactus.PayloadUnbond.prototype.toObject = function(opt_includeInstance) {
3585
3869
  */
3586
3870
  proto.pactus.PayloadUnbond.toObject = function(includeInstance, msg) {
3587
3871
  var f, obj = {
3588
- validator: jspb.Message.getFieldWithDefault(msg, 1, "")
3872
+ validator: jspb.Message.getFieldWithDefault(msg, 1, ""),
3873
+ delegateOwner: jspb.Message.getFieldWithDefault(msg, 2, "")
3589
3874
  };
3590
3875
 
3591
3876
  if (includeInstance) {
@@ -3626,6 +3911,10 @@ proto.pactus.PayloadUnbond.deserializeBinaryFromReader = function(msg, reader) {
3626
3911
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
3627
3912
  msg.setValidator(value);
3628
3913
  break;
3914
+ case 2:
3915
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3916
+ msg.setDelegateOwner(value);
3917
+ break;
3629
3918
  default:
3630
3919
  reader.skipField();
3631
3920
  break;
@@ -3662,6 +3951,13 @@ proto.pactus.PayloadUnbond.serializeBinaryToWriter = function(message, writer) {
3662
3951
  f
3663
3952
  );
3664
3953
  }
3954
+ f = message.getDelegateOwner();
3955
+ if (f.length > 0) {
3956
+ writer.writeString(
3957
+ 2,
3958
+ f
3959
+ );
3960
+ }
3665
3961
  };
3666
3962
 
3667
3963
 
@@ -3683,6 +3979,24 @@ proto.pactus.PayloadUnbond.prototype.setValidator = function(value) {
3683
3979
  };
3684
3980
 
3685
3981
 
3982
+ /**
3983
+ * optional string delegate_owner = 2;
3984
+ * @return {string}
3985
+ */
3986
+ proto.pactus.PayloadUnbond.prototype.getDelegateOwner = function() {
3987
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3988
+ };
3989
+
3990
+
3991
+ /**
3992
+ * @param {string} value
3993
+ * @return {!proto.pactus.PayloadUnbond} returns this
3994
+ */
3995
+ proto.pactus.PayloadUnbond.prototype.setDelegateOwner = function(value) {
3996
+ return jspb.Message.setProto3StringField(this, 2, value);
3997
+ };
3998
+
3999
+
3686
4000
 
3687
4001
 
3688
4002
 
@@ -5330,6 +5644,296 @@ proto.pactus.DecodeRawTransactionResponse.prototype.hasTransaction = function()
5330
5644
  };
5331
5645
 
5332
5646
 
5647
+
5648
+
5649
+
5650
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5651
+ /**
5652
+ * Creates an object representation of this proto.
5653
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5654
+ * Optional fields that are not set will be set to undefined.
5655
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5656
+ * For the list of reserved names please see:
5657
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5658
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5659
+ * JSPB instance for transitional soy proto support:
5660
+ * http://goto/soy-param-migration
5661
+ * @return {!Object}
5662
+ */
5663
+ proto.pactus.CheckTransactionRequest.prototype.toObject = function(opt_includeInstance) {
5664
+ return proto.pactus.CheckTransactionRequest.toObject(opt_includeInstance, this);
5665
+ };
5666
+
5667
+
5668
+ /**
5669
+ * Static version of the {@see toObject} method.
5670
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5671
+ * the JSPB instance for transitional soy proto support:
5672
+ * http://goto/soy-param-migration
5673
+ * @param {!proto.pactus.CheckTransactionRequest} msg The msg instance to transform.
5674
+ * @return {!Object}
5675
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5676
+ */
5677
+ proto.pactus.CheckTransactionRequest.toObject = function(includeInstance, msg) {
5678
+ var f, obj = {
5679
+ rawTransaction: jspb.Message.getFieldWithDefault(msg, 1, "")
5680
+ };
5681
+
5682
+ if (includeInstance) {
5683
+ obj.$jspbMessageInstance = msg;
5684
+ }
5685
+ return obj;
5686
+ };
5687
+ }
5688
+
5689
+
5690
+ /**
5691
+ * Deserializes binary data (in protobuf wire format).
5692
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5693
+ * @return {!proto.pactus.CheckTransactionRequest}
5694
+ */
5695
+ proto.pactus.CheckTransactionRequest.deserializeBinary = function(bytes) {
5696
+ var reader = new jspb.BinaryReader(bytes);
5697
+ var msg = new proto.pactus.CheckTransactionRequest;
5698
+ return proto.pactus.CheckTransactionRequest.deserializeBinaryFromReader(msg, reader);
5699
+ };
5700
+
5701
+
5702
+ /**
5703
+ * Deserializes binary data (in protobuf wire format) from the
5704
+ * given reader into the given message object.
5705
+ * @param {!proto.pactus.CheckTransactionRequest} msg The message object to deserialize into.
5706
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5707
+ * @return {!proto.pactus.CheckTransactionRequest}
5708
+ */
5709
+ proto.pactus.CheckTransactionRequest.deserializeBinaryFromReader = function(msg, reader) {
5710
+ while (reader.nextField()) {
5711
+ if (reader.isEndGroup()) {
5712
+ break;
5713
+ }
5714
+ var field = reader.getFieldNumber();
5715
+ switch (field) {
5716
+ case 1:
5717
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5718
+ msg.setRawTransaction(value);
5719
+ break;
5720
+ default:
5721
+ reader.skipField();
5722
+ break;
5723
+ }
5724
+ }
5725
+ return msg;
5726
+ };
5727
+
5728
+
5729
+ /**
5730
+ * Serializes the message to binary data (in protobuf wire format).
5731
+ * @return {!Uint8Array}
5732
+ */
5733
+ proto.pactus.CheckTransactionRequest.prototype.serializeBinary = function() {
5734
+ var writer = new jspb.BinaryWriter();
5735
+ proto.pactus.CheckTransactionRequest.serializeBinaryToWriter(this, writer);
5736
+ return writer.getResultBuffer();
5737
+ };
5738
+
5739
+
5740
+ /**
5741
+ * Serializes the given message to binary data (in protobuf wire
5742
+ * format), writing to the given BinaryWriter.
5743
+ * @param {!proto.pactus.CheckTransactionRequest} message
5744
+ * @param {!jspb.BinaryWriter} writer
5745
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5746
+ */
5747
+ proto.pactus.CheckTransactionRequest.serializeBinaryToWriter = function(message, writer) {
5748
+ var f = undefined;
5749
+ f = message.getRawTransaction();
5750
+ if (f.length > 0) {
5751
+ writer.writeString(
5752
+ 1,
5753
+ f
5754
+ );
5755
+ }
5756
+ };
5757
+
5758
+
5759
+ /**
5760
+ * optional string raw_transaction = 1;
5761
+ * @return {string}
5762
+ */
5763
+ proto.pactus.CheckTransactionRequest.prototype.getRawTransaction = function() {
5764
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5765
+ };
5766
+
5767
+
5768
+ /**
5769
+ * @param {string} value
5770
+ * @return {!proto.pactus.CheckTransactionRequest} returns this
5771
+ */
5772
+ proto.pactus.CheckTransactionRequest.prototype.setRawTransaction = function(value) {
5773
+ return jspb.Message.setProto3StringField(this, 1, value);
5774
+ };
5775
+
5776
+
5777
+
5778
+
5779
+
5780
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5781
+ /**
5782
+ * Creates an object representation of this proto.
5783
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5784
+ * Optional fields that are not set will be set to undefined.
5785
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5786
+ * For the list of reserved names please see:
5787
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5788
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5789
+ * JSPB instance for transitional soy proto support:
5790
+ * http://goto/soy-param-migration
5791
+ * @return {!Object}
5792
+ */
5793
+ proto.pactus.CheckTransactionResponse.prototype.toObject = function(opt_includeInstance) {
5794
+ return proto.pactus.CheckTransactionResponse.toObject(opt_includeInstance, this);
5795
+ };
5796
+
5797
+
5798
+ /**
5799
+ * Static version of the {@see toObject} method.
5800
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5801
+ * the JSPB instance for transitional soy proto support:
5802
+ * http://goto/soy-param-migration
5803
+ * @param {!proto.pactus.CheckTransactionResponse} msg The msg instance to transform.
5804
+ * @return {!Object}
5805
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5806
+ */
5807
+ proto.pactus.CheckTransactionResponse.toObject = function(includeInstance, msg) {
5808
+ var f, obj = {
5809
+ isValid: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
5810
+ errorMessage: jspb.Message.getFieldWithDefault(msg, 2, "")
5811
+ };
5812
+
5813
+ if (includeInstance) {
5814
+ obj.$jspbMessageInstance = msg;
5815
+ }
5816
+ return obj;
5817
+ };
5818
+ }
5819
+
5820
+
5821
+ /**
5822
+ * Deserializes binary data (in protobuf wire format).
5823
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
5824
+ * @return {!proto.pactus.CheckTransactionResponse}
5825
+ */
5826
+ proto.pactus.CheckTransactionResponse.deserializeBinary = function(bytes) {
5827
+ var reader = new jspb.BinaryReader(bytes);
5828
+ var msg = new proto.pactus.CheckTransactionResponse;
5829
+ return proto.pactus.CheckTransactionResponse.deserializeBinaryFromReader(msg, reader);
5830
+ };
5831
+
5832
+
5833
+ /**
5834
+ * Deserializes binary data (in protobuf wire format) from the
5835
+ * given reader into the given message object.
5836
+ * @param {!proto.pactus.CheckTransactionResponse} msg The message object to deserialize into.
5837
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5838
+ * @return {!proto.pactus.CheckTransactionResponse}
5839
+ */
5840
+ proto.pactus.CheckTransactionResponse.deserializeBinaryFromReader = function(msg, reader) {
5841
+ while (reader.nextField()) {
5842
+ if (reader.isEndGroup()) {
5843
+ break;
5844
+ }
5845
+ var field = reader.getFieldNumber();
5846
+ switch (field) {
5847
+ case 1:
5848
+ var value = /** @type {boolean} */ (reader.readBool());
5849
+ msg.setIsValid(value);
5850
+ break;
5851
+ case 2:
5852
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5853
+ msg.setErrorMessage(value);
5854
+ break;
5855
+ default:
5856
+ reader.skipField();
5857
+ break;
5858
+ }
5859
+ }
5860
+ return msg;
5861
+ };
5862
+
5863
+
5864
+ /**
5865
+ * Serializes the message to binary data (in protobuf wire format).
5866
+ * @return {!Uint8Array}
5867
+ */
5868
+ proto.pactus.CheckTransactionResponse.prototype.serializeBinary = function() {
5869
+ var writer = new jspb.BinaryWriter();
5870
+ proto.pactus.CheckTransactionResponse.serializeBinaryToWriter(this, writer);
5871
+ return writer.getResultBuffer();
5872
+ };
5873
+
5874
+
5875
+ /**
5876
+ * Serializes the given message to binary data (in protobuf wire
5877
+ * format), writing to the given BinaryWriter.
5878
+ * @param {!proto.pactus.CheckTransactionResponse} message
5879
+ * @param {!jspb.BinaryWriter} writer
5880
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5881
+ */
5882
+ proto.pactus.CheckTransactionResponse.serializeBinaryToWriter = function(message, writer) {
5883
+ var f = undefined;
5884
+ f = message.getIsValid();
5885
+ if (f) {
5886
+ writer.writeBool(
5887
+ 1,
5888
+ f
5889
+ );
5890
+ }
5891
+ f = message.getErrorMessage();
5892
+ if (f.length > 0) {
5893
+ writer.writeString(
5894
+ 2,
5895
+ f
5896
+ );
5897
+ }
5898
+ };
5899
+
5900
+
5901
+ /**
5902
+ * optional bool is_valid = 1;
5903
+ * @return {boolean}
5904
+ */
5905
+ proto.pactus.CheckTransactionResponse.prototype.getIsValid = function() {
5906
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
5907
+ };
5908
+
5909
+
5910
+ /**
5911
+ * @param {boolean} value
5912
+ * @return {!proto.pactus.CheckTransactionResponse} returns this
5913
+ */
5914
+ proto.pactus.CheckTransactionResponse.prototype.setIsValid = function(value) {
5915
+ return jspb.Message.setProto3BooleanField(this, 1, value);
5916
+ };
5917
+
5918
+
5919
+ /**
5920
+ * optional string error_message = 2;
5921
+ * @return {string}
5922
+ */
5923
+ proto.pactus.CheckTransactionResponse.prototype.getErrorMessage = function() {
5924
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5925
+ };
5926
+
5927
+
5928
+ /**
5929
+ * @param {string} value
5930
+ * @return {!proto.pactus.CheckTransactionResponse} returns this
5931
+ */
5932
+ proto.pactus.CheckTransactionResponse.prototype.setErrorMessage = function(value) {
5933
+ return jspb.Message.setProto3StringField(this, 2, value);
5934
+ };
5935
+
5936
+
5333
5937
  /**
5334
5938
  * @enum {number}
5335
5939
  */
package/wallet_pb.js CHANGED
@@ -979,7 +979,10 @@ proto.pactus.AddressInfo.toObject = function(includeInstance, msg) {
979
979
  address: jspb.Message.getFieldWithDefault(msg, 1, ""),
980
980
  publicKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
981
981
  label: jspb.Message.getFieldWithDefault(msg, 3, ""),
982
- path: jspb.Message.getFieldWithDefault(msg, 4, "")
982
+ path: jspb.Message.getFieldWithDefault(msg, 4, ""),
983
+ addressType: jspb.Message.getFieldWithDefault(msg, 5, 0),
984
+ balance: jspb.Message.getFieldWithDefault(msg, 6, 0),
985
+ stake: jspb.Message.getFieldWithDefault(msg, 7, 0)
983
986
  };
984
987
 
985
988
  if (includeInstance) {
@@ -1032,6 +1035,18 @@ proto.pactus.AddressInfo.deserializeBinaryFromReader = function(msg, reader) {
1032
1035
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1033
1036
  msg.setPath(value);
1034
1037
  break;
1038
+ case 5:
1039
+ var value = /** @type {!proto.pactus.AddressType} */ (reader.readEnum());
1040
+ msg.setAddressType(value);
1041
+ break;
1042
+ case 6:
1043
+ var value = /** @type {number} */ (reader.readInt64());
1044
+ msg.setBalance(value);
1045
+ break;
1046
+ case 7:
1047
+ var value = /** @type {number} */ (reader.readInt64());
1048
+ msg.setStake(value);
1049
+ break;
1035
1050
  default:
1036
1051
  reader.skipField();
1037
1052
  break;
@@ -1089,6 +1104,27 @@ proto.pactus.AddressInfo.serializeBinaryToWriter = function(message, writer) {
1089
1104
  f
1090
1105
  );
1091
1106
  }
1107
+ f = message.getAddressType();
1108
+ if (f !== 0.0) {
1109
+ writer.writeEnum(
1110
+ 5,
1111
+ f
1112
+ );
1113
+ }
1114
+ f = message.getBalance();
1115
+ if (f !== 0) {
1116
+ writer.writeInt64(
1117
+ 6,
1118
+ f
1119
+ );
1120
+ }
1121
+ f = message.getStake();
1122
+ if (f !== 0) {
1123
+ writer.writeInt64(
1124
+ 7,
1125
+ f
1126
+ );
1127
+ }
1092
1128
  };
1093
1129
 
1094
1130
 
@@ -1164,6 +1200,60 @@ proto.pactus.AddressInfo.prototype.setPath = function(value) {
1164
1200
  };
1165
1201
 
1166
1202
 
1203
+ /**
1204
+ * optional AddressType address_type = 5;
1205
+ * @return {!proto.pactus.AddressType}
1206
+ */
1207
+ proto.pactus.AddressInfo.prototype.getAddressType = function() {
1208
+ return /** @type {!proto.pactus.AddressType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1209
+ };
1210
+
1211
+
1212
+ /**
1213
+ * @param {!proto.pactus.AddressType} value
1214
+ * @return {!proto.pactus.AddressInfo} returns this
1215
+ */
1216
+ proto.pactus.AddressInfo.prototype.setAddressType = function(value) {
1217
+ return jspb.Message.setProto3EnumField(this, 5, value);
1218
+ };
1219
+
1220
+
1221
+ /**
1222
+ * optional int64 balance = 6;
1223
+ * @return {number}
1224
+ */
1225
+ proto.pactus.AddressInfo.prototype.getBalance = function() {
1226
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1227
+ };
1228
+
1229
+
1230
+ /**
1231
+ * @param {number} value
1232
+ * @return {!proto.pactus.AddressInfo} returns this
1233
+ */
1234
+ proto.pactus.AddressInfo.prototype.setBalance = function(value) {
1235
+ return jspb.Message.setProto3IntField(this, 6, value);
1236
+ };
1237
+
1238
+
1239
+ /**
1240
+ * optional int64 stake = 7;
1241
+ * @return {number}
1242
+ */
1243
+ proto.pactus.AddressInfo.prototype.getStake = function() {
1244
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
1245
+ };
1246
+
1247
+
1248
+ /**
1249
+ * @param {number} value
1250
+ * @return {!proto.pactus.AddressInfo} returns this
1251
+ */
1252
+ proto.pactus.AddressInfo.prototype.setStake = function(value) {
1253
+ return jspb.Message.setProto3IntField(this, 7, value);
1254
+ };
1255
+
1256
+
1167
1257
 
1168
1258
 
1169
1259
 
@@ -5813,7 +5903,9 @@ proto.pactus.ListAddressesRequest.prototype.toObject = function(opt_includeInsta
5813
5903
  proto.pactus.ListAddressesRequest.toObject = function(includeInstance, msg) {
5814
5904
  var f, obj = {
5815
5905
  walletName: jspb.Message.getFieldWithDefault(msg, 1, ""),
5816
- addressTypesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
5906
+ addressTypesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
5907
+ includeBalance: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
5908
+ includeStake: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
5817
5909
  };
5818
5910
 
5819
5911
  if (includeInstance) {
@@ -5857,6 +5949,14 @@ proto.pactus.ListAddressesRequest.deserializeBinaryFromReader = function(msg, re
5857
5949
  case 2:
5858
5950
  reader.readPackableEnumInto(msg.getAddressTypesList());
5859
5951
  break;
5952
+ case 3:
5953
+ var value = /** @type {boolean} */ (reader.readBool());
5954
+ msg.setIncludeBalance(value);
5955
+ break;
5956
+ case 4:
5957
+ var value = /** @type {boolean} */ (reader.readBool());
5958
+ msg.setIncludeStake(value);
5959
+ break;
5860
5960
  default:
5861
5961
  reader.skipField();
5862
5962
  break;
@@ -5900,6 +6000,20 @@ proto.pactus.ListAddressesRequest.serializeBinaryToWriter = function(message, wr
5900
6000
  f
5901
6001
  );
5902
6002
  }
6003
+ f = message.getIncludeBalance();
6004
+ if (f) {
6005
+ writer.writeBool(
6006
+ 3,
6007
+ f
6008
+ );
6009
+ }
6010
+ f = message.getIncludeStake();
6011
+ if (f) {
6012
+ writer.writeBool(
6013
+ 4,
6014
+ f
6015
+ );
6016
+ }
5903
6017
  };
5904
6018
 
5905
6019
 
@@ -5958,6 +6072,42 @@ proto.pactus.ListAddressesRequest.prototype.clearAddressTypesList = function() {
5958
6072
  };
5959
6073
 
5960
6074
 
6075
+ /**
6076
+ * optional bool include_balance = 3;
6077
+ * @return {boolean}
6078
+ */
6079
+ proto.pactus.ListAddressesRequest.prototype.getIncludeBalance = function() {
6080
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
6081
+ };
6082
+
6083
+
6084
+ /**
6085
+ * @param {boolean} value
6086
+ * @return {!proto.pactus.ListAddressesRequest} returns this
6087
+ */
6088
+ proto.pactus.ListAddressesRequest.prototype.setIncludeBalance = function(value) {
6089
+ return jspb.Message.setProto3BooleanField(this, 3, value);
6090
+ };
6091
+
6092
+
6093
+ /**
6094
+ * optional bool include_stake = 4;
6095
+ * @return {boolean}
6096
+ */
6097
+ proto.pactus.ListAddressesRequest.prototype.getIncludeStake = function() {
6098
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
6099
+ };
6100
+
6101
+
6102
+ /**
6103
+ * @param {boolean} value
6104
+ * @return {!proto.pactus.ListAddressesRequest} returns this
6105
+ */
6106
+ proto.pactus.ListAddressesRequest.prototype.setIncludeStake = function(value) {
6107
+ return jspb.Message.setProto3BooleanField(this, 4, value);
6108
+ };
6109
+
6110
+
5961
6111
 
5962
6112
  /**
5963
6113
  * List of repeated fields within this message type.
@@ -8389,7 +8539,8 @@ proto.pactus.AddressType = {
8389
8539
  ADDRESS_TYPE_TREASURY: 0,
8390
8540
  ADDRESS_TYPE_VALIDATOR: 1,
8391
8541
  ADDRESS_TYPE_BLS_ACCOUNT: 2,
8392
- ADDRESS_TYPE_ED25519_ACCOUNT: 3
8542
+ ADDRESS_TYPE_ED25519_ACCOUNT: 3,
8543
+ ADDRESS_TYPE_SECP_ACCOUNT: 4
8393
8544
  };
8394
8545
 
8395
8546
  /**