@bithighlander/device-protocol 6.3.2 → 7.14.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.
Files changed (53) hide show
  1. package/lib/messages-binance_pb.d.ts +428 -0
  2. package/lib/messages-binance_pb.js +3238 -0
  3. package/lib/messages-binance_pb.js-e +3238 -0
  4. package/lib/messages-cosmos_pb.d.ts +466 -0
  5. package/lib/messages-cosmos_pb.js +3689 -0
  6. package/lib/messages-cosmos_pb.js-e +3689 -0
  7. package/lib/messages-eos_pb.js +1962 -1097
  8. package/lib/messages-eos_pb.js-e +8427 -0
  9. package/lib/messages-ethereum_pb.d.ts +530 -0
  10. package/lib/messages-ethereum_pb.js +4421 -0
  11. package/lib/messages-ethereum_pb.js-e +4421 -0
  12. package/lib/messages-mayachain_pb.d.ts +294 -0
  13. package/lib/messages-mayachain_pb.js +2325 -0
  14. package/lib/messages-mayachain_pb.js-e +2325 -0
  15. package/lib/messages-nano_pb.d.ts +0 -7
  16. package/lib/messages-nano_pb.js +366 -238
  17. package/lib/messages-nano_pb.js-e +1692 -0
  18. package/lib/messages-osmosis_pb.d.ts +762 -0
  19. package/lib/messages-osmosis_pb.js +6042 -0
  20. package/lib/messages-osmosis_pb.js-e +6042 -0
  21. package/lib/messages-ripple_pb.d.ts +173 -0
  22. package/lib/messages-ripple_pb.js +1377 -0
  23. package/lib/messages-ripple_pb.js-e +1377 -0
  24. package/lib/messages-solana_pb.d.ts +195 -0
  25. package/lib/messages-solana_pb.js +1578 -0
  26. package/lib/messages-solana_pb.js-e +1578 -0
  27. package/lib/messages-tendermint_pb.d.ts +526 -0
  28. package/lib/messages-tendermint_pb.js +4169 -0
  29. package/lib/messages-tendermint_pb.js-e +4169 -0
  30. package/lib/messages-thorchain_pb.d.ts +288 -0
  31. package/lib/messages-thorchain_pb.js +2277 -0
  32. package/lib/messages-thorchain_pb.js-e +2277 -0
  33. package/lib/messages-ton_pb.d.ts +175 -0
  34. package/lib/messages-ton_pb.js +1396 -0
  35. package/lib/messages-ton_pb.js-e +1396 -0
  36. package/lib/messages-tron_pb.d.ts +161 -0
  37. package/lib/messages-tron_pb.js +1300 -0
  38. package/lib/messages-tron_pb.js-e +1300 -0
  39. package/lib/messages-zcash_pb.d.ts +367 -0
  40. package/lib/messages-zcash_pb.js +3088 -0
  41. package/lib/messages-zcash_pb.js-e +3088 -0
  42. package/lib/messages_pb.d.ts +182 -752
  43. package/lib/messages_pb.js +7798 -11081
  44. package/lib/messages_pb.js-e +18219 -0
  45. package/lib/proto.json +2761 -778
  46. package/lib/types_pb.d.ts +11 -61
  47. package/lib/types_pb.js +1394 -1104
  48. package/lib/types_pb.js-e +6185 -0
  49. package/package.json +7 -5
  50. package/lib/.keep +0 -0
  51. package/lib/exchange_pb.d.ts +0 -249
  52. package/lib/exchange_pb.js +0 -1825
  53. package/yarn.lock +0 -122
@@ -0,0 +1,1300 @@
1
+ // source: messages-tron.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
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));
23
+
24
+ goog.exportSymbol('proto.TronAddress', null, global);
25
+ goog.exportSymbol('proto.TronGetAddress', null, global);
26
+ goog.exportSymbol('proto.TronSignTx', null, global);
27
+ goog.exportSymbol('proto.TronSignedTx', null, global);
28
+ /**
29
+ * Generated by JsPbCodeGenerator.
30
+ * @param {Array=} opt_data Optional initial data array, typically from a
31
+ * server response, or constructed directly in Javascript. The array is used
32
+ * in place and becomes part of the constructed object. It is not cloned.
33
+ * If no data is provided, the constructed object will be empty, but still
34
+ * valid.
35
+ * @extends {jspb.Message}
36
+ * @constructor
37
+ */
38
+ proto.TronGetAddress = function(opt_data) {
39
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.TronGetAddress.repeatedFields_, null);
40
+ };
41
+ goog.inherits(proto.TronGetAddress, jspb.Message);
42
+ if (goog.DEBUG && !COMPILED) {
43
+ /**
44
+ * @public
45
+ * @override
46
+ */
47
+ proto.TronGetAddress.displayName = 'proto.TronGetAddress';
48
+ }
49
+ /**
50
+ * Generated by JsPbCodeGenerator.
51
+ * @param {Array=} opt_data Optional initial data array, typically from a
52
+ * server response, or constructed directly in Javascript. The array is used
53
+ * in place and becomes part of the constructed object. It is not cloned.
54
+ * If no data is provided, the constructed object will be empty, but still
55
+ * valid.
56
+ * @extends {jspb.Message}
57
+ * @constructor
58
+ */
59
+ proto.TronAddress = function(opt_data) {
60
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
61
+ };
62
+ goog.inherits(proto.TronAddress, jspb.Message);
63
+ if (goog.DEBUG && !COMPILED) {
64
+ /**
65
+ * @public
66
+ * @override
67
+ */
68
+ proto.TronAddress.displayName = 'proto.TronAddress';
69
+ }
70
+ /**
71
+ * Generated by JsPbCodeGenerator.
72
+ * @param {Array=} opt_data Optional initial data array, typically from a
73
+ * server response, or constructed directly in Javascript. The array is used
74
+ * in place and becomes part of the constructed object. It is not cloned.
75
+ * If no data is provided, the constructed object will be empty, but still
76
+ * valid.
77
+ * @extends {jspb.Message}
78
+ * @constructor
79
+ */
80
+ proto.TronSignTx = function(opt_data) {
81
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.TronSignTx.repeatedFields_, null);
82
+ };
83
+ goog.inherits(proto.TronSignTx, jspb.Message);
84
+ if (goog.DEBUG && !COMPILED) {
85
+ /**
86
+ * @public
87
+ * @override
88
+ */
89
+ proto.TronSignTx.displayName = 'proto.TronSignTx';
90
+ }
91
+ /**
92
+ * Generated by JsPbCodeGenerator.
93
+ * @param {Array=} opt_data Optional initial data array, typically from a
94
+ * server response, or constructed directly in Javascript. The array is used
95
+ * in place and becomes part of the constructed object. It is not cloned.
96
+ * If no data is provided, the constructed object will be empty, but still
97
+ * valid.
98
+ * @extends {jspb.Message}
99
+ * @constructor
100
+ */
101
+ proto.TronSignedTx = function(opt_data) {
102
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
103
+ };
104
+ goog.inherits(proto.TronSignedTx, jspb.Message);
105
+ if (goog.DEBUG && !COMPILED) {
106
+ /**
107
+ * @public
108
+ * @override
109
+ */
110
+ proto.TronSignedTx.displayName = 'proto.TronSignedTx';
111
+ }
112
+
113
+ /**
114
+ * List of repeated fields within this message type.
115
+ * @private {!Array<number>}
116
+ * @const
117
+ */
118
+ proto.TronGetAddress.repeatedFields_ = [1];
119
+
120
+
121
+
122
+ if (jspb.Message.GENERATE_TO_OBJECT) {
123
+ /**
124
+ * Creates an object representation of this proto.
125
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
126
+ * Optional fields that are not set will be set to undefined.
127
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
128
+ * For the list of reserved names please see:
129
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
130
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
131
+ * JSPB instance for transitional soy proto support:
132
+ * http://goto/soy-param-migration
133
+ * @return {!Object}
134
+ */
135
+ proto.TronGetAddress.prototype.toObject = function(opt_includeInstance) {
136
+ return proto.TronGetAddress.toObject(opt_includeInstance, this);
137
+ };
138
+
139
+
140
+ /**
141
+ * Static version of the {@see toObject} method.
142
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
143
+ * the JSPB instance for transitional soy proto support:
144
+ * http://goto/soy-param-migration
145
+ * @param {!proto.TronGetAddress} msg The msg instance to transform.
146
+ * @return {!Object}
147
+ * @suppress {unusedLocalVariables} f is only used for nested messages
148
+ */
149
+ proto.TronGetAddress.toObject = function(includeInstance, msg) {
150
+ var f, obj = {
151
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
152
+ coinName: jspb.Message.getFieldWithDefault(msg, 2, "Tron"),
153
+ showDisplay: (f = jspb.Message.getBooleanField(msg, 3)) == null ? undefined : f
154
+ };
155
+
156
+ if (includeInstance) {
157
+ obj.$jspbMessageInstance = msg;
158
+ }
159
+ return obj;
160
+ };
161
+ }
162
+
163
+
164
+ /**
165
+ * Deserializes binary data (in protobuf wire format).
166
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
167
+ * @return {!proto.TronGetAddress}
168
+ */
169
+ proto.TronGetAddress.deserializeBinary = function(bytes) {
170
+ var reader = new jspb.BinaryReader(bytes);
171
+ var msg = new proto.TronGetAddress;
172
+ return proto.TronGetAddress.deserializeBinaryFromReader(msg, reader);
173
+ };
174
+
175
+
176
+ /**
177
+ * Deserializes binary data (in protobuf wire format) from the
178
+ * given reader into the given message object.
179
+ * @param {!proto.TronGetAddress} msg The message object to deserialize into.
180
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
181
+ * @return {!proto.TronGetAddress}
182
+ */
183
+ proto.TronGetAddress.deserializeBinaryFromReader = function(msg, reader) {
184
+ while (reader.nextField()) {
185
+ if (reader.isEndGroup()) {
186
+ break;
187
+ }
188
+ var field = reader.getFieldNumber();
189
+ switch (field) {
190
+ case 1:
191
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
192
+ for (var i = 0; i < values.length; i++) {
193
+ msg.addAddressN(values[i]);
194
+ }
195
+ break;
196
+ case 2:
197
+ var value = /** @type {string} */ (reader.readString());
198
+ msg.setCoinName(value);
199
+ break;
200
+ case 3:
201
+ var value = /** @type {boolean} */ (reader.readBool());
202
+ msg.setShowDisplay(value);
203
+ break;
204
+ default:
205
+ reader.skipField();
206
+ break;
207
+ }
208
+ }
209
+ return msg;
210
+ };
211
+
212
+
213
+ /**
214
+ * Serializes the message to binary data (in protobuf wire format).
215
+ * @return {!Uint8Array}
216
+ */
217
+ proto.TronGetAddress.prototype.serializeBinary = function() {
218
+ var writer = new jspb.BinaryWriter();
219
+ proto.TronGetAddress.serializeBinaryToWriter(this, writer);
220
+ return writer.getResultBuffer();
221
+ };
222
+
223
+
224
+ /**
225
+ * Serializes the given message to binary data (in protobuf wire
226
+ * format), writing to the given BinaryWriter.
227
+ * @param {!proto.TronGetAddress} message
228
+ * @param {!jspb.BinaryWriter} writer
229
+ * @suppress {unusedLocalVariables} f is only used for nested messages
230
+ */
231
+ proto.TronGetAddress.serializeBinaryToWriter = function(message, writer) {
232
+ var f = undefined;
233
+ f = message.getAddressNList();
234
+ if (f.length > 0) {
235
+ writer.writeRepeatedUint32(
236
+ 1,
237
+ f
238
+ );
239
+ }
240
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
241
+ if (f != null) {
242
+ writer.writeString(
243
+ 2,
244
+ f
245
+ );
246
+ }
247
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
248
+ if (f != null) {
249
+ writer.writeBool(
250
+ 3,
251
+ f
252
+ );
253
+ }
254
+ };
255
+
256
+
257
+ /**
258
+ * repeated uint32 address_n = 1;
259
+ * @return {!Array<number>}
260
+ */
261
+ proto.TronGetAddress.prototype.getAddressNList = function() {
262
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
263
+ };
264
+
265
+
266
+ /**
267
+ * @param {!Array<number>} value
268
+ * @return {!proto.TronGetAddress} returns this
269
+ */
270
+ proto.TronGetAddress.prototype.setAddressNList = function(value) {
271
+ return jspb.Message.setField(this, 1, value || []);
272
+ };
273
+
274
+
275
+ /**
276
+ * @param {number} value
277
+ * @param {number=} opt_index
278
+ * @return {!proto.TronGetAddress} returns this
279
+ */
280
+ proto.TronGetAddress.prototype.addAddressN = function(value, opt_index) {
281
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
282
+ };
283
+
284
+
285
+ /**
286
+ * Clears the list making it empty but non-null.
287
+ * @return {!proto.TronGetAddress} returns this
288
+ */
289
+ proto.TronGetAddress.prototype.clearAddressNList = function() {
290
+ return this.setAddressNList([]);
291
+ };
292
+
293
+
294
+ /**
295
+ * optional string coin_name = 2;
296
+ * @return {string}
297
+ */
298
+ proto.TronGetAddress.prototype.getCoinName = function() {
299
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "Tron"));
300
+ };
301
+
302
+
303
+ /**
304
+ * @param {string} value
305
+ * @return {!proto.TronGetAddress} returns this
306
+ */
307
+ proto.TronGetAddress.prototype.setCoinName = function(value) {
308
+ return jspb.Message.setField(this, 2, value);
309
+ };
310
+
311
+
312
+ /**
313
+ * Clears the field making it undefined.
314
+ * @return {!proto.TronGetAddress} returns this
315
+ */
316
+ proto.TronGetAddress.prototype.clearCoinName = function() {
317
+ return jspb.Message.setField(this, 2, undefined);
318
+ };
319
+
320
+
321
+ /**
322
+ * Returns whether this field is set.
323
+ * @return {boolean}
324
+ */
325
+ proto.TronGetAddress.prototype.hasCoinName = function() {
326
+ return jspb.Message.getField(this, 2) != null;
327
+ };
328
+
329
+
330
+ /**
331
+ * optional bool show_display = 3;
332
+ * @return {boolean}
333
+ */
334
+ proto.TronGetAddress.prototype.getShowDisplay = function() {
335
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
336
+ };
337
+
338
+
339
+ /**
340
+ * @param {boolean} value
341
+ * @return {!proto.TronGetAddress} returns this
342
+ */
343
+ proto.TronGetAddress.prototype.setShowDisplay = function(value) {
344
+ return jspb.Message.setField(this, 3, value);
345
+ };
346
+
347
+
348
+ /**
349
+ * Clears the field making it undefined.
350
+ * @return {!proto.TronGetAddress} returns this
351
+ */
352
+ proto.TronGetAddress.prototype.clearShowDisplay = function() {
353
+ return jspb.Message.setField(this, 3, undefined);
354
+ };
355
+
356
+
357
+ /**
358
+ * Returns whether this field is set.
359
+ * @return {boolean}
360
+ */
361
+ proto.TronGetAddress.prototype.hasShowDisplay = function() {
362
+ return jspb.Message.getField(this, 3) != null;
363
+ };
364
+
365
+
366
+
367
+
368
+
369
+ if (jspb.Message.GENERATE_TO_OBJECT) {
370
+ /**
371
+ * Creates an object representation of this proto.
372
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
373
+ * Optional fields that are not set will be set to undefined.
374
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
375
+ * For the list of reserved names please see:
376
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
377
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
378
+ * JSPB instance for transitional soy proto support:
379
+ * http://goto/soy-param-migration
380
+ * @return {!Object}
381
+ */
382
+ proto.TronAddress.prototype.toObject = function(opt_includeInstance) {
383
+ return proto.TronAddress.toObject(opt_includeInstance, this);
384
+ };
385
+
386
+
387
+ /**
388
+ * Static version of the {@see toObject} method.
389
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
390
+ * the JSPB instance for transitional soy proto support:
391
+ * http://goto/soy-param-migration
392
+ * @param {!proto.TronAddress} msg The msg instance to transform.
393
+ * @return {!Object}
394
+ * @suppress {unusedLocalVariables} f is only used for nested messages
395
+ */
396
+ proto.TronAddress.toObject = function(includeInstance, msg) {
397
+ var f, obj = {
398
+ address: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f
399
+ };
400
+
401
+ if (includeInstance) {
402
+ obj.$jspbMessageInstance = msg;
403
+ }
404
+ return obj;
405
+ };
406
+ }
407
+
408
+
409
+ /**
410
+ * Deserializes binary data (in protobuf wire format).
411
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
412
+ * @return {!proto.TronAddress}
413
+ */
414
+ proto.TronAddress.deserializeBinary = function(bytes) {
415
+ var reader = new jspb.BinaryReader(bytes);
416
+ var msg = new proto.TronAddress;
417
+ return proto.TronAddress.deserializeBinaryFromReader(msg, reader);
418
+ };
419
+
420
+
421
+ /**
422
+ * Deserializes binary data (in protobuf wire format) from the
423
+ * given reader into the given message object.
424
+ * @param {!proto.TronAddress} msg The message object to deserialize into.
425
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
426
+ * @return {!proto.TronAddress}
427
+ */
428
+ proto.TronAddress.deserializeBinaryFromReader = function(msg, reader) {
429
+ while (reader.nextField()) {
430
+ if (reader.isEndGroup()) {
431
+ break;
432
+ }
433
+ var field = reader.getFieldNumber();
434
+ switch (field) {
435
+ case 1:
436
+ var value = /** @type {string} */ (reader.readString());
437
+ msg.setAddress(value);
438
+ break;
439
+ default:
440
+ reader.skipField();
441
+ break;
442
+ }
443
+ }
444
+ return msg;
445
+ };
446
+
447
+
448
+ /**
449
+ * Serializes the message to binary data (in protobuf wire format).
450
+ * @return {!Uint8Array}
451
+ */
452
+ proto.TronAddress.prototype.serializeBinary = function() {
453
+ var writer = new jspb.BinaryWriter();
454
+ proto.TronAddress.serializeBinaryToWriter(this, writer);
455
+ return writer.getResultBuffer();
456
+ };
457
+
458
+
459
+ /**
460
+ * Serializes the given message to binary data (in protobuf wire
461
+ * format), writing to the given BinaryWriter.
462
+ * @param {!proto.TronAddress} message
463
+ * @param {!jspb.BinaryWriter} writer
464
+ * @suppress {unusedLocalVariables} f is only used for nested messages
465
+ */
466
+ proto.TronAddress.serializeBinaryToWriter = function(message, writer) {
467
+ var f = undefined;
468
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
469
+ if (f != null) {
470
+ writer.writeString(
471
+ 1,
472
+ f
473
+ );
474
+ }
475
+ };
476
+
477
+
478
+ /**
479
+ * optional string address = 1;
480
+ * @return {string}
481
+ */
482
+ proto.TronAddress.prototype.getAddress = function() {
483
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
484
+ };
485
+
486
+
487
+ /**
488
+ * @param {string} value
489
+ * @return {!proto.TronAddress} returns this
490
+ */
491
+ proto.TronAddress.prototype.setAddress = function(value) {
492
+ return jspb.Message.setField(this, 1, value);
493
+ };
494
+
495
+
496
+ /**
497
+ * Clears the field making it undefined.
498
+ * @return {!proto.TronAddress} returns this
499
+ */
500
+ proto.TronAddress.prototype.clearAddress = function() {
501
+ return jspb.Message.setField(this, 1, undefined);
502
+ };
503
+
504
+
505
+ /**
506
+ * Returns whether this field is set.
507
+ * @return {boolean}
508
+ */
509
+ proto.TronAddress.prototype.hasAddress = function() {
510
+ return jspb.Message.getField(this, 1) != null;
511
+ };
512
+
513
+
514
+
515
+ /**
516
+ * List of repeated fields within this message type.
517
+ * @private {!Array<number>}
518
+ * @const
519
+ */
520
+ proto.TronSignTx.repeatedFields_ = [1];
521
+
522
+
523
+
524
+ if (jspb.Message.GENERATE_TO_OBJECT) {
525
+ /**
526
+ * Creates an object representation of this proto.
527
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
528
+ * Optional fields that are not set will be set to undefined.
529
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
530
+ * For the list of reserved names please see:
531
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
532
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
533
+ * JSPB instance for transitional soy proto support:
534
+ * http://goto/soy-param-migration
535
+ * @return {!Object}
536
+ */
537
+ proto.TronSignTx.prototype.toObject = function(opt_includeInstance) {
538
+ return proto.TronSignTx.toObject(opt_includeInstance, this);
539
+ };
540
+
541
+
542
+ /**
543
+ * Static version of the {@see toObject} method.
544
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
545
+ * the JSPB instance for transitional soy proto support:
546
+ * http://goto/soy-param-migration
547
+ * @param {!proto.TronSignTx} msg The msg instance to transform.
548
+ * @return {!Object}
549
+ * @suppress {unusedLocalVariables} f is only used for nested messages
550
+ */
551
+ proto.TronSignTx.toObject = function(includeInstance, msg) {
552
+ var f, obj = {
553
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
554
+ coinName: jspb.Message.getFieldWithDefault(msg, 2, "Tron"),
555
+ rawData: msg.getRawData_asB64(),
556
+ refBlockBytes: msg.getRefBlockBytes_asB64(),
557
+ refBlockHash: msg.getRefBlockHash_asB64(),
558
+ expiration: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
559
+ contractType: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
560
+ toAddress: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
561
+ amount: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f
562
+ };
563
+
564
+ if (includeInstance) {
565
+ obj.$jspbMessageInstance = msg;
566
+ }
567
+ return obj;
568
+ };
569
+ }
570
+
571
+
572
+ /**
573
+ * Deserializes binary data (in protobuf wire format).
574
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
575
+ * @return {!proto.TronSignTx}
576
+ */
577
+ proto.TronSignTx.deserializeBinary = function(bytes) {
578
+ var reader = new jspb.BinaryReader(bytes);
579
+ var msg = new proto.TronSignTx;
580
+ return proto.TronSignTx.deserializeBinaryFromReader(msg, reader);
581
+ };
582
+
583
+
584
+ /**
585
+ * Deserializes binary data (in protobuf wire format) from the
586
+ * given reader into the given message object.
587
+ * @param {!proto.TronSignTx} msg The message object to deserialize into.
588
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
589
+ * @return {!proto.TronSignTx}
590
+ */
591
+ proto.TronSignTx.deserializeBinaryFromReader = function(msg, reader) {
592
+ while (reader.nextField()) {
593
+ if (reader.isEndGroup()) {
594
+ break;
595
+ }
596
+ var field = reader.getFieldNumber();
597
+ switch (field) {
598
+ case 1:
599
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
600
+ for (var i = 0; i < values.length; i++) {
601
+ msg.addAddressN(values[i]);
602
+ }
603
+ break;
604
+ case 2:
605
+ var value = /** @type {string} */ (reader.readString());
606
+ msg.setCoinName(value);
607
+ break;
608
+ case 3:
609
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
610
+ msg.setRawData(value);
611
+ break;
612
+ case 4:
613
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
614
+ msg.setRefBlockBytes(value);
615
+ break;
616
+ case 5:
617
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
618
+ msg.setRefBlockHash(value);
619
+ break;
620
+ case 6:
621
+ var value = /** @type {number} */ (reader.readUint64());
622
+ msg.setExpiration(value);
623
+ break;
624
+ case 7:
625
+ var value = /** @type {string} */ (reader.readString());
626
+ msg.setContractType(value);
627
+ break;
628
+ case 8:
629
+ var value = /** @type {string} */ (reader.readString());
630
+ msg.setToAddress(value);
631
+ break;
632
+ case 9:
633
+ var value = /** @type {number} */ (reader.readUint64());
634
+ msg.setAmount(value);
635
+ break;
636
+ default:
637
+ reader.skipField();
638
+ break;
639
+ }
640
+ }
641
+ return msg;
642
+ };
643
+
644
+
645
+ /**
646
+ * Serializes the message to binary data (in protobuf wire format).
647
+ * @return {!Uint8Array}
648
+ */
649
+ proto.TronSignTx.prototype.serializeBinary = function() {
650
+ var writer = new jspb.BinaryWriter();
651
+ proto.TronSignTx.serializeBinaryToWriter(this, writer);
652
+ return writer.getResultBuffer();
653
+ };
654
+
655
+
656
+ /**
657
+ * Serializes the given message to binary data (in protobuf wire
658
+ * format), writing to the given BinaryWriter.
659
+ * @param {!proto.TronSignTx} message
660
+ * @param {!jspb.BinaryWriter} writer
661
+ * @suppress {unusedLocalVariables} f is only used for nested messages
662
+ */
663
+ proto.TronSignTx.serializeBinaryToWriter = function(message, writer) {
664
+ var f = undefined;
665
+ f = message.getAddressNList();
666
+ if (f.length > 0) {
667
+ writer.writeRepeatedUint32(
668
+ 1,
669
+ f
670
+ );
671
+ }
672
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
673
+ if (f != null) {
674
+ writer.writeString(
675
+ 2,
676
+ f
677
+ );
678
+ }
679
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3));
680
+ if (f != null) {
681
+ writer.writeBytes(
682
+ 3,
683
+ f
684
+ );
685
+ }
686
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 4));
687
+ if (f != null) {
688
+ writer.writeBytes(
689
+ 4,
690
+ f
691
+ );
692
+ }
693
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 5));
694
+ if (f != null) {
695
+ writer.writeBytes(
696
+ 5,
697
+ f
698
+ );
699
+ }
700
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
701
+ if (f != null) {
702
+ writer.writeUint64(
703
+ 6,
704
+ f
705
+ );
706
+ }
707
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
708
+ if (f != null) {
709
+ writer.writeString(
710
+ 7,
711
+ f
712
+ );
713
+ }
714
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
715
+ if (f != null) {
716
+ writer.writeString(
717
+ 8,
718
+ f
719
+ );
720
+ }
721
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
722
+ if (f != null) {
723
+ writer.writeUint64(
724
+ 9,
725
+ f
726
+ );
727
+ }
728
+ };
729
+
730
+
731
+ /**
732
+ * repeated uint32 address_n = 1;
733
+ * @return {!Array<number>}
734
+ */
735
+ proto.TronSignTx.prototype.getAddressNList = function() {
736
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
737
+ };
738
+
739
+
740
+ /**
741
+ * @param {!Array<number>} value
742
+ * @return {!proto.TronSignTx} returns this
743
+ */
744
+ proto.TronSignTx.prototype.setAddressNList = function(value) {
745
+ return jspb.Message.setField(this, 1, value || []);
746
+ };
747
+
748
+
749
+ /**
750
+ * @param {number} value
751
+ * @param {number=} opt_index
752
+ * @return {!proto.TronSignTx} returns this
753
+ */
754
+ proto.TronSignTx.prototype.addAddressN = function(value, opt_index) {
755
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
756
+ };
757
+
758
+
759
+ /**
760
+ * Clears the list making it empty but non-null.
761
+ * @return {!proto.TronSignTx} returns this
762
+ */
763
+ proto.TronSignTx.prototype.clearAddressNList = function() {
764
+ return this.setAddressNList([]);
765
+ };
766
+
767
+
768
+ /**
769
+ * optional string coin_name = 2;
770
+ * @return {string}
771
+ */
772
+ proto.TronSignTx.prototype.getCoinName = function() {
773
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "Tron"));
774
+ };
775
+
776
+
777
+ /**
778
+ * @param {string} value
779
+ * @return {!proto.TronSignTx} returns this
780
+ */
781
+ proto.TronSignTx.prototype.setCoinName = function(value) {
782
+ return jspb.Message.setField(this, 2, value);
783
+ };
784
+
785
+
786
+ /**
787
+ * Clears the field making it undefined.
788
+ * @return {!proto.TronSignTx} returns this
789
+ */
790
+ proto.TronSignTx.prototype.clearCoinName = function() {
791
+ return jspb.Message.setField(this, 2, undefined);
792
+ };
793
+
794
+
795
+ /**
796
+ * Returns whether this field is set.
797
+ * @return {boolean}
798
+ */
799
+ proto.TronSignTx.prototype.hasCoinName = function() {
800
+ return jspb.Message.getField(this, 2) != null;
801
+ };
802
+
803
+
804
+ /**
805
+ * optional bytes raw_data = 3;
806
+ * @return {!(string|Uint8Array)}
807
+ */
808
+ proto.TronSignTx.prototype.getRawData = function() {
809
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
810
+ };
811
+
812
+
813
+ /**
814
+ * optional bytes raw_data = 3;
815
+ * This is a type-conversion wrapper around `getRawData()`
816
+ * @return {string}
817
+ */
818
+ proto.TronSignTx.prototype.getRawData_asB64 = function() {
819
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
820
+ this.getRawData()));
821
+ };
822
+
823
+
824
+ /**
825
+ * optional bytes raw_data = 3;
826
+ * Note that Uint8Array is not supported on all browsers.
827
+ * @see http://caniuse.com/Uint8Array
828
+ * This is a type-conversion wrapper around `getRawData()`
829
+ * @return {!Uint8Array}
830
+ */
831
+ proto.TronSignTx.prototype.getRawData_asU8 = function() {
832
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
833
+ this.getRawData()));
834
+ };
835
+
836
+
837
+ /**
838
+ * @param {!(string|Uint8Array)} value
839
+ * @return {!proto.TronSignTx} returns this
840
+ */
841
+ proto.TronSignTx.prototype.setRawData = function(value) {
842
+ return jspb.Message.setField(this, 3, value);
843
+ };
844
+
845
+
846
+ /**
847
+ * Clears the field making it undefined.
848
+ * @return {!proto.TronSignTx} returns this
849
+ */
850
+ proto.TronSignTx.prototype.clearRawData = function() {
851
+ return jspb.Message.setField(this, 3, undefined);
852
+ };
853
+
854
+
855
+ /**
856
+ * Returns whether this field is set.
857
+ * @return {boolean}
858
+ */
859
+ proto.TronSignTx.prototype.hasRawData = function() {
860
+ return jspb.Message.getField(this, 3) != null;
861
+ };
862
+
863
+
864
+ /**
865
+ * optional bytes ref_block_bytes = 4;
866
+ * @return {!(string|Uint8Array)}
867
+ */
868
+ proto.TronSignTx.prototype.getRefBlockBytes = function() {
869
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
870
+ };
871
+
872
+
873
+ /**
874
+ * optional bytes ref_block_bytes = 4;
875
+ * This is a type-conversion wrapper around `getRefBlockBytes()`
876
+ * @return {string}
877
+ */
878
+ proto.TronSignTx.prototype.getRefBlockBytes_asB64 = function() {
879
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
880
+ this.getRefBlockBytes()));
881
+ };
882
+
883
+
884
+ /**
885
+ * optional bytes ref_block_bytes = 4;
886
+ * Note that Uint8Array is not supported on all browsers.
887
+ * @see http://caniuse.com/Uint8Array
888
+ * This is a type-conversion wrapper around `getRefBlockBytes()`
889
+ * @return {!Uint8Array}
890
+ */
891
+ proto.TronSignTx.prototype.getRefBlockBytes_asU8 = function() {
892
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
893
+ this.getRefBlockBytes()));
894
+ };
895
+
896
+
897
+ /**
898
+ * @param {!(string|Uint8Array)} value
899
+ * @return {!proto.TronSignTx} returns this
900
+ */
901
+ proto.TronSignTx.prototype.setRefBlockBytes = function(value) {
902
+ return jspb.Message.setField(this, 4, value);
903
+ };
904
+
905
+
906
+ /**
907
+ * Clears the field making it undefined.
908
+ * @return {!proto.TronSignTx} returns this
909
+ */
910
+ proto.TronSignTx.prototype.clearRefBlockBytes = function() {
911
+ return jspb.Message.setField(this, 4, undefined);
912
+ };
913
+
914
+
915
+ /**
916
+ * Returns whether this field is set.
917
+ * @return {boolean}
918
+ */
919
+ proto.TronSignTx.prototype.hasRefBlockBytes = function() {
920
+ return jspb.Message.getField(this, 4) != null;
921
+ };
922
+
923
+
924
+ /**
925
+ * optional bytes ref_block_hash = 5;
926
+ * @return {!(string|Uint8Array)}
927
+ */
928
+ proto.TronSignTx.prototype.getRefBlockHash = function() {
929
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
930
+ };
931
+
932
+
933
+ /**
934
+ * optional bytes ref_block_hash = 5;
935
+ * This is a type-conversion wrapper around `getRefBlockHash()`
936
+ * @return {string}
937
+ */
938
+ proto.TronSignTx.prototype.getRefBlockHash_asB64 = function() {
939
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
940
+ this.getRefBlockHash()));
941
+ };
942
+
943
+
944
+ /**
945
+ * optional bytes ref_block_hash = 5;
946
+ * Note that Uint8Array is not supported on all browsers.
947
+ * @see http://caniuse.com/Uint8Array
948
+ * This is a type-conversion wrapper around `getRefBlockHash()`
949
+ * @return {!Uint8Array}
950
+ */
951
+ proto.TronSignTx.prototype.getRefBlockHash_asU8 = function() {
952
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
953
+ this.getRefBlockHash()));
954
+ };
955
+
956
+
957
+ /**
958
+ * @param {!(string|Uint8Array)} value
959
+ * @return {!proto.TronSignTx} returns this
960
+ */
961
+ proto.TronSignTx.prototype.setRefBlockHash = function(value) {
962
+ return jspb.Message.setField(this, 5, value);
963
+ };
964
+
965
+
966
+ /**
967
+ * Clears the field making it undefined.
968
+ * @return {!proto.TronSignTx} returns this
969
+ */
970
+ proto.TronSignTx.prototype.clearRefBlockHash = function() {
971
+ return jspb.Message.setField(this, 5, undefined);
972
+ };
973
+
974
+
975
+ /**
976
+ * Returns whether this field is set.
977
+ * @return {boolean}
978
+ */
979
+ proto.TronSignTx.prototype.hasRefBlockHash = function() {
980
+ return jspb.Message.getField(this, 5) != null;
981
+ };
982
+
983
+
984
+ /**
985
+ * optional uint64 expiration = 6;
986
+ * @return {number}
987
+ */
988
+ proto.TronSignTx.prototype.getExpiration = function() {
989
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
990
+ };
991
+
992
+
993
+ /**
994
+ * @param {number} value
995
+ * @return {!proto.TronSignTx} returns this
996
+ */
997
+ proto.TronSignTx.prototype.setExpiration = function(value) {
998
+ return jspb.Message.setField(this, 6, value);
999
+ };
1000
+
1001
+
1002
+ /**
1003
+ * Clears the field making it undefined.
1004
+ * @return {!proto.TronSignTx} returns this
1005
+ */
1006
+ proto.TronSignTx.prototype.clearExpiration = function() {
1007
+ return jspb.Message.setField(this, 6, undefined);
1008
+ };
1009
+
1010
+
1011
+ /**
1012
+ * Returns whether this field is set.
1013
+ * @return {boolean}
1014
+ */
1015
+ proto.TronSignTx.prototype.hasExpiration = function() {
1016
+ return jspb.Message.getField(this, 6) != null;
1017
+ };
1018
+
1019
+
1020
+ /**
1021
+ * optional string contract_type = 7;
1022
+ * @return {string}
1023
+ */
1024
+ proto.TronSignTx.prototype.getContractType = function() {
1025
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1026
+ };
1027
+
1028
+
1029
+ /**
1030
+ * @param {string} value
1031
+ * @return {!proto.TronSignTx} returns this
1032
+ */
1033
+ proto.TronSignTx.prototype.setContractType = function(value) {
1034
+ return jspb.Message.setField(this, 7, value);
1035
+ };
1036
+
1037
+
1038
+ /**
1039
+ * Clears the field making it undefined.
1040
+ * @return {!proto.TronSignTx} returns this
1041
+ */
1042
+ proto.TronSignTx.prototype.clearContractType = function() {
1043
+ return jspb.Message.setField(this, 7, undefined);
1044
+ };
1045
+
1046
+
1047
+ /**
1048
+ * Returns whether this field is set.
1049
+ * @return {boolean}
1050
+ */
1051
+ proto.TronSignTx.prototype.hasContractType = function() {
1052
+ return jspb.Message.getField(this, 7) != null;
1053
+ };
1054
+
1055
+
1056
+ /**
1057
+ * optional string to_address = 8;
1058
+ * @return {string}
1059
+ */
1060
+ proto.TronSignTx.prototype.getToAddress = function() {
1061
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1062
+ };
1063
+
1064
+
1065
+ /**
1066
+ * @param {string} value
1067
+ * @return {!proto.TronSignTx} returns this
1068
+ */
1069
+ proto.TronSignTx.prototype.setToAddress = function(value) {
1070
+ return jspb.Message.setField(this, 8, value);
1071
+ };
1072
+
1073
+
1074
+ /**
1075
+ * Clears the field making it undefined.
1076
+ * @return {!proto.TronSignTx} returns this
1077
+ */
1078
+ proto.TronSignTx.prototype.clearToAddress = function() {
1079
+ return jspb.Message.setField(this, 8, undefined);
1080
+ };
1081
+
1082
+
1083
+ /**
1084
+ * Returns whether this field is set.
1085
+ * @return {boolean}
1086
+ */
1087
+ proto.TronSignTx.prototype.hasToAddress = function() {
1088
+ return jspb.Message.getField(this, 8) != null;
1089
+ };
1090
+
1091
+
1092
+ /**
1093
+ * optional uint64 amount = 9;
1094
+ * @return {number}
1095
+ */
1096
+ proto.TronSignTx.prototype.getAmount = function() {
1097
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
1098
+ };
1099
+
1100
+
1101
+ /**
1102
+ * @param {number} value
1103
+ * @return {!proto.TronSignTx} returns this
1104
+ */
1105
+ proto.TronSignTx.prototype.setAmount = function(value) {
1106
+ return jspb.Message.setField(this, 9, value);
1107
+ };
1108
+
1109
+
1110
+ /**
1111
+ * Clears the field making it undefined.
1112
+ * @return {!proto.TronSignTx} returns this
1113
+ */
1114
+ proto.TronSignTx.prototype.clearAmount = function() {
1115
+ return jspb.Message.setField(this, 9, undefined);
1116
+ };
1117
+
1118
+
1119
+ /**
1120
+ * Returns whether this field is set.
1121
+ * @return {boolean}
1122
+ */
1123
+ proto.TronSignTx.prototype.hasAmount = function() {
1124
+ return jspb.Message.getField(this, 9) != null;
1125
+ };
1126
+
1127
+
1128
+
1129
+
1130
+
1131
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1132
+ /**
1133
+ * Creates an object representation of this proto.
1134
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1135
+ * Optional fields that are not set will be set to undefined.
1136
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1137
+ * For the list of reserved names please see:
1138
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1139
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1140
+ * JSPB instance for transitional soy proto support:
1141
+ * http://goto/soy-param-migration
1142
+ * @return {!Object}
1143
+ */
1144
+ proto.TronSignedTx.prototype.toObject = function(opt_includeInstance) {
1145
+ return proto.TronSignedTx.toObject(opt_includeInstance, this);
1146
+ };
1147
+
1148
+
1149
+ /**
1150
+ * Static version of the {@see toObject} method.
1151
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1152
+ * the JSPB instance for transitional soy proto support:
1153
+ * http://goto/soy-param-migration
1154
+ * @param {!proto.TronSignedTx} msg The msg instance to transform.
1155
+ * @return {!Object}
1156
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1157
+ */
1158
+ proto.TronSignedTx.toObject = function(includeInstance, msg) {
1159
+ var f, obj = {
1160
+ signature: msg.getSignature_asB64()
1161
+ };
1162
+
1163
+ if (includeInstance) {
1164
+ obj.$jspbMessageInstance = msg;
1165
+ }
1166
+ return obj;
1167
+ };
1168
+ }
1169
+
1170
+
1171
+ /**
1172
+ * Deserializes binary data (in protobuf wire format).
1173
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1174
+ * @return {!proto.TronSignedTx}
1175
+ */
1176
+ proto.TronSignedTx.deserializeBinary = function(bytes) {
1177
+ var reader = new jspb.BinaryReader(bytes);
1178
+ var msg = new proto.TronSignedTx;
1179
+ return proto.TronSignedTx.deserializeBinaryFromReader(msg, reader);
1180
+ };
1181
+
1182
+
1183
+ /**
1184
+ * Deserializes binary data (in protobuf wire format) from the
1185
+ * given reader into the given message object.
1186
+ * @param {!proto.TronSignedTx} msg The message object to deserialize into.
1187
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1188
+ * @return {!proto.TronSignedTx}
1189
+ */
1190
+ proto.TronSignedTx.deserializeBinaryFromReader = function(msg, reader) {
1191
+ while (reader.nextField()) {
1192
+ if (reader.isEndGroup()) {
1193
+ break;
1194
+ }
1195
+ var field = reader.getFieldNumber();
1196
+ switch (field) {
1197
+ case 1:
1198
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1199
+ msg.setSignature(value);
1200
+ break;
1201
+ default:
1202
+ reader.skipField();
1203
+ break;
1204
+ }
1205
+ }
1206
+ return msg;
1207
+ };
1208
+
1209
+
1210
+ /**
1211
+ * Serializes the message to binary data (in protobuf wire format).
1212
+ * @return {!Uint8Array}
1213
+ */
1214
+ proto.TronSignedTx.prototype.serializeBinary = function() {
1215
+ var writer = new jspb.BinaryWriter();
1216
+ proto.TronSignedTx.serializeBinaryToWriter(this, writer);
1217
+ return writer.getResultBuffer();
1218
+ };
1219
+
1220
+
1221
+ /**
1222
+ * Serializes the given message to binary data (in protobuf wire
1223
+ * format), writing to the given BinaryWriter.
1224
+ * @param {!proto.TronSignedTx} message
1225
+ * @param {!jspb.BinaryWriter} writer
1226
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1227
+ */
1228
+ proto.TronSignedTx.serializeBinaryToWriter = function(message, writer) {
1229
+ var f = undefined;
1230
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
1231
+ if (f != null) {
1232
+ writer.writeBytes(
1233
+ 1,
1234
+ f
1235
+ );
1236
+ }
1237
+ };
1238
+
1239
+
1240
+ /**
1241
+ * optional bytes signature = 1;
1242
+ * @return {!(string|Uint8Array)}
1243
+ */
1244
+ proto.TronSignedTx.prototype.getSignature = function() {
1245
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1246
+ };
1247
+
1248
+
1249
+ /**
1250
+ * optional bytes signature = 1;
1251
+ * This is a type-conversion wrapper around `getSignature()`
1252
+ * @return {string}
1253
+ */
1254
+ proto.TronSignedTx.prototype.getSignature_asB64 = function() {
1255
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1256
+ this.getSignature()));
1257
+ };
1258
+
1259
+
1260
+ /**
1261
+ * optional bytes signature = 1;
1262
+ * Note that Uint8Array is not supported on all browsers.
1263
+ * @see http://caniuse.com/Uint8Array
1264
+ * This is a type-conversion wrapper around `getSignature()`
1265
+ * @return {!Uint8Array}
1266
+ */
1267
+ proto.TronSignedTx.prototype.getSignature_asU8 = function() {
1268
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1269
+ this.getSignature()));
1270
+ };
1271
+
1272
+
1273
+ /**
1274
+ * @param {!(string|Uint8Array)} value
1275
+ * @return {!proto.TronSignedTx} returns this
1276
+ */
1277
+ proto.TronSignedTx.prototype.setSignature = function(value) {
1278
+ return jspb.Message.setField(this, 1, value);
1279
+ };
1280
+
1281
+
1282
+ /**
1283
+ * Clears the field making it undefined.
1284
+ * @return {!proto.TronSignedTx} returns this
1285
+ */
1286
+ proto.TronSignedTx.prototype.clearSignature = function() {
1287
+ return jspb.Message.setField(this, 1, undefined);
1288
+ };
1289
+
1290
+
1291
+ /**
1292
+ * Returns whether this field is set.
1293
+ * @return {boolean}
1294
+ */
1295
+ proto.TronSignedTx.prototype.hasSignature = function() {
1296
+ return jspb.Message.getField(this, 1) != null;
1297
+ };
1298
+
1299
+
1300
+ goog.object.extend(exports, proto);