@keepkey/device-protocol 7.9.1 → 7.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,10 +13,14 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function(){ return this }).call(null);
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(){ return this }).call(null);
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);
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function(){ return this }).call(null);
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(){ return this }).call(null);
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(){ return this }).call(null);
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