@keepkey/device-protocol 7.9.1 → 7.10.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.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/types_pb.js
CHANGED
@@ -13,15 +13,18 @@
|
|
13
13
|
|
14
14
|
var jspb = require('google-protobuf');
|
15
15
|
var goog = jspb;
|
16
|
-
var global = (function(){
|
16
|
+
var global = (function() {
|
17
|
+
if (this) { return this; }
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
21
|
+
return Function('return this')();
|
22
|
+
}.call(null));
|
17
23
|
|
18
24
|
var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
|
19
25
|
goog.object.extend(proto, google_protobuf_descriptor_pb);
|
20
|
-
var exchange_pb = require('./exchange_pb.js');
|
21
|
-
goog.object.extend(proto, exchange_pb);
|
22
26
|
goog.exportSymbol('proto.ButtonRequestType', null, global);
|
23
27
|
goog.exportSymbol('proto.CoinType', null, global);
|
24
|
-
goog.exportSymbol('proto.ExchangeType', null, global);
|
25
28
|
goog.exportSymbol('proto.FailureType', null, global);
|
26
29
|
goog.exportSymbol('proto.HDNodePathType', null, global);
|
27
30
|
goog.exportSymbol('proto.HDNodeType', null, global);
|
@@ -317,27 +320,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
317
320
|
*/
|
318
321
|
proto.PolicyType.displayName = 'proto.PolicyType';
|
319
322
|
}
|
320
|
-
/**
|
321
|
-
* Generated by JsPbCodeGenerator.
|
322
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
323
|
-
* server response, or constructed directly in Javascript. The array is used
|
324
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
325
|
-
* If no data is provided, the constructed object will be empty, but still
|
326
|
-
* valid.
|
327
|
-
* @extends {jspb.Message}
|
328
|
-
* @constructor
|
329
|
-
*/
|
330
|
-
proto.ExchangeType = function(opt_data) {
|
331
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.ExchangeType.repeatedFields_, null);
|
332
|
-
};
|
333
|
-
goog.inherits(proto.ExchangeType, jspb.Message);
|
334
|
-
if (goog.DEBUG && !COMPILED) {
|
335
|
-
/**
|
336
|
-
* @public
|
337
|
-
* @override
|
338
|
-
*/
|
339
|
-
proto.ExchangeType.displayName = 'proto.ExchangeType';
|
340
|
-
}
|
341
323
|
|
342
324
|
|
343
325
|
|
@@ -3059,7 +3041,6 @@ proto.TxOutputType.toObject = function(includeInstance, msg) {
|
|
3059
3041
|
multisig: (f = msg.getMultisig()) && proto.MultisigRedeemScriptType.toObject(includeInstance, f),
|
3060
3042
|
opReturnData: msg.getOpReturnData_asB64(),
|
3061
3043
|
addressType: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
|
3062
|
-
exchangeType: (f = msg.getExchangeType()) && proto.ExchangeType.toObject(includeInstance, f),
|
3063
3044
|
decredScriptVersion: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f
|
3064
3045
|
};
|
3065
3046
|
|
@@ -3128,11 +3109,6 @@ proto.TxOutputType.deserializeBinaryFromReader = function(msg, reader) {
|
|
3128
3109
|
var value = /** @type {!proto.OutputAddressType} */ (reader.readEnum());
|
3129
3110
|
msg.setAddressType(value);
|
3130
3111
|
break;
|
3131
|
-
case 8:
|
3132
|
-
var value = new proto.ExchangeType;
|
3133
|
-
reader.readMessage(value,proto.ExchangeType.deserializeBinaryFromReader);
|
3134
|
-
msg.setExchangeType(value);
|
3135
|
-
break;
|
3136
3112
|
case 9:
|
3137
3113
|
var value = /** @type {number} */ (reader.readUint32());
|
3138
3114
|
msg.setDecredScriptVersion(value);
|
@@ -3216,14 +3192,6 @@ proto.TxOutputType.serializeBinaryToWriter = function(message, writer) {
|
|
3216
3192
|
f
|
3217
3193
|
);
|
3218
3194
|
}
|
3219
|
-
f = message.getExchangeType();
|
3220
|
-
if (f != null) {
|
3221
|
-
writer.writeMessage(
|
3222
|
-
8,
|
3223
|
-
f,
|
3224
|
-
proto.ExchangeType.serializeBinaryToWriter
|
3225
|
-
);
|
3226
|
-
}
|
3227
3195
|
f = /** @type {number} */ (jspb.Message.getField(message, 9));
|
3228
3196
|
if (f != null) {
|
3229
3197
|
writer.writeUint32(
|
@@ -3512,43 +3480,6 @@ proto.TxOutputType.prototype.hasAddressType = function() {
|
|
3512
3480
|
};
|
3513
3481
|
|
3514
3482
|
|
3515
|
-
/**
|
3516
|
-
* optional ExchangeType exchange_type = 8;
|
3517
|
-
* @return {?proto.ExchangeType}
|
3518
|
-
*/
|
3519
|
-
proto.TxOutputType.prototype.getExchangeType = function() {
|
3520
|
-
return /** @type{?proto.ExchangeType} */ (
|
3521
|
-
jspb.Message.getWrapperField(this, proto.ExchangeType, 8));
|
3522
|
-
};
|
3523
|
-
|
3524
|
-
|
3525
|
-
/**
|
3526
|
-
* @param {?proto.ExchangeType|undefined} value
|
3527
|
-
* @return {!proto.TxOutputType} returns this
|
3528
|
-
*/
|
3529
|
-
proto.TxOutputType.prototype.setExchangeType = function(value) {
|
3530
|
-
return jspb.Message.setWrapperField(this, 8, value);
|
3531
|
-
};
|
3532
|
-
|
3533
|
-
|
3534
|
-
/**
|
3535
|
-
* Clears the message field making it undefined.
|
3536
|
-
* @return {!proto.TxOutputType} returns this
|
3537
|
-
*/
|
3538
|
-
proto.TxOutputType.prototype.clearExchangeType = function() {
|
3539
|
-
return this.setExchangeType(undefined);
|
3540
|
-
};
|
3541
|
-
|
3542
|
-
|
3543
|
-
/**
|
3544
|
-
* Returns whether this field is set.
|
3545
|
-
* @return {boolean}
|
3546
|
-
*/
|
3547
|
-
proto.TxOutputType.prototype.hasExchangeType = function() {
|
3548
|
-
return jspb.Message.getField(this, 8) != null;
|
3549
|
-
};
|
3550
|
-
|
3551
|
-
|
3552
3483
|
/**
|
3553
3484
|
* optional uint32 decred_script_version = 9;
|
3554
3485
|
* @return {number}
|
@@ -5987,410 +5918,6 @@ proto.PolicyType.prototype.hasEnabled = function() {
|
|
5987
5918
|
};
|
5988
5919
|
|
5989
5920
|
|
5990
|
-
|
5991
|
-
/**
|
5992
|
-
* List of repeated fields within this message type.
|
5993
|
-
* @private {!Array<number>}
|
5994
|
-
* @const
|
5995
|
-
*/
|
5996
|
-
proto.ExchangeType.repeatedFields_ = [3,4];
|
5997
|
-
|
5998
|
-
|
5999
|
-
|
6000
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6001
|
-
/**
|
6002
|
-
* Creates an object representation of this proto.
|
6003
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6004
|
-
* Optional fields that are not set will be set to undefined.
|
6005
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6006
|
-
* For the list of reserved names please see:
|
6007
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6008
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6009
|
-
* JSPB instance for transitional soy proto support:
|
6010
|
-
* http://goto/soy-param-migration
|
6011
|
-
* @return {!Object}
|
6012
|
-
*/
|
6013
|
-
proto.ExchangeType.prototype.toObject = function(opt_includeInstance) {
|
6014
|
-
return proto.ExchangeType.toObject(opt_includeInstance, this);
|
6015
|
-
};
|
6016
|
-
|
6017
|
-
|
6018
|
-
/**
|
6019
|
-
* Static version of the {@see toObject} method.
|
6020
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6021
|
-
* the JSPB instance for transitional soy proto support:
|
6022
|
-
* http://goto/soy-param-migration
|
6023
|
-
* @param {!proto.ExchangeType} msg The msg instance to transform.
|
6024
|
-
* @return {!Object}
|
6025
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6026
|
-
*/
|
6027
|
-
proto.ExchangeType.toObject = function(includeInstance, msg) {
|
6028
|
-
var f, obj = {
|
6029
|
-
signedExchangeResponse: (f = msg.getSignedExchangeResponse()) && exchange_pb.SignedExchangeResponse.toObject(includeInstance, f),
|
6030
|
-
withdrawalCoinName: jspb.Message.getFieldWithDefault(msg, 2, "Bitcoin"),
|
6031
|
-
withdrawalAddressNList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
6032
|
-
returnAddressNList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
6033
|
-
withdrawalScriptType: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
6034
|
-
returnScriptType: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
6035
|
-
};
|
6036
|
-
|
6037
|
-
if (includeInstance) {
|
6038
|
-
obj.$jspbMessageInstance = msg;
|
6039
|
-
}
|
6040
|
-
return obj;
|
6041
|
-
};
|
6042
|
-
}
|
6043
|
-
|
6044
|
-
|
6045
|
-
/**
|
6046
|
-
* Deserializes binary data (in protobuf wire format).
|
6047
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6048
|
-
* @return {!proto.ExchangeType}
|
6049
|
-
*/
|
6050
|
-
proto.ExchangeType.deserializeBinary = function(bytes) {
|
6051
|
-
var reader = new jspb.BinaryReader(bytes);
|
6052
|
-
var msg = new proto.ExchangeType;
|
6053
|
-
return proto.ExchangeType.deserializeBinaryFromReader(msg, reader);
|
6054
|
-
};
|
6055
|
-
|
6056
|
-
|
6057
|
-
/**
|
6058
|
-
* Deserializes binary data (in protobuf wire format) from the
|
6059
|
-
* given reader into the given message object.
|
6060
|
-
* @param {!proto.ExchangeType} msg The message object to deserialize into.
|
6061
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6062
|
-
* @return {!proto.ExchangeType}
|
6063
|
-
*/
|
6064
|
-
proto.ExchangeType.deserializeBinaryFromReader = function(msg, reader) {
|
6065
|
-
while (reader.nextField()) {
|
6066
|
-
if (reader.isEndGroup()) {
|
6067
|
-
break;
|
6068
|
-
}
|
6069
|
-
var field = reader.getFieldNumber();
|
6070
|
-
switch (field) {
|
6071
|
-
case 1:
|
6072
|
-
var value = new exchange_pb.SignedExchangeResponse;
|
6073
|
-
reader.readMessage(value,exchange_pb.SignedExchangeResponse.deserializeBinaryFromReader);
|
6074
|
-
msg.setSignedExchangeResponse(value);
|
6075
|
-
break;
|
6076
|
-
case 2:
|
6077
|
-
var value = /** @type {string} */ (reader.readString());
|
6078
|
-
msg.setWithdrawalCoinName(value);
|
6079
|
-
break;
|
6080
|
-
case 3:
|
6081
|
-
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
|
6082
|
-
for (var i = 0; i < values.length; i++) {
|
6083
|
-
msg.addWithdrawalAddressN(values[i]);
|
6084
|
-
}
|
6085
|
-
break;
|
6086
|
-
case 4:
|
6087
|
-
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
|
6088
|
-
for (var i = 0; i < values.length; i++) {
|
6089
|
-
msg.addReturnAddressN(values[i]);
|
6090
|
-
}
|
6091
|
-
break;
|
6092
|
-
case 5:
|
6093
|
-
var value = /** @type {!proto.InputScriptType} */ (reader.readEnum());
|
6094
|
-
msg.setWithdrawalScriptType(value);
|
6095
|
-
break;
|
6096
|
-
case 6:
|
6097
|
-
var value = /** @type {!proto.InputScriptType} */ (reader.readEnum());
|
6098
|
-
msg.setReturnScriptType(value);
|
6099
|
-
break;
|
6100
|
-
default:
|
6101
|
-
reader.skipField();
|
6102
|
-
break;
|
6103
|
-
}
|
6104
|
-
}
|
6105
|
-
return msg;
|
6106
|
-
};
|
6107
|
-
|
6108
|
-
|
6109
|
-
/**
|
6110
|
-
* Serializes the message to binary data (in protobuf wire format).
|
6111
|
-
* @return {!Uint8Array}
|
6112
|
-
*/
|
6113
|
-
proto.ExchangeType.prototype.serializeBinary = function() {
|
6114
|
-
var writer = new jspb.BinaryWriter();
|
6115
|
-
proto.ExchangeType.serializeBinaryToWriter(this, writer);
|
6116
|
-
return writer.getResultBuffer();
|
6117
|
-
};
|
6118
|
-
|
6119
|
-
|
6120
|
-
/**
|
6121
|
-
* Serializes the given message to binary data (in protobuf wire
|
6122
|
-
* format), writing to the given BinaryWriter.
|
6123
|
-
* @param {!proto.ExchangeType} message
|
6124
|
-
* @param {!jspb.BinaryWriter} writer
|
6125
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6126
|
-
*/
|
6127
|
-
proto.ExchangeType.serializeBinaryToWriter = function(message, writer) {
|
6128
|
-
var f = undefined;
|
6129
|
-
f = message.getSignedExchangeResponse();
|
6130
|
-
if (f != null) {
|
6131
|
-
writer.writeMessage(
|
6132
|
-
1,
|
6133
|
-
f,
|
6134
|
-
exchange_pb.SignedExchangeResponse.serializeBinaryToWriter
|
6135
|
-
);
|
6136
|
-
}
|
6137
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
6138
|
-
if (f != null) {
|
6139
|
-
writer.writeString(
|
6140
|
-
2,
|
6141
|
-
f
|
6142
|
-
);
|
6143
|
-
}
|
6144
|
-
f = message.getWithdrawalAddressNList();
|
6145
|
-
if (f.length > 0) {
|
6146
|
-
writer.writeRepeatedUint32(
|
6147
|
-
3,
|
6148
|
-
f
|
6149
|
-
);
|
6150
|
-
}
|
6151
|
-
f = message.getReturnAddressNList();
|
6152
|
-
if (f.length > 0) {
|
6153
|
-
writer.writeRepeatedUint32(
|
6154
|
-
4,
|
6155
|
-
f
|
6156
|
-
);
|
6157
|
-
}
|
6158
|
-
f = /** @type {!proto.InputScriptType} */ (jspb.Message.getField(message, 5));
|
6159
|
-
if (f != null) {
|
6160
|
-
writer.writeEnum(
|
6161
|
-
5,
|
6162
|
-
f
|
6163
|
-
);
|
6164
|
-
}
|
6165
|
-
f = /** @type {!proto.InputScriptType} */ (jspb.Message.getField(message, 6));
|
6166
|
-
if (f != null) {
|
6167
|
-
writer.writeEnum(
|
6168
|
-
6,
|
6169
|
-
f
|
6170
|
-
);
|
6171
|
-
}
|
6172
|
-
};
|
6173
|
-
|
6174
|
-
|
6175
|
-
/**
|
6176
|
-
* optional SignedExchangeResponse signed_exchange_response = 1;
|
6177
|
-
* @return {?proto.SignedExchangeResponse}
|
6178
|
-
*/
|
6179
|
-
proto.ExchangeType.prototype.getSignedExchangeResponse = function() {
|
6180
|
-
return /** @type{?proto.SignedExchangeResponse} */ (
|
6181
|
-
jspb.Message.getWrapperField(this, exchange_pb.SignedExchangeResponse, 1));
|
6182
|
-
};
|
6183
|
-
|
6184
|
-
|
6185
|
-
/**
|
6186
|
-
* @param {?proto.SignedExchangeResponse|undefined} value
|
6187
|
-
* @return {!proto.ExchangeType} returns this
|
6188
|
-
*/
|
6189
|
-
proto.ExchangeType.prototype.setSignedExchangeResponse = function(value) {
|
6190
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
6191
|
-
};
|
6192
|
-
|
6193
|
-
|
6194
|
-
/**
|
6195
|
-
* Clears the message field making it undefined.
|
6196
|
-
* @return {!proto.ExchangeType} returns this
|
6197
|
-
*/
|
6198
|
-
proto.ExchangeType.prototype.clearSignedExchangeResponse = function() {
|
6199
|
-
return this.setSignedExchangeResponse(undefined);
|
6200
|
-
};
|
6201
|
-
|
6202
|
-
|
6203
|
-
/**
|
6204
|
-
* Returns whether this field is set.
|
6205
|
-
* @return {boolean}
|
6206
|
-
*/
|
6207
|
-
proto.ExchangeType.prototype.hasSignedExchangeResponse = function() {
|
6208
|
-
return jspb.Message.getField(this, 1) != null;
|
6209
|
-
};
|
6210
|
-
|
6211
|
-
|
6212
|
-
/**
|
6213
|
-
* optional string withdrawal_coin_name = 2;
|
6214
|
-
* @return {string}
|
6215
|
-
*/
|
6216
|
-
proto.ExchangeType.prototype.getWithdrawalCoinName = function() {
|
6217
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "Bitcoin"));
|
6218
|
-
};
|
6219
|
-
|
6220
|
-
|
6221
|
-
/**
|
6222
|
-
* @param {string} value
|
6223
|
-
* @return {!proto.ExchangeType} returns this
|
6224
|
-
*/
|
6225
|
-
proto.ExchangeType.prototype.setWithdrawalCoinName = function(value) {
|
6226
|
-
return jspb.Message.setField(this, 2, value);
|
6227
|
-
};
|
6228
|
-
|
6229
|
-
|
6230
|
-
/**
|
6231
|
-
* Clears the field making it undefined.
|
6232
|
-
* @return {!proto.ExchangeType} returns this
|
6233
|
-
*/
|
6234
|
-
proto.ExchangeType.prototype.clearWithdrawalCoinName = function() {
|
6235
|
-
return jspb.Message.setField(this, 2, undefined);
|
6236
|
-
};
|
6237
|
-
|
6238
|
-
|
6239
|
-
/**
|
6240
|
-
* Returns whether this field is set.
|
6241
|
-
* @return {boolean}
|
6242
|
-
*/
|
6243
|
-
proto.ExchangeType.prototype.hasWithdrawalCoinName = function() {
|
6244
|
-
return jspb.Message.getField(this, 2) != null;
|
6245
|
-
};
|
6246
|
-
|
6247
|
-
|
6248
|
-
/**
|
6249
|
-
* repeated uint32 withdrawal_address_n = 3;
|
6250
|
-
* @return {!Array<number>}
|
6251
|
-
*/
|
6252
|
-
proto.ExchangeType.prototype.getWithdrawalAddressNList = function() {
|
6253
|
-
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
|
6254
|
-
};
|
6255
|
-
|
6256
|
-
|
6257
|
-
/**
|
6258
|
-
* @param {!Array<number>} value
|
6259
|
-
* @return {!proto.ExchangeType} returns this
|
6260
|
-
*/
|
6261
|
-
proto.ExchangeType.prototype.setWithdrawalAddressNList = function(value) {
|
6262
|
-
return jspb.Message.setField(this, 3, value || []);
|
6263
|
-
};
|
6264
|
-
|
6265
|
-
|
6266
|
-
/**
|
6267
|
-
* @param {number} value
|
6268
|
-
* @param {number=} opt_index
|
6269
|
-
* @return {!proto.ExchangeType} returns this
|
6270
|
-
*/
|
6271
|
-
proto.ExchangeType.prototype.addWithdrawalAddressN = function(value, opt_index) {
|
6272
|
-
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
6273
|
-
};
|
6274
|
-
|
6275
|
-
|
6276
|
-
/**
|
6277
|
-
* Clears the list making it empty but non-null.
|
6278
|
-
* @return {!proto.ExchangeType} returns this
|
6279
|
-
*/
|
6280
|
-
proto.ExchangeType.prototype.clearWithdrawalAddressNList = function() {
|
6281
|
-
return this.setWithdrawalAddressNList([]);
|
6282
|
-
};
|
6283
|
-
|
6284
|
-
|
6285
|
-
/**
|
6286
|
-
* repeated uint32 return_address_n = 4;
|
6287
|
-
* @return {!Array<number>}
|
6288
|
-
*/
|
6289
|
-
proto.ExchangeType.prototype.getReturnAddressNList = function() {
|
6290
|
-
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
|
6291
|
-
};
|
6292
|
-
|
6293
|
-
|
6294
|
-
/**
|
6295
|
-
* @param {!Array<number>} value
|
6296
|
-
* @return {!proto.ExchangeType} returns this
|
6297
|
-
*/
|
6298
|
-
proto.ExchangeType.prototype.setReturnAddressNList = function(value) {
|
6299
|
-
return jspb.Message.setField(this, 4, value || []);
|
6300
|
-
};
|
6301
|
-
|
6302
|
-
|
6303
|
-
/**
|
6304
|
-
* @param {number} value
|
6305
|
-
* @param {number=} opt_index
|
6306
|
-
* @return {!proto.ExchangeType} returns this
|
6307
|
-
*/
|
6308
|
-
proto.ExchangeType.prototype.addReturnAddressN = function(value, opt_index) {
|
6309
|
-
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
6310
|
-
};
|
6311
|
-
|
6312
|
-
|
6313
|
-
/**
|
6314
|
-
* Clears the list making it empty but non-null.
|
6315
|
-
* @return {!proto.ExchangeType} returns this
|
6316
|
-
*/
|
6317
|
-
proto.ExchangeType.prototype.clearReturnAddressNList = function() {
|
6318
|
-
return this.setReturnAddressNList([]);
|
6319
|
-
};
|
6320
|
-
|
6321
|
-
|
6322
|
-
/**
|
6323
|
-
* optional InputScriptType withdrawal_script_type = 5;
|
6324
|
-
* @return {!proto.InputScriptType}
|
6325
|
-
*/
|
6326
|
-
proto.ExchangeType.prototype.getWithdrawalScriptType = function() {
|
6327
|
-
return /** @type {!proto.InputScriptType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
6328
|
-
};
|
6329
|
-
|
6330
|
-
|
6331
|
-
/**
|
6332
|
-
* @param {!proto.InputScriptType} value
|
6333
|
-
* @return {!proto.ExchangeType} returns this
|
6334
|
-
*/
|
6335
|
-
proto.ExchangeType.prototype.setWithdrawalScriptType = function(value) {
|
6336
|
-
return jspb.Message.setField(this, 5, value);
|
6337
|
-
};
|
6338
|
-
|
6339
|
-
|
6340
|
-
/**
|
6341
|
-
* Clears the field making it undefined.
|
6342
|
-
* @return {!proto.ExchangeType} returns this
|
6343
|
-
*/
|
6344
|
-
proto.ExchangeType.prototype.clearWithdrawalScriptType = function() {
|
6345
|
-
return jspb.Message.setField(this, 5, undefined);
|
6346
|
-
};
|
6347
|
-
|
6348
|
-
|
6349
|
-
/**
|
6350
|
-
* Returns whether this field is set.
|
6351
|
-
* @return {boolean}
|
6352
|
-
*/
|
6353
|
-
proto.ExchangeType.prototype.hasWithdrawalScriptType = function() {
|
6354
|
-
return jspb.Message.getField(this, 5) != null;
|
6355
|
-
};
|
6356
|
-
|
6357
|
-
|
6358
|
-
/**
|
6359
|
-
* optional InputScriptType return_script_type = 6;
|
6360
|
-
* @return {!proto.InputScriptType}
|
6361
|
-
*/
|
6362
|
-
proto.ExchangeType.prototype.getReturnScriptType = function() {
|
6363
|
-
return /** @type {!proto.InputScriptType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
6364
|
-
};
|
6365
|
-
|
6366
|
-
|
6367
|
-
/**
|
6368
|
-
* @param {!proto.InputScriptType} value
|
6369
|
-
* @return {!proto.ExchangeType} returns this
|
6370
|
-
*/
|
6371
|
-
proto.ExchangeType.prototype.setReturnScriptType = function(value) {
|
6372
|
-
return jspb.Message.setField(this, 6, value);
|
6373
|
-
};
|
6374
|
-
|
6375
|
-
|
6376
|
-
/**
|
6377
|
-
* Clears the field making it undefined.
|
6378
|
-
* @return {!proto.ExchangeType} returns this
|
6379
|
-
*/
|
6380
|
-
proto.ExchangeType.prototype.clearReturnScriptType = function() {
|
6381
|
-
return jspb.Message.setField(this, 6, undefined);
|
6382
|
-
};
|
6383
|
-
|
6384
|
-
|
6385
|
-
/**
|
6386
|
-
* Returns whether this field is set.
|
6387
|
-
* @return {boolean}
|
6388
|
-
*/
|
6389
|
-
proto.ExchangeType.prototype.hasReturnScriptType = function() {
|
6390
|
-
return jspb.Message.getField(this, 6) != null;
|
6391
|
-
};
|
6392
|
-
|
6393
|
-
|
6394
5921
|
/**
|
6395
5922
|
* @enum {number}
|
6396
5923
|
*/
|
@@ -6450,8 +5977,7 @@ proto.RequestType = {
|
|
6450
5977
|
proto.OutputAddressType = {
|
6451
5978
|
SPEND: 0,
|
6452
5979
|
TRANSFER: 1,
|
6453
|
-
CHANGE: 2
|
6454
|
-
EXCHANGE: 3
|
5980
|
+
CHANGE: 2
|
6455
5981
|
};
|
6456
5982
|
|
6457
5983
|
/**
|
@@ -6487,7 +6013,6 @@ proto.ButtonRequestType = {
|
|
6487
6013
|
BUTTONREQUEST_GETENTROPY: 27,
|
6488
6014
|
BUTTONREQUEST_SIGNMESSAGE: 28,
|
6489
6015
|
BUTTONREQUEST_APPLYPOLICIES: 29,
|
6490
|
-
BUTTONREQUEST_SIGNEXCHANGE: 30,
|
6491
6016
|
BUTTONREQUEST_AUTOLOCKDELAYMS: 31,
|
6492
6017
|
BUTTONREQUEST_U2FCOUNTER: 32,
|
6493
6018
|
BUTTONREQUEST_CONFIRMEOSACTION: 33,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@keepkey/device-protocol",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.10.0",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -8,8 +8,8 @@
|
|
8
8
|
"scripts": {
|
9
9
|
"clean": "rm -rf ./lib/*.js ./lib/*.ts",
|
10
10
|
"build": "npm run build:js && npm run build:json && npm run build:postprocess",
|
11
|
-
"build:js": "protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --js_out=import_style=commonjs,binary:./lib
|
12
|
-
"build:json": "pbjs --keep-case -t json ./types.proto ./messages.proto ./messages-eos.proto ./messages-nano.proto ./messages-cosmos.proto ./messages-binance.proto ./messages-ripple.proto ./messages-tendermint.proto ./messages-thorchain.proto ./messages-osmosis.proto
|
11
|
+
"build:js": "protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --js_out=import_style=commonjs,binary:./lib types.proto messages.proto messages-ethereum.proto messages-eos.proto messages-nano.proto messages-cosmos.proto messages-binance.proto messages-ripple.proto messages-tendermint.proto messages-thorchain.proto messages-osmosis.proto",
|
12
|
+
"build:json": "pbjs --keep-case -t json ./types.proto ./messages.proto ./messages-ethereum.proto ./messages-eos.proto ./messages-nano.proto ./messages-cosmos.proto ./messages-binance.proto ./messages-ripple.proto ./messages-tendermint.proto ./messages-thorchain.proto ./messages-osmosis.proto > ./lib/proto.json",
|
13
13
|
"build:postprocess": "find ./lib -name \"*.js\" -exec sed -i '' -e \"s/var global = Function(\\'return this\\')();/var global = (function(){ return this }).call(null);/g\" {} \\;",
|
14
14
|
"prepublishOnly": "npm run build",
|
15
15
|
"test": "echo \"Error: no test specified\" && exit 1"
|