@bithighlander/device-protocol 6.3.1 → 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 -230
  43. package/lib/messages_pb.js +6718 -5570
  44. package/lib/messages_pb.js-e +18219 -0
  45. package/lib/proto.json +2932 -731
  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,1578 @@
1
+ // source: messages-solana.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.SolanaAddress', null, global);
25
+ goog.exportSymbol('proto.SolanaGetAddress', null, global);
26
+ goog.exportSymbol('proto.SolanaMessageSignature', null, global);
27
+ goog.exportSymbol('proto.SolanaSignMessage', null, global);
28
+ goog.exportSymbol('proto.SolanaSignTx', null, global);
29
+ goog.exportSymbol('proto.SolanaSignedTx', null, global);
30
+ /**
31
+ * Generated by JsPbCodeGenerator.
32
+ * @param {Array=} opt_data Optional initial data array, typically from a
33
+ * server response, or constructed directly in Javascript. The array is used
34
+ * in place and becomes part of the constructed object. It is not cloned.
35
+ * If no data is provided, the constructed object will be empty, but still
36
+ * valid.
37
+ * @extends {jspb.Message}
38
+ * @constructor
39
+ */
40
+ proto.SolanaGetAddress = function(opt_data) {
41
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.SolanaGetAddress.repeatedFields_, null);
42
+ };
43
+ goog.inherits(proto.SolanaGetAddress, jspb.Message);
44
+ if (goog.DEBUG && !COMPILED) {
45
+ /**
46
+ * @public
47
+ * @override
48
+ */
49
+ proto.SolanaGetAddress.displayName = 'proto.SolanaGetAddress';
50
+ }
51
+ /**
52
+ * Generated by JsPbCodeGenerator.
53
+ * @param {Array=} opt_data Optional initial data array, typically from a
54
+ * server response, or constructed directly in Javascript. The array is used
55
+ * in place and becomes part of the constructed object. It is not cloned.
56
+ * If no data is provided, the constructed object will be empty, but still
57
+ * valid.
58
+ * @extends {jspb.Message}
59
+ * @constructor
60
+ */
61
+ proto.SolanaAddress = function(opt_data) {
62
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
+ };
64
+ goog.inherits(proto.SolanaAddress, jspb.Message);
65
+ if (goog.DEBUG && !COMPILED) {
66
+ /**
67
+ * @public
68
+ * @override
69
+ */
70
+ proto.SolanaAddress.displayName = 'proto.SolanaAddress';
71
+ }
72
+ /**
73
+ * Generated by JsPbCodeGenerator.
74
+ * @param {Array=} opt_data Optional initial data array, typically from a
75
+ * server response, or constructed directly in Javascript. The array is used
76
+ * in place and becomes part of the constructed object. It is not cloned.
77
+ * If no data is provided, the constructed object will be empty, but still
78
+ * valid.
79
+ * @extends {jspb.Message}
80
+ * @constructor
81
+ */
82
+ proto.SolanaSignTx = function(opt_data) {
83
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.SolanaSignTx.repeatedFields_, null);
84
+ };
85
+ goog.inherits(proto.SolanaSignTx, jspb.Message);
86
+ if (goog.DEBUG && !COMPILED) {
87
+ /**
88
+ * @public
89
+ * @override
90
+ */
91
+ proto.SolanaSignTx.displayName = 'proto.SolanaSignTx';
92
+ }
93
+ /**
94
+ * Generated by JsPbCodeGenerator.
95
+ * @param {Array=} opt_data Optional initial data array, typically from a
96
+ * server response, or constructed directly in Javascript. The array is used
97
+ * in place and becomes part of the constructed object. It is not cloned.
98
+ * If no data is provided, the constructed object will be empty, but still
99
+ * valid.
100
+ * @extends {jspb.Message}
101
+ * @constructor
102
+ */
103
+ proto.SolanaSignedTx = function(opt_data) {
104
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
105
+ };
106
+ goog.inherits(proto.SolanaSignedTx, jspb.Message);
107
+ if (goog.DEBUG && !COMPILED) {
108
+ /**
109
+ * @public
110
+ * @override
111
+ */
112
+ proto.SolanaSignedTx.displayName = 'proto.SolanaSignedTx';
113
+ }
114
+ /**
115
+ * Generated by JsPbCodeGenerator.
116
+ * @param {Array=} opt_data Optional initial data array, typically from a
117
+ * server response, or constructed directly in Javascript. The array is used
118
+ * in place and becomes part of the constructed object. It is not cloned.
119
+ * If no data is provided, the constructed object will be empty, but still
120
+ * valid.
121
+ * @extends {jspb.Message}
122
+ * @constructor
123
+ */
124
+ proto.SolanaSignMessage = function(opt_data) {
125
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.SolanaSignMessage.repeatedFields_, null);
126
+ };
127
+ goog.inherits(proto.SolanaSignMessage, jspb.Message);
128
+ if (goog.DEBUG && !COMPILED) {
129
+ /**
130
+ * @public
131
+ * @override
132
+ */
133
+ proto.SolanaSignMessage.displayName = 'proto.SolanaSignMessage';
134
+ }
135
+ /**
136
+ * Generated by JsPbCodeGenerator.
137
+ * @param {Array=} opt_data Optional initial data array, typically from a
138
+ * server response, or constructed directly in Javascript. The array is used
139
+ * in place and becomes part of the constructed object. It is not cloned.
140
+ * If no data is provided, the constructed object will be empty, but still
141
+ * valid.
142
+ * @extends {jspb.Message}
143
+ * @constructor
144
+ */
145
+ proto.SolanaMessageSignature = function(opt_data) {
146
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
147
+ };
148
+ goog.inherits(proto.SolanaMessageSignature, jspb.Message);
149
+ if (goog.DEBUG && !COMPILED) {
150
+ /**
151
+ * @public
152
+ * @override
153
+ */
154
+ proto.SolanaMessageSignature.displayName = 'proto.SolanaMessageSignature';
155
+ }
156
+
157
+ /**
158
+ * List of repeated fields within this message type.
159
+ * @private {!Array<number>}
160
+ * @const
161
+ */
162
+ proto.SolanaGetAddress.repeatedFields_ = [1];
163
+
164
+
165
+
166
+ if (jspb.Message.GENERATE_TO_OBJECT) {
167
+ /**
168
+ * Creates an object representation of this proto.
169
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
170
+ * Optional fields that are not set will be set to undefined.
171
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
172
+ * For the list of reserved names please see:
173
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
174
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
175
+ * JSPB instance for transitional soy proto support:
176
+ * http://goto/soy-param-migration
177
+ * @return {!Object}
178
+ */
179
+ proto.SolanaGetAddress.prototype.toObject = function(opt_includeInstance) {
180
+ return proto.SolanaGetAddress.toObject(opt_includeInstance, this);
181
+ };
182
+
183
+
184
+ /**
185
+ * Static version of the {@see toObject} method.
186
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
187
+ * the JSPB instance for transitional soy proto support:
188
+ * http://goto/soy-param-migration
189
+ * @param {!proto.SolanaGetAddress} msg The msg instance to transform.
190
+ * @return {!Object}
191
+ * @suppress {unusedLocalVariables} f is only used for nested messages
192
+ */
193
+ proto.SolanaGetAddress.toObject = function(includeInstance, msg) {
194
+ var f, obj = {
195
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
196
+ coinName: jspb.Message.getFieldWithDefault(msg, 2, "Solana"),
197
+ showDisplay: (f = jspb.Message.getBooleanField(msg, 3)) == null ? undefined : f
198
+ };
199
+
200
+ if (includeInstance) {
201
+ obj.$jspbMessageInstance = msg;
202
+ }
203
+ return obj;
204
+ };
205
+ }
206
+
207
+
208
+ /**
209
+ * Deserializes binary data (in protobuf wire format).
210
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
211
+ * @return {!proto.SolanaGetAddress}
212
+ */
213
+ proto.SolanaGetAddress.deserializeBinary = function(bytes) {
214
+ var reader = new jspb.BinaryReader(bytes);
215
+ var msg = new proto.SolanaGetAddress;
216
+ return proto.SolanaGetAddress.deserializeBinaryFromReader(msg, reader);
217
+ };
218
+
219
+
220
+ /**
221
+ * Deserializes binary data (in protobuf wire format) from the
222
+ * given reader into the given message object.
223
+ * @param {!proto.SolanaGetAddress} msg The message object to deserialize into.
224
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
225
+ * @return {!proto.SolanaGetAddress}
226
+ */
227
+ proto.SolanaGetAddress.deserializeBinaryFromReader = function(msg, reader) {
228
+ while (reader.nextField()) {
229
+ if (reader.isEndGroup()) {
230
+ break;
231
+ }
232
+ var field = reader.getFieldNumber();
233
+ switch (field) {
234
+ case 1:
235
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
236
+ for (var i = 0; i < values.length; i++) {
237
+ msg.addAddressN(values[i]);
238
+ }
239
+ break;
240
+ case 2:
241
+ var value = /** @type {string} */ (reader.readString());
242
+ msg.setCoinName(value);
243
+ break;
244
+ case 3:
245
+ var value = /** @type {boolean} */ (reader.readBool());
246
+ msg.setShowDisplay(value);
247
+ break;
248
+ default:
249
+ reader.skipField();
250
+ break;
251
+ }
252
+ }
253
+ return msg;
254
+ };
255
+
256
+
257
+ /**
258
+ * Serializes the message to binary data (in protobuf wire format).
259
+ * @return {!Uint8Array}
260
+ */
261
+ proto.SolanaGetAddress.prototype.serializeBinary = function() {
262
+ var writer = new jspb.BinaryWriter();
263
+ proto.SolanaGetAddress.serializeBinaryToWriter(this, writer);
264
+ return writer.getResultBuffer();
265
+ };
266
+
267
+
268
+ /**
269
+ * Serializes the given message to binary data (in protobuf wire
270
+ * format), writing to the given BinaryWriter.
271
+ * @param {!proto.SolanaGetAddress} message
272
+ * @param {!jspb.BinaryWriter} writer
273
+ * @suppress {unusedLocalVariables} f is only used for nested messages
274
+ */
275
+ proto.SolanaGetAddress.serializeBinaryToWriter = function(message, writer) {
276
+ var f = undefined;
277
+ f = message.getAddressNList();
278
+ if (f.length > 0) {
279
+ writer.writeRepeatedUint32(
280
+ 1,
281
+ f
282
+ );
283
+ }
284
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
285
+ if (f != null) {
286
+ writer.writeString(
287
+ 2,
288
+ f
289
+ );
290
+ }
291
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
292
+ if (f != null) {
293
+ writer.writeBool(
294
+ 3,
295
+ f
296
+ );
297
+ }
298
+ };
299
+
300
+
301
+ /**
302
+ * repeated uint32 address_n = 1;
303
+ * @return {!Array<number>}
304
+ */
305
+ proto.SolanaGetAddress.prototype.getAddressNList = function() {
306
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
307
+ };
308
+
309
+
310
+ /**
311
+ * @param {!Array<number>} value
312
+ * @return {!proto.SolanaGetAddress} returns this
313
+ */
314
+ proto.SolanaGetAddress.prototype.setAddressNList = function(value) {
315
+ return jspb.Message.setField(this, 1, value || []);
316
+ };
317
+
318
+
319
+ /**
320
+ * @param {number} value
321
+ * @param {number=} opt_index
322
+ * @return {!proto.SolanaGetAddress} returns this
323
+ */
324
+ proto.SolanaGetAddress.prototype.addAddressN = function(value, opt_index) {
325
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
326
+ };
327
+
328
+
329
+ /**
330
+ * Clears the list making it empty but non-null.
331
+ * @return {!proto.SolanaGetAddress} returns this
332
+ */
333
+ proto.SolanaGetAddress.prototype.clearAddressNList = function() {
334
+ return this.setAddressNList([]);
335
+ };
336
+
337
+
338
+ /**
339
+ * optional string coin_name = 2;
340
+ * @return {string}
341
+ */
342
+ proto.SolanaGetAddress.prototype.getCoinName = function() {
343
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "Solana"));
344
+ };
345
+
346
+
347
+ /**
348
+ * @param {string} value
349
+ * @return {!proto.SolanaGetAddress} returns this
350
+ */
351
+ proto.SolanaGetAddress.prototype.setCoinName = function(value) {
352
+ return jspb.Message.setField(this, 2, value);
353
+ };
354
+
355
+
356
+ /**
357
+ * Clears the field making it undefined.
358
+ * @return {!proto.SolanaGetAddress} returns this
359
+ */
360
+ proto.SolanaGetAddress.prototype.clearCoinName = function() {
361
+ return jspb.Message.setField(this, 2, undefined);
362
+ };
363
+
364
+
365
+ /**
366
+ * Returns whether this field is set.
367
+ * @return {boolean}
368
+ */
369
+ proto.SolanaGetAddress.prototype.hasCoinName = function() {
370
+ return jspb.Message.getField(this, 2) != null;
371
+ };
372
+
373
+
374
+ /**
375
+ * optional bool show_display = 3;
376
+ * @return {boolean}
377
+ */
378
+ proto.SolanaGetAddress.prototype.getShowDisplay = function() {
379
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
380
+ };
381
+
382
+
383
+ /**
384
+ * @param {boolean} value
385
+ * @return {!proto.SolanaGetAddress} returns this
386
+ */
387
+ proto.SolanaGetAddress.prototype.setShowDisplay = function(value) {
388
+ return jspb.Message.setField(this, 3, value);
389
+ };
390
+
391
+
392
+ /**
393
+ * Clears the field making it undefined.
394
+ * @return {!proto.SolanaGetAddress} returns this
395
+ */
396
+ proto.SolanaGetAddress.prototype.clearShowDisplay = function() {
397
+ return jspb.Message.setField(this, 3, undefined);
398
+ };
399
+
400
+
401
+ /**
402
+ * Returns whether this field is set.
403
+ * @return {boolean}
404
+ */
405
+ proto.SolanaGetAddress.prototype.hasShowDisplay = function() {
406
+ return jspb.Message.getField(this, 3) != null;
407
+ };
408
+
409
+
410
+
411
+
412
+
413
+ if (jspb.Message.GENERATE_TO_OBJECT) {
414
+ /**
415
+ * Creates an object representation of this proto.
416
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
417
+ * Optional fields that are not set will be set to undefined.
418
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
419
+ * For the list of reserved names please see:
420
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
421
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
422
+ * JSPB instance for transitional soy proto support:
423
+ * http://goto/soy-param-migration
424
+ * @return {!Object}
425
+ */
426
+ proto.SolanaAddress.prototype.toObject = function(opt_includeInstance) {
427
+ return proto.SolanaAddress.toObject(opt_includeInstance, this);
428
+ };
429
+
430
+
431
+ /**
432
+ * Static version of the {@see toObject} method.
433
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
434
+ * the JSPB instance for transitional soy proto support:
435
+ * http://goto/soy-param-migration
436
+ * @param {!proto.SolanaAddress} msg The msg instance to transform.
437
+ * @return {!Object}
438
+ * @suppress {unusedLocalVariables} f is only used for nested messages
439
+ */
440
+ proto.SolanaAddress.toObject = function(includeInstance, msg) {
441
+ var f, obj = {
442
+ address: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f
443
+ };
444
+
445
+ if (includeInstance) {
446
+ obj.$jspbMessageInstance = msg;
447
+ }
448
+ return obj;
449
+ };
450
+ }
451
+
452
+
453
+ /**
454
+ * Deserializes binary data (in protobuf wire format).
455
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
456
+ * @return {!proto.SolanaAddress}
457
+ */
458
+ proto.SolanaAddress.deserializeBinary = function(bytes) {
459
+ var reader = new jspb.BinaryReader(bytes);
460
+ var msg = new proto.SolanaAddress;
461
+ return proto.SolanaAddress.deserializeBinaryFromReader(msg, reader);
462
+ };
463
+
464
+
465
+ /**
466
+ * Deserializes binary data (in protobuf wire format) from the
467
+ * given reader into the given message object.
468
+ * @param {!proto.SolanaAddress} msg The message object to deserialize into.
469
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
470
+ * @return {!proto.SolanaAddress}
471
+ */
472
+ proto.SolanaAddress.deserializeBinaryFromReader = function(msg, reader) {
473
+ while (reader.nextField()) {
474
+ if (reader.isEndGroup()) {
475
+ break;
476
+ }
477
+ var field = reader.getFieldNumber();
478
+ switch (field) {
479
+ case 1:
480
+ var value = /** @type {string} */ (reader.readString());
481
+ msg.setAddress(value);
482
+ break;
483
+ default:
484
+ reader.skipField();
485
+ break;
486
+ }
487
+ }
488
+ return msg;
489
+ };
490
+
491
+
492
+ /**
493
+ * Serializes the message to binary data (in protobuf wire format).
494
+ * @return {!Uint8Array}
495
+ */
496
+ proto.SolanaAddress.prototype.serializeBinary = function() {
497
+ var writer = new jspb.BinaryWriter();
498
+ proto.SolanaAddress.serializeBinaryToWriter(this, writer);
499
+ return writer.getResultBuffer();
500
+ };
501
+
502
+
503
+ /**
504
+ * Serializes the given message to binary data (in protobuf wire
505
+ * format), writing to the given BinaryWriter.
506
+ * @param {!proto.SolanaAddress} message
507
+ * @param {!jspb.BinaryWriter} writer
508
+ * @suppress {unusedLocalVariables} f is only used for nested messages
509
+ */
510
+ proto.SolanaAddress.serializeBinaryToWriter = function(message, writer) {
511
+ var f = undefined;
512
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
513
+ if (f != null) {
514
+ writer.writeString(
515
+ 1,
516
+ f
517
+ );
518
+ }
519
+ };
520
+
521
+
522
+ /**
523
+ * optional string address = 1;
524
+ * @return {string}
525
+ */
526
+ proto.SolanaAddress.prototype.getAddress = function() {
527
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
528
+ };
529
+
530
+
531
+ /**
532
+ * @param {string} value
533
+ * @return {!proto.SolanaAddress} returns this
534
+ */
535
+ proto.SolanaAddress.prototype.setAddress = function(value) {
536
+ return jspb.Message.setField(this, 1, value);
537
+ };
538
+
539
+
540
+ /**
541
+ * Clears the field making it undefined.
542
+ * @return {!proto.SolanaAddress} returns this
543
+ */
544
+ proto.SolanaAddress.prototype.clearAddress = function() {
545
+ return jspb.Message.setField(this, 1, undefined);
546
+ };
547
+
548
+
549
+ /**
550
+ * Returns whether this field is set.
551
+ * @return {boolean}
552
+ */
553
+ proto.SolanaAddress.prototype.hasAddress = function() {
554
+ return jspb.Message.getField(this, 1) != null;
555
+ };
556
+
557
+
558
+
559
+ /**
560
+ * List of repeated fields within this message type.
561
+ * @private {!Array<number>}
562
+ * @const
563
+ */
564
+ proto.SolanaSignTx.repeatedFields_ = [1];
565
+
566
+
567
+
568
+ if (jspb.Message.GENERATE_TO_OBJECT) {
569
+ /**
570
+ * Creates an object representation of this proto.
571
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
572
+ * Optional fields that are not set will be set to undefined.
573
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
574
+ * For the list of reserved names please see:
575
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
576
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
577
+ * JSPB instance for transitional soy proto support:
578
+ * http://goto/soy-param-migration
579
+ * @return {!Object}
580
+ */
581
+ proto.SolanaSignTx.prototype.toObject = function(opt_includeInstance) {
582
+ return proto.SolanaSignTx.toObject(opt_includeInstance, this);
583
+ };
584
+
585
+
586
+ /**
587
+ * Static version of the {@see toObject} method.
588
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
589
+ * the JSPB instance for transitional soy proto support:
590
+ * http://goto/soy-param-migration
591
+ * @param {!proto.SolanaSignTx} msg The msg instance to transform.
592
+ * @return {!Object}
593
+ * @suppress {unusedLocalVariables} f is only used for nested messages
594
+ */
595
+ proto.SolanaSignTx.toObject = function(includeInstance, msg) {
596
+ var f, obj = {
597
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
598
+ coinName: jspb.Message.getFieldWithDefault(msg, 2, "Solana"),
599
+ rawTx: msg.getRawTx_asB64()
600
+ };
601
+
602
+ if (includeInstance) {
603
+ obj.$jspbMessageInstance = msg;
604
+ }
605
+ return obj;
606
+ };
607
+ }
608
+
609
+
610
+ /**
611
+ * Deserializes binary data (in protobuf wire format).
612
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
613
+ * @return {!proto.SolanaSignTx}
614
+ */
615
+ proto.SolanaSignTx.deserializeBinary = function(bytes) {
616
+ var reader = new jspb.BinaryReader(bytes);
617
+ var msg = new proto.SolanaSignTx;
618
+ return proto.SolanaSignTx.deserializeBinaryFromReader(msg, reader);
619
+ };
620
+
621
+
622
+ /**
623
+ * Deserializes binary data (in protobuf wire format) from the
624
+ * given reader into the given message object.
625
+ * @param {!proto.SolanaSignTx} msg The message object to deserialize into.
626
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
627
+ * @return {!proto.SolanaSignTx}
628
+ */
629
+ proto.SolanaSignTx.deserializeBinaryFromReader = function(msg, reader) {
630
+ while (reader.nextField()) {
631
+ if (reader.isEndGroup()) {
632
+ break;
633
+ }
634
+ var field = reader.getFieldNumber();
635
+ switch (field) {
636
+ case 1:
637
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
638
+ for (var i = 0; i < values.length; i++) {
639
+ msg.addAddressN(values[i]);
640
+ }
641
+ break;
642
+ case 2:
643
+ var value = /** @type {string} */ (reader.readString());
644
+ msg.setCoinName(value);
645
+ break;
646
+ case 3:
647
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
648
+ msg.setRawTx(value);
649
+ break;
650
+ default:
651
+ reader.skipField();
652
+ break;
653
+ }
654
+ }
655
+ return msg;
656
+ };
657
+
658
+
659
+ /**
660
+ * Serializes the message to binary data (in protobuf wire format).
661
+ * @return {!Uint8Array}
662
+ */
663
+ proto.SolanaSignTx.prototype.serializeBinary = function() {
664
+ var writer = new jspb.BinaryWriter();
665
+ proto.SolanaSignTx.serializeBinaryToWriter(this, writer);
666
+ return writer.getResultBuffer();
667
+ };
668
+
669
+
670
+ /**
671
+ * Serializes the given message to binary data (in protobuf wire
672
+ * format), writing to the given BinaryWriter.
673
+ * @param {!proto.SolanaSignTx} message
674
+ * @param {!jspb.BinaryWriter} writer
675
+ * @suppress {unusedLocalVariables} f is only used for nested messages
676
+ */
677
+ proto.SolanaSignTx.serializeBinaryToWriter = function(message, writer) {
678
+ var f = undefined;
679
+ f = message.getAddressNList();
680
+ if (f.length > 0) {
681
+ writer.writeRepeatedUint32(
682
+ 1,
683
+ f
684
+ );
685
+ }
686
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
687
+ if (f != null) {
688
+ writer.writeString(
689
+ 2,
690
+ f
691
+ );
692
+ }
693
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3));
694
+ if (f != null) {
695
+ writer.writeBytes(
696
+ 3,
697
+ f
698
+ );
699
+ }
700
+ };
701
+
702
+
703
+ /**
704
+ * repeated uint32 address_n = 1;
705
+ * @return {!Array<number>}
706
+ */
707
+ proto.SolanaSignTx.prototype.getAddressNList = function() {
708
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
709
+ };
710
+
711
+
712
+ /**
713
+ * @param {!Array<number>} value
714
+ * @return {!proto.SolanaSignTx} returns this
715
+ */
716
+ proto.SolanaSignTx.prototype.setAddressNList = function(value) {
717
+ return jspb.Message.setField(this, 1, value || []);
718
+ };
719
+
720
+
721
+ /**
722
+ * @param {number} value
723
+ * @param {number=} opt_index
724
+ * @return {!proto.SolanaSignTx} returns this
725
+ */
726
+ proto.SolanaSignTx.prototype.addAddressN = function(value, opt_index) {
727
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
728
+ };
729
+
730
+
731
+ /**
732
+ * Clears the list making it empty but non-null.
733
+ * @return {!proto.SolanaSignTx} returns this
734
+ */
735
+ proto.SolanaSignTx.prototype.clearAddressNList = function() {
736
+ return this.setAddressNList([]);
737
+ };
738
+
739
+
740
+ /**
741
+ * optional string coin_name = 2;
742
+ * @return {string}
743
+ */
744
+ proto.SolanaSignTx.prototype.getCoinName = function() {
745
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "Solana"));
746
+ };
747
+
748
+
749
+ /**
750
+ * @param {string} value
751
+ * @return {!proto.SolanaSignTx} returns this
752
+ */
753
+ proto.SolanaSignTx.prototype.setCoinName = function(value) {
754
+ return jspb.Message.setField(this, 2, value);
755
+ };
756
+
757
+
758
+ /**
759
+ * Clears the field making it undefined.
760
+ * @return {!proto.SolanaSignTx} returns this
761
+ */
762
+ proto.SolanaSignTx.prototype.clearCoinName = function() {
763
+ return jspb.Message.setField(this, 2, undefined);
764
+ };
765
+
766
+
767
+ /**
768
+ * Returns whether this field is set.
769
+ * @return {boolean}
770
+ */
771
+ proto.SolanaSignTx.prototype.hasCoinName = function() {
772
+ return jspb.Message.getField(this, 2) != null;
773
+ };
774
+
775
+
776
+ /**
777
+ * optional bytes raw_tx = 3;
778
+ * @return {!(string|Uint8Array)}
779
+ */
780
+ proto.SolanaSignTx.prototype.getRawTx = function() {
781
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
782
+ };
783
+
784
+
785
+ /**
786
+ * optional bytes raw_tx = 3;
787
+ * This is a type-conversion wrapper around `getRawTx()`
788
+ * @return {string}
789
+ */
790
+ proto.SolanaSignTx.prototype.getRawTx_asB64 = function() {
791
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
792
+ this.getRawTx()));
793
+ };
794
+
795
+
796
+ /**
797
+ * optional bytes raw_tx = 3;
798
+ * Note that Uint8Array is not supported on all browsers.
799
+ * @see http://caniuse.com/Uint8Array
800
+ * This is a type-conversion wrapper around `getRawTx()`
801
+ * @return {!Uint8Array}
802
+ */
803
+ proto.SolanaSignTx.prototype.getRawTx_asU8 = function() {
804
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
805
+ this.getRawTx()));
806
+ };
807
+
808
+
809
+ /**
810
+ * @param {!(string|Uint8Array)} value
811
+ * @return {!proto.SolanaSignTx} returns this
812
+ */
813
+ proto.SolanaSignTx.prototype.setRawTx = function(value) {
814
+ return jspb.Message.setField(this, 3, value);
815
+ };
816
+
817
+
818
+ /**
819
+ * Clears the field making it undefined.
820
+ * @return {!proto.SolanaSignTx} returns this
821
+ */
822
+ proto.SolanaSignTx.prototype.clearRawTx = function() {
823
+ return jspb.Message.setField(this, 3, undefined);
824
+ };
825
+
826
+
827
+ /**
828
+ * Returns whether this field is set.
829
+ * @return {boolean}
830
+ */
831
+ proto.SolanaSignTx.prototype.hasRawTx = function() {
832
+ return jspb.Message.getField(this, 3) != null;
833
+ };
834
+
835
+
836
+
837
+
838
+
839
+ if (jspb.Message.GENERATE_TO_OBJECT) {
840
+ /**
841
+ * Creates an object representation of this proto.
842
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
843
+ * Optional fields that are not set will be set to undefined.
844
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
845
+ * For the list of reserved names please see:
846
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
847
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
848
+ * JSPB instance for transitional soy proto support:
849
+ * http://goto/soy-param-migration
850
+ * @return {!Object}
851
+ */
852
+ proto.SolanaSignedTx.prototype.toObject = function(opt_includeInstance) {
853
+ return proto.SolanaSignedTx.toObject(opt_includeInstance, this);
854
+ };
855
+
856
+
857
+ /**
858
+ * Static version of the {@see toObject} method.
859
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
860
+ * the JSPB instance for transitional soy proto support:
861
+ * http://goto/soy-param-migration
862
+ * @param {!proto.SolanaSignedTx} msg The msg instance to transform.
863
+ * @return {!Object}
864
+ * @suppress {unusedLocalVariables} f is only used for nested messages
865
+ */
866
+ proto.SolanaSignedTx.toObject = function(includeInstance, msg) {
867
+ var f, obj = {
868
+ signature: msg.getSignature_asB64()
869
+ };
870
+
871
+ if (includeInstance) {
872
+ obj.$jspbMessageInstance = msg;
873
+ }
874
+ return obj;
875
+ };
876
+ }
877
+
878
+
879
+ /**
880
+ * Deserializes binary data (in protobuf wire format).
881
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
882
+ * @return {!proto.SolanaSignedTx}
883
+ */
884
+ proto.SolanaSignedTx.deserializeBinary = function(bytes) {
885
+ var reader = new jspb.BinaryReader(bytes);
886
+ var msg = new proto.SolanaSignedTx;
887
+ return proto.SolanaSignedTx.deserializeBinaryFromReader(msg, reader);
888
+ };
889
+
890
+
891
+ /**
892
+ * Deserializes binary data (in protobuf wire format) from the
893
+ * given reader into the given message object.
894
+ * @param {!proto.SolanaSignedTx} msg The message object to deserialize into.
895
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
896
+ * @return {!proto.SolanaSignedTx}
897
+ */
898
+ proto.SolanaSignedTx.deserializeBinaryFromReader = function(msg, reader) {
899
+ while (reader.nextField()) {
900
+ if (reader.isEndGroup()) {
901
+ break;
902
+ }
903
+ var field = reader.getFieldNumber();
904
+ switch (field) {
905
+ case 1:
906
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
907
+ msg.setSignature(value);
908
+ break;
909
+ default:
910
+ reader.skipField();
911
+ break;
912
+ }
913
+ }
914
+ return msg;
915
+ };
916
+
917
+
918
+ /**
919
+ * Serializes the message to binary data (in protobuf wire format).
920
+ * @return {!Uint8Array}
921
+ */
922
+ proto.SolanaSignedTx.prototype.serializeBinary = function() {
923
+ var writer = new jspb.BinaryWriter();
924
+ proto.SolanaSignedTx.serializeBinaryToWriter(this, writer);
925
+ return writer.getResultBuffer();
926
+ };
927
+
928
+
929
+ /**
930
+ * Serializes the given message to binary data (in protobuf wire
931
+ * format), writing to the given BinaryWriter.
932
+ * @param {!proto.SolanaSignedTx} message
933
+ * @param {!jspb.BinaryWriter} writer
934
+ * @suppress {unusedLocalVariables} f is only used for nested messages
935
+ */
936
+ proto.SolanaSignedTx.serializeBinaryToWriter = function(message, writer) {
937
+ var f = undefined;
938
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
939
+ if (f != null) {
940
+ writer.writeBytes(
941
+ 1,
942
+ f
943
+ );
944
+ }
945
+ };
946
+
947
+
948
+ /**
949
+ * optional bytes signature = 1;
950
+ * @return {!(string|Uint8Array)}
951
+ */
952
+ proto.SolanaSignedTx.prototype.getSignature = function() {
953
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
954
+ };
955
+
956
+
957
+ /**
958
+ * optional bytes signature = 1;
959
+ * This is a type-conversion wrapper around `getSignature()`
960
+ * @return {string}
961
+ */
962
+ proto.SolanaSignedTx.prototype.getSignature_asB64 = function() {
963
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
964
+ this.getSignature()));
965
+ };
966
+
967
+
968
+ /**
969
+ * optional bytes signature = 1;
970
+ * Note that Uint8Array is not supported on all browsers.
971
+ * @see http://caniuse.com/Uint8Array
972
+ * This is a type-conversion wrapper around `getSignature()`
973
+ * @return {!Uint8Array}
974
+ */
975
+ proto.SolanaSignedTx.prototype.getSignature_asU8 = function() {
976
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
977
+ this.getSignature()));
978
+ };
979
+
980
+
981
+ /**
982
+ * @param {!(string|Uint8Array)} value
983
+ * @return {!proto.SolanaSignedTx} returns this
984
+ */
985
+ proto.SolanaSignedTx.prototype.setSignature = function(value) {
986
+ return jspb.Message.setField(this, 1, value);
987
+ };
988
+
989
+
990
+ /**
991
+ * Clears the field making it undefined.
992
+ * @return {!proto.SolanaSignedTx} returns this
993
+ */
994
+ proto.SolanaSignedTx.prototype.clearSignature = function() {
995
+ return jspb.Message.setField(this, 1, undefined);
996
+ };
997
+
998
+
999
+ /**
1000
+ * Returns whether this field is set.
1001
+ * @return {boolean}
1002
+ */
1003
+ proto.SolanaSignedTx.prototype.hasSignature = function() {
1004
+ return jspb.Message.getField(this, 1) != null;
1005
+ };
1006
+
1007
+
1008
+
1009
+ /**
1010
+ * List of repeated fields within this message type.
1011
+ * @private {!Array<number>}
1012
+ * @const
1013
+ */
1014
+ proto.SolanaSignMessage.repeatedFields_ = [1];
1015
+
1016
+
1017
+
1018
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1019
+ /**
1020
+ * Creates an object representation of this proto.
1021
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1022
+ * Optional fields that are not set will be set to undefined.
1023
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1024
+ * For the list of reserved names please see:
1025
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1026
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1027
+ * JSPB instance for transitional soy proto support:
1028
+ * http://goto/soy-param-migration
1029
+ * @return {!Object}
1030
+ */
1031
+ proto.SolanaSignMessage.prototype.toObject = function(opt_includeInstance) {
1032
+ return proto.SolanaSignMessage.toObject(opt_includeInstance, this);
1033
+ };
1034
+
1035
+
1036
+ /**
1037
+ * Static version of the {@see toObject} method.
1038
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1039
+ * the JSPB instance for transitional soy proto support:
1040
+ * http://goto/soy-param-migration
1041
+ * @param {!proto.SolanaSignMessage} msg The msg instance to transform.
1042
+ * @return {!Object}
1043
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1044
+ */
1045
+ proto.SolanaSignMessage.toObject = function(includeInstance, msg) {
1046
+ var f, obj = {
1047
+ addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
1048
+ coinName: jspb.Message.getFieldWithDefault(msg, 2, "Solana"),
1049
+ message: msg.getMessage_asB64(),
1050
+ showDisplay: (f = jspb.Message.getBooleanField(msg, 4)) == null ? undefined : f
1051
+ };
1052
+
1053
+ if (includeInstance) {
1054
+ obj.$jspbMessageInstance = msg;
1055
+ }
1056
+ return obj;
1057
+ };
1058
+ }
1059
+
1060
+
1061
+ /**
1062
+ * Deserializes binary data (in protobuf wire format).
1063
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1064
+ * @return {!proto.SolanaSignMessage}
1065
+ */
1066
+ proto.SolanaSignMessage.deserializeBinary = function(bytes) {
1067
+ var reader = new jspb.BinaryReader(bytes);
1068
+ var msg = new proto.SolanaSignMessage;
1069
+ return proto.SolanaSignMessage.deserializeBinaryFromReader(msg, reader);
1070
+ };
1071
+
1072
+
1073
+ /**
1074
+ * Deserializes binary data (in protobuf wire format) from the
1075
+ * given reader into the given message object.
1076
+ * @param {!proto.SolanaSignMessage} msg The message object to deserialize into.
1077
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1078
+ * @return {!proto.SolanaSignMessage}
1079
+ */
1080
+ proto.SolanaSignMessage.deserializeBinaryFromReader = function(msg, reader) {
1081
+ while (reader.nextField()) {
1082
+ if (reader.isEndGroup()) {
1083
+ break;
1084
+ }
1085
+ var field = reader.getFieldNumber();
1086
+ switch (field) {
1087
+ case 1:
1088
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
1089
+ for (var i = 0; i < values.length; i++) {
1090
+ msg.addAddressN(values[i]);
1091
+ }
1092
+ break;
1093
+ case 2:
1094
+ var value = /** @type {string} */ (reader.readString());
1095
+ msg.setCoinName(value);
1096
+ break;
1097
+ case 3:
1098
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1099
+ msg.setMessage(value);
1100
+ break;
1101
+ case 4:
1102
+ var value = /** @type {boolean} */ (reader.readBool());
1103
+ msg.setShowDisplay(value);
1104
+ break;
1105
+ default:
1106
+ reader.skipField();
1107
+ break;
1108
+ }
1109
+ }
1110
+ return msg;
1111
+ };
1112
+
1113
+
1114
+ /**
1115
+ * Serializes the message to binary data (in protobuf wire format).
1116
+ * @return {!Uint8Array}
1117
+ */
1118
+ proto.SolanaSignMessage.prototype.serializeBinary = function() {
1119
+ var writer = new jspb.BinaryWriter();
1120
+ proto.SolanaSignMessage.serializeBinaryToWriter(this, writer);
1121
+ return writer.getResultBuffer();
1122
+ };
1123
+
1124
+
1125
+ /**
1126
+ * Serializes the given message to binary data (in protobuf wire
1127
+ * format), writing to the given BinaryWriter.
1128
+ * @param {!proto.SolanaSignMessage} message
1129
+ * @param {!jspb.BinaryWriter} writer
1130
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1131
+ */
1132
+ proto.SolanaSignMessage.serializeBinaryToWriter = function(message, writer) {
1133
+ var f = undefined;
1134
+ f = message.getAddressNList();
1135
+ if (f.length > 0) {
1136
+ writer.writeRepeatedUint32(
1137
+ 1,
1138
+ f
1139
+ );
1140
+ }
1141
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1142
+ if (f != null) {
1143
+ writer.writeString(
1144
+ 2,
1145
+ f
1146
+ );
1147
+ }
1148
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3));
1149
+ if (f != null) {
1150
+ writer.writeBytes(
1151
+ 3,
1152
+ f
1153
+ );
1154
+ }
1155
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
1156
+ if (f != null) {
1157
+ writer.writeBool(
1158
+ 4,
1159
+ f
1160
+ );
1161
+ }
1162
+ };
1163
+
1164
+
1165
+ /**
1166
+ * repeated uint32 address_n = 1;
1167
+ * @return {!Array<number>}
1168
+ */
1169
+ proto.SolanaSignMessage.prototype.getAddressNList = function() {
1170
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
1171
+ };
1172
+
1173
+
1174
+ /**
1175
+ * @param {!Array<number>} value
1176
+ * @return {!proto.SolanaSignMessage} returns this
1177
+ */
1178
+ proto.SolanaSignMessage.prototype.setAddressNList = function(value) {
1179
+ return jspb.Message.setField(this, 1, value || []);
1180
+ };
1181
+
1182
+
1183
+ /**
1184
+ * @param {number} value
1185
+ * @param {number=} opt_index
1186
+ * @return {!proto.SolanaSignMessage} returns this
1187
+ */
1188
+ proto.SolanaSignMessage.prototype.addAddressN = function(value, opt_index) {
1189
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1190
+ };
1191
+
1192
+
1193
+ /**
1194
+ * Clears the list making it empty but non-null.
1195
+ * @return {!proto.SolanaSignMessage} returns this
1196
+ */
1197
+ proto.SolanaSignMessage.prototype.clearAddressNList = function() {
1198
+ return this.setAddressNList([]);
1199
+ };
1200
+
1201
+
1202
+ /**
1203
+ * optional string coin_name = 2;
1204
+ * @return {string}
1205
+ */
1206
+ proto.SolanaSignMessage.prototype.getCoinName = function() {
1207
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "Solana"));
1208
+ };
1209
+
1210
+
1211
+ /**
1212
+ * @param {string} value
1213
+ * @return {!proto.SolanaSignMessage} returns this
1214
+ */
1215
+ proto.SolanaSignMessage.prototype.setCoinName = function(value) {
1216
+ return jspb.Message.setField(this, 2, value);
1217
+ };
1218
+
1219
+
1220
+ /**
1221
+ * Clears the field making it undefined.
1222
+ * @return {!proto.SolanaSignMessage} returns this
1223
+ */
1224
+ proto.SolanaSignMessage.prototype.clearCoinName = function() {
1225
+ return jspb.Message.setField(this, 2, undefined);
1226
+ };
1227
+
1228
+
1229
+ /**
1230
+ * Returns whether this field is set.
1231
+ * @return {boolean}
1232
+ */
1233
+ proto.SolanaSignMessage.prototype.hasCoinName = function() {
1234
+ return jspb.Message.getField(this, 2) != null;
1235
+ };
1236
+
1237
+
1238
+ /**
1239
+ * optional bytes message = 3;
1240
+ * @return {!(string|Uint8Array)}
1241
+ */
1242
+ proto.SolanaSignMessage.prototype.getMessage = function() {
1243
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1244
+ };
1245
+
1246
+
1247
+ /**
1248
+ * optional bytes message = 3;
1249
+ * This is a type-conversion wrapper around `getMessage()`
1250
+ * @return {string}
1251
+ */
1252
+ proto.SolanaSignMessage.prototype.getMessage_asB64 = function() {
1253
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1254
+ this.getMessage()));
1255
+ };
1256
+
1257
+
1258
+ /**
1259
+ * optional bytes message = 3;
1260
+ * Note that Uint8Array is not supported on all browsers.
1261
+ * @see http://caniuse.com/Uint8Array
1262
+ * This is a type-conversion wrapper around `getMessage()`
1263
+ * @return {!Uint8Array}
1264
+ */
1265
+ proto.SolanaSignMessage.prototype.getMessage_asU8 = function() {
1266
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1267
+ this.getMessage()));
1268
+ };
1269
+
1270
+
1271
+ /**
1272
+ * @param {!(string|Uint8Array)} value
1273
+ * @return {!proto.SolanaSignMessage} returns this
1274
+ */
1275
+ proto.SolanaSignMessage.prototype.setMessage = function(value) {
1276
+ return jspb.Message.setField(this, 3, value);
1277
+ };
1278
+
1279
+
1280
+ /**
1281
+ * Clears the field making it undefined.
1282
+ * @return {!proto.SolanaSignMessage} returns this
1283
+ */
1284
+ proto.SolanaSignMessage.prototype.clearMessage = function() {
1285
+ return jspb.Message.setField(this, 3, undefined);
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * Returns whether this field is set.
1291
+ * @return {boolean}
1292
+ */
1293
+ proto.SolanaSignMessage.prototype.hasMessage = function() {
1294
+ return jspb.Message.getField(this, 3) != null;
1295
+ };
1296
+
1297
+
1298
+ /**
1299
+ * optional bool show_display = 4;
1300
+ * @return {boolean}
1301
+ */
1302
+ proto.SolanaSignMessage.prototype.getShowDisplay = function() {
1303
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
1304
+ };
1305
+
1306
+
1307
+ /**
1308
+ * @param {boolean} value
1309
+ * @return {!proto.SolanaSignMessage} returns this
1310
+ */
1311
+ proto.SolanaSignMessage.prototype.setShowDisplay = function(value) {
1312
+ return jspb.Message.setField(this, 4, value);
1313
+ };
1314
+
1315
+
1316
+ /**
1317
+ * Clears the field making it undefined.
1318
+ * @return {!proto.SolanaSignMessage} returns this
1319
+ */
1320
+ proto.SolanaSignMessage.prototype.clearShowDisplay = function() {
1321
+ return jspb.Message.setField(this, 4, undefined);
1322
+ };
1323
+
1324
+
1325
+ /**
1326
+ * Returns whether this field is set.
1327
+ * @return {boolean}
1328
+ */
1329
+ proto.SolanaSignMessage.prototype.hasShowDisplay = function() {
1330
+ return jspb.Message.getField(this, 4) != null;
1331
+ };
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1338
+ /**
1339
+ * Creates an object representation of this proto.
1340
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1341
+ * Optional fields that are not set will be set to undefined.
1342
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1343
+ * For the list of reserved names please see:
1344
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1345
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1346
+ * JSPB instance for transitional soy proto support:
1347
+ * http://goto/soy-param-migration
1348
+ * @return {!Object}
1349
+ */
1350
+ proto.SolanaMessageSignature.prototype.toObject = function(opt_includeInstance) {
1351
+ return proto.SolanaMessageSignature.toObject(opt_includeInstance, this);
1352
+ };
1353
+
1354
+
1355
+ /**
1356
+ * Static version of the {@see toObject} method.
1357
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1358
+ * the JSPB instance for transitional soy proto support:
1359
+ * http://goto/soy-param-migration
1360
+ * @param {!proto.SolanaMessageSignature} msg The msg instance to transform.
1361
+ * @return {!Object}
1362
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1363
+ */
1364
+ proto.SolanaMessageSignature.toObject = function(includeInstance, msg) {
1365
+ var f, obj = {
1366
+ publicKey: msg.getPublicKey_asB64(),
1367
+ signature: msg.getSignature_asB64()
1368
+ };
1369
+
1370
+ if (includeInstance) {
1371
+ obj.$jspbMessageInstance = msg;
1372
+ }
1373
+ return obj;
1374
+ };
1375
+ }
1376
+
1377
+
1378
+ /**
1379
+ * Deserializes binary data (in protobuf wire format).
1380
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1381
+ * @return {!proto.SolanaMessageSignature}
1382
+ */
1383
+ proto.SolanaMessageSignature.deserializeBinary = function(bytes) {
1384
+ var reader = new jspb.BinaryReader(bytes);
1385
+ var msg = new proto.SolanaMessageSignature;
1386
+ return proto.SolanaMessageSignature.deserializeBinaryFromReader(msg, reader);
1387
+ };
1388
+
1389
+
1390
+ /**
1391
+ * Deserializes binary data (in protobuf wire format) from the
1392
+ * given reader into the given message object.
1393
+ * @param {!proto.SolanaMessageSignature} msg The message object to deserialize into.
1394
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1395
+ * @return {!proto.SolanaMessageSignature}
1396
+ */
1397
+ proto.SolanaMessageSignature.deserializeBinaryFromReader = function(msg, reader) {
1398
+ while (reader.nextField()) {
1399
+ if (reader.isEndGroup()) {
1400
+ break;
1401
+ }
1402
+ var field = reader.getFieldNumber();
1403
+ switch (field) {
1404
+ case 1:
1405
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1406
+ msg.setPublicKey(value);
1407
+ break;
1408
+ case 2:
1409
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1410
+ msg.setSignature(value);
1411
+ break;
1412
+ default:
1413
+ reader.skipField();
1414
+ break;
1415
+ }
1416
+ }
1417
+ return msg;
1418
+ };
1419
+
1420
+
1421
+ /**
1422
+ * Serializes the message to binary data (in protobuf wire format).
1423
+ * @return {!Uint8Array}
1424
+ */
1425
+ proto.SolanaMessageSignature.prototype.serializeBinary = function() {
1426
+ var writer = new jspb.BinaryWriter();
1427
+ proto.SolanaMessageSignature.serializeBinaryToWriter(this, writer);
1428
+ return writer.getResultBuffer();
1429
+ };
1430
+
1431
+
1432
+ /**
1433
+ * Serializes the given message to binary data (in protobuf wire
1434
+ * format), writing to the given BinaryWriter.
1435
+ * @param {!proto.SolanaMessageSignature} message
1436
+ * @param {!jspb.BinaryWriter} writer
1437
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1438
+ */
1439
+ proto.SolanaMessageSignature.serializeBinaryToWriter = function(message, writer) {
1440
+ var f = undefined;
1441
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
1442
+ if (f != null) {
1443
+ writer.writeBytes(
1444
+ 1,
1445
+ f
1446
+ );
1447
+ }
1448
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
1449
+ if (f != null) {
1450
+ writer.writeBytes(
1451
+ 2,
1452
+ f
1453
+ );
1454
+ }
1455
+ };
1456
+
1457
+
1458
+ /**
1459
+ * optional bytes public_key = 1;
1460
+ * @return {!(string|Uint8Array)}
1461
+ */
1462
+ proto.SolanaMessageSignature.prototype.getPublicKey = function() {
1463
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1464
+ };
1465
+
1466
+
1467
+ /**
1468
+ * optional bytes public_key = 1;
1469
+ * This is a type-conversion wrapper around `getPublicKey()`
1470
+ * @return {string}
1471
+ */
1472
+ proto.SolanaMessageSignature.prototype.getPublicKey_asB64 = function() {
1473
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1474
+ this.getPublicKey()));
1475
+ };
1476
+
1477
+
1478
+ /**
1479
+ * optional bytes public_key = 1;
1480
+ * Note that Uint8Array is not supported on all browsers.
1481
+ * @see http://caniuse.com/Uint8Array
1482
+ * This is a type-conversion wrapper around `getPublicKey()`
1483
+ * @return {!Uint8Array}
1484
+ */
1485
+ proto.SolanaMessageSignature.prototype.getPublicKey_asU8 = function() {
1486
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1487
+ this.getPublicKey()));
1488
+ };
1489
+
1490
+
1491
+ /**
1492
+ * @param {!(string|Uint8Array)} value
1493
+ * @return {!proto.SolanaMessageSignature} returns this
1494
+ */
1495
+ proto.SolanaMessageSignature.prototype.setPublicKey = function(value) {
1496
+ return jspb.Message.setField(this, 1, value);
1497
+ };
1498
+
1499
+
1500
+ /**
1501
+ * Clears the field making it undefined.
1502
+ * @return {!proto.SolanaMessageSignature} returns this
1503
+ */
1504
+ proto.SolanaMessageSignature.prototype.clearPublicKey = function() {
1505
+ return jspb.Message.setField(this, 1, undefined);
1506
+ };
1507
+
1508
+
1509
+ /**
1510
+ * Returns whether this field is set.
1511
+ * @return {boolean}
1512
+ */
1513
+ proto.SolanaMessageSignature.prototype.hasPublicKey = function() {
1514
+ return jspb.Message.getField(this, 1) != null;
1515
+ };
1516
+
1517
+
1518
+ /**
1519
+ * optional bytes signature = 2;
1520
+ * @return {!(string|Uint8Array)}
1521
+ */
1522
+ proto.SolanaMessageSignature.prototype.getSignature = function() {
1523
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1524
+ };
1525
+
1526
+
1527
+ /**
1528
+ * optional bytes signature = 2;
1529
+ * This is a type-conversion wrapper around `getSignature()`
1530
+ * @return {string}
1531
+ */
1532
+ proto.SolanaMessageSignature.prototype.getSignature_asB64 = function() {
1533
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1534
+ this.getSignature()));
1535
+ };
1536
+
1537
+
1538
+ /**
1539
+ * optional bytes signature = 2;
1540
+ * Note that Uint8Array is not supported on all browsers.
1541
+ * @see http://caniuse.com/Uint8Array
1542
+ * This is a type-conversion wrapper around `getSignature()`
1543
+ * @return {!Uint8Array}
1544
+ */
1545
+ proto.SolanaMessageSignature.prototype.getSignature_asU8 = function() {
1546
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1547
+ this.getSignature()));
1548
+ };
1549
+
1550
+
1551
+ /**
1552
+ * @param {!(string|Uint8Array)} value
1553
+ * @return {!proto.SolanaMessageSignature} returns this
1554
+ */
1555
+ proto.SolanaMessageSignature.prototype.setSignature = function(value) {
1556
+ return jspb.Message.setField(this, 2, value);
1557
+ };
1558
+
1559
+
1560
+ /**
1561
+ * Clears the field making it undefined.
1562
+ * @return {!proto.SolanaMessageSignature} returns this
1563
+ */
1564
+ proto.SolanaMessageSignature.prototype.clearSignature = function() {
1565
+ return jspb.Message.setField(this, 2, undefined);
1566
+ };
1567
+
1568
+
1569
+ /**
1570
+ * Returns whether this field is set.
1571
+ * @return {boolean}
1572
+ */
1573
+ proto.SolanaMessageSignature.prototype.hasSignature = function() {
1574
+ return jspb.Message.getField(this, 2) != null;
1575
+ };
1576
+
1577
+
1578
+ goog.object.extend(exports, proto);