@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/exchange_pb.js
DELETED
|
@@ -1,1825 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview
|
|
3
|
-
* @enhanceable
|
|
4
|
-
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
5
|
-
* field starts with 'MSG_' and isn't a translatable message.
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
// GENERATED CODE -- DO NOT EDIT!
|
|
9
|
-
|
|
10
|
-
var jspb = require('google-protobuf');
|
|
11
|
-
var goog = jspb;
|
|
12
|
-
var global = Function('return this')();
|
|
13
|
-
|
|
14
|
-
goog.exportSymbol('proto.ExchangeAddress', null, global);
|
|
15
|
-
goog.exportSymbol('proto.ExchangeResponse', null, global);
|
|
16
|
-
goog.exportSymbol('proto.ExchangeResponseV2', null, global);
|
|
17
|
-
goog.exportSymbol('proto.SignedExchangeResponse', null, global);
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Generated by JsPbCodeGenerator.
|
|
21
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
22
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
23
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
24
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
25
|
-
* valid.
|
|
26
|
-
* @extends {jspb.Message}
|
|
27
|
-
* @constructor
|
|
28
|
-
*/
|
|
29
|
-
proto.ExchangeAddress = function(opt_data) {
|
|
30
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
31
|
-
};
|
|
32
|
-
goog.inherits(proto.ExchangeAddress, jspb.Message);
|
|
33
|
-
if (goog.DEBUG && !COMPILED) {
|
|
34
|
-
proto.ExchangeAddress.displayName = 'proto.ExchangeAddress';
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
39
|
-
/**
|
|
40
|
-
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
41
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
42
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
43
|
-
* For the list of reserved names please see:
|
|
44
|
-
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
45
|
-
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
46
|
-
* for transitional soy proto support: http://goto/soy-param-migration
|
|
47
|
-
* @return {!Object}
|
|
48
|
-
*/
|
|
49
|
-
proto.ExchangeAddress.prototype.toObject = function(opt_includeInstance) {
|
|
50
|
-
return proto.ExchangeAddress.toObject(opt_includeInstance, this);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Static version of the {@see toObject} method.
|
|
56
|
-
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
57
|
-
* instance for transitional soy proto support:
|
|
58
|
-
* http://goto/soy-param-migration
|
|
59
|
-
* @param {!proto.ExchangeAddress} msg The msg instance to transform.
|
|
60
|
-
* @return {!Object}
|
|
61
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
62
|
-
*/
|
|
63
|
-
proto.ExchangeAddress.toObject = function(includeInstance, msg) {
|
|
64
|
-
var f, obj = {
|
|
65
|
-
coinType: jspb.Message.getField(msg, 1),
|
|
66
|
-
address: jspb.Message.getField(msg, 2),
|
|
67
|
-
destTag: jspb.Message.getField(msg, 3),
|
|
68
|
-
rsAddress: jspb.Message.getField(msg, 4)
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
if (includeInstance) {
|
|
72
|
-
obj.$jspbMessageInstance = msg;
|
|
73
|
-
}
|
|
74
|
-
return obj;
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Deserializes binary data (in protobuf wire format).
|
|
81
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
82
|
-
* @return {!proto.ExchangeAddress}
|
|
83
|
-
*/
|
|
84
|
-
proto.ExchangeAddress.deserializeBinary = function(bytes) {
|
|
85
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
86
|
-
var msg = new proto.ExchangeAddress;
|
|
87
|
-
return proto.ExchangeAddress.deserializeBinaryFromReader(msg, reader);
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
93
|
-
* given reader into the given message object.
|
|
94
|
-
* @param {!proto.ExchangeAddress} msg The message object to deserialize into.
|
|
95
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
96
|
-
* @return {!proto.ExchangeAddress}
|
|
97
|
-
*/
|
|
98
|
-
proto.ExchangeAddress.deserializeBinaryFromReader = function(msg, reader) {
|
|
99
|
-
while (reader.nextField()) {
|
|
100
|
-
if (reader.isEndGroup()) {
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
var field = reader.getFieldNumber();
|
|
104
|
-
switch (field) {
|
|
105
|
-
case 1:
|
|
106
|
-
var value = /** @type {string} */ (reader.readString());
|
|
107
|
-
msg.setCoinType(value);
|
|
108
|
-
break;
|
|
109
|
-
case 2:
|
|
110
|
-
var value = /** @type {string} */ (reader.readString());
|
|
111
|
-
msg.setAddress(value);
|
|
112
|
-
break;
|
|
113
|
-
case 3:
|
|
114
|
-
var value = /** @type {string} */ (reader.readString());
|
|
115
|
-
msg.setDestTag(value);
|
|
116
|
-
break;
|
|
117
|
-
case 4:
|
|
118
|
-
var value = /** @type {string} */ (reader.readString());
|
|
119
|
-
msg.setRsAddress(value);
|
|
120
|
-
break;
|
|
121
|
-
default:
|
|
122
|
-
reader.skipField();
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return msg;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
132
|
-
* @return {!Uint8Array}
|
|
133
|
-
*/
|
|
134
|
-
proto.ExchangeAddress.prototype.serializeBinary = function() {
|
|
135
|
-
var writer = new jspb.BinaryWriter();
|
|
136
|
-
proto.ExchangeAddress.serializeBinaryToWriter(this, writer);
|
|
137
|
-
return writer.getResultBuffer();
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
143
|
-
* format), writing to the given BinaryWriter.
|
|
144
|
-
* @param {!proto.ExchangeAddress} message
|
|
145
|
-
* @param {!jspb.BinaryWriter} writer
|
|
146
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
147
|
-
*/
|
|
148
|
-
proto.ExchangeAddress.serializeBinaryToWriter = function(message, writer) {
|
|
149
|
-
var f = undefined;
|
|
150
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
151
|
-
if (f != null) {
|
|
152
|
-
writer.writeString(
|
|
153
|
-
1,
|
|
154
|
-
f
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
158
|
-
if (f != null) {
|
|
159
|
-
writer.writeString(
|
|
160
|
-
2,
|
|
161
|
-
f
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
165
|
-
if (f != null) {
|
|
166
|
-
writer.writeString(
|
|
167
|
-
3,
|
|
168
|
-
f
|
|
169
|
-
);
|
|
170
|
-
}
|
|
171
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
172
|
-
if (f != null) {
|
|
173
|
-
writer.writeString(
|
|
174
|
-
4,
|
|
175
|
-
f
|
|
176
|
-
);
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* optional string coin_type = 1;
|
|
183
|
-
* @return {string}
|
|
184
|
-
*/
|
|
185
|
-
proto.ExchangeAddress.prototype.getCoinType = function() {
|
|
186
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
/** @param {string} value */
|
|
191
|
-
proto.ExchangeAddress.prototype.setCoinType = function(value) {
|
|
192
|
-
jspb.Message.setField(this, 1, value);
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
proto.ExchangeAddress.prototype.clearCoinType = function() {
|
|
197
|
-
jspb.Message.setField(this, 1, undefined);
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Returns whether this field is set.
|
|
203
|
-
* @return {!boolean}
|
|
204
|
-
*/
|
|
205
|
-
proto.ExchangeAddress.prototype.hasCoinType = function() {
|
|
206
|
-
return jspb.Message.getField(this, 1) != null;
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* optional string address = 2;
|
|
212
|
-
* @return {string}
|
|
213
|
-
*/
|
|
214
|
-
proto.ExchangeAddress.prototype.getAddress = function() {
|
|
215
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
/** @param {string} value */
|
|
220
|
-
proto.ExchangeAddress.prototype.setAddress = function(value) {
|
|
221
|
-
jspb.Message.setField(this, 2, value);
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
proto.ExchangeAddress.prototype.clearAddress = function() {
|
|
226
|
-
jspb.Message.setField(this, 2, undefined);
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Returns whether this field is set.
|
|
232
|
-
* @return {!boolean}
|
|
233
|
-
*/
|
|
234
|
-
proto.ExchangeAddress.prototype.hasAddress = function() {
|
|
235
|
-
return jspb.Message.getField(this, 2) != null;
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* optional string dest_tag = 3;
|
|
241
|
-
* @return {string}
|
|
242
|
-
*/
|
|
243
|
-
proto.ExchangeAddress.prototype.getDestTag = function() {
|
|
244
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
/** @param {string} value */
|
|
249
|
-
proto.ExchangeAddress.prototype.setDestTag = function(value) {
|
|
250
|
-
jspb.Message.setField(this, 3, value);
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
proto.ExchangeAddress.prototype.clearDestTag = function() {
|
|
255
|
-
jspb.Message.setField(this, 3, undefined);
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* Returns whether this field is set.
|
|
261
|
-
* @return {!boolean}
|
|
262
|
-
*/
|
|
263
|
-
proto.ExchangeAddress.prototype.hasDestTag = function() {
|
|
264
|
-
return jspb.Message.getField(this, 3) != null;
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* optional string rs_address = 4;
|
|
270
|
-
* @return {string}
|
|
271
|
-
*/
|
|
272
|
-
proto.ExchangeAddress.prototype.getRsAddress = function() {
|
|
273
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
/** @param {string} value */
|
|
278
|
-
proto.ExchangeAddress.prototype.setRsAddress = function(value) {
|
|
279
|
-
jspb.Message.setField(this, 4, value);
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
proto.ExchangeAddress.prototype.clearRsAddress = function() {
|
|
284
|
-
jspb.Message.setField(this, 4, undefined);
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Returns whether this field is set.
|
|
290
|
-
* @return {!boolean}
|
|
291
|
-
*/
|
|
292
|
-
proto.ExchangeAddress.prototype.hasRsAddress = function() {
|
|
293
|
-
return jspb.Message.getField(this, 4) != null;
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Generated by JsPbCodeGenerator.
|
|
300
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
301
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
302
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
303
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
304
|
-
* valid.
|
|
305
|
-
* @extends {jspb.Message}
|
|
306
|
-
* @constructor
|
|
307
|
-
*/
|
|
308
|
-
proto.ExchangeResponseV2 = function(opt_data) {
|
|
309
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
310
|
-
};
|
|
311
|
-
goog.inherits(proto.ExchangeResponseV2, jspb.Message);
|
|
312
|
-
if (goog.DEBUG && !COMPILED) {
|
|
313
|
-
proto.ExchangeResponseV2.displayName = 'proto.ExchangeResponseV2';
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
318
|
-
/**
|
|
319
|
-
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
320
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
321
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
322
|
-
* For the list of reserved names please see:
|
|
323
|
-
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
324
|
-
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
325
|
-
* for transitional soy proto support: http://goto/soy-param-migration
|
|
326
|
-
* @return {!Object}
|
|
327
|
-
*/
|
|
328
|
-
proto.ExchangeResponseV2.prototype.toObject = function(opt_includeInstance) {
|
|
329
|
-
return proto.ExchangeResponseV2.toObject(opt_includeInstance, this);
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Static version of the {@see toObject} method.
|
|
335
|
-
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
336
|
-
* instance for transitional soy proto support:
|
|
337
|
-
* http://goto/soy-param-migration
|
|
338
|
-
* @param {!proto.ExchangeResponseV2} msg The msg instance to transform.
|
|
339
|
-
* @return {!Object}
|
|
340
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
341
|
-
*/
|
|
342
|
-
proto.ExchangeResponseV2.toObject = function(includeInstance, msg) {
|
|
343
|
-
var f, obj = {
|
|
344
|
-
depositAddress: (f = msg.getDepositAddress()) && proto.ExchangeAddress.toObject(includeInstance, f),
|
|
345
|
-
depositAmount: msg.getDepositAmount_asB64(),
|
|
346
|
-
expiration: jspb.Message.getField(msg, 3),
|
|
347
|
-
quotedRate: msg.getQuotedRate_asB64(),
|
|
348
|
-
withdrawalAddress: (f = msg.getWithdrawalAddress()) && proto.ExchangeAddress.toObject(includeInstance, f),
|
|
349
|
-
withdrawalAmount: msg.getWithdrawalAmount_asB64(),
|
|
350
|
-
returnAddress: (f = msg.getReturnAddress()) && proto.ExchangeAddress.toObject(includeInstance, f),
|
|
351
|
-
apiKey: msg.getApiKey_asB64(),
|
|
352
|
-
minerFee: msg.getMinerFee_asB64(),
|
|
353
|
-
orderId: msg.getOrderId_asB64()
|
|
354
|
-
};
|
|
355
|
-
|
|
356
|
-
if (includeInstance) {
|
|
357
|
-
obj.$jspbMessageInstance = msg;
|
|
358
|
-
}
|
|
359
|
-
return obj;
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* Deserializes binary data (in protobuf wire format).
|
|
366
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
367
|
-
* @return {!proto.ExchangeResponseV2}
|
|
368
|
-
*/
|
|
369
|
-
proto.ExchangeResponseV2.deserializeBinary = function(bytes) {
|
|
370
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
371
|
-
var msg = new proto.ExchangeResponseV2;
|
|
372
|
-
return proto.ExchangeResponseV2.deserializeBinaryFromReader(msg, reader);
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
378
|
-
* given reader into the given message object.
|
|
379
|
-
* @param {!proto.ExchangeResponseV2} msg The message object to deserialize into.
|
|
380
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
381
|
-
* @return {!proto.ExchangeResponseV2}
|
|
382
|
-
*/
|
|
383
|
-
proto.ExchangeResponseV2.deserializeBinaryFromReader = function(msg, reader) {
|
|
384
|
-
while (reader.nextField()) {
|
|
385
|
-
if (reader.isEndGroup()) {
|
|
386
|
-
break;
|
|
387
|
-
}
|
|
388
|
-
var field = reader.getFieldNumber();
|
|
389
|
-
switch (field) {
|
|
390
|
-
case 1:
|
|
391
|
-
var value = new proto.ExchangeAddress;
|
|
392
|
-
reader.readMessage(value,proto.ExchangeAddress.deserializeBinaryFromReader);
|
|
393
|
-
msg.setDepositAddress(value);
|
|
394
|
-
break;
|
|
395
|
-
case 2:
|
|
396
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
397
|
-
msg.setDepositAmount(value);
|
|
398
|
-
break;
|
|
399
|
-
case 3:
|
|
400
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
401
|
-
msg.setExpiration(value);
|
|
402
|
-
break;
|
|
403
|
-
case 4:
|
|
404
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
405
|
-
msg.setQuotedRate(value);
|
|
406
|
-
break;
|
|
407
|
-
case 5:
|
|
408
|
-
var value = new proto.ExchangeAddress;
|
|
409
|
-
reader.readMessage(value,proto.ExchangeAddress.deserializeBinaryFromReader);
|
|
410
|
-
msg.setWithdrawalAddress(value);
|
|
411
|
-
break;
|
|
412
|
-
case 6:
|
|
413
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
414
|
-
msg.setWithdrawalAmount(value);
|
|
415
|
-
break;
|
|
416
|
-
case 7:
|
|
417
|
-
var value = new proto.ExchangeAddress;
|
|
418
|
-
reader.readMessage(value,proto.ExchangeAddress.deserializeBinaryFromReader);
|
|
419
|
-
msg.setReturnAddress(value);
|
|
420
|
-
break;
|
|
421
|
-
case 8:
|
|
422
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
423
|
-
msg.setApiKey(value);
|
|
424
|
-
break;
|
|
425
|
-
case 9:
|
|
426
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
427
|
-
msg.setMinerFee(value);
|
|
428
|
-
break;
|
|
429
|
-
case 10:
|
|
430
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
431
|
-
msg.setOrderId(value);
|
|
432
|
-
break;
|
|
433
|
-
default:
|
|
434
|
-
reader.skipField();
|
|
435
|
-
break;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
return msg;
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
444
|
-
* @return {!Uint8Array}
|
|
445
|
-
*/
|
|
446
|
-
proto.ExchangeResponseV2.prototype.serializeBinary = function() {
|
|
447
|
-
var writer = new jspb.BinaryWriter();
|
|
448
|
-
proto.ExchangeResponseV2.serializeBinaryToWriter(this, writer);
|
|
449
|
-
return writer.getResultBuffer();
|
|
450
|
-
};
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
455
|
-
* format), writing to the given BinaryWriter.
|
|
456
|
-
* @param {!proto.ExchangeResponseV2} message
|
|
457
|
-
* @param {!jspb.BinaryWriter} writer
|
|
458
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
459
|
-
*/
|
|
460
|
-
proto.ExchangeResponseV2.serializeBinaryToWriter = function(message, writer) {
|
|
461
|
-
var f = undefined;
|
|
462
|
-
f = message.getDepositAddress();
|
|
463
|
-
if (f != null) {
|
|
464
|
-
writer.writeMessage(
|
|
465
|
-
1,
|
|
466
|
-
f,
|
|
467
|
-
proto.ExchangeAddress.serializeBinaryToWriter
|
|
468
|
-
);
|
|
469
|
-
}
|
|
470
|
-
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
|
|
471
|
-
if (f != null) {
|
|
472
|
-
writer.writeBytes(
|
|
473
|
-
2,
|
|
474
|
-
f
|
|
475
|
-
);
|
|
476
|
-
}
|
|
477
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
478
|
-
if (f != null) {
|
|
479
|
-
writer.writeInt64(
|
|
480
|
-
3,
|
|
481
|
-
f
|
|
482
|
-
);
|
|
483
|
-
}
|
|
484
|
-
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 4));
|
|
485
|
-
if (f != null) {
|
|
486
|
-
writer.writeBytes(
|
|
487
|
-
4,
|
|
488
|
-
f
|
|
489
|
-
);
|
|
490
|
-
}
|
|
491
|
-
f = message.getWithdrawalAddress();
|
|
492
|
-
if (f != null) {
|
|
493
|
-
writer.writeMessage(
|
|
494
|
-
5,
|
|
495
|
-
f,
|
|
496
|
-
proto.ExchangeAddress.serializeBinaryToWriter
|
|
497
|
-
);
|
|
498
|
-
}
|
|
499
|
-
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 6));
|
|
500
|
-
if (f != null) {
|
|
501
|
-
writer.writeBytes(
|
|
502
|
-
6,
|
|
503
|
-
f
|
|
504
|
-
);
|
|
505
|
-
}
|
|
506
|
-
f = message.getReturnAddress();
|
|
507
|
-
if (f != null) {
|
|
508
|
-
writer.writeMessage(
|
|
509
|
-
7,
|
|
510
|
-
f,
|
|
511
|
-
proto.ExchangeAddress.serializeBinaryToWriter
|
|
512
|
-
);
|
|
513
|
-
}
|
|
514
|
-
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 8));
|
|
515
|
-
if (f != null) {
|
|
516
|
-
writer.writeBytes(
|
|
517
|
-
8,
|
|
518
|
-
f
|
|
519
|
-
);
|
|
520
|
-
}
|
|
521
|
-
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 9));
|
|
522
|
-
if (f != null) {
|
|
523
|
-
writer.writeBytes(
|
|
524
|
-
9,
|
|
525
|
-
f
|
|
526
|
-
);
|
|
527
|
-
}
|
|
528
|
-
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 10));
|
|
529
|
-
if (f != null) {
|
|
530
|
-
writer.writeBytes(
|
|
531
|
-
10,
|
|
532
|
-
f
|
|
533
|
-
);
|
|
534
|
-
}
|
|
535
|
-
};
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* optional ExchangeAddress deposit_address = 1;
|
|
540
|
-
* @return {?proto.ExchangeAddress}
|
|
541
|
-
*/
|
|
542
|
-
proto.ExchangeResponseV2.prototype.getDepositAddress = function() {
|
|
543
|
-
return /** @type{?proto.ExchangeAddress} */ (
|
|
544
|
-
jspb.Message.getWrapperField(this, proto.ExchangeAddress, 1));
|
|
545
|
-
};
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
/** @param {?proto.ExchangeAddress|undefined} value */
|
|
549
|
-
proto.ExchangeResponseV2.prototype.setDepositAddress = function(value) {
|
|
550
|
-
jspb.Message.setWrapperField(this, 1, value);
|
|
551
|
-
};
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
proto.ExchangeResponseV2.prototype.clearDepositAddress = function() {
|
|
555
|
-
this.setDepositAddress(undefined);
|
|
556
|
-
};
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Returns whether this field is set.
|
|
561
|
-
* @return {!boolean}
|
|
562
|
-
*/
|
|
563
|
-
proto.ExchangeResponseV2.prototype.hasDepositAddress = function() {
|
|
564
|
-
return jspb.Message.getField(this, 1) != null;
|
|
565
|
-
};
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
/**
|
|
569
|
-
* optional bytes deposit_amount = 2;
|
|
570
|
-
* @return {!(string|Uint8Array)}
|
|
571
|
-
*/
|
|
572
|
-
proto.ExchangeResponseV2.prototype.getDepositAmount = function() {
|
|
573
|
-
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
574
|
-
};
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* optional bytes deposit_amount = 2;
|
|
579
|
-
* This is a type-conversion wrapper around `getDepositAmount()`
|
|
580
|
-
* @return {string}
|
|
581
|
-
*/
|
|
582
|
-
proto.ExchangeResponseV2.prototype.getDepositAmount_asB64 = function() {
|
|
583
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
584
|
-
this.getDepositAmount()));
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
/**
|
|
589
|
-
* optional bytes deposit_amount = 2;
|
|
590
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
591
|
-
* @see http://caniuse.com/Uint8Array
|
|
592
|
-
* This is a type-conversion wrapper around `getDepositAmount()`
|
|
593
|
-
* @return {!Uint8Array}
|
|
594
|
-
*/
|
|
595
|
-
proto.ExchangeResponseV2.prototype.getDepositAmount_asU8 = function() {
|
|
596
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
597
|
-
this.getDepositAmount()));
|
|
598
|
-
};
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
/** @param {!(string|Uint8Array)} value */
|
|
602
|
-
proto.ExchangeResponseV2.prototype.setDepositAmount = function(value) {
|
|
603
|
-
jspb.Message.setField(this, 2, value);
|
|
604
|
-
};
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
proto.ExchangeResponseV2.prototype.clearDepositAmount = function() {
|
|
608
|
-
jspb.Message.setField(this, 2, undefined);
|
|
609
|
-
};
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* Returns whether this field is set.
|
|
614
|
-
* @return {!boolean}
|
|
615
|
-
*/
|
|
616
|
-
proto.ExchangeResponseV2.prototype.hasDepositAmount = function() {
|
|
617
|
-
return jspb.Message.getField(this, 2) != null;
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
/**
|
|
622
|
-
* optional int64 expiration = 3;
|
|
623
|
-
* @return {number}
|
|
624
|
-
*/
|
|
625
|
-
proto.ExchangeResponseV2.prototype.getExpiration = function() {
|
|
626
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
627
|
-
};
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
/** @param {number} value */
|
|
631
|
-
proto.ExchangeResponseV2.prototype.setExpiration = function(value) {
|
|
632
|
-
jspb.Message.setField(this, 3, value);
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
proto.ExchangeResponseV2.prototype.clearExpiration = function() {
|
|
637
|
-
jspb.Message.setField(this, 3, undefined);
|
|
638
|
-
};
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
/**
|
|
642
|
-
* Returns whether this field is set.
|
|
643
|
-
* @return {!boolean}
|
|
644
|
-
*/
|
|
645
|
-
proto.ExchangeResponseV2.prototype.hasExpiration = function() {
|
|
646
|
-
return jspb.Message.getField(this, 3) != null;
|
|
647
|
-
};
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
/**
|
|
651
|
-
* optional bytes quoted_rate = 4;
|
|
652
|
-
* @return {!(string|Uint8Array)}
|
|
653
|
-
*/
|
|
654
|
-
proto.ExchangeResponseV2.prototype.getQuotedRate = function() {
|
|
655
|
-
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
/**
|
|
660
|
-
* optional bytes quoted_rate = 4;
|
|
661
|
-
* This is a type-conversion wrapper around `getQuotedRate()`
|
|
662
|
-
* @return {string}
|
|
663
|
-
*/
|
|
664
|
-
proto.ExchangeResponseV2.prototype.getQuotedRate_asB64 = function() {
|
|
665
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
666
|
-
this.getQuotedRate()));
|
|
667
|
-
};
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
/**
|
|
671
|
-
* optional bytes quoted_rate = 4;
|
|
672
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
673
|
-
* @see http://caniuse.com/Uint8Array
|
|
674
|
-
* This is a type-conversion wrapper around `getQuotedRate()`
|
|
675
|
-
* @return {!Uint8Array}
|
|
676
|
-
*/
|
|
677
|
-
proto.ExchangeResponseV2.prototype.getQuotedRate_asU8 = function() {
|
|
678
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
679
|
-
this.getQuotedRate()));
|
|
680
|
-
};
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
/** @param {!(string|Uint8Array)} value */
|
|
684
|
-
proto.ExchangeResponseV2.prototype.setQuotedRate = function(value) {
|
|
685
|
-
jspb.Message.setField(this, 4, value);
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
proto.ExchangeResponseV2.prototype.clearQuotedRate = function() {
|
|
690
|
-
jspb.Message.setField(this, 4, undefined);
|
|
691
|
-
};
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
/**
|
|
695
|
-
* Returns whether this field is set.
|
|
696
|
-
* @return {!boolean}
|
|
697
|
-
*/
|
|
698
|
-
proto.ExchangeResponseV2.prototype.hasQuotedRate = function() {
|
|
699
|
-
return jspb.Message.getField(this, 4) != null;
|
|
700
|
-
};
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
/**
|
|
704
|
-
* optional ExchangeAddress withdrawal_address = 5;
|
|
705
|
-
* @return {?proto.ExchangeAddress}
|
|
706
|
-
*/
|
|
707
|
-
proto.ExchangeResponseV2.prototype.getWithdrawalAddress = function() {
|
|
708
|
-
return /** @type{?proto.ExchangeAddress} */ (
|
|
709
|
-
jspb.Message.getWrapperField(this, proto.ExchangeAddress, 5));
|
|
710
|
-
};
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
/** @param {?proto.ExchangeAddress|undefined} value */
|
|
714
|
-
proto.ExchangeResponseV2.prototype.setWithdrawalAddress = function(value) {
|
|
715
|
-
jspb.Message.setWrapperField(this, 5, value);
|
|
716
|
-
};
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
proto.ExchangeResponseV2.prototype.clearWithdrawalAddress = function() {
|
|
720
|
-
this.setWithdrawalAddress(undefined);
|
|
721
|
-
};
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* Returns whether this field is set.
|
|
726
|
-
* @return {!boolean}
|
|
727
|
-
*/
|
|
728
|
-
proto.ExchangeResponseV2.prototype.hasWithdrawalAddress = function() {
|
|
729
|
-
return jspb.Message.getField(this, 5) != null;
|
|
730
|
-
};
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
/**
|
|
734
|
-
* optional bytes withdrawal_amount = 6;
|
|
735
|
-
* @return {!(string|Uint8Array)}
|
|
736
|
-
*/
|
|
737
|
-
proto.ExchangeResponseV2.prototype.getWithdrawalAmount = function() {
|
|
738
|
-
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
739
|
-
};
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
/**
|
|
743
|
-
* optional bytes withdrawal_amount = 6;
|
|
744
|
-
* This is a type-conversion wrapper around `getWithdrawalAmount()`
|
|
745
|
-
* @return {string}
|
|
746
|
-
*/
|
|
747
|
-
proto.ExchangeResponseV2.prototype.getWithdrawalAmount_asB64 = function() {
|
|
748
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
749
|
-
this.getWithdrawalAmount()));
|
|
750
|
-
};
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
/**
|
|
754
|
-
* optional bytes withdrawal_amount = 6;
|
|
755
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
756
|
-
* @see http://caniuse.com/Uint8Array
|
|
757
|
-
* This is a type-conversion wrapper around `getWithdrawalAmount()`
|
|
758
|
-
* @return {!Uint8Array}
|
|
759
|
-
*/
|
|
760
|
-
proto.ExchangeResponseV2.prototype.getWithdrawalAmount_asU8 = function() {
|
|
761
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
762
|
-
this.getWithdrawalAmount()));
|
|
763
|
-
};
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
/** @param {!(string|Uint8Array)} value */
|
|
767
|
-
proto.ExchangeResponseV2.prototype.setWithdrawalAmount = function(value) {
|
|
768
|
-
jspb.Message.setField(this, 6, value);
|
|
769
|
-
};
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
proto.ExchangeResponseV2.prototype.clearWithdrawalAmount = function() {
|
|
773
|
-
jspb.Message.setField(this, 6, undefined);
|
|
774
|
-
};
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
/**
|
|
778
|
-
* Returns whether this field is set.
|
|
779
|
-
* @return {!boolean}
|
|
780
|
-
*/
|
|
781
|
-
proto.ExchangeResponseV2.prototype.hasWithdrawalAmount = function() {
|
|
782
|
-
return jspb.Message.getField(this, 6) != null;
|
|
783
|
-
};
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
/**
|
|
787
|
-
* optional ExchangeAddress return_address = 7;
|
|
788
|
-
* @return {?proto.ExchangeAddress}
|
|
789
|
-
*/
|
|
790
|
-
proto.ExchangeResponseV2.prototype.getReturnAddress = function() {
|
|
791
|
-
return /** @type{?proto.ExchangeAddress} */ (
|
|
792
|
-
jspb.Message.getWrapperField(this, proto.ExchangeAddress, 7));
|
|
793
|
-
};
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
/** @param {?proto.ExchangeAddress|undefined} value */
|
|
797
|
-
proto.ExchangeResponseV2.prototype.setReturnAddress = function(value) {
|
|
798
|
-
jspb.Message.setWrapperField(this, 7, value);
|
|
799
|
-
};
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
proto.ExchangeResponseV2.prototype.clearReturnAddress = function() {
|
|
803
|
-
this.setReturnAddress(undefined);
|
|
804
|
-
};
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
/**
|
|
808
|
-
* Returns whether this field is set.
|
|
809
|
-
* @return {!boolean}
|
|
810
|
-
*/
|
|
811
|
-
proto.ExchangeResponseV2.prototype.hasReturnAddress = function() {
|
|
812
|
-
return jspb.Message.getField(this, 7) != null;
|
|
813
|
-
};
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
/**
|
|
817
|
-
* optional bytes api_key = 8;
|
|
818
|
-
* @return {!(string|Uint8Array)}
|
|
819
|
-
*/
|
|
820
|
-
proto.ExchangeResponseV2.prototype.getApiKey = function() {
|
|
821
|
-
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
822
|
-
};
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* optional bytes api_key = 8;
|
|
827
|
-
* This is a type-conversion wrapper around `getApiKey()`
|
|
828
|
-
* @return {string}
|
|
829
|
-
*/
|
|
830
|
-
proto.ExchangeResponseV2.prototype.getApiKey_asB64 = function() {
|
|
831
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
832
|
-
this.getApiKey()));
|
|
833
|
-
};
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
/**
|
|
837
|
-
* optional bytes api_key = 8;
|
|
838
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
839
|
-
* @see http://caniuse.com/Uint8Array
|
|
840
|
-
* This is a type-conversion wrapper around `getApiKey()`
|
|
841
|
-
* @return {!Uint8Array}
|
|
842
|
-
*/
|
|
843
|
-
proto.ExchangeResponseV2.prototype.getApiKey_asU8 = function() {
|
|
844
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
845
|
-
this.getApiKey()));
|
|
846
|
-
};
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
/** @param {!(string|Uint8Array)} value */
|
|
850
|
-
proto.ExchangeResponseV2.prototype.setApiKey = function(value) {
|
|
851
|
-
jspb.Message.setField(this, 8, value);
|
|
852
|
-
};
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
proto.ExchangeResponseV2.prototype.clearApiKey = function() {
|
|
856
|
-
jspb.Message.setField(this, 8, undefined);
|
|
857
|
-
};
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
/**
|
|
861
|
-
* Returns whether this field is set.
|
|
862
|
-
* @return {!boolean}
|
|
863
|
-
*/
|
|
864
|
-
proto.ExchangeResponseV2.prototype.hasApiKey = function() {
|
|
865
|
-
return jspb.Message.getField(this, 8) != null;
|
|
866
|
-
};
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
/**
|
|
870
|
-
* optional bytes miner_fee = 9;
|
|
871
|
-
* @return {!(string|Uint8Array)}
|
|
872
|
-
*/
|
|
873
|
-
proto.ExchangeResponseV2.prototype.getMinerFee = function() {
|
|
874
|
-
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
875
|
-
};
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
/**
|
|
879
|
-
* optional bytes miner_fee = 9;
|
|
880
|
-
* This is a type-conversion wrapper around `getMinerFee()`
|
|
881
|
-
* @return {string}
|
|
882
|
-
*/
|
|
883
|
-
proto.ExchangeResponseV2.prototype.getMinerFee_asB64 = function() {
|
|
884
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
885
|
-
this.getMinerFee()));
|
|
886
|
-
};
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
/**
|
|
890
|
-
* optional bytes miner_fee = 9;
|
|
891
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
892
|
-
* @see http://caniuse.com/Uint8Array
|
|
893
|
-
* This is a type-conversion wrapper around `getMinerFee()`
|
|
894
|
-
* @return {!Uint8Array}
|
|
895
|
-
*/
|
|
896
|
-
proto.ExchangeResponseV2.prototype.getMinerFee_asU8 = function() {
|
|
897
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
898
|
-
this.getMinerFee()));
|
|
899
|
-
};
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
/** @param {!(string|Uint8Array)} value */
|
|
903
|
-
proto.ExchangeResponseV2.prototype.setMinerFee = function(value) {
|
|
904
|
-
jspb.Message.setField(this, 9, value);
|
|
905
|
-
};
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
proto.ExchangeResponseV2.prototype.clearMinerFee = function() {
|
|
909
|
-
jspb.Message.setField(this, 9, undefined);
|
|
910
|
-
};
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
/**
|
|
914
|
-
* Returns whether this field is set.
|
|
915
|
-
* @return {!boolean}
|
|
916
|
-
*/
|
|
917
|
-
proto.ExchangeResponseV2.prototype.hasMinerFee = function() {
|
|
918
|
-
return jspb.Message.getField(this, 9) != null;
|
|
919
|
-
};
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
/**
|
|
923
|
-
* optional bytes order_id = 10;
|
|
924
|
-
* @return {!(string|Uint8Array)}
|
|
925
|
-
*/
|
|
926
|
-
proto.ExchangeResponseV2.prototype.getOrderId = function() {
|
|
927
|
-
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
928
|
-
};
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
/**
|
|
932
|
-
* optional bytes order_id = 10;
|
|
933
|
-
* This is a type-conversion wrapper around `getOrderId()`
|
|
934
|
-
* @return {string}
|
|
935
|
-
*/
|
|
936
|
-
proto.ExchangeResponseV2.prototype.getOrderId_asB64 = function() {
|
|
937
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
938
|
-
this.getOrderId()));
|
|
939
|
-
};
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
/**
|
|
943
|
-
* optional bytes order_id = 10;
|
|
944
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
945
|
-
* @see http://caniuse.com/Uint8Array
|
|
946
|
-
* This is a type-conversion wrapper around `getOrderId()`
|
|
947
|
-
* @return {!Uint8Array}
|
|
948
|
-
*/
|
|
949
|
-
proto.ExchangeResponseV2.prototype.getOrderId_asU8 = function() {
|
|
950
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
951
|
-
this.getOrderId()));
|
|
952
|
-
};
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
/** @param {!(string|Uint8Array)} value */
|
|
956
|
-
proto.ExchangeResponseV2.prototype.setOrderId = function(value) {
|
|
957
|
-
jspb.Message.setField(this, 10, value);
|
|
958
|
-
};
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
proto.ExchangeResponseV2.prototype.clearOrderId = function() {
|
|
962
|
-
jspb.Message.setField(this, 10, undefined);
|
|
963
|
-
};
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
/**
|
|
967
|
-
* Returns whether this field is set.
|
|
968
|
-
* @return {!boolean}
|
|
969
|
-
*/
|
|
970
|
-
proto.ExchangeResponseV2.prototype.hasOrderId = function() {
|
|
971
|
-
return jspb.Message.getField(this, 10) != null;
|
|
972
|
-
};
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
/**
|
|
977
|
-
* Generated by JsPbCodeGenerator.
|
|
978
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
979
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
980
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
981
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
982
|
-
* valid.
|
|
983
|
-
* @extends {jspb.Message}
|
|
984
|
-
* @constructor
|
|
985
|
-
*/
|
|
986
|
-
proto.SignedExchangeResponse = function(opt_data) {
|
|
987
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
988
|
-
};
|
|
989
|
-
goog.inherits(proto.SignedExchangeResponse, jspb.Message);
|
|
990
|
-
if (goog.DEBUG && !COMPILED) {
|
|
991
|
-
proto.SignedExchangeResponse.displayName = 'proto.SignedExchangeResponse';
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
996
|
-
/**
|
|
997
|
-
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
998
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
999
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1000
|
-
* For the list of reserved names please see:
|
|
1001
|
-
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1002
|
-
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1003
|
-
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1004
|
-
* @return {!Object}
|
|
1005
|
-
*/
|
|
1006
|
-
proto.SignedExchangeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1007
|
-
return proto.SignedExchangeResponse.toObject(opt_includeInstance, this);
|
|
1008
|
-
};
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
/**
|
|
1012
|
-
* Static version of the {@see toObject} method.
|
|
1013
|
-
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1014
|
-
* instance for transitional soy proto support:
|
|
1015
|
-
* http://goto/soy-param-migration
|
|
1016
|
-
* @param {!proto.SignedExchangeResponse} msg The msg instance to transform.
|
|
1017
|
-
* @return {!Object}
|
|
1018
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1019
|
-
*/
|
|
1020
|
-
proto.SignedExchangeResponse.toObject = function(includeInstance, msg) {
|
|
1021
|
-
var f, obj = {
|
|
1022
|
-
response: (f = msg.getResponse()) && proto.ExchangeResponse.toObject(includeInstance, f),
|
|
1023
|
-
signature: msg.getSignature_asB64(),
|
|
1024
|
-
responsev2: (f = msg.getResponsev2()) && proto.ExchangeResponseV2.toObject(includeInstance, f)
|
|
1025
|
-
};
|
|
1026
|
-
|
|
1027
|
-
if (includeInstance) {
|
|
1028
|
-
obj.$jspbMessageInstance = msg;
|
|
1029
|
-
}
|
|
1030
|
-
return obj;
|
|
1031
|
-
};
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
/**
|
|
1036
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1037
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1038
|
-
* @return {!proto.SignedExchangeResponse}
|
|
1039
|
-
*/
|
|
1040
|
-
proto.SignedExchangeResponse.deserializeBinary = function(bytes) {
|
|
1041
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1042
|
-
var msg = new proto.SignedExchangeResponse;
|
|
1043
|
-
return proto.SignedExchangeResponse.deserializeBinaryFromReader(msg, reader);
|
|
1044
|
-
};
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
/**
|
|
1048
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1049
|
-
* given reader into the given message object.
|
|
1050
|
-
* @param {!proto.SignedExchangeResponse} msg The message object to deserialize into.
|
|
1051
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1052
|
-
* @return {!proto.SignedExchangeResponse}
|
|
1053
|
-
*/
|
|
1054
|
-
proto.SignedExchangeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1055
|
-
while (reader.nextField()) {
|
|
1056
|
-
if (reader.isEndGroup()) {
|
|
1057
|
-
break;
|
|
1058
|
-
}
|
|
1059
|
-
var field = reader.getFieldNumber();
|
|
1060
|
-
switch (field) {
|
|
1061
|
-
case 1:
|
|
1062
|
-
var value = new proto.ExchangeResponse;
|
|
1063
|
-
reader.readMessage(value,proto.ExchangeResponse.deserializeBinaryFromReader);
|
|
1064
|
-
msg.setResponse(value);
|
|
1065
|
-
break;
|
|
1066
|
-
case 2:
|
|
1067
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
1068
|
-
msg.setSignature(value);
|
|
1069
|
-
break;
|
|
1070
|
-
case 3:
|
|
1071
|
-
var value = new proto.ExchangeResponseV2;
|
|
1072
|
-
reader.readMessage(value,proto.ExchangeResponseV2.deserializeBinaryFromReader);
|
|
1073
|
-
msg.setResponsev2(value);
|
|
1074
|
-
break;
|
|
1075
|
-
default:
|
|
1076
|
-
reader.skipField();
|
|
1077
|
-
break;
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
return msg;
|
|
1081
|
-
};
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
/**
|
|
1085
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1086
|
-
* @return {!Uint8Array}
|
|
1087
|
-
*/
|
|
1088
|
-
proto.SignedExchangeResponse.prototype.serializeBinary = function() {
|
|
1089
|
-
var writer = new jspb.BinaryWriter();
|
|
1090
|
-
proto.SignedExchangeResponse.serializeBinaryToWriter(this, writer);
|
|
1091
|
-
return writer.getResultBuffer();
|
|
1092
|
-
};
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
/**
|
|
1096
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1097
|
-
* format), writing to the given BinaryWriter.
|
|
1098
|
-
* @param {!proto.SignedExchangeResponse} message
|
|
1099
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1100
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1101
|
-
*/
|
|
1102
|
-
proto.SignedExchangeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1103
|
-
var f = undefined;
|
|
1104
|
-
f = message.getResponse();
|
|
1105
|
-
if (f != null) {
|
|
1106
|
-
writer.writeMessage(
|
|
1107
|
-
1,
|
|
1108
|
-
f,
|
|
1109
|
-
proto.ExchangeResponse.serializeBinaryToWriter
|
|
1110
|
-
);
|
|
1111
|
-
}
|
|
1112
|
-
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
|
|
1113
|
-
if (f != null) {
|
|
1114
|
-
writer.writeBytes(
|
|
1115
|
-
2,
|
|
1116
|
-
f
|
|
1117
|
-
);
|
|
1118
|
-
}
|
|
1119
|
-
f = message.getResponsev2();
|
|
1120
|
-
if (f != null) {
|
|
1121
|
-
writer.writeMessage(
|
|
1122
|
-
3,
|
|
1123
|
-
f,
|
|
1124
|
-
proto.ExchangeResponseV2.serializeBinaryToWriter
|
|
1125
|
-
);
|
|
1126
|
-
}
|
|
1127
|
-
};
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
/**
|
|
1131
|
-
* optional ExchangeResponse response = 1;
|
|
1132
|
-
* @return {?proto.ExchangeResponse}
|
|
1133
|
-
*/
|
|
1134
|
-
proto.SignedExchangeResponse.prototype.getResponse = function() {
|
|
1135
|
-
return /** @type{?proto.ExchangeResponse} */ (
|
|
1136
|
-
jspb.Message.getWrapperField(this, proto.ExchangeResponse, 1));
|
|
1137
|
-
};
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
/** @param {?proto.ExchangeResponse|undefined} value */
|
|
1141
|
-
proto.SignedExchangeResponse.prototype.setResponse = function(value) {
|
|
1142
|
-
jspb.Message.setWrapperField(this, 1, value);
|
|
1143
|
-
};
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
proto.SignedExchangeResponse.prototype.clearResponse = function() {
|
|
1147
|
-
this.setResponse(undefined);
|
|
1148
|
-
};
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
/**
|
|
1152
|
-
* Returns whether this field is set.
|
|
1153
|
-
* @return {!boolean}
|
|
1154
|
-
*/
|
|
1155
|
-
proto.SignedExchangeResponse.prototype.hasResponse = function() {
|
|
1156
|
-
return jspb.Message.getField(this, 1) != null;
|
|
1157
|
-
};
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
/**
|
|
1161
|
-
* optional bytes signature = 2;
|
|
1162
|
-
* @return {!(string|Uint8Array)}
|
|
1163
|
-
*/
|
|
1164
|
-
proto.SignedExchangeResponse.prototype.getSignature = function() {
|
|
1165
|
-
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1166
|
-
};
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
/**
|
|
1170
|
-
* optional bytes signature = 2;
|
|
1171
|
-
* This is a type-conversion wrapper around `getSignature()`
|
|
1172
|
-
* @return {string}
|
|
1173
|
-
*/
|
|
1174
|
-
proto.SignedExchangeResponse.prototype.getSignature_asB64 = function() {
|
|
1175
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
1176
|
-
this.getSignature()));
|
|
1177
|
-
};
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
/**
|
|
1181
|
-
* optional bytes signature = 2;
|
|
1182
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
1183
|
-
* @see http://caniuse.com/Uint8Array
|
|
1184
|
-
* This is a type-conversion wrapper around `getSignature()`
|
|
1185
|
-
* @return {!Uint8Array}
|
|
1186
|
-
*/
|
|
1187
|
-
proto.SignedExchangeResponse.prototype.getSignature_asU8 = function() {
|
|
1188
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
1189
|
-
this.getSignature()));
|
|
1190
|
-
};
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
/** @param {!(string|Uint8Array)} value */
|
|
1194
|
-
proto.SignedExchangeResponse.prototype.setSignature = function(value) {
|
|
1195
|
-
jspb.Message.setField(this, 2, value);
|
|
1196
|
-
};
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
proto.SignedExchangeResponse.prototype.clearSignature = function() {
|
|
1200
|
-
jspb.Message.setField(this, 2, undefined);
|
|
1201
|
-
};
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
/**
|
|
1205
|
-
* Returns whether this field is set.
|
|
1206
|
-
* @return {!boolean}
|
|
1207
|
-
*/
|
|
1208
|
-
proto.SignedExchangeResponse.prototype.hasSignature = function() {
|
|
1209
|
-
return jspb.Message.getField(this, 2) != null;
|
|
1210
|
-
};
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
/**
|
|
1214
|
-
* optional ExchangeResponseV2 responseV2 = 3;
|
|
1215
|
-
* @return {?proto.ExchangeResponseV2}
|
|
1216
|
-
*/
|
|
1217
|
-
proto.SignedExchangeResponse.prototype.getResponsev2 = function() {
|
|
1218
|
-
return /** @type{?proto.ExchangeResponseV2} */ (
|
|
1219
|
-
jspb.Message.getWrapperField(this, proto.ExchangeResponseV2, 3));
|
|
1220
|
-
};
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
/** @param {?proto.ExchangeResponseV2|undefined} value */
|
|
1224
|
-
proto.SignedExchangeResponse.prototype.setResponsev2 = function(value) {
|
|
1225
|
-
jspb.Message.setWrapperField(this, 3, value);
|
|
1226
|
-
};
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
proto.SignedExchangeResponse.prototype.clearResponsev2 = function() {
|
|
1230
|
-
this.setResponsev2(undefined);
|
|
1231
|
-
};
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
/**
|
|
1235
|
-
* Returns whether this field is set.
|
|
1236
|
-
* @return {!boolean}
|
|
1237
|
-
*/
|
|
1238
|
-
proto.SignedExchangeResponse.prototype.hasResponsev2 = function() {
|
|
1239
|
-
return jspb.Message.getField(this, 3) != null;
|
|
1240
|
-
};
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
/**
|
|
1245
|
-
* Generated by JsPbCodeGenerator.
|
|
1246
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1247
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
1248
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
1249
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
1250
|
-
* valid.
|
|
1251
|
-
* @extends {jspb.Message}
|
|
1252
|
-
* @constructor
|
|
1253
|
-
*/
|
|
1254
|
-
proto.ExchangeResponse = function(opt_data) {
|
|
1255
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1256
|
-
};
|
|
1257
|
-
goog.inherits(proto.ExchangeResponse, jspb.Message);
|
|
1258
|
-
if (goog.DEBUG && !COMPILED) {
|
|
1259
|
-
proto.ExchangeResponse.displayName = 'proto.ExchangeResponse';
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1264
|
-
/**
|
|
1265
|
-
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1266
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1267
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1268
|
-
* For the list of reserved names please see:
|
|
1269
|
-
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1270
|
-
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1271
|
-
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1272
|
-
* @return {!Object}
|
|
1273
|
-
*/
|
|
1274
|
-
proto.ExchangeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1275
|
-
return proto.ExchangeResponse.toObject(opt_includeInstance, this);
|
|
1276
|
-
};
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
/**
|
|
1280
|
-
* Static version of the {@see toObject} method.
|
|
1281
|
-
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1282
|
-
* instance for transitional soy proto support:
|
|
1283
|
-
* http://goto/soy-param-migration
|
|
1284
|
-
* @param {!proto.ExchangeResponse} msg The msg instance to transform.
|
|
1285
|
-
* @return {!Object}
|
|
1286
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1287
|
-
*/
|
|
1288
|
-
proto.ExchangeResponse.toObject = function(includeInstance, msg) {
|
|
1289
|
-
var f, obj = {
|
|
1290
|
-
depositAddress: (f = msg.getDepositAddress()) && proto.ExchangeAddress.toObject(includeInstance, f),
|
|
1291
|
-
depositAmount: jspb.Message.getField(msg, 2),
|
|
1292
|
-
expiration: jspb.Message.getField(msg, 3),
|
|
1293
|
-
quotedRate: jspb.Message.getField(msg, 4),
|
|
1294
|
-
withdrawalAddress: (f = msg.getWithdrawalAddress()) && proto.ExchangeAddress.toObject(includeInstance, f),
|
|
1295
|
-
withdrawalAmount: jspb.Message.getField(msg, 6),
|
|
1296
|
-
returnAddress: (f = msg.getReturnAddress()) && proto.ExchangeAddress.toObject(includeInstance, f),
|
|
1297
|
-
apiKey: msg.getApiKey_asB64(),
|
|
1298
|
-
minerFee: jspb.Message.getField(msg, 9),
|
|
1299
|
-
orderId: msg.getOrderId_asB64()
|
|
1300
|
-
};
|
|
1301
|
-
|
|
1302
|
-
if (includeInstance) {
|
|
1303
|
-
obj.$jspbMessageInstance = msg;
|
|
1304
|
-
}
|
|
1305
|
-
return obj;
|
|
1306
|
-
};
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
/**
|
|
1311
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1312
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1313
|
-
* @return {!proto.ExchangeResponse}
|
|
1314
|
-
*/
|
|
1315
|
-
proto.ExchangeResponse.deserializeBinary = function(bytes) {
|
|
1316
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1317
|
-
var msg = new proto.ExchangeResponse;
|
|
1318
|
-
return proto.ExchangeResponse.deserializeBinaryFromReader(msg, reader);
|
|
1319
|
-
};
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
/**
|
|
1323
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1324
|
-
* given reader into the given message object.
|
|
1325
|
-
* @param {!proto.ExchangeResponse} msg The message object to deserialize into.
|
|
1326
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1327
|
-
* @return {!proto.ExchangeResponse}
|
|
1328
|
-
*/
|
|
1329
|
-
proto.ExchangeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1330
|
-
while (reader.nextField()) {
|
|
1331
|
-
if (reader.isEndGroup()) {
|
|
1332
|
-
break;
|
|
1333
|
-
}
|
|
1334
|
-
var field = reader.getFieldNumber();
|
|
1335
|
-
switch (field) {
|
|
1336
|
-
case 1:
|
|
1337
|
-
var value = new proto.ExchangeAddress;
|
|
1338
|
-
reader.readMessage(value,proto.ExchangeAddress.deserializeBinaryFromReader);
|
|
1339
|
-
msg.setDepositAddress(value);
|
|
1340
|
-
break;
|
|
1341
|
-
case 2:
|
|
1342
|
-
var value = /** @type {number} */ (reader.readUint64());
|
|
1343
|
-
msg.setDepositAmount(value);
|
|
1344
|
-
break;
|
|
1345
|
-
case 3:
|
|
1346
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
1347
|
-
msg.setExpiration(value);
|
|
1348
|
-
break;
|
|
1349
|
-
case 4:
|
|
1350
|
-
var value = /** @type {number} */ (reader.readUint64());
|
|
1351
|
-
msg.setQuotedRate(value);
|
|
1352
|
-
break;
|
|
1353
|
-
case 5:
|
|
1354
|
-
var value = new proto.ExchangeAddress;
|
|
1355
|
-
reader.readMessage(value,proto.ExchangeAddress.deserializeBinaryFromReader);
|
|
1356
|
-
msg.setWithdrawalAddress(value);
|
|
1357
|
-
break;
|
|
1358
|
-
case 6:
|
|
1359
|
-
var value = /** @type {number} */ (reader.readUint64());
|
|
1360
|
-
msg.setWithdrawalAmount(value);
|
|
1361
|
-
break;
|
|
1362
|
-
case 7:
|
|
1363
|
-
var value = new proto.ExchangeAddress;
|
|
1364
|
-
reader.readMessage(value,proto.ExchangeAddress.deserializeBinaryFromReader);
|
|
1365
|
-
msg.setReturnAddress(value);
|
|
1366
|
-
break;
|
|
1367
|
-
case 8:
|
|
1368
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
1369
|
-
msg.setApiKey(value);
|
|
1370
|
-
break;
|
|
1371
|
-
case 9:
|
|
1372
|
-
var value = /** @type {number} */ (reader.readUint64());
|
|
1373
|
-
msg.setMinerFee(value);
|
|
1374
|
-
break;
|
|
1375
|
-
case 10:
|
|
1376
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
1377
|
-
msg.setOrderId(value);
|
|
1378
|
-
break;
|
|
1379
|
-
default:
|
|
1380
|
-
reader.skipField();
|
|
1381
|
-
break;
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
return msg;
|
|
1385
|
-
};
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
/**
|
|
1389
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1390
|
-
* @return {!Uint8Array}
|
|
1391
|
-
*/
|
|
1392
|
-
proto.ExchangeResponse.prototype.serializeBinary = function() {
|
|
1393
|
-
var writer = new jspb.BinaryWriter();
|
|
1394
|
-
proto.ExchangeResponse.serializeBinaryToWriter(this, writer);
|
|
1395
|
-
return writer.getResultBuffer();
|
|
1396
|
-
};
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
/**
|
|
1400
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1401
|
-
* format), writing to the given BinaryWriter.
|
|
1402
|
-
* @param {!proto.ExchangeResponse} message
|
|
1403
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1404
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1405
|
-
*/
|
|
1406
|
-
proto.ExchangeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1407
|
-
var f = undefined;
|
|
1408
|
-
f = message.getDepositAddress();
|
|
1409
|
-
if (f != null) {
|
|
1410
|
-
writer.writeMessage(
|
|
1411
|
-
1,
|
|
1412
|
-
f,
|
|
1413
|
-
proto.ExchangeAddress.serializeBinaryToWriter
|
|
1414
|
-
);
|
|
1415
|
-
}
|
|
1416
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
1417
|
-
if (f != null) {
|
|
1418
|
-
writer.writeUint64(
|
|
1419
|
-
2,
|
|
1420
|
-
f
|
|
1421
|
-
);
|
|
1422
|
-
}
|
|
1423
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
1424
|
-
if (f != null) {
|
|
1425
|
-
writer.writeInt64(
|
|
1426
|
-
3,
|
|
1427
|
-
f
|
|
1428
|
-
);
|
|
1429
|
-
}
|
|
1430
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
|
1431
|
-
if (f != null) {
|
|
1432
|
-
writer.writeUint64(
|
|
1433
|
-
4,
|
|
1434
|
-
f
|
|
1435
|
-
);
|
|
1436
|
-
}
|
|
1437
|
-
f = message.getWithdrawalAddress();
|
|
1438
|
-
if (f != null) {
|
|
1439
|
-
writer.writeMessage(
|
|
1440
|
-
5,
|
|
1441
|
-
f,
|
|
1442
|
-
proto.ExchangeAddress.serializeBinaryToWriter
|
|
1443
|
-
);
|
|
1444
|
-
}
|
|
1445
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
|
1446
|
-
if (f != null) {
|
|
1447
|
-
writer.writeUint64(
|
|
1448
|
-
6,
|
|
1449
|
-
f
|
|
1450
|
-
);
|
|
1451
|
-
}
|
|
1452
|
-
f = message.getReturnAddress();
|
|
1453
|
-
if (f != null) {
|
|
1454
|
-
writer.writeMessage(
|
|
1455
|
-
7,
|
|
1456
|
-
f,
|
|
1457
|
-
proto.ExchangeAddress.serializeBinaryToWriter
|
|
1458
|
-
);
|
|
1459
|
-
}
|
|
1460
|
-
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 8));
|
|
1461
|
-
if (f != null) {
|
|
1462
|
-
writer.writeBytes(
|
|
1463
|
-
8,
|
|
1464
|
-
f
|
|
1465
|
-
);
|
|
1466
|
-
}
|
|
1467
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 9));
|
|
1468
|
-
if (f != null) {
|
|
1469
|
-
writer.writeUint64(
|
|
1470
|
-
9,
|
|
1471
|
-
f
|
|
1472
|
-
);
|
|
1473
|
-
}
|
|
1474
|
-
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 10));
|
|
1475
|
-
if (f != null) {
|
|
1476
|
-
writer.writeBytes(
|
|
1477
|
-
10,
|
|
1478
|
-
f
|
|
1479
|
-
);
|
|
1480
|
-
}
|
|
1481
|
-
};
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
/**
|
|
1485
|
-
* optional ExchangeAddress deposit_address = 1;
|
|
1486
|
-
* @return {?proto.ExchangeAddress}
|
|
1487
|
-
*/
|
|
1488
|
-
proto.ExchangeResponse.prototype.getDepositAddress = function() {
|
|
1489
|
-
return /** @type{?proto.ExchangeAddress} */ (
|
|
1490
|
-
jspb.Message.getWrapperField(this, proto.ExchangeAddress, 1));
|
|
1491
|
-
};
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
/** @param {?proto.ExchangeAddress|undefined} value */
|
|
1495
|
-
proto.ExchangeResponse.prototype.setDepositAddress = function(value) {
|
|
1496
|
-
jspb.Message.setWrapperField(this, 1, value);
|
|
1497
|
-
};
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
proto.ExchangeResponse.prototype.clearDepositAddress = function() {
|
|
1501
|
-
this.setDepositAddress(undefined);
|
|
1502
|
-
};
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
/**
|
|
1506
|
-
* Returns whether this field is set.
|
|
1507
|
-
* @return {!boolean}
|
|
1508
|
-
*/
|
|
1509
|
-
proto.ExchangeResponse.prototype.hasDepositAddress = function() {
|
|
1510
|
-
return jspb.Message.getField(this, 1) != null;
|
|
1511
|
-
};
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
/**
|
|
1515
|
-
* optional uint64 deposit_amount = 2;
|
|
1516
|
-
* @return {number}
|
|
1517
|
-
*/
|
|
1518
|
-
proto.ExchangeResponse.prototype.getDepositAmount = function() {
|
|
1519
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1520
|
-
};
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
/** @param {number} value */
|
|
1524
|
-
proto.ExchangeResponse.prototype.setDepositAmount = function(value) {
|
|
1525
|
-
jspb.Message.setField(this, 2, value);
|
|
1526
|
-
};
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
proto.ExchangeResponse.prototype.clearDepositAmount = function() {
|
|
1530
|
-
jspb.Message.setField(this, 2, undefined);
|
|
1531
|
-
};
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
/**
|
|
1535
|
-
* Returns whether this field is set.
|
|
1536
|
-
* @return {!boolean}
|
|
1537
|
-
*/
|
|
1538
|
-
proto.ExchangeResponse.prototype.hasDepositAmount = function() {
|
|
1539
|
-
return jspb.Message.getField(this, 2) != null;
|
|
1540
|
-
};
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
/**
|
|
1544
|
-
* optional int64 expiration = 3;
|
|
1545
|
-
* @return {number}
|
|
1546
|
-
*/
|
|
1547
|
-
proto.ExchangeResponse.prototype.getExpiration = function() {
|
|
1548
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1549
|
-
};
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
/** @param {number} value */
|
|
1553
|
-
proto.ExchangeResponse.prototype.setExpiration = function(value) {
|
|
1554
|
-
jspb.Message.setField(this, 3, value);
|
|
1555
|
-
};
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
proto.ExchangeResponse.prototype.clearExpiration = function() {
|
|
1559
|
-
jspb.Message.setField(this, 3, undefined);
|
|
1560
|
-
};
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
/**
|
|
1564
|
-
* Returns whether this field is set.
|
|
1565
|
-
* @return {!boolean}
|
|
1566
|
-
*/
|
|
1567
|
-
proto.ExchangeResponse.prototype.hasExpiration = function() {
|
|
1568
|
-
return jspb.Message.getField(this, 3) != null;
|
|
1569
|
-
};
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
/**
|
|
1573
|
-
* optional uint64 quoted_rate = 4;
|
|
1574
|
-
* @return {number}
|
|
1575
|
-
*/
|
|
1576
|
-
proto.ExchangeResponse.prototype.getQuotedRate = function() {
|
|
1577
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
1578
|
-
};
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
/** @param {number} value */
|
|
1582
|
-
proto.ExchangeResponse.prototype.setQuotedRate = function(value) {
|
|
1583
|
-
jspb.Message.setField(this, 4, value);
|
|
1584
|
-
};
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
proto.ExchangeResponse.prototype.clearQuotedRate = function() {
|
|
1588
|
-
jspb.Message.setField(this, 4, undefined);
|
|
1589
|
-
};
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
/**
|
|
1593
|
-
* Returns whether this field is set.
|
|
1594
|
-
* @return {!boolean}
|
|
1595
|
-
*/
|
|
1596
|
-
proto.ExchangeResponse.prototype.hasQuotedRate = function() {
|
|
1597
|
-
return jspb.Message.getField(this, 4) != null;
|
|
1598
|
-
};
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
/**
|
|
1602
|
-
* optional ExchangeAddress withdrawal_address = 5;
|
|
1603
|
-
* @return {?proto.ExchangeAddress}
|
|
1604
|
-
*/
|
|
1605
|
-
proto.ExchangeResponse.prototype.getWithdrawalAddress = function() {
|
|
1606
|
-
return /** @type{?proto.ExchangeAddress} */ (
|
|
1607
|
-
jspb.Message.getWrapperField(this, proto.ExchangeAddress, 5));
|
|
1608
|
-
};
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
/** @param {?proto.ExchangeAddress|undefined} value */
|
|
1612
|
-
proto.ExchangeResponse.prototype.setWithdrawalAddress = function(value) {
|
|
1613
|
-
jspb.Message.setWrapperField(this, 5, value);
|
|
1614
|
-
};
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
proto.ExchangeResponse.prototype.clearWithdrawalAddress = function() {
|
|
1618
|
-
this.setWithdrawalAddress(undefined);
|
|
1619
|
-
};
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
/**
|
|
1623
|
-
* Returns whether this field is set.
|
|
1624
|
-
* @return {!boolean}
|
|
1625
|
-
*/
|
|
1626
|
-
proto.ExchangeResponse.prototype.hasWithdrawalAddress = function() {
|
|
1627
|
-
return jspb.Message.getField(this, 5) != null;
|
|
1628
|
-
};
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
/**
|
|
1632
|
-
* optional uint64 withdrawal_amount = 6;
|
|
1633
|
-
* @return {number}
|
|
1634
|
-
*/
|
|
1635
|
-
proto.ExchangeResponse.prototype.getWithdrawalAmount = function() {
|
|
1636
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
1637
|
-
};
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
/** @param {number} value */
|
|
1641
|
-
proto.ExchangeResponse.prototype.setWithdrawalAmount = function(value) {
|
|
1642
|
-
jspb.Message.setField(this, 6, value);
|
|
1643
|
-
};
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
proto.ExchangeResponse.prototype.clearWithdrawalAmount = function() {
|
|
1647
|
-
jspb.Message.setField(this, 6, undefined);
|
|
1648
|
-
};
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
/**
|
|
1652
|
-
* Returns whether this field is set.
|
|
1653
|
-
* @return {!boolean}
|
|
1654
|
-
*/
|
|
1655
|
-
proto.ExchangeResponse.prototype.hasWithdrawalAmount = function() {
|
|
1656
|
-
return jspb.Message.getField(this, 6) != null;
|
|
1657
|
-
};
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
/**
|
|
1661
|
-
* optional ExchangeAddress return_address = 7;
|
|
1662
|
-
* @return {?proto.ExchangeAddress}
|
|
1663
|
-
*/
|
|
1664
|
-
proto.ExchangeResponse.prototype.getReturnAddress = function() {
|
|
1665
|
-
return /** @type{?proto.ExchangeAddress} */ (
|
|
1666
|
-
jspb.Message.getWrapperField(this, proto.ExchangeAddress, 7));
|
|
1667
|
-
};
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
/** @param {?proto.ExchangeAddress|undefined} value */
|
|
1671
|
-
proto.ExchangeResponse.prototype.setReturnAddress = function(value) {
|
|
1672
|
-
jspb.Message.setWrapperField(this, 7, value);
|
|
1673
|
-
};
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
proto.ExchangeResponse.prototype.clearReturnAddress = function() {
|
|
1677
|
-
this.setReturnAddress(undefined);
|
|
1678
|
-
};
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
/**
|
|
1682
|
-
* Returns whether this field is set.
|
|
1683
|
-
* @return {!boolean}
|
|
1684
|
-
*/
|
|
1685
|
-
proto.ExchangeResponse.prototype.hasReturnAddress = function() {
|
|
1686
|
-
return jspb.Message.getField(this, 7) != null;
|
|
1687
|
-
};
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
/**
|
|
1691
|
-
* optional bytes api_key = 8;
|
|
1692
|
-
* @return {!(string|Uint8Array)}
|
|
1693
|
-
*/
|
|
1694
|
-
proto.ExchangeResponse.prototype.getApiKey = function() {
|
|
1695
|
-
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1696
|
-
};
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
/**
|
|
1700
|
-
* optional bytes api_key = 8;
|
|
1701
|
-
* This is a type-conversion wrapper around `getApiKey()`
|
|
1702
|
-
* @return {string}
|
|
1703
|
-
*/
|
|
1704
|
-
proto.ExchangeResponse.prototype.getApiKey_asB64 = function() {
|
|
1705
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
1706
|
-
this.getApiKey()));
|
|
1707
|
-
};
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
/**
|
|
1711
|
-
* optional bytes api_key = 8;
|
|
1712
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
1713
|
-
* @see http://caniuse.com/Uint8Array
|
|
1714
|
-
* This is a type-conversion wrapper around `getApiKey()`
|
|
1715
|
-
* @return {!Uint8Array}
|
|
1716
|
-
*/
|
|
1717
|
-
proto.ExchangeResponse.prototype.getApiKey_asU8 = function() {
|
|
1718
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
1719
|
-
this.getApiKey()));
|
|
1720
|
-
};
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
/** @param {!(string|Uint8Array)} value */
|
|
1724
|
-
proto.ExchangeResponse.prototype.setApiKey = function(value) {
|
|
1725
|
-
jspb.Message.setField(this, 8, value);
|
|
1726
|
-
};
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
proto.ExchangeResponse.prototype.clearApiKey = function() {
|
|
1730
|
-
jspb.Message.setField(this, 8, undefined);
|
|
1731
|
-
};
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
/**
|
|
1735
|
-
* Returns whether this field is set.
|
|
1736
|
-
* @return {!boolean}
|
|
1737
|
-
*/
|
|
1738
|
-
proto.ExchangeResponse.prototype.hasApiKey = function() {
|
|
1739
|
-
return jspb.Message.getField(this, 8) != null;
|
|
1740
|
-
};
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
/**
|
|
1744
|
-
* optional uint64 miner_fee = 9;
|
|
1745
|
-
* @return {number}
|
|
1746
|
-
*/
|
|
1747
|
-
proto.ExchangeResponse.prototype.getMinerFee = function() {
|
|
1748
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
1749
|
-
};
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
/** @param {number} value */
|
|
1753
|
-
proto.ExchangeResponse.prototype.setMinerFee = function(value) {
|
|
1754
|
-
jspb.Message.setField(this, 9, value);
|
|
1755
|
-
};
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
proto.ExchangeResponse.prototype.clearMinerFee = function() {
|
|
1759
|
-
jspb.Message.setField(this, 9, undefined);
|
|
1760
|
-
};
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
/**
|
|
1764
|
-
* Returns whether this field is set.
|
|
1765
|
-
* @return {!boolean}
|
|
1766
|
-
*/
|
|
1767
|
-
proto.ExchangeResponse.prototype.hasMinerFee = function() {
|
|
1768
|
-
return jspb.Message.getField(this, 9) != null;
|
|
1769
|
-
};
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
/**
|
|
1773
|
-
* optional bytes order_id = 10;
|
|
1774
|
-
* @return {!(string|Uint8Array)}
|
|
1775
|
-
*/
|
|
1776
|
-
proto.ExchangeResponse.prototype.getOrderId = function() {
|
|
1777
|
-
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
1778
|
-
};
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
/**
|
|
1782
|
-
* optional bytes order_id = 10;
|
|
1783
|
-
* This is a type-conversion wrapper around `getOrderId()`
|
|
1784
|
-
* @return {string}
|
|
1785
|
-
*/
|
|
1786
|
-
proto.ExchangeResponse.prototype.getOrderId_asB64 = function() {
|
|
1787
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
1788
|
-
this.getOrderId()));
|
|
1789
|
-
};
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
/**
|
|
1793
|
-
* optional bytes order_id = 10;
|
|
1794
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
1795
|
-
* @see http://caniuse.com/Uint8Array
|
|
1796
|
-
* This is a type-conversion wrapper around `getOrderId()`
|
|
1797
|
-
* @return {!Uint8Array}
|
|
1798
|
-
*/
|
|
1799
|
-
proto.ExchangeResponse.prototype.getOrderId_asU8 = function() {
|
|
1800
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
1801
|
-
this.getOrderId()));
|
|
1802
|
-
};
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
/** @param {!(string|Uint8Array)} value */
|
|
1806
|
-
proto.ExchangeResponse.prototype.setOrderId = function(value) {
|
|
1807
|
-
jspb.Message.setField(this, 10, value);
|
|
1808
|
-
};
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
proto.ExchangeResponse.prototype.clearOrderId = function() {
|
|
1812
|
-
jspb.Message.setField(this, 10, undefined);
|
|
1813
|
-
};
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
/**
|
|
1817
|
-
* Returns whether this field is set.
|
|
1818
|
-
* @return {!boolean}
|
|
1819
|
-
*/
|
|
1820
|
-
proto.ExchangeResponse.prototype.hasOrderId = function() {
|
|
1821
|
-
return jspb.Message.getField(this, 10) != null;
|
|
1822
|
-
};
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
goog.object.extend(exports, proto);
|