@keepkey/device-protocol 7.9.0 → 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 +21 -15
- 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 +376 -399
- 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/messages-nano_pb.js
CHANGED
@@ -13,10 +13,14 @@
|
|
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
|
-
var types_pb = require('./types_pb.js');
|
19
|
-
goog.object.extend(proto, types_pb);
|
20
24
|
goog.exportSymbol('proto.NanoAddress', null, global);
|
21
25
|
goog.exportSymbol('proto.NanoGetAddress', null, global);
|
22
26
|
goog.exportSymbol('proto.NanoSignTx', null, global);
|
@@ -575,8 +579,7 @@ proto.NanoSignTx.toObject = function(includeInstance, msg) {
|
|
575
579
|
linkRecipient: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
|
576
580
|
linkRecipientNList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
577
581
|
representative: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
|
578
|
-
balance: msg.getBalance_asB64()
|
579
|
-
exchangeType: (f = msg.getExchangeType()) && types_pb.ExchangeType.toObject(includeInstance, f)
|
582
|
+
balance: msg.getBalance_asB64()
|
580
583
|
};
|
581
584
|
|
582
585
|
if (includeInstance) {
|
@@ -650,11 +653,6 @@ proto.NanoSignTx.deserializeBinaryFromReader = function(msg, reader) {
|
|
650
653
|
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
651
654
|
msg.setBalance(value);
|
652
655
|
break;
|
653
|
-
case 9:
|
654
|
-
var value = new types_pb.ExchangeType;
|
655
|
-
reader.readMessage(value,types_pb.ExchangeType.deserializeBinaryFromReader);
|
656
|
-
msg.setExchangeType(value);
|
657
|
-
break;
|
658
656
|
default:
|
659
657
|
reader.skipField();
|
660
658
|
break;
|
@@ -741,14 +739,6 @@ proto.NanoSignTx.serializeBinaryToWriter = function(message, writer) {
|
|
741
739
|
f
|
742
740
|
);
|
743
741
|
}
|
744
|
-
f = message.getExchangeType();
|
745
|
-
if (f != null) {
|
746
|
-
writer.writeMessage(
|
747
|
-
9,
|
748
|
-
f,
|
749
|
-
types_pb.ExchangeType.serializeBinaryToWriter
|
750
|
-
);
|
751
|
-
}
|
752
742
|
};
|
753
743
|
|
754
744
|
|
@@ -1455,43 +1445,6 @@ proto.NanoSignTx.prototype.hasBalance = function() {
|
|
1455
1445
|
};
|
1456
1446
|
|
1457
1447
|
|
1458
|
-
/**
|
1459
|
-
* optional ExchangeType exchange_type = 9;
|
1460
|
-
* @return {?proto.ExchangeType}
|
1461
|
-
*/
|
1462
|
-
proto.NanoSignTx.prototype.getExchangeType = function() {
|
1463
|
-
return /** @type{?proto.ExchangeType} */ (
|
1464
|
-
jspb.Message.getWrapperField(this, types_pb.ExchangeType, 9));
|
1465
|
-
};
|
1466
|
-
|
1467
|
-
|
1468
|
-
/**
|
1469
|
-
* @param {?proto.ExchangeType|undefined} value
|
1470
|
-
* @return {!proto.NanoSignTx} returns this
|
1471
|
-
*/
|
1472
|
-
proto.NanoSignTx.prototype.setExchangeType = function(value) {
|
1473
|
-
return jspb.Message.setWrapperField(this, 9, value);
|
1474
|
-
};
|
1475
|
-
|
1476
|
-
|
1477
|
-
/**
|
1478
|
-
* Clears the message field making it undefined.
|
1479
|
-
* @return {!proto.NanoSignTx} returns this
|
1480
|
-
*/
|
1481
|
-
proto.NanoSignTx.prototype.clearExchangeType = function() {
|
1482
|
-
return this.setExchangeType(undefined);
|
1483
|
-
};
|
1484
|
-
|
1485
|
-
|
1486
|
-
/**
|
1487
|
-
* Returns whether this field is set.
|
1488
|
-
* @return {boolean}
|
1489
|
-
*/
|
1490
|
-
proto.NanoSignTx.prototype.hasExchangeType = function() {
|
1491
|
-
return jspb.Message.getField(this, 9) != null;
|
1492
|
-
};
|
1493
|
-
|
1494
|
-
|
1495
1448
|
|
1496
1449
|
|
1497
1450
|
|
@@ -13,7 +13,13 @@
|
|
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 types_pb = require('./types_pb.js');
|
19
25
|
goog.object.extend(proto, types_pb);
|
@@ -5114,11 +5120,11 @@ proto.OsmosisMsgIBCTransfer.deserializeBinaryFromReader = function(msg, reader)
|
|
5114
5120
|
msg.setReceiver(value);
|
5115
5121
|
break;
|
5116
5122
|
case 7:
|
5117
|
-
var value = /** @type {
|
5123
|
+
var value = /** @type {string} */ (reader.readString());
|
5118
5124
|
msg.setRevisionNumber(value);
|
5119
5125
|
break;
|
5120
5126
|
case 8:
|
5121
|
-
var value = /** @type {
|
5127
|
+
var value = /** @type {string} */ (reader.readString());
|
5122
5128
|
msg.setRevisionHeight(value);
|
5123
5129
|
break;
|
5124
5130
|
default:
|
@@ -5192,16 +5198,16 @@ proto.OsmosisMsgIBCTransfer.serializeBinaryToWriter = function(message, writer)
|
|
5192
5198
|
f
|
5193
5199
|
);
|
5194
5200
|
}
|
5195
|
-
f = /** @type {
|
5201
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
5196
5202
|
if (f != null) {
|
5197
|
-
writer.
|
5203
|
+
writer.writeString(
|
5198
5204
|
7,
|
5199
5205
|
f
|
5200
5206
|
);
|
5201
5207
|
}
|
5202
|
-
f = /** @type {
|
5208
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
5203
5209
|
if (f != null) {
|
5204
|
-
writer.
|
5210
|
+
writer.writeString(
|
5205
5211
|
8,
|
5206
5212
|
f
|
5207
5213
|
);
|
@@ -5426,16 +5432,16 @@ proto.OsmosisMsgIBCTransfer.prototype.hasReceiver = function() {
|
|
5426
5432
|
|
5427
5433
|
|
5428
5434
|
/**
|
5429
|
-
* optional
|
5430
|
-
* @return {
|
5435
|
+
* optional string revision_number = 7;
|
5436
|
+
* @return {string}
|
5431
5437
|
*/
|
5432
5438
|
proto.OsmosisMsgIBCTransfer.prototype.getRevisionNumber = function() {
|
5433
|
-
return /** @type {
|
5439
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
5434
5440
|
};
|
5435
5441
|
|
5436
5442
|
|
5437
5443
|
/**
|
5438
|
-
* @param {
|
5444
|
+
* @param {string} value
|
5439
5445
|
* @return {!proto.OsmosisMsgIBCTransfer} returns this
|
5440
5446
|
*/
|
5441
5447
|
proto.OsmosisMsgIBCTransfer.prototype.setRevisionNumber = function(value) {
|
@@ -5462,16 +5468,16 @@ proto.OsmosisMsgIBCTransfer.prototype.hasRevisionNumber = function() {
|
|
5462
5468
|
|
5463
5469
|
|
5464
5470
|
/**
|
5465
|
-
* optional
|
5466
|
-
* @return {
|
5471
|
+
* optional string revision_height = 8;
|
5472
|
+
* @return {string}
|
5467
5473
|
*/
|
5468
5474
|
proto.OsmosisMsgIBCTransfer.prototype.getRevisionHeight = function() {
|
5469
|
-
return /** @type {
|
5475
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
5470
5476
|
};
|
5471
5477
|
|
5472
5478
|
|
5473
5479
|
/**
|
5474
|
-
* @param {
|
5480
|
+
* @param {string} value
|
5475
5481
|
* @return {!proto.OsmosisMsgIBCTransfer} returns this
|
5476
5482
|
*/
|
5477
5483
|
proto.OsmosisMsgIBCTransfer.prototype.setRevisionHeight = function(value) {
|
@@ -13,7 +13,13 @@
|
|
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
|
goog.exportSymbol('proto.RippleAddress', null, global);
|
19
25
|
goog.exportSymbol('proto.RippleGetAddress', null, global);
|
@@ -13,7 +13,13 @@
|
|
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 types_pb = require('./types_pb.js');
|
19
25
|
goog.object.extend(proto, types_pb);
|
@@ -2199,8 +2205,7 @@ proto.TendermintMsgSend.toObject = function(includeInstance, msg) {
|
|
2199
2205
|
fromAddress: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
|
2200
2206
|
toAddress: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
|
2201
2207
|
amount: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
|
2202
|
-
addressType: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f
|
2203
|
-
exchangeType: (f = msg.getExchangeType()) && types_pb.ExchangeType.toObject(includeInstance, f)
|
2208
|
+
addressType: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f
|
2204
2209
|
};
|
2205
2210
|
|
2206
2211
|
if (includeInstance) {
|
@@ -2253,11 +2258,6 @@ proto.TendermintMsgSend.deserializeBinaryFromReader = function(msg, reader) {
|
|
2253
2258
|
var value = /** @type {!proto.OutputAddressType} */ (reader.readEnum());
|
2254
2259
|
msg.setAddressType(value);
|
2255
2260
|
break;
|
2256
|
-
case 10:
|
2257
|
-
var value = new types_pb.ExchangeType;
|
2258
|
-
reader.readMessage(value,types_pb.ExchangeType.deserializeBinaryFromReader);
|
2259
|
-
msg.setExchangeType(value);
|
2260
|
-
break;
|
2261
2261
|
default:
|
2262
2262
|
reader.skipField();
|
2263
2263
|
break;
|
@@ -2315,14 +2315,6 @@ proto.TendermintMsgSend.serializeBinaryToWriter = function(message, writer) {
|
|
2315
2315
|
f
|
2316
2316
|
);
|
2317
2317
|
}
|
2318
|
-
f = message.getExchangeType();
|
2319
|
-
if (f != null) {
|
2320
|
-
writer.writeMessage(
|
2321
|
-
10,
|
2322
|
-
f,
|
2323
|
-
types_pb.ExchangeType.serializeBinaryToWriter
|
2324
|
-
);
|
2325
|
-
}
|
2326
2318
|
};
|
2327
2319
|
|
2328
2320
|
|
@@ -2470,43 +2462,6 @@ proto.TendermintMsgSend.prototype.hasAddressType = function() {
|
|
2470
2462
|
};
|
2471
2463
|
|
2472
2464
|
|
2473
|
-
/**
|
2474
|
-
* optional ExchangeType exchange_type = 10;
|
2475
|
-
* @return {?proto.ExchangeType}
|
2476
|
-
*/
|
2477
|
-
proto.TendermintMsgSend.prototype.getExchangeType = function() {
|
2478
|
-
return /** @type{?proto.ExchangeType} */ (
|
2479
|
-
jspb.Message.getWrapperField(this, types_pb.ExchangeType, 10));
|
2480
|
-
};
|
2481
|
-
|
2482
|
-
|
2483
|
-
/**
|
2484
|
-
* @param {?proto.ExchangeType|undefined} value
|
2485
|
-
* @return {!proto.TendermintMsgSend} returns this
|
2486
|
-
*/
|
2487
|
-
proto.TendermintMsgSend.prototype.setExchangeType = function(value) {
|
2488
|
-
return jspb.Message.setWrapperField(this, 10, value);
|
2489
|
-
};
|
2490
|
-
|
2491
|
-
|
2492
|
-
/**
|
2493
|
-
* Clears the message field making it undefined.
|
2494
|
-
* @return {!proto.TendermintMsgSend} returns this
|
2495
|
-
*/
|
2496
|
-
proto.TendermintMsgSend.prototype.clearExchangeType = function() {
|
2497
|
-
return this.setExchangeType(undefined);
|
2498
|
-
};
|
2499
|
-
|
2500
|
-
|
2501
|
-
/**
|
2502
|
-
* Returns whether this field is set.
|
2503
|
-
* @return {boolean}
|
2504
|
-
*/
|
2505
|
-
proto.TendermintMsgSend.prototype.hasExchangeType = function() {
|
2506
|
-
return jspb.Message.getField(this, 10) != null;
|
2507
|
-
};
|
2508
|
-
|
2509
|
-
|
2510
2465
|
|
2511
2466
|
|
2512
2467
|
|
@@ -13,7 +13,13 @@
|
|
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 types_pb = require('./types_pb.js');
|
19
25
|
goog.object.extend(proto, types_pb);
|
@@ -1475,8 +1481,7 @@ proto.ThorchainMsgSend.toObject = function(includeInstance, msg) {
|
|
1475
1481
|
fromAddress: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
|
1476
1482
|
toAddress: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
|
1477
1483
|
amount: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
|
1478
|
-
addressType: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f
|
1479
|
-
exchangeType: (f = msg.getExchangeType()) && types_pb.ExchangeType.toObject(includeInstance, f)
|
1484
|
+
addressType: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f
|
1480
1485
|
};
|
1481
1486
|
|
1482
1487
|
if (includeInstance) {
|
@@ -1529,11 +1534,6 @@ proto.ThorchainMsgSend.deserializeBinaryFromReader = function(msg, reader) {
|
|
1529
1534
|
var value = /** @type {!proto.OutputAddressType} */ (reader.readEnum());
|
1530
1535
|
msg.setAddressType(value);
|
1531
1536
|
break;
|
1532
|
-
case 10:
|
1533
|
-
var value = new types_pb.ExchangeType;
|
1534
|
-
reader.readMessage(value,types_pb.ExchangeType.deserializeBinaryFromReader);
|
1535
|
-
msg.setExchangeType(value);
|
1536
|
-
break;
|
1537
1537
|
default:
|
1538
1538
|
reader.skipField();
|
1539
1539
|
break;
|
@@ -1591,14 +1591,6 @@ proto.ThorchainMsgSend.serializeBinaryToWriter = function(message, writer) {
|
|
1591
1591
|
f
|
1592
1592
|
);
|
1593
1593
|
}
|
1594
|
-
f = message.getExchangeType();
|
1595
|
-
if (f != null) {
|
1596
|
-
writer.writeMessage(
|
1597
|
-
10,
|
1598
|
-
f,
|
1599
|
-
types_pb.ExchangeType.serializeBinaryToWriter
|
1600
|
-
);
|
1601
|
-
}
|
1602
1594
|
};
|
1603
1595
|
|
1604
1596
|
|
@@ -1746,43 +1738,6 @@ proto.ThorchainMsgSend.prototype.hasAddressType = function() {
|
|
1746
1738
|
};
|
1747
1739
|
|
1748
1740
|
|
1749
|
-
/**
|
1750
|
-
* optional ExchangeType exchange_type = 10;
|
1751
|
-
* @return {?proto.ExchangeType}
|
1752
|
-
*/
|
1753
|
-
proto.ThorchainMsgSend.prototype.getExchangeType = function() {
|
1754
|
-
return /** @type{?proto.ExchangeType} */ (
|
1755
|
-
jspb.Message.getWrapperField(this, types_pb.ExchangeType, 10));
|
1756
|
-
};
|
1757
|
-
|
1758
|
-
|
1759
|
-
/**
|
1760
|
-
* @param {?proto.ExchangeType|undefined} value
|
1761
|
-
* @return {!proto.ThorchainMsgSend} returns this
|
1762
|
-
*/
|
1763
|
-
proto.ThorchainMsgSend.prototype.setExchangeType = function(value) {
|
1764
|
-
return jspb.Message.setWrapperField(this, 10, value);
|
1765
|
-
};
|
1766
|
-
|
1767
|
-
|
1768
|
-
/**
|
1769
|
-
* Clears the message field making it undefined.
|
1770
|
-
* @return {!proto.ThorchainMsgSend} returns this
|
1771
|
-
*/
|
1772
|
-
proto.ThorchainMsgSend.prototype.clearExchangeType = function() {
|
1773
|
-
return this.setExchangeType(undefined);
|
1774
|
-
};
|
1775
|
-
|
1776
|
-
|
1777
|
-
/**
|
1778
|
-
* Returns whether this field is set.
|
1779
|
-
* @return {boolean}
|
1780
|
-
*/
|
1781
|
-
proto.ThorchainMsgSend.prototype.hasExchangeType = function() {
|
1782
|
-
return jspb.Message.getField(this, 10) != null;
|
1783
|
-
};
|
1784
|
-
|
1785
|
-
|
1786
1741
|
|
1787
1742
|
|
1788
1743
|
|