@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.
- package/lib/messages-binance_pb.d.ts +428 -0
- package/lib/messages-binance_pb.js +3238 -0
- package/lib/messages-binance_pb.js-e +3238 -0
- package/lib/messages-cosmos_pb.d.ts +466 -0
- package/lib/messages-cosmos_pb.js +3689 -0
- package/lib/messages-cosmos_pb.js-e +3689 -0
- package/lib/messages-eos_pb.js +1962 -1097
- package/lib/messages-eos_pb.js-e +8427 -0
- package/lib/messages-ethereum_pb.d.ts +530 -0
- package/lib/messages-ethereum_pb.js +4421 -0
- package/lib/messages-ethereum_pb.js-e +4421 -0
- package/lib/messages-mayachain_pb.d.ts +294 -0
- package/lib/messages-mayachain_pb.js +2325 -0
- package/lib/messages-mayachain_pb.js-e +2325 -0
- package/lib/messages-nano_pb.d.ts +0 -7
- package/lib/messages-nano_pb.js +366 -238
- package/lib/messages-nano_pb.js-e +1692 -0
- package/lib/messages-osmosis_pb.d.ts +762 -0
- package/lib/messages-osmosis_pb.js +6042 -0
- package/lib/messages-osmosis_pb.js-e +6042 -0
- package/lib/messages-ripple_pb.d.ts +173 -0
- package/lib/messages-ripple_pb.js +1377 -0
- package/lib/messages-ripple_pb.js-e +1377 -0
- package/lib/messages-solana_pb.d.ts +195 -0
- package/lib/messages-solana_pb.js +1578 -0
- package/lib/messages-solana_pb.js-e +1578 -0
- package/lib/messages-tendermint_pb.d.ts +526 -0
- package/lib/messages-tendermint_pb.js +4169 -0
- package/lib/messages-tendermint_pb.js-e +4169 -0
- package/lib/messages-thorchain_pb.d.ts +288 -0
- package/lib/messages-thorchain_pb.js +2277 -0
- package/lib/messages-thorchain_pb.js-e +2277 -0
- package/lib/messages-ton_pb.d.ts +175 -0
- package/lib/messages-ton_pb.js +1396 -0
- package/lib/messages-ton_pb.js-e +1396 -0
- package/lib/messages-tron_pb.d.ts +161 -0
- package/lib/messages-tron_pb.js +1300 -0
- package/lib/messages-tron_pb.js-e +1300 -0
- package/lib/messages-zcash_pb.d.ts +367 -0
- package/lib/messages-zcash_pb.js +3088 -0
- package/lib/messages-zcash_pb.js-e +3088 -0
- package/lib/messages_pb.d.ts +182 -230
- package/lib/messages_pb.js +6718 -5570
- package/lib/messages_pb.js-e +18219 -0
- package/lib/proto.json +2932 -731
- package/lib/types_pb.d.ts +11 -61
- package/lib/types_pb.js +1394 -1104
- package/lib/types_pb.js-e +6185 -0
- package/package.json +7 -5
- package/lib/.keep +0 -0
- package/lib/exchange_pb.d.ts +0 -249
- package/lib/exchange_pb.js +0 -1825
- package/yarn.lock +0 -122
package/lib/messages-nano_pb.js
CHANGED
|
@@ -1,23 +1,31 @@
|
|
|
1
|
+
// source: messages-nano.proto
|
|
1
2
|
/**
|
|
2
3
|
* @fileoverview
|
|
3
4
|
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
4
6
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
5
7
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
6
8
|
* @public
|
|
7
9
|
*/
|
|
8
10
|
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
9
13
|
|
|
10
14
|
var jspb = require('google-protobuf');
|
|
11
15
|
var goog = jspb;
|
|
12
|
-
var global =
|
|
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));
|
|
13
23
|
|
|
14
|
-
var types_pb = require('./types_pb.js');
|
|
15
24
|
goog.exportSymbol('proto.NanoAddress', null, global);
|
|
16
25
|
goog.exportSymbol('proto.NanoGetAddress', null, global);
|
|
17
26
|
goog.exportSymbol('proto.NanoSignTx', null, global);
|
|
18
27
|
goog.exportSymbol('proto.NanoSignTx.ParentBlock', null, global);
|
|
19
28
|
goog.exportSymbol('proto.NanoSignedTx', null, global);
|
|
20
|
-
|
|
21
29
|
/**
|
|
22
30
|
* Generated by JsPbCodeGenerator.
|
|
23
31
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -33,8 +41,97 @@ proto.NanoGetAddress = function(opt_data) {
|
|
|
33
41
|
};
|
|
34
42
|
goog.inherits(proto.NanoGetAddress, jspb.Message);
|
|
35
43
|
if (goog.DEBUG && !COMPILED) {
|
|
44
|
+
/**
|
|
45
|
+
* @public
|
|
46
|
+
* @override
|
|
47
|
+
*/
|
|
36
48
|
proto.NanoGetAddress.displayName = 'proto.NanoGetAddress';
|
|
37
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Generated by JsPbCodeGenerator.
|
|
52
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
53
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
54
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
55
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
56
|
+
* valid.
|
|
57
|
+
* @extends {jspb.Message}
|
|
58
|
+
* @constructor
|
|
59
|
+
*/
|
|
60
|
+
proto.NanoAddress = function(opt_data) {
|
|
61
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
62
|
+
};
|
|
63
|
+
goog.inherits(proto.NanoAddress, jspb.Message);
|
|
64
|
+
if (goog.DEBUG && !COMPILED) {
|
|
65
|
+
/**
|
|
66
|
+
* @public
|
|
67
|
+
* @override
|
|
68
|
+
*/
|
|
69
|
+
proto.NanoAddress.displayName = 'proto.NanoAddress';
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Generated by JsPbCodeGenerator.
|
|
73
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
74
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
75
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
76
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
77
|
+
* valid.
|
|
78
|
+
* @extends {jspb.Message}
|
|
79
|
+
* @constructor
|
|
80
|
+
*/
|
|
81
|
+
proto.NanoSignTx = function(opt_data) {
|
|
82
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.NanoSignTx.repeatedFields_, null);
|
|
83
|
+
};
|
|
84
|
+
goog.inherits(proto.NanoSignTx, jspb.Message);
|
|
85
|
+
if (goog.DEBUG && !COMPILED) {
|
|
86
|
+
/**
|
|
87
|
+
* @public
|
|
88
|
+
* @override
|
|
89
|
+
*/
|
|
90
|
+
proto.NanoSignTx.displayName = 'proto.NanoSignTx';
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Generated by JsPbCodeGenerator.
|
|
94
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
95
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
96
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
97
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
98
|
+
* valid.
|
|
99
|
+
* @extends {jspb.Message}
|
|
100
|
+
* @constructor
|
|
101
|
+
*/
|
|
102
|
+
proto.NanoSignTx.ParentBlock = function(opt_data) {
|
|
103
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
104
|
+
};
|
|
105
|
+
goog.inherits(proto.NanoSignTx.ParentBlock, jspb.Message);
|
|
106
|
+
if (goog.DEBUG && !COMPILED) {
|
|
107
|
+
/**
|
|
108
|
+
* @public
|
|
109
|
+
* @override
|
|
110
|
+
*/
|
|
111
|
+
proto.NanoSignTx.ParentBlock.displayName = 'proto.NanoSignTx.ParentBlock';
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Generated by JsPbCodeGenerator.
|
|
115
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
116
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
117
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
118
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
119
|
+
* valid.
|
|
120
|
+
* @extends {jspb.Message}
|
|
121
|
+
* @constructor
|
|
122
|
+
*/
|
|
123
|
+
proto.NanoSignedTx = function(opt_data) {
|
|
124
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
125
|
+
};
|
|
126
|
+
goog.inherits(proto.NanoSignedTx, jspb.Message);
|
|
127
|
+
if (goog.DEBUG && !COMPILED) {
|
|
128
|
+
/**
|
|
129
|
+
* @public
|
|
130
|
+
* @override
|
|
131
|
+
*/
|
|
132
|
+
proto.NanoSignedTx.displayName = 'proto.NanoSignedTx';
|
|
133
|
+
}
|
|
134
|
+
|
|
38
135
|
/**
|
|
39
136
|
* List of repeated fields within this message type.
|
|
40
137
|
* @private {!Array<number>}
|
|
@@ -46,13 +143,15 @@ proto.NanoGetAddress.repeatedFields_ = [1];
|
|
|
46
143
|
|
|
47
144
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
48
145
|
/**
|
|
49
|
-
* Creates an object representation of this proto
|
|
146
|
+
* Creates an object representation of this proto.
|
|
50
147
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
148
|
+
* Optional fields that are not set will be set to undefined.
|
|
51
149
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
52
150
|
* For the list of reserved names please see:
|
|
53
|
-
*
|
|
54
|
-
* @param {boolean=} opt_includeInstance
|
|
55
|
-
* for transitional soy proto support:
|
|
151
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
152
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
153
|
+
* JSPB instance for transitional soy proto support:
|
|
154
|
+
* http://goto/soy-param-migration
|
|
56
155
|
* @return {!Object}
|
|
57
156
|
*/
|
|
58
157
|
proto.NanoGetAddress.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -62,8 +161,8 @@ proto.NanoGetAddress.prototype.toObject = function(opt_includeInstance) {
|
|
|
62
161
|
|
|
63
162
|
/**
|
|
64
163
|
* Static version of the {@see toObject} method.
|
|
65
|
-
* @param {boolean|undefined} includeInstance Whether to include
|
|
66
|
-
* instance for transitional soy proto support:
|
|
164
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
165
|
+
* the JSPB instance for transitional soy proto support:
|
|
67
166
|
* http://goto/soy-param-migration
|
|
68
167
|
* @param {!proto.NanoGetAddress} msg The msg instance to transform.
|
|
69
168
|
* @return {!Object}
|
|
@@ -71,9 +170,9 @@ proto.NanoGetAddress.prototype.toObject = function(opt_includeInstance) {
|
|
|
71
170
|
*/
|
|
72
171
|
proto.NanoGetAddress.toObject = function(includeInstance, msg) {
|
|
73
172
|
var f, obj = {
|
|
74
|
-
addressNList: jspb.Message.getRepeatedField(msg, 1),
|
|
173
|
+
addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
75
174
|
coinName: jspb.Message.getFieldWithDefault(msg, 2, "Nano"),
|
|
76
|
-
showDisplay: jspb.Message.
|
|
175
|
+
showDisplay: (f = jspb.Message.getBooleanField(msg, 3)) == null ? undefined : f
|
|
77
176
|
};
|
|
78
177
|
|
|
79
178
|
if (includeInstance) {
|
|
@@ -111,8 +210,10 @@ proto.NanoGetAddress.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
111
210
|
var field = reader.getFieldNumber();
|
|
112
211
|
switch (field) {
|
|
113
212
|
case 1:
|
|
114
|
-
var
|
|
115
|
-
|
|
213
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
|
|
214
|
+
for (var i = 0; i < values.length; i++) {
|
|
215
|
+
msg.addAddressN(values[i]);
|
|
216
|
+
}
|
|
116
217
|
break;
|
|
117
218
|
case 2:
|
|
118
219
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -184,23 +285,31 @@ proto.NanoGetAddress.prototype.getAddressNList = function() {
|
|
|
184
285
|
};
|
|
185
286
|
|
|
186
287
|
|
|
187
|
-
/**
|
|
288
|
+
/**
|
|
289
|
+
* @param {!Array<number>} value
|
|
290
|
+
* @return {!proto.NanoGetAddress} returns this
|
|
291
|
+
*/
|
|
188
292
|
proto.NanoGetAddress.prototype.setAddressNList = function(value) {
|
|
189
|
-
jspb.Message.setField(this, 1, value || []);
|
|
293
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
190
294
|
};
|
|
191
295
|
|
|
192
296
|
|
|
193
297
|
/**
|
|
194
|
-
* @param {
|
|
298
|
+
* @param {number} value
|
|
195
299
|
* @param {number=} opt_index
|
|
300
|
+
* @return {!proto.NanoGetAddress} returns this
|
|
196
301
|
*/
|
|
197
302
|
proto.NanoGetAddress.prototype.addAddressN = function(value, opt_index) {
|
|
198
|
-
jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
303
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
199
304
|
};
|
|
200
305
|
|
|
201
306
|
|
|
307
|
+
/**
|
|
308
|
+
* Clears the list making it empty but non-null.
|
|
309
|
+
* @return {!proto.NanoGetAddress} returns this
|
|
310
|
+
*/
|
|
202
311
|
proto.NanoGetAddress.prototype.clearAddressNList = function() {
|
|
203
|
-
this.setAddressNList([]);
|
|
312
|
+
return this.setAddressNList([]);
|
|
204
313
|
};
|
|
205
314
|
|
|
206
315
|
|
|
@@ -213,20 +322,27 @@ proto.NanoGetAddress.prototype.getCoinName = function() {
|
|
|
213
322
|
};
|
|
214
323
|
|
|
215
324
|
|
|
216
|
-
/**
|
|
325
|
+
/**
|
|
326
|
+
* @param {string} value
|
|
327
|
+
* @return {!proto.NanoGetAddress} returns this
|
|
328
|
+
*/
|
|
217
329
|
proto.NanoGetAddress.prototype.setCoinName = function(value) {
|
|
218
|
-
jspb.Message.setField(this, 2, value);
|
|
330
|
+
return jspb.Message.setField(this, 2, value);
|
|
219
331
|
};
|
|
220
332
|
|
|
221
333
|
|
|
334
|
+
/**
|
|
335
|
+
* Clears the field making it undefined.
|
|
336
|
+
* @return {!proto.NanoGetAddress} returns this
|
|
337
|
+
*/
|
|
222
338
|
proto.NanoGetAddress.prototype.clearCoinName = function() {
|
|
223
|
-
jspb.Message.setField(this, 2, undefined);
|
|
339
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
224
340
|
};
|
|
225
341
|
|
|
226
342
|
|
|
227
343
|
/**
|
|
228
344
|
* Returns whether this field is set.
|
|
229
|
-
* @return {
|
|
345
|
+
* @return {boolean}
|
|
230
346
|
*/
|
|
231
347
|
proto.NanoGetAddress.prototype.hasCoinName = function() {
|
|
232
348
|
return jspb.Message.getField(this, 2) != null;
|
|
@@ -235,29 +351,34 @@ proto.NanoGetAddress.prototype.hasCoinName = function() {
|
|
|
235
351
|
|
|
236
352
|
/**
|
|
237
353
|
* optional bool show_display = 3;
|
|
238
|
-
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
239
|
-
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
240
354
|
* @return {boolean}
|
|
241
355
|
*/
|
|
242
356
|
proto.NanoGetAddress.prototype.getShowDisplay = function() {
|
|
243
|
-
return /** @type {boolean} */ (jspb.Message.
|
|
357
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
244
358
|
};
|
|
245
359
|
|
|
246
360
|
|
|
247
|
-
/**
|
|
361
|
+
/**
|
|
362
|
+
* @param {boolean} value
|
|
363
|
+
* @return {!proto.NanoGetAddress} returns this
|
|
364
|
+
*/
|
|
248
365
|
proto.NanoGetAddress.prototype.setShowDisplay = function(value) {
|
|
249
|
-
jspb.Message.setField(this, 3, value);
|
|
366
|
+
return jspb.Message.setField(this, 3, value);
|
|
250
367
|
};
|
|
251
368
|
|
|
252
369
|
|
|
370
|
+
/**
|
|
371
|
+
* Clears the field making it undefined.
|
|
372
|
+
* @return {!proto.NanoGetAddress} returns this
|
|
373
|
+
*/
|
|
253
374
|
proto.NanoGetAddress.prototype.clearShowDisplay = function() {
|
|
254
|
-
jspb.Message.setField(this, 3, undefined);
|
|
375
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
255
376
|
};
|
|
256
377
|
|
|
257
378
|
|
|
258
379
|
/**
|
|
259
380
|
* Returns whether this field is set.
|
|
260
|
-
* @return {
|
|
381
|
+
* @return {boolean}
|
|
261
382
|
*/
|
|
262
383
|
proto.NanoGetAddress.prototype.hasShowDisplay = function() {
|
|
263
384
|
return jspb.Message.getField(this, 3) != null;
|
|
@@ -265,34 +386,19 @@ proto.NanoGetAddress.prototype.hasShowDisplay = function() {
|
|
|
265
386
|
|
|
266
387
|
|
|
267
388
|
|
|
268
|
-
/**
|
|
269
|
-
* Generated by JsPbCodeGenerator.
|
|
270
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
271
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
272
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
273
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
274
|
-
* valid.
|
|
275
|
-
* @extends {jspb.Message}
|
|
276
|
-
* @constructor
|
|
277
|
-
*/
|
|
278
|
-
proto.NanoAddress = function(opt_data) {
|
|
279
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
280
|
-
};
|
|
281
|
-
goog.inherits(proto.NanoAddress, jspb.Message);
|
|
282
|
-
if (goog.DEBUG && !COMPILED) {
|
|
283
|
-
proto.NanoAddress.displayName = 'proto.NanoAddress';
|
|
284
|
-
}
|
|
285
389
|
|
|
286
390
|
|
|
287
391
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
288
392
|
/**
|
|
289
|
-
* Creates an object representation of this proto
|
|
393
|
+
* Creates an object representation of this proto.
|
|
290
394
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
395
|
+
* Optional fields that are not set will be set to undefined.
|
|
291
396
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
292
397
|
* For the list of reserved names please see:
|
|
293
|
-
*
|
|
294
|
-
* @param {boolean=} opt_includeInstance
|
|
295
|
-
* for transitional soy proto support:
|
|
398
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
399
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
400
|
+
* JSPB instance for transitional soy proto support:
|
|
401
|
+
* http://goto/soy-param-migration
|
|
296
402
|
* @return {!Object}
|
|
297
403
|
*/
|
|
298
404
|
proto.NanoAddress.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -302,8 +408,8 @@ proto.NanoAddress.prototype.toObject = function(opt_includeInstance) {
|
|
|
302
408
|
|
|
303
409
|
/**
|
|
304
410
|
* Static version of the {@see toObject} method.
|
|
305
|
-
* @param {boolean|undefined} includeInstance Whether to include
|
|
306
|
-
* instance for transitional soy proto support:
|
|
411
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
412
|
+
* the JSPB instance for transitional soy proto support:
|
|
307
413
|
* http://goto/soy-param-migration
|
|
308
414
|
* @param {!proto.NanoAddress} msg The msg instance to transform.
|
|
309
415
|
* @return {!Object}
|
|
@@ -311,7 +417,7 @@ proto.NanoAddress.prototype.toObject = function(opt_includeInstance) {
|
|
|
311
417
|
*/
|
|
312
418
|
proto.NanoAddress.toObject = function(includeInstance, msg) {
|
|
313
419
|
var f, obj = {
|
|
314
|
-
address: jspb.Message.getField(msg, 1)
|
|
420
|
+
address: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f
|
|
315
421
|
};
|
|
316
422
|
|
|
317
423
|
if (includeInstance) {
|
|
@@ -400,20 +506,27 @@ proto.NanoAddress.prototype.getAddress = function() {
|
|
|
400
506
|
};
|
|
401
507
|
|
|
402
508
|
|
|
403
|
-
/**
|
|
509
|
+
/**
|
|
510
|
+
* @param {string} value
|
|
511
|
+
* @return {!proto.NanoAddress} returns this
|
|
512
|
+
*/
|
|
404
513
|
proto.NanoAddress.prototype.setAddress = function(value) {
|
|
405
|
-
jspb.Message.setField(this, 1, value);
|
|
514
|
+
return jspb.Message.setField(this, 1, value);
|
|
406
515
|
};
|
|
407
516
|
|
|
408
517
|
|
|
518
|
+
/**
|
|
519
|
+
* Clears the field making it undefined.
|
|
520
|
+
* @return {!proto.NanoAddress} returns this
|
|
521
|
+
*/
|
|
409
522
|
proto.NanoAddress.prototype.clearAddress = function() {
|
|
410
|
-
jspb.Message.setField(this, 1, undefined);
|
|
523
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
411
524
|
};
|
|
412
525
|
|
|
413
526
|
|
|
414
527
|
/**
|
|
415
528
|
* Returns whether this field is set.
|
|
416
|
-
* @return {
|
|
529
|
+
* @return {boolean}
|
|
417
530
|
*/
|
|
418
531
|
proto.NanoAddress.prototype.hasAddress = function() {
|
|
419
532
|
return jspb.Message.getField(this, 1) != null;
|
|
@@ -421,23 +534,6 @@ proto.NanoAddress.prototype.hasAddress = function() {
|
|
|
421
534
|
|
|
422
535
|
|
|
423
536
|
|
|
424
|
-
/**
|
|
425
|
-
* Generated by JsPbCodeGenerator.
|
|
426
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
427
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
428
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
429
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
430
|
-
* valid.
|
|
431
|
-
* @extends {jspb.Message}
|
|
432
|
-
* @constructor
|
|
433
|
-
*/
|
|
434
|
-
proto.NanoSignTx = function(opt_data) {
|
|
435
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.NanoSignTx.repeatedFields_, null);
|
|
436
|
-
};
|
|
437
|
-
goog.inherits(proto.NanoSignTx, jspb.Message);
|
|
438
|
-
if (goog.DEBUG && !COMPILED) {
|
|
439
|
-
proto.NanoSignTx.displayName = 'proto.NanoSignTx';
|
|
440
|
-
}
|
|
441
537
|
/**
|
|
442
538
|
* List of repeated fields within this message type.
|
|
443
539
|
* @private {!Array<number>}
|
|
@@ -449,13 +545,15 @@ proto.NanoSignTx.repeatedFields_ = [1,6];
|
|
|
449
545
|
|
|
450
546
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
451
547
|
/**
|
|
452
|
-
* Creates an object representation of this proto
|
|
548
|
+
* Creates an object representation of this proto.
|
|
453
549
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
550
|
+
* Optional fields that are not set will be set to undefined.
|
|
454
551
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
455
552
|
* For the list of reserved names please see:
|
|
456
|
-
*
|
|
457
|
-
* @param {boolean=} opt_includeInstance
|
|
458
|
-
* for transitional soy proto support:
|
|
553
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
554
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
555
|
+
* JSPB instance for transitional soy proto support:
|
|
556
|
+
* http://goto/soy-param-migration
|
|
459
557
|
* @return {!Object}
|
|
460
558
|
*/
|
|
461
559
|
proto.NanoSignTx.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -465,8 +563,8 @@ proto.NanoSignTx.prototype.toObject = function(opt_includeInstance) {
|
|
|
465
563
|
|
|
466
564
|
/**
|
|
467
565
|
* Static version of the {@see toObject} method.
|
|
468
|
-
* @param {boolean|undefined} includeInstance Whether to include
|
|
469
|
-
* instance for transitional soy proto support:
|
|
566
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
567
|
+
* the JSPB instance for transitional soy proto support:
|
|
470
568
|
* http://goto/soy-param-migration
|
|
471
569
|
* @param {!proto.NanoSignTx} msg The msg instance to transform.
|
|
472
570
|
* @return {!Object}
|
|
@@ -474,15 +572,14 @@ proto.NanoSignTx.prototype.toObject = function(opt_includeInstance) {
|
|
|
474
572
|
*/
|
|
475
573
|
proto.NanoSignTx.toObject = function(includeInstance, msg) {
|
|
476
574
|
var f, obj = {
|
|
477
|
-
addressNList: jspb.Message.getRepeatedField(msg, 1),
|
|
575
|
+
addressNList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
478
576
|
coinName: jspb.Message.getFieldWithDefault(msg, 2, "Nano"),
|
|
479
577
|
parentBlock: (f = msg.getParentBlock()) && proto.NanoSignTx.ParentBlock.toObject(includeInstance, f),
|
|
480
578
|
linkHash: msg.getLinkHash_asB64(),
|
|
481
|
-
linkRecipient: jspb.Message.getField(msg, 5),
|
|
482
|
-
linkRecipientNList: jspb.Message.getRepeatedField(msg, 6),
|
|
483
|
-
representative: jspb.Message.getField(msg, 7),
|
|
484
|
-
balance: msg.getBalance_asB64()
|
|
485
|
-
exchangeType: (f = msg.getExchangeType()) && types_pb.ExchangeType.toObject(includeInstance, f)
|
|
579
|
+
linkRecipient: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
|
|
580
|
+
linkRecipientNList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
581
|
+
representative: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
|
|
582
|
+
balance: msg.getBalance_asB64()
|
|
486
583
|
};
|
|
487
584
|
|
|
488
585
|
if (includeInstance) {
|
|
@@ -520,8 +617,10 @@ proto.NanoSignTx.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
520
617
|
var field = reader.getFieldNumber();
|
|
521
618
|
switch (field) {
|
|
522
619
|
case 1:
|
|
523
|
-
var
|
|
524
|
-
|
|
620
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
|
|
621
|
+
for (var i = 0; i < values.length; i++) {
|
|
622
|
+
msg.addAddressN(values[i]);
|
|
623
|
+
}
|
|
525
624
|
break;
|
|
526
625
|
case 2:
|
|
527
626
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -541,8 +640,10 @@ proto.NanoSignTx.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
541
640
|
msg.setLinkRecipient(value);
|
|
542
641
|
break;
|
|
543
642
|
case 6:
|
|
544
|
-
var
|
|
545
|
-
|
|
643
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
|
|
644
|
+
for (var i = 0; i < values.length; i++) {
|
|
645
|
+
msg.addLinkRecipientN(values[i]);
|
|
646
|
+
}
|
|
546
647
|
break;
|
|
547
648
|
case 7:
|
|
548
649
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -552,11 +653,6 @@ proto.NanoSignTx.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
552
653
|
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
553
654
|
msg.setBalance(value);
|
|
554
655
|
break;
|
|
555
|
-
case 9:
|
|
556
|
-
var value = new types_pb.ExchangeType;
|
|
557
|
-
reader.readMessage(value,types_pb.ExchangeType.deserializeBinaryFromReader);
|
|
558
|
-
msg.setExchangeType(value);
|
|
559
|
-
break;
|
|
560
656
|
default:
|
|
561
657
|
reader.skipField();
|
|
562
658
|
break;
|
|
@@ -643,46 +739,23 @@ proto.NanoSignTx.serializeBinaryToWriter = function(message, writer) {
|
|
|
643
739
|
f
|
|
644
740
|
);
|
|
645
741
|
}
|
|
646
|
-
f = message.getExchangeType();
|
|
647
|
-
if (f != null) {
|
|
648
|
-
writer.writeMessage(
|
|
649
|
-
9,
|
|
650
|
-
f,
|
|
651
|
-
types_pb.ExchangeType.serializeBinaryToWriter
|
|
652
|
-
);
|
|
653
|
-
}
|
|
654
742
|
};
|
|
655
743
|
|
|
656
744
|
|
|
657
745
|
|
|
658
|
-
/**
|
|
659
|
-
* Generated by JsPbCodeGenerator.
|
|
660
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
661
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
662
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
663
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
664
|
-
* valid.
|
|
665
|
-
* @extends {jspb.Message}
|
|
666
|
-
* @constructor
|
|
667
|
-
*/
|
|
668
|
-
proto.NanoSignTx.ParentBlock = function(opt_data) {
|
|
669
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
670
|
-
};
|
|
671
|
-
goog.inherits(proto.NanoSignTx.ParentBlock, jspb.Message);
|
|
672
|
-
if (goog.DEBUG && !COMPILED) {
|
|
673
|
-
proto.NanoSignTx.ParentBlock.displayName = 'proto.NanoSignTx.ParentBlock';
|
|
674
|
-
}
|
|
675
746
|
|
|
676
747
|
|
|
677
748
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
678
749
|
/**
|
|
679
|
-
* Creates an object representation of this proto
|
|
750
|
+
* Creates an object representation of this proto.
|
|
680
751
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
752
|
+
* Optional fields that are not set will be set to undefined.
|
|
681
753
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
682
754
|
* For the list of reserved names please see:
|
|
683
|
-
*
|
|
684
|
-
* @param {boolean=} opt_includeInstance
|
|
685
|
-
* for transitional soy proto support:
|
|
755
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
756
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
757
|
+
* JSPB instance for transitional soy proto support:
|
|
758
|
+
* http://goto/soy-param-migration
|
|
686
759
|
* @return {!Object}
|
|
687
760
|
*/
|
|
688
761
|
proto.NanoSignTx.ParentBlock.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -692,8 +765,8 @@ proto.NanoSignTx.ParentBlock.prototype.toObject = function(opt_includeInstance)
|
|
|
692
765
|
|
|
693
766
|
/**
|
|
694
767
|
* Static version of the {@see toObject} method.
|
|
695
|
-
* @param {boolean|undefined} includeInstance Whether to include
|
|
696
|
-
* instance for transitional soy proto support:
|
|
768
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
769
|
+
* the JSPB instance for transitional soy proto support:
|
|
697
770
|
* http://goto/soy-param-migration
|
|
698
771
|
* @param {!proto.NanoSignTx.ParentBlock} msg The msg instance to transform.
|
|
699
772
|
* @return {!Object}
|
|
@@ -703,7 +776,7 @@ proto.NanoSignTx.ParentBlock.toObject = function(includeInstance, msg) {
|
|
|
703
776
|
var f, obj = {
|
|
704
777
|
parentHash: msg.getParentHash_asB64(),
|
|
705
778
|
link: msg.getLink_asB64(),
|
|
706
|
-
representative: jspb.Message.getField(msg, 4),
|
|
779
|
+
representative: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
|
|
707
780
|
balance: msg.getBalance_asB64()
|
|
708
781
|
};
|
|
709
782
|
|
|
@@ -850,20 +923,27 @@ proto.NanoSignTx.ParentBlock.prototype.getParentHash_asU8 = function() {
|
|
|
850
923
|
};
|
|
851
924
|
|
|
852
925
|
|
|
853
|
-
/**
|
|
926
|
+
/**
|
|
927
|
+
* @param {!(string|Uint8Array)} value
|
|
928
|
+
* @return {!proto.NanoSignTx.ParentBlock} returns this
|
|
929
|
+
*/
|
|
854
930
|
proto.NanoSignTx.ParentBlock.prototype.setParentHash = function(value) {
|
|
855
|
-
jspb.Message.setField(this, 1, value);
|
|
931
|
+
return jspb.Message.setField(this, 1, value);
|
|
856
932
|
};
|
|
857
933
|
|
|
858
934
|
|
|
935
|
+
/**
|
|
936
|
+
* Clears the field making it undefined.
|
|
937
|
+
* @return {!proto.NanoSignTx.ParentBlock} returns this
|
|
938
|
+
*/
|
|
859
939
|
proto.NanoSignTx.ParentBlock.prototype.clearParentHash = function() {
|
|
860
|
-
jspb.Message.setField(this, 1, undefined);
|
|
940
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
861
941
|
};
|
|
862
942
|
|
|
863
943
|
|
|
864
944
|
/**
|
|
865
945
|
* Returns whether this field is set.
|
|
866
|
-
* @return {
|
|
946
|
+
* @return {boolean}
|
|
867
947
|
*/
|
|
868
948
|
proto.NanoSignTx.ParentBlock.prototype.hasParentHash = function() {
|
|
869
949
|
return jspb.Message.getField(this, 1) != null;
|
|
@@ -903,20 +983,27 @@ proto.NanoSignTx.ParentBlock.prototype.getLink_asU8 = function() {
|
|
|
903
983
|
};
|
|
904
984
|
|
|
905
985
|
|
|
906
|
-
/**
|
|
986
|
+
/**
|
|
987
|
+
* @param {!(string|Uint8Array)} value
|
|
988
|
+
* @return {!proto.NanoSignTx.ParentBlock} returns this
|
|
989
|
+
*/
|
|
907
990
|
proto.NanoSignTx.ParentBlock.prototype.setLink = function(value) {
|
|
908
|
-
jspb.Message.setField(this, 2, value);
|
|
991
|
+
return jspb.Message.setField(this, 2, value);
|
|
909
992
|
};
|
|
910
993
|
|
|
911
994
|
|
|
995
|
+
/**
|
|
996
|
+
* Clears the field making it undefined.
|
|
997
|
+
* @return {!proto.NanoSignTx.ParentBlock} returns this
|
|
998
|
+
*/
|
|
912
999
|
proto.NanoSignTx.ParentBlock.prototype.clearLink = function() {
|
|
913
|
-
jspb.Message.setField(this, 2, undefined);
|
|
1000
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
914
1001
|
};
|
|
915
1002
|
|
|
916
1003
|
|
|
917
1004
|
/**
|
|
918
1005
|
* Returns whether this field is set.
|
|
919
|
-
* @return {
|
|
1006
|
+
* @return {boolean}
|
|
920
1007
|
*/
|
|
921
1008
|
proto.NanoSignTx.ParentBlock.prototype.hasLink = function() {
|
|
922
1009
|
return jspb.Message.getField(this, 2) != null;
|
|
@@ -932,20 +1019,27 @@ proto.NanoSignTx.ParentBlock.prototype.getRepresentative = function() {
|
|
|
932
1019
|
};
|
|
933
1020
|
|
|
934
1021
|
|
|
935
|
-
/**
|
|
1022
|
+
/**
|
|
1023
|
+
* @param {string} value
|
|
1024
|
+
* @return {!proto.NanoSignTx.ParentBlock} returns this
|
|
1025
|
+
*/
|
|
936
1026
|
proto.NanoSignTx.ParentBlock.prototype.setRepresentative = function(value) {
|
|
937
|
-
jspb.Message.setField(this, 4, value);
|
|
1027
|
+
return jspb.Message.setField(this, 4, value);
|
|
938
1028
|
};
|
|
939
1029
|
|
|
940
1030
|
|
|
1031
|
+
/**
|
|
1032
|
+
* Clears the field making it undefined.
|
|
1033
|
+
* @return {!proto.NanoSignTx.ParentBlock} returns this
|
|
1034
|
+
*/
|
|
941
1035
|
proto.NanoSignTx.ParentBlock.prototype.clearRepresentative = function() {
|
|
942
|
-
jspb.Message.setField(this, 4, undefined);
|
|
1036
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
943
1037
|
};
|
|
944
1038
|
|
|
945
1039
|
|
|
946
1040
|
/**
|
|
947
1041
|
* Returns whether this field is set.
|
|
948
|
-
* @return {
|
|
1042
|
+
* @return {boolean}
|
|
949
1043
|
*/
|
|
950
1044
|
proto.NanoSignTx.ParentBlock.prototype.hasRepresentative = function() {
|
|
951
1045
|
return jspb.Message.getField(this, 4) != null;
|
|
@@ -985,20 +1079,27 @@ proto.NanoSignTx.ParentBlock.prototype.getBalance_asU8 = function() {
|
|
|
985
1079
|
};
|
|
986
1080
|
|
|
987
1081
|
|
|
988
|
-
/**
|
|
1082
|
+
/**
|
|
1083
|
+
* @param {!(string|Uint8Array)} value
|
|
1084
|
+
* @return {!proto.NanoSignTx.ParentBlock} returns this
|
|
1085
|
+
*/
|
|
989
1086
|
proto.NanoSignTx.ParentBlock.prototype.setBalance = function(value) {
|
|
990
|
-
jspb.Message.setField(this, 5, value);
|
|
1087
|
+
return jspb.Message.setField(this, 5, value);
|
|
991
1088
|
};
|
|
992
1089
|
|
|
993
1090
|
|
|
1091
|
+
/**
|
|
1092
|
+
* Clears the field making it undefined.
|
|
1093
|
+
* @return {!proto.NanoSignTx.ParentBlock} returns this
|
|
1094
|
+
*/
|
|
994
1095
|
proto.NanoSignTx.ParentBlock.prototype.clearBalance = function() {
|
|
995
|
-
jspb.Message.setField(this, 5, undefined);
|
|
1096
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
996
1097
|
};
|
|
997
1098
|
|
|
998
1099
|
|
|
999
1100
|
/**
|
|
1000
1101
|
* Returns whether this field is set.
|
|
1001
|
-
* @return {
|
|
1102
|
+
* @return {boolean}
|
|
1002
1103
|
*/
|
|
1003
1104
|
proto.NanoSignTx.ParentBlock.prototype.hasBalance = function() {
|
|
1004
1105
|
return jspb.Message.getField(this, 5) != null;
|
|
@@ -1014,23 +1115,31 @@ proto.NanoSignTx.prototype.getAddressNList = function() {
|
|
|
1014
1115
|
};
|
|
1015
1116
|
|
|
1016
1117
|
|
|
1017
|
-
/**
|
|
1118
|
+
/**
|
|
1119
|
+
* @param {!Array<number>} value
|
|
1120
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1121
|
+
*/
|
|
1018
1122
|
proto.NanoSignTx.prototype.setAddressNList = function(value) {
|
|
1019
|
-
jspb.Message.setField(this, 1, value || []);
|
|
1123
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
1020
1124
|
};
|
|
1021
1125
|
|
|
1022
1126
|
|
|
1023
1127
|
/**
|
|
1024
|
-
* @param {
|
|
1128
|
+
* @param {number} value
|
|
1025
1129
|
* @param {number=} opt_index
|
|
1130
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1026
1131
|
*/
|
|
1027
1132
|
proto.NanoSignTx.prototype.addAddressN = function(value, opt_index) {
|
|
1028
|
-
jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1133
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1029
1134
|
};
|
|
1030
1135
|
|
|
1031
1136
|
|
|
1137
|
+
/**
|
|
1138
|
+
* Clears the list making it empty but non-null.
|
|
1139
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1140
|
+
*/
|
|
1032
1141
|
proto.NanoSignTx.prototype.clearAddressNList = function() {
|
|
1033
|
-
this.setAddressNList([]);
|
|
1142
|
+
return this.setAddressNList([]);
|
|
1034
1143
|
};
|
|
1035
1144
|
|
|
1036
1145
|
|
|
@@ -1043,20 +1152,27 @@ proto.NanoSignTx.prototype.getCoinName = function() {
|
|
|
1043
1152
|
};
|
|
1044
1153
|
|
|
1045
1154
|
|
|
1046
|
-
/**
|
|
1155
|
+
/**
|
|
1156
|
+
* @param {string} value
|
|
1157
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1158
|
+
*/
|
|
1047
1159
|
proto.NanoSignTx.prototype.setCoinName = function(value) {
|
|
1048
|
-
jspb.Message.setField(this, 2, value);
|
|
1160
|
+
return jspb.Message.setField(this, 2, value);
|
|
1049
1161
|
};
|
|
1050
1162
|
|
|
1051
1163
|
|
|
1164
|
+
/**
|
|
1165
|
+
* Clears the field making it undefined.
|
|
1166
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1167
|
+
*/
|
|
1052
1168
|
proto.NanoSignTx.prototype.clearCoinName = function() {
|
|
1053
|
-
jspb.Message.setField(this, 2, undefined);
|
|
1169
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
1054
1170
|
};
|
|
1055
1171
|
|
|
1056
1172
|
|
|
1057
1173
|
/**
|
|
1058
1174
|
* Returns whether this field is set.
|
|
1059
|
-
* @return {
|
|
1175
|
+
* @return {boolean}
|
|
1060
1176
|
*/
|
|
1061
1177
|
proto.NanoSignTx.prototype.hasCoinName = function() {
|
|
1062
1178
|
return jspb.Message.getField(this, 2) != null;
|
|
@@ -1073,20 +1189,27 @@ proto.NanoSignTx.prototype.getParentBlock = function() {
|
|
|
1073
1189
|
};
|
|
1074
1190
|
|
|
1075
1191
|
|
|
1076
|
-
/**
|
|
1192
|
+
/**
|
|
1193
|
+
* @param {?proto.NanoSignTx.ParentBlock|undefined} value
|
|
1194
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1195
|
+
*/
|
|
1077
1196
|
proto.NanoSignTx.prototype.setParentBlock = function(value) {
|
|
1078
|
-
jspb.Message.setWrapperField(this, 3, value);
|
|
1197
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
1079
1198
|
};
|
|
1080
1199
|
|
|
1081
1200
|
|
|
1201
|
+
/**
|
|
1202
|
+
* Clears the message field making it undefined.
|
|
1203
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1204
|
+
*/
|
|
1082
1205
|
proto.NanoSignTx.prototype.clearParentBlock = function() {
|
|
1083
|
-
this.setParentBlock(undefined);
|
|
1206
|
+
return this.setParentBlock(undefined);
|
|
1084
1207
|
};
|
|
1085
1208
|
|
|
1086
1209
|
|
|
1087
1210
|
/**
|
|
1088
1211
|
* Returns whether this field is set.
|
|
1089
|
-
* @return {
|
|
1212
|
+
* @return {boolean}
|
|
1090
1213
|
*/
|
|
1091
1214
|
proto.NanoSignTx.prototype.hasParentBlock = function() {
|
|
1092
1215
|
return jspb.Message.getField(this, 3) != null;
|
|
@@ -1126,20 +1249,27 @@ proto.NanoSignTx.prototype.getLinkHash_asU8 = function() {
|
|
|
1126
1249
|
};
|
|
1127
1250
|
|
|
1128
1251
|
|
|
1129
|
-
/**
|
|
1252
|
+
/**
|
|
1253
|
+
* @param {!(string|Uint8Array)} value
|
|
1254
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1255
|
+
*/
|
|
1130
1256
|
proto.NanoSignTx.prototype.setLinkHash = function(value) {
|
|
1131
|
-
jspb.Message.setField(this, 4, value);
|
|
1257
|
+
return jspb.Message.setField(this, 4, value);
|
|
1132
1258
|
};
|
|
1133
1259
|
|
|
1134
1260
|
|
|
1261
|
+
/**
|
|
1262
|
+
* Clears the field making it undefined.
|
|
1263
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1264
|
+
*/
|
|
1135
1265
|
proto.NanoSignTx.prototype.clearLinkHash = function() {
|
|
1136
|
-
jspb.Message.setField(this, 4, undefined);
|
|
1266
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
1137
1267
|
};
|
|
1138
1268
|
|
|
1139
1269
|
|
|
1140
1270
|
/**
|
|
1141
1271
|
* Returns whether this field is set.
|
|
1142
|
-
* @return {
|
|
1272
|
+
* @return {boolean}
|
|
1143
1273
|
*/
|
|
1144
1274
|
proto.NanoSignTx.prototype.hasLinkHash = function() {
|
|
1145
1275
|
return jspb.Message.getField(this, 4) != null;
|
|
@@ -1155,20 +1285,27 @@ proto.NanoSignTx.prototype.getLinkRecipient = function() {
|
|
|
1155
1285
|
};
|
|
1156
1286
|
|
|
1157
1287
|
|
|
1158
|
-
/**
|
|
1288
|
+
/**
|
|
1289
|
+
* @param {string} value
|
|
1290
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1291
|
+
*/
|
|
1159
1292
|
proto.NanoSignTx.prototype.setLinkRecipient = function(value) {
|
|
1160
|
-
jspb.Message.setField(this, 5, value);
|
|
1293
|
+
return jspb.Message.setField(this, 5, value);
|
|
1161
1294
|
};
|
|
1162
1295
|
|
|
1163
1296
|
|
|
1297
|
+
/**
|
|
1298
|
+
* Clears the field making it undefined.
|
|
1299
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1300
|
+
*/
|
|
1164
1301
|
proto.NanoSignTx.prototype.clearLinkRecipient = function() {
|
|
1165
|
-
jspb.Message.setField(this, 5, undefined);
|
|
1302
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
1166
1303
|
};
|
|
1167
1304
|
|
|
1168
1305
|
|
|
1169
1306
|
/**
|
|
1170
1307
|
* Returns whether this field is set.
|
|
1171
|
-
* @return {
|
|
1308
|
+
* @return {boolean}
|
|
1172
1309
|
*/
|
|
1173
1310
|
proto.NanoSignTx.prototype.hasLinkRecipient = function() {
|
|
1174
1311
|
return jspb.Message.getField(this, 5) != null;
|
|
@@ -1184,23 +1321,31 @@ proto.NanoSignTx.prototype.getLinkRecipientNList = function() {
|
|
|
1184
1321
|
};
|
|
1185
1322
|
|
|
1186
1323
|
|
|
1187
|
-
/**
|
|
1324
|
+
/**
|
|
1325
|
+
* @param {!Array<number>} value
|
|
1326
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1327
|
+
*/
|
|
1188
1328
|
proto.NanoSignTx.prototype.setLinkRecipientNList = function(value) {
|
|
1189
|
-
jspb.Message.setField(this, 6, value || []);
|
|
1329
|
+
return jspb.Message.setField(this, 6, value || []);
|
|
1190
1330
|
};
|
|
1191
1331
|
|
|
1192
1332
|
|
|
1193
1333
|
/**
|
|
1194
|
-
* @param {
|
|
1334
|
+
* @param {number} value
|
|
1195
1335
|
* @param {number=} opt_index
|
|
1336
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1196
1337
|
*/
|
|
1197
1338
|
proto.NanoSignTx.prototype.addLinkRecipientN = function(value, opt_index) {
|
|
1198
|
-
jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
|
1339
|
+
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
|
1199
1340
|
};
|
|
1200
1341
|
|
|
1201
1342
|
|
|
1343
|
+
/**
|
|
1344
|
+
* Clears the list making it empty but non-null.
|
|
1345
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1346
|
+
*/
|
|
1202
1347
|
proto.NanoSignTx.prototype.clearLinkRecipientNList = function() {
|
|
1203
|
-
this.setLinkRecipientNList([]);
|
|
1348
|
+
return this.setLinkRecipientNList([]);
|
|
1204
1349
|
};
|
|
1205
1350
|
|
|
1206
1351
|
|
|
@@ -1213,20 +1358,27 @@ proto.NanoSignTx.prototype.getRepresentative = function() {
|
|
|
1213
1358
|
};
|
|
1214
1359
|
|
|
1215
1360
|
|
|
1216
|
-
/**
|
|
1361
|
+
/**
|
|
1362
|
+
* @param {string} value
|
|
1363
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1364
|
+
*/
|
|
1217
1365
|
proto.NanoSignTx.prototype.setRepresentative = function(value) {
|
|
1218
|
-
jspb.Message.setField(this, 7, value);
|
|
1366
|
+
return jspb.Message.setField(this, 7, value);
|
|
1219
1367
|
};
|
|
1220
1368
|
|
|
1221
1369
|
|
|
1370
|
+
/**
|
|
1371
|
+
* Clears the field making it undefined.
|
|
1372
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1373
|
+
*/
|
|
1222
1374
|
proto.NanoSignTx.prototype.clearRepresentative = function() {
|
|
1223
|
-
jspb.Message.setField(this, 7, undefined);
|
|
1375
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
1224
1376
|
};
|
|
1225
1377
|
|
|
1226
1378
|
|
|
1227
1379
|
/**
|
|
1228
1380
|
* Returns whether this field is set.
|
|
1229
|
-
* @return {
|
|
1381
|
+
* @return {boolean}
|
|
1230
1382
|
*/
|
|
1231
1383
|
proto.NanoSignTx.prototype.hasRepresentative = function() {
|
|
1232
1384
|
return jspb.Message.getField(this, 7) != null;
|
|
@@ -1266,85 +1418,47 @@ proto.NanoSignTx.prototype.getBalance_asU8 = function() {
|
|
|
1266
1418
|
};
|
|
1267
1419
|
|
|
1268
1420
|
|
|
1269
|
-
/** @param {!(string|Uint8Array)} value */
|
|
1270
|
-
proto.NanoSignTx.prototype.setBalance = function(value) {
|
|
1271
|
-
jspb.Message.setField(this, 8, value);
|
|
1272
|
-
};
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
proto.NanoSignTx.prototype.clearBalance = function() {
|
|
1276
|
-
jspb.Message.setField(this, 8, undefined);
|
|
1277
|
-
};
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
1421
|
/**
|
|
1281
|
-
*
|
|
1282
|
-
* @return {!
|
|
1422
|
+
* @param {!(string|Uint8Array)} value
|
|
1423
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1283
1424
|
*/
|
|
1284
|
-
proto.NanoSignTx.prototype.
|
|
1285
|
-
return jspb.Message.
|
|
1425
|
+
proto.NanoSignTx.prototype.setBalance = function(value) {
|
|
1426
|
+
return jspb.Message.setField(this, 8, value);
|
|
1286
1427
|
};
|
|
1287
1428
|
|
|
1288
1429
|
|
|
1289
1430
|
/**
|
|
1290
|
-
*
|
|
1291
|
-
* @return {
|
|
1431
|
+
* Clears the field making it undefined.
|
|
1432
|
+
* @return {!proto.NanoSignTx} returns this
|
|
1292
1433
|
*/
|
|
1293
|
-
proto.NanoSignTx.prototype.
|
|
1294
|
-
return
|
|
1295
|
-
jspb.Message.getWrapperField(this, types_pb.ExchangeType, 9));
|
|
1296
|
-
};
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
/** @param {?proto.ExchangeType|undefined} value */
|
|
1300
|
-
proto.NanoSignTx.prototype.setExchangeType = function(value) {
|
|
1301
|
-
jspb.Message.setWrapperField(this, 9, value);
|
|
1302
|
-
};
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
proto.NanoSignTx.prototype.clearExchangeType = function() {
|
|
1306
|
-
this.setExchangeType(undefined);
|
|
1434
|
+
proto.NanoSignTx.prototype.clearBalance = function() {
|
|
1435
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
1307
1436
|
};
|
|
1308
1437
|
|
|
1309
1438
|
|
|
1310
1439
|
/**
|
|
1311
1440
|
* Returns whether this field is set.
|
|
1312
|
-
* @return {
|
|
1441
|
+
* @return {boolean}
|
|
1313
1442
|
*/
|
|
1314
|
-
proto.NanoSignTx.prototype.
|
|
1315
|
-
return jspb.Message.getField(this,
|
|
1443
|
+
proto.NanoSignTx.prototype.hasBalance = function() {
|
|
1444
|
+
return jspb.Message.getField(this, 8) != null;
|
|
1316
1445
|
};
|
|
1317
1446
|
|
|
1318
1447
|
|
|
1319
1448
|
|
|
1320
|
-
/**
|
|
1321
|
-
* Generated by JsPbCodeGenerator.
|
|
1322
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1323
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
1324
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
1325
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
1326
|
-
* valid.
|
|
1327
|
-
* @extends {jspb.Message}
|
|
1328
|
-
* @constructor
|
|
1329
|
-
*/
|
|
1330
|
-
proto.NanoSignedTx = function(opt_data) {
|
|
1331
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1332
|
-
};
|
|
1333
|
-
goog.inherits(proto.NanoSignedTx, jspb.Message);
|
|
1334
|
-
if (goog.DEBUG && !COMPILED) {
|
|
1335
|
-
proto.NanoSignedTx.displayName = 'proto.NanoSignedTx';
|
|
1336
|
-
}
|
|
1337
1449
|
|
|
1338
1450
|
|
|
1339
1451
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1340
1452
|
/**
|
|
1341
|
-
* Creates an object representation of this proto
|
|
1453
|
+
* Creates an object representation of this proto.
|
|
1342
1454
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1455
|
+
* Optional fields that are not set will be set to undefined.
|
|
1343
1456
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1344
1457
|
* For the list of reserved names please see:
|
|
1345
|
-
*
|
|
1346
|
-
* @param {boolean=} opt_includeInstance
|
|
1347
|
-
* for transitional soy proto support:
|
|
1458
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1459
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1460
|
+
* JSPB instance for transitional soy proto support:
|
|
1461
|
+
* http://goto/soy-param-migration
|
|
1348
1462
|
* @return {!Object}
|
|
1349
1463
|
*/
|
|
1350
1464
|
proto.NanoSignedTx.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -1354,8 +1468,8 @@ proto.NanoSignedTx.prototype.toObject = function(opt_includeInstance) {
|
|
|
1354
1468
|
|
|
1355
1469
|
/**
|
|
1356
1470
|
* Static version of the {@see toObject} method.
|
|
1357
|
-
* @param {boolean|undefined} includeInstance Whether to include
|
|
1358
|
-
* instance for transitional soy proto support:
|
|
1471
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1472
|
+
* the JSPB instance for transitional soy proto support:
|
|
1359
1473
|
* http://goto/soy-param-migration
|
|
1360
1474
|
* @param {!proto.NanoSignedTx} msg The msg instance to transform.
|
|
1361
1475
|
* @return {!Object}
|
|
@@ -1488,20 +1602,27 @@ proto.NanoSignedTx.prototype.getSignature_asU8 = function() {
|
|
|
1488
1602
|
};
|
|
1489
1603
|
|
|
1490
1604
|
|
|
1491
|
-
/**
|
|
1605
|
+
/**
|
|
1606
|
+
* @param {!(string|Uint8Array)} value
|
|
1607
|
+
* @return {!proto.NanoSignedTx} returns this
|
|
1608
|
+
*/
|
|
1492
1609
|
proto.NanoSignedTx.prototype.setSignature = function(value) {
|
|
1493
|
-
jspb.Message.setField(this, 1, value);
|
|
1610
|
+
return jspb.Message.setField(this, 1, value);
|
|
1494
1611
|
};
|
|
1495
1612
|
|
|
1496
1613
|
|
|
1614
|
+
/**
|
|
1615
|
+
* Clears the field making it undefined.
|
|
1616
|
+
* @return {!proto.NanoSignedTx} returns this
|
|
1617
|
+
*/
|
|
1497
1618
|
proto.NanoSignedTx.prototype.clearSignature = function() {
|
|
1498
|
-
jspb.Message.setField(this, 1, undefined);
|
|
1619
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
1499
1620
|
};
|
|
1500
1621
|
|
|
1501
1622
|
|
|
1502
1623
|
/**
|
|
1503
1624
|
* Returns whether this field is set.
|
|
1504
|
-
* @return {
|
|
1625
|
+
* @return {boolean}
|
|
1505
1626
|
*/
|
|
1506
1627
|
proto.NanoSignedTx.prototype.hasSignature = function() {
|
|
1507
1628
|
return jspb.Message.getField(this, 1) != null;
|
|
@@ -1541,20 +1662,27 @@ proto.NanoSignedTx.prototype.getBlockHash_asU8 = function() {
|
|
|
1541
1662
|
};
|
|
1542
1663
|
|
|
1543
1664
|
|
|
1544
|
-
/**
|
|
1665
|
+
/**
|
|
1666
|
+
* @param {!(string|Uint8Array)} value
|
|
1667
|
+
* @return {!proto.NanoSignedTx} returns this
|
|
1668
|
+
*/
|
|
1545
1669
|
proto.NanoSignedTx.prototype.setBlockHash = function(value) {
|
|
1546
|
-
jspb.Message.setField(this, 2, value);
|
|
1670
|
+
return jspb.Message.setField(this, 2, value);
|
|
1547
1671
|
};
|
|
1548
1672
|
|
|
1549
1673
|
|
|
1674
|
+
/**
|
|
1675
|
+
* Clears the field making it undefined.
|
|
1676
|
+
* @return {!proto.NanoSignedTx} returns this
|
|
1677
|
+
*/
|
|
1550
1678
|
proto.NanoSignedTx.prototype.clearBlockHash = function() {
|
|
1551
|
-
jspb.Message.setField(this, 2, undefined);
|
|
1679
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
1552
1680
|
};
|
|
1553
1681
|
|
|
1554
1682
|
|
|
1555
1683
|
/**
|
|
1556
1684
|
* Returns whether this field is set.
|
|
1557
|
-
* @return {
|
|
1685
|
+
* @return {boolean}
|
|
1558
1686
|
*/
|
|
1559
1687
|
proto.NanoSignedTx.prototype.hasBlockHash = function() {
|
|
1560
1688
|
return jspb.Message.getField(this, 2) != null;
|