@airgap/groestlcoin 0.13.7-beta.12 → 0.13.7-beta.13

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.
@@ -29947,7 +29947,7 @@ module.exports = function whichTypedArray(value) {
29947
29947
  },{"available-typed-arrays":20,"call-bind/callBound":69,"es-abstract/helpers/getOwnPropertyDescriptor":107,"for-each":110,"has-tostringtag/shams":116,"is-typed-array":153}],214:[function(require,module,exports){
29948
29948
  "use strict";
29949
29949
  Object.defineProperty(exports, "__esModule", { value: true });
29950
- exports.BitcoinSegwitAddress = exports.BitcoinSegwitProtocol = exports.BitcoinAddress = exports.BitcoinProtocolOptions = exports.BitcoinProtocolConfig = exports.BitcoinProtocolNetwork = exports.BlockcypherBlockExplorer = exports.BitcoinProtocolNetworkExtras = exports.BitcoinCryptoClient = exports.BitcoinTestnetProtocol = exports.BitcoinProtocol = void 0;
29950
+ exports.createProtocolByIdentifier = exports.BitcoinSegwitAddress = exports.BitcoinSegwitProtocol = exports.BitcoinAddress = exports.BitcoinProtocolOptions = exports.BitcoinProtocolConfig = exports.BitcoinProtocolNetwork = exports.BlockcypherBlockExplorer = exports.BitcoinProtocolNetworkExtras = exports.BitcoinCryptoClient = exports.BitcoinTestnetProtocol = exports.BitcoinProtocol = void 0;
29951
29951
  var BitcoinAddress_1 = require("./protocol/BitcoinAddress");
29952
29952
  Object.defineProperty(exports, "BitcoinAddress", { enumerable: true, get: function () { return BitcoinAddress_1.BitcoinAddress; } });
29953
29953
  var BitcoinCryptoClient_1 = require("./protocol/BitcoinCryptoClient");
@@ -29966,8 +29966,10 @@ var BitcoinSegwitProtocol_1 = require("./protocol/BitcoinSegwitProtocol");
29966
29966
  Object.defineProperty(exports, "BitcoinSegwitProtocol", { enumerable: true, get: function () { return BitcoinSegwitProtocol_1.BitcoinSegwitProtocol; } });
29967
29967
  var BitcoinTestnetProtocol_1 = require("./protocol/BitcoinTestnetProtocol");
29968
29968
  Object.defineProperty(exports, "BitcoinTestnetProtocol", { enumerable: true, get: function () { return BitcoinTestnetProtocol_1.BitcoinTestnetProtocol; } });
29969
+ var create_protocol_1 = require("./utils/create-protocol");
29970
+ Object.defineProperty(exports, "createProtocolByIdentifier", { enumerable: true, get: function () { return create_protocol_1.createProtocolByIdentifier; } });
29969
29971
 
29970
- },{"./protocol/BitcoinAddress":215,"./protocol/BitcoinCryptoClient":216,"./protocol/BitcoinProtocol":217,"./protocol/BitcoinProtocolOptions":218,"./protocol/BitcoinSegwitAddress":219,"./protocol/BitcoinSegwitProtocol":220,"./protocol/BitcoinTestnetProtocol":221}],215:[function(require,module,exports){
29972
+ },{"./protocol/BitcoinAddress":215,"./protocol/BitcoinCryptoClient":216,"./protocol/BitcoinProtocol":217,"./protocol/BitcoinProtocolOptions":218,"./protocol/BitcoinSegwitAddress":219,"./protocol/BitcoinSegwitProtocol":220,"./protocol/BitcoinTestnetProtocol":221,"./utils/create-protocol":222}],215:[function(require,module,exports){
29971
29973
  "use strict";
29972
29974
  Object.defineProperty(exports, "__esModule", { value: true });
29973
29975
  exports.BitcoinAddress = void 0;
@@ -30083,7 +30085,7 @@ var BitcoinCryptoClient = /** @class */ (function (_super) {
30083
30085
  exports.BitcoinCryptoClient = BitcoinCryptoClient;
30084
30086
 
30085
30087
  }).call(this)}).call(this,require("buffer").Buffer)
30086
- },{"@airgap/coinlib-core/protocols/Secp256k1CryptoClient":581,"buffer":67}],217:[function(require,module,exports){
30088
+ },{"@airgap/coinlib-core/protocols/Secp256k1CryptoClient":589,"buffer":67}],217:[function(require,module,exports){
30087
30089
  (function (Buffer){(function (){
30088
30090
  "use strict";
30089
30091
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -31125,7 +31127,7 @@ var BitcoinProtocol = /** @class */ (function () {
31125
31127
  exports.BitcoinProtocol = BitcoinProtocol;
31126
31128
 
31127
31129
  }).call(this)}).call(this,require("buffer").Buffer)
31128
- },{"./BitcoinAddress":215,"./BitcoinCryptoClient":216,"./BitcoinProtocolOptions":218,"@airgap/coinlib-core/dependencies/src/axios-0.19.0/index":387,"@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber":419,"@airgap/coinlib-core/dependencies/src/bip39-2.5.0/index":420,"@airgap/coinlib-core/dependencies/src/bitcoinjs-message-2.1.1/index":432,"@airgap/coinlib-core/errors":579,"@airgap/coinlib-core/errors/coinlib-error":578,"@airgap/coinlib-core/utils/ProtocolSymbols":584,"buffer":67}],218:[function(require,module,exports){
31130
+ },{"./BitcoinAddress":215,"./BitcoinCryptoClient":216,"./BitcoinProtocolOptions":218,"@airgap/coinlib-core/dependencies/src/axios-0.19.0/index":393,"@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber":425,"@airgap/coinlib-core/dependencies/src/bip39-2.5.0/index":426,"@airgap/coinlib-core/dependencies/src/bitcoinjs-message-2.1.1/index":438,"@airgap/coinlib-core/errors":585,"@airgap/coinlib-core/errors/coinlib-error":584,"@airgap/coinlib-core/utils/ProtocolSymbols":594,"buffer":67}],218:[function(require,module,exports){
31129
31131
  "use strict";
31130
31132
  var __extends = (this && this.__extends) || (function () {
31131
31133
  var extendStatics = function (d, b) {
@@ -31268,7 +31270,7 @@ var BitcoinProtocolOptions = /** @class */ (function () {
31268
31270
  }());
31269
31271
  exports.BitcoinProtocolOptions = BitcoinProtocolOptions;
31270
31272
 
31271
- },{"@airgap/coinlib-core/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index":444,"@airgap/coinlib-core/utils/ProtocolNetwork":583}],219:[function(require,module,exports){
31273
+ },{"@airgap/coinlib-core/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index":450,"@airgap/coinlib-core/utils/ProtocolNetwork":593}],219:[function(require,module,exports){
31272
31274
  "use strict";
31273
31275
  var __extends = (this && this.__extends) || (function () {
31274
31276
  var extendStatics = function (d, b) {
@@ -31841,7 +31843,7 @@ var BitcoinSegwitProtocol = /** @class */ (function (_super) {
31841
31843
  exports.BitcoinSegwitProtocol = BitcoinSegwitProtocol;
31842
31844
 
31843
31845
  }).call(this)}).call(this,require("buffer").Buffer)
31844
- },{"./BitcoinProtocol":217,"./BitcoinProtocolOptions":218,"./BitcoinSegwitAddress":219,"@airgap/coinlib-core/dependencies/src/axios-0.19.0/index":387,"@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber":419,"@airgap/coinlib-core/dependencies/src/bip39-2.5.0/index":420,"@airgap/coinlib-core/dependencies/src/bs58check-2.1.2":480,"@airgap/coinlib-core/utils/ProtocolSymbols":584,"bitcoinjs-lib":266,"buffer":67}],221:[function(require,module,exports){
31846
+ },{"./BitcoinProtocol":217,"./BitcoinProtocolOptions":218,"./BitcoinSegwitAddress":219,"@airgap/coinlib-core/dependencies/src/axios-0.19.0/index":393,"@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber":425,"@airgap/coinlib-core/dependencies/src/bip39-2.5.0/index":426,"@airgap/coinlib-core/dependencies/src/bs58check-2.1.2":486,"@airgap/coinlib-core/utils/ProtocolSymbols":594,"bitcoinjs-lib":267,"buffer":67}],221:[function(require,module,exports){
31845
31847
  "use strict";
31846
31848
  var __extends = (this && this.__extends) || (function () {
31847
31849
  var extendStatics = function (d, b) {
@@ -31894,7 +31896,27 @@ var BitcoinTestnetProtocol = /** @class */ (function (_super) {
31894
31896
  }(BitcoinProtocol_1.BitcoinProtocol));
31895
31897
  exports.BitcoinTestnetProtocol = BitcoinTestnetProtocol;
31896
31898
 
31897
- },{"./BitcoinProtocol":217,"./BitcoinProtocolOptions":218,"@airgap/coinlib-core/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index":444,"@airgap/coinlib-core/utils/ProtocolNetwork":583}],222:[function(require,module,exports){
31899
+ },{"./BitcoinProtocol":217,"./BitcoinProtocolOptions":218,"@airgap/coinlib-core/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index":450,"@airgap/coinlib-core/utils/ProtocolNetwork":593}],222:[function(require,module,exports){
31900
+ "use strict";
31901
+ Object.defineProperty(exports, "__esModule", { value: true });
31902
+ exports.createProtocolByIdentifier = void 0;
31903
+ var coinlib_core_1 = require("@airgap/coinlib-core");
31904
+ var BitcoinProtocol_1 = require("../protocol/BitcoinProtocol");
31905
+ var BitcoinSegwitProtocol_1 = require("../protocol/BitcoinSegwitProtocol");
31906
+ // tslint:disable-next-line: cyclomatic-complexity
31907
+ function createProtocolByIdentifier(identifier, options) {
31908
+ switch (identifier) {
31909
+ case coinlib_core_1.MainProtocolSymbols.BTC:
31910
+ return new BitcoinProtocol_1.BitcoinProtocol(options);
31911
+ case coinlib_core_1.MainProtocolSymbols.BTC_SEGWIT:
31912
+ return new BitcoinSegwitProtocol_1.BitcoinSegwitProtocol(options);
31913
+ default:
31914
+ throw new Error("Unkown protocol identifier " + identifier + ".");
31915
+ }
31916
+ }
31917
+ exports.createProtocolByIdentifier = createProtocolByIdentifier;
31918
+
31919
+ },{"../protocol/BitcoinProtocol":217,"../protocol/BitcoinSegwitProtocol":220,"@airgap/coinlib-core":586}],223:[function(require,module,exports){
31898
31920
  'use strict'
31899
31921
  // base-x encoding / decoding
31900
31922
  // Copyright (c) 2018 base-x contributors
@@ -32015,7 +32037,7 @@ function base (ALPHABET) {
32015
32037
  }
32016
32038
  module.exports = base
32017
32039
 
32018
- },{"safe-buffer":368}],223:[function(require,module,exports){
32040
+ },{"safe-buffer":369}],224:[function(require,module,exports){
32019
32041
  'use strict'
32020
32042
  var ALPHABET = 'qpzry9x8gf2tvdw0s3jn54khce6mua7l'
32021
32043
 
@@ -32199,7 +32221,7 @@ module.exports = {
32199
32221
  fromWords: fromWords
32200
32222
  }
32201
32223
 
32202
- },{}],224:[function(require,module,exports){
32224
+ },{}],225:[function(require,module,exports){
32203
32225
  'use strict';
32204
32226
  Object.defineProperty(exports, '__esModule', { value: true });
32205
32227
  const parser_1 = require('../parser');
@@ -32284,7 +32306,7 @@ function getKeySet(keyVals) {
32284
32306
  return set;
32285
32307
  }
32286
32308
 
32287
- },{"../parser":249}],225:[function(require,module,exports){
32309
+ },{"../parser":250}],226:[function(require,module,exports){
32288
32310
  (function (Buffer){(function (){
32289
32311
  'use strict';
32290
32312
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -32371,7 +32393,7 @@ function canAddToArray(array, item, dupeSet) {
32371
32393
  exports.canAddToArray = canAddToArray;
32372
32394
 
32373
32395
  }).call(this)}).call(this,require("buffer").Buffer)
32374
- },{"../../typeFields":252,"buffer":67}],226:[function(require,module,exports){
32396
+ },{"../../typeFields":253,"buffer":67}],227:[function(require,module,exports){
32375
32397
  (function (Buffer){(function (){
32376
32398
  'use strict';
32377
32399
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -32385,7 +32407,7 @@ function encode(data) {
32385
32407
  exports.encode = encode;
32386
32408
 
32387
32409
  }).call(this)}).call(this,require("buffer").Buffer)
32388
- },{"../../typeFields":252,"buffer":67}],227:[function(require,module,exports){
32410
+ },{"../../typeFields":253,"buffer":67}],228:[function(require,module,exports){
32389
32411
  'use strict';
32390
32412
  Object.defineProperty(exports, '__esModule', { value: true });
32391
32413
  const typeFields_1 = require('../typeFields');
@@ -32472,7 +32494,7 @@ const outputs = {
32472
32494
  };
32473
32495
  exports.outputs = outputs;
32474
32496
 
32475
- },{"../typeFields":252,"./global/globalXpub":225,"./global/unsignedTx":226,"./input/finalScriptSig":228,"./input/finalScriptWitness":229,"./input/nonWitnessUtxo":230,"./input/partialSig":231,"./input/porCommitment":232,"./input/sighashType":233,"./input/tapKeySig":234,"./input/tapLeafScript":235,"./input/tapMerkleRoot":236,"./input/tapScriptSig":237,"./input/witnessUtxo":238,"./output/tapTree":239,"./shared/bip32Derivation":240,"./shared/checkPubkey":241,"./shared/redeemScript":242,"./shared/tapBip32Derivation":243,"./shared/tapInternalKey":244,"./shared/witnessScript":245}],228:[function(require,module,exports){
32497
+ },{"../typeFields":253,"./global/globalXpub":226,"./global/unsignedTx":227,"./input/finalScriptSig":229,"./input/finalScriptWitness":230,"./input/nonWitnessUtxo":231,"./input/partialSig":232,"./input/porCommitment":233,"./input/sighashType":234,"./input/tapKeySig":235,"./input/tapLeafScript":236,"./input/tapMerkleRoot":237,"./input/tapScriptSig":238,"./input/witnessUtxo":239,"./output/tapTree":240,"./shared/bip32Derivation":241,"./shared/checkPubkey":242,"./shared/redeemScript":243,"./shared/tapBip32Derivation":244,"./shared/tapInternalKey":245,"./shared/witnessScript":246}],229:[function(require,module,exports){
32476
32498
  (function (Buffer){(function (){
32477
32499
  'use strict';
32478
32500
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -32506,7 +32528,7 @@ function canAdd(currentData, newData) {
32506
32528
  exports.canAdd = canAdd;
32507
32529
 
32508
32530
  }).call(this)}).call(this,require("buffer").Buffer)
32509
- },{"../../typeFields":252,"buffer":67}],229:[function(require,module,exports){
32531
+ },{"../../typeFields":253,"buffer":67}],230:[function(require,module,exports){
32510
32532
  (function (Buffer){(function (){
32511
32533
  'use strict';
32512
32534
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -32542,7 +32564,7 @@ function canAdd(currentData, newData) {
32542
32564
  exports.canAdd = canAdd;
32543
32565
 
32544
32566
  }).call(this)}).call(this,require("buffer").Buffer)
32545
- },{"../../typeFields":252,"buffer":67}],230:[function(require,module,exports){
32567
+ },{"../../typeFields":253,"buffer":67}],231:[function(require,module,exports){
32546
32568
  (function (Buffer){(function (){
32547
32569
  'use strict';
32548
32570
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -32575,7 +32597,7 @@ function canAdd(currentData, newData) {
32575
32597
  exports.canAdd = canAdd;
32576
32598
 
32577
32599
  }).call(this)}).call(this,require("buffer").Buffer)
32578
- },{"../../typeFields":252,"buffer":67}],231:[function(require,module,exports){
32600
+ },{"../../typeFields":253,"buffer":67}],232:[function(require,module,exports){
32579
32601
  (function (Buffer){(function (){
32580
32602
  'use strict';
32581
32603
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -32644,7 +32666,7 @@ function canAddToArray(array, item, dupeSet) {
32644
32666
  exports.canAddToArray = canAddToArray;
32645
32667
 
32646
32668
  }).call(this)}).call(this,require("buffer").Buffer)
32647
- },{"../../typeFields":252,"buffer":67}],232:[function(require,module,exports){
32669
+ },{"../../typeFields":253,"buffer":67}],233:[function(require,module,exports){
32648
32670
  (function (Buffer){(function (){
32649
32671
  'use strict';
32650
32672
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -32678,7 +32700,7 @@ function canAdd(currentData, newData) {
32678
32700
  exports.canAdd = canAdd;
32679
32701
 
32680
32702
  }).call(this)}).call(this,require("buffer").Buffer)
32681
- },{"../../typeFields":252,"buffer":67}],233:[function(require,module,exports){
32703
+ },{"../../typeFields":253,"buffer":67}],234:[function(require,module,exports){
32682
32704
  (function (Buffer){(function (){
32683
32705
  'use strict';
32684
32706
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -32714,7 +32736,7 @@ function canAdd(currentData, newData) {
32714
32736
  exports.canAdd = canAdd;
32715
32737
 
32716
32738
  }).call(this)}).call(this,require("buffer").Buffer)
32717
- },{"../../typeFields":252,"buffer":67}],234:[function(require,module,exports){
32739
+ },{"../../typeFields":253,"buffer":67}],235:[function(require,module,exports){
32718
32740
  (function (Buffer){(function (){
32719
32741
  'use strict';
32720
32742
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -32753,7 +32775,7 @@ function canAdd(currentData, newData) {
32753
32775
  exports.canAdd = canAdd;
32754
32776
 
32755
32777
  }).call(this)}).call(this,require("buffer").Buffer)
32756
- },{"../../typeFields":252,"buffer":67}],235:[function(require,module,exports){
32778
+ },{"../../typeFields":253,"buffer":67}],236:[function(require,module,exports){
32757
32779
  (function (Buffer){(function (){
32758
32780
  'use strict';
32759
32781
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -32814,7 +32836,7 @@ function canAddToArray(array, item, dupeSet) {
32814
32836
  exports.canAddToArray = canAddToArray;
32815
32837
 
32816
32838
  }).call(this)}).call(this,require("buffer").Buffer)
32817
- },{"../../typeFields":252,"buffer":67}],236:[function(require,module,exports){
32839
+ },{"../../typeFields":253,"buffer":67}],237:[function(require,module,exports){
32818
32840
  (function (Buffer){(function (){
32819
32841
  'use strict';
32820
32842
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -32851,7 +32873,7 @@ function canAdd(currentData, newData) {
32851
32873
  exports.canAdd = canAdd;
32852
32874
 
32853
32875
  }).call(this)}).call(this,require("buffer").Buffer)
32854
- },{"../../typeFields":252,"buffer":67}],237:[function(require,module,exports){
32876
+ },{"../../typeFields":253,"buffer":67}],238:[function(require,module,exports){
32855
32877
  (function (Buffer){(function (){
32856
32878
  'use strict';
32857
32879
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -32918,7 +32940,7 @@ function canAddToArray(array, item, dupeSet) {
32918
32940
  exports.canAddToArray = canAddToArray;
32919
32941
 
32920
32942
  }).call(this)}).call(this,require("buffer").Buffer)
32921
- },{"../../typeFields":252,"buffer":67}],238:[function(require,module,exports){
32943
+ },{"../../typeFields":253,"buffer":67}],239:[function(require,module,exports){
32922
32944
  (function (Buffer){(function (){
32923
32945
  'use strict';
32924
32946
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -32970,7 +32992,7 @@ function canAdd(currentData, newData) {
32970
32992
  exports.canAdd = canAdd;
32971
32993
 
32972
32994
  }).call(this)}).call(this,require("buffer").Buffer)
32973
- },{"../../typeFields":252,"../tools":246,"../varint":247,"buffer":67}],239:[function(require,module,exports){
32995
+ },{"../../typeFields":253,"../tools":247,"../varint":248,"buffer":67}],240:[function(require,module,exports){
32974
32996
  (function (Buffer){(function (){
32975
32997
  'use strict';
32976
32998
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -33039,7 +33061,7 @@ function canAdd(currentData, newData) {
33039
33061
  exports.canAdd = canAdd;
33040
33062
 
33041
33063
  }).call(this)}).call(this,require("buffer").Buffer)
33042
- },{"../../typeFields":252,"../varint":247,"buffer":67}],240:[function(require,module,exports){
33064
+ },{"../../typeFields":253,"../varint":248,"buffer":67}],241:[function(require,module,exports){
33043
33065
  (function (Buffer){(function (){
33044
33066
  'use strict';
33045
33067
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -33127,7 +33149,7 @@ function makeConverter(TYPE_BYTE, isValidPubkey = isValidDERKey) {
33127
33149
  exports.makeConverter = makeConverter;
33128
33150
 
33129
33151
  }).call(this)}).call(this,require("buffer").Buffer)
33130
- },{"buffer":67}],241:[function(require,module,exports){
33152
+ },{"buffer":67}],242:[function(require,module,exports){
33131
33153
  'use strict';
33132
33154
  Object.defineProperty(exports, '__esModule', { value: true });
33133
33155
  function makeChecker(pubkeyTypes) {
@@ -33150,7 +33172,7 @@ function makeChecker(pubkeyTypes) {
33150
33172
  }
33151
33173
  exports.makeChecker = makeChecker;
33152
33174
 
33153
- },{}],242:[function(require,module,exports){
33175
+ },{}],243:[function(require,module,exports){
33154
33176
  (function (Buffer){(function (){
33155
33177
  'use strict';
33156
33178
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -33189,7 +33211,7 @@ function makeConverter(TYPE_BYTE) {
33189
33211
  exports.makeConverter = makeConverter;
33190
33212
 
33191
33213
  }).call(this)}).call(this,require("buffer").Buffer)
33192
- },{"buffer":67}],243:[function(require,module,exports){
33214
+ },{"buffer":67}],244:[function(require,module,exports){
33193
33215
  (function (Buffer){(function (){
33194
33216
  'use strict';
33195
33217
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -33246,7 +33268,7 @@ function makeConverter(TYPE_BYTE) {
33246
33268
  exports.makeConverter = makeConverter;
33247
33269
 
33248
33270
  }).call(this)}).call(this,require("buffer").Buffer)
33249
- },{"../varint":247,"./bip32Derivation":240,"buffer":67}],244:[function(require,module,exports){
33271
+ },{"../varint":248,"./bip32Derivation":241,"buffer":67}],245:[function(require,module,exports){
33250
33272
  (function (Buffer){(function (){
33251
33273
  'use strict';
33252
33274
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -33289,7 +33311,7 @@ function makeConverter(TYPE_BYTE) {
33289
33311
  exports.makeConverter = makeConverter;
33290
33312
 
33291
33313
  }).call(this)}).call(this,require("buffer").Buffer)
33292
- },{"buffer":67}],245:[function(require,module,exports){
33314
+ },{"buffer":67}],246:[function(require,module,exports){
33293
33315
  (function (Buffer){(function (){
33294
33316
  'use strict';
33295
33317
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -33330,7 +33352,7 @@ function makeConverter(TYPE_BYTE) {
33330
33352
  exports.makeConverter = makeConverter;
33331
33353
 
33332
33354
  }).call(this)}).call(this,require("buffer").Buffer)
33333
- },{"buffer":67}],246:[function(require,module,exports){
33355
+ },{"buffer":67}],247:[function(require,module,exports){
33334
33356
  (function (Buffer){(function (){
33335
33357
  'use strict';
33336
33358
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -33397,7 +33419,7 @@ function writeUInt64LE(buffer, value, offset) {
33397
33419
  exports.writeUInt64LE = writeUInt64LE;
33398
33420
 
33399
33421
  }).call(this)}).call(this,require("buffer").Buffer)
33400
- },{"./varint":247,"buffer":67}],247:[function(require,module,exports){
33422
+ },{"./varint":248,"buffer":67}],248:[function(require,module,exports){
33401
33423
  (function (Buffer){(function (){
33402
33424
  'use strict';
33403
33425
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -33478,7 +33500,7 @@ function encodingLength(_number) {
33478
33500
  exports.encodingLength = encodingLength;
33479
33501
 
33480
33502
  }).call(this)}).call(this,require("buffer").Buffer)
33481
- },{"buffer":67}],248:[function(require,module,exports){
33503
+ },{"buffer":67}],249:[function(require,module,exports){
33482
33504
  (function (Buffer){(function (){
33483
33505
  'use strict';
33484
33506
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -33878,7 +33900,7 @@ function psbtFromKeyVals(
33878
33900
  exports.psbtFromKeyVals = psbtFromKeyVals;
33879
33901
 
33880
33902
  }).call(this)}).call(this,require("buffer").Buffer)
33881
- },{"../converter":227,"../converter/tools":246,"../converter/varint":247,"../typeFields":252,"buffer":67}],249:[function(require,module,exports){
33903
+ },{"../converter":228,"../converter/tools":247,"../converter/varint":248,"../typeFields":253,"buffer":67}],250:[function(require,module,exports){
33882
33904
  'use strict';
33883
33905
  function __export(m) {
33884
33906
  for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
@@ -33887,7 +33909,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
33887
33909
  __export(require('./fromBuffer'));
33888
33910
  __export(require('./toBuffer'));
33889
33911
 
33890
- },{"./fromBuffer":248,"./toBuffer":250}],250:[function(require,module,exports){
33912
+ },{"./fromBuffer":249,"./toBuffer":251}],251:[function(require,module,exports){
33891
33913
  (function (Buffer){(function (){
33892
33914
  'use strict';
33893
33915
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -33955,7 +33977,7 @@ function psbtToKeyVals({ globalMap, inputs, outputs }) {
33955
33977
  exports.psbtToKeyVals = psbtToKeyVals;
33956
33978
 
33957
33979
  }).call(this)}).call(this,require("buffer").Buffer)
33958
- },{"../converter":227,"../converter/tools":246,"buffer":67}],251:[function(require,module,exports){
33980
+ },{"../converter":228,"../converter/tools":247,"buffer":67}],252:[function(require,module,exports){
33959
33981
  (function (Buffer){(function (){
33960
33982
  'use strict';
33961
33983
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -34107,7 +34129,7 @@ class Psbt {
34107
34129
  exports.Psbt = Psbt;
34108
34130
 
34109
34131
  }).call(this)}).call(this,require("buffer").Buffer)
34110
- },{"./combiner":224,"./parser":249,"./typeFields":252,"./utils":253,"buffer":67}],252:[function(require,module,exports){
34132
+ },{"./combiner":225,"./parser":250,"./typeFields":253,"./utils":254,"buffer":67}],253:[function(require,module,exports){
34111
34133
  'use strict';
34112
34134
  Object.defineProperty(exports, '__esModule', { value: true });
34113
34135
  var GlobalTypes;
@@ -34173,7 +34195,7 @@ exports.OUTPUT_TYPE_NAMES = [
34173
34195
  'tapBip32Derivation',
34174
34196
  ];
34175
34197
 
34176
- },{}],253:[function(require,module,exports){
34198
+ },{}],254:[function(require,module,exports){
34177
34199
  (function (Buffer){(function (){
34178
34200
  'use strict';
34179
34201
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -34315,7 +34337,7 @@ function defaultLocktimeSetter(locktime, txBuf) {
34315
34337
  exports.defaultLocktimeSetter = defaultLocktimeSetter;
34316
34338
 
34317
34339
  }).call(this)}).call(this,{"isBuffer":require("../../../../../../node_modules/is-buffer/index.js")})
34318
- },{"../../../../../../node_modules/is-buffer/index.js":150,"./converter":227}],254:[function(require,module,exports){
34340
+ },{"../../../../../../node_modules/is-buffer/index.js":150,"./converter":228}],255:[function(require,module,exports){
34319
34341
  (function (Buffer){(function (){
34320
34342
  "use strict";
34321
34343
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -34616,7 +34638,7 @@ function fromSeed(seed, network) {
34616
34638
  exports.fromSeed = fromSeed;
34617
34639
 
34618
34640
  }).call(this)}).call(this,require("buffer").Buffer)
34619
- },{"./crypto":255,"bs58check":309,"buffer":67,"tiny-secp256k1":378,"typeforce":382,"wif":386}],255:[function(require,module,exports){
34641
+ },{"./crypto":256,"bs58check":310,"buffer":67,"tiny-secp256k1":379,"typeforce":383,"wif":387}],256:[function(require,module,exports){
34620
34642
  "use strict";
34621
34643
  Object.defineProperty(exports, "__esModule", { value: true });
34622
34644
  const createHash = require('create-hash');
@@ -34644,7 +34666,7 @@ function hmacSHA512(key, data) {
34644
34666
  }
34645
34667
  exports.hmacSHA512 = hmacSHA512;
34646
34668
 
34647
- },{"create-hash":311,"create-hmac":313}],256:[function(require,module,exports){
34669
+ },{"create-hash":312,"create-hmac":314}],257:[function(require,module,exports){
34648
34670
  "use strict";
34649
34671
  Object.defineProperty(exports, "__esModule", { value: true });
34650
34672
  var bip32_1 = require("./bip32");
@@ -34653,7 +34675,7 @@ exports.fromBase58 = bip32_1.fromBase58;
34653
34675
  exports.fromPublicKey = bip32_1.fromPublicKey;
34654
34676
  exports.fromPrivateKey = bip32_1.fromPrivateKey;
34655
34677
 
34656
- },{"./bip32":254}],257:[function(require,module,exports){
34678
+ },{"./bip32":255}],258:[function(require,module,exports){
34657
34679
  // Reference https://github.com/bitcoin/bips/blob/master/bip-0066.mediawiki
34658
34680
  // Format: 0x30 [total-length] 0x02 [R-length] [R] 0x02 [S-length] [S]
34659
34681
  // NOTE: SIGHASH byte ignored AND restricted, truncate before use
@@ -34768,7 +34790,7 @@ module.exports = {
34768
34790
  encode: encode
34769
34791
  }
34770
34792
 
34771
- },{"safe-buffer":368}],258:[function(require,module,exports){
34793
+ },{"safe-buffer":369}],259:[function(require,module,exports){
34772
34794
  module.exports={
34773
34795
  "OP_FALSE": 0,
34774
34796
  "OP_0": 0,
@@ -34903,7 +34925,7 @@ module.exports={
34903
34925
  "OP_INVALIDOPCODE": 255
34904
34926
  }
34905
34927
 
34906
- },{}],259:[function(require,module,exports){
34928
+ },{}],260:[function(require,module,exports){
34907
34929
  var OPS = require('./index.json')
34908
34930
 
34909
34931
  var map = {}
@@ -34914,7 +34936,7 @@ for (var op in OPS) {
34914
34936
 
34915
34937
  module.exports = map
34916
34938
 
34917
- },{"./index.json":258}],260:[function(require,module,exports){
34939
+ },{"./index.json":259}],261:[function(require,module,exports){
34918
34940
  (function (Buffer){(function (){
34919
34941
  'use strict';
34920
34942
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -35009,7 +35031,7 @@ function toOutputScript(address, network) {
35009
35031
  exports.toOutputScript = toOutputScript;
35010
35032
 
35011
35033
  }).call(this)}).call(this,require("buffer").Buffer)
35012
- },{"./networks":267,"./payments":269,"./script":278,"./types":304,"bech32":223,"bs58check":309,"buffer":67,"typeforce":382}],261:[function(require,module,exports){
35034
+ },{"./networks":268,"./payments":270,"./script":279,"./types":305,"bech32":224,"bs58check":310,"buffer":67,"typeforce":383}],262:[function(require,module,exports){
35013
35035
  (function (Buffer){(function (){
35014
35036
  'use strict';
35015
35037
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -35229,7 +35251,7 @@ function anyTxHasWitness(transactions) {
35229
35251
  }
35230
35252
 
35231
35253
  }).call(this)}).call(this,require("buffer").Buffer)
35232
- },{"./bufferutils":262,"./crypto":264,"./transaction":302,"./types":304,"buffer":67,"merkle-lib/fastRoot":347,"typeforce":382,"varuint-bitcoin":385}],262:[function(require,module,exports){
35254
+ },{"./bufferutils":263,"./crypto":265,"./transaction":303,"./types":305,"buffer":67,"merkle-lib/fastRoot":348,"typeforce":383,"varuint-bitcoin":386}],263:[function(require,module,exports){
35233
35255
  (function (Buffer){(function (){
35234
35256
  'use strict';
35235
35257
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -35376,7 +35398,7 @@ class BufferReader {
35376
35398
  exports.BufferReader = BufferReader;
35377
35399
 
35378
35400
  }).call(this)}).call(this,require("buffer").Buffer)
35379
- },{"./types":304,"buffer":67,"typeforce":382,"varuint-bitcoin":385}],263:[function(require,module,exports){
35401
+ },{"./types":305,"buffer":67,"typeforce":383,"varuint-bitcoin":386}],264:[function(require,module,exports){
35380
35402
  'use strict';
35381
35403
  Object.defineProperty(exports, '__esModule', { value: true });
35382
35404
  const script_1 = require('./script');
@@ -35437,7 +35459,7 @@ function classifyWitness(script, allowIncomplete) {
35437
35459
  }
35438
35460
  exports.witness = classifyWitness;
35439
35461
 
35440
- },{"./script":278,"./templates/multisig":281,"./templates/nulldata":284,"./templates/pubkey":285,"./templates/pubkeyhash":288,"./templates/scripthash":291,"./templates/witnesscommitment":294,"./templates/witnesspubkeyhash":296,"./templates/witnessscripthash":299}],264:[function(require,module,exports){
35462
+ },{"./script":279,"./templates/multisig":282,"./templates/nulldata":285,"./templates/pubkey":286,"./templates/pubkeyhash":289,"./templates/scripthash":292,"./templates/witnesscommitment":295,"./templates/witnesspubkeyhash":297,"./templates/witnessscripthash":300}],265:[function(require,module,exports){
35441
35463
  'use strict';
35442
35464
  Object.defineProperty(exports, '__esModule', { value: true });
35443
35465
  const createHash = require('create-hash');
@@ -35474,7 +35496,7 @@ function hash256(buffer) {
35474
35496
  }
35475
35497
  exports.hash256 = hash256;
35476
35498
 
35477
- },{"create-hash":311}],265:[function(require,module,exports){
35499
+ },{"create-hash":312}],266:[function(require,module,exports){
35478
35500
  (function (Buffer){(function (){
35479
35501
  'use strict';
35480
35502
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -35585,7 +35607,7 @@ function makeRandom(options) {
35585
35607
  exports.makeRandom = makeRandom;
35586
35608
 
35587
35609
  }).call(this)}).call(this,require("buffer").Buffer)
35588
- },{"./networks":267,"./types":304,"buffer":67,"randombytes":351,"tiny-secp256k1":378,"typeforce":382,"wif":386}],266:[function(require,module,exports){
35610
+ },{"./networks":268,"./types":305,"buffer":67,"randombytes":352,"tiny-secp256k1":379,"typeforce":383,"wif":387}],267:[function(require,module,exports){
35589
35611
  'use strict';
35590
35612
  Object.defineProperty(exports, '__esModule', { value: true });
35591
35613
  const bip32 = require('bip32');
@@ -35613,7 +35635,7 @@ exports.Transaction = transaction_1.Transaction;
35613
35635
  var transaction_builder_1 = require('./transaction_builder');
35614
35636
  exports.TransactionBuilder = transaction_builder_1.TransactionBuilder;
35615
35637
 
35616
- },{"./address":260,"./block":261,"./crypto":264,"./ecpair":265,"./networks":267,"./payments":269,"./psbt":277,"./script":278,"./transaction":302,"./transaction_builder":303,"bip32":256}],267:[function(require,module,exports){
35638
+ },{"./address":261,"./block":262,"./crypto":265,"./ecpair":266,"./networks":268,"./payments":270,"./psbt":278,"./script":279,"./transaction":303,"./transaction_builder":304,"bip32":257}],268:[function(require,module,exports){
35617
35639
  'use strict';
35618
35640
  Object.defineProperty(exports, '__esModule', { value: true });
35619
35641
  exports.bitcoin = {
@@ -35650,7 +35672,7 @@ exports.testnet = {
35650
35672
  wif: 0xef,
35651
35673
  };
35652
35674
 
35653
- },{}],268:[function(require,module,exports){
35675
+ },{}],269:[function(require,module,exports){
35654
35676
  'use strict';
35655
35677
  Object.defineProperty(exports, '__esModule', { value: true });
35656
35678
  const networks_1 = require('../networks');
@@ -35701,7 +35723,7 @@ function p2data(a, opts) {
35701
35723
  }
35702
35724
  exports.p2data = p2data;
35703
35725
 
35704
- },{"../networks":267,"../script":278,"./lazy":270,"typeforce":382}],269:[function(require,module,exports){
35726
+ },{"../networks":268,"../script":279,"./lazy":271,"typeforce":383}],270:[function(require,module,exports){
35705
35727
  'use strict';
35706
35728
  Object.defineProperty(exports, '__esModule', { value: true });
35707
35729
  const embed_1 = require('./embed');
@@ -35721,7 +35743,7 @@ exports.p2wsh = p2wsh_1.p2wsh;
35721
35743
  // TODO
35722
35744
  // witness commitment
35723
35745
 
35724
- },{"./embed":268,"./p2ms":271,"./p2pk":272,"./p2pkh":273,"./p2sh":274,"./p2wpkh":275,"./p2wsh":276}],270:[function(require,module,exports){
35746
+ },{"./embed":269,"./p2ms":272,"./p2pk":273,"./p2pkh":274,"./p2sh":275,"./p2wpkh":276,"./p2wsh":277}],271:[function(require,module,exports){
35725
35747
  'use strict';
35726
35748
  Object.defineProperty(exports, '__esModule', { value: true });
35727
35749
  function prop(object, name, f) {
@@ -35754,7 +35776,7 @@ function value(f) {
35754
35776
  }
35755
35777
  exports.value = value;
35756
35778
 
35757
- },{}],271:[function(require,module,exports){
35779
+ },{}],272:[function(require,module,exports){
35758
35780
  'use strict';
35759
35781
  Object.defineProperty(exports, '__esModule', { value: true });
35760
35782
  const networks_1 = require('../networks');
@@ -35901,7 +35923,7 @@ function p2ms(a, opts) {
35901
35923
  }
35902
35924
  exports.p2ms = p2ms;
35903
35925
 
35904
- },{"../networks":267,"../script":278,"./lazy":270,"tiny-secp256k1":378,"typeforce":382}],272:[function(require,module,exports){
35926
+ },{"../networks":268,"../script":279,"./lazy":271,"tiny-secp256k1":379,"typeforce":383}],273:[function(require,module,exports){
35905
35927
  'use strict';
35906
35928
  Object.defineProperty(exports, '__esModule', { value: true });
35907
35929
  const networks_1 = require('../networks');
@@ -35975,7 +35997,7 @@ function p2pk(a, opts) {
35975
35997
  }
35976
35998
  exports.p2pk = p2pk;
35977
35999
 
35978
- },{"../networks":267,"../script":278,"./lazy":270,"tiny-secp256k1":378,"typeforce":382}],273:[function(require,module,exports){
36000
+ },{"../networks":268,"../script":279,"./lazy":271,"tiny-secp256k1":379,"typeforce":383}],274:[function(require,module,exports){
35979
36001
  (function (Buffer){(function (){
35980
36002
  'use strict';
35981
36003
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -36111,7 +36133,7 @@ function p2pkh(a, opts) {
36111
36133
  exports.p2pkh = p2pkh;
36112
36134
 
36113
36135
  }).call(this)}).call(this,require("buffer").Buffer)
36114
- },{"../crypto":264,"../networks":267,"../script":278,"./lazy":270,"bs58check":309,"buffer":67,"tiny-secp256k1":378,"typeforce":382}],274:[function(require,module,exports){
36136
+ },{"../crypto":265,"../networks":268,"../script":279,"./lazy":271,"bs58check":310,"buffer":67,"tiny-secp256k1":379,"typeforce":383}],275:[function(require,module,exports){
36115
36137
  (function (Buffer){(function (){
36116
36138
  'use strict';
36117
36139
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -36298,7 +36320,7 @@ function p2sh(a, opts) {
36298
36320
  exports.p2sh = p2sh;
36299
36321
 
36300
36322
  }).call(this)}).call(this,require("buffer").Buffer)
36301
- },{"../crypto":264,"../networks":267,"../script":278,"./lazy":270,"bs58check":309,"buffer":67,"typeforce":382}],275:[function(require,module,exports){
36323
+ },{"../crypto":265,"../networks":268,"../script":279,"./lazy":271,"bs58check":310,"buffer":67,"typeforce":383}],276:[function(require,module,exports){
36302
36324
  (function (Buffer){(function (){
36303
36325
  'use strict';
36304
36326
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -36432,7 +36454,7 @@ function p2wpkh(a, opts) {
36432
36454
  exports.p2wpkh = p2wpkh;
36433
36455
 
36434
36456
  }).call(this)}).call(this,require("buffer").Buffer)
36435
- },{"../crypto":264,"../networks":267,"../script":278,"./lazy":270,"bech32":223,"buffer":67,"tiny-secp256k1":378,"typeforce":382}],276:[function(require,module,exports){
36457
+ },{"../crypto":265,"../networks":268,"../script":279,"./lazy":271,"bech32":224,"buffer":67,"tiny-secp256k1":379,"typeforce":383}],277:[function(require,module,exports){
36436
36458
  (function (Buffer){(function (){
36437
36459
  'use strict';
36438
36460
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -36643,7 +36665,7 @@ function p2wsh(a, opts) {
36643
36665
  exports.p2wsh = p2wsh;
36644
36666
 
36645
36667
  }).call(this)}).call(this,require("buffer").Buffer)
36646
- },{"../crypto":264,"../networks":267,"../script":278,"./lazy":270,"bech32":223,"buffer":67,"tiny-secp256k1":378,"typeforce":382}],277:[function(require,module,exports){
36668
+ },{"../crypto":265,"../networks":268,"../script":279,"./lazy":271,"bech32":224,"buffer":67,"tiny-secp256k1":379,"typeforce":383}],278:[function(require,module,exports){
36647
36669
  (function (Buffer){(function (){
36648
36670
  'use strict';
36649
36671
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -38045,7 +38067,7 @@ function range(n) {
38045
38067
  }
38046
38068
 
38047
38069
  }).call(this)}).call(this,require("buffer").Buffer)
38048
- },{"./address":260,"./bufferutils":262,"./crypto":264,"./ecpair":265,"./networks":267,"./payments":269,"./script":278,"./transaction":302,"bip174":251,"bip174/src/lib/converter/varint":247,"bip174/src/lib/utils":253,"buffer":67}],278:[function(require,module,exports){
38070
+ },{"./address":261,"./bufferutils":263,"./crypto":265,"./ecpair":266,"./networks":268,"./payments":270,"./script":279,"./transaction":303,"bip174":252,"bip174/src/lib/converter/varint":248,"bip174/src/lib/utils":254,"buffer":67}],279:[function(require,module,exports){
38049
38071
  (function (Buffer){(function (){
38050
38072
  'use strict';
38051
38073
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -38226,7 +38248,7 @@ exports.number = scriptNumber;
38226
38248
  exports.signature = scriptSignature;
38227
38249
 
38228
38250
  }).call(this)}).call(this,require("buffer").Buffer)
38229
- },{"./script_number":279,"./script_signature":280,"./types":304,"bip66":257,"bitcoin-ops":258,"bitcoin-ops/map":259,"buffer":67,"pushdata-bitcoin":350,"tiny-secp256k1":378,"typeforce":382}],279:[function(require,module,exports){
38251
+ },{"./script_number":280,"./script_signature":281,"./types":305,"bip66":258,"bitcoin-ops":259,"bitcoin-ops/map":260,"buffer":67,"pushdata-bitcoin":351,"tiny-secp256k1":379,"typeforce":383}],280:[function(require,module,exports){
38230
38252
  (function (Buffer){(function (){
38231
38253
  'use strict';
38232
38254
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -38291,7 +38313,7 @@ function encode(_number) {
38291
38313
  exports.encode = encode;
38292
38314
 
38293
38315
  }).call(this)}).call(this,require("buffer").Buffer)
38294
- },{"buffer":67}],280:[function(require,module,exports){
38316
+ },{"buffer":67}],281:[function(require,module,exports){
38295
38317
  (function (Buffer){(function (){
38296
38318
  'use strict';
38297
38319
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -38347,7 +38369,7 @@ function encode(signature, hashType) {
38347
38369
  exports.encode = encode;
38348
38370
 
38349
38371
  }).call(this)}).call(this,require("buffer").Buffer)
38350
- },{"./types":304,"bip66":257,"buffer":67,"typeforce":382}],281:[function(require,module,exports){
38372
+ },{"./types":305,"bip66":258,"buffer":67,"typeforce":383}],282:[function(require,module,exports){
38351
38373
  'use strict';
38352
38374
  Object.defineProperty(exports, '__esModule', { value: true });
38353
38375
  const input = require('./input');
@@ -38355,7 +38377,7 @@ exports.input = input;
38355
38377
  const output = require('./output');
38356
38378
  exports.output = output;
38357
38379
 
38358
- },{"./input":282,"./output":283}],282:[function(require,module,exports){
38380
+ },{"./input":283,"./output":284}],283:[function(require,module,exports){
38359
38381
  'use strict';
38360
38382
  // OP_0 [signatures ...]
38361
38383
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -38380,7 +38402,7 @@ check.toJSON = () => {
38380
38402
  return 'multisig input';
38381
38403
  };
38382
38404
 
38383
- },{"../../script":278}],283:[function(require,module,exports){
38405
+ },{"../../script":279}],284:[function(require,module,exports){
38384
38406
  'use strict';
38385
38407
  // m [pubKeys ...] n OP_CHECKMULTISIG
38386
38408
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -38409,7 +38431,7 @@ check.toJSON = () => {
38409
38431
  return 'multi-sig output';
38410
38432
  };
38411
38433
 
38412
- },{"../../script":278,"../../types":304}],284:[function(require,module,exports){
38434
+ },{"../../script":279,"../../types":305}],285:[function(require,module,exports){
38413
38435
  'use strict';
38414
38436
  Object.defineProperty(exports, '__esModule', { value: true });
38415
38437
  // OP_RETURN {data}
@@ -38426,9 +38448,9 @@ check.toJSON = () => {
38426
38448
  const output = { check };
38427
38449
  exports.output = output;
38428
38450
 
38429
- },{"../script":278}],285:[function(require,module,exports){
38430
- arguments[4][281][0].apply(exports,arguments)
38431
- },{"./input":286,"./output":287,"dup":281}],286:[function(require,module,exports){
38451
+ },{"../script":279}],286:[function(require,module,exports){
38452
+ arguments[4][282][0].apply(exports,arguments)
38453
+ },{"./input":287,"./output":288,"dup":282}],287:[function(require,module,exports){
38432
38454
  'use strict';
38433
38455
  // {signature}
38434
38456
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -38442,7 +38464,7 @@ check.toJSON = () => {
38442
38464
  return 'pubKey input';
38443
38465
  };
38444
38466
 
38445
- },{"../../script":278}],287:[function(require,module,exports){
38467
+ },{"../../script":279}],288:[function(require,module,exports){
38446
38468
  'use strict';
38447
38469
  // {pubKey} OP_CHECKSIG
38448
38470
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -38461,9 +38483,9 @@ check.toJSON = () => {
38461
38483
  return 'pubKey output';
38462
38484
  };
38463
38485
 
38464
- },{"../../script":278}],288:[function(require,module,exports){
38465
- arguments[4][281][0].apply(exports,arguments)
38466
- },{"./input":289,"./output":290,"dup":281}],289:[function(require,module,exports){
38486
+ },{"../../script":279}],289:[function(require,module,exports){
38487
+ arguments[4][282][0].apply(exports,arguments)
38488
+ },{"./input":290,"./output":291,"dup":282}],290:[function(require,module,exports){
38467
38489
  'use strict';
38468
38490
  // {signature} {pubKey}
38469
38491
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -38481,7 +38503,7 @@ check.toJSON = () => {
38481
38503
  return 'pubKeyHash input';
38482
38504
  };
38483
38505
 
38484
- },{"../../script":278}],290:[function(require,module,exports){
38506
+ },{"../../script":279}],291:[function(require,module,exports){
38485
38507
  'use strict';
38486
38508
  // OP_DUP OP_HASH160 {pubKeyHash} OP_EQUALVERIFY OP_CHECKSIG
38487
38509
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -38503,9 +38525,9 @@ check.toJSON = () => {
38503
38525
  return 'pubKeyHash output';
38504
38526
  };
38505
38527
 
38506
- },{"../../script":278}],291:[function(require,module,exports){
38507
- arguments[4][281][0].apply(exports,arguments)
38508
- },{"./input":292,"./output":293,"dup":281}],292:[function(require,module,exports){
38528
+ },{"../../script":279}],292:[function(require,module,exports){
38529
+ arguments[4][282][0].apply(exports,arguments)
38530
+ },{"./input":293,"./output":294,"dup":282}],293:[function(require,module,exports){
38509
38531
  (function (Buffer){(function (){
38510
38532
  'use strict';
38511
38533
  // <scriptSig> {serialized scriptPubKey script}
@@ -38559,7 +38581,7 @@ check.toJSON = () => {
38559
38581
  };
38560
38582
 
38561
38583
  }).call(this)}).call(this,{"isBuffer":require("../../../../../../../node_modules/is-buffer/index.js")})
38562
- },{"../../../../../../../node_modules/is-buffer/index.js":150,"../../script":278,"../multisig":281,"../pubkey":285,"../pubkeyhash":288,"../witnesspubkeyhash/output":298,"../witnessscripthash/output":301}],293:[function(require,module,exports){
38584
+ },{"../../../../../../../node_modules/is-buffer/index.js":150,"../../script":279,"../multisig":282,"../pubkey":286,"../pubkeyhash":289,"../witnesspubkeyhash/output":299,"../witnessscripthash/output":302}],294:[function(require,module,exports){
38563
38585
  'use strict';
38564
38586
  // OP_HASH160 {scriptHash} OP_EQUAL
38565
38587
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -38579,13 +38601,13 @@ check.toJSON = () => {
38579
38601
  return 'scriptHash output';
38580
38602
  };
38581
38603
 
38582
- },{"../../script":278}],294:[function(require,module,exports){
38604
+ },{"../../script":279}],295:[function(require,module,exports){
38583
38605
  'use strict';
38584
38606
  Object.defineProperty(exports, '__esModule', { value: true });
38585
38607
  const output = require('./output');
38586
38608
  exports.output = output;
38587
38609
 
38588
- },{"./output":295}],295:[function(require,module,exports){
38610
+ },{"./output":296}],296:[function(require,module,exports){
38589
38611
  (function (Buffer){(function (){
38590
38612
  'use strict';
38591
38613
  // OP_RETURN {aa21a9ed} {commitment}
@@ -38623,9 +38645,9 @@ function decode(buffer) {
38623
38645
  exports.decode = decode;
38624
38646
 
38625
38647
  }).call(this)}).call(this,require("buffer").Buffer)
38626
- },{"../../script":278,"../../types":304,"buffer":67,"typeforce":382}],296:[function(require,module,exports){
38627
- arguments[4][281][0].apply(exports,arguments)
38628
- },{"./input":297,"./output":298,"dup":281}],297:[function(require,module,exports){
38648
+ },{"../../script":279,"../../types":305,"buffer":67,"typeforce":383}],297:[function(require,module,exports){
38649
+ arguments[4][282][0].apply(exports,arguments)
38650
+ },{"./input":298,"./output":299,"dup":282}],298:[function(require,module,exports){
38629
38651
  'use strict';
38630
38652
  // {signature} {pubKey}
38631
38653
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -38646,7 +38668,7 @@ check.toJSON = () => {
38646
38668
  return 'witnessPubKeyHash input';
38647
38669
  };
38648
38670
 
38649
- },{"../../script":278}],298:[function(require,module,exports){
38671
+ },{"../../script":279}],299:[function(require,module,exports){
38650
38672
  'use strict';
38651
38673
  // OP_0 {pubKeyHash}
38652
38674
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -38665,9 +38687,9 @@ check.toJSON = () => {
38665
38687
  return 'Witness pubKeyHash output';
38666
38688
  };
38667
38689
 
38668
- },{"../../script":278}],299:[function(require,module,exports){
38669
- arguments[4][281][0].apply(exports,arguments)
38670
- },{"./input":300,"./output":301,"dup":281}],300:[function(require,module,exports){
38690
+ },{"../../script":279}],300:[function(require,module,exports){
38691
+ arguments[4][282][0].apply(exports,arguments)
38692
+ },{"./input":301,"./output":302,"dup":282}],301:[function(require,module,exports){
38671
38693
  (function (Buffer){(function (){
38672
38694
  'use strict';
38673
38695
  // <scriptSig> {serialized scriptPubKey script}
@@ -38710,7 +38732,7 @@ check.toJSON = () => {
38710
38732
  };
38711
38733
 
38712
38734
  }).call(this)}).call(this,{"isBuffer":require("../../../../../../../node_modules/is-buffer/index.js")})
38713
- },{"../../../../../../../node_modules/is-buffer/index.js":150,"../../script":278,"../multisig":281,"../pubkey":285,"../pubkeyhash":288,"typeforce":382}],301:[function(require,module,exports){
38735
+ },{"../../../../../../../node_modules/is-buffer/index.js":150,"../../script":279,"../multisig":282,"../pubkey":286,"../pubkeyhash":289,"typeforce":383}],302:[function(require,module,exports){
38714
38736
  'use strict';
38715
38737
  // OP_0 {scriptHash}
38716
38738
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -38729,7 +38751,7 @@ check.toJSON = () => {
38729
38751
  return 'Witness scriptHash output';
38730
38752
  };
38731
38753
 
38732
- },{"../../script":278}],302:[function(require,module,exports){
38754
+ },{"../../script":279}],303:[function(require,module,exports){
38733
38755
  (function (Buffer){(function (){
38734
38756
  'use strict';
38735
38757
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -39135,7 +39157,7 @@ Transaction.ADVANCED_TRANSACTION_FLAG = 0x01;
39135
39157
  exports.Transaction = Transaction;
39136
39158
 
39137
39159
  }).call(this)}).call(this,require("buffer").Buffer)
39138
- },{"./bufferutils":262,"./crypto":264,"./script":278,"./types":304,"buffer":67,"typeforce":382,"varuint-bitcoin":385}],303:[function(require,module,exports){
39160
+ },{"./bufferutils":263,"./crypto":265,"./script":279,"./types":305,"buffer":67,"typeforce":383,"varuint-bitcoin":386}],304:[function(require,module,exports){
39139
39161
  (function (Buffer){(function (){
39140
39162
  'use strict';
39141
39163
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -40204,7 +40226,7 @@ function getSigningData(
40204
40226
  }
40205
40227
 
40206
40228
  }).call(this)}).call(this,require("buffer").Buffer)
40207
- },{"./address":260,"./bufferutils":262,"./classify":263,"./crypto":264,"./ecpair":265,"./networks":267,"./payments":269,"./script":278,"./transaction":302,"./types":304,"buffer":67,"typeforce":382}],304:[function(require,module,exports){
40229
+ },{"./address":261,"./bufferutils":263,"./classify":264,"./crypto":265,"./ecpair":266,"./networks":268,"./payments":270,"./script":279,"./transaction":303,"./types":305,"buffer":67,"typeforce":383}],305:[function(require,module,exports){
40208
40230
  'use strict';
40209
40231
  Object.defineProperty(exports, '__esModule', { value: true });
40210
40232
  const typeforce = require('typeforce');
@@ -40264,17 +40286,17 @@ exports.BufferN = typeforce.BufferN;
40264
40286
  exports.Null = typeforce.Null;
40265
40287
  exports.oneOf = typeforce.oneOf;
40266
40288
 
40267
- },{"typeforce":382}],305:[function(require,module,exports){
40289
+ },{"typeforce":383}],306:[function(require,module,exports){
40268
40290
  arguments[4][15][0].apply(exports,arguments)
40269
- },{"buffer":24,"dup":15}],306:[function(require,module,exports){
40291
+ },{"buffer":24,"dup":15}],307:[function(require,module,exports){
40270
40292
  arguments[4][23][0].apply(exports,arguments)
40271
- },{"crypto":24,"dup":23}],307:[function(require,module,exports){
40293
+ },{"crypto":24,"dup":23}],308:[function(require,module,exports){
40272
40294
  var basex = require('base-x')
40273
40295
  var ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
40274
40296
 
40275
40297
  module.exports = basex(ALPHABET)
40276
40298
 
40277
- },{"base-x":222}],308:[function(require,module,exports){
40299
+ },{"base-x":223}],309:[function(require,module,exports){
40278
40300
  'use strict'
40279
40301
 
40280
40302
  var base58 = require('bs58')
@@ -40326,7 +40348,7 @@ module.exports = function (checksumFn) {
40326
40348
  }
40327
40349
  }
40328
40350
 
40329
- },{"bs58":307,"safe-buffer":368}],309:[function(require,module,exports){
40351
+ },{"bs58":308,"safe-buffer":369}],310:[function(require,module,exports){
40330
40352
  'use strict'
40331
40353
 
40332
40354
  var createHash = require('create-hash')
@@ -40340,81 +40362,81 @@ function sha256x2 (buffer) {
40340
40362
 
40341
40363
  module.exports = bs58checkBase(sha256x2)
40342
40364
 
40343
- },{"./base":308,"create-hash":311}],310:[function(require,module,exports){
40365
+ },{"./base":309,"create-hash":312}],311:[function(require,module,exports){
40344
40366
  arguments[4][71][0].apply(exports,arguments)
40345
- },{"dup":71,"inherits":345,"safe-buffer":368,"stream":192,"string_decoder":207}],311:[function(require,module,exports){
40367
+ },{"dup":71,"inherits":346,"safe-buffer":369,"stream":192,"string_decoder":207}],312:[function(require,module,exports){
40346
40368
  arguments[4][74][0].apply(exports,arguments)
40347
- },{"cipher-base":310,"dup":74,"inherits":345,"md5.js":346,"ripemd160":367,"sha.js":370}],312:[function(require,module,exports){
40369
+ },{"cipher-base":311,"dup":74,"inherits":346,"md5.js":347,"ripemd160":368,"sha.js":371}],313:[function(require,module,exports){
40348
40370
  arguments[4][75][0].apply(exports,arguments)
40349
- },{"dup":75,"md5.js":346}],313:[function(require,module,exports){
40371
+ },{"dup":75,"md5.js":347}],314:[function(require,module,exports){
40350
40372
  arguments[4][76][0].apply(exports,arguments)
40351
- },{"./legacy":314,"cipher-base":310,"create-hash/md5":312,"dup":76,"inherits":345,"ripemd160":367,"safe-buffer":368,"sha.js":370}],314:[function(require,module,exports){
40373
+ },{"./legacy":315,"cipher-base":311,"create-hash/md5":313,"dup":76,"inherits":346,"ripemd160":368,"safe-buffer":369,"sha.js":371}],315:[function(require,module,exports){
40352
40374
  arguments[4][77][0].apply(exports,arguments)
40353
- },{"cipher-base":310,"dup":77,"inherits":345,"safe-buffer":368}],315:[function(require,module,exports){
40375
+ },{"cipher-base":311,"dup":77,"inherits":346,"safe-buffer":369}],316:[function(require,module,exports){
40354
40376
  arguments[4][90][0].apply(exports,arguments)
40355
- },{"../package.json":330,"./elliptic/curve":318,"./elliptic/curves":321,"./elliptic/ec":322,"./elliptic/eddsa":325,"./elliptic/utils":329,"brorand":306,"dup":90}],316:[function(require,module,exports){
40377
+ },{"../package.json":331,"./elliptic/curve":319,"./elliptic/curves":322,"./elliptic/ec":323,"./elliptic/eddsa":326,"./elliptic/utils":330,"brorand":307,"dup":90}],317:[function(require,module,exports){
40356
40378
  arguments[4][91][0].apply(exports,arguments)
40357
- },{"../utils":329,"bn.js":305,"dup":91}],317:[function(require,module,exports){
40379
+ },{"../utils":330,"bn.js":306,"dup":91}],318:[function(require,module,exports){
40358
40380
  arguments[4][92][0].apply(exports,arguments)
40359
- },{"../utils":329,"./base":316,"bn.js":305,"dup":92,"inherits":345}],318:[function(require,module,exports){
40381
+ },{"../utils":330,"./base":317,"bn.js":306,"dup":92,"inherits":346}],319:[function(require,module,exports){
40360
40382
  arguments[4][93][0].apply(exports,arguments)
40361
- },{"./base":316,"./edwards":317,"./mont":319,"./short":320,"dup":93}],319:[function(require,module,exports){
40383
+ },{"./base":317,"./edwards":318,"./mont":320,"./short":321,"dup":93}],320:[function(require,module,exports){
40362
40384
  arguments[4][94][0].apply(exports,arguments)
40363
- },{"../utils":329,"./base":316,"bn.js":305,"dup":94,"inherits":345}],320:[function(require,module,exports){
40385
+ },{"../utils":330,"./base":317,"bn.js":306,"dup":94,"inherits":346}],321:[function(require,module,exports){
40364
40386
  arguments[4][95][0].apply(exports,arguments)
40365
- },{"../utils":329,"./base":316,"bn.js":305,"dup":95,"inherits":345}],321:[function(require,module,exports){
40387
+ },{"../utils":330,"./base":317,"bn.js":306,"dup":95,"inherits":346}],322:[function(require,module,exports){
40366
40388
  arguments[4][96][0].apply(exports,arguments)
40367
- },{"./curve":318,"./precomputed/secp256k1":328,"./utils":329,"dup":96,"hash.js":332}],322:[function(require,module,exports){
40389
+ },{"./curve":319,"./precomputed/secp256k1":329,"./utils":330,"dup":96,"hash.js":333}],323:[function(require,module,exports){
40368
40390
  arguments[4][97][0].apply(exports,arguments)
40369
- },{"../curves":321,"../utils":329,"./key":323,"./signature":324,"bn.js":305,"brorand":306,"dup":97,"hmac-drbg":344}],323:[function(require,module,exports){
40391
+ },{"../curves":322,"../utils":330,"./key":324,"./signature":325,"bn.js":306,"brorand":307,"dup":97,"hmac-drbg":345}],324:[function(require,module,exports){
40370
40392
  arguments[4][98][0].apply(exports,arguments)
40371
- },{"../utils":329,"bn.js":305,"dup":98}],324:[function(require,module,exports){
40393
+ },{"../utils":330,"bn.js":306,"dup":98}],325:[function(require,module,exports){
40372
40394
  arguments[4][99][0].apply(exports,arguments)
40373
- },{"../utils":329,"bn.js":305,"dup":99}],325:[function(require,module,exports){
40395
+ },{"../utils":330,"bn.js":306,"dup":99}],326:[function(require,module,exports){
40374
40396
  arguments[4][100][0].apply(exports,arguments)
40375
- },{"../curves":321,"../utils":329,"./key":326,"./signature":327,"dup":100,"hash.js":332}],326:[function(require,module,exports){
40397
+ },{"../curves":322,"../utils":330,"./key":327,"./signature":328,"dup":100,"hash.js":333}],327:[function(require,module,exports){
40376
40398
  arguments[4][101][0].apply(exports,arguments)
40377
- },{"../utils":329,"dup":101}],327:[function(require,module,exports){
40399
+ },{"../utils":330,"dup":101}],328:[function(require,module,exports){
40378
40400
  arguments[4][102][0].apply(exports,arguments)
40379
- },{"../utils":329,"bn.js":305,"dup":102}],328:[function(require,module,exports){
40401
+ },{"../utils":330,"bn.js":306,"dup":102}],329:[function(require,module,exports){
40380
40402
  arguments[4][103][0].apply(exports,arguments)
40381
- },{"dup":103}],329:[function(require,module,exports){
40403
+ },{"dup":103}],330:[function(require,module,exports){
40382
40404
  arguments[4][104][0].apply(exports,arguments)
40383
- },{"bn.js":305,"dup":104,"minimalistic-assert":348,"minimalistic-crypto-utils":349}],330:[function(require,module,exports){
40405
+ },{"bn.js":306,"dup":104,"minimalistic-assert":349,"minimalistic-crypto-utils":350}],331:[function(require,module,exports){
40384
40406
  arguments[4][106][0].apply(exports,arguments)
40385
- },{"dup":106}],331:[function(require,module,exports){
40407
+ },{"dup":106}],332:[function(require,module,exports){
40386
40408
  arguments[4][118][0].apply(exports,arguments)
40387
- },{"dup":118,"inherits":345,"readable-stream":366,"safe-buffer":368}],332:[function(require,module,exports){
40409
+ },{"dup":118,"inherits":346,"readable-stream":367,"safe-buffer":369}],333:[function(require,module,exports){
40388
40410
  arguments[4][134][0].apply(exports,arguments)
40389
- },{"./hash/common":333,"./hash/hmac":334,"./hash/ripemd":335,"./hash/sha":336,"./hash/utils":343,"dup":134}],333:[function(require,module,exports){
40411
+ },{"./hash/common":334,"./hash/hmac":335,"./hash/ripemd":336,"./hash/sha":337,"./hash/utils":344,"dup":134}],334:[function(require,module,exports){
40390
40412
  arguments[4][135][0].apply(exports,arguments)
40391
- },{"./utils":343,"dup":135,"minimalistic-assert":348}],334:[function(require,module,exports){
40413
+ },{"./utils":344,"dup":135,"minimalistic-assert":349}],335:[function(require,module,exports){
40392
40414
  arguments[4][136][0].apply(exports,arguments)
40393
- },{"./utils":343,"dup":136,"minimalistic-assert":348}],335:[function(require,module,exports){
40415
+ },{"./utils":344,"dup":136,"minimalistic-assert":349}],336:[function(require,module,exports){
40394
40416
  arguments[4][137][0].apply(exports,arguments)
40395
- },{"./common":333,"./utils":343,"dup":137}],336:[function(require,module,exports){
40417
+ },{"./common":334,"./utils":344,"dup":137}],337:[function(require,module,exports){
40396
40418
  arguments[4][138][0].apply(exports,arguments)
40397
- },{"./sha/1":337,"./sha/224":338,"./sha/256":339,"./sha/384":340,"./sha/512":341,"dup":138}],337:[function(require,module,exports){
40419
+ },{"./sha/1":338,"./sha/224":339,"./sha/256":340,"./sha/384":341,"./sha/512":342,"dup":138}],338:[function(require,module,exports){
40398
40420
  arguments[4][139][0].apply(exports,arguments)
40399
- },{"../common":333,"../utils":343,"./common":342,"dup":139}],338:[function(require,module,exports){
40421
+ },{"../common":334,"../utils":344,"./common":343,"dup":139}],339:[function(require,module,exports){
40400
40422
  arguments[4][140][0].apply(exports,arguments)
40401
- },{"../utils":343,"./256":339,"dup":140}],339:[function(require,module,exports){
40423
+ },{"../utils":344,"./256":340,"dup":140}],340:[function(require,module,exports){
40402
40424
  arguments[4][141][0].apply(exports,arguments)
40403
- },{"../common":333,"../utils":343,"./common":342,"dup":141,"minimalistic-assert":348}],340:[function(require,module,exports){
40425
+ },{"../common":334,"../utils":344,"./common":343,"dup":141,"minimalistic-assert":349}],341:[function(require,module,exports){
40404
40426
  arguments[4][142][0].apply(exports,arguments)
40405
- },{"../utils":343,"./512":341,"dup":142}],341:[function(require,module,exports){
40427
+ },{"../utils":344,"./512":342,"dup":142}],342:[function(require,module,exports){
40406
40428
  arguments[4][143][0].apply(exports,arguments)
40407
- },{"../common":333,"../utils":343,"dup":143,"minimalistic-assert":348}],342:[function(require,module,exports){
40429
+ },{"../common":334,"../utils":344,"dup":143,"minimalistic-assert":349}],343:[function(require,module,exports){
40408
40430
  arguments[4][144][0].apply(exports,arguments)
40409
- },{"../utils":343,"dup":144}],343:[function(require,module,exports){
40431
+ },{"../utils":344,"dup":144}],344:[function(require,module,exports){
40410
40432
  arguments[4][145][0].apply(exports,arguments)
40411
- },{"dup":145,"inherits":345,"minimalistic-assert":348}],344:[function(require,module,exports){
40433
+ },{"dup":145,"inherits":346,"minimalistic-assert":349}],345:[function(require,module,exports){
40412
40434
  arguments[4][146][0].apply(exports,arguments)
40413
- },{"dup":146,"hash.js":332,"minimalistic-assert":348,"minimalistic-crypto-utils":349}],345:[function(require,module,exports){
40435
+ },{"dup":146,"hash.js":333,"minimalistic-assert":349,"minimalistic-crypto-utils":350}],346:[function(require,module,exports){
40414
40436
  arguments[4][148][0].apply(exports,arguments)
40415
- },{"dup":148}],346:[function(require,module,exports){
40437
+ },{"dup":148}],347:[function(require,module,exports){
40416
40438
  arguments[4][154][0].apply(exports,arguments)
40417
- },{"dup":154,"hash-base":331,"inherits":345,"safe-buffer":368}],347:[function(require,module,exports){
40439
+ },{"dup":154,"hash-base":332,"inherits":346,"safe-buffer":369}],348:[function(require,module,exports){
40418
40440
  (function (Buffer){(function (){
40419
40441
  // constant-space merkle root calculation algorithm
40420
40442
  module.exports = function fastRoot (values, digestFn) {
@@ -40442,11 +40464,11 @@ module.exports = function fastRoot (values, digestFn) {
40442
40464
  }
40443
40465
 
40444
40466
  }).call(this)}).call(this,require("buffer").Buffer)
40445
- },{"buffer":67}],348:[function(require,module,exports){
40467
+ },{"buffer":67}],349:[function(require,module,exports){
40446
40468
  arguments[4][157][0].apply(exports,arguments)
40447
- },{"dup":157}],349:[function(require,module,exports){
40469
+ },{"dup":157}],350:[function(require,module,exports){
40448
40470
  arguments[4][158][0].apply(exports,arguments)
40449
- },{"dup":158}],350:[function(require,module,exports){
40471
+ },{"dup":158}],351:[function(require,module,exports){
40450
40472
  var OPS = require('bitcoin-ops')
40451
40473
 
40452
40474
  function encodingLength (i) {
@@ -40525,61 +40547,61 @@ module.exports = {
40525
40547
  decode: decode
40526
40548
  }
40527
40549
 
40528
- },{"bitcoin-ops":258}],351:[function(require,module,exports){
40550
+ },{"bitcoin-ops":259}],352:[function(require,module,exports){
40529
40551
  arguments[4][179][0].apply(exports,arguments)
40530
- },{"_process":171,"dup":179,"safe-buffer":368}],352:[function(require,module,exports){
40552
+ },{"_process":171,"dup":179,"safe-buffer":369}],353:[function(require,module,exports){
40531
40553
  arguments[4][52][0].apply(exports,arguments)
40532
- },{"dup":52}],353:[function(require,module,exports){
40554
+ },{"dup":52}],354:[function(require,module,exports){
40533
40555
  arguments[4][53][0].apply(exports,arguments)
40534
- },{"./_stream_readable":355,"./_stream_writable":357,"_process":171,"dup":53,"inherits":345}],354:[function(require,module,exports){
40556
+ },{"./_stream_readable":356,"./_stream_writable":358,"_process":171,"dup":53,"inherits":346}],355:[function(require,module,exports){
40535
40557
  arguments[4][54][0].apply(exports,arguments)
40536
- },{"./_stream_transform":356,"dup":54,"inherits":345}],355:[function(require,module,exports){
40558
+ },{"./_stream_transform":357,"dup":54,"inherits":346}],356:[function(require,module,exports){
40537
40559
  arguments[4][55][0].apply(exports,arguments)
40538
- },{"../errors":352,"./_stream_duplex":353,"./internal/streams/async_iterator":358,"./internal/streams/buffer_list":359,"./internal/streams/destroy":360,"./internal/streams/from":362,"./internal/streams/state":364,"./internal/streams/stream":365,"_process":171,"buffer":67,"dup":55,"events":108,"inherits":345,"string_decoder/":377,"util":24}],356:[function(require,module,exports){
40560
+ },{"../errors":353,"./_stream_duplex":354,"./internal/streams/async_iterator":359,"./internal/streams/buffer_list":360,"./internal/streams/destroy":361,"./internal/streams/from":363,"./internal/streams/state":365,"./internal/streams/stream":366,"_process":171,"buffer":67,"dup":55,"events":108,"inherits":346,"string_decoder/":378,"util":24}],357:[function(require,module,exports){
40539
40561
  arguments[4][56][0].apply(exports,arguments)
40540
- },{"../errors":352,"./_stream_duplex":353,"dup":56,"inherits":345}],357:[function(require,module,exports){
40562
+ },{"../errors":353,"./_stream_duplex":354,"dup":56,"inherits":346}],358:[function(require,module,exports){
40541
40563
  arguments[4][57][0].apply(exports,arguments)
40542
- },{"../errors":352,"./_stream_duplex":353,"./internal/streams/destroy":360,"./internal/streams/state":364,"./internal/streams/stream":365,"_process":171,"buffer":67,"dup":57,"inherits":345,"util-deprecate":384}],358:[function(require,module,exports){
40564
+ },{"../errors":353,"./_stream_duplex":354,"./internal/streams/destroy":361,"./internal/streams/state":365,"./internal/streams/stream":366,"_process":171,"buffer":67,"dup":57,"inherits":346,"util-deprecate":385}],359:[function(require,module,exports){
40543
40565
  arguments[4][58][0].apply(exports,arguments)
40544
- },{"./end-of-stream":361,"_process":171,"dup":58}],359:[function(require,module,exports){
40566
+ },{"./end-of-stream":362,"_process":171,"dup":58}],360:[function(require,module,exports){
40545
40567
  arguments[4][59][0].apply(exports,arguments)
40546
- },{"buffer":67,"dup":59,"util":24}],360:[function(require,module,exports){
40568
+ },{"buffer":67,"dup":59,"util":24}],361:[function(require,module,exports){
40547
40569
  arguments[4][60][0].apply(exports,arguments)
40548
- },{"_process":171,"dup":60}],361:[function(require,module,exports){
40570
+ },{"_process":171,"dup":60}],362:[function(require,module,exports){
40549
40571
  arguments[4][61][0].apply(exports,arguments)
40550
- },{"../../../errors":352,"dup":61}],362:[function(require,module,exports){
40572
+ },{"../../../errors":353,"dup":61}],363:[function(require,module,exports){
40551
40573
  arguments[4][62][0].apply(exports,arguments)
40552
- },{"dup":62}],363:[function(require,module,exports){
40574
+ },{"dup":62}],364:[function(require,module,exports){
40553
40575
  arguments[4][63][0].apply(exports,arguments)
40554
- },{"../../../errors":352,"./end-of-stream":361,"dup":63}],364:[function(require,module,exports){
40576
+ },{"../../../errors":353,"./end-of-stream":362,"dup":63}],365:[function(require,module,exports){
40555
40577
  arguments[4][64][0].apply(exports,arguments)
40556
- },{"../../../errors":352,"dup":64}],365:[function(require,module,exports){
40578
+ },{"../../../errors":353,"dup":64}],366:[function(require,module,exports){
40557
40579
  arguments[4][65][0].apply(exports,arguments)
40558
- },{"dup":65,"events":108}],366:[function(require,module,exports){
40580
+ },{"dup":65,"events":108}],367:[function(require,module,exports){
40559
40581
  arguments[4][66][0].apply(exports,arguments)
40560
- },{"./lib/_stream_duplex.js":353,"./lib/_stream_passthrough.js":354,"./lib/_stream_readable.js":355,"./lib/_stream_transform.js":356,"./lib/_stream_writable.js":357,"./lib/internal/streams/end-of-stream.js":361,"./lib/internal/streams/pipeline.js":363,"dup":66}],367:[function(require,module,exports){
40582
+ },{"./lib/_stream_duplex.js":354,"./lib/_stream_passthrough.js":355,"./lib/_stream_readable.js":356,"./lib/_stream_transform.js":357,"./lib/_stream_writable.js":358,"./lib/internal/streams/end-of-stream.js":362,"./lib/internal/streams/pipeline.js":364,"dup":66}],368:[function(require,module,exports){
40561
40583
  arguments[4][181][0].apply(exports,arguments)
40562
- },{"buffer":67,"dup":181,"hash-base":331,"inherits":345}],368:[function(require,module,exports){
40584
+ },{"buffer":67,"dup":181,"hash-base":332,"inherits":346}],369:[function(require,module,exports){
40563
40585
  arguments[4][182][0].apply(exports,arguments)
40564
- },{"buffer":67,"dup":182}],369:[function(require,module,exports){
40586
+ },{"buffer":67,"dup":182}],370:[function(require,module,exports){
40565
40587
  arguments[4][184][0].apply(exports,arguments)
40566
- },{"dup":184,"safe-buffer":368}],370:[function(require,module,exports){
40588
+ },{"dup":184,"safe-buffer":369}],371:[function(require,module,exports){
40567
40589
  arguments[4][185][0].apply(exports,arguments)
40568
- },{"./sha":371,"./sha1":372,"./sha224":373,"./sha256":374,"./sha384":375,"./sha512":376,"dup":185}],371:[function(require,module,exports){
40590
+ },{"./sha":372,"./sha1":373,"./sha224":374,"./sha256":375,"./sha384":376,"./sha512":377,"dup":185}],372:[function(require,module,exports){
40569
40591
  arguments[4][186][0].apply(exports,arguments)
40570
- },{"./hash":369,"dup":186,"inherits":345,"safe-buffer":368}],372:[function(require,module,exports){
40592
+ },{"./hash":370,"dup":186,"inherits":346,"safe-buffer":369}],373:[function(require,module,exports){
40571
40593
  arguments[4][187][0].apply(exports,arguments)
40572
- },{"./hash":369,"dup":187,"inherits":345,"safe-buffer":368}],373:[function(require,module,exports){
40594
+ },{"./hash":370,"dup":187,"inherits":346,"safe-buffer":369}],374:[function(require,module,exports){
40573
40595
  arguments[4][188][0].apply(exports,arguments)
40574
- },{"./hash":369,"./sha256":374,"dup":188,"inherits":345,"safe-buffer":368}],374:[function(require,module,exports){
40596
+ },{"./hash":370,"./sha256":375,"dup":188,"inherits":346,"safe-buffer":369}],375:[function(require,module,exports){
40575
40597
  arguments[4][189][0].apply(exports,arguments)
40576
- },{"./hash":369,"dup":189,"inherits":345,"safe-buffer":368}],375:[function(require,module,exports){
40598
+ },{"./hash":370,"dup":189,"inherits":346,"safe-buffer":369}],376:[function(require,module,exports){
40577
40599
  arguments[4][190][0].apply(exports,arguments)
40578
- },{"./hash":369,"./sha512":376,"dup":190,"inherits":345,"safe-buffer":368}],376:[function(require,module,exports){
40600
+ },{"./hash":370,"./sha512":377,"dup":190,"inherits":346,"safe-buffer":369}],377:[function(require,module,exports){
40579
40601
  arguments[4][191][0].apply(exports,arguments)
40580
- },{"./hash":369,"dup":191,"inherits":345,"safe-buffer":368}],377:[function(require,module,exports){
40602
+ },{"./hash":370,"dup":191,"inherits":346,"safe-buffer":369}],378:[function(require,module,exports){
40581
40603
  arguments[4][207][0].apply(exports,arguments)
40582
- },{"dup":207,"safe-buffer":368}],378:[function(require,module,exports){
40604
+ },{"dup":207,"safe-buffer":369}],379:[function(require,module,exports){
40583
40605
  (function (Buffer){(function (){
40584
40606
  const BN = require('bn.js')
40585
40607
  const EC = require('elliptic').ec
@@ -40865,7 +40887,7 @@ module.exports = {
40865
40887
  }
40866
40888
 
40867
40889
  }).call(this)}).call(this,require("buffer").Buffer)
40868
- },{"./rfc6979":379,"bn.js":305,"buffer":67,"elliptic":315}],379:[function(require,module,exports){
40890
+ },{"./rfc6979":380,"bn.js":306,"buffer":67,"elliptic":316}],380:[function(require,module,exports){
40869
40891
  (function (Buffer){(function (){
40870
40892
  const createHmac = require('create-hmac')
40871
40893
 
@@ -40931,7 +40953,7 @@ function deterministicGenerateK (hash, x, checkSig, isPrivate, extraEntropy) {
40931
40953
  module.exports = deterministicGenerateK
40932
40954
 
40933
40955
  }).call(this)}).call(this,require("buffer").Buffer)
40934
- },{"buffer":67,"create-hmac":313}],380:[function(require,module,exports){
40956
+ },{"buffer":67,"create-hmac":314}],381:[function(require,module,exports){
40935
40957
  var native = require('./native')
40936
40958
 
40937
40959
  function getTypeName (fn) {
@@ -41043,7 +41065,7 @@ module.exports = {
41043
41065
  getValueTypeName: getValueTypeName
41044
41066
  }
41045
41067
 
41046
- },{"./native":383}],381:[function(require,module,exports){
41068
+ },{"./native":384}],382:[function(require,module,exports){
41047
41069
  (function (Buffer){(function (){
41048
41070
  var NATIVE = require('./native')
41049
41071
  var ERRORS = require('./errors')
@@ -41138,7 +41160,7 @@ for (var typeName in types) {
41138
41160
  module.exports = types
41139
41161
 
41140
41162
  }).call(this)}).call(this,{"isBuffer":require("../../../../node_modules/is-buffer/index.js")})
41141
- },{"../../../../node_modules/is-buffer/index.js":150,"./errors":380,"./native":383}],382:[function(require,module,exports){
41163
+ },{"../../../../node_modules/is-buffer/index.js":150,"./errors":381,"./native":384}],383:[function(require,module,exports){
41142
41164
  var ERRORS = require('./errors')
41143
41165
  var NATIVE = require('./native')
41144
41166
 
@@ -41400,7 +41422,7 @@ typeforce.TfPropertyTypeError = TfPropertyTypeError
41400
41422
 
41401
41423
  module.exports = typeforce
41402
41424
 
41403
- },{"./errors":380,"./extra":381,"./native":383}],383:[function(require,module,exports){
41425
+ },{"./errors":381,"./extra":382,"./native":384}],384:[function(require,module,exports){
41404
41426
  var types = {
41405
41427
  Array: function (value) { return value !== null && value !== undefined && value.constructor === Array },
41406
41428
  Boolean: function (value) { return typeof value === 'boolean' },
@@ -41423,9 +41445,9 @@ for (var typeName in types) {
41423
41445
 
41424
41446
  module.exports = types
41425
41447
 
41426
- },{}],384:[function(require,module,exports){
41448
+ },{}],385:[function(require,module,exports){
41427
41449
  arguments[4][209][0].apply(exports,arguments)
41428
- },{"dup":209}],385:[function(require,module,exports){
41450
+ },{"dup":209}],386:[function(require,module,exports){
41429
41451
  'use strict'
41430
41452
  var Buffer = require('safe-buffer').Buffer
41431
41453
 
@@ -41517,7 +41539,7 @@ function encodingLength (number) {
41517
41539
 
41518
41540
  module.exports = { encode: encode, decode: decode, encodingLength: encodingLength }
41519
41541
 
41520
- },{"safe-buffer":368}],386:[function(require,module,exports){
41542
+ },{"safe-buffer":369}],387:[function(require,module,exports){
41521
41543
  (function (Buffer){(function (){
41522
41544
  var bs58check = require('bs58check')
41523
41545
 
@@ -41584,9 +41606,436 @@ module.exports = {
41584
41606
  }
41585
41607
 
41586
41608
  }).call(this)}).call(this,require("buffer").Buffer)
41587
- },{"bs58check":309,"buffer":67}],387:[function(require,module,exports){
41609
+ },{"bs58check":310,"buffer":67}],388:[function(require,module,exports){
41610
+ "use strict";
41611
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
41612
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
41613
+ return new (P || (P = Promise))(function (resolve, reject) {
41614
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
41615
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41616
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41617
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
41618
+ });
41619
+ };
41620
+ var __generator = (this && this.__generator) || function (thisArg, body) {
41621
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41622
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
41623
+ function verb(n) { return function (v) { return step([n, v]); }; }
41624
+ function step(op) {
41625
+ if (f) throw new TypeError("Generator is already executing.");
41626
+ while (_) try {
41627
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
41628
+ if (y = 0, t) op = [op[0] & 2, t.value];
41629
+ switch (op[0]) {
41630
+ case 0: case 1: t = op; break;
41631
+ case 4: _.label++; return { value: op[1], done: false };
41632
+ case 5: _.label++; y = op[1]; op = [0]; continue;
41633
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
41634
+ default:
41635
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
41636
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
41637
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
41638
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41639
+ if (t[2]) _.ops.pop();
41640
+ _.trys.pop(); continue;
41641
+ }
41642
+ op = body.call(thisArg, _);
41643
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
41644
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
41645
+ }
41646
+ };
41647
+ Object.defineProperty(exports, "__esModule", { value: true });
41648
+ exports.Action = exports.ActionState = void 0;
41649
+ var errors_1 = require("../errors");
41650
+ var coinlib_error_1 = require("../errors/coinlib-error");
41651
+ var StateMachine_1 = require("./StateMachine");
41652
+ var ActionState;
41653
+ (function (ActionState) {
41654
+ ActionState[ActionState["READY"] = 0] = "READY";
41655
+ ActionState[ActionState["EXECUTING"] = 1] = "EXECUTING";
41656
+ ActionState[ActionState["COMPLETED"] = 2] = "COMPLETED";
41657
+ ActionState[ActionState["CANCELLED"] = 3] = "CANCELLED";
41658
+ })(ActionState = exports.ActionState || (exports.ActionState = {}));
41659
+ var Action = /** @class */ (function () {
41660
+ function Action(context) {
41661
+ this.stateMachine = new StateMachine_1.StateMachine(ActionState.READY, new Map([
41662
+ [ActionState.READY, []],
41663
+ [ActionState.EXECUTING, [ActionState.READY]],
41664
+ [ActionState.COMPLETED, [ActionState.EXECUTING]],
41665
+ [ActionState.CANCELLED, [ActionState.READY, ActionState.EXECUTING]]
41666
+ ]));
41667
+ this.context = context;
41668
+ }
41669
+ Object.defineProperty(Action.prototype, "identifier", {
41670
+ get: function () {
41671
+ return 'action';
41672
+ },
41673
+ enumerable: false,
41674
+ configurable: true
41675
+ });
41676
+ Action.prototype.getState = function () {
41677
+ return this.stateMachine.getState();
41678
+ };
41679
+ Action.prototype.start = function () {
41680
+ return __awaiter(this, void 0, void 0, function () {
41681
+ var result, error_1;
41682
+ return __generator(this, function (_a) {
41683
+ switch (_a.label) {
41684
+ case 0:
41685
+ _a.trys.push([0, 2, , 3]);
41686
+ this.stateMachine.transitionTo(ActionState.EXECUTING);
41687
+ return [4 /*yield*/, this.perform()];
41688
+ case 1:
41689
+ result = _a.sent();
41690
+ this.handleSuccess(result);
41691
+ return [3 /*break*/, 3];
41692
+ case 2:
41693
+ error_1 = _a.sent();
41694
+ this.handleError(error_1);
41695
+ return [3 /*break*/, 3];
41696
+ case 3: return [2 /*return*/];
41697
+ }
41698
+ });
41699
+ });
41700
+ };
41701
+ Action.prototype.cancel = function () {
41702
+ this.stateMachine.transitionTo(ActionState.CANCELLED);
41703
+ if (this.onCancel) {
41704
+ this.onCancel();
41705
+ }
41706
+ };
41707
+ Action.prototype.addValidTransition = function (from, to) {
41708
+ this.stateMachine.addValidStateTransition(from, to);
41709
+ };
41710
+ Action.prototype.handleSuccess = function (result) {
41711
+ this.result = result;
41712
+ this.stateMachine.transitionTo(ActionState.COMPLETED);
41713
+ if (this.onComplete) {
41714
+ this.onComplete(result);
41715
+ }
41716
+ };
41717
+ Action.prototype.handleError = function (error) {
41718
+ this.error = error;
41719
+ this.stateMachine.transitionTo(ActionState.COMPLETED);
41720
+ if (this.onError) {
41721
+ this.onError(error);
41722
+ }
41723
+ throw new errors_1.InvalidValueError(coinlib_error_1.Domain.ACTIONS, error.message);
41724
+ };
41725
+ return Action;
41726
+ }());
41727
+ exports.Action = Action;
41728
+
41729
+ },{"../errors":585,"../errors/coinlib-error":584,"./StateMachine":392}],389:[function(require,module,exports){
41730
+ "use strict";
41731
+ var __extends = (this && this.__extends) || (function () {
41732
+ var extendStatics = function (d, b) {
41733
+ extendStatics = Object.setPrototypeOf ||
41734
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
41735
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
41736
+ return extendStatics(d, b);
41737
+ };
41738
+ return function (d, b) {
41739
+ extendStatics(d, b);
41740
+ function __() { this.constructor = d; }
41741
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41742
+ };
41743
+ })();
41744
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
41745
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
41746
+ return new (P || (P = Promise))(function (resolve, reject) {
41747
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
41748
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41749
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41750
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
41751
+ });
41752
+ };
41753
+ var __generator = (this && this.__generator) || function (thisArg, body) {
41754
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41755
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
41756
+ function verb(n) { return function (v) { return step([n, v]); }; }
41757
+ function step(op) {
41758
+ if (f) throw new TypeError("Generator is already executing.");
41759
+ while (_) try {
41760
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
41761
+ if (y = 0, t) op = [op[0] & 2, t.value];
41762
+ switch (op[0]) {
41763
+ case 0: case 1: t = op; break;
41764
+ case 4: _.label++; return { value: op[1], done: false };
41765
+ case 5: _.label++; y = op[1]; op = [0]; continue;
41766
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
41767
+ default:
41768
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
41769
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
41770
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
41771
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41772
+ if (t[2]) _.ops.pop();
41773
+ _.trys.pop(); continue;
41774
+ }
41775
+ op = body.call(thisArg, _);
41776
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
41777
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
41778
+ }
41779
+ };
41780
+ Object.defineProperty(exports, "__esModule", { value: true });
41781
+ exports.LinkedAction = void 0;
41782
+ var Action_1 = require("./Action");
41783
+ var LinkedAction = /** @class */ (function (_super) {
41784
+ __extends(LinkedAction, _super);
41785
+ function LinkedAction(action, linkedActionType) {
41786
+ var _this = _super.call(this) || this;
41787
+ _this.linkedActionType = linkedActionType;
41788
+ _this.action = action;
41789
+ return _this;
41790
+ }
41791
+ LinkedAction.prototype.getLinkedAction = function () {
41792
+ return this.linkedAction;
41793
+ };
41794
+ LinkedAction.prototype.perform = function () {
41795
+ return __awaiter(this, void 0, void 0, function () {
41796
+ return __generator(this, function (_a) {
41797
+ switch (_a.label) {
41798
+ case 0: return [4 /*yield*/, this.action.start()];
41799
+ case 1:
41800
+ _a.sent();
41801
+ this.linkedAction = new this.linkedActionType(this.action.result);
41802
+ return [4 /*yield*/, this.linkedAction.start()];
41803
+ case 2:
41804
+ _a.sent();
41805
+ return [2 /*return*/, this.linkedAction.result];
41806
+ }
41807
+ });
41808
+ });
41809
+ };
41810
+ LinkedAction.prototype.cancel = function () {
41811
+ if (this.action.getState() === Action_1.ActionState.EXECUTING) {
41812
+ this.action.cancel();
41813
+ }
41814
+ else if (this.linkedAction !== undefined && this.linkedAction.getState() === Action_1.ActionState.EXECUTING) {
41815
+ this.linkedAction.cancel();
41816
+ }
41817
+ _super.prototype.cancel.call(this);
41818
+ };
41819
+ return LinkedAction;
41820
+ }(Action_1.Action));
41821
+ exports.LinkedAction = LinkedAction;
41822
+
41823
+ },{"./Action":388}],390:[function(require,module,exports){
41824
+ "use strict";
41825
+ var __extends = (this && this.__extends) || (function () {
41826
+ var extendStatics = function (d, b) {
41827
+ extendStatics = Object.setPrototypeOf ||
41828
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
41829
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
41830
+ return extendStatics(d, b);
41831
+ };
41832
+ return function (d, b) {
41833
+ extendStatics(d, b);
41834
+ function __() { this.constructor = d; }
41835
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41836
+ };
41837
+ })();
41838
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
41839
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
41840
+ return new (P || (P = Promise))(function (resolve, reject) {
41841
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
41842
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41843
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41844
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
41845
+ });
41846
+ };
41847
+ var __generator = (this && this.__generator) || function (thisArg, body) {
41848
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41849
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
41850
+ function verb(n) { return function (v) { return step([n, v]); }; }
41851
+ function step(op) {
41852
+ if (f) throw new TypeError("Generator is already executing.");
41853
+ while (_) try {
41854
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
41855
+ if (y = 0, t) op = [op[0] & 2, t.value];
41856
+ switch (op[0]) {
41857
+ case 0: case 1: t = op; break;
41858
+ case 4: _.label++; return { value: op[1], done: false };
41859
+ case 5: _.label++; y = op[1]; op = [0]; continue;
41860
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
41861
+ default:
41862
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
41863
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
41864
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
41865
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41866
+ if (t[2]) _.ops.pop();
41867
+ _.trys.pop(); continue;
41868
+ }
41869
+ op = body.call(thisArg, _);
41870
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
41871
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
41872
+ }
41873
+ };
41874
+ Object.defineProperty(exports, "__esModule", { value: true });
41875
+ exports.RepeatableAction = void 0;
41876
+ var Action_1 = require("./Action");
41877
+ var RepeatableAction = /** @class */ (function (_super) {
41878
+ __extends(RepeatableAction, _super);
41879
+ function RepeatableAction(context, actionFactory) {
41880
+ var _this = _super.call(this, context) || this;
41881
+ _this.actionFactory = actionFactory;
41882
+ _this.addValidTransition(Action_1.ActionState.EXECUTING, Action_1.ActionState.EXECUTING);
41883
+ _this.addValidTransition(Action_1.ActionState.COMPLETED, Action_1.ActionState.EXECUTING);
41884
+ _this.addValidTransition(Action_1.ActionState.CANCELLED, Action_1.ActionState.EXECUTING);
41885
+ return _this;
41886
+ }
41887
+ RepeatableAction.prototype.perform = function () {
41888
+ return __awaiter(this, void 0, void 0, function () {
41889
+ return __generator(this, function (_a) {
41890
+ switch (_a.label) {
41891
+ case 0:
41892
+ if (this.innerAction !== undefined && this.innerAction.getState() === Action_1.ActionState.EXECUTING) {
41893
+ this.innerAction.cancel();
41894
+ }
41895
+ this.innerAction = this.actionFactory();
41896
+ return [4 /*yield*/, this.innerAction.start()];
41897
+ case 1:
41898
+ _a.sent();
41899
+ return [2 /*return*/, this.innerAction.result];
41900
+ }
41901
+ });
41902
+ });
41903
+ };
41904
+ RepeatableAction.prototype.cancel = function () {
41905
+ if (this.innerAction !== undefined && this.innerAction.getState() === Action_1.ActionState.EXECUTING) {
41906
+ this.innerAction.cancel();
41907
+ }
41908
+ _super.prototype.cancel.call(this);
41909
+ };
41910
+ return RepeatableAction;
41911
+ }(Action_1.Action));
41912
+ exports.RepeatableAction = RepeatableAction;
41913
+
41914
+ },{"./Action":388}],391:[function(require,module,exports){
41915
+ "use strict";
41916
+ var __extends = (this && this.__extends) || (function () {
41917
+ var extendStatics = function (d, b) {
41918
+ extendStatics = Object.setPrototypeOf ||
41919
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
41920
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
41921
+ return extendStatics(d, b);
41922
+ };
41923
+ return function (d, b) {
41924
+ extendStatics(d, b);
41925
+ function __() { this.constructor = d; }
41926
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41927
+ };
41928
+ })();
41929
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
41930
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
41931
+ return new (P || (P = Promise))(function (resolve, reject) {
41932
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
41933
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41934
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41935
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
41936
+ });
41937
+ };
41938
+ var __generator = (this && this.__generator) || function (thisArg, body) {
41939
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41940
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
41941
+ function verb(n) { return function (v) { return step([n, v]); }; }
41942
+ function step(op) {
41943
+ if (f) throw new TypeError("Generator is already executing.");
41944
+ while (_) try {
41945
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
41946
+ if (y = 0, t) op = [op[0] & 2, t.value];
41947
+ switch (op[0]) {
41948
+ case 0: case 1: t = op; break;
41949
+ case 4: _.label++; return { value: op[1], done: false };
41950
+ case 5: _.label++; y = op[1]; op = [0]; continue;
41951
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
41952
+ default:
41953
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
41954
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
41955
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
41956
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41957
+ if (t[2]) _.ops.pop();
41958
+ _.trys.pop(); continue;
41959
+ }
41960
+ op = body.call(thisArg, _);
41961
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
41962
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
41963
+ }
41964
+ };
41965
+ Object.defineProperty(exports, "__esModule", { value: true });
41966
+ exports.SimpleAction = void 0;
41967
+ var Action_1 = require("./Action");
41968
+ var SimpleAction = /** @class */ (function (_super) {
41969
+ __extends(SimpleAction, _super);
41970
+ function SimpleAction(promise) {
41971
+ var _this = _super.call(this) || this;
41972
+ _this.promise = promise;
41973
+ return _this;
41974
+ }
41975
+ Object.defineProperty(SimpleAction.prototype, "identifier", {
41976
+ get: function () {
41977
+ return 'simple-action';
41978
+ },
41979
+ enumerable: false,
41980
+ configurable: true
41981
+ });
41982
+ SimpleAction.prototype.perform = function () {
41983
+ return __awaiter(this, void 0, void 0, function () {
41984
+ return __generator(this, function (_a) {
41985
+ return [2 /*return*/, this.promise()];
41986
+ });
41987
+ });
41988
+ };
41989
+ return SimpleAction;
41990
+ }(Action_1.Action));
41991
+ exports.SimpleAction = SimpleAction;
41992
+
41993
+ },{"./Action":388}],392:[function(require,module,exports){
41994
+ "use strict";
41995
+ Object.defineProperty(exports, "__esModule", { value: true });
41996
+ exports.StateMachine = void 0;
41997
+ var errors_1 = require("../errors");
41998
+ var coinlib_error_1 = require("../errors/coinlib-error");
41999
+ var StateMachine = /** @class */ (function () {
42000
+ function StateMachine(initialState, validTransitions) {
42001
+ this.state = initialState;
42002
+ this.validTransitions = validTransitions;
42003
+ }
42004
+ StateMachine.prototype.transitionTo = function (state) {
42005
+ if (this.canTransitionTo(state)) {
42006
+ this.state = state;
42007
+ }
42008
+ else {
42009
+ throw new errors_1.OperationFailedError(coinlib_error_1.Domain.ACTIONS, "Invalid state transition: " + this.state + " -> " + state);
42010
+ }
42011
+ };
42012
+ StateMachine.prototype.getState = function () {
42013
+ return this.state;
42014
+ };
42015
+ StateMachine.prototype.addValidStateTransition = function (from, to) {
42016
+ var states = this.validTransitions.get(to);
42017
+ if (states !== undefined && states.indexOf(from) === -1) {
42018
+ states.push(from);
42019
+ this.validTransitions.set(to, states);
42020
+ }
42021
+ else {
42022
+ this.validTransitions.set(to, [from]);
42023
+ }
42024
+ };
42025
+ StateMachine.prototype.canTransitionTo = function (state) {
42026
+ var states = this.validTransitions.get(state);
42027
+ if (states !== undefined) {
42028
+ return states.indexOf(this.state) !== -1;
42029
+ }
42030
+ return false;
42031
+ };
42032
+ return StateMachine;
42033
+ }());
42034
+ exports.StateMachine = StateMachine;
42035
+
42036
+ },{"../errors":585,"../errors/coinlib-error":584}],393:[function(require,module,exports){
41588
42037
  module.exports = require('./lib/axios');
41589
- },{"./lib/axios":389}],388:[function(require,module,exports){
42038
+ },{"./lib/axios":395}],394:[function(require,module,exports){
41590
42039
  'use strict';
41591
42040
 
41592
42041
  var utils = require('./../utils');
@@ -41762,7 +42211,7 @@ module.exports = function xhrAdapter(config) {
41762
42211
  });
41763
42212
  };
41764
42213
 
41765
- },{"../core/createError":395,"./../core/settle":399,"./../helpers/buildURL":403,"./../helpers/cookies":405,"./../helpers/isURLSameOrigin":407,"./../helpers/parseHeaders":409,"./../utils":411}],389:[function(require,module,exports){
42214
+ },{"../core/createError":401,"./../core/settle":405,"./../helpers/buildURL":409,"./../helpers/cookies":411,"./../helpers/isURLSameOrigin":413,"./../helpers/parseHeaders":415,"./../utils":417}],395:[function(require,module,exports){
41766
42215
  'use strict';
41767
42216
 
41768
42217
  var utils = require('./utils');
@@ -41817,7 +42266,7 @@ module.exports = axios;
41817
42266
  // Allow use of default import syntax in TypeScript
41818
42267
  module.exports.default = axios;
41819
42268
 
41820
- },{"./cancel/Cancel":390,"./cancel/CancelToken":391,"./cancel/isCancel":392,"./core/Axios":393,"./core/mergeConfig":398,"./defaults":401,"./helpers/bind":402,"./helpers/spread":410,"./utils":411}],390:[function(require,module,exports){
42269
+ },{"./cancel/Cancel":396,"./cancel/CancelToken":397,"./cancel/isCancel":398,"./core/Axios":399,"./core/mergeConfig":404,"./defaults":407,"./helpers/bind":408,"./helpers/spread":416,"./utils":417}],396:[function(require,module,exports){
41821
42270
  'use strict';
41822
42271
 
41823
42272
  /**
@@ -41838,7 +42287,7 @@ Cancel.prototype.__CANCEL__ = true;
41838
42287
 
41839
42288
  module.exports = Cancel;
41840
42289
 
41841
- },{}],391:[function(require,module,exports){
42290
+ },{}],397:[function(require,module,exports){
41842
42291
  'use strict';
41843
42292
 
41844
42293
  var Cancel = require('./Cancel');
@@ -41897,14 +42346,14 @@ CancelToken.source = function source() {
41897
42346
 
41898
42347
  module.exports = CancelToken;
41899
42348
 
41900
- },{"./Cancel":390}],392:[function(require,module,exports){
42349
+ },{"./Cancel":396}],398:[function(require,module,exports){
41901
42350
  'use strict';
41902
42351
 
41903
42352
  module.exports = function isCancel(value) {
41904
42353
  return !!(value && value.__CANCEL__);
41905
42354
  };
41906
42355
 
41907
- },{}],393:[function(require,module,exports){
42356
+ },{}],399:[function(require,module,exports){
41908
42357
  'use strict';
41909
42358
 
41910
42359
  var utils = require('./../utils');
@@ -41992,7 +42441,7 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
41992
42441
 
41993
42442
  module.exports = Axios;
41994
42443
 
41995
- },{"../helpers/buildURL":403,"./../utils":411,"./InterceptorManager":394,"./dispatchRequest":396,"./mergeConfig":398}],394:[function(require,module,exports){
42444
+ },{"../helpers/buildURL":409,"./../utils":417,"./InterceptorManager":400,"./dispatchRequest":402,"./mergeConfig":404}],400:[function(require,module,exports){
41996
42445
  'use strict';
41997
42446
 
41998
42447
  var utils = require('./../utils');
@@ -42046,7 +42495,7 @@ InterceptorManager.prototype.forEach = function forEach(fn) {
42046
42495
 
42047
42496
  module.exports = InterceptorManager;
42048
42497
 
42049
- },{"./../utils":411}],395:[function(require,module,exports){
42498
+ },{"./../utils":417}],401:[function(require,module,exports){
42050
42499
  'use strict';
42051
42500
 
42052
42501
  var enhanceError = require('./enhanceError');
@@ -42066,7 +42515,7 @@ module.exports = function createError(message, config, code, request, response)
42066
42515
  return enhanceError(error, config, code, request, response);
42067
42516
  };
42068
42517
 
42069
- },{"./enhanceError":397}],396:[function(require,module,exports){
42518
+ },{"./enhanceError":403}],402:[function(require,module,exports){
42070
42519
  'use strict';
42071
42520
 
42072
42521
  var utils = require('./../utils');
@@ -42154,7 +42603,7 @@ module.exports = function dispatchRequest(config) {
42154
42603
  });
42155
42604
  };
42156
42605
 
42157
- },{"../cancel/isCancel":392,"../defaults":401,"./../helpers/combineURLs":404,"./../helpers/isAbsoluteURL":406,"./../utils":411,"./transformData":400}],397:[function(require,module,exports){
42606
+ },{"../cancel/isCancel":398,"../defaults":407,"./../helpers/combineURLs":410,"./../helpers/isAbsoluteURL":412,"./../utils":417,"./transformData":406}],403:[function(require,module,exports){
42158
42607
  'use strict';
42159
42608
 
42160
42609
  /**
@@ -42198,7 +42647,7 @@ module.exports = function enhanceError(error, config, code, request, response) {
42198
42647
  return error;
42199
42648
  };
42200
42649
 
42201
- },{}],398:[function(require,module,exports){
42650
+ },{}],404:[function(require,module,exports){
42202
42651
  'use strict';
42203
42652
 
42204
42653
  var utils = require('../utils');
@@ -42251,7 +42700,7 @@ module.exports = function mergeConfig(config1, config2) {
42251
42700
  return config;
42252
42701
  };
42253
42702
 
42254
- },{"../utils":411}],399:[function(require,module,exports){
42703
+ },{"../utils":417}],405:[function(require,module,exports){
42255
42704
  'use strict';
42256
42705
 
42257
42706
  var createError = require('./createError');
@@ -42278,7 +42727,7 @@ module.exports = function settle(resolve, reject, response) {
42278
42727
  }
42279
42728
  };
42280
42729
 
42281
- },{"./createError":395}],400:[function(require,module,exports){
42730
+ },{"./createError":401}],406:[function(require,module,exports){
42282
42731
  'use strict';
42283
42732
 
42284
42733
  var utils = require('./../utils');
@@ -42300,7 +42749,7 @@ module.exports = function transformData(data, headers, fns) {
42300
42749
  return data;
42301
42750
  };
42302
42751
 
42303
- },{"./../utils":411}],401:[function(require,module,exports){
42752
+ },{"./../utils":417}],407:[function(require,module,exports){
42304
42753
  (function (process){(function (){
42305
42754
  'use strict';
42306
42755
 
@@ -42402,7 +42851,7 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
42402
42851
  module.exports = defaults;
42403
42852
 
42404
42853
  }).call(this)}).call(this,require('_process'))
42405
- },{"./adapters/http":388,"./adapters/xhr":388,"./helpers/normalizeHeaderName":408,"./utils":411,"_process":171}],402:[function(require,module,exports){
42854
+ },{"./adapters/http":394,"./adapters/xhr":394,"./helpers/normalizeHeaderName":414,"./utils":417,"_process":171}],408:[function(require,module,exports){
42406
42855
  'use strict';
42407
42856
 
42408
42857
  module.exports = function bind(fn, thisArg) {
@@ -42415,7 +42864,7 @@ module.exports = function bind(fn, thisArg) {
42415
42864
  };
42416
42865
  };
42417
42866
 
42418
- },{}],403:[function(require,module,exports){
42867
+ },{}],409:[function(require,module,exports){
42419
42868
  'use strict';
42420
42869
 
42421
42870
  var utils = require('./../utils');
@@ -42488,7 +42937,7 @@ module.exports = function buildURL(url, params, paramsSerializer) {
42488
42937
  return url;
42489
42938
  };
42490
42939
 
42491
- },{"./../utils":411}],404:[function(require,module,exports){
42940
+ },{"./../utils":417}],410:[function(require,module,exports){
42492
42941
  'use strict';
42493
42942
 
42494
42943
  /**
@@ -42504,7 +42953,7 @@ module.exports = function combineURLs(baseURL, relativeURL) {
42504
42953
  : baseURL;
42505
42954
  };
42506
42955
 
42507
- },{}],405:[function(require,module,exports){
42956
+ },{}],411:[function(require,module,exports){
42508
42957
  'use strict';
42509
42958
 
42510
42959
  var utils = require('./../utils');
@@ -42559,7 +43008,7 @@ module.exports = (
42559
43008
  })()
42560
43009
  );
42561
43010
 
42562
- },{"./../utils":411}],406:[function(require,module,exports){
43011
+ },{"./../utils":417}],412:[function(require,module,exports){
42563
43012
  'use strict';
42564
43013
 
42565
43014
  /**
@@ -42575,7 +43024,7 @@ module.exports = function isAbsoluteURL(url) {
42575
43024
  return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
42576
43025
  };
42577
43026
 
42578
- },{}],407:[function(require,module,exports){
43027
+ },{}],413:[function(require,module,exports){
42579
43028
  'use strict';
42580
43029
 
42581
43030
  var utils = require('./../utils');
@@ -42645,7 +43094,7 @@ module.exports = (
42645
43094
  })()
42646
43095
  );
42647
43096
 
42648
- },{"./../utils":411}],408:[function(require,module,exports){
43097
+ },{"./../utils":417}],414:[function(require,module,exports){
42649
43098
  'use strict';
42650
43099
 
42651
43100
  var utils = require('../utils');
@@ -42659,7 +43108,7 @@ module.exports = function normalizeHeaderName(headers, normalizedName) {
42659
43108
  });
42660
43109
  };
42661
43110
 
42662
- },{"../utils":411}],409:[function(require,module,exports){
43111
+ },{"../utils":417}],415:[function(require,module,exports){
42663
43112
  'use strict';
42664
43113
 
42665
43114
  var utils = require('./../utils');
@@ -42714,7 +43163,7 @@ module.exports = function parseHeaders(headers) {
42714
43163
  return parsed;
42715
43164
  };
42716
43165
 
42717
- },{"./../utils":411}],410:[function(require,module,exports){
43166
+ },{"./../utils":417}],416:[function(require,module,exports){
42718
43167
  'use strict';
42719
43168
 
42720
43169
  /**
@@ -42743,7 +43192,7 @@ module.exports = function spread(callback) {
42743
43192
  };
42744
43193
  };
42745
43194
 
42746
- },{}],411:[function(require,module,exports){
43195
+ },{}],417:[function(require,module,exports){
42747
43196
  'use strict';
42748
43197
 
42749
43198
  var bind = require('./helpers/bind');
@@ -43079,7 +43528,7 @@ module.exports = {
43079
43528
  trim: trim
43080
43529
  };
43081
43530
 
43082
- },{"../../is-buffer-2.0.3/index":538,"./helpers/bind":402}],412:[function(require,module,exports){
43531
+ },{"../../is-buffer-2.0.3/index":544,"./helpers/bind":408}],418:[function(require,module,exports){
43083
43532
  'use strict'
43084
43533
  // base-x encoding / decoding
43085
43534
  // Copyright (c) 2018 base-x contributors
@@ -43201,7 +43650,7 @@ function base (ALPHABET) {
43201
43650
  }
43202
43651
  module.exports = base
43203
43652
 
43204
- },{"../../safe-buffer-5.2.0/index":553}],413:[function(require,module,exports){
43653
+ },{"../../safe-buffer-5.2.0/index":559}],419:[function(require,module,exports){
43205
43654
  'use strict'
43206
43655
  let ALPHABET = 'qpzry9x8gf2tvdw0s3jn54khce6mua7l'
43207
43656
 
@@ -43342,7 +43791,7 @@ function fromWords (words) {
43342
43791
 
43343
43792
  module.exports = { decode, encode, toWords, fromWords }
43344
43793
 
43345
- },{}],414:[function(require,module,exports){
43794
+ },{}],420:[function(require,module,exports){
43346
43795
  'use strict'
43347
43796
  var ALPHABET = 'qpzry9x8gf2tvdw0s3jn54khce6mua7l'
43348
43797
 
@@ -43491,7 +43940,7 @@ module.exports = {
43491
43940
  fromWords: fromWords
43492
43941
  }
43493
43942
 
43494
- },{}],415:[function(require,module,exports){
43943
+ },{}],421:[function(require,module,exports){
43495
43944
  // (public) Constructor
43496
43945
  function BigInteger(a, b, c) {
43497
43946
  if (!(this instanceof BigInteger))
@@ -45002,7 +45451,7 @@ BigInteger.valueOf = nbv
45002
45451
 
45003
45452
  module.exports = BigInteger
45004
45453
 
45005
- },{"../package.json":418}],416:[function(require,module,exports){
45454
+ },{"../package.json":424}],422:[function(require,module,exports){
45006
45455
  (function (Buffer){(function (){
45007
45456
  // FIXME: Kind of a weird way to throw exceptions, consider removing
45008
45457
  var assert = require('assert')
@@ -45097,14 +45546,14 @@ BigInteger.prototype.toHex = function(size) {
45097
45546
  }
45098
45547
 
45099
45548
  }).call(this)}).call(this,require("buffer").Buffer)
45100
- },{"./bigi":415,"assert":16,"buffer":67}],417:[function(require,module,exports){
45549
+ },{"./bigi":421,"assert":16,"buffer":67}],423:[function(require,module,exports){
45101
45550
  var BigInteger = require('./bigi')
45102
45551
 
45103
45552
  //addons
45104
45553
  require('./convert')
45105
45554
 
45106
45555
  module.exports = BigInteger
45107
- },{"./bigi":415,"./convert":416}],418:[function(require,module,exports){
45556
+ },{"./bigi":421,"./convert":422}],424:[function(require,module,exports){
45108
45557
  module.exports={
45109
45558
  "name": "bigi",
45110
45559
  "version": "1.4.2",
@@ -45160,7 +45609,7 @@ module.exports={
45160
45609
  ]
45161
45610
  }
45162
45611
  }
45163
- },{}],419:[function(require,module,exports){
45612
+ },{}],425:[function(require,module,exports){
45164
45613
  ;(function (globalObject) {
45165
45614
  'use strict';
45166
45615
 
@@ -48064,7 +48513,7 @@ module.exports={
48064
48513
  }
48065
48514
  })(this);
48066
48515
 
48067
- },{}],420:[function(require,module,exports){
48516
+ },{}],426:[function(require,module,exports){
48068
48517
  var Buffer = require('../safe-buffer-5.2.0/index').Buffer
48069
48518
  var createHash = require('../create-hash-1.2.0/browser')
48070
48519
  var pbkdf2 = require('../pbkdf2-3.0.17/index').pbkdf2Sync
@@ -48219,7 +48668,7 @@ module.exports = {
48219
48668
  }
48220
48669
  }
48221
48670
 
48222
- },{"../create-hash-1.2.0/browser":485,"../pbkdf2-3.0.17/index":545,"../randombytes-2.1.0/browser":551,"../safe-buffer-5.2.0/index":553,"../unorm-1.6.0/lib/unorm":575,"./wordlists/chinese_simplified.json":421,"./wordlists/chinese_traditional.json":422,"./wordlists/english.json":423,"./wordlists/french.json":424,"./wordlists/italian.json":425,"./wordlists/japanese.json":426,"./wordlists/korean.json":427,"./wordlists/spanish.json":428}],421:[function(require,module,exports){
48671
+ },{"../create-hash-1.2.0/browser":491,"../pbkdf2-3.0.17/index":551,"../randombytes-2.1.0/browser":557,"../safe-buffer-5.2.0/index":559,"../unorm-1.6.0/lib/unorm":581,"./wordlists/chinese_simplified.json":427,"./wordlists/chinese_traditional.json":428,"./wordlists/english.json":429,"./wordlists/french.json":430,"./wordlists/italian.json":431,"./wordlists/japanese.json":432,"./wordlists/korean.json":433,"./wordlists/spanish.json":434}],427:[function(require,module,exports){
48223
48672
  module.exports=[
48224
48673
  "的",
48225
48674
  "一",
@@ -50270,7 +50719,7 @@ module.exports=[
50270
50719
  "矮",
50271
50720
  "歇"
50272
50721
  ]
50273
- },{}],422:[function(require,module,exports){
50722
+ },{}],428:[function(require,module,exports){
50274
50723
  module.exports=[
50275
50724
  "的",
50276
50725
  "一",
@@ -52321,7 +52770,7 @@ module.exports=[
52321
52770
  "矮",
52322
52771
  "歇"
52323
52772
  ]
52324
- },{}],423:[function(require,module,exports){
52773
+ },{}],429:[function(require,module,exports){
52325
52774
  module.exports=[
52326
52775
  "abandon",
52327
52776
  "ability",
@@ -54372,7 +54821,7 @@ module.exports=[
54372
54821
  "zone",
54373
54822
  "zoo"
54374
54823
  ]
54375
- },{}],424:[function(require,module,exports){
54824
+ },{}],430:[function(require,module,exports){
54376
54825
  module.exports=[
54377
54826
  "abaisser",
54378
54827
  "abandon",
@@ -56423,7 +56872,7 @@ module.exports=[
56423
56872
  "zeste",
56424
56873
  "zoologie"
56425
56874
  ]
56426
- },{}],425:[function(require,module,exports){
56875
+ },{}],431:[function(require,module,exports){
56427
56876
  module.exports=[
56428
56877
  "abaco",
56429
56878
  "abbaglio",
@@ -58474,7 +58923,7 @@ module.exports=[
58474
58923
  "zulu",
58475
58924
  "zuppa"
58476
58925
  ]
58477
- },{}],426:[function(require,module,exports){
58926
+ },{}],432:[function(require,module,exports){
58478
58927
  module.exports=[
58479
58928
  "あいこくしん",
58480
58929
  "あいさつ",
@@ -60525,7 +60974,7 @@ module.exports=[
60525
60974
  "わらう",
60526
60975
  "われる"
60527
60976
  ]
60528
- },{}],427:[function(require,module,exports){
60977
+ },{}],433:[function(require,module,exports){
60529
60978
  module.exports=[
60530
60979
  "가격",
60531
60980
  "가끔",
@@ -62576,7 +63025,7 @@ module.exports=[
62576
63025
  "흰색",
62577
63026
  "힘껏"
62578
63027
  ]
62579
- },{}],428:[function(require,module,exports){
63028
+ },{}],434:[function(require,module,exports){
62580
63029
  module.exports=[
62581
63030
  "ábaco",
62582
63031
  "abdomen",
@@ -64627,7 +65076,7 @@ module.exports=[
64627
65076
  "zumo",
64628
65077
  "zurdo"
64629
65078
  ]
64630
- },{}],429:[function(require,module,exports){
65079
+ },{}],435:[function(require,module,exports){
64631
65080
  // Reference https://github.com/bitcoin/bips/blob/master/bip-0066.mediawiki
64632
65081
  // Format: 0x30 [total-length] 0x02 [R-length] [R] 0x02 [S-length] [S]
64633
65082
  // NOTE: SIGHASH byte ignored AND restricted, truncate before use
@@ -64742,7 +65191,7 @@ module.exports = {
64742
65191
  encode: encode
64743
65192
  }
64744
65193
 
64745
- },{"../safe-buffer-5.2.0/index":553}],430:[function(require,module,exports){
65194
+ },{"../safe-buffer-5.2.0/index":559}],436:[function(require,module,exports){
64746
65195
  module.exports={
64747
65196
  "OP_FALSE": 0,
64748
65197
  "OP_0": 0,
@@ -64863,9 +65312,9 @@ module.exports={
64863
65312
  "OP_PUBKEY": 254,
64864
65313
  "OP_INVALIDOPCODE": 255
64865
65314
  }
64866
- },{}],431:[function(require,module,exports){
64867
- arguments[4][259][0].apply(exports,arguments)
64868
- },{"./index.json":430,"dup":259}],432:[function(require,module,exports){
65315
+ },{}],437:[function(require,module,exports){
65316
+ arguments[4][260][0].apply(exports,arguments)
65317
+ },{"./index.json":436,"dup":260}],438:[function(require,module,exports){
64869
65318
  (function (Buffer){(function (){
64870
65319
  const bs58check = require('../bs58check-2.1.2/index')
64871
65320
  const bech32 = require('../bech32-1.1.3/index')
@@ -65026,7 +65475,7 @@ module.exports = {
65026
65475
  }
65027
65476
 
65028
65477
  }).call(this)}).call(this,require("buffer").Buffer)
65029
- },{"../bech32-1.1.3/index":414,"../bs58check-2.1.2/index":480,"../buffer-equals-1.0.4/index":483,"../create-hash-1.2.0/browser":485,"../secp256k1-3.7.1/elliptic":554,"../varuint-bitcoin-1.1.2/index":576,"buffer":67}],433:[function(require,module,exports){
65478
+ },{"../bech32-1.1.3/index":420,"../bs58check-2.1.2/index":486,"../buffer-equals-1.0.4/index":489,"../create-hash-1.2.0/browser":491,"../secp256k1-3.7.1/elliptic":560,"../varuint-bitcoin-1.1.2/index":582,"buffer":67}],439:[function(require,module,exports){
65030
65479
  var Buffer = require('../../safe-buffer-5.2.0/index').Buffer
65031
65480
  var bech32 = require('../../bech32-0.0.3/index')
65032
65481
  var bs58check = require('../../bs58check-2.1.2/index')
@@ -65137,7 +65586,7 @@ module.exports = {
65137
65586
  toOutputScript: toOutputScript
65138
65587
  }
65139
65588
 
65140
- },{"../../bech32-0.0.3/index":413,"../../bs58check-2.1.2/base":479,"../../bs58check-2.1.2/index":480,"../../safe-buffer-5.2.0/index":553,"../../typeforce-1.18.0/index":573,"./networks":445,"./script":446,"./templates":448,"./types":472}],434:[function(require,module,exports){
65589
+ },{"../../bech32-0.0.3/index":419,"../../bs58check-2.1.2/base":485,"../../bs58check-2.1.2/index":486,"../../safe-buffer-5.2.0/index":559,"../../typeforce-1.18.0/index":579,"./networks":451,"./script":452,"./templates":454,"./types":478}],440:[function(require,module,exports){
65141
65590
  var Buffer = require('../../safe-buffer-5.2.0/index').Buffer
65142
65591
  var bcrypto = require('./crypto')
65143
65592
  var fastMerkleRoot = require('../../merkle-lib-2.0.10/fastRoot')
@@ -65373,7 +65822,7 @@ Block.prototype.checkProofOfWork = function () {
65373
65822
 
65374
65823
  module.exports = Block
65375
65824
 
65376
- },{"../../merkle-lib-2.0.10/fastRoot":540,"../../safe-buffer-5.2.0/index":553,"../../typeforce-1.18.0/index":573,"../../varuint-bitcoin-1.1.2/index":576,"./coins":437,"./crypto":438,"./networks":445,"./transaction":470,"./types":472}],435:[function(require,module,exports){
65825
+ },{"../../merkle-lib-2.0.10/fastRoot":546,"../../safe-buffer-5.2.0/index":559,"../../typeforce-1.18.0/index":579,"../../varuint-bitcoin-1.1.2/index":582,"./coins":443,"./crypto":444,"./networks":451,"./transaction":476,"./types":478}],441:[function(require,module,exports){
65377
65826
  var Buffer = require('../../safe-buffer-5.2.0/index').Buffer
65378
65827
  var bufferutils = require('./bufferutils')
65379
65828
  var varuint = require('../../varuint-bitcoin-1.1.2/index')
@@ -65415,7 +65864,7 @@ BufferWriter.prototype.writeVarSlice = function (slice) {
65415
65864
 
65416
65865
  module.exports = BufferWriter
65417
65866
 
65418
- },{"../../safe-buffer-5.2.0/index":553,"../../varuint-bitcoin-1.1.2/index":576,"./bufferutils":436}],436:[function(require,module,exports){
65867
+ },{"../../safe-buffer-5.2.0/index":559,"../../varuint-bitcoin-1.1.2/index":582,"./bufferutils":442}],442:[function(require,module,exports){
65419
65868
  var pushdata = require('../../pushdata-bitcoin-1.0.1/index')
65420
65869
  var varuint = require('../../varuint-bitcoin-1.1.2/index')
65421
65870
 
@@ -65482,7 +65931,7 @@ module.exports = {
65482
65931
  writeVarInt: writeVarInt
65483
65932
  }
65484
65933
 
65485
- },{"../../pushdata-bitcoin-1.0.1/index":550,"../../varuint-bitcoin-1.1.2/index":576}],437:[function(require,module,exports){
65934
+ },{"../../pushdata-bitcoin-1.0.1/index":556,"../../varuint-bitcoin-1.1.2/index":582}],443:[function(require,module,exports){
65486
65935
  // Coins supported by bitgo-bitcoinjs-lib
65487
65936
  const typeforce = require('../../typeforce-1.18.0/index')
65488
65937
 
@@ -65537,7 +65986,7 @@ coins.isValidCoin = typeforce.oneOf(
65537
65986
 
65538
65987
  module.exports = coins
65539
65988
 
65540
- },{"../../typeforce-1.18.0/index":573}],438:[function(require,module,exports){
65989
+ },{"../../typeforce-1.18.0/index":579}],444:[function(require,module,exports){
65541
65990
  (function (Buffer){(function (){
65542
65991
  var createHash = require('../../create-hash-1.2.0/browser')
65543
65992
  var groestlhash = require('../../groestl-hash-js-ef6a04f1c4d2f0448f0882b5f213ef7a0659baee/index')
@@ -65584,7 +66033,7 @@ module.exports = {
65584
66033
  }
65585
66034
 
65586
66035
  }).call(this)}).call(this,require("buffer").Buffer)
65587
- },{"../../create-hash-1.2.0/browser":485,"../../groestl-hash-js-ef6a04f1c4d2f0448f0882b5f213ef7a0659baee/index":517,"buffer":67,"crypto":78}],439:[function(require,module,exports){
66036
+ },{"../../create-hash-1.2.0/browser":491,"../../groestl-hash-js-ef6a04f1c4d2f0448f0882b5f213ef7a0659baee/index":523,"buffer":67,"crypto":78}],445:[function(require,module,exports){
65588
66037
  var Buffer = require('../../safe-buffer-5.2.0/index').Buffer
65589
66038
  var createHmac = require('../../create-hmac-1.1.4/browser')
65590
66039
  var typeforce = require('../../typeforce-1.18.0/index')
@@ -65747,7 +66196,7 @@ module.exports = {
65747
66196
  __curve: secp256k1
65748
66197
  }
65749
66198
 
65750
- },{"../../bigi-1.4.2/lib/index":417,"../../create-hmac-1.1.4/browser":487,"../../ecurve-1.0.6/lib/index":497,"../../safe-buffer-5.2.0/index":553,"../../typeforce-1.18.0/index":573,"./ecsignature":441,"./types":472}],440:[function(require,module,exports){
66199
+ },{"../../bigi-1.4.2/lib/index":423,"../../create-hmac-1.1.4/browser":493,"../../ecurve-1.0.6/lib/index":503,"../../safe-buffer-5.2.0/index":559,"../../typeforce-1.18.0/index":579,"./ecsignature":447,"./types":478}],446:[function(require,module,exports){
65751
66200
  (function (Buffer){(function (){
65752
66201
  var baddress = require('./address')
65753
66202
  var bcrypto = require('./crypto')
@@ -65906,7 +66355,7 @@ ECPair.prototype.verify = function (hash, signature) {
65906
66355
  module.exports = ECPair
65907
66356
 
65908
66357
  }).call(this)}).call(this,require("buffer").Buffer)
65909
- },{"../../bigi-1.4.2/lib/index":417,"../../ecurve-1.0.6/lib/index":497,"../../randombytes-2.1.0/browser":551,"../../typeforce-1.18.0/index":573,"../../wif-2.0.6/index":577,"./address":433,"./crypto":438,"./ecdsa":439,"./fastcurve":442,"./networks":445,"./types":472,"buffer":67}],441:[function(require,module,exports){
66358
+ },{"../../bigi-1.4.2/lib/index":423,"../../ecurve-1.0.6/lib/index":503,"../../randombytes-2.1.0/browser":557,"../../typeforce-1.18.0/index":579,"../../wif-2.0.6/index":583,"./address":439,"./crypto":444,"./ecdsa":445,"./fastcurve":448,"./networks":451,"./types":478,"buffer":67}],447:[function(require,module,exports){
65910
66359
  (function (Buffer){(function (){
65911
66360
  var bip66 = require('../../bip66-1.1.5/index')
65912
66361
  var typeforce = require('../../typeforce-1.18.0/index')
@@ -66007,7 +66456,7 @@ ECSignature.prototype.toScriptSignature = function (hashType) {
66007
66456
  module.exports = ECSignature
66008
66457
 
66009
66458
  }).call(this)}).call(this,require("buffer").Buffer)
66010
- },{"../../bigi-1.4.2/lib/index":417,"../../bip66-1.1.5/index":429,"../../typeforce-1.18.0/index":573,"./types":472,"buffer":67}],442:[function(require,module,exports){
66459
+ },{"../../bigi-1.4.2/lib/index":423,"../../bip66-1.1.5/index":435,"../../typeforce-1.18.0/index":579,"./types":478,"buffer":67}],448:[function(require,module,exports){
66011
66460
  var typeforce = require('../../typeforce-1.18.0/index')
66012
66461
 
66013
66462
  var ECSignature = require('./ecsignature')
@@ -66101,7 +66550,7 @@ module.exports = {
66101
66550
  verify: verify
66102
66551
  }
66103
66552
 
66104
- },{"../../secp256k1-3.7.1/elliptic":554,"../../typeforce-1.18.0/index":573,"./ecsignature":441,"./types":472}],443:[function(require,module,exports){
66553
+ },{"../../secp256k1-3.7.1/elliptic":560,"../../typeforce-1.18.0/index":579,"./ecsignature":447,"./types":478}],449:[function(require,module,exports){
66105
66554
  var Buffer = require('../../safe-buffer-5.2.0/index').Buffer
66106
66555
  var base58check = require('../../bs58check-2.1.2/index')
66107
66556
  var bcrypto = require('./crypto')
@@ -66466,7 +66915,7 @@ HDNode.prototype.cloneKeypair = function () {
66466
66915
 
66467
66916
  module.exports = HDNode
66468
66917
 
66469
- },{"../../bigi-1.4.2/lib/index":417,"../../bs58check-2.1.2/base":479,"../../bs58check-2.1.2/index":480,"../../create-hmac-1.1.4/browser":487,"../../ecurve-1.0.6/lib/index":497,"../../safe-buffer-5.2.0/index":553,"../../typeforce-1.18.0/index":573,"./crypto":438,"./ecpair":440,"./fastcurve":442,"./networks":445,"./types":472}],444:[function(require,module,exports){
66918
+ },{"../../bigi-1.4.2/lib/index":423,"../../bs58check-2.1.2/base":485,"../../bs58check-2.1.2/index":486,"../../create-hmac-1.1.4/browser":493,"../../ecurve-1.0.6/lib/index":503,"../../safe-buffer-5.2.0/index":559,"../../typeforce-1.18.0/index":579,"./crypto":444,"./ecpair":446,"./fastcurve":448,"./networks":451,"./types":478}],450:[function(require,module,exports){
66470
66919
  var script = require('./script')
66471
66920
 
66472
66921
  var templates = require('./templates')
@@ -66492,7 +66941,7 @@ module.exports = {
66492
66941
  script: script
66493
66942
  }
66494
66943
 
66495
- },{"../../bitcoin-ops-1.4.1/index.json":430,"./address":433,"./block":434,"./bufferutils":436,"./coins":437,"./crypto":438,"./ecpair":440,"./ecsignature":441,"./hdnode":443,"./networks":445,"./script":446,"./templates":448,"./transaction":470,"./transaction_builder":471}],445:[function(require,module,exports){
66944
+ },{"../../bitcoin-ops-1.4.1/index.json":436,"./address":439,"./block":440,"./bufferutils":442,"./coins":443,"./crypto":444,"./ecpair":446,"./ecsignature":447,"./hdnode":449,"./networks":451,"./script":452,"./templates":454,"./transaction":476,"./transaction_builder":477}],451:[function(require,module,exports){
66496
66945
  // https://en.bitcoin.it/wiki/List_of_address_prefixes
66497
66946
  // Dogecoin BIP32 is a proposed standard: https://bitcointalk.org/index.php?topic=409731
66498
66947
  var coins = require('./coins')
@@ -66708,7 +67157,7 @@ module.exports = {
66708
67157
  }
66709
67158
  }
66710
67159
 
66711
- },{"./coins":437,"./crypto":438}],446:[function(require,module,exports){
67160
+ },{"./coins":443,"./crypto":444}],452:[function(require,module,exports){
66712
67161
  var Buffer = require('../../safe-buffer-5.2.0/index').Buffer
66713
67162
  var bip66 = require('../../bip66-1.1.5/index')
66714
67163
  var pushdata = require('../../pushdata-bitcoin-1.0.1/index')
@@ -66924,7 +67373,7 @@ module.exports = {
66924
67373
  isDefinedHashType: isDefinedHashType
66925
67374
  }
66926
67375
 
66927
- },{"../../bip66-1.1.5/index":429,"../../bitcoin-ops-1.4.1/index.json":430,"../../bitcoin-ops-1.4.1/map":431,"../../pushdata-bitcoin-1.0.1/index":550,"../../safe-buffer-5.2.0/index":553,"../../typeforce-1.18.0/index":573,"./script_number":447,"./types":472}],447:[function(require,module,exports){
67376
+ },{"../../bip66-1.1.5/index":435,"../../bitcoin-ops-1.4.1/index.json":436,"../../bitcoin-ops-1.4.1/map":437,"../../pushdata-bitcoin-1.0.1/index":556,"../../safe-buffer-5.2.0/index":559,"../../typeforce-1.18.0/index":579,"./script_number":453,"./types":478}],453:[function(require,module,exports){
66928
67377
  var Buffer = require('../../safe-buffer-5.2.0/index').Buffer
66929
67378
 
66930
67379
  function decode (buffer, maxLength, minimal) {
@@ -66994,7 +67443,7 @@ module.exports = {
66994
67443
  encode: encode
66995
67444
  }
66996
67445
 
66997
- },{"../../safe-buffer-5.2.0/index":553}],448:[function(require,module,exports){
67446
+ },{"../../safe-buffer-5.2.0/index":559}],454:[function(require,module,exports){
66998
67447
  var decompile = require('../script').decompile
66999
67448
  var multisig = require('./multisig')
67000
67449
  var nullData = require('./nulldata')
@@ -67070,13 +67519,13 @@ module.exports = {
67070
67519
  types: types
67071
67520
  }
67072
67521
 
67073
- },{"../script":446,"./multisig":449,"./nulldata":452,"./pubkey":453,"./pubkeyhash":456,"./scripthash":459,"./witnesscommitment":462,"./witnesspubkeyhash":464,"./witnessscripthash":467}],449:[function(require,module,exports){
67522
+ },{"../script":452,"./multisig":455,"./nulldata":458,"./pubkey":459,"./pubkeyhash":462,"./scripthash":465,"./witnesscommitment":468,"./witnesspubkeyhash":470,"./witnessscripthash":473}],455:[function(require,module,exports){
67074
67523
  module.exports = {
67075
67524
  input: require('./input'),
67076
67525
  output: require('./output')
67077
67526
  }
67078
67527
 
67079
- },{"./input":450,"./output":451}],450:[function(require,module,exports){
67528
+ },{"./input":456,"./output":457}],456:[function(require,module,exports){
67080
67529
  // OP_0 [signatures ...]
67081
67530
 
67082
67531
  var Buffer = require('../../../../safe-buffer-5.2.0/index').Buffer
@@ -67149,7 +67598,7 @@ module.exports = {
67149
67598
  encodeStack: encodeStack
67150
67599
  }
67151
67600
 
67152
- },{"../../../../bitcoin-ops-1.4.1/index.json":430,"../../../../safe-buffer-5.2.0/index":553,"../../../../typeforce-1.18.0/index":573,"../../script":446,"./output":451}],451:[function(require,module,exports){
67601
+ },{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../safe-buffer-5.2.0/index":559,"../../../../typeforce-1.18.0/index":579,"../../script":452,"./output":457}],457:[function(require,module,exports){
67153
67602
  // m [pubKeys ...] n OP_CHECKMULTISIG
67154
67603
 
67155
67604
  var bscript = require('../../script')
@@ -67215,7 +67664,7 @@ module.exports = {
67215
67664
  encode: encode
67216
67665
  }
67217
67666
 
67218
- },{"../../../../bitcoin-ops-1.4.1/index.json":430,"../../../../typeforce-1.18.0/index":573,"../../script":446,"../../types":472}],452:[function(require,module,exports){
67667
+ },{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../typeforce-1.18.0/index":579,"../../script":452,"../../types":478}],458:[function(require,module,exports){
67219
67668
  // OP_RETURN {data}
67220
67669
 
67221
67670
  var bscript = require('../script')
@@ -67256,9 +67705,9 @@ module.exports = {
67256
67705
  }
67257
67706
  }
67258
67707
 
67259
- },{"../../../bitcoin-ops-1.4.1/index.json":430,"../../../typeforce-1.18.0/index":573,"../script":446,"../types":472}],453:[function(require,module,exports){
67260
- arguments[4][449][0].apply(exports,arguments)
67261
- },{"./input":454,"./output":455,"dup":449}],454:[function(require,module,exports){
67708
+ },{"../../../bitcoin-ops-1.4.1/index.json":436,"../../../typeforce-1.18.0/index":579,"../script":452,"../types":478}],459:[function(require,module,exports){
67709
+ arguments[4][455][0].apply(exports,arguments)
67710
+ },{"./input":460,"./output":461,"dup":455}],460:[function(require,module,exports){
67262
67711
  // {signature}
67263
67712
 
67264
67713
  var bscript = require('../../script')
@@ -67299,7 +67748,7 @@ module.exports = {
67299
67748
  encodeStack: encodeStack
67300
67749
  }
67301
67750
 
67302
- },{"../../../../typeforce-1.18.0/index":573,"../../script":446}],455:[function(require,module,exports){
67751
+ },{"../../../../typeforce-1.18.0/index":579,"../../script":452}],461:[function(require,module,exports){
67303
67752
  // {pubKey} OP_CHECKSIG
67304
67753
 
67305
67754
  var bscript = require('../../script')
@@ -67334,9 +67783,9 @@ module.exports = {
67334
67783
  encode: encode
67335
67784
  }
67336
67785
 
67337
- },{"../../../../bitcoin-ops-1.4.1/index.json":430,"../../../../typeforce-1.18.0/index":573,"../../script":446}],456:[function(require,module,exports){
67338
- arguments[4][449][0].apply(exports,arguments)
67339
- },{"./input":457,"./output":458,"dup":449}],457:[function(require,module,exports){
67786
+ },{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../typeforce-1.18.0/index":579,"../../script":452}],462:[function(require,module,exports){
67787
+ arguments[4][455][0].apply(exports,arguments)
67788
+ },{"./input":463,"./output":464,"dup":455}],463:[function(require,module,exports){
67340
67789
  // {signature} {pubKey}
67341
67790
 
67342
67791
  var bscript = require('../../script')
@@ -67389,7 +67838,7 @@ module.exports = {
67389
67838
  encodeStack: encodeStack
67390
67839
  }
67391
67840
 
67392
- },{"../../../../typeforce-1.18.0/index":573,"../../script":446}],458:[function(require,module,exports){
67841
+ },{"../../../../typeforce-1.18.0/index":579,"../../script":452}],464:[function(require,module,exports){
67393
67842
  // OP_DUP OP_HASH160 {pubKeyHash} OP_EQUALVERIFY OP_CHECKSIG
67394
67843
 
67395
67844
  var bscript = require('../../script')
@@ -67433,9 +67882,9 @@ module.exports = {
67433
67882
  encode: encode
67434
67883
  }
67435
67884
 
67436
- },{"../../../../bitcoin-ops-1.4.1/index.json":430,"../../../../typeforce-1.18.0/index":573,"../../script":446,"../../types":472}],459:[function(require,module,exports){
67437
- arguments[4][449][0].apply(exports,arguments)
67438
- },{"./input":460,"./output":461,"dup":449}],460:[function(require,module,exports){
67885
+ },{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../typeforce-1.18.0/index":579,"../../script":452,"../../types":478}],465:[function(require,module,exports){
67886
+ arguments[4][455][0].apply(exports,arguments)
67887
+ },{"./input":466,"./output":467,"dup":455}],466:[function(require,module,exports){
67439
67888
  // <scriptSig> {serialized scriptPubKey script}
67440
67889
 
67441
67890
  var Buffer = require('../../../../safe-buffer-5.2.0/index').Buffer
@@ -67521,7 +67970,7 @@ module.exports = {
67521
67970
  encodeStack: encodeStack
67522
67971
  }
67523
67972
 
67524
- },{"../../../../safe-buffer-5.2.0/index":553,"../../../../typeforce-1.18.0/index":573,"../../script":446,"../multisig/":449,"../pubkey/":453,"../pubkeyhash/":456,"../witnesspubkeyhash/output":466,"../witnessscripthash/output":469}],461:[function(require,module,exports){
67973
+ },{"../../../../safe-buffer-5.2.0/index":559,"../../../../typeforce-1.18.0/index":579,"../../script":452,"../multisig/":455,"../pubkey/":459,"../pubkeyhash/":462,"../witnesspubkeyhash/output":472,"../witnessscripthash/output":475}],467:[function(require,module,exports){
67525
67974
  // OP_HASH160 {scriptHash} OP_EQUAL
67526
67975
 
67527
67976
  var bscript = require('../../script')
@@ -67557,12 +68006,12 @@ module.exports = {
67557
68006
  encode: encode
67558
68007
  }
67559
68008
 
67560
- },{"../../../../bitcoin-ops-1.4.1/index.json":430,"../../../../typeforce-1.18.0/index":573,"../../script":446,"../../types":472}],462:[function(require,module,exports){
68009
+ },{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../typeforce-1.18.0/index":579,"../../script":452,"../../types":478}],468:[function(require,module,exports){
67561
68010
  module.exports = {
67562
68011
  output: require('./output')
67563
68012
  }
67564
68013
 
67565
- },{"./output":463}],463:[function(require,module,exports){
68014
+ },{"./output":469}],469:[function(require,module,exports){
67566
68015
  // OP_RETURN {aa21a9ed} {commitment}
67567
68016
 
67568
68017
  var Buffer = require('../../../../safe-buffer-5.2.0/index').Buffer
@@ -67606,9 +68055,9 @@ module.exports = {
67606
68055
  encode: encode
67607
68056
  }
67608
68057
 
67609
- },{"../../../../bitcoin-ops-1.4.1/index.json":430,"../../../../safe-buffer-5.2.0/index":553,"../../../../typeforce-1.18.0/index":573,"../../script":446,"../../types":472}],464:[function(require,module,exports){
67610
- arguments[4][449][0].apply(exports,arguments)
67611
- },{"./input":465,"./output":466,"dup":449}],465:[function(require,module,exports){
68058
+ },{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../safe-buffer-5.2.0/index":559,"../../../../typeforce-1.18.0/index":579,"../../script":452,"../../types":478}],470:[function(require,module,exports){
68059
+ arguments[4][455][0].apply(exports,arguments)
68060
+ },{"./input":471,"./output":472,"dup":455}],471:[function(require,module,exports){
67612
68061
  // {signature} {pubKey}
67613
68062
 
67614
68063
  var bscript = require('../../script')
@@ -67654,7 +68103,7 @@ module.exports = {
67654
68103
  encodeStack: encodeStack
67655
68104
  }
67656
68105
 
67657
- },{"../../../../typeforce-1.18.0/index":573,"../../script":446}],466:[function(require,module,exports){
68106
+ },{"../../../../typeforce-1.18.0/index":579,"../../script":452}],472:[function(require,module,exports){
67658
68107
  // OP_0 {pubKeyHash}
67659
68108
 
67660
68109
  var bscript = require('../../script')
@@ -67689,9 +68138,9 @@ module.exports = {
67689
68138
  encode: encode
67690
68139
  }
67691
68140
 
67692
- },{"../../../../bitcoin-ops-1.4.1/index.json":430,"../../../../typeforce-1.18.0/index":573,"../../script":446,"../../types":472}],467:[function(require,module,exports){
67693
- arguments[4][449][0].apply(exports,arguments)
67694
- },{"./input":468,"./output":469,"dup":449}],468:[function(require,module,exports){
68141
+ },{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../typeforce-1.18.0/index":579,"../../script":452,"../../types":478}],473:[function(require,module,exports){
68142
+ arguments[4][455][0].apply(exports,arguments)
68143
+ },{"./input":474,"./output":475,"dup":455}],474:[function(require,module,exports){
67695
68144
  (function (Buffer){(function (){
67696
68145
  // <scriptSig> {serialized scriptPubKey script}
67697
68146
 
@@ -67758,7 +68207,7 @@ module.exports = {
67758
68207
  }
67759
68208
 
67760
68209
  }).call(this)}).call(this,{"isBuffer":require("../../../../../../../../../node_modules/is-buffer/index.js")})
67761
- },{"../../../../../../../../../node_modules/is-buffer/index.js":150,"../../../../typeforce-1.18.0/index":573,"../../script":446,"../../types":472,"../multisig/":449,"../pubkey/":453,"../pubkeyhash/":456}],469:[function(require,module,exports){
68210
+ },{"../../../../../../../../../node_modules/is-buffer/index.js":150,"../../../../typeforce-1.18.0/index":579,"../../script":452,"../../types":478,"../multisig/":455,"../pubkey/":459,"../pubkeyhash/":462}],475:[function(require,module,exports){
67762
68211
  // OP_0 {scriptHash}
67763
68212
 
67764
68213
  var bscript = require('../../script')
@@ -67793,7 +68242,7 @@ module.exports = {
67793
68242
  encode: encode
67794
68243
  }
67795
68244
 
67796
- },{"../../../../bitcoin-ops-1.4.1/index.json":430,"../../../../typeforce-1.18.0/index":573,"../../script":446,"../../types":472}],470:[function(require,module,exports){
68245
+ },{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../typeforce-1.18.0/index":579,"../../script":452,"../../types":478}],476:[function(require,module,exports){
67797
68246
  var Buffer = require('../../safe-buffer-5.2.0/index').Buffer
67798
68247
  var BufferWriter = require('./bufferWriter')
67799
68248
  var bcrypto = require('./crypto')
@@ -68920,7 +69369,7 @@ Transaction.prototype.setWitness = function (index, witness) {
68920
69369
 
68921
69370
  module.exports = Transaction
68922
69371
 
68923
- },{"../../bitcoin-ops-1.4.1/index.json":430,"../../blake2b-6268e6dd678661e0acc4359e9171b97eb1ebf8ac/index":473,"../../safe-buffer-5.2.0/index":553,"../../typeforce-1.18.0/index":573,"../../varuint-bitcoin-1.1.2/index":576,"./bufferWriter":435,"./bufferutils":436,"./coins":437,"./crypto":438,"./networks":445,"./script":446,"./types":472}],471:[function(require,module,exports){
69372
+ },{"../../bitcoin-ops-1.4.1/index.json":436,"../../blake2b-6268e6dd678661e0acc4359e9171b97eb1ebf8ac/index":479,"../../safe-buffer-5.2.0/index":559,"../../typeforce-1.18.0/index":579,"../../varuint-bitcoin-1.1.2/index":582,"./bufferWriter":441,"./bufferutils":442,"./coins":443,"./crypto":444,"./networks":451,"./script":452,"./types":478}],477:[function(require,module,exports){
68924
69373
  var Buffer = require('../../safe-buffer-5.2.0/index').Buffer
68925
69374
  var baddress = require('./address')
68926
69375
  var bcrypto = require('./crypto')
@@ -69814,7 +70263,7 @@ TransactionBuilder.prototype.__overMaximumFees = function (bytes) {
69814
70263
 
69815
70264
  module.exports = TransactionBuilder
69816
70265
 
69817
- },{"../../bitcoin-ops-1.4.1/index.json":430,"../../debug-3.1.0/src/browser":488,"../../safe-buffer-5.2.0/index":553,"../../typeforce-1.18.0/index":573,"./address":433,"./coins":437,"./crypto":438,"./ecpair":440,"./ecsignature":441,"./networks":445,"./script":446,"./templates":448,"./transaction":470,"./types":472}],472:[function(require,module,exports){
70266
+ },{"../../bitcoin-ops-1.4.1/index.json":436,"../../debug-3.1.0/src/browser":494,"../../safe-buffer-5.2.0/index":559,"../../typeforce-1.18.0/index":579,"./address":439,"./coins":443,"./crypto":444,"./ecpair":446,"./ecsignature":447,"./networks":451,"./script":452,"./templates":454,"./transaction":476,"./types":478}],478:[function(require,module,exports){
69818
70267
  var typeforce = require('../../typeforce-1.18.0/index')
69819
70268
 
69820
70269
  var UINT31_MAX = Math.pow(2, 31) - 1
@@ -69871,7 +70320,7 @@ for (var typeName in typeforce) {
69871
70320
 
69872
70321
  module.exports = types
69873
70322
 
69874
- },{"../../typeforce-1.18.0/index":573}],473:[function(require,module,exports){
70323
+ },{"../../typeforce-1.18.0/index":579}],479:[function(require,module,exports){
69875
70324
  var assert = require('../nanoassert-1.1.0/index')
69876
70325
  var b2wasm = require('../blake2b-wasm-193cdb71656c1a6c7f89b05d0327bb9b758d071b/index')
69877
70326
 
@@ -70186,7 +70635,7 @@ b2wasm.ready(function (err) {
70186
70635
  }
70187
70636
  })
70188
70637
 
70189
- },{"../blake2b-wasm-193cdb71656c1a6c7f89b05d0327bb9b758d071b/index":475,"../nanoassert-1.1.0/index":544}],474:[function(require,module,exports){
70638
+ },{"../blake2b-wasm-193cdb71656c1a6c7f89b05d0327bb9b758d071b/index":481,"../nanoassert-1.1.0/index":550}],480:[function(require,module,exports){
70190
70639
 
70191
70640
  module.exports = loadWebAssembly
70192
70641
 
@@ -70251,7 +70700,7 @@ function charCodeAt (c) {
70251
70700
  return c.charCodeAt(0)
70252
70701
  }
70253
70702
 
70254
- },{}],475:[function(require,module,exports){
70703
+ },{}],481:[function(require,module,exports){
70255
70704
  var assert = require('../nanoassert-1.1.0/index')
70256
70705
  var wasm = require('./blake2b')()
70257
70706
 
@@ -70381,7 +70830,7 @@ function toHex (n) {
70381
70830
  return n.toString(16)
70382
70831
  }
70383
70832
 
70384
- },{"../nanoassert-1.1.0/index":544,"./blake2b":474}],476:[function(require,module,exports){
70833
+ },{"../nanoassert-1.1.0/index":550,"./blake2b":480}],482:[function(require,module,exports){
70385
70834
  (function (module, exports) {
70386
70835
  'use strict';
70387
70836
 
@@ -73810,15 +74259,15 @@ function toHex (n) {
73810
74259
  };
73811
74260
  })(typeof module === 'undefined' || module, this);
73812
74261
 
73813
- },{"buffer":67}],477:[function(require,module,exports){
74262
+ },{"buffer":67}],483:[function(require,module,exports){
73814
74263
  arguments[4][23][0].apply(exports,arguments)
73815
- },{"crypto":78,"dup":23}],478:[function(require,module,exports){
74264
+ },{"crypto":78,"dup":23}],484:[function(require,module,exports){
73816
74265
  var basex = require('../base-x-3.0.7/src/index')
73817
74266
  var ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
73818
74267
 
73819
74268
  module.exports = basex(ALPHABET)
73820
74269
 
73821
- },{"../base-x-3.0.7/src/index":412}],479:[function(require,module,exports){
74270
+ },{"../base-x-3.0.7/src/index":418}],485:[function(require,module,exports){
73822
74271
  'use strict'
73823
74272
 
73824
74273
  var base58 = require('../bs58-4.0.1/index')
@@ -73870,7 +74319,7 @@ module.exports = function (checksumFn) {
73870
74319
  }
73871
74320
  }
73872
74321
 
73873
- },{"../bs58-4.0.1/index":478,"../safe-buffer-5.2.0/index":553}],480:[function(require,module,exports){
74322
+ },{"../bs58-4.0.1/index":484,"../safe-buffer-5.2.0/index":559}],486:[function(require,module,exports){
73874
74323
  'use strict'
73875
74324
 
73876
74325
  var createHash = require('../create-hash-1.2.0/browser')
@@ -73884,9 +74333,9 @@ function sha256x2 (buffer) {
73884
74333
 
73885
74334
  module.exports = bs58checkBase(sha256x2)
73886
74335
 
73887
- },{"../create-hash-1.2.0/browser":485,"./base":479}],481:[function(require,module,exports){
73888
- arguments[4][479][0].apply(exports,arguments)
73889
- },{"../bs58-4.0.1/index":478,"../safe-buffer-5.2.0/index":553,"dup":479}],482:[function(require,module,exports){
74336
+ },{"../create-hash-1.2.0/browser":491,"./base":485}],487:[function(require,module,exports){
74337
+ arguments[4][485][0].apply(exports,arguments)
74338
+ },{"../bs58-4.0.1/index":484,"../safe-buffer-5.2.0/index":559,"dup":485}],488:[function(require,module,exports){
73890
74339
  (function (Buffer){(function (){
73891
74340
  'use strict'
73892
74341
 
@@ -73902,7 +74351,7 @@ function groestl (buffer) {
73902
74351
  module.exports = bs58grscheckBase(groestl)
73903
74352
 
73904
74353
  }).call(this)}).call(this,require("buffer").Buffer)
73905
- },{"../create-hash-1.2.0/browser":485,"../groestl-hash-js-ef6a04f1c4d2f0448f0882b5f213ef7a0659baee/index":517,"./base":481,"buffer":67}],483:[function(require,module,exports){
74354
+ },{"../create-hash-1.2.0/browser":491,"../groestl-hash-js-ef6a04f1c4d2f0448f0882b5f213ef7a0659baee/index":523,"./base":487,"buffer":67}],489:[function(require,module,exports){
73906
74355
  (function (Buffer){(function (){
73907
74356
  'use strict';
73908
74357
  module.exports = function (a, b) {
@@ -73932,7 +74381,7 @@ module.exports = function (a, b) {
73932
74381
  };
73933
74382
 
73934
74383
  }).call(this)}).call(this,{"isBuffer":require("../../../../../../node_modules/is-buffer/index.js")})
73935
- },{"../../../../../../node_modules/is-buffer/index.js":150}],484:[function(require,module,exports){
74384
+ },{"../../../../../../node_modules/is-buffer/index.js":150}],490:[function(require,module,exports){
73936
74385
  var Buffer = require('../safe-buffer-5.2.0/index').Buffer
73937
74386
  var Transform = require('stream').Transform
73938
74387
  var StringDecoder = require('string_decoder').StringDecoder
@@ -74033,7 +74482,7 @@ CipherBase.prototype._toString = function (value, enc, fin) {
74033
74482
 
74034
74483
  module.exports = CipherBase
74035
74484
 
74036
- },{"../inherits-2.0.4/inherits":536,"../safe-buffer-5.2.0/index":553,"stream":192,"string_decoder":207}],485:[function(require,module,exports){
74485
+ },{"../inherits-2.0.4/inherits":542,"../safe-buffer-5.2.0/index":559,"stream":192,"string_decoder":207}],491:[function(require,module,exports){
74037
74486
  'use strict'
74038
74487
  var inherits = require('../inherits-2.0.4/inherits')
74039
74488
  var MD5 = require('../md5.js-1.3.5/index')
@@ -74065,10 +74514,10 @@ module.exports = function createHash (alg) {
74065
74514
  return new Hash(sha(alg))
74066
74515
  }
74067
74516
 
74068
- },{"../cipher-base-1.0.4/index":484,"../inherits-2.0.4/inherits":536,"../md5.js-1.3.5/index":539,"../ripemd160-2.0.2/index":552,"../sha.js-2.4.11/index":564}],486:[function(require,module,exports){
74517
+ },{"../cipher-base-1.0.4/index":490,"../inherits-2.0.4/inherits":542,"../md5.js-1.3.5/index":545,"../ripemd160-2.0.2/index":558,"../sha.js-2.4.11/index":570}],492:[function(require,module,exports){
74069
74518
  module.exports = require('crypto').createHash
74070
74519
 
74071
- },{"crypto":78}],487:[function(require,module,exports){
74520
+ },{"crypto":78}],493:[function(require,module,exports){
74072
74521
  (function (Buffer){(function (){
74073
74522
  'use strict';
74074
74523
  var createHash = require('../create-hash-1.2.0/browser')
@@ -74140,7 +74589,7 @@ module.exports = function createHmac(alg, key) {
74140
74589
  }
74141
74590
 
74142
74591
  }).call(this)}).call(this,require("buffer").Buffer)
74143
- },{"../create-hash-1.2.0/browser":485,"../inherits-2.0.4/inherits":536,"buffer":67,"stream":192}],488:[function(require,module,exports){
74592
+ },{"../create-hash-1.2.0/browser":491,"../inherits-2.0.4/inherits":542,"buffer":67,"stream":192}],494:[function(require,module,exports){
74144
74593
  (function (process){(function (){
74145
74594
  /**
74146
74595
  * This is the web browser implementation of `debug()`.
@@ -74339,7 +74788,7 @@ function localstorage() {
74339
74788
  }
74340
74789
 
74341
74790
  }).call(this)}).call(this,require('_process'))
74342
- },{"./debug":489,"_process":171}],489:[function(require,module,exports){
74791
+ },{"./debug":495,"_process":171}],495:[function(require,module,exports){
74343
74792
 
74344
74793
  /**
74345
74794
  * This is the common logic for both the Node.js and web browser
@@ -74566,7 +75015,7 @@ function coerce(val) {
74566
75015
  return val;
74567
75016
  }
74568
75017
 
74569
- },{"../../ms-2.1.2/index":543}],490:[function(require,module,exports){
75018
+ },{"../../ms-2.1.2/index":549}],496:[function(require,module,exports){
74570
75019
  (function (Buffer){(function (){
74571
75020
  "use strict";
74572
75021
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -74600,7 +75049,7 @@ exports.utils = {
74600
75049
  };
74601
75050
 
74602
75051
  }).call(this)}).call(this,require("buffer").Buffer)
74603
- },{"./keys":493,"./utils":494,"buffer":67}],491:[function(require,module,exports){
75052
+ },{"./keys":499,"./utils":500,"buffer":67}],497:[function(require,module,exports){
74604
75053
  (function (Buffer){(function (){
74605
75054
  "use strict";
74606
75055
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -74661,7 +75110,7 @@ var PrivateKey = /** @class */ (function () {
74661
75110
  exports.default = PrivateKey;
74662
75111
 
74663
75112
  }).call(this)}).call(this,require("buffer").Buffer)
74664
- },{"../../../futoin-hkdf-1.3.3/hkdf.js":516,"../../../secp256k1-4.0.2/elliptic":560,"../utils":494,"./PublicKey":492,"buffer":67}],492:[function(require,module,exports){
75113
+ },{"../../../futoin-hkdf-1.3.3/hkdf.js":522,"../../../secp256k1-4.0.2/elliptic":566,"../utils":500,"./PublicKey":498,"buffer":67}],498:[function(require,module,exports){
74665
75114
  (function (Buffer){(function (){
74666
75115
  "use strict";
74667
75116
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -74725,7 +75174,7 @@ var PublicKey = /** @class */ (function () {
74725
75174
  exports.default = PublicKey;
74726
75175
 
74727
75176
  }).call(this)}).call(this,require("buffer").Buffer)
74728
- },{"../../../futoin-hkdf-1.3.3/hkdf.js":516,"../../../secp256k1-4.0.2/elliptic":560,"../utils":494,"buffer":67}],493:[function(require,module,exports){
75177
+ },{"../../../futoin-hkdf-1.3.3/hkdf.js":522,"../../../secp256k1-4.0.2/elliptic":566,"../utils":500,"buffer":67}],499:[function(require,module,exports){
74729
75178
  "use strict";
74730
75179
  var __importDefault = (this && this.__importDefault) || function (mod) {
74731
75180
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -74737,7 +75186,7 @@ Object.defineProperty(exports, "PrivateKey", { enumerable: true, get: function (
74737
75186
  var PublicKey_1 = require("./PublicKey");
74738
75187
  Object.defineProperty(exports, "PublicKey", { enumerable: true, get: function () { return __importDefault(PublicKey_1).default; } });
74739
75188
 
74740
- },{"./PrivateKey":491,"./PublicKey":492}],494:[function(require,module,exports){
75189
+ },{"./PrivateKey":497,"./PublicKey":498}],500:[function(require,module,exports){
74741
75190
  (function (Buffer){(function (){
74742
75191
  "use strict";
74743
75192
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -74801,7 +75250,7 @@ function aesDecrypt(key, cipherText) {
74801
75250
  exports.aesDecrypt = aesDecrypt;
74802
75251
 
74803
75252
  }).call(this)}).call(this,require("buffer").Buffer)
74804
- },{"../../secp256k1-4.0.2/elliptic":560,"buffer":67,"crypto":78}],495:[function(require,module,exports){
75253
+ },{"../../secp256k1-4.0.2/elliptic":566,"buffer":67,"crypto":78}],501:[function(require,module,exports){
74805
75254
  var assert = require('assert')
74806
75255
  var BigInteger = require('../../bigi-1.4.2/lib/index')
74807
75256
 
@@ -74880,7 +75329,7 @@ Curve.prototype.validate = function (Q) {
74880
75329
 
74881
75330
  module.exports = Curve
74882
75331
 
74883
- },{"../../bigi-1.4.2/lib/index":417,"./point":499,"assert":16}],496:[function(require,module,exports){
75332
+ },{"../../bigi-1.4.2/lib/index":423,"./point":505,"assert":16}],502:[function(require,module,exports){
74884
75333
  module.exports={
74885
75334
  "secp128r1": {
74886
75335
  "p": "fffffffdffffffffffffffffffffffff",
@@ -74946,7 +75395,7 @@ module.exports={
74946
75395
  "Gy": "4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"
74947
75396
  }
74948
75397
  }
74949
- },{}],497:[function(require,module,exports){
75398
+ },{}],503:[function(require,module,exports){
74950
75399
  var Point = require('./point')
74951
75400
  var Curve = require('./curve')
74952
75401
 
@@ -74958,7 +75407,7 @@ module.exports = {
74958
75407
  getCurveByName: getCurveByName
74959
75408
  }
74960
75409
 
74961
- },{"./curve":495,"./names":498,"./point":499}],498:[function(require,module,exports){
75410
+ },{"./curve":501,"./names":504,"./point":505}],504:[function(require,module,exports){
74962
75411
  var BigInteger = require('../../bigi-1.4.2/lib/index')
74963
75412
 
74964
75413
  var curves = require('./curves.json')
@@ -74981,7 +75430,7 @@ function getCurveByName (name) {
74981
75430
 
74982
75431
  module.exports = getCurveByName
74983
75432
 
74984
- },{"../../bigi-1.4.2/lib/index":417,"./curve":495,"./curves.json":496}],499:[function(require,module,exports){
75433
+ },{"../../bigi-1.4.2/lib/index":423,"./curve":501,"./curves.json":502}],505:[function(require,module,exports){
74985
75434
  var assert = require('assert')
74986
75435
  var Buffer = require('../../safe-buffer-5.2.0/index').Buffer
74987
75436
  var BigInteger = require('../../bigi-1.4.2/lib/index')
@@ -75227,7 +75676,7 @@ Point.prototype.toString = function () {
75227
75676
 
75228
75677
  module.exports = Point
75229
75678
 
75230
- },{"../../bigi-1.4.2/lib/index":417,"../../safe-buffer-5.2.0/index":553,"assert":16}],500:[function(require,module,exports){
75679
+ },{"../../bigi-1.4.2/lib/index":423,"../../safe-buffer-5.2.0/index":559,"assert":16}],506:[function(require,module,exports){
75231
75680
  'use strict';
75232
75681
 
75233
75682
  var elliptic = exports;
@@ -75242,7 +75691,7 @@ elliptic.curves = require('./elliptic/curves');
75242
75691
  elliptic.ec = require('./elliptic/ec');
75243
75692
  elliptic.eddsa = require('./elliptic/eddsa');
75244
75693
 
75245
- },{"../../brorand-1.1.0/index":477,"../package.json":515,"./elliptic/curve":503,"./elliptic/curves":506,"./elliptic/ec":507,"./elliptic/eddsa":510,"./elliptic/utils":514}],501:[function(require,module,exports){
75694
+ },{"../../brorand-1.1.0/index":483,"../package.json":521,"./elliptic/curve":509,"./elliptic/curves":512,"./elliptic/ec":513,"./elliptic/eddsa":516,"./elliptic/utils":520}],507:[function(require,module,exports){
75246
75695
  'use strict';
75247
75696
 
75248
75697
  var BN = require('../../../../bn.js-4.11.8/lib/bn');
@@ -75620,7 +76069,7 @@ BasePoint.prototype.dblp = function dblp(k) {
75620
76069
  return r;
75621
76070
  };
75622
76071
 
75623
- },{"../../../../bn.js-4.11.8/lib/bn":476,"../utils":514}],502:[function(require,module,exports){
76072
+ },{"../../../../bn.js-4.11.8/lib/bn":482,"../utils":520}],508:[function(require,module,exports){
75624
76073
  'use strict';
75625
76074
 
75626
76075
  var utils = require('../utils');
@@ -76054,9 +76503,9 @@ Point.prototype.eqXToP = function eqXToP(x) {
76054
76503
  Point.prototype.toP = Point.prototype.normalize;
76055
76504
  Point.prototype.mixedAdd = Point.prototype.add;
76056
76505
 
76057
- },{"../../../../bn.js-4.11.8/lib/bn":476,"../../../../inherits-2.0.4/inherits":536,"../utils":514,"./base":501}],503:[function(require,module,exports){
76506
+ },{"../../../../bn.js-4.11.8/lib/bn":482,"../../../../inherits-2.0.4/inherits":542,"../utils":520,"./base":507}],509:[function(require,module,exports){
76058
76507
  arguments[4][93][0].apply(exports,arguments)
76059
- },{"./base":501,"./edwards":502,"./mont":504,"./short":505,"dup":93}],504:[function(require,module,exports){
76508
+ },{"./base":507,"./edwards":508,"./mont":510,"./short":511,"dup":93}],510:[function(require,module,exports){
76060
76509
  'use strict';
76061
76510
 
76062
76511
  var BN = require('../../../../bn.js-4.11.8/lib/bn');
@@ -76236,7 +76685,7 @@ Point.prototype.getX = function getX() {
76236
76685
  return this.x.fromRed();
76237
76686
  };
76238
76687
 
76239
- },{"../../../../bn.js-4.11.8/lib/bn":476,"../../../../inherits-2.0.4/inherits":536,"../utils":514,"./base":501}],505:[function(require,module,exports){
76688
+ },{"../../../../bn.js-4.11.8/lib/bn":482,"../../../../inherits-2.0.4/inherits":542,"../utils":520,"./base":507}],511:[function(require,module,exports){
76240
76689
  'use strict';
76241
76690
 
76242
76691
  var utils = require('../utils');
@@ -77175,7 +77624,7 @@ JPoint.prototype.isInfinity = function isInfinity() {
77175
77624
  return this.z.cmpn(0) === 0;
77176
77625
  };
77177
77626
 
77178
- },{"../../../../bn.js-4.11.8/lib/bn":476,"../../../../inherits-2.0.4/inherits":536,"../utils":514,"./base":501}],506:[function(require,module,exports){
77627
+ },{"../../../../bn.js-4.11.8/lib/bn":482,"../../../../inherits-2.0.4/inherits":542,"../utils":520,"./base":507}],512:[function(require,module,exports){
77179
77628
  'use strict';
77180
77629
 
77181
77630
  var curves = exports;
@@ -77383,7 +77832,7 @@ defineCurve('secp256k1', {
77383
77832
  ]
77384
77833
  });
77385
77834
 
77386
- },{"../../../hash.js-1.1.7/lib/hash":523,"./curve":503,"./precomputed/secp256k1":513,"./utils":514}],507:[function(require,module,exports){
77835
+ },{"../../../hash.js-1.1.7/lib/hash":529,"./curve":509,"./precomputed/secp256k1":519,"./utils":520}],513:[function(require,module,exports){
77387
77836
  'use strict';
77388
77837
 
77389
77838
  var BN = require('../../../../bn.js-4.11.8/lib/bn');
@@ -77626,7 +78075,7 @@ EC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) {
77626
78075
  throw new Error('Unable to find valid recovery factor');
77627
78076
  };
77628
78077
 
77629
- },{"../../../../bn.js-4.11.8/lib/bn":476,"../../../../brorand-1.1.0/index":477,"../../../../hmac-drbg-1.0.1/lib/hmac-drbg":535,"../curves":506,"../utils":514,"./key":508,"./signature":509}],508:[function(require,module,exports){
78078
+ },{"../../../../bn.js-4.11.8/lib/bn":482,"../../../../brorand-1.1.0/index":483,"../../../../hmac-drbg-1.0.1/lib/hmac-drbg":541,"../curves":512,"../utils":520,"./key":514,"./signature":515}],514:[function(require,module,exports){
77630
78079
  'use strict';
77631
78080
 
77632
78081
  var BN = require('../../../../bn.js-4.11.8/lib/bn');
@@ -77746,7 +78195,7 @@ KeyPair.prototype.inspect = function inspect() {
77746
78195
  ' pub: ' + (this.pub && this.pub.inspect()) + ' >';
77747
78196
  };
77748
78197
 
77749
- },{"../../../../bn.js-4.11.8/lib/bn":476,"../utils":514}],509:[function(require,module,exports){
78198
+ },{"../../../../bn.js-4.11.8/lib/bn":482,"../utils":520}],515:[function(require,module,exports){
77750
78199
  'use strict';
77751
78200
 
77752
78201
  var BN = require('../../../../bn.js-4.11.8/lib/bn');
@@ -77914,7 +78363,7 @@ Signature.prototype.toDER = function toDER(enc) {
77914
78363
  return utils.encode(res, enc);
77915
78364
  };
77916
78365
 
77917
- },{"../../../../bn.js-4.11.8/lib/bn":476,"../utils":514}],510:[function(require,module,exports){
78366
+ },{"../../../../bn.js-4.11.8/lib/bn":482,"../utils":520}],516:[function(require,module,exports){
77918
78367
  'use strict';
77919
78368
 
77920
78369
  var hash = require('../../../../hash.js-1.1.7/lib/hash');
@@ -78034,9 +78483,9 @@ EDDSA.prototype.isPoint = function isPoint(val) {
78034
78483
  return val instanceof this.pointClass;
78035
78484
  };
78036
78485
 
78037
- },{"../../../../hash.js-1.1.7/lib/hash":523,"../curves":506,"../utils":514,"./key":511,"./signature":512}],511:[function(require,module,exports){
78486
+ },{"../../../../hash.js-1.1.7/lib/hash":529,"../curves":512,"../utils":520,"./key":517,"./signature":518}],517:[function(require,module,exports){
78038
78487
  arguments[4][101][0].apply(exports,arguments)
78039
- },{"../utils":514,"dup":101}],512:[function(require,module,exports){
78488
+ },{"../utils":520,"dup":101}],518:[function(require,module,exports){
78040
78489
  'use strict';
78041
78490
 
78042
78491
  var BN = require('../../../../bn.js-4.11.8/lib/bn');
@@ -78103,7 +78552,7 @@ Signature.prototype.toHex = function toHex() {
78103
78552
 
78104
78553
  module.exports = Signature;
78105
78554
 
78106
- },{"../../../../bn.js-4.11.8/lib/bn":476,"../utils":514}],513:[function(require,module,exports){
78555
+ },{"../../../../bn.js-4.11.8/lib/bn":482,"../utils":520}],519:[function(require,module,exports){
78107
78556
  module.exports = {
78108
78557
  doubles: {
78109
78558
  step: 4,
@@ -78885,7 +79334,7 @@ module.exports = {
78885
79334
  }
78886
79335
  };
78887
79336
 
78888
- },{}],514:[function(require,module,exports){
79337
+ },{}],520:[function(require,module,exports){
78889
79338
  'use strict';
78890
79339
 
78891
79340
  var utils = exports;
@@ -79006,7 +79455,7 @@ function intFromLE(bytes) {
79006
79455
  utils.intFromLE = intFromLE;
79007
79456
 
79008
79457
 
79009
- },{"../../../bn.js-4.11.8/lib/bn":476,"../../../minimalistic-assert-1.0.1/index":541,"../../../minimalistic-crypto-utils-1.0.1/lib/utils":542}],515:[function(require,module,exports){
79458
+ },{"../../../bn.js-4.11.8/lib/bn":482,"../../../minimalistic-assert-1.0.1/index":547,"../../../minimalistic-crypto-utils-1.0.1/lib/utils":548}],521:[function(require,module,exports){
79010
79459
  module.exports={
79011
79460
  "name": "elliptic",
79012
79461
  "version": "6.5.3",
@@ -79062,7 +79511,7 @@ module.exports={
79062
79511
  "minimalistic-crypto-utils": "^1.0.0"
79063
79512
  }
79064
79513
  }
79065
- },{}],516:[function(require,module,exports){
79514
+ },{}],522:[function(require,module,exports){
79066
79515
  (function (Buffer){(function (){
79067
79516
  'use strict';
79068
79517
 
@@ -79240,7 +79689,7 @@ Object.defineProperties( hkdf, {
79240
79689
  module.exports = hkdf;
79241
79690
 
79242
79691
  }).call(this)}).call(this,require("buffer").Buffer)
79243
- },{"buffer":67,"crypto":78}],517:[function(require,module,exports){
79692
+ },{"buffer":67,"crypto":78}],523:[function(require,module,exports){
79244
79693
  'use strict';
79245
79694
 
79246
79695
  var groestl = require('./lib/groestl');
@@ -79280,7 +79729,7 @@ module.exports.groestl_2 = function(str,format, output) {
79280
79729
  return h.int32ArrayToHexString(a);
79281
79730
  }
79282
79731
  }
79283
- },{"./lib/groestl":518,"./lib/helper":519}],518:[function(require,module,exports){
79732
+ },{"./lib/groestl":524,"./lib/helper":525}],524:[function(require,module,exports){
79284
79733
  /////////////////////////////////////
79285
79734
  //////////// groestl ///////////////
79286
79735
 
@@ -80529,7 +80978,7 @@ module.exports = function(input, format, output) {
80529
80978
  }
80530
80979
  return out;
80531
80980
  }
80532
- },{"./helper":519,"./op":520}],519:[function(require,module,exports){
80981
+ },{"./helper":525,"./op":526}],525:[function(require,module,exports){
80533
80982
  'use strict';
80534
80983
  // String functions
80535
80984
 
@@ -80783,7 +81232,7 @@ module.exports.b64Decode = function(input) {
80783
81232
  }
80784
81233
  return output;
80785
81234
  };
80786
- },{"./op.js":520}],520:[function(require,module,exports){
81235
+ },{"./op.js":526}],526:[function(require,module,exports){
80787
81236
  'use strict';
80788
81237
  //the right shift is important, it has to do with 32 bit operations in javascript, it will make things faster
80789
81238
  function u64(h, l) {
@@ -81247,7 +81696,7 @@ module.exports.xORTable = function(d, s1, s2, len) {
81247
81696
  }
81248
81697
  }
81249
81698
 
81250
- },{}],521:[function(require,module,exports){
81699
+ },{}],527:[function(require,module,exports){
81251
81700
  (function (Buffer){(function (){
81252
81701
  const bs58grscheck = require('../bs58grscheck-2.1.2/index')
81253
81702
  const bech32 = require('../bech32-1.1.3/index')
@@ -81496,7 +81945,7 @@ module.exports = {
81496
81945
  }
81497
81946
 
81498
81947
  }).call(this)}).call(this,require("buffer").Buffer)
81499
- },{"../bech32-1.1.3/index":414,"../bs58grscheck-2.1.2/index":482,"../buffer-equals-1.0.4/index":483,"../create-hash-1.2.0/browser":485,"../secp256k1-3.7.1/elliptic":554,"../varuint-bitcoin-1.1.2/index":576,"buffer":67}],522:[function(require,module,exports){
81948
+ },{"../bech32-1.1.3/index":420,"../bs58grscheck-2.1.2/index":488,"../buffer-equals-1.0.4/index":489,"../create-hash-1.2.0/browser":491,"../secp256k1-3.7.1/elliptic":560,"../varuint-bitcoin-1.1.2/index":582,"buffer":67}],528:[function(require,module,exports){
81500
81949
  'use strict'
81501
81950
  var Buffer = require('../safe-buffer-5.2.0/index').Buffer
81502
81951
  var Transform = require('stream').Transform
@@ -81593,9 +82042,9 @@ HashBase.prototype._digest = function () {
81593
82042
 
81594
82043
  module.exports = HashBase
81595
82044
 
81596
- },{"../inherits-2.0.4/inherits":536,"../safe-buffer-5.2.0/index":553,"stream":192}],523:[function(require,module,exports){
82045
+ },{"../inherits-2.0.4/inherits":542,"../safe-buffer-5.2.0/index":559,"stream":192}],529:[function(require,module,exports){
81597
82046
  arguments[4][134][0].apply(exports,arguments)
81598
- },{"./hash/common":524,"./hash/hmac":525,"./hash/ripemd":526,"./hash/sha":527,"./hash/utils":534,"dup":134}],524:[function(require,module,exports){
82047
+ },{"./hash/common":530,"./hash/hmac":531,"./hash/ripemd":532,"./hash/sha":533,"./hash/utils":540,"dup":134}],530:[function(require,module,exports){
81599
82048
  'use strict';
81600
82049
 
81601
82050
  var utils = require('./utils');
@@ -81689,7 +82138,7 @@ BlockHash.prototype._pad = function pad() {
81689
82138
  return res;
81690
82139
  };
81691
82140
 
81692
- },{"../../../minimalistic-assert-1.0.1/index":541,"./utils":534}],525:[function(require,module,exports){
82141
+ },{"../../../minimalistic-assert-1.0.1/index":547,"./utils":540}],531:[function(require,module,exports){
81693
82142
  'use strict';
81694
82143
 
81695
82144
  var utils = require('./utils');
@@ -81738,15 +82187,15 @@ Hmac.prototype.digest = function digest(enc) {
81738
82187
  return this.outer.digest(enc);
81739
82188
  };
81740
82189
 
81741
- },{"../../../minimalistic-assert-1.0.1/index":541,"./utils":534}],526:[function(require,module,exports){
82190
+ },{"../../../minimalistic-assert-1.0.1/index":547,"./utils":540}],532:[function(require,module,exports){
81742
82191
  arguments[4][137][0].apply(exports,arguments)
81743
- },{"./common":524,"./utils":534,"dup":137}],527:[function(require,module,exports){
82192
+ },{"./common":530,"./utils":540,"dup":137}],533:[function(require,module,exports){
81744
82193
  arguments[4][138][0].apply(exports,arguments)
81745
- },{"./sha/1":528,"./sha/224":529,"./sha/256":530,"./sha/384":531,"./sha/512":532,"dup":138}],528:[function(require,module,exports){
82194
+ },{"./sha/1":534,"./sha/224":535,"./sha/256":536,"./sha/384":537,"./sha/512":538,"dup":138}],534:[function(require,module,exports){
81746
82195
  arguments[4][139][0].apply(exports,arguments)
81747
- },{"../common":524,"../utils":534,"./common":533,"dup":139}],529:[function(require,module,exports){
82196
+ },{"../common":530,"../utils":540,"./common":539,"dup":139}],535:[function(require,module,exports){
81748
82197
  arguments[4][140][0].apply(exports,arguments)
81749
- },{"../utils":534,"./256":530,"dup":140}],530:[function(require,module,exports){
82198
+ },{"../utils":540,"./256":536,"dup":140}],536:[function(require,module,exports){
81750
82199
  'use strict';
81751
82200
 
81752
82201
  var utils = require('../utils');
@@ -81853,9 +82302,9 @@ SHA256.prototype._digest = function digest(enc) {
81853
82302
  return utils.split32(this.h, 'big');
81854
82303
  };
81855
82304
 
81856
- },{"../../../../minimalistic-assert-1.0.1/index":541,"../common":524,"../utils":534,"./common":533}],531:[function(require,module,exports){
82305
+ },{"../../../../minimalistic-assert-1.0.1/index":547,"../common":530,"../utils":540,"./common":539}],537:[function(require,module,exports){
81857
82306
  arguments[4][142][0].apply(exports,arguments)
81858
- },{"../utils":534,"./512":532,"dup":142}],532:[function(require,module,exports){
82307
+ },{"../utils":540,"./512":538,"dup":142}],538:[function(require,module,exports){
81859
82308
  'use strict';
81860
82309
 
81861
82310
  var utils = require('../utils');
@@ -82187,9 +82636,9 @@ function g1_512_lo(xh, xl) {
82187
82636
  return r;
82188
82637
  }
82189
82638
 
82190
- },{"../../../../minimalistic-assert-1.0.1/index":541,"../common":524,"../utils":534}],533:[function(require,module,exports){
82639
+ },{"../../../../minimalistic-assert-1.0.1/index":547,"../common":530,"../utils":540}],539:[function(require,module,exports){
82191
82640
  arguments[4][144][0].apply(exports,arguments)
82192
- },{"../utils":534,"dup":144}],534:[function(require,module,exports){
82641
+ },{"../utils":540,"dup":144}],540:[function(require,module,exports){
82193
82642
  'use strict';
82194
82643
 
82195
82644
  var assert = require('../../../minimalistic-assert-1.0.1/index');
@@ -82469,7 +82918,7 @@ function shr64_lo(ah, al, num) {
82469
82918
  }
82470
82919
  exports.shr64_lo = shr64_lo;
82471
82920
 
82472
- },{"../../../inherits-2.0.4/inherits":536,"../../../minimalistic-assert-1.0.1/index":541}],535:[function(require,module,exports){
82921
+ },{"../../../inherits-2.0.4/inherits":542,"../../../minimalistic-assert-1.0.1/index":547}],541:[function(require,module,exports){
82473
82922
  'use strict';
82474
82923
 
82475
82924
  var hash = require('../../hash.js-1.1.7/lib/hash');
@@ -82584,7 +83033,7 @@ HmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {
82584
83033
  return utils.encode(res, enc);
82585
83034
  };
82586
83035
 
82587
- },{"../../hash.js-1.1.7/lib/hash":523,"../../minimalistic-assert-1.0.1/index":541,"../../minimalistic-crypto-utils-1.0.1/lib/utils":542}],536:[function(require,module,exports){
83036
+ },{"../../hash.js-1.1.7/lib/hash":529,"../../minimalistic-assert-1.0.1/index":547,"../../minimalistic-crypto-utils-1.0.1/lib/utils":548}],542:[function(require,module,exports){
82588
83037
  try {
82589
83038
  var util = require('util');
82590
83039
  /* istanbul ignore next */
@@ -82595,9 +83044,9 @@ try {
82595
83044
  module.exports = require('./inherits_browser.js');
82596
83045
  }
82597
83046
 
82598
- },{"./inherits_browser.js":537,"util":212}],537:[function(require,module,exports){
83047
+ },{"./inherits_browser.js":543,"util":212}],543:[function(require,module,exports){
82599
83048
  arguments[4][148][0].apply(exports,arguments)
82600
- },{"dup":148}],538:[function(require,module,exports){
83049
+ },{"dup":148}],544:[function(require,module,exports){
82601
83050
  /*!
82602
83051
  * Determine if an object is a Buffer
82603
83052
  *
@@ -82610,7 +83059,7 @@ module.exports = function isBuffer (obj) {
82610
83059
  typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
82611
83060
  }
82612
83061
 
82613
- },{}],539:[function(require,module,exports){
83062
+ },{}],545:[function(require,module,exports){
82614
83063
  'use strict'
82615
83064
  var inherits = require('../inherits-2.0.4/inherits')
82616
83065
  var HashBase = require('../hash-base-3.0.4/index')
@@ -82758,13 +83207,13 @@ function fnI (a, b, c, d, m, k, s) {
82758
83207
 
82759
83208
  module.exports = MD5
82760
83209
 
82761
- },{"../hash-base-3.0.4/index":522,"../inherits-2.0.4/inherits":536,"../safe-buffer-5.2.0/index":553}],540:[function(require,module,exports){
82762
- arguments[4][347][0].apply(exports,arguments)
82763
- },{"buffer":67,"dup":347}],541:[function(require,module,exports){
83210
+ },{"../hash-base-3.0.4/index":528,"../inherits-2.0.4/inherits":542,"../safe-buffer-5.2.0/index":559}],546:[function(require,module,exports){
83211
+ arguments[4][348][0].apply(exports,arguments)
83212
+ },{"buffer":67,"dup":348}],547:[function(require,module,exports){
82764
83213
  arguments[4][157][0].apply(exports,arguments)
82765
- },{"dup":157}],542:[function(require,module,exports){
83214
+ },{"dup":157}],548:[function(require,module,exports){
82766
83215
  arguments[4][158][0].apply(exports,arguments)
82767
- },{"dup":158}],543:[function(require,module,exports){
83216
+ },{"dup":158}],549:[function(require,module,exports){
82768
83217
  /**
82769
83218
  * Helpers.
82770
83219
  */
@@ -82928,7 +83377,7 @@ function plural(ms, msAbs, n, name) {
82928
83377
  return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
82929
83378
  }
82930
83379
 
82931
- },{}],544:[function(require,module,exports){
83380
+ },{}],550:[function(require,module,exports){
82932
83381
  assert.notEqual = notEqual
82933
83382
  assert.notOk = notOk
82934
83383
  assert.equal = equal
@@ -82952,7 +83401,7 @@ function assert (t, m) {
82952
83401
  if (!t) throw new Error(m || 'AssertionError')
82953
83402
  }
82954
83403
 
82955
- },{}],545:[function(require,module,exports){
83404
+ },{}],551:[function(require,module,exports){
82956
83405
  var checkParameters = require('./lib/precondition')
82957
83406
  var native = require('crypto')
82958
83407
 
@@ -82985,7 +83434,7 @@ if (!native.pbkdf2Sync || native.pbkdf2Sync.toString().indexOf('keylen, digest')
82985
83434
  exports.pbkdf2 = nativePBKDF2
82986
83435
  }
82987
83436
 
82988
- },{"./lib/async":546,"./lib/precondition":548,"./lib/sync":549,"crypto":78}],546:[function(require,module,exports){
83437
+ },{"./lib/async":552,"./lib/precondition":554,"./lib/sync":555,"crypto":78}],552:[function(require,module,exports){
82989
83438
  (function (process,global){(function (){
82990
83439
  var checkParameters = require('./precondition')
82991
83440
  var defaultEncoding = require('./default-encoding')
@@ -83089,7 +83538,7 @@ module.exports = function (password, salt, iterations, keylen, digest, callback)
83089
83538
  }
83090
83539
 
83091
83540
  }).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
83092
- },{"../../safe-buffer-5.2.0/index":553,"./default-encoding":547,"./precondition":548,"./sync":549,"_process":171}],547:[function(require,module,exports){
83541
+ },{"../../safe-buffer-5.2.0/index":559,"./default-encoding":553,"./precondition":554,"./sync":555,"_process":171}],553:[function(require,module,exports){
83093
83542
  (function (process){(function (){
83094
83543
  var defaultEncoding
83095
83544
  /* istanbul ignore next */
@@ -83103,7 +83552,7 @@ if (process.browser) {
83103
83552
  module.exports = defaultEncoding
83104
83553
 
83105
83554
  }).call(this)}).call(this,require('_process'))
83106
- },{"_process":171}],548:[function(require,module,exports){
83555
+ },{"_process":171}],554:[function(require,module,exports){
83107
83556
  (function (Buffer){(function (){
83108
83557
  var MAX_ALLOC = Math.pow(2, 30) - 1 // default in iojs
83109
83558
 
@@ -83135,7 +83584,7 @@ module.exports = function (password, salt, iterations, keylen) {
83135
83584
  }
83136
83585
 
83137
83586
  }).call(this)}).call(this,{"isBuffer":require("../../../../../../../node_modules/is-buffer/index.js")})
83138
- },{"../../../../../../../node_modules/is-buffer/index.js":150}],549:[function(require,module,exports){
83587
+ },{"../../../../../../../node_modules/is-buffer/index.js":150}],555:[function(require,module,exports){
83139
83588
  var sizes = {
83140
83589
  md5: 16,
83141
83590
  sha1: 20,
@@ -83188,7 +83637,7 @@ function pbkdf2 (password, salt, iterations, keylen, digest) {
83188
83637
 
83189
83638
  module.exports = pbkdf2
83190
83639
 
83191
- },{"../../create-hmac-1.1.4/browser":487,"../../safe-buffer-5.2.0/index":553,"../lib/default-encoding":547,"../lib/precondition":548}],550:[function(require,module,exports){
83640
+ },{"../../create-hmac-1.1.4/browser":493,"../../safe-buffer-5.2.0/index":559,"../lib/default-encoding":553,"../lib/precondition":554}],556:[function(require,module,exports){
83192
83641
  var OPS = require('../bitcoin-ops-1.4.1/index.json')
83193
83642
 
83194
83643
  function encodingLength (i) {
@@ -83267,7 +83716,7 @@ module.exports = {
83267
83716
  decode: decode
83268
83717
  }
83269
83718
 
83270
- },{"../bitcoin-ops-1.4.1/index.json":430}],551:[function(require,module,exports){
83719
+ },{"../bitcoin-ops-1.4.1/index.json":436}],557:[function(require,module,exports){
83271
83720
  (function (process,global){(function (){
83272
83721
  'use strict'
83273
83722
 
@@ -83321,7 +83770,7 @@ function randomBytes (size, cb) {
83321
83770
  }
83322
83771
 
83323
83772
  }).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
83324
- },{"../safe-buffer-5.2.0/index":553,"_process":171}],552:[function(require,module,exports){
83773
+ },{"../safe-buffer-5.2.0/index":559,"_process":171}],558:[function(require,module,exports){
83325
83774
  'use strict'
83326
83775
  var Buffer = require('buffer').Buffer
83327
83776
  var inherits = require('../inherits-2.0.4/inherits')
@@ -83486,7 +83935,7 @@ function fn5 (a, b, c, d, e, m, k, s) {
83486
83935
 
83487
83936
  module.exports = RIPEMD160
83488
83937
 
83489
- },{"../hash-base-3.0.4/index":522,"../inherits-2.0.4/inherits":536,"buffer":67}],553:[function(require,module,exports){
83938
+ },{"../hash-base-3.0.4/index":528,"../inherits-2.0.4/inherits":542,"buffer":67}],559:[function(require,module,exports){
83490
83939
  /* eslint-disable node/no-deprecated-api */
83491
83940
  var buffer = require('buffer')
83492
83941
  var Buffer = buffer.Buffer
@@ -83552,11 +84001,11 @@ SafeBuffer.allocUnsafeSlow = function (size) {
83552
84001
  return buffer.SlowBuffer(size)
83553
84002
  }
83554
84003
 
83555
- },{"buffer":67}],554:[function(require,module,exports){
84004
+ },{"buffer":67}],560:[function(require,module,exports){
83556
84005
  'use strict'
83557
84006
  module.exports = require('./lib')(require('./lib/elliptic'))
83558
84007
 
83559
- },{"./lib":558,"./lib/elliptic":557}],555:[function(require,module,exports){
84008
+ },{"./lib":564,"./lib/elliptic":563}],561:[function(require,module,exports){
83560
84009
  (function (Buffer){(function (){
83561
84010
  'use strict'
83562
84011
  var toString = Object.prototype.toString
@@ -83604,7 +84053,7 @@ exports.isNumberInInterval = function (number, x, y, message) {
83604
84053
  }
83605
84054
 
83606
84055
  }).call(this)}).call(this,{"isBuffer":require("../../../../../../../node_modules/is-buffer/index.js")})
83607
- },{"../../../../../../../node_modules/is-buffer/index.js":150}],556:[function(require,module,exports){
84056
+ },{"../../../../../../../node_modules/is-buffer/index.js":150}],562:[function(require,module,exports){
83608
84057
  'use strict'
83609
84058
  var Buffer = require('../../safe-buffer-5.2.0/index').Buffer
83610
84059
  var bip66 = require('../../bip66-1.1.5/index')
@@ -83799,7 +84248,7 @@ exports.signatureImportLax = function (sig) {
83799
84248
  return { r: r, s: s }
83800
84249
  }
83801
84250
 
83802
- },{"../../bip66-1.1.5/index":429,"../../safe-buffer-5.2.0/index":553}],557:[function(require,module,exports){
84251
+ },{"../../bip66-1.1.5/index":435,"../../safe-buffer-5.2.0/index":559}],563:[function(require,module,exports){
83803
84252
  'use strict'
83804
84253
  var Buffer = require('../../../safe-buffer-5.2.0/index').Buffer
83805
84254
  var createHash = require('../../../create-hash-1.2.0/browser')
@@ -84064,7 +84513,7 @@ exports.ecdhUnsafe = function (publicKey, privateKey, compressed) {
84064
84513
  return Buffer.from(pair.pub.mul(scalar).encode(true, compressed))
84065
84514
  }
84066
84515
 
84067
- },{"../../../bn.js-4.11.8/lib/bn":476,"../../../create-hash-1.2.0/browser":485,"../../../elliptic-6.5.3/lib/elliptic":500,"../../../safe-buffer-5.2.0/index":553,"../messages.json":559}],558:[function(require,module,exports){
84516
+ },{"../../../bn.js-4.11.8/lib/bn":482,"../../../create-hash-1.2.0/browser":491,"../../../elliptic-6.5.3/lib/elliptic":506,"../../../safe-buffer-5.2.0/index":559,"../messages.json":565}],564:[function(require,module,exports){
84068
84517
  'use strict'
84069
84518
  var assert = require('./assert')
84070
84519
  var der = require('./der')
@@ -84311,7 +84760,7 @@ module.exports = function (secp256k1) {
84311
84760
  }
84312
84761
  }
84313
84762
 
84314
- },{"./assert":555,"./der":556,"./messages.json":559}],559:[function(require,module,exports){
84763
+ },{"./assert":561,"./der":562,"./messages.json":565}],565:[function(require,module,exports){
84315
84764
  module.exports={
84316
84765
  "COMPRESSED_TYPE_INVALID": "compressed should be a boolean",
84317
84766
  "EC_PRIVATE_KEY_TYPE_INVALID": "private key should be a Buffer",
@@ -84349,10 +84798,10 @@ module.exports={
84349
84798
  "TWEAK_TYPE_INVALID": "tweak should be a Buffer",
84350
84799
  "TWEAK_LENGTH_INVALID": "tweak length is invalid"
84351
84800
  }
84352
- },{}],560:[function(require,module,exports){
84801
+ },{}],566:[function(require,module,exports){
84353
84802
  module.exports = require('./lib')(require('./lib/elliptic'))
84354
84803
 
84355
- },{"./lib":562,"./lib/elliptic":561}],561:[function(require,module,exports){
84804
+ },{"./lib":568,"./lib/elliptic":567}],567:[function(require,module,exports){
84356
84805
  const EC = require('../../elliptic-6.5.3/lib/elliptic').ec
84357
84806
 
84358
84807
  const ec = new EC('secp256k1')
@@ -84756,7 +85205,7 @@ module.exports = {
84756
85205
  }
84757
85206
  }
84758
85207
 
84759
- },{"../../elliptic-6.5.3/lib/elliptic":500}],562:[function(require,module,exports){
85208
+ },{"../../elliptic-6.5.3/lib/elliptic":506}],568:[function(require,module,exports){
84760
85209
  const errors = {
84761
85210
  IMPOSSIBLE_CASE: 'Impossible case. Please create issue.',
84762
85211
  TWEAK_ADD:
@@ -85094,7 +85543,7 @@ module.exports = (secp256k1) => {
85094
85543
  }
85095
85544
  }
85096
85545
 
85097
- },{}],563:[function(require,module,exports){
85546
+ },{}],569:[function(require,module,exports){
85098
85547
  var Buffer = require('../safe-buffer-5.2.0/index').Buffer
85099
85548
 
85100
85549
  // prototype class for hash functions
@@ -85177,7 +85626,7 @@ Hash.prototype._update = function () {
85177
85626
 
85178
85627
  module.exports = Hash
85179
85628
 
85180
- },{"../safe-buffer-5.2.0/index":553}],564:[function(require,module,exports){
85629
+ },{"../safe-buffer-5.2.0/index":559}],570:[function(require,module,exports){
85181
85630
  'use strict'
85182
85631
  var exports = (module.exports = function SHA(algorithm) {
85183
85632
  algorithm = algorithm.toLowerCase()
@@ -85195,7 +85644,7 @@ exports.sha256 = require('./sha256')
85195
85644
  exports.sha384 = require('./sha384')
85196
85645
  exports.sha512 = require('./sha512')
85197
85646
 
85198
- },{"./sha":565,"./sha1":566,"./sha224":567,"./sha256":568,"./sha384":569,"./sha512":570}],565:[function(require,module,exports){
85647
+ },{"./sha":571,"./sha1":572,"./sha224":573,"./sha256":574,"./sha384":575,"./sha512":576}],571:[function(require,module,exports){
85199
85648
  /*
85200
85649
  * A JavaScript implementation of the Secure Hash Algorithm, SHA-0, as defined
85201
85650
  * in FIPS PUB 180-1
@@ -85291,7 +85740,7 @@ Sha.prototype._hash = function () {
85291
85740
 
85292
85741
  module.exports = Sha
85293
85742
 
85294
- },{"../inherits-2.0.4/inherits":536,"../safe-buffer-5.2.0/index":553,"./hash":563}],566:[function(require,module,exports){
85743
+ },{"../inherits-2.0.4/inherits":542,"../safe-buffer-5.2.0/index":559,"./hash":569}],572:[function(require,module,exports){
85295
85744
  /*
85296
85745
  * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
85297
85746
  * in FIPS PUB 180-1
@@ -85392,7 +85841,7 @@ Sha1.prototype._hash = function () {
85392
85841
 
85393
85842
  module.exports = Sha1
85394
85843
 
85395
- },{"../inherits-2.0.4/inherits":536,"../safe-buffer-5.2.0/index":553,"./hash":563}],567:[function(require,module,exports){
85844
+ },{"../inherits-2.0.4/inherits":542,"../safe-buffer-5.2.0/index":559,"./hash":569}],573:[function(require,module,exports){
85396
85845
  /**
85397
85846
  * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
85398
85847
  * in FIPS 180-2
@@ -85447,7 +85896,7 @@ Sha224.prototype._hash = function () {
85447
85896
 
85448
85897
  module.exports = Sha224
85449
85898
 
85450
- },{"../inherits-2.0.4/inherits":536,"../safe-buffer-5.2.0/index":553,"./hash":563,"./sha256":568}],568:[function(require,module,exports){
85899
+ },{"../inherits-2.0.4/inherits":542,"../safe-buffer-5.2.0/index":559,"./hash":569,"./sha256":574}],574:[function(require,module,exports){
85451
85900
  /**
85452
85901
  * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
85453
85902
  * in FIPS 180-2
@@ -85584,7 +86033,7 @@ Sha256.prototype._hash = function () {
85584
86033
 
85585
86034
  module.exports = Sha256
85586
86035
 
85587
- },{"../inherits-2.0.4/inherits":536,"../safe-buffer-5.2.0/index":553,"./hash":563}],569:[function(require,module,exports){
86036
+ },{"../inherits-2.0.4/inherits":542,"../safe-buffer-5.2.0/index":559,"./hash":569}],575:[function(require,module,exports){
85588
86037
  var inherits = require('../inherits-2.0.4/inherits')
85589
86038
  var SHA512 = require('./sha512')
85590
86039
  var Hash = require('./hash')
@@ -85643,7 +86092,7 @@ Sha384.prototype._hash = function () {
85643
86092
 
85644
86093
  module.exports = Sha384
85645
86094
 
85646
- },{"../inherits-2.0.4/inherits":536,"../safe-buffer-5.2.0/index":553,"./hash":563,"./sha512":570}],570:[function(require,module,exports){
86095
+ },{"../inherits-2.0.4/inherits":542,"../safe-buffer-5.2.0/index":559,"./hash":569,"./sha512":576}],576:[function(require,module,exports){
85647
86096
  var inherits = require('../inherits-2.0.4/inherits')
85648
86097
  var Hash = require('./hash')
85649
86098
  var Buffer = require('../safe-buffer-5.2.0/index').Buffer
@@ -85905,9 +86354,9 @@ Sha512.prototype._hash = function () {
85905
86354
 
85906
86355
  module.exports = Sha512
85907
86356
 
85908
- },{"../inherits-2.0.4/inherits":536,"../safe-buffer-5.2.0/index":553,"./hash":563}],571:[function(require,module,exports){
85909
- arguments[4][380][0].apply(exports,arguments)
85910
- },{"./native":574,"dup":380}],572:[function(require,module,exports){
86357
+ },{"../inherits-2.0.4/inherits":542,"../safe-buffer-5.2.0/index":559,"./hash":569}],577:[function(require,module,exports){
86358
+ arguments[4][381][0].apply(exports,arguments)
86359
+ },{"./native":580,"dup":381}],578:[function(require,module,exports){
85911
86360
  (function (Buffer){(function (){
85912
86361
  var NATIVE = require('./native')
85913
86362
  var ERRORS = require('./errors')
@@ -86002,11 +86451,11 @@ for (var typeName in types) {
86002
86451
  module.exports = types
86003
86452
 
86004
86453
  }).call(this)}).call(this,{"isBuffer":require("../../../../../../node_modules/is-buffer/index.js")})
86005
- },{"../../../../../../node_modules/is-buffer/index.js":150,"./errors":571,"./native":574}],573:[function(require,module,exports){
86006
- arguments[4][382][0].apply(exports,arguments)
86007
- },{"./errors":571,"./extra":572,"./native":574,"dup":382}],574:[function(require,module,exports){
86454
+ },{"../../../../../../node_modules/is-buffer/index.js":150,"./errors":577,"./native":580}],579:[function(require,module,exports){
86008
86455
  arguments[4][383][0].apply(exports,arguments)
86009
- },{"dup":383}],575:[function(require,module,exports){
86456
+ },{"./errors":577,"./extra":578,"./native":580,"dup":383}],580:[function(require,module,exports){
86457
+ arguments[4][384][0].apply(exports,arguments)
86458
+ },{"dup":384}],581:[function(require,module,exports){
86010
86459
  (function (root) {
86011
86460
  "use strict";
86012
86461
 
@@ -86460,7 +86909,7 @@ UChar.udata={
86460
86909
  }
86461
86910
  }(this));
86462
86911
 
86463
- },{}],576:[function(require,module,exports){
86912
+ },{}],582:[function(require,module,exports){
86464
86913
  'use strict'
86465
86914
  var Buffer = require('../safe-buffer-5.2.0/index').Buffer
86466
86915
 
@@ -86552,7 +87001,7 @@ function encodingLength (number) {
86552
87001
 
86553
87002
  module.exports = { encode: encode, decode: decode, encodingLength: encodingLength }
86554
87003
 
86555
- },{"../safe-buffer-5.2.0/index":553}],577:[function(require,module,exports){
87004
+ },{"../safe-buffer-5.2.0/index":559}],583:[function(require,module,exports){
86556
87005
  (function (Buffer){(function (){
86557
87006
  var bs58check = require('../bs58check-2.1.2/index')
86558
87007
 
@@ -86619,7 +87068,7 @@ module.exports = {
86619
87068
  }
86620
87069
 
86621
87070
  }).call(this)}).call(this,require("buffer").Buffer)
86622
- },{"../bs58check-2.1.2/index":480,"buffer":67}],578:[function(require,module,exports){
87071
+ },{"../bs58check-2.1.2/index":486,"buffer":67}],584:[function(require,module,exports){
86623
87072
  "use strict";
86624
87073
  var __extends = (this && this.__extends) || (function () {
86625
87074
  var extendStatics = function (d, b) {
@@ -86679,7 +87128,7 @@ var CoinlibAssertionError = /** @class */ (function (_super) {
86679
87128
  }(Error));
86680
87129
  exports.CoinlibAssertionError = CoinlibAssertionError;
86681
87130
 
86682
- },{}],579:[function(require,module,exports){
87131
+ },{}],585:[function(require,module,exports){
86683
87132
  "use strict";
86684
87133
  var __extends = (this && this.__extends) || (function () {
86685
87134
  var extendStatics = function (d, b) {
@@ -86958,7 +87407,63 @@ var InvalidString = /** @class */ (function (_super) {
86958
87407
  }(SerializerError));
86959
87408
  exports.InvalidString = InvalidString;
86960
87409
 
86961
- },{"./coinlib-error":578}],580:[function(require,module,exports){
87410
+ },{"./coinlib-error":584}],586:[function(require,module,exports){
87411
+ "use strict";
87412
+ Object.defineProperty(exports, "__esModule", { value: true });
87413
+ exports.bufferFrom = exports.assertNever = exports.SubProtocolType = exports.TimeInterval = exports.Domain = exports.TransactionError = exports.BalanceError = exports.ProtocolErrorType = exports.SerializerErrorType = exports.CoinlibError = exports.NetworkError = exports.ProtocolNotSupported = exports.SerializerVersionMismatch = exports.TypeNotSupported = exports.isSubProtocolSymbol = exports.isMainProtocolSymbol = exports.isProtocolSymbol = exports.isNetworkEqual = exports.SimpleAction = exports.LinkedAction = exports.RepeatableAction = exports.Action = exports.NetworkType = exports.SubProtocolSymbols = exports.MainProtocolSymbols = exports.ProtocolNetwork = exports.ProtocolBlockExplorer = exports.CryptoClient = exports.AirGapNFTWallet = exports.AirGapWalletStatus = exports.AirGapCoinWallet = exports.AirGapMarketWallet = exports.AirGapWallet = void 0;
87414
+ var Action_1 = require("./actions/Action");
87415
+ Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return Action_1.Action; } });
87416
+ var LinkedAction_1 = require("./actions/LinkedAction");
87417
+ Object.defineProperty(exports, "LinkedAction", { enumerable: true, get: function () { return LinkedAction_1.LinkedAction; } });
87418
+ var RepeatableAction_1 = require("./actions/RepeatableAction");
87419
+ Object.defineProperty(exports, "RepeatableAction", { enumerable: true, get: function () { return RepeatableAction_1.RepeatableAction; } });
87420
+ var SimpleAction_1 = require("./actions/SimpleAction");
87421
+ Object.defineProperty(exports, "SimpleAction", { enumerable: true, get: function () { return SimpleAction_1.SimpleAction; } });
87422
+ var errors_1 = require("./errors");
87423
+ Object.defineProperty(exports, "BalanceError", { enumerable: true, get: function () { return errors_1.BalanceError; } });
87424
+ Object.defineProperty(exports, "NetworkError", { enumerable: true, get: function () { return errors_1.NetworkError; } });
87425
+ Object.defineProperty(exports, "ProtocolErrorType", { enumerable: true, get: function () { return errors_1.ProtocolErrorType; } });
87426
+ Object.defineProperty(exports, "ProtocolNotSupported", { enumerable: true, get: function () { return errors_1.ProtocolNotSupported; } });
87427
+ Object.defineProperty(exports, "SerializerErrorType", { enumerable: true, get: function () { return errors_1.SerializerErrorType; } });
87428
+ Object.defineProperty(exports, "SerializerVersionMismatch", { enumerable: true, get: function () { return errors_1.SerializerVersionMismatch; } });
87429
+ Object.defineProperty(exports, "TransactionError", { enumerable: true, get: function () { return errors_1.TransactionError; } });
87430
+ Object.defineProperty(exports, "TypeNotSupported", { enumerable: true, get: function () { return errors_1.TypeNotSupported; } });
87431
+ var coinlib_error_1 = require("./errors/coinlib-error");
87432
+ Object.defineProperty(exports, "CoinlibError", { enumerable: true, get: function () { return coinlib_error_1.CoinlibError; } });
87433
+ Object.defineProperty(exports, "Domain", { enumerable: true, get: function () { return coinlib_error_1.Domain; } });
87434
+ var CryptoClient_1 = require("./protocols/CryptoClient");
87435
+ Object.defineProperty(exports, "CryptoClient", { enumerable: true, get: function () { return CryptoClient_1.CryptoClient; } });
87436
+ var ICoinSubProtocol_1 = require("./protocols/ICoinSubProtocol");
87437
+ Object.defineProperty(exports, "SubProtocolType", { enumerable: true, get: function () { return ICoinSubProtocol_1.SubProtocolType; } });
87438
+ var assert_1 = require("./utils/assert");
87439
+ Object.defineProperty(exports, "assertNever", { enumerable: true, get: function () { return assert_1.assertNever; } });
87440
+ var buffer_1 = require("./utils/buffer");
87441
+ Object.defineProperty(exports, "bufferFrom", { enumerable: true, get: function () { return buffer_1.bufferFrom; } });
87442
+ var Network_1 = require("./utils/Network");
87443
+ Object.defineProperty(exports, "isNetworkEqual", { enumerable: true, get: function () { return Network_1.isNetworkEqual; } });
87444
+ var ProtocolBlockExplorer_1 = require("./utils/ProtocolBlockExplorer");
87445
+ Object.defineProperty(exports, "ProtocolBlockExplorer", { enumerable: true, get: function () { return ProtocolBlockExplorer_1.ProtocolBlockExplorer; } });
87446
+ var ProtocolNetwork_1 = require("./utils/ProtocolNetwork");
87447
+ Object.defineProperty(exports, "NetworkType", { enumerable: true, get: function () { return ProtocolNetwork_1.NetworkType; } });
87448
+ Object.defineProperty(exports, "ProtocolNetwork", { enumerable: true, get: function () { return ProtocolNetwork_1.ProtocolNetwork; } });
87449
+ var ProtocolSymbols_1 = require("./utils/ProtocolSymbols");
87450
+ Object.defineProperty(exports, "isMainProtocolSymbol", { enumerable: true, get: function () { return ProtocolSymbols_1.isMainProtocolSymbol; } });
87451
+ Object.defineProperty(exports, "isProtocolSymbol", { enumerable: true, get: function () { return ProtocolSymbols_1.isProtocolSymbol; } });
87452
+ Object.defineProperty(exports, "isSubProtocolSymbol", { enumerable: true, get: function () { return ProtocolSymbols_1.isSubProtocolSymbol; } });
87453
+ Object.defineProperty(exports, "MainProtocolSymbols", { enumerable: true, get: function () { return ProtocolSymbols_1.MainProtocolSymbols; } });
87454
+ Object.defineProperty(exports, "SubProtocolSymbols", { enumerable: true, get: function () { return ProtocolSymbols_1.SubProtocolSymbols; } });
87455
+ var AirGapCoinWallet_1 = require("./wallet/AirGapCoinWallet");
87456
+ Object.defineProperty(exports, "AirGapCoinWallet", { enumerable: true, get: function () { return AirGapCoinWallet_1.AirGapCoinWallet; } });
87457
+ Object.defineProperty(exports, "TimeInterval", { enumerable: true, get: function () { return AirGapCoinWallet_1.TimeInterval; } });
87458
+ var AirGapMarketWallet_1 = require("./wallet/AirGapMarketWallet");
87459
+ Object.defineProperty(exports, "AirGapMarketWallet", { enumerable: true, get: function () { return AirGapMarketWallet_1.AirGapMarketWallet; } });
87460
+ var AirGapNFTWallet_1 = require("./wallet/AirGapNFTWallet");
87461
+ Object.defineProperty(exports, "AirGapNFTWallet", { enumerable: true, get: function () { return AirGapNFTWallet_1.AirGapNFTWallet; } });
87462
+ var AirGapWallet_1 = require("./wallet/AirGapWallet");
87463
+ Object.defineProperty(exports, "AirGapWallet", { enumerable: true, get: function () { return AirGapWallet_1.AirGapWallet; } });
87464
+ Object.defineProperty(exports, "AirGapWalletStatus", { enumerable: true, get: function () { return AirGapWallet_1.AirGapWalletStatus; } });
87465
+
87466
+ },{"./actions/Action":388,"./actions/LinkedAction":389,"./actions/RepeatableAction":390,"./actions/SimpleAction":391,"./errors":585,"./errors/coinlib-error":584,"./protocols/CryptoClient":587,"./protocols/ICoinSubProtocol":588,"./utils/Network":591,"./utils/ProtocolBlockExplorer":592,"./utils/ProtocolNetwork":593,"./utils/ProtocolSymbols":594,"./utils/assert":595,"./utils/buffer":596,"./wallet/AirGapCoinWallet":599,"./wallet/AirGapMarketWallet":600,"./wallet/AirGapNFTWallet":601,"./wallet/AirGapWallet":602}],587:[function(require,module,exports){
86962
87467
  "use strict";
86963
87468
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
86964
87469
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -87043,7 +87548,17 @@ var CryptoClient = /** @class */ (function () {
87043
87548
  }());
87044
87549
  exports.CryptoClient = CryptoClient;
87045
87550
 
87046
- },{"../errors":579,"../errors/coinlib-error":578,"../utils/AES":582}],581:[function(require,module,exports){
87551
+ },{"../errors":585,"../errors/coinlib-error":584,"../utils/AES":590}],588:[function(require,module,exports){
87552
+ "use strict";
87553
+ Object.defineProperty(exports, "__esModule", { value: true });
87554
+ exports.SubProtocolType = void 0;
87555
+ var SubProtocolType;
87556
+ (function (SubProtocolType) {
87557
+ SubProtocolType["ACCOUNT"] = "account";
87558
+ SubProtocolType["TOKEN"] = "token";
87559
+ })(SubProtocolType = exports.SubProtocolType || (exports.SubProtocolType = {}));
87560
+
87561
+ },{}],589:[function(require,module,exports){
87047
87562
  (function (Buffer){(function (){
87048
87563
  "use strict";
87049
87564
  var __extends = (this && this.__extends) || (function () {
@@ -87123,7 +87638,7 @@ var Secp256k1CryptoClient = /** @class */ (function (_super) {
87123
87638
  exports.Secp256k1CryptoClient = Secp256k1CryptoClient;
87124
87639
 
87125
87640
  }).call(this)}).call(this,require("buffer").Buffer)
87126
- },{"../dependencies/src/eciesjs-0.3.9/src/index":490,"./CryptoClient":580,"buffer":67}],582:[function(require,module,exports){
87641
+ },{"../dependencies/src/eciesjs-0.3.9/src/index":496,"./CryptoClient":587,"buffer":67}],590:[function(require,module,exports){
87127
87642
  (function (Buffer){(function (){
87128
87643
  "use strict";
87129
87644
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -87287,7 +87802,28 @@ var AES = /** @class */ (function () {
87287
87802
  exports.AES = AES;
87288
87803
 
87289
87804
  }).call(this)}).call(this,require("buffer").Buffer)
87290
- },{"../errors":579,"../errors/coinlib-error":578,"./hex":585,"buffer":67,"crypto":78}],583:[function(require,module,exports){
87805
+ },{"../errors":585,"../errors/coinlib-error":584,"./hex":597,"buffer":67,"crypto":78}],591:[function(require,module,exports){
87806
+ "use strict";
87807
+ Object.defineProperty(exports, "__esModule", { value: true });
87808
+ exports.isNetworkEqual = void 0;
87809
+ var isNetworkEqual = function (network1, network2) {
87810
+ return network1.name === network2.name && network1.type === network2.type && network1.rpcUrl === network2.rpcUrl;
87811
+ };
87812
+ exports.isNetworkEqual = isNetworkEqual;
87813
+
87814
+ },{}],592:[function(require,module,exports){
87815
+ "use strict";
87816
+ Object.defineProperty(exports, "__esModule", { value: true });
87817
+ exports.ProtocolBlockExplorer = void 0;
87818
+ var ProtocolBlockExplorer = /** @class */ (function () {
87819
+ function ProtocolBlockExplorer(blockExplorer) {
87820
+ this.blockExplorer = blockExplorer;
87821
+ }
87822
+ return ProtocolBlockExplorer;
87823
+ }());
87824
+ exports.ProtocolBlockExplorer = ProtocolBlockExplorer;
87825
+
87826
+ },{}],593:[function(require,module,exports){
87291
87827
  "use strict";
87292
87828
  Object.defineProperty(exports, "__esModule", { value: true });
87293
87829
  exports.ProtocolNetwork = exports.NetworkType = void 0;
@@ -87323,7 +87859,7 @@ var ProtocolNetwork = /** @class */ (function () {
87323
87859
  }());
87324
87860
  exports.ProtocolNetwork = ProtocolNetwork;
87325
87861
 
87326
- },{"../dependencies/src/create-hash-1.2.0/index":486}],584:[function(require,module,exports){
87862
+ },{"../dependencies/src/create-hash-1.2.0/index":492}],594:[function(require,module,exports){
87327
87863
  "use strict";
87328
87864
  Object.defineProperty(exports, "__esModule", { value: true });
87329
87865
  exports.isProtocolSymbol = exports.isSubProtocolSymbol = exports.isMainProtocolSymbol = exports.SubProtocolSymbols = exports.MainProtocolSymbols = void 0;
@@ -87382,7 +87918,39 @@ function isProtocolSymbol(identifier) {
87382
87918
  }
87383
87919
  exports.isProtocolSymbol = isProtocolSymbol;
87384
87920
 
87385
- },{}],585:[function(require,module,exports){
87921
+ },{}],595:[function(require,module,exports){
87922
+ "use strict";
87923
+ Object.defineProperty(exports, "__esModule", { value: true });
87924
+ exports.assertFields = exports.assertNever = void 0;
87925
+ var errors_1 = require("../errors");
87926
+ var coinlib_error_1 = require("../errors/coinlib-error");
87927
+ var assertNever = function (x) { return undefined; };
87928
+ exports.assertNever = assertNever;
87929
+ function assertFields(name, object) {
87930
+ var fields = [];
87931
+ for (var _i = 2; _i < arguments.length; _i++) {
87932
+ fields[_i - 2] = arguments[_i];
87933
+ }
87934
+ fields.forEach(function (field) {
87935
+ if (object[field] === undefined || object[field] === null) {
87936
+ throw new errors_1.ConditionViolationError(coinlib_error_1.Domain.UTILS, name + ", required: " + fields.join(', ') + ", but " + field + " is missing.");
87937
+ }
87938
+ });
87939
+ }
87940
+ exports.assertFields = assertFields;
87941
+
87942
+ },{"../errors":585,"../errors/coinlib-error":584}],596:[function(require,module,exports){
87943
+ (function (Buffer){(function (){
87944
+ "use strict";
87945
+ Object.defineProperty(exports, "__esModule", { value: true });
87946
+ exports.bufferFrom = void 0;
87947
+ var bufferFrom = function (data, encoding) {
87948
+ return Buffer.from(data, encoding);
87949
+ };
87950
+ exports.bufferFrom = bufferFrom;
87951
+
87952
+ }).call(this)}).call(this,require("buffer").Buffer)
87953
+ },{"buffer":67}],597:[function(require,module,exports){
87386
87954
  (function (Buffer){(function (){
87387
87955
  "use strict";
87388
87956
  var __importDefault = (this && this.__importDefault) || function (mod) {
@@ -87497,7 +88065,7 @@ function fillToTargetLength(hexString, bitLength) {
87497
88065
  }
87498
88066
 
87499
88067
  }).call(this)}).call(this,require("buffer").Buffer)
87500
- },{"../dependencies/src/bignumber.js-9.0.0/bignumber":419,"./padStart":586,"buffer":67}],586:[function(require,module,exports){
88068
+ },{"../dependencies/src/bignumber.js-9.0.0/bignumber":425,"./padStart":598,"buffer":67}],598:[function(require,module,exports){
87501
88069
  "use strict";
87502
88070
  Object.defineProperty(exports, "__esModule", { value: true });
87503
88071
  exports.padStart = void 0;
@@ -87518,10 +88086,746 @@ function padStart(targetString, targetLength, padString) {
87518
88086
  }
87519
88087
  exports.padStart = padStart;
87520
88088
 
87521
- },{}],587:[function(require,module,exports){
88089
+ },{}],599:[function(require,module,exports){
88090
+ "use strict";
88091
+ var __extends = (this && this.__extends) || (function () {
88092
+ var extendStatics = function (d, b) {
88093
+ extendStatics = Object.setPrototypeOf ||
88094
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
88095
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
88096
+ return extendStatics(d, b);
88097
+ };
88098
+ return function (d, b) {
88099
+ extendStatics(d, b);
88100
+ function __() { this.constructor = d; }
88101
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
88102
+ };
88103
+ })();
88104
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
88105
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
88106
+ return new (P || (P = Promise))(function (resolve, reject) {
88107
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
88108
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
88109
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
88110
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
88111
+ });
88112
+ };
88113
+ var __generator = (this && this.__generator) || function (thisArg, body) {
88114
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
88115
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
88116
+ function verb(n) { return function (v) { return step([n, v]); }; }
88117
+ function step(op) {
88118
+ if (f) throw new TypeError("Generator is already executing.");
88119
+ while (_) try {
88120
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
88121
+ if (y = 0, t) op = [op[0] & 2, t.value];
88122
+ switch (op[0]) {
88123
+ case 0: case 1: t = op; break;
88124
+ case 4: _.label++; return { value: op[1], done: false };
88125
+ case 5: _.label++; y = op[1]; op = [0]; continue;
88126
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
88127
+ default:
88128
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
88129
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
88130
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
88131
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
88132
+ if (t[2]) _.ops.pop();
88133
+ _.trys.pop(); continue;
88134
+ }
88135
+ op = body.call(thisArg, _);
88136
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
88137
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
88138
+ }
88139
+ };
88140
+ var __importDefault = (this && this.__importDefault) || function (mod) {
88141
+ return (mod && mod.__esModule) ? mod : { "default": mod };
88142
+ };
88143
+ Object.defineProperty(exports, "__esModule", { value: true });
88144
+ exports.AirGapCoinWallet = exports.TimeInterval = void 0;
88145
+ var bignumber_1 = __importDefault(require("../dependencies/src/bignumber.js-9.0.0/bignumber"));
88146
+ var ProtocolNetwork_1 = require("../utils/ProtocolNetwork");
88147
+ var ProtocolSymbols_1 = require("../utils/ProtocolSymbols");
88148
+ var AirGapMarketWallet_1 = require("./AirGapMarketWallet");
88149
+ var TimeInterval;
88150
+ (function (TimeInterval) {
88151
+ TimeInterval["HOURS"] = "24h";
88152
+ TimeInterval["DAYS"] = "7d";
88153
+ TimeInterval["MONTH"] = "30d";
88154
+ })(TimeInterval = exports.TimeInterval || (exports.TimeInterval = {}));
88155
+ var AirGapCoinWallet = /** @class */ (function (_super) {
88156
+ __extends(AirGapCoinWallet, _super);
88157
+ function AirGapCoinWallet() {
88158
+ return _super !== null && _super.apply(this, arguments) || this;
88159
+ }
88160
+ AirGapCoinWallet.prototype.getCurrentBalance = function () {
88161
+ return this.currentBalance;
88162
+ };
88163
+ AirGapCoinWallet.prototype.setCurrentBalance = function (balance) {
88164
+ this.currentBalance = balance;
88165
+ };
88166
+ AirGapCoinWallet.prototype.getCurrentMarketPrice = function () {
88167
+ return this.currentMarketPrice;
88168
+ };
88169
+ AirGapCoinWallet.prototype.setCurrentMarketPrice = function (marketPrice) {
88170
+ return __awaiter(this, void 0, void 0, function () {
88171
+ var _a;
88172
+ return __generator(this, function (_b) {
88173
+ switch (_b.label) {
88174
+ case 0:
88175
+ _a = this;
88176
+ return [4 /*yield*/, this.protocol.getOptions()];
88177
+ case 1:
88178
+ _a.currentMarketPrice = (_b.sent()).network.type === ProtocolNetwork_1.NetworkType.MAINNET ? marketPrice : new bignumber_1.default(0);
88179
+ return [2 /*return*/];
88180
+ }
88181
+ });
88182
+ });
88183
+ };
88184
+ AirGapCoinWallet.prototype._synchronize = function () {
88185
+ return __awaiter(this, void 0, void 0, function () {
88186
+ var _a, balance, marketPrice;
88187
+ return __generator(this, function (_b) {
88188
+ switch (_b.label) {
88189
+ case 0: return [4 /*yield*/, Promise.all([this.balanceOf(), this.fetchCurrentMarketPrice()])];
88190
+ case 1:
88191
+ _a = _b.sent(), balance = _a[0], marketPrice = _a[1];
88192
+ this.setCurrentBalance(balance);
88193
+ return [4 /*yield*/, this.setCurrentMarketPrice(marketPrice)];
88194
+ case 2:
88195
+ _b.sent();
88196
+ return [2 /*return*/];
88197
+ }
88198
+ });
88199
+ });
88200
+ };
88201
+ AirGapCoinWallet.prototype.reset = function () {
88202
+ this.currentBalance = undefined;
88203
+ this.currentMarketPrice = undefined;
88204
+ };
88205
+ AirGapCoinWallet.prototype.fetchCurrentMarketPrice = function (baseSymbol) {
88206
+ if (baseSymbol === void 0) { baseSymbol = 'USD'; }
88207
+ return __awaiter(this, void 0, void 0, function () {
88208
+ var marketPrice;
88209
+ return __generator(this, function (_a) {
88210
+ switch (_a.label) {
88211
+ case 0: return [4 /*yield*/, this.priceService.getCurrentMarketPrice(this.protocol, baseSymbol)];
88212
+ case 1:
88213
+ marketPrice = _a.sent();
88214
+ return [4 /*yield*/, this.setCurrentMarketPrice(marketPrice)];
88215
+ case 2:
88216
+ _a.sent();
88217
+ return [2 /*return*/, marketPrice];
88218
+ }
88219
+ });
88220
+ });
88221
+ };
88222
+ AirGapCoinWallet.prototype.balanceOf = function () {
88223
+ return __awaiter(this, void 0, void 0, function () {
88224
+ var protocolIdentifier, result, _a, _b, _c, _d, _e;
88225
+ return __generator(this, function (_f) {
88226
+ switch (_f.label) {
88227
+ case 0: return [4 /*yield*/, this.protocol.getIdentifier()];
88228
+ case 1:
88229
+ protocolIdentifier = _f.sent();
88230
+ if (!((protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.BTC ||
88231
+ protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.BTC_SEGWIT ||
88232
+ protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.GRS) &&
88233
+ this.isExtendedPublicKey)) return [3 /*break*/, 3];
88234
+ _a = bignumber_1.default.bind;
88235
+ return [4 /*yield*/, this.protocol.getBalanceOfExtendedPublicKey(this.publicKey, 0)];
88236
+ case 2:
88237
+ // TODO: Remove and test
88238
+ /*
88239
+ We should remove this if BTC also uses blockbook. (And change the order of the if/else below)
88240
+
88241
+ The problem is that we have addresses cached for all protocols. But blockbook (grs) doesn't allow
88242
+ multiple addresses to be checked at once, so we need to xPub key there (or we would do 100s of requests).
88243
+
88244
+ We can also not simply change the order of the following if/else, because then it would use the xPub method for
88245
+ BTC as well, which results in the addresses being derived again, which causes massive lags in the apps.
88246
+ */
88247
+ result = new (_a.apply(bignumber_1.default, [void 0, _f.sent()]))();
88248
+ return [3 /*break*/, 11];
88249
+ case 3:
88250
+ if (!(protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED) /* TODO: cover ALL sapling protocols */) return [3 /*break*/, 5]; /* TODO: cover ALL sapling protocols */
88251
+ _b = bignumber_1.default.bind;
88252
+ return [4 /*yield*/, this.protocol.getBalanceOfPublicKey(this.publicKey)];
88253
+ case 4:
88254
+ result = new (_b.apply(bignumber_1.default, [void 0, _f.sent()]))();
88255
+ return [3 /*break*/, 11];
88256
+ case 5:
88257
+ if (!(this.addresses.length > 0)) return [3 /*break*/, 7];
88258
+ _c = bignumber_1.default.bind;
88259
+ return [4 /*yield*/, this.protocol.getBalanceOfAddresses(this.addressesToCheck())];
88260
+ case 6:
88261
+ result = new (_c.apply(bignumber_1.default, [void 0, _f.sent()]))();
88262
+ return [3 /*break*/, 11];
88263
+ case 7:
88264
+ if (!this.isExtendedPublicKey) return [3 /*break*/, 9];
88265
+ _d = bignumber_1.default.bind;
88266
+ return [4 /*yield*/, this.protocol.getBalanceOfExtendedPublicKey(this.publicKey, 0)];
88267
+ case 8:
88268
+ result = new (_d.apply(bignumber_1.default, [void 0, _f.sent()]))();
88269
+ return [3 /*break*/, 11];
88270
+ case 9:
88271
+ _e = bignumber_1.default.bind;
88272
+ return [4 /*yield*/, this.protocol.getBalanceOfPublicKey(this.publicKey)];
88273
+ case 10:
88274
+ result = new (_e.apply(bignumber_1.default, [void 0, _f.sent()]))();
88275
+ _f.label = 11;
88276
+ case 11:
88277
+ this.setCurrentBalance(result);
88278
+ return [2 /*return*/, result];
88279
+ }
88280
+ });
88281
+ });
88282
+ };
88283
+ return AirGapCoinWallet;
88284
+ }(AirGapMarketWallet_1.AirGapMarketWallet));
88285
+ exports.AirGapCoinWallet = AirGapCoinWallet;
88286
+
88287
+ },{"../dependencies/src/bignumber.js-9.0.0/bignumber":425,"../utils/ProtocolNetwork":593,"../utils/ProtocolSymbols":594,"./AirGapMarketWallet":600}],600:[function(require,module,exports){
88288
+ "use strict";
88289
+ var __extends = (this && this.__extends) || (function () {
88290
+ var extendStatics = function (d, b) {
88291
+ extendStatics = Object.setPrototypeOf ||
88292
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
88293
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
88294
+ return extendStatics(d, b);
88295
+ };
88296
+ return function (d, b) {
88297
+ extendStatics(d, b);
88298
+ function __() { this.constructor = d; }
88299
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
88300
+ };
88301
+ })();
88302
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
88303
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
88304
+ return new (P || (P = Promise))(function (resolve, reject) {
88305
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
88306
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
88307
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
88308
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
88309
+ });
88310
+ };
88311
+ var __generator = (this && this.__generator) || function (thisArg, body) {
88312
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
88313
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
88314
+ function verb(n) { return function (v) { return step([n, v]); }; }
88315
+ function step(op) {
88316
+ if (f) throw new TypeError("Generator is already executing.");
88317
+ while (_) try {
88318
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
88319
+ if (y = 0, t) op = [op[0] & 2, t.value];
88320
+ switch (op[0]) {
88321
+ case 0: case 1: t = op; break;
88322
+ case 4: _.label++; return { value: op[1], done: false };
88323
+ case 5: _.label++; y = op[1]; op = [0]; continue;
88324
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
88325
+ default:
88326
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
88327
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
88328
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
88329
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
88330
+ if (t[2]) _.ops.pop();
88331
+ _.trys.pop(); continue;
88332
+ }
88333
+ op = body.call(thisArg, _);
88334
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
88335
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
88336
+ }
88337
+ };
88338
+ var __importDefault = (this && this.__importDefault) || function (mod) {
88339
+ return (mod && mod.__esModule) ? mod : { "default": mod };
88340
+ };
88341
+ Object.defineProperty(exports, "__esModule", { value: true });
88342
+ exports.AirGapMarketWallet = void 0;
88343
+ var bignumber_1 = __importDefault(require("../dependencies/src/bignumber.js-9.0.0/bignumber"));
88344
+ var ProtocolSymbols_1 = require("../utils/ProtocolSymbols");
88345
+ var AirGapWallet_1 = require("./AirGapWallet");
88346
+ var AirGapMarketWallet = /** @class */ (function (_super) {
88347
+ __extends(AirGapMarketWallet, _super);
88348
+ function AirGapMarketWallet(protocol, publicKey, isExtendedPublicKey, derivationPath, masterFingerprint, status, priceService, addressIndex) {
88349
+ var _this = _super.call(this, protocol, publicKey, isExtendedPublicKey, derivationPath, masterFingerprint, status, addressIndex) || this;
88350
+ _this.protocol = protocol;
88351
+ _this.publicKey = publicKey;
88352
+ _this.isExtendedPublicKey = isExtendedPublicKey;
88353
+ _this.derivationPath = derivationPath;
88354
+ _this.masterFingerprint = masterFingerprint;
88355
+ _this.status = status;
88356
+ _this.priceService = priceService;
88357
+ _this.addressIndex = addressIndex;
88358
+ return _this;
88359
+ }
88360
+ AirGapMarketWallet.prototype.addressesToCheck = function () {
88361
+ var addressesToReceive = this.addressIndex !== undefined ? [this.addresses[this.addressIndex]] : this.addresses;
88362
+ return addressesToReceive;
88363
+ };
88364
+ AirGapMarketWallet.prototype.setProtocol = function (protocol) {
88365
+ return __awaiter(this, void 0, void 0, function () {
88366
+ return __generator(this, function (_a) {
88367
+ switch (_a.label) {
88368
+ case 0: return [4 /*yield*/, _super.prototype.setProtocol.call(this, protocol)];
88369
+ case 1:
88370
+ _a.sent();
88371
+ this.reset();
88372
+ return [4 /*yield*/, this.synchronize()];
88373
+ case 2:
88374
+ _a.sent();
88375
+ return [2 /*return*/];
88376
+ }
88377
+ });
88378
+ });
88379
+ };
88380
+ AirGapMarketWallet.prototype.synchronize = function () {
88381
+ var args = [];
88382
+ for (var _i = 0; _i < arguments.length; _i++) {
88383
+ args[_i] = arguments[_i];
88384
+ }
88385
+ return __awaiter(this, void 0, void 0, function () {
88386
+ var _this = this;
88387
+ return __generator(this, function (_a) {
88388
+ if (this.synchronizePromise === undefined) {
88389
+ this.synchronizePromise = this._synchronize.apply(this, args).finally(function () {
88390
+ _this.synchronizePromise = undefined;
88391
+ });
88392
+ }
88393
+ return [2 /*return*/, this.synchronizePromise];
88394
+ });
88395
+ });
88396
+ };
88397
+ AirGapMarketWallet.prototype.fetchTransactions = function (limit, cursor) {
88398
+ return __awaiter(this, void 0, void 0, function () {
88399
+ var protocolIdentifier, transactionResult;
88400
+ return __generator(this, function (_a) {
88401
+ switch (_a.label) {
88402
+ case 0: return [4 /*yield*/, this.protocol.getIdentifier()
88403
+ // let transactions: IAirGapTransaction[] = []
88404
+ ];
88405
+ case 1:
88406
+ protocolIdentifier = _a.sent();
88407
+ if (!((protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.BTC ||
88408
+ protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.BTC_SEGWIT ||
88409
+ protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.GRS) &&
88410
+ this.isExtendedPublicKey)) return [3 /*break*/, 3];
88411
+ return [4 /*yield*/, this.protocol.getTransactionsFromExtendedPublicKey(this.publicKey, limit, cursor)];
88412
+ case 2:
88413
+ // TODO: Remove and test
88414
+ /*
88415
+ We should remove this if BTC also uses blockbook. (And change the order of the if/else below)
88416
+
88417
+ The problem is that we have addresses cached for all protocols. But blockbook (grs) doesn't allow
88418
+ multiple addresses to be checked at once, so we need to xPub key there (or we would do 100s of requests).
88419
+
88420
+ We can also not simply change the order of the following if/else, because then it would use the xPub method for
88421
+ BTC as well, which results in the addresses being derived again, which causes massive lags in the apps.
88422
+ */
88423
+ transactionResult = _a.sent();
88424
+ return [3 /*break*/, 11];
88425
+ case 3:
88426
+ if (!(protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED) /* TODO: cover ALL sapling protocols */) return [3 /*break*/, 5]; /* TODO: cover ALL sapling protocols */
88427
+ return [4 /*yield*/, this.protocol.getTransactionsFromPublicKey(this.publicKey, limit, cursor)];
88428
+ case 4:
88429
+ transactionResult = _a.sent();
88430
+ return [3 /*break*/, 11];
88431
+ case 5:
88432
+ if (!(this.addresses.length > 0)) return [3 /*break*/, 7];
88433
+ return [4 /*yield*/, this.protocol.getTransactionsFromAddresses(this.addressesToCheck(), limit, cursor)];
88434
+ case 6:
88435
+ transactionResult = _a.sent();
88436
+ return [3 /*break*/, 11];
88437
+ case 7:
88438
+ if (!this.isExtendedPublicKey) return [3 /*break*/, 9];
88439
+ return [4 /*yield*/, this.protocol.getTransactionsFromExtendedPublicKey(this.publicKey, limit, cursor)];
88440
+ case 8:
88441
+ transactionResult = _a.sent();
88442
+ return [3 /*break*/, 11];
88443
+ case 9: return [4 /*yield*/, this.protocol.getTransactionsFromPublicKey(this.publicKey, limit, cursor)];
88444
+ case 10:
88445
+ transactionResult = _a.sent();
88446
+ _a.label = 11;
88447
+ case 11: return [2 /*return*/, transactionResult];
88448
+ }
88449
+ });
88450
+ });
88451
+ };
88452
+ AirGapMarketWallet.prototype.prepareTransaction = function (recipients, values, fee, data) {
88453
+ if (this.isExtendedPublicKey) {
88454
+ return this.protocol.prepareTransactionFromExtendedPublicKey(this.publicKey, 0, recipients, values, fee, data);
88455
+ }
88456
+ else {
88457
+ if (this.addressIndex) {
88458
+ data = Object.assign(data, { addressIndex: this.addressIndex });
88459
+ }
88460
+ return this.protocol.prepareTransactionFromPublicKey(this.publicKey, recipients, values, fee, data);
88461
+ }
88462
+ };
88463
+ AirGapMarketWallet.prototype.getMaxTransferValue = function (recipients, fee, data) {
88464
+ return __awaiter(this, void 0, void 0, function () {
88465
+ var _a, _b;
88466
+ return __generator(this, function (_c) {
88467
+ switch (_c.label) {
88468
+ case 0:
88469
+ if (!this.isExtendedPublicKey) return [3 /*break*/, 2];
88470
+ _a = bignumber_1.default.bind;
88471
+ return [4 /*yield*/, this.protocol.estimateMaxTransactionValueFromExtendedPublicKey(this.publicKey, recipients, fee, data)];
88472
+ case 1: return [2 /*return*/, new (_a.apply(bignumber_1.default, [void 0, _c.sent()]))()];
88473
+ case 2:
88474
+ if (this.addressIndex) {
88475
+ data = Object.assign(data, { addressIndex: this.addressIndex });
88476
+ }
88477
+ _b = bignumber_1.default.bind;
88478
+ return [4 /*yield*/, this.protocol.estimateMaxTransactionValueFromPublicKey(this.publicKey, recipients, fee, data)];
88479
+ case 3: return [2 /*return*/, new (_b.apply(bignumber_1.default, [void 0, _c.sent()]))()];
88480
+ }
88481
+ });
88482
+ });
88483
+ };
88484
+ AirGapMarketWallet.prototype.estimateFees = function (recipients, values, data) {
88485
+ return __awaiter(this, void 0, void 0, function () {
88486
+ return __generator(this, function (_a) {
88487
+ if (this.isExtendedPublicKey) {
88488
+ return [2 /*return*/, this.protocol.estimateFeeDefaultsFromExtendedPublicKey(this.publicKey, recipients, values, data)];
88489
+ }
88490
+ else {
88491
+ if (this.addressIndex) {
88492
+ data = Object.assign(data, { addressIndex: this.addressIndex });
88493
+ }
88494
+ return [2 /*return*/, this.protocol.estimateFeeDefaultsFromPublicKey(this.publicKey, recipients, values, data)];
88495
+ }
88496
+ return [2 /*return*/];
88497
+ });
88498
+ });
88499
+ };
88500
+ return AirGapMarketWallet;
88501
+ }(AirGapWallet_1.AirGapWallet));
88502
+ exports.AirGapMarketWallet = AirGapMarketWallet;
88503
+
88504
+ },{"../dependencies/src/bignumber.js-9.0.0/bignumber":425,"../utils/ProtocolSymbols":594,"./AirGapWallet":602}],601:[function(require,module,exports){
88505
+ "use strict";
88506
+ var __extends = (this && this.__extends) || (function () {
88507
+ var extendStatics = function (d, b) {
88508
+ extendStatics = Object.setPrototypeOf ||
88509
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
88510
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
88511
+ return extendStatics(d, b);
88512
+ };
88513
+ return function (d, b) {
88514
+ extendStatics(d, b);
88515
+ function __() { this.constructor = d; }
88516
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
88517
+ };
88518
+ })();
88519
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
88520
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
88521
+ return new (P || (P = Promise))(function (resolve, reject) {
88522
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
88523
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
88524
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
88525
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
88526
+ });
88527
+ };
88528
+ var __generator = (this && this.__generator) || function (thisArg, body) {
88529
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
88530
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
88531
+ function verb(n) { return function (v) { return step([n, v]); }; }
88532
+ function step(op) {
88533
+ if (f) throw new TypeError("Generator is already executing.");
88534
+ while (_) try {
88535
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
88536
+ if (y = 0, t) op = [op[0] & 2, t.value];
88537
+ switch (op[0]) {
88538
+ case 0: case 1: t = op; break;
88539
+ case 4: _.label++; return { value: op[1], done: false };
88540
+ case 5: _.label++; y = op[1]; op = [0]; continue;
88541
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
88542
+ default:
88543
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
88544
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
88545
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
88546
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
88547
+ if (t[2]) _.ops.pop();
88548
+ _.trys.pop(); continue;
88549
+ }
88550
+ op = body.call(thisArg, _);
88551
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
88552
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
88553
+ }
88554
+ };
88555
+ var __importDefault = (this && this.__importDefault) || function (mod) {
88556
+ return (mod && mod.__esModule) ? mod : { "default": mod };
88557
+ };
88558
+ Object.defineProperty(exports, "__esModule", { value: true });
88559
+ exports.AirGapNFTWallet = void 0;
88560
+ var bignumber_1 = __importDefault(require("../dependencies/src/bignumber.js-9.0.0/bignumber"));
88561
+ var ProtocolNetwork_1 = require("../utils/ProtocolNetwork");
88562
+ var AirGapMarketWallet_1 = require("./AirGapMarketWallet");
88563
+ var AirGapNFTWallet = /** @class */ (function (_super) {
88564
+ __extends(AirGapNFTWallet, _super);
88565
+ function AirGapNFTWallet() {
88566
+ var _this = _super !== null && _super.apply(this, arguments) || this;
88567
+ _this.currentBalance = {};
88568
+ _this.currentMarketPrice = {};
88569
+ return _this;
88570
+ }
88571
+ AirGapNFTWallet.prototype.getCurrentBalance = function (assetID) {
88572
+ return this.currentBalance[assetID];
88573
+ };
88574
+ AirGapNFTWallet.prototype.setCurrentBalance = function (balance, assetID) {
88575
+ this.currentBalance[assetID] = balance;
88576
+ };
88577
+ AirGapNFTWallet.prototype.getCurrentMarketPrice = function (assetID) {
88578
+ return this.currentMarketPrice[assetID];
88579
+ };
88580
+ AirGapNFTWallet.prototype.setCurrentMarketPrice = function (marketPrice, assetID) {
88581
+ return __awaiter(this, void 0, void 0, function () {
88582
+ var _a, _b;
88583
+ return __generator(this, function (_c) {
88584
+ switch (_c.label) {
88585
+ case 0:
88586
+ _a = this.getCurrentMarketPrice;
88587
+ _b = assetID;
88588
+ return [4 /*yield*/, this.protocol.getOptions()];
88589
+ case 1:
88590
+ _a[_b] =
88591
+ (_c.sent()).network.type === ProtocolNetwork_1.NetworkType.MAINNET ? marketPrice : new bignumber_1.default(0);
88592
+ return [2 /*return*/];
88593
+ }
88594
+ });
88595
+ });
88596
+ };
88597
+ AirGapNFTWallet.prototype.synchronize = function (assetsID) {
88598
+ if (assetsID === void 0) { assetsID = []; }
88599
+ return __awaiter(this, void 0, void 0, function () {
88600
+ return __generator(this, function (_a) {
88601
+ return [2 /*return*/, _super.prototype.synchronize.call(this, assetsID)];
88602
+ });
88603
+ });
88604
+ };
88605
+ AirGapNFTWallet.prototype._synchronize = function (assetIDs) {
88606
+ if (assetIDs === void 0) { assetIDs = []; }
88607
+ return __awaiter(this, void 0, void 0, function () {
88608
+ var _this = this;
88609
+ return __generator(this, function (_a) {
88610
+ switch (_a.label) {
88611
+ case 0: return [4 /*yield*/, Promise.all(assetIDs.map(function (assetID) { return __awaiter(_this, void 0, void 0, function () {
88612
+ var _a, balance, marketPrice;
88613
+ return __generator(this, function (_b) {
88614
+ switch (_b.label) {
88615
+ case 0: return [4 /*yield*/, Promise.all([this.balanceOf(assetID), this.fetchCurrentMarketPrice(assetID)])];
88616
+ case 1:
88617
+ _a = _b.sent(), balance = _a[0], marketPrice = _a[1];
88618
+ this.setCurrentBalance(balance, assetID);
88619
+ return [4 /*yield*/, this.setCurrentMarketPrice(marketPrice, assetID)];
88620
+ case 2:
88621
+ _b.sent();
88622
+ return [2 /*return*/];
88623
+ }
88624
+ });
88625
+ }); }))];
88626
+ case 1:
88627
+ _a.sent();
88628
+ return [2 /*return*/];
88629
+ }
88630
+ });
88631
+ });
88632
+ };
88633
+ AirGapNFTWallet.prototype.reset = function () {
88634
+ this.currentBalance = {};
88635
+ this.currentMarketPrice = {};
88636
+ };
88637
+ AirGapNFTWallet.prototype.fetchCurrentMarketPrice = function (assetID, _baseSymbol) {
88638
+ if (_baseSymbol === void 0) { _baseSymbol = 'USD'; }
88639
+ return __awaiter(this, void 0, void 0, function () {
88640
+ var result;
88641
+ return __generator(this, function (_a) {
88642
+ switch (_a.label) {
88643
+ case 0:
88644
+ result = new bignumber_1.default(0);
88645
+ return [4 /*yield*/, this.setCurrentMarketPrice(result, assetID)];
88646
+ case 1:
88647
+ _a.sent();
88648
+ return [2 /*return*/, result];
88649
+ }
88650
+ });
88651
+ });
88652
+ };
88653
+ AirGapNFTWallet.prototype.balanceOf = function (assetID) {
88654
+ return __awaiter(this, void 0, void 0, function () {
88655
+ var result, _a, _b;
88656
+ return __generator(this, function (_c) {
88657
+ switch (_c.label) {
88658
+ case 0:
88659
+ if (!this.isExtendedPublicKey) return [3 /*break*/, 2];
88660
+ _a = bignumber_1.default.bind;
88661
+ return [4 /*yield*/, this.protocol.getBalanceOfExtendedPublicKey(this.publicKey, 0, { assetID: assetID })];
88662
+ case 1:
88663
+ result = new (_a.apply(bignumber_1.default, [void 0, _c.sent()]))();
88664
+ return [3 /*break*/, 4];
88665
+ case 2:
88666
+ _b = bignumber_1.default.bind;
88667
+ return [4 /*yield*/, this.protocol.getBalanceOfPublicKey(this.publicKey, { addressIndex: this.addressIndex, assetID: assetID })];
88668
+ case 3:
88669
+ result = new (_b.apply(bignumber_1.default, [void 0, _c.sent()]))();
88670
+ _c.label = 4;
88671
+ case 4:
88672
+ this.setCurrentBalance(result, assetID);
88673
+ return [2 /*return*/, result];
88674
+ }
88675
+ });
88676
+ });
88677
+ };
88678
+ return AirGapNFTWallet;
88679
+ }(AirGapMarketWallet_1.AirGapMarketWallet));
88680
+ exports.AirGapNFTWallet = AirGapNFTWallet;
88681
+
88682
+ },{"../dependencies/src/bignumber.js-9.0.0/bignumber":425,"../utils/ProtocolNetwork":593,"./AirGapMarketWallet":600}],602:[function(require,module,exports){
88683
+ "use strict";
88684
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
88685
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
88686
+ return new (P || (P = Promise))(function (resolve, reject) {
88687
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
88688
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
88689
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
88690
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
88691
+ });
88692
+ };
88693
+ var __generator = (this && this.__generator) || function (thisArg, body) {
88694
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
88695
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
88696
+ function verb(n) { return function (v) { return step([n, v]); }; }
88697
+ function step(op) {
88698
+ if (f) throw new TypeError("Generator is already executing.");
88699
+ while (_) try {
88700
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
88701
+ if (y = 0, t) op = [op[0] & 2, t.value];
88702
+ switch (op[0]) {
88703
+ case 0: case 1: t = op; break;
88704
+ case 4: _.label++; return { value: op[1], done: false };
88705
+ case 5: _.label++; y = op[1]; op = [0]; continue;
88706
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
88707
+ default:
88708
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
88709
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
88710
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
88711
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
88712
+ if (t[2]) _.ops.pop();
88713
+ _.trys.pop(); continue;
88714
+ }
88715
+ op = body.call(thisArg, _);
88716
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
88717
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
88718
+ }
88719
+ };
88720
+ Object.defineProperty(exports, "__esModule", { value: true });
88721
+ exports.AirGapWallet = exports.AirGapWalletStatus = void 0;
88722
+ var errors_1 = require("../errors");
88723
+ var coinlib_error_1 = require("../errors/coinlib-error");
88724
+ var AirGapWalletStatus;
88725
+ (function (AirGapWalletStatus) {
88726
+ AirGapWalletStatus["ACTIVE"] = "active";
88727
+ AirGapWalletStatus["HIDDEN"] = "hidden";
88728
+ AirGapWalletStatus["DELETED"] = "deleted";
88729
+ AirGapWalletStatus["TRANSIENT"] = "transient";
88730
+ })(AirGapWalletStatus = exports.AirGapWalletStatus || (exports.AirGapWalletStatus = {}));
88731
+ var AirGapWallet = /** @class */ (function () {
88732
+ function AirGapWallet(protocol, publicKey, isExtendedPublicKey, derivationPath, masterFingerprint, status, addressIndex) {
88733
+ this.protocol = protocol;
88734
+ this.publicKey = publicKey;
88735
+ this.isExtendedPublicKey = isExtendedPublicKey;
88736
+ this.derivationPath = derivationPath;
88737
+ this.masterFingerprint = masterFingerprint;
88738
+ this.status = status;
88739
+ this.addressIndex = addressIndex;
88740
+ this.addresses = []; // used for cache
88741
+ }
88742
+ Object.defineProperty(AirGapWallet.prototype, "receivingPublicAddress", {
88743
+ get: function () {
88744
+ return this.addresses[this.addressIndex !== undefined ? this.addressIndex : 0];
88745
+ },
88746
+ enumerable: false,
88747
+ configurable: true
88748
+ });
88749
+ AirGapWallet.prototype.setProtocol = function (protocol) {
88750
+ return __awaiter(this, void 0, void 0, function () {
88751
+ var _a;
88752
+ return __generator(this, function (_b) {
88753
+ switch (_b.label) {
88754
+ case 0: return [4 /*yield*/, this.protocol.getIdentifier()];
88755
+ case 1:
88756
+ _a = (_b.sent());
88757
+ return [4 /*yield*/, protocol.getIdentifier()];
88758
+ case 2:
88759
+ if (_a !== (_b.sent())) {
88760
+ throw new errors_1.ConditionViolationError(coinlib_error_1.Domain.WALLET, 'Can only set same protocol with a different network');
88761
+ }
88762
+ this.protocol = protocol;
88763
+ return [2 /*return*/];
88764
+ }
88765
+ });
88766
+ });
88767
+ };
88768
+ AirGapWallet.prototype.deriveAddresses = function (amount) {
88769
+ if (amount === void 0) { amount = 50; }
88770
+ return __awaiter(this, void 0, void 0, function () {
88771
+ var addresses, parts, offset;
88772
+ return __generator(this, function (_a) {
88773
+ switch (_a.label) {
88774
+ case 0:
88775
+ if (!this.isExtendedPublicKey) return [3 /*break*/, 2];
88776
+ parts = this.derivationPath.split('/');
88777
+ offset = 0;
88778
+ if (!parts[parts.length - 1].endsWith("'")) {
88779
+ offset = Number.parseInt(parts[parts.length - 1], 10);
88780
+ }
88781
+ return [4 /*yield*/, Promise.all([
88782
+ this.protocol.getAddressesFromExtendedPublicKey(this.publicKey, 0, amount, offset),
88783
+ this.protocol.getAddressesFromExtendedPublicKey(this.publicKey, 1, amount, offset)
88784
+ ])];
88785
+ case 1:
88786
+ addresses = (_a.sent()).reduce(function (flatten, next) { return flatten.concat(next); }, []);
88787
+ return [3 /*break*/, 4];
88788
+ case 2: return [4 /*yield*/, this.protocol.getAddressesFromPublicKey(this.publicKey)];
88789
+ case 3:
88790
+ addresses = _a.sent();
88791
+ _a.label = 4;
88792
+ case 4: return [2 /*return*/, addresses.map(function (address) { return address.address; })];
88793
+ }
88794
+ });
88795
+ });
88796
+ };
88797
+ AirGapWallet.prototype.toJSON = function () {
88798
+ return __awaiter(this, void 0, void 0, function () {
88799
+ var _a;
88800
+ return __generator(this, function (_b) {
88801
+ switch (_b.label) {
88802
+ case 0:
88803
+ _a = {};
88804
+ return [4 /*yield*/, this.protocol.getIdentifier()];
88805
+ case 1:
88806
+ _a.protocolIdentifier = _b.sent();
88807
+ return [4 /*yield*/, this.protocol.getOptions()];
88808
+ case 2: return [2 /*return*/, (_a.networkIdentifier = (_b.sent()).network.identifier,
88809
+ _a.publicKey = this.publicKey,
88810
+ _a.isExtendedPublicKey = this.isExtendedPublicKey,
88811
+ _a.derivationPath = this.derivationPath,
88812
+ _a.addresses = this.addresses,
88813
+ _a.masterFingerprint = this.masterFingerprint,
88814
+ _a.status = this.status,
88815
+ _a.addressIndex = this.addressIndex,
88816
+ _a)];
88817
+ }
88818
+ });
88819
+ });
88820
+ };
88821
+ return AirGapWallet;
88822
+ }());
88823
+ exports.AirGapWallet = AirGapWallet;
88824
+
88825
+ },{"../errors":585,"../errors/coinlib-error":584}],603:[function(require,module,exports){
87522
88826
  "use strict";
87523
88827
  Object.defineProperty(exports, "__esModule", { value: true });
87524
- exports.GroestlcoinProtocolOptions = exports.GroestlcoinProtocolConfig = exports.GroestlcoinProtocolNetwork = exports.CryptoidBlockExplorer = exports.GroestlcoinProtocolNetworkExtras = exports.GroestlcoinTestnetProtocol = exports.GroestlcoinProtocol = void 0;
88828
+ exports.createProtocolByIdentifier = exports.GroestlcoinProtocolOptions = exports.GroestlcoinProtocolConfig = exports.GroestlcoinProtocolNetwork = exports.CryptoidBlockExplorer = exports.GroestlcoinProtocolNetworkExtras = exports.GroestlcoinTestnetProtocol = exports.GroestlcoinProtocol = void 0;
87525
88829
  var GroestlcoinProtocol_1 = require("./protocol/GroestlcoinProtocol");
87526
88830
  Object.defineProperty(exports, "GroestlcoinProtocol", { enumerable: true, get: function () { return GroestlcoinProtocol_1.GroestlcoinProtocol; } });
87527
88831
  var GroestlcoinProtocolOptions_1 = require("./protocol/GroestlcoinProtocolOptions");
@@ -87532,8 +88836,10 @@ Object.defineProperty(exports, "GroestlcoinProtocolNetworkExtras", { enumerable:
87532
88836
  Object.defineProperty(exports, "GroestlcoinProtocolOptions", { enumerable: true, get: function () { return GroestlcoinProtocolOptions_1.GroestlcoinProtocolOptions; } });
87533
88837
  var GroestlcoinTestnetProtocol_1 = require("./protocol/GroestlcoinTestnetProtocol");
87534
88838
  Object.defineProperty(exports, "GroestlcoinTestnetProtocol", { enumerable: true, get: function () { return GroestlcoinTestnetProtocol_1.GroestlcoinTestnetProtocol; } });
88839
+ var create_protocol_1 = require("./utils/create-protocol");
88840
+ Object.defineProperty(exports, "createProtocolByIdentifier", { enumerable: true, get: function () { return create_protocol_1.createProtocolByIdentifier; } });
87535
88841
 
87536
- },{"./protocol/GroestlcoinProtocol":588,"./protocol/GroestlcoinProtocolOptions":589,"./protocol/GroestlcoinTestnetProtocol":590}],588:[function(require,module,exports){
88842
+ },{"./protocol/GroestlcoinProtocol":604,"./protocol/GroestlcoinProtocolOptions":605,"./protocol/GroestlcoinTestnetProtocol":606,"./utils/create-protocol":607}],604:[function(require,module,exports){
87537
88843
  "use strict";
87538
88844
  var __extends = (this && this.__extends) || (function () {
87539
88845
  var extendStatics = function (d, b) {
@@ -87616,7 +88922,7 @@ var GroestlcoinProtocol = /** @class */ (function (_super) {
87616
88922
  }(bitcoin_1.BitcoinProtocol));
87617
88923
  exports.GroestlcoinProtocol = GroestlcoinProtocol;
87618
88924
 
87619
- },{"./GroestlcoinProtocolOptions":589,"@airgap/bitcoin":214,"@airgap/coinlib-core/dependencies/src/groestlcoinjs-message-2.1.0/index":521,"@airgap/coinlib-core/utils/ProtocolSymbols":584}],589:[function(require,module,exports){
88925
+ },{"./GroestlcoinProtocolOptions":605,"@airgap/bitcoin":214,"@airgap/coinlib-core/dependencies/src/groestlcoinjs-message-2.1.0/index":527,"@airgap/coinlib-core/utils/ProtocolSymbols":594}],605:[function(require,module,exports){
87620
88926
  "use strict";
87621
88927
  var __extends = (this && this.__extends) || (function () {
87622
88928
  var extendStatics = function (d, b) {
@@ -87759,7 +89065,7 @@ var GroestlcoinProtocolOptions = /** @class */ (function () {
87759
89065
  }());
87760
89066
  exports.GroestlcoinProtocolOptions = GroestlcoinProtocolOptions;
87761
89067
 
87762
- },{"@airgap/coinlib-core/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index":444,"@airgap/coinlib-core/utils/ProtocolNetwork":583}],590:[function(require,module,exports){
89068
+ },{"@airgap/coinlib-core/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index":450,"@airgap/coinlib-core/utils/ProtocolNetwork":593}],606:[function(require,module,exports){
87763
89069
  "use strict";
87764
89070
  var __extends = (this && this.__extends) || (function () {
87765
89071
  var extendStatics = function (d, b) {
@@ -87809,5 +89115,22 @@ var GroestlcoinTestnetProtocol = /** @class */ (function (_super) {
87809
89115
  }(bitcoin_1.BitcoinProtocol));
87810
89116
  exports.GroestlcoinTestnetProtocol = GroestlcoinTestnetProtocol;
87811
89117
 
87812
- },{"./GroestlcoinProtocolOptions":589,"@airgap/bitcoin":214,"@airgap/coinlib-core/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index":444,"@airgap/coinlib-core/utils/ProtocolNetwork":583}]},{},[587])(587)
89118
+ },{"./GroestlcoinProtocolOptions":605,"@airgap/bitcoin":214,"@airgap/coinlib-core/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index":450,"@airgap/coinlib-core/utils/ProtocolNetwork":593}],607:[function(require,module,exports){
89119
+ "use strict";
89120
+ Object.defineProperty(exports, "__esModule", { value: true });
89121
+ exports.createProtocolByIdentifier = void 0;
89122
+ var coinlib_core_1 = require("@airgap/coinlib-core");
89123
+ var GroestlcoinProtocol_1 = require("../protocol/GroestlcoinProtocol");
89124
+ // tslint:disable-next-line: cyclomatic-complexity
89125
+ function createProtocolByIdentifier(identifier, options) {
89126
+ switch (identifier) {
89127
+ case coinlib_core_1.MainProtocolSymbols.GRS:
89128
+ return new GroestlcoinProtocol_1.GroestlcoinProtocol(options);
89129
+ default:
89130
+ throw new Error("Unkown protocol identifier " + identifier + ".");
89131
+ }
89132
+ }
89133
+ exports.createProtocolByIdentifier = createProtocolByIdentifier;
89134
+
89135
+ },{"../protocol/GroestlcoinProtocol":604,"@airgap/coinlib-core":586}]},{},[603])(603)
87813
89136
  });