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