@airgap/bitcoin 0.13.7-beta.11 → 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.
- package/airgap-coinlib-bitcoin.min.js +1687 -383
- package/index.d.ts +2 -0
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/utils/create-protocol.d.ts +3 -0
- package/utils/create-protocol.js +19 -0
- package/utils/create-protocol.js.map +1 -0
|
@@ -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":
|
|
30088
|
+
},{"@airgap/coinlib-core/protocols/Secp256k1CryptoClient":586,"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":
|
|
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":582,"@airgap/coinlib-core/errors/coinlib-error":581,"@airgap/coinlib-core/utils/ProtocolSymbols":591,"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":
|
|
31273
|
+
},{"@airgap/coinlib-core/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index":450,"@airgap/coinlib-core/utils/ProtocolNetwork":590}],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":
|
|
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":591,"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":
|
|
31899
|
+
},{"./BitcoinProtocol":217,"./BitcoinProtocolOptions":218,"@airgap/coinlib-core/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index":450,"@airgap/coinlib-core/utils/ProtocolNetwork":590}],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":583}],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":
|
|
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
|
-
},{}],
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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}],
|
|
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
|
-
},{}],
|
|
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}],
|
|
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":
|
|
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}],
|
|
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}],
|
|
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":
|
|
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}],
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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
|
-
},{}],
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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
|
-
},{}],
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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
|
-
},{}],
|
|
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":
|
|
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":
|
|
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
|
-
},{}],
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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}],
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
38430
|
-
arguments[4][
|
|
38431
|
-
},{"./input":
|
|
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":
|
|
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":
|
|
38465
|
-
arguments[4][
|
|
38466
|
-
},{"./input":
|
|
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":
|
|
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":
|
|
38507
|
-
arguments[4][
|
|
38508
|
-
},{"./input":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
38627
|
-
arguments[4][
|
|
38628
|
-
},{"./input":
|
|
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":
|
|
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":
|
|
38669
|
-
arguments[4][
|
|
38670
|
-
},{"./input":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
40289
|
+
},{"typeforce":383}],306:[function(require,module,exports){
|
|
40268
40290
|
arguments[4][15][0].apply(exports,arguments)
|
|
40269
|
-
},{"buffer":24,"dup":15}],
|
|
40291
|
+
},{"buffer":24,"dup":15}],307:[function(require,module,exports){
|
|
40270
40292
|
arguments[4][23][0].apply(exports,arguments)
|
|
40271
|
-
},{"crypto":24,"dup":23}],
|
|
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":
|
|
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":
|
|
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":
|
|
40365
|
+
},{"./base":309,"create-hash":312}],311:[function(require,module,exports){
|
|
40344
40366
|
arguments[4][71][0].apply(exports,arguments)
|
|
40345
|
-
},{"dup":71,"inherits":
|
|
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":
|
|
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":
|
|
40371
|
+
},{"dup":75,"md5.js":347}],314:[function(require,module,exports){
|
|
40350
40372
|
arguments[4][76][0].apply(exports,arguments)
|
|
40351
|
-
},{"./legacy":
|
|
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":
|
|
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":
|
|
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":
|
|
40379
|
+
},{"../utils":330,"bn.js":306,"dup":91}],318:[function(require,module,exports){
|
|
40358
40380
|
arguments[4][92][0].apply(exports,arguments)
|
|
40359
|
-
},{"../utils":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
40393
|
+
},{"../utils":330,"bn.js":306,"dup":98}],325:[function(require,module,exports){
|
|
40372
40394
|
arguments[4][99][0].apply(exports,arguments)
|
|
40373
|
-
},{"../utils":
|
|
40395
|
+
},{"../utils":330,"bn.js":306,"dup":99}],326:[function(require,module,exports){
|
|
40374
40396
|
arguments[4][100][0].apply(exports,arguments)
|
|
40375
|
-
},{"../curves":
|
|
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":
|
|
40399
|
+
},{"../utils":330,"dup":101}],328:[function(require,module,exports){
|
|
40378
40400
|
arguments[4][102][0].apply(exports,arguments)
|
|
40379
|
-
},{"../utils":
|
|
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}],
|
|
40403
|
+
},{"dup":103}],330:[function(require,module,exports){
|
|
40382
40404
|
arguments[4][104][0].apply(exports,arguments)
|
|
40383
|
-
},{"bn.js":
|
|
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}],
|
|
40407
|
+
},{"dup":106}],332:[function(require,module,exports){
|
|
40386
40408
|
arguments[4][118][0].apply(exports,arguments)
|
|
40387
|
-
},{"dup":118,"inherits":
|
|
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":
|
|
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":
|
|
40413
|
+
},{"./utils":344,"dup":135,"minimalistic-assert":349}],335:[function(require,module,exports){
|
|
40392
40414
|
arguments[4][136][0].apply(exports,arguments)
|
|
40393
|
-
},{"./utils":
|
|
40415
|
+
},{"./utils":344,"dup":136,"minimalistic-assert":349}],336:[function(require,module,exports){
|
|
40394
40416
|
arguments[4][137][0].apply(exports,arguments)
|
|
40395
|
-
},{"./common":
|
|
40417
|
+
},{"./common":334,"./utils":344,"dup":137}],337:[function(require,module,exports){
|
|
40396
40418
|
arguments[4][138][0].apply(exports,arguments)
|
|
40397
|
-
},{"./sha/1":
|
|
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":
|
|
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":
|
|
40423
|
+
},{"../utils":344,"./256":340,"dup":140}],340:[function(require,module,exports){
|
|
40402
40424
|
arguments[4][141][0].apply(exports,arguments)
|
|
40403
|
-
},{"../common":
|
|
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":
|
|
40427
|
+
},{"../utils":344,"./512":342,"dup":142}],342:[function(require,module,exports){
|
|
40406
40428
|
arguments[4][143][0].apply(exports,arguments)
|
|
40407
|
-
},{"../common":
|
|
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":
|
|
40431
|
+
},{"../utils":344,"dup":144}],344:[function(require,module,exports){
|
|
40410
40432
|
arguments[4][145][0].apply(exports,arguments)
|
|
40411
|
-
},{"dup":145,"inherits":
|
|
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":
|
|
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}],
|
|
40437
|
+
},{"dup":148}],347:[function(require,module,exports){
|
|
40416
40438
|
arguments[4][154][0].apply(exports,arguments)
|
|
40417
|
-
},{"dup":154,"hash-base":
|
|
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}],
|
|
40467
|
+
},{"buffer":67}],349:[function(require,module,exports){
|
|
40446
40468
|
arguments[4][157][0].apply(exports,arguments)
|
|
40447
|
-
},{"dup":157}],
|
|
40469
|
+
},{"dup":157}],350:[function(require,module,exports){
|
|
40448
40470
|
arguments[4][158][0].apply(exports,arguments)
|
|
40449
|
-
},{"dup":158}],
|
|
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":
|
|
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":
|
|
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}],
|
|
40554
|
+
},{"dup":52}],354:[function(require,module,exports){
|
|
40533
40555
|
arguments[4][53][0].apply(exports,arguments)
|
|
40534
|
-
},{"./_stream_readable":
|
|
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":
|
|
40558
|
+
},{"./_stream_transform":357,"dup":54,"inherits":346}],356:[function(require,module,exports){
|
|
40537
40559
|
arguments[4][55][0].apply(exports,arguments)
|
|
40538
|
-
},{"../errors":
|
|
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":
|
|
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":
|
|
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":
|
|
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}],
|
|
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}],
|
|
40570
|
+
},{"_process":171,"dup":60}],362:[function(require,module,exports){
|
|
40549
40571
|
arguments[4][61][0].apply(exports,arguments)
|
|
40550
|
-
},{"../../../errors":
|
|
40572
|
+
},{"../../../errors":353,"dup":61}],363:[function(require,module,exports){
|
|
40551
40573
|
arguments[4][62][0].apply(exports,arguments)
|
|
40552
|
-
},{"dup":62}],
|
|
40574
|
+
},{"dup":62}],364:[function(require,module,exports){
|
|
40553
40575
|
arguments[4][63][0].apply(exports,arguments)
|
|
40554
|
-
},{"../../../errors":
|
|
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":
|
|
40578
|
+
},{"../../../errors":353,"dup":64}],366:[function(require,module,exports){
|
|
40557
40579
|
arguments[4][65][0].apply(exports,arguments)
|
|
40558
|
-
},{"dup":65,"events":108}],
|
|
40580
|
+
},{"dup":65,"events":108}],367:[function(require,module,exports){
|
|
40559
40581
|
arguments[4][66][0].apply(exports,arguments)
|
|
40560
|
-
},{"./lib/_stream_duplex.js":
|
|
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":
|
|
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}],
|
|
40586
|
+
},{"buffer":67,"dup":182}],370:[function(require,module,exports){
|
|
40565
40587
|
arguments[4][184][0].apply(exports,arguments)
|
|
40566
|
-
},{"dup":184,"safe-buffer":
|
|
40588
|
+
},{"dup":184,"safe-buffer":369}],371:[function(require,module,exports){
|
|
40567
40589
|
arguments[4][185][0].apply(exports,arguments)
|
|
40568
|
-
},{"./sha":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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
|
-
},{}],
|
|
41448
|
+
},{}],385:[function(require,module,exports){
|
|
41427
41449
|
arguments[4][209][0].apply(exports,arguments)
|
|
41428
|
-
},{"dup":209}],
|
|
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":
|
|
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":
|
|
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":582,"../errors/coinlib-error":581,"./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":582,"../errors/coinlib-error":581}],393:[function(require,module,exports){
|
|
41588
42037
|
module.exports = require('./lib/axios');
|
|
41589
|
-
},{"./lib/axios":
|
|
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":
|
|
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":
|
|
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
|
-
},{}],
|
|
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":
|
|
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
|
-
},{}],
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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
|
-
},{}],
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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
|
-
},{}],
|
|
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":
|
|
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
|
-
},{}],
|
|
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":
|
|
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
|
-
},{}],
|
|
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":
|
|
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":
|
|
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":
|
|
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
|
-
},{}],
|
|
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":
|
|
43531
|
+
},{"../../is-buffer-2.0.3/index":541,"./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":
|
|
43653
|
+
},{"../../safe-buffer-5.2.0/index":556}],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
|
-
},{}],
|
|
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
|
-
},{}],
|
|
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":
|
|
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":
|
|
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":
|
|
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
|
-
},{}],
|
|
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
|
-
},{}],
|
|
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":
|
|
48671
|
+
},{"../create-hash-1.2.0/browser":489,"../pbkdf2-3.0.17/index":548,"../randombytes-2.1.0/browser":554,"../safe-buffer-5.2.0/index":556,"../unorm-1.6.0/lib/unorm":578,"./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
|
-
},{}],
|
|
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
|
-
},{}],
|
|
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
|
-
},{}],
|
|
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
|
-
},{}],
|
|
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
|
-
},{}],
|
|
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
|
-
},{}],
|
|
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
|
-
},{}],
|
|
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
|
-
},{}],
|
|
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":
|
|
65194
|
+
},{"../safe-buffer-5.2.0/index":556}],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
|
-
},{}],
|
|
64867
|
-
arguments[4][
|
|
64868
|
-
},{"./index.json":
|
|
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":
|
|
65478
|
+
},{"../bech32-1.1.3/index":420,"../bs58check-2.1.2/index":486,"../buffer-equals-1.0.4/index":487,"../create-hash-1.2.0/browser":489,"../secp256k1-3.7.1/elliptic":557,"../varuint-bitcoin-1.1.2/index":579,"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":
|
|
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":556,"../../typeforce-1.18.0/index":576,"./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":
|
|
65825
|
+
},{"../../merkle-lib-2.0.10/fastRoot":543,"../../safe-buffer-5.2.0/index":556,"../../typeforce-1.18.0/index":576,"../../varuint-bitcoin-1.1.2/index":579,"./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":
|
|
65867
|
+
},{"../../safe-buffer-5.2.0/index":556,"../../varuint-bitcoin-1.1.2/index":579,"./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":
|
|
65934
|
+
},{"../../pushdata-bitcoin-1.0.1/index":553,"../../varuint-bitcoin-1.1.2/index":579}],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":
|
|
65989
|
+
},{"../../typeforce-1.18.0/index":576}],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":
|
|
66036
|
+
},{"../../create-hash-1.2.0/browser":489,"../../groestl-hash-js-ef6a04f1c4d2f0448f0882b5f213ef7a0659baee/index":521,"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":
|
|
66199
|
+
},{"../../bigi-1.4.2/lib/index":423,"../../create-hmac-1.1.4/browser":491,"../../ecurve-1.0.6/lib/index":501,"../../safe-buffer-5.2.0/index":556,"../../typeforce-1.18.0/index":576,"./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":
|
|
66358
|
+
},{"../../bigi-1.4.2/lib/index":423,"../../ecurve-1.0.6/lib/index":501,"../../randombytes-2.1.0/browser":554,"../../typeforce-1.18.0/index":576,"../../wif-2.0.6/index":580,"./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":
|
|
66459
|
+
},{"../../bigi-1.4.2/lib/index":423,"../../bip66-1.1.5/index":435,"../../typeforce-1.18.0/index":576,"./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":
|
|
66553
|
+
},{"../../secp256k1-3.7.1/elliptic":557,"../../typeforce-1.18.0/index":576,"./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":
|
|
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":491,"../../ecurve-1.0.6/lib/index":501,"../../safe-buffer-5.2.0/index":556,"../../typeforce-1.18.0/index":576,"./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":
|
|
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":
|
|
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":
|
|
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":553,"../../safe-buffer-5.2.0/index":556,"../../typeforce-1.18.0/index":576,"./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":
|
|
67446
|
+
},{"../../safe-buffer-5.2.0/index":556}],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":
|
|
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":
|
|
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":
|
|
67601
|
+
},{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../safe-buffer-5.2.0/index":556,"../../../../typeforce-1.18.0/index":576,"../../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":
|
|
67667
|
+
},{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../typeforce-1.18.0/index":576,"../../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":
|
|
67260
|
-
arguments[4][
|
|
67261
|
-
},{"./input":
|
|
67708
|
+
},{"../../../bitcoin-ops-1.4.1/index.json":436,"../../../typeforce-1.18.0/index":576,"../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":
|
|
67751
|
+
},{"../../../../typeforce-1.18.0/index":576,"../../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":
|
|
67338
|
-
arguments[4][
|
|
67339
|
-
},{"./input":
|
|
67786
|
+
},{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../typeforce-1.18.0/index":576,"../../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":
|
|
67841
|
+
},{"../../../../typeforce-1.18.0/index":576,"../../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":
|
|
67437
|
-
arguments[4][
|
|
67438
|
-
},{"./input":
|
|
67885
|
+
},{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../typeforce-1.18.0/index":576,"../../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":
|
|
67973
|
+
},{"../../../../safe-buffer-5.2.0/index":556,"../../../../typeforce-1.18.0/index":576,"../../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":
|
|
68009
|
+
},{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../typeforce-1.18.0/index":576,"../../script":452,"../../types":478}],468:[function(require,module,exports){
|
|
67561
68010
|
module.exports = {
|
|
67562
68011
|
output: require('./output')
|
|
67563
68012
|
}
|
|
67564
68013
|
|
|
67565
|
-
},{"./output":
|
|
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":
|
|
67610
|
-
arguments[4][
|
|
67611
|
-
},{"./input":
|
|
68058
|
+
},{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../safe-buffer-5.2.0/index":556,"../../../../typeforce-1.18.0/index":576,"../../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":
|
|
68106
|
+
},{"../../../../typeforce-1.18.0/index":576,"../../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":
|
|
67693
|
-
arguments[4][
|
|
67694
|
-
},{"./input":
|
|
68141
|
+
},{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../typeforce-1.18.0/index":576,"../../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":
|
|
68210
|
+
},{"../../../../../../../../../node_modules/is-buffer/index.js":150,"../../../../typeforce-1.18.0/index":576,"../../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":
|
|
68245
|
+
},{"../../../../bitcoin-ops-1.4.1/index.json":436,"../../../../typeforce-1.18.0/index":576,"../../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":
|
|
69372
|
+
},{"../../bitcoin-ops-1.4.1/index.json":436,"../../blake2b-6268e6dd678661e0acc4359e9171b97eb1ebf8ac/index":479,"../../safe-buffer-5.2.0/index":556,"../../typeforce-1.18.0/index":576,"../../varuint-bitcoin-1.1.2/index":579,"./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":
|
|
70266
|
+
},{"../../bitcoin-ops-1.4.1/index.json":436,"../../debug-3.1.0/src/browser":492,"../../safe-buffer-5.2.0/index":556,"../../typeforce-1.18.0/index":576,"./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":
|
|
70323
|
+
},{"../../typeforce-1.18.0/index":576}],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":
|
|
70638
|
+
},{"../blake2b-wasm-193cdb71656c1a6c7f89b05d0327bb9b758d071b/index":481,"../nanoassert-1.1.0/index":547}],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
|
-
},{}],
|
|
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":
|
|
70833
|
+
},{"../nanoassert-1.1.0/index":547,"./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}],
|
|
74262
|
+
},{"buffer":67}],483:[function(require,module,exports){
|
|
73814
74263
|
arguments[4][23][0].apply(exports,arguments)
|
|
73815
|
-
},{"crypto":78,"dup":23}],
|
|
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":
|
|
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":
|
|
74322
|
+
},{"../bs58-4.0.1/index":484,"../safe-buffer-5.2.0/index":556}],486:[function(require,module,exports){
|
|
73874
74323
|
'use strict'
|
|
73875
74324
|
|
|
73876
74325
|
var createHash = require('../create-hash-1.2.0/browser')
|
|
@@ -73884,7 +74333,7 @@ function sha256x2 (buffer) {
|
|
|
73884
74333
|
|
|
73885
74334
|
module.exports = bs58checkBase(sha256x2)
|
|
73886
74335
|
|
|
73887
|
-
},{"../create-hash-1.2.0/browser":
|
|
74336
|
+
},{"../create-hash-1.2.0/browser":489,"./base":485}],487:[function(require,module,exports){
|
|
73888
74337
|
(function (Buffer){(function (){
|
|
73889
74338
|
'use strict';
|
|
73890
74339
|
module.exports = function (a, b) {
|
|
@@ -73914,7 +74363,7 @@ module.exports = function (a, b) {
|
|
|
73914
74363
|
};
|
|
73915
74364
|
|
|
73916
74365
|
}).call(this)}).call(this,{"isBuffer":require("../../../../../../node_modules/is-buffer/index.js")})
|
|
73917
|
-
},{"../../../../../../node_modules/is-buffer/index.js":150}],
|
|
74366
|
+
},{"../../../../../../node_modules/is-buffer/index.js":150}],488:[function(require,module,exports){
|
|
73918
74367
|
var Buffer = require('../safe-buffer-5.2.0/index').Buffer
|
|
73919
74368
|
var Transform = require('stream').Transform
|
|
73920
74369
|
var StringDecoder = require('string_decoder').StringDecoder
|
|
@@ -74015,7 +74464,7 @@ CipherBase.prototype._toString = function (value, enc, fin) {
|
|
|
74015
74464
|
|
|
74016
74465
|
module.exports = CipherBase
|
|
74017
74466
|
|
|
74018
|
-
},{"../inherits-2.0.4/inherits":
|
|
74467
|
+
},{"../inherits-2.0.4/inherits":539,"../safe-buffer-5.2.0/index":556,"stream":192,"string_decoder":207}],489:[function(require,module,exports){
|
|
74019
74468
|
'use strict'
|
|
74020
74469
|
var inherits = require('../inherits-2.0.4/inherits')
|
|
74021
74470
|
var MD5 = require('../md5.js-1.3.5/index')
|
|
@@ -74047,10 +74496,10 @@ module.exports = function createHash (alg) {
|
|
|
74047
74496
|
return new Hash(sha(alg))
|
|
74048
74497
|
}
|
|
74049
74498
|
|
|
74050
|
-
},{"../cipher-base-1.0.4/index":
|
|
74499
|
+
},{"../cipher-base-1.0.4/index":488,"../inherits-2.0.4/inherits":539,"../md5.js-1.3.5/index":542,"../ripemd160-2.0.2/index":555,"../sha.js-2.4.11/index":567}],490:[function(require,module,exports){
|
|
74051
74500
|
module.exports = require('crypto').createHash
|
|
74052
74501
|
|
|
74053
|
-
},{"crypto":78}],
|
|
74502
|
+
},{"crypto":78}],491:[function(require,module,exports){
|
|
74054
74503
|
(function (Buffer){(function (){
|
|
74055
74504
|
'use strict';
|
|
74056
74505
|
var createHash = require('../create-hash-1.2.0/browser')
|
|
@@ -74122,7 +74571,7 @@ module.exports = function createHmac(alg, key) {
|
|
|
74122
74571
|
}
|
|
74123
74572
|
|
|
74124
74573
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
74125
|
-
},{"../create-hash-1.2.0/browser":
|
|
74574
|
+
},{"../create-hash-1.2.0/browser":489,"../inherits-2.0.4/inherits":539,"buffer":67,"stream":192}],492:[function(require,module,exports){
|
|
74126
74575
|
(function (process){(function (){
|
|
74127
74576
|
/**
|
|
74128
74577
|
* This is the web browser implementation of `debug()`.
|
|
@@ -74321,7 +74770,7 @@ function localstorage() {
|
|
|
74321
74770
|
}
|
|
74322
74771
|
|
|
74323
74772
|
}).call(this)}).call(this,require('_process'))
|
|
74324
|
-
},{"./debug":
|
|
74773
|
+
},{"./debug":493,"_process":171}],493:[function(require,module,exports){
|
|
74325
74774
|
|
|
74326
74775
|
/**
|
|
74327
74776
|
* This is the common logic for both the Node.js and web browser
|
|
@@ -74548,7 +74997,7 @@ function coerce(val) {
|
|
|
74548
74997
|
return val;
|
|
74549
74998
|
}
|
|
74550
74999
|
|
|
74551
|
-
},{"../../ms-2.1.2/index":
|
|
75000
|
+
},{"../../ms-2.1.2/index":546}],494:[function(require,module,exports){
|
|
74552
75001
|
(function (Buffer){(function (){
|
|
74553
75002
|
"use strict";
|
|
74554
75003
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -74582,7 +75031,7 @@ exports.utils = {
|
|
|
74582
75031
|
};
|
|
74583
75032
|
|
|
74584
75033
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
74585
|
-
},{"./keys":
|
|
75034
|
+
},{"./keys":497,"./utils":498,"buffer":67}],495:[function(require,module,exports){
|
|
74586
75035
|
(function (Buffer){(function (){
|
|
74587
75036
|
"use strict";
|
|
74588
75037
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -74643,7 +75092,7 @@ var PrivateKey = /** @class */ (function () {
|
|
|
74643
75092
|
exports.default = PrivateKey;
|
|
74644
75093
|
|
|
74645
75094
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
74646
|
-
},{"../../../futoin-hkdf-1.3.3/hkdf.js":
|
|
75095
|
+
},{"../../../futoin-hkdf-1.3.3/hkdf.js":520,"../../../secp256k1-4.0.2/elliptic":563,"../utils":498,"./PublicKey":496,"buffer":67}],496:[function(require,module,exports){
|
|
74647
75096
|
(function (Buffer){(function (){
|
|
74648
75097
|
"use strict";
|
|
74649
75098
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -74707,7 +75156,7 @@ var PublicKey = /** @class */ (function () {
|
|
|
74707
75156
|
exports.default = PublicKey;
|
|
74708
75157
|
|
|
74709
75158
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
74710
|
-
},{"../../../futoin-hkdf-1.3.3/hkdf.js":
|
|
75159
|
+
},{"../../../futoin-hkdf-1.3.3/hkdf.js":520,"../../../secp256k1-4.0.2/elliptic":563,"../utils":498,"buffer":67}],497:[function(require,module,exports){
|
|
74711
75160
|
"use strict";
|
|
74712
75161
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
74713
75162
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -74719,7 +75168,7 @@ Object.defineProperty(exports, "PrivateKey", { enumerable: true, get: function (
|
|
|
74719
75168
|
var PublicKey_1 = require("./PublicKey");
|
|
74720
75169
|
Object.defineProperty(exports, "PublicKey", { enumerable: true, get: function () { return __importDefault(PublicKey_1).default; } });
|
|
74721
75170
|
|
|
74722
|
-
},{"./PrivateKey":
|
|
75171
|
+
},{"./PrivateKey":495,"./PublicKey":496}],498:[function(require,module,exports){
|
|
74723
75172
|
(function (Buffer){(function (){
|
|
74724
75173
|
"use strict";
|
|
74725
75174
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -74783,7 +75232,7 @@ function aesDecrypt(key, cipherText) {
|
|
|
74783
75232
|
exports.aesDecrypt = aesDecrypt;
|
|
74784
75233
|
|
|
74785
75234
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
74786
|
-
},{"../../secp256k1-4.0.2/elliptic":
|
|
75235
|
+
},{"../../secp256k1-4.0.2/elliptic":563,"buffer":67,"crypto":78}],499:[function(require,module,exports){
|
|
74787
75236
|
var assert = require('assert')
|
|
74788
75237
|
var BigInteger = require('../../bigi-1.4.2/lib/index')
|
|
74789
75238
|
|
|
@@ -74862,7 +75311,7 @@ Curve.prototype.validate = function (Q) {
|
|
|
74862
75311
|
|
|
74863
75312
|
module.exports = Curve
|
|
74864
75313
|
|
|
74865
|
-
},{"../../bigi-1.4.2/lib/index":
|
|
75314
|
+
},{"../../bigi-1.4.2/lib/index":423,"./point":503,"assert":16}],500:[function(require,module,exports){
|
|
74866
75315
|
module.exports={
|
|
74867
75316
|
"secp128r1": {
|
|
74868
75317
|
"p": "fffffffdffffffffffffffffffffffff",
|
|
@@ -74928,7 +75377,7 @@ module.exports={
|
|
|
74928
75377
|
"Gy": "4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"
|
|
74929
75378
|
}
|
|
74930
75379
|
}
|
|
74931
|
-
},{}],
|
|
75380
|
+
},{}],501:[function(require,module,exports){
|
|
74932
75381
|
var Point = require('./point')
|
|
74933
75382
|
var Curve = require('./curve')
|
|
74934
75383
|
|
|
@@ -74940,7 +75389,7 @@ module.exports = {
|
|
|
74940
75389
|
getCurveByName: getCurveByName
|
|
74941
75390
|
}
|
|
74942
75391
|
|
|
74943
|
-
},{"./curve":
|
|
75392
|
+
},{"./curve":499,"./names":502,"./point":503}],502:[function(require,module,exports){
|
|
74944
75393
|
var BigInteger = require('../../bigi-1.4.2/lib/index')
|
|
74945
75394
|
|
|
74946
75395
|
var curves = require('./curves.json')
|
|
@@ -74963,7 +75412,7 @@ function getCurveByName (name) {
|
|
|
74963
75412
|
|
|
74964
75413
|
module.exports = getCurveByName
|
|
74965
75414
|
|
|
74966
|
-
},{"../../bigi-1.4.2/lib/index":
|
|
75415
|
+
},{"../../bigi-1.4.2/lib/index":423,"./curve":499,"./curves.json":500}],503:[function(require,module,exports){
|
|
74967
75416
|
var assert = require('assert')
|
|
74968
75417
|
var Buffer = require('../../safe-buffer-5.2.0/index').Buffer
|
|
74969
75418
|
var BigInteger = require('../../bigi-1.4.2/lib/index')
|
|
@@ -75209,7 +75658,7 @@ Point.prototype.toString = function () {
|
|
|
75209
75658
|
|
|
75210
75659
|
module.exports = Point
|
|
75211
75660
|
|
|
75212
|
-
},{"../../bigi-1.4.2/lib/index":
|
|
75661
|
+
},{"../../bigi-1.4.2/lib/index":423,"../../safe-buffer-5.2.0/index":556,"assert":16}],504:[function(require,module,exports){
|
|
75213
75662
|
'use strict';
|
|
75214
75663
|
|
|
75215
75664
|
var elliptic = exports;
|
|
@@ -75224,7 +75673,7 @@ elliptic.curves = require('./elliptic/curves');
|
|
|
75224
75673
|
elliptic.ec = require('./elliptic/ec');
|
|
75225
75674
|
elliptic.eddsa = require('./elliptic/eddsa');
|
|
75226
75675
|
|
|
75227
|
-
},{"../../brorand-1.1.0/index":
|
|
75676
|
+
},{"../../brorand-1.1.0/index":483,"../package.json":519,"./elliptic/curve":507,"./elliptic/curves":510,"./elliptic/ec":511,"./elliptic/eddsa":514,"./elliptic/utils":518}],505:[function(require,module,exports){
|
|
75228
75677
|
'use strict';
|
|
75229
75678
|
|
|
75230
75679
|
var BN = require('../../../../bn.js-4.11.8/lib/bn');
|
|
@@ -75602,7 +76051,7 @@ BasePoint.prototype.dblp = function dblp(k) {
|
|
|
75602
76051
|
return r;
|
|
75603
76052
|
};
|
|
75604
76053
|
|
|
75605
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
76054
|
+
},{"../../../../bn.js-4.11.8/lib/bn":482,"../utils":518}],506:[function(require,module,exports){
|
|
75606
76055
|
'use strict';
|
|
75607
76056
|
|
|
75608
76057
|
var utils = require('../utils');
|
|
@@ -76036,9 +76485,9 @@ Point.prototype.eqXToP = function eqXToP(x) {
|
|
|
76036
76485
|
Point.prototype.toP = Point.prototype.normalize;
|
|
76037
76486
|
Point.prototype.mixedAdd = Point.prototype.add;
|
|
76038
76487
|
|
|
76039
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
76488
|
+
},{"../../../../bn.js-4.11.8/lib/bn":482,"../../../../inherits-2.0.4/inherits":539,"../utils":518,"./base":505}],507:[function(require,module,exports){
|
|
76040
76489
|
arguments[4][93][0].apply(exports,arguments)
|
|
76041
|
-
},{"./base":
|
|
76490
|
+
},{"./base":505,"./edwards":506,"./mont":508,"./short":509,"dup":93}],508:[function(require,module,exports){
|
|
76042
76491
|
'use strict';
|
|
76043
76492
|
|
|
76044
76493
|
var BN = require('../../../../bn.js-4.11.8/lib/bn');
|
|
@@ -76218,7 +76667,7 @@ Point.prototype.getX = function getX() {
|
|
|
76218
76667
|
return this.x.fromRed();
|
|
76219
76668
|
};
|
|
76220
76669
|
|
|
76221
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
76670
|
+
},{"../../../../bn.js-4.11.8/lib/bn":482,"../../../../inherits-2.0.4/inherits":539,"../utils":518,"./base":505}],509:[function(require,module,exports){
|
|
76222
76671
|
'use strict';
|
|
76223
76672
|
|
|
76224
76673
|
var utils = require('../utils');
|
|
@@ -77157,7 +77606,7 @@ JPoint.prototype.isInfinity = function isInfinity() {
|
|
|
77157
77606
|
return this.z.cmpn(0) === 0;
|
|
77158
77607
|
};
|
|
77159
77608
|
|
|
77160
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
77609
|
+
},{"../../../../bn.js-4.11.8/lib/bn":482,"../../../../inherits-2.0.4/inherits":539,"../utils":518,"./base":505}],510:[function(require,module,exports){
|
|
77161
77610
|
'use strict';
|
|
77162
77611
|
|
|
77163
77612
|
var curves = exports;
|
|
@@ -77365,7 +77814,7 @@ defineCurve('secp256k1', {
|
|
|
77365
77814
|
]
|
|
77366
77815
|
});
|
|
77367
77816
|
|
|
77368
|
-
},{"../../../hash.js-1.1.7/lib/hash":
|
|
77817
|
+
},{"../../../hash.js-1.1.7/lib/hash":526,"./curve":507,"./precomputed/secp256k1":517,"./utils":518}],511:[function(require,module,exports){
|
|
77369
77818
|
'use strict';
|
|
77370
77819
|
|
|
77371
77820
|
var BN = require('../../../../bn.js-4.11.8/lib/bn');
|
|
@@ -77608,7 +78057,7 @@ EC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) {
|
|
|
77608
78057
|
throw new Error('Unable to find valid recovery factor');
|
|
77609
78058
|
};
|
|
77610
78059
|
|
|
77611
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
78060
|
+
},{"../../../../bn.js-4.11.8/lib/bn":482,"../../../../brorand-1.1.0/index":483,"../../../../hmac-drbg-1.0.1/lib/hmac-drbg":538,"../curves":510,"../utils":518,"./key":512,"./signature":513}],512:[function(require,module,exports){
|
|
77612
78061
|
'use strict';
|
|
77613
78062
|
|
|
77614
78063
|
var BN = require('../../../../bn.js-4.11.8/lib/bn');
|
|
@@ -77728,7 +78177,7 @@ KeyPair.prototype.inspect = function inspect() {
|
|
|
77728
78177
|
' pub: ' + (this.pub && this.pub.inspect()) + ' >';
|
|
77729
78178
|
};
|
|
77730
78179
|
|
|
77731
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
78180
|
+
},{"../../../../bn.js-4.11.8/lib/bn":482,"../utils":518}],513:[function(require,module,exports){
|
|
77732
78181
|
'use strict';
|
|
77733
78182
|
|
|
77734
78183
|
var BN = require('../../../../bn.js-4.11.8/lib/bn');
|
|
@@ -77896,7 +78345,7 @@ Signature.prototype.toDER = function toDER(enc) {
|
|
|
77896
78345
|
return utils.encode(res, enc);
|
|
77897
78346
|
};
|
|
77898
78347
|
|
|
77899
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
78348
|
+
},{"../../../../bn.js-4.11.8/lib/bn":482,"../utils":518}],514:[function(require,module,exports){
|
|
77900
78349
|
'use strict';
|
|
77901
78350
|
|
|
77902
78351
|
var hash = require('../../../../hash.js-1.1.7/lib/hash');
|
|
@@ -78016,9 +78465,9 @@ EDDSA.prototype.isPoint = function isPoint(val) {
|
|
|
78016
78465
|
return val instanceof this.pointClass;
|
|
78017
78466
|
};
|
|
78018
78467
|
|
|
78019
|
-
},{"../../../../hash.js-1.1.7/lib/hash":
|
|
78468
|
+
},{"../../../../hash.js-1.1.7/lib/hash":526,"../curves":510,"../utils":518,"./key":515,"./signature":516}],515:[function(require,module,exports){
|
|
78020
78469
|
arguments[4][101][0].apply(exports,arguments)
|
|
78021
|
-
},{"../utils":
|
|
78470
|
+
},{"../utils":518,"dup":101}],516:[function(require,module,exports){
|
|
78022
78471
|
'use strict';
|
|
78023
78472
|
|
|
78024
78473
|
var BN = require('../../../../bn.js-4.11.8/lib/bn');
|
|
@@ -78085,7 +78534,7 @@ Signature.prototype.toHex = function toHex() {
|
|
|
78085
78534
|
|
|
78086
78535
|
module.exports = Signature;
|
|
78087
78536
|
|
|
78088
|
-
},{"../../../../bn.js-4.11.8/lib/bn":
|
|
78537
|
+
},{"../../../../bn.js-4.11.8/lib/bn":482,"../utils":518}],517:[function(require,module,exports){
|
|
78089
78538
|
module.exports = {
|
|
78090
78539
|
doubles: {
|
|
78091
78540
|
step: 4,
|
|
@@ -78867,7 +79316,7 @@ module.exports = {
|
|
|
78867
79316
|
}
|
|
78868
79317
|
};
|
|
78869
79318
|
|
|
78870
|
-
},{}],
|
|
79319
|
+
},{}],518:[function(require,module,exports){
|
|
78871
79320
|
'use strict';
|
|
78872
79321
|
|
|
78873
79322
|
var utils = exports;
|
|
@@ -78988,7 +79437,7 @@ function intFromLE(bytes) {
|
|
|
78988
79437
|
utils.intFromLE = intFromLE;
|
|
78989
79438
|
|
|
78990
79439
|
|
|
78991
|
-
},{"../../../bn.js-4.11.8/lib/bn":
|
|
79440
|
+
},{"../../../bn.js-4.11.8/lib/bn":482,"../../../minimalistic-assert-1.0.1/index":544,"../../../minimalistic-crypto-utils-1.0.1/lib/utils":545}],519:[function(require,module,exports){
|
|
78992
79441
|
module.exports={
|
|
78993
79442
|
"name": "elliptic",
|
|
78994
79443
|
"version": "6.5.3",
|
|
@@ -79044,7 +79493,7 @@ module.exports={
|
|
|
79044
79493
|
"minimalistic-crypto-utils": "^1.0.0"
|
|
79045
79494
|
}
|
|
79046
79495
|
}
|
|
79047
|
-
},{}],
|
|
79496
|
+
},{}],520:[function(require,module,exports){
|
|
79048
79497
|
(function (Buffer){(function (){
|
|
79049
79498
|
'use strict';
|
|
79050
79499
|
|
|
@@ -79222,7 +79671,7 @@ Object.defineProperties( hkdf, {
|
|
|
79222
79671
|
module.exports = hkdf;
|
|
79223
79672
|
|
|
79224
79673
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
79225
|
-
},{"buffer":67,"crypto":78}],
|
|
79674
|
+
},{"buffer":67,"crypto":78}],521:[function(require,module,exports){
|
|
79226
79675
|
'use strict';
|
|
79227
79676
|
|
|
79228
79677
|
var groestl = require('./lib/groestl');
|
|
@@ -79262,7 +79711,7 @@ module.exports.groestl_2 = function(str,format, output) {
|
|
|
79262
79711
|
return h.int32ArrayToHexString(a);
|
|
79263
79712
|
}
|
|
79264
79713
|
}
|
|
79265
|
-
},{"./lib/groestl":
|
|
79714
|
+
},{"./lib/groestl":522,"./lib/helper":523}],522:[function(require,module,exports){
|
|
79266
79715
|
/////////////////////////////////////
|
|
79267
79716
|
//////////// groestl ///////////////
|
|
79268
79717
|
|
|
@@ -80511,7 +80960,7 @@ module.exports = function(input, format, output) {
|
|
|
80511
80960
|
}
|
|
80512
80961
|
return out;
|
|
80513
80962
|
}
|
|
80514
|
-
},{"./helper":
|
|
80963
|
+
},{"./helper":523,"./op":524}],523:[function(require,module,exports){
|
|
80515
80964
|
'use strict';
|
|
80516
80965
|
// String functions
|
|
80517
80966
|
|
|
@@ -80765,7 +81214,7 @@ module.exports.b64Decode = function(input) {
|
|
|
80765
81214
|
}
|
|
80766
81215
|
return output;
|
|
80767
81216
|
};
|
|
80768
|
-
},{"./op.js":
|
|
81217
|
+
},{"./op.js":524}],524:[function(require,module,exports){
|
|
80769
81218
|
'use strict';
|
|
80770
81219
|
//the right shift is important, it has to do with 32 bit operations in javascript, it will make things faster
|
|
80771
81220
|
function u64(h, l) {
|
|
@@ -81229,7 +81678,7 @@ module.exports.xORTable = function(d, s1, s2, len) {
|
|
|
81229
81678
|
}
|
|
81230
81679
|
}
|
|
81231
81680
|
|
|
81232
|
-
},{}],
|
|
81681
|
+
},{}],525:[function(require,module,exports){
|
|
81233
81682
|
'use strict'
|
|
81234
81683
|
var Buffer = require('../safe-buffer-5.2.0/index').Buffer
|
|
81235
81684
|
var Transform = require('stream').Transform
|
|
@@ -81326,9 +81775,9 @@ HashBase.prototype._digest = function () {
|
|
|
81326
81775
|
|
|
81327
81776
|
module.exports = HashBase
|
|
81328
81777
|
|
|
81329
|
-
},{"../inherits-2.0.4/inherits":
|
|
81778
|
+
},{"../inherits-2.0.4/inherits":539,"../safe-buffer-5.2.0/index":556,"stream":192}],526:[function(require,module,exports){
|
|
81330
81779
|
arguments[4][134][0].apply(exports,arguments)
|
|
81331
|
-
},{"./hash/common":
|
|
81780
|
+
},{"./hash/common":527,"./hash/hmac":528,"./hash/ripemd":529,"./hash/sha":530,"./hash/utils":537,"dup":134}],527:[function(require,module,exports){
|
|
81332
81781
|
'use strict';
|
|
81333
81782
|
|
|
81334
81783
|
var utils = require('./utils');
|
|
@@ -81422,7 +81871,7 @@ BlockHash.prototype._pad = function pad() {
|
|
|
81422
81871
|
return res;
|
|
81423
81872
|
};
|
|
81424
81873
|
|
|
81425
|
-
},{"../../../minimalistic-assert-1.0.1/index":
|
|
81874
|
+
},{"../../../minimalistic-assert-1.0.1/index":544,"./utils":537}],528:[function(require,module,exports){
|
|
81426
81875
|
'use strict';
|
|
81427
81876
|
|
|
81428
81877
|
var utils = require('./utils');
|
|
@@ -81471,15 +81920,15 @@ Hmac.prototype.digest = function digest(enc) {
|
|
|
81471
81920
|
return this.outer.digest(enc);
|
|
81472
81921
|
};
|
|
81473
81922
|
|
|
81474
|
-
},{"../../../minimalistic-assert-1.0.1/index":
|
|
81923
|
+
},{"../../../minimalistic-assert-1.0.1/index":544,"./utils":537}],529:[function(require,module,exports){
|
|
81475
81924
|
arguments[4][137][0].apply(exports,arguments)
|
|
81476
|
-
},{"./common":
|
|
81925
|
+
},{"./common":527,"./utils":537,"dup":137}],530:[function(require,module,exports){
|
|
81477
81926
|
arguments[4][138][0].apply(exports,arguments)
|
|
81478
|
-
},{"./sha/1":
|
|
81927
|
+
},{"./sha/1":531,"./sha/224":532,"./sha/256":533,"./sha/384":534,"./sha/512":535,"dup":138}],531:[function(require,module,exports){
|
|
81479
81928
|
arguments[4][139][0].apply(exports,arguments)
|
|
81480
|
-
},{"../common":
|
|
81929
|
+
},{"../common":527,"../utils":537,"./common":536,"dup":139}],532:[function(require,module,exports){
|
|
81481
81930
|
arguments[4][140][0].apply(exports,arguments)
|
|
81482
|
-
},{"../utils":
|
|
81931
|
+
},{"../utils":537,"./256":533,"dup":140}],533:[function(require,module,exports){
|
|
81483
81932
|
'use strict';
|
|
81484
81933
|
|
|
81485
81934
|
var utils = require('../utils');
|
|
@@ -81586,9 +82035,9 @@ SHA256.prototype._digest = function digest(enc) {
|
|
|
81586
82035
|
return utils.split32(this.h, 'big');
|
|
81587
82036
|
};
|
|
81588
82037
|
|
|
81589
|
-
},{"../../../../minimalistic-assert-1.0.1/index":
|
|
82038
|
+
},{"../../../../minimalistic-assert-1.0.1/index":544,"../common":527,"../utils":537,"./common":536}],534:[function(require,module,exports){
|
|
81590
82039
|
arguments[4][142][0].apply(exports,arguments)
|
|
81591
|
-
},{"../utils":
|
|
82040
|
+
},{"../utils":537,"./512":535,"dup":142}],535:[function(require,module,exports){
|
|
81592
82041
|
'use strict';
|
|
81593
82042
|
|
|
81594
82043
|
var utils = require('../utils');
|
|
@@ -81920,9 +82369,9 @@ function g1_512_lo(xh, xl) {
|
|
|
81920
82369
|
return r;
|
|
81921
82370
|
}
|
|
81922
82371
|
|
|
81923
|
-
},{"../../../../minimalistic-assert-1.0.1/index":
|
|
82372
|
+
},{"../../../../minimalistic-assert-1.0.1/index":544,"../common":527,"../utils":537}],536:[function(require,module,exports){
|
|
81924
82373
|
arguments[4][144][0].apply(exports,arguments)
|
|
81925
|
-
},{"../utils":
|
|
82374
|
+
},{"../utils":537,"dup":144}],537:[function(require,module,exports){
|
|
81926
82375
|
'use strict';
|
|
81927
82376
|
|
|
81928
82377
|
var assert = require('../../../minimalistic-assert-1.0.1/index');
|
|
@@ -82202,7 +82651,7 @@ function shr64_lo(ah, al, num) {
|
|
|
82202
82651
|
}
|
|
82203
82652
|
exports.shr64_lo = shr64_lo;
|
|
82204
82653
|
|
|
82205
|
-
},{"../../../inherits-2.0.4/inherits":
|
|
82654
|
+
},{"../../../inherits-2.0.4/inherits":539,"../../../minimalistic-assert-1.0.1/index":544}],538:[function(require,module,exports){
|
|
82206
82655
|
'use strict';
|
|
82207
82656
|
|
|
82208
82657
|
var hash = require('../../hash.js-1.1.7/lib/hash');
|
|
@@ -82317,7 +82766,7 @@ HmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {
|
|
|
82317
82766
|
return utils.encode(res, enc);
|
|
82318
82767
|
};
|
|
82319
82768
|
|
|
82320
|
-
},{"../../hash.js-1.1.7/lib/hash":
|
|
82769
|
+
},{"../../hash.js-1.1.7/lib/hash":526,"../../minimalistic-assert-1.0.1/index":544,"../../minimalistic-crypto-utils-1.0.1/lib/utils":545}],539:[function(require,module,exports){
|
|
82321
82770
|
try {
|
|
82322
82771
|
var util = require('util');
|
|
82323
82772
|
/* istanbul ignore next */
|
|
@@ -82328,9 +82777,9 @@ try {
|
|
|
82328
82777
|
module.exports = require('./inherits_browser.js');
|
|
82329
82778
|
}
|
|
82330
82779
|
|
|
82331
|
-
},{"./inherits_browser.js":
|
|
82780
|
+
},{"./inherits_browser.js":540,"util":212}],540:[function(require,module,exports){
|
|
82332
82781
|
arguments[4][148][0].apply(exports,arguments)
|
|
82333
|
-
},{"dup":148}],
|
|
82782
|
+
},{"dup":148}],541:[function(require,module,exports){
|
|
82334
82783
|
/*!
|
|
82335
82784
|
* Determine if an object is a Buffer
|
|
82336
82785
|
*
|
|
@@ -82343,7 +82792,7 @@ module.exports = function isBuffer (obj) {
|
|
|
82343
82792
|
typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
|
82344
82793
|
}
|
|
82345
82794
|
|
|
82346
|
-
},{}],
|
|
82795
|
+
},{}],542:[function(require,module,exports){
|
|
82347
82796
|
'use strict'
|
|
82348
82797
|
var inherits = require('../inherits-2.0.4/inherits')
|
|
82349
82798
|
var HashBase = require('../hash-base-3.0.4/index')
|
|
@@ -82491,13 +82940,13 @@ function fnI (a, b, c, d, m, k, s) {
|
|
|
82491
82940
|
|
|
82492
82941
|
module.exports = MD5
|
|
82493
82942
|
|
|
82494
|
-
},{"../hash-base-3.0.4/index":
|
|
82495
|
-
arguments[4][
|
|
82496
|
-
},{"buffer":67,"dup":
|
|
82943
|
+
},{"../hash-base-3.0.4/index":525,"../inherits-2.0.4/inherits":539,"../safe-buffer-5.2.0/index":556}],543:[function(require,module,exports){
|
|
82944
|
+
arguments[4][348][0].apply(exports,arguments)
|
|
82945
|
+
},{"buffer":67,"dup":348}],544:[function(require,module,exports){
|
|
82497
82946
|
arguments[4][157][0].apply(exports,arguments)
|
|
82498
|
-
},{"dup":157}],
|
|
82947
|
+
},{"dup":157}],545:[function(require,module,exports){
|
|
82499
82948
|
arguments[4][158][0].apply(exports,arguments)
|
|
82500
|
-
},{"dup":158}],
|
|
82949
|
+
},{"dup":158}],546:[function(require,module,exports){
|
|
82501
82950
|
/**
|
|
82502
82951
|
* Helpers.
|
|
82503
82952
|
*/
|
|
@@ -82661,7 +83110,7 @@ function plural(ms, msAbs, n, name) {
|
|
|
82661
83110
|
return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
|
|
82662
83111
|
}
|
|
82663
83112
|
|
|
82664
|
-
},{}],
|
|
83113
|
+
},{}],547:[function(require,module,exports){
|
|
82665
83114
|
assert.notEqual = notEqual
|
|
82666
83115
|
assert.notOk = notOk
|
|
82667
83116
|
assert.equal = equal
|
|
@@ -82685,7 +83134,7 @@ function assert (t, m) {
|
|
|
82685
83134
|
if (!t) throw new Error(m || 'AssertionError')
|
|
82686
83135
|
}
|
|
82687
83136
|
|
|
82688
|
-
},{}],
|
|
83137
|
+
},{}],548:[function(require,module,exports){
|
|
82689
83138
|
var checkParameters = require('./lib/precondition')
|
|
82690
83139
|
var native = require('crypto')
|
|
82691
83140
|
|
|
@@ -82718,7 +83167,7 @@ if (!native.pbkdf2Sync || native.pbkdf2Sync.toString().indexOf('keylen, digest')
|
|
|
82718
83167
|
exports.pbkdf2 = nativePBKDF2
|
|
82719
83168
|
}
|
|
82720
83169
|
|
|
82721
|
-
},{"./lib/async":
|
|
83170
|
+
},{"./lib/async":549,"./lib/precondition":551,"./lib/sync":552,"crypto":78}],549:[function(require,module,exports){
|
|
82722
83171
|
(function (process,global){(function (){
|
|
82723
83172
|
var checkParameters = require('./precondition')
|
|
82724
83173
|
var defaultEncoding = require('./default-encoding')
|
|
@@ -82822,7 +83271,7 @@ module.exports = function (password, salt, iterations, keylen, digest, callback)
|
|
|
82822
83271
|
}
|
|
82823
83272
|
|
|
82824
83273
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
82825
|
-
},{"../../safe-buffer-5.2.0/index":
|
|
83274
|
+
},{"../../safe-buffer-5.2.0/index":556,"./default-encoding":550,"./precondition":551,"./sync":552,"_process":171}],550:[function(require,module,exports){
|
|
82826
83275
|
(function (process){(function (){
|
|
82827
83276
|
var defaultEncoding
|
|
82828
83277
|
/* istanbul ignore next */
|
|
@@ -82836,7 +83285,7 @@ if (process.browser) {
|
|
|
82836
83285
|
module.exports = defaultEncoding
|
|
82837
83286
|
|
|
82838
83287
|
}).call(this)}).call(this,require('_process'))
|
|
82839
|
-
},{"_process":171}],
|
|
83288
|
+
},{"_process":171}],551:[function(require,module,exports){
|
|
82840
83289
|
(function (Buffer){(function (){
|
|
82841
83290
|
var MAX_ALLOC = Math.pow(2, 30) - 1 // default in iojs
|
|
82842
83291
|
|
|
@@ -82868,7 +83317,7 @@ module.exports = function (password, salt, iterations, keylen) {
|
|
|
82868
83317
|
}
|
|
82869
83318
|
|
|
82870
83319
|
}).call(this)}).call(this,{"isBuffer":require("../../../../../../../node_modules/is-buffer/index.js")})
|
|
82871
|
-
},{"../../../../../../../node_modules/is-buffer/index.js":150}],
|
|
83320
|
+
},{"../../../../../../../node_modules/is-buffer/index.js":150}],552:[function(require,module,exports){
|
|
82872
83321
|
var sizes = {
|
|
82873
83322
|
md5: 16,
|
|
82874
83323
|
sha1: 20,
|
|
@@ -82921,7 +83370,7 @@ function pbkdf2 (password, salt, iterations, keylen, digest) {
|
|
|
82921
83370
|
|
|
82922
83371
|
module.exports = pbkdf2
|
|
82923
83372
|
|
|
82924
|
-
},{"../../create-hmac-1.1.4/browser":
|
|
83373
|
+
},{"../../create-hmac-1.1.4/browser":491,"../../safe-buffer-5.2.0/index":556,"../lib/default-encoding":550,"../lib/precondition":551}],553:[function(require,module,exports){
|
|
82925
83374
|
var OPS = require('../bitcoin-ops-1.4.1/index.json')
|
|
82926
83375
|
|
|
82927
83376
|
function encodingLength (i) {
|
|
@@ -83000,7 +83449,7 @@ module.exports = {
|
|
|
83000
83449
|
decode: decode
|
|
83001
83450
|
}
|
|
83002
83451
|
|
|
83003
|
-
},{"../bitcoin-ops-1.4.1/index.json":
|
|
83452
|
+
},{"../bitcoin-ops-1.4.1/index.json":436}],554:[function(require,module,exports){
|
|
83004
83453
|
(function (process,global){(function (){
|
|
83005
83454
|
'use strict'
|
|
83006
83455
|
|
|
@@ -83054,7 +83503,7 @@ function randomBytes (size, cb) {
|
|
|
83054
83503
|
}
|
|
83055
83504
|
|
|
83056
83505
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
83057
|
-
},{"../safe-buffer-5.2.0/index":
|
|
83506
|
+
},{"../safe-buffer-5.2.0/index":556,"_process":171}],555:[function(require,module,exports){
|
|
83058
83507
|
'use strict'
|
|
83059
83508
|
var Buffer = require('buffer').Buffer
|
|
83060
83509
|
var inherits = require('../inherits-2.0.4/inherits')
|
|
@@ -83219,7 +83668,7 @@ function fn5 (a, b, c, d, e, m, k, s) {
|
|
|
83219
83668
|
|
|
83220
83669
|
module.exports = RIPEMD160
|
|
83221
83670
|
|
|
83222
|
-
},{"../hash-base-3.0.4/index":
|
|
83671
|
+
},{"../hash-base-3.0.4/index":525,"../inherits-2.0.4/inherits":539,"buffer":67}],556:[function(require,module,exports){
|
|
83223
83672
|
/* eslint-disable node/no-deprecated-api */
|
|
83224
83673
|
var buffer = require('buffer')
|
|
83225
83674
|
var Buffer = buffer.Buffer
|
|
@@ -83285,11 +83734,11 @@ SafeBuffer.allocUnsafeSlow = function (size) {
|
|
|
83285
83734
|
return buffer.SlowBuffer(size)
|
|
83286
83735
|
}
|
|
83287
83736
|
|
|
83288
|
-
},{"buffer":67}],
|
|
83737
|
+
},{"buffer":67}],557:[function(require,module,exports){
|
|
83289
83738
|
'use strict'
|
|
83290
83739
|
module.exports = require('./lib')(require('./lib/elliptic'))
|
|
83291
83740
|
|
|
83292
|
-
},{"./lib":
|
|
83741
|
+
},{"./lib":561,"./lib/elliptic":560}],558:[function(require,module,exports){
|
|
83293
83742
|
(function (Buffer){(function (){
|
|
83294
83743
|
'use strict'
|
|
83295
83744
|
var toString = Object.prototype.toString
|
|
@@ -83337,7 +83786,7 @@ exports.isNumberInInterval = function (number, x, y, message) {
|
|
|
83337
83786
|
}
|
|
83338
83787
|
|
|
83339
83788
|
}).call(this)}).call(this,{"isBuffer":require("../../../../../../../node_modules/is-buffer/index.js")})
|
|
83340
|
-
},{"../../../../../../../node_modules/is-buffer/index.js":150}],
|
|
83789
|
+
},{"../../../../../../../node_modules/is-buffer/index.js":150}],559:[function(require,module,exports){
|
|
83341
83790
|
'use strict'
|
|
83342
83791
|
var Buffer = require('../../safe-buffer-5.2.0/index').Buffer
|
|
83343
83792
|
var bip66 = require('../../bip66-1.1.5/index')
|
|
@@ -83532,7 +83981,7 @@ exports.signatureImportLax = function (sig) {
|
|
|
83532
83981
|
return { r: r, s: s }
|
|
83533
83982
|
}
|
|
83534
83983
|
|
|
83535
|
-
},{"../../bip66-1.1.5/index":
|
|
83984
|
+
},{"../../bip66-1.1.5/index":435,"../../safe-buffer-5.2.0/index":556}],560:[function(require,module,exports){
|
|
83536
83985
|
'use strict'
|
|
83537
83986
|
var Buffer = require('../../../safe-buffer-5.2.0/index').Buffer
|
|
83538
83987
|
var createHash = require('../../../create-hash-1.2.0/browser')
|
|
@@ -83797,7 +84246,7 @@ exports.ecdhUnsafe = function (publicKey, privateKey, compressed) {
|
|
|
83797
84246
|
return Buffer.from(pair.pub.mul(scalar).encode(true, compressed))
|
|
83798
84247
|
}
|
|
83799
84248
|
|
|
83800
|
-
},{"../../../bn.js-4.11.8/lib/bn":
|
|
84249
|
+
},{"../../../bn.js-4.11.8/lib/bn":482,"../../../create-hash-1.2.0/browser":489,"../../../elliptic-6.5.3/lib/elliptic":504,"../../../safe-buffer-5.2.0/index":556,"../messages.json":562}],561:[function(require,module,exports){
|
|
83801
84250
|
'use strict'
|
|
83802
84251
|
var assert = require('./assert')
|
|
83803
84252
|
var der = require('./der')
|
|
@@ -84044,7 +84493,7 @@ module.exports = function (secp256k1) {
|
|
|
84044
84493
|
}
|
|
84045
84494
|
}
|
|
84046
84495
|
|
|
84047
|
-
},{"./assert":
|
|
84496
|
+
},{"./assert":558,"./der":559,"./messages.json":562}],562:[function(require,module,exports){
|
|
84048
84497
|
module.exports={
|
|
84049
84498
|
"COMPRESSED_TYPE_INVALID": "compressed should be a boolean",
|
|
84050
84499
|
"EC_PRIVATE_KEY_TYPE_INVALID": "private key should be a Buffer",
|
|
@@ -84082,10 +84531,10 @@ module.exports={
|
|
|
84082
84531
|
"TWEAK_TYPE_INVALID": "tweak should be a Buffer",
|
|
84083
84532
|
"TWEAK_LENGTH_INVALID": "tweak length is invalid"
|
|
84084
84533
|
}
|
|
84085
|
-
},{}],
|
|
84534
|
+
},{}],563:[function(require,module,exports){
|
|
84086
84535
|
module.exports = require('./lib')(require('./lib/elliptic'))
|
|
84087
84536
|
|
|
84088
|
-
},{"./lib":
|
|
84537
|
+
},{"./lib":565,"./lib/elliptic":564}],564:[function(require,module,exports){
|
|
84089
84538
|
const EC = require('../../elliptic-6.5.3/lib/elliptic').ec
|
|
84090
84539
|
|
|
84091
84540
|
const ec = new EC('secp256k1')
|
|
@@ -84489,7 +84938,7 @@ module.exports = {
|
|
|
84489
84938
|
}
|
|
84490
84939
|
}
|
|
84491
84940
|
|
|
84492
|
-
},{"../../elliptic-6.5.3/lib/elliptic":
|
|
84941
|
+
},{"../../elliptic-6.5.3/lib/elliptic":504}],565:[function(require,module,exports){
|
|
84493
84942
|
const errors = {
|
|
84494
84943
|
IMPOSSIBLE_CASE: 'Impossible case. Please create issue.',
|
|
84495
84944
|
TWEAK_ADD:
|
|
@@ -84827,7 +85276,7 @@ module.exports = (secp256k1) => {
|
|
|
84827
85276
|
}
|
|
84828
85277
|
}
|
|
84829
85278
|
|
|
84830
|
-
},{}],
|
|
85279
|
+
},{}],566:[function(require,module,exports){
|
|
84831
85280
|
var Buffer = require('../safe-buffer-5.2.0/index').Buffer
|
|
84832
85281
|
|
|
84833
85282
|
// prototype class for hash functions
|
|
@@ -84910,7 +85359,7 @@ Hash.prototype._update = function () {
|
|
|
84910
85359
|
|
|
84911
85360
|
module.exports = Hash
|
|
84912
85361
|
|
|
84913
|
-
},{"../safe-buffer-5.2.0/index":
|
|
85362
|
+
},{"../safe-buffer-5.2.0/index":556}],567:[function(require,module,exports){
|
|
84914
85363
|
'use strict'
|
|
84915
85364
|
var exports = (module.exports = function SHA(algorithm) {
|
|
84916
85365
|
algorithm = algorithm.toLowerCase()
|
|
@@ -84928,7 +85377,7 @@ exports.sha256 = require('./sha256')
|
|
|
84928
85377
|
exports.sha384 = require('./sha384')
|
|
84929
85378
|
exports.sha512 = require('./sha512')
|
|
84930
85379
|
|
|
84931
|
-
},{"./sha":
|
|
85380
|
+
},{"./sha":568,"./sha1":569,"./sha224":570,"./sha256":571,"./sha384":572,"./sha512":573}],568:[function(require,module,exports){
|
|
84932
85381
|
/*
|
|
84933
85382
|
* A JavaScript implementation of the Secure Hash Algorithm, SHA-0, as defined
|
|
84934
85383
|
* in FIPS PUB 180-1
|
|
@@ -85024,7 +85473,7 @@ Sha.prototype._hash = function () {
|
|
|
85024
85473
|
|
|
85025
85474
|
module.exports = Sha
|
|
85026
85475
|
|
|
85027
|
-
},{"../inherits-2.0.4/inherits":
|
|
85476
|
+
},{"../inherits-2.0.4/inherits":539,"../safe-buffer-5.2.0/index":556,"./hash":566}],569:[function(require,module,exports){
|
|
85028
85477
|
/*
|
|
85029
85478
|
* A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
|
|
85030
85479
|
* in FIPS PUB 180-1
|
|
@@ -85125,7 +85574,7 @@ Sha1.prototype._hash = function () {
|
|
|
85125
85574
|
|
|
85126
85575
|
module.exports = Sha1
|
|
85127
85576
|
|
|
85128
|
-
},{"../inherits-2.0.4/inherits":
|
|
85577
|
+
},{"../inherits-2.0.4/inherits":539,"../safe-buffer-5.2.0/index":556,"./hash":566}],570:[function(require,module,exports){
|
|
85129
85578
|
/**
|
|
85130
85579
|
* A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
|
|
85131
85580
|
* in FIPS 180-2
|
|
@@ -85180,7 +85629,7 @@ Sha224.prototype._hash = function () {
|
|
|
85180
85629
|
|
|
85181
85630
|
module.exports = Sha224
|
|
85182
85631
|
|
|
85183
|
-
},{"../inherits-2.0.4/inherits":
|
|
85632
|
+
},{"../inherits-2.0.4/inherits":539,"../safe-buffer-5.2.0/index":556,"./hash":566,"./sha256":571}],571:[function(require,module,exports){
|
|
85184
85633
|
/**
|
|
85185
85634
|
* A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
|
|
85186
85635
|
* in FIPS 180-2
|
|
@@ -85317,7 +85766,7 @@ Sha256.prototype._hash = function () {
|
|
|
85317
85766
|
|
|
85318
85767
|
module.exports = Sha256
|
|
85319
85768
|
|
|
85320
|
-
},{"../inherits-2.0.4/inherits":
|
|
85769
|
+
},{"../inherits-2.0.4/inherits":539,"../safe-buffer-5.2.0/index":556,"./hash":566}],572:[function(require,module,exports){
|
|
85321
85770
|
var inherits = require('../inherits-2.0.4/inherits')
|
|
85322
85771
|
var SHA512 = require('./sha512')
|
|
85323
85772
|
var Hash = require('./hash')
|
|
@@ -85376,7 +85825,7 @@ Sha384.prototype._hash = function () {
|
|
|
85376
85825
|
|
|
85377
85826
|
module.exports = Sha384
|
|
85378
85827
|
|
|
85379
|
-
},{"../inherits-2.0.4/inherits":
|
|
85828
|
+
},{"../inherits-2.0.4/inherits":539,"../safe-buffer-5.2.0/index":556,"./hash":566,"./sha512":573}],573:[function(require,module,exports){
|
|
85380
85829
|
var inherits = require('../inherits-2.0.4/inherits')
|
|
85381
85830
|
var Hash = require('./hash')
|
|
85382
85831
|
var Buffer = require('../safe-buffer-5.2.0/index').Buffer
|
|
@@ -85638,9 +86087,9 @@ Sha512.prototype._hash = function () {
|
|
|
85638
86087
|
|
|
85639
86088
|
module.exports = Sha512
|
|
85640
86089
|
|
|
85641
|
-
},{"../inherits-2.0.4/inherits":
|
|
85642
|
-
arguments[4][
|
|
85643
|
-
},{"./native":
|
|
86090
|
+
},{"../inherits-2.0.4/inherits":539,"../safe-buffer-5.2.0/index":556,"./hash":566}],574:[function(require,module,exports){
|
|
86091
|
+
arguments[4][381][0].apply(exports,arguments)
|
|
86092
|
+
},{"./native":577,"dup":381}],575:[function(require,module,exports){
|
|
85644
86093
|
(function (Buffer){(function (){
|
|
85645
86094
|
var NATIVE = require('./native')
|
|
85646
86095
|
var ERRORS = require('./errors')
|
|
@@ -85735,11 +86184,11 @@ for (var typeName in types) {
|
|
|
85735
86184
|
module.exports = types
|
|
85736
86185
|
|
|
85737
86186
|
}).call(this)}).call(this,{"isBuffer":require("../../../../../../node_modules/is-buffer/index.js")})
|
|
85738
|
-
},{"../../../../../../node_modules/is-buffer/index.js":150,"./errors":
|
|
85739
|
-
arguments[4][382][0].apply(exports,arguments)
|
|
85740
|
-
},{"./errors":568,"./extra":569,"./native":571,"dup":382}],571:[function(require,module,exports){
|
|
86187
|
+
},{"../../../../../../node_modules/is-buffer/index.js":150,"./errors":574,"./native":577}],576:[function(require,module,exports){
|
|
85741
86188
|
arguments[4][383][0].apply(exports,arguments)
|
|
85742
|
-
},{"dup":383}],
|
|
86189
|
+
},{"./errors":574,"./extra":575,"./native":577,"dup":383}],577:[function(require,module,exports){
|
|
86190
|
+
arguments[4][384][0].apply(exports,arguments)
|
|
86191
|
+
},{"dup":384}],578:[function(require,module,exports){
|
|
85743
86192
|
(function (root) {
|
|
85744
86193
|
"use strict";
|
|
85745
86194
|
|
|
@@ -86193,7 +86642,7 @@ UChar.udata={
|
|
|
86193
86642
|
}
|
|
86194
86643
|
}(this));
|
|
86195
86644
|
|
|
86196
|
-
},{}],
|
|
86645
|
+
},{}],579:[function(require,module,exports){
|
|
86197
86646
|
'use strict'
|
|
86198
86647
|
var Buffer = require('../safe-buffer-5.2.0/index').Buffer
|
|
86199
86648
|
|
|
@@ -86285,7 +86734,7 @@ function encodingLength (number) {
|
|
|
86285
86734
|
|
|
86286
86735
|
module.exports = { encode: encode, decode: decode, encodingLength: encodingLength }
|
|
86287
86736
|
|
|
86288
|
-
},{"../safe-buffer-5.2.0/index":
|
|
86737
|
+
},{"../safe-buffer-5.2.0/index":556}],580:[function(require,module,exports){
|
|
86289
86738
|
(function (Buffer){(function (){
|
|
86290
86739
|
var bs58check = require('../bs58check-2.1.2/index')
|
|
86291
86740
|
|
|
@@ -86352,7 +86801,7 @@ module.exports = {
|
|
|
86352
86801
|
}
|
|
86353
86802
|
|
|
86354
86803
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
86355
|
-
},{"../bs58check-2.1.2/index":
|
|
86804
|
+
},{"../bs58check-2.1.2/index":486,"buffer":67}],581:[function(require,module,exports){
|
|
86356
86805
|
"use strict";
|
|
86357
86806
|
var __extends = (this && this.__extends) || (function () {
|
|
86358
86807
|
var extendStatics = function (d, b) {
|
|
@@ -86412,7 +86861,7 @@ var CoinlibAssertionError = /** @class */ (function (_super) {
|
|
|
86412
86861
|
}(Error));
|
|
86413
86862
|
exports.CoinlibAssertionError = CoinlibAssertionError;
|
|
86414
86863
|
|
|
86415
|
-
},{}],
|
|
86864
|
+
},{}],582:[function(require,module,exports){
|
|
86416
86865
|
"use strict";
|
|
86417
86866
|
var __extends = (this && this.__extends) || (function () {
|
|
86418
86867
|
var extendStatics = function (d, b) {
|
|
@@ -86691,7 +87140,63 @@ var InvalidString = /** @class */ (function (_super) {
|
|
|
86691
87140
|
}(SerializerError));
|
|
86692
87141
|
exports.InvalidString = InvalidString;
|
|
86693
87142
|
|
|
86694
|
-
},{"./coinlib-error":
|
|
87143
|
+
},{"./coinlib-error":581}],583:[function(require,module,exports){
|
|
87144
|
+
"use strict";
|
|
87145
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87146
|
+
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;
|
|
87147
|
+
var Action_1 = require("./actions/Action");
|
|
87148
|
+
Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return Action_1.Action; } });
|
|
87149
|
+
var LinkedAction_1 = require("./actions/LinkedAction");
|
|
87150
|
+
Object.defineProperty(exports, "LinkedAction", { enumerable: true, get: function () { return LinkedAction_1.LinkedAction; } });
|
|
87151
|
+
var RepeatableAction_1 = require("./actions/RepeatableAction");
|
|
87152
|
+
Object.defineProperty(exports, "RepeatableAction", { enumerable: true, get: function () { return RepeatableAction_1.RepeatableAction; } });
|
|
87153
|
+
var SimpleAction_1 = require("./actions/SimpleAction");
|
|
87154
|
+
Object.defineProperty(exports, "SimpleAction", { enumerable: true, get: function () { return SimpleAction_1.SimpleAction; } });
|
|
87155
|
+
var errors_1 = require("./errors");
|
|
87156
|
+
Object.defineProperty(exports, "BalanceError", { enumerable: true, get: function () { return errors_1.BalanceError; } });
|
|
87157
|
+
Object.defineProperty(exports, "NetworkError", { enumerable: true, get: function () { return errors_1.NetworkError; } });
|
|
87158
|
+
Object.defineProperty(exports, "ProtocolErrorType", { enumerable: true, get: function () { return errors_1.ProtocolErrorType; } });
|
|
87159
|
+
Object.defineProperty(exports, "ProtocolNotSupported", { enumerable: true, get: function () { return errors_1.ProtocolNotSupported; } });
|
|
87160
|
+
Object.defineProperty(exports, "SerializerErrorType", { enumerable: true, get: function () { return errors_1.SerializerErrorType; } });
|
|
87161
|
+
Object.defineProperty(exports, "SerializerVersionMismatch", { enumerable: true, get: function () { return errors_1.SerializerVersionMismatch; } });
|
|
87162
|
+
Object.defineProperty(exports, "TransactionError", { enumerable: true, get: function () { return errors_1.TransactionError; } });
|
|
87163
|
+
Object.defineProperty(exports, "TypeNotSupported", { enumerable: true, get: function () { return errors_1.TypeNotSupported; } });
|
|
87164
|
+
var coinlib_error_1 = require("./errors/coinlib-error");
|
|
87165
|
+
Object.defineProperty(exports, "CoinlibError", { enumerable: true, get: function () { return coinlib_error_1.CoinlibError; } });
|
|
87166
|
+
Object.defineProperty(exports, "Domain", { enumerable: true, get: function () { return coinlib_error_1.Domain; } });
|
|
87167
|
+
var CryptoClient_1 = require("./protocols/CryptoClient");
|
|
87168
|
+
Object.defineProperty(exports, "CryptoClient", { enumerable: true, get: function () { return CryptoClient_1.CryptoClient; } });
|
|
87169
|
+
var ICoinSubProtocol_1 = require("./protocols/ICoinSubProtocol");
|
|
87170
|
+
Object.defineProperty(exports, "SubProtocolType", { enumerable: true, get: function () { return ICoinSubProtocol_1.SubProtocolType; } });
|
|
87171
|
+
var assert_1 = require("./utils/assert");
|
|
87172
|
+
Object.defineProperty(exports, "assertNever", { enumerable: true, get: function () { return assert_1.assertNever; } });
|
|
87173
|
+
var buffer_1 = require("./utils/buffer");
|
|
87174
|
+
Object.defineProperty(exports, "bufferFrom", { enumerable: true, get: function () { return buffer_1.bufferFrom; } });
|
|
87175
|
+
var Network_1 = require("./utils/Network");
|
|
87176
|
+
Object.defineProperty(exports, "isNetworkEqual", { enumerable: true, get: function () { return Network_1.isNetworkEqual; } });
|
|
87177
|
+
var ProtocolBlockExplorer_1 = require("./utils/ProtocolBlockExplorer");
|
|
87178
|
+
Object.defineProperty(exports, "ProtocolBlockExplorer", { enumerable: true, get: function () { return ProtocolBlockExplorer_1.ProtocolBlockExplorer; } });
|
|
87179
|
+
var ProtocolNetwork_1 = require("./utils/ProtocolNetwork");
|
|
87180
|
+
Object.defineProperty(exports, "NetworkType", { enumerable: true, get: function () { return ProtocolNetwork_1.NetworkType; } });
|
|
87181
|
+
Object.defineProperty(exports, "ProtocolNetwork", { enumerable: true, get: function () { return ProtocolNetwork_1.ProtocolNetwork; } });
|
|
87182
|
+
var ProtocolSymbols_1 = require("./utils/ProtocolSymbols");
|
|
87183
|
+
Object.defineProperty(exports, "isMainProtocolSymbol", { enumerable: true, get: function () { return ProtocolSymbols_1.isMainProtocolSymbol; } });
|
|
87184
|
+
Object.defineProperty(exports, "isProtocolSymbol", { enumerable: true, get: function () { return ProtocolSymbols_1.isProtocolSymbol; } });
|
|
87185
|
+
Object.defineProperty(exports, "isSubProtocolSymbol", { enumerable: true, get: function () { return ProtocolSymbols_1.isSubProtocolSymbol; } });
|
|
87186
|
+
Object.defineProperty(exports, "MainProtocolSymbols", { enumerable: true, get: function () { return ProtocolSymbols_1.MainProtocolSymbols; } });
|
|
87187
|
+
Object.defineProperty(exports, "SubProtocolSymbols", { enumerable: true, get: function () { return ProtocolSymbols_1.SubProtocolSymbols; } });
|
|
87188
|
+
var AirGapCoinWallet_1 = require("./wallet/AirGapCoinWallet");
|
|
87189
|
+
Object.defineProperty(exports, "AirGapCoinWallet", { enumerable: true, get: function () { return AirGapCoinWallet_1.AirGapCoinWallet; } });
|
|
87190
|
+
Object.defineProperty(exports, "TimeInterval", { enumerable: true, get: function () { return AirGapCoinWallet_1.TimeInterval; } });
|
|
87191
|
+
var AirGapMarketWallet_1 = require("./wallet/AirGapMarketWallet");
|
|
87192
|
+
Object.defineProperty(exports, "AirGapMarketWallet", { enumerable: true, get: function () { return AirGapMarketWallet_1.AirGapMarketWallet; } });
|
|
87193
|
+
var AirGapNFTWallet_1 = require("./wallet/AirGapNFTWallet");
|
|
87194
|
+
Object.defineProperty(exports, "AirGapNFTWallet", { enumerable: true, get: function () { return AirGapNFTWallet_1.AirGapNFTWallet; } });
|
|
87195
|
+
var AirGapWallet_1 = require("./wallet/AirGapWallet");
|
|
87196
|
+
Object.defineProperty(exports, "AirGapWallet", { enumerable: true, get: function () { return AirGapWallet_1.AirGapWallet; } });
|
|
87197
|
+
Object.defineProperty(exports, "AirGapWalletStatus", { enumerable: true, get: function () { return AirGapWallet_1.AirGapWalletStatus; } });
|
|
87198
|
+
|
|
87199
|
+
},{"./actions/Action":388,"./actions/LinkedAction":389,"./actions/RepeatableAction":390,"./actions/SimpleAction":391,"./errors":582,"./errors/coinlib-error":581,"./protocols/CryptoClient":584,"./protocols/ICoinSubProtocol":585,"./utils/Network":588,"./utils/ProtocolBlockExplorer":589,"./utils/ProtocolNetwork":590,"./utils/ProtocolSymbols":591,"./utils/assert":592,"./utils/buffer":593,"./wallet/AirGapCoinWallet":596,"./wallet/AirGapMarketWallet":597,"./wallet/AirGapNFTWallet":598,"./wallet/AirGapWallet":599}],584:[function(require,module,exports){
|
|
86695
87200
|
"use strict";
|
|
86696
87201
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
86697
87202
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -86776,7 +87281,17 @@ var CryptoClient = /** @class */ (function () {
|
|
|
86776
87281
|
}());
|
|
86777
87282
|
exports.CryptoClient = CryptoClient;
|
|
86778
87283
|
|
|
86779
|
-
},{"../errors":
|
|
87284
|
+
},{"../errors":582,"../errors/coinlib-error":581,"../utils/AES":587}],585:[function(require,module,exports){
|
|
87285
|
+
"use strict";
|
|
87286
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87287
|
+
exports.SubProtocolType = void 0;
|
|
87288
|
+
var SubProtocolType;
|
|
87289
|
+
(function (SubProtocolType) {
|
|
87290
|
+
SubProtocolType["ACCOUNT"] = "account";
|
|
87291
|
+
SubProtocolType["TOKEN"] = "token";
|
|
87292
|
+
})(SubProtocolType = exports.SubProtocolType || (exports.SubProtocolType = {}));
|
|
87293
|
+
|
|
87294
|
+
},{}],586:[function(require,module,exports){
|
|
86780
87295
|
(function (Buffer){(function (){
|
|
86781
87296
|
"use strict";
|
|
86782
87297
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -86856,7 +87371,7 @@ var Secp256k1CryptoClient = /** @class */ (function (_super) {
|
|
|
86856
87371
|
exports.Secp256k1CryptoClient = Secp256k1CryptoClient;
|
|
86857
87372
|
|
|
86858
87373
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
86859
|
-
},{"../dependencies/src/eciesjs-0.3.9/src/index":
|
|
87374
|
+
},{"../dependencies/src/eciesjs-0.3.9/src/index":494,"./CryptoClient":584,"buffer":67}],587:[function(require,module,exports){
|
|
86860
87375
|
(function (Buffer){(function (){
|
|
86861
87376
|
"use strict";
|
|
86862
87377
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -87020,7 +87535,28 @@ var AES = /** @class */ (function () {
|
|
|
87020
87535
|
exports.AES = AES;
|
|
87021
87536
|
|
|
87022
87537
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
87023
|
-
},{"../errors":
|
|
87538
|
+
},{"../errors":582,"../errors/coinlib-error":581,"./hex":594,"buffer":67,"crypto":78}],588:[function(require,module,exports){
|
|
87539
|
+
"use strict";
|
|
87540
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87541
|
+
exports.isNetworkEqual = void 0;
|
|
87542
|
+
var isNetworkEqual = function (network1, network2) {
|
|
87543
|
+
return network1.name === network2.name && network1.type === network2.type && network1.rpcUrl === network2.rpcUrl;
|
|
87544
|
+
};
|
|
87545
|
+
exports.isNetworkEqual = isNetworkEqual;
|
|
87546
|
+
|
|
87547
|
+
},{}],589:[function(require,module,exports){
|
|
87548
|
+
"use strict";
|
|
87549
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87550
|
+
exports.ProtocolBlockExplorer = void 0;
|
|
87551
|
+
var ProtocolBlockExplorer = /** @class */ (function () {
|
|
87552
|
+
function ProtocolBlockExplorer(blockExplorer) {
|
|
87553
|
+
this.blockExplorer = blockExplorer;
|
|
87554
|
+
}
|
|
87555
|
+
return ProtocolBlockExplorer;
|
|
87556
|
+
}());
|
|
87557
|
+
exports.ProtocolBlockExplorer = ProtocolBlockExplorer;
|
|
87558
|
+
|
|
87559
|
+
},{}],590:[function(require,module,exports){
|
|
87024
87560
|
"use strict";
|
|
87025
87561
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87026
87562
|
exports.ProtocolNetwork = exports.NetworkType = void 0;
|
|
@@ -87056,7 +87592,7 @@ var ProtocolNetwork = /** @class */ (function () {
|
|
|
87056
87592
|
}());
|
|
87057
87593
|
exports.ProtocolNetwork = ProtocolNetwork;
|
|
87058
87594
|
|
|
87059
|
-
},{"../dependencies/src/create-hash-1.2.0/index":
|
|
87595
|
+
},{"../dependencies/src/create-hash-1.2.0/index":490}],591:[function(require,module,exports){
|
|
87060
87596
|
"use strict";
|
|
87061
87597
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87062
87598
|
exports.isProtocolSymbol = exports.isSubProtocolSymbol = exports.isMainProtocolSymbol = exports.SubProtocolSymbols = exports.MainProtocolSymbols = void 0;
|
|
@@ -87115,7 +87651,39 @@ function isProtocolSymbol(identifier) {
|
|
|
87115
87651
|
}
|
|
87116
87652
|
exports.isProtocolSymbol = isProtocolSymbol;
|
|
87117
87653
|
|
|
87118
|
-
},{}],
|
|
87654
|
+
},{}],592:[function(require,module,exports){
|
|
87655
|
+
"use strict";
|
|
87656
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87657
|
+
exports.assertFields = exports.assertNever = void 0;
|
|
87658
|
+
var errors_1 = require("../errors");
|
|
87659
|
+
var coinlib_error_1 = require("../errors/coinlib-error");
|
|
87660
|
+
var assertNever = function (x) { return undefined; };
|
|
87661
|
+
exports.assertNever = assertNever;
|
|
87662
|
+
function assertFields(name, object) {
|
|
87663
|
+
var fields = [];
|
|
87664
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
87665
|
+
fields[_i - 2] = arguments[_i];
|
|
87666
|
+
}
|
|
87667
|
+
fields.forEach(function (field) {
|
|
87668
|
+
if (object[field] === undefined || object[field] === null) {
|
|
87669
|
+
throw new errors_1.ConditionViolationError(coinlib_error_1.Domain.UTILS, name + ", required: " + fields.join(', ') + ", but " + field + " is missing.");
|
|
87670
|
+
}
|
|
87671
|
+
});
|
|
87672
|
+
}
|
|
87673
|
+
exports.assertFields = assertFields;
|
|
87674
|
+
|
|
87675
|
+
},{"../errors":582,"../errors/coinlib-error":581}],593:[function(require,module,exports){
|
|
87676
|
+
(function (Buffer){(function (){
|
|
87677
|
+
"use strict";
|
|
87678
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87679
|
+
exports.bufferFrom = void 0;
|
|
87680
|
+
var bufferFrom = function (data, encoding) {
|
|
87681
|
+
return Buffer.from(data, encoding);
|
|
87682
|
+
};
|
|
87683
|
+
exports.bufferFrom = bufferFrom;
|
|
87684
|
+
|
|
87685
|
+
}).call(this)}).call(this,require("buffer").Buffer)
|
|
87686
|
+
},{"buffer":67}],594:[function(require,module,exports){
|
|
87119
87687
|
(function (Buffer){(function (){
|
|
87120
87688
|
"use strict";
|
|
87121
87689
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -87230,7 +87798,7 @@ function fillToTargetLength(hexString, bitLength) {
|
|
|
87230
87798
|
}
|
|
87231
87799
|
|
|
87232
87800
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
87233
|
-
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":
|
|
87801
|
+
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":425,"./padStart":595,"buffer":67}],595:[function(require,module,exports){
|
|
87234
87802
|
"use strict";
|
|
87235
87803
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87236
87804
|
exports.padStart = void 0;
|
|
@@ -87251,5 +87819,741 @@ function padStart(targetString, targetLength, padString) {
|
|
|
87251
87819
|
}
|
|
87252
87820
|
exports.padStart = padStart;
|
|
87253
87821
|
|
|
87254
|
-
},{}]
|
|
87822
|
+
},{}],596:[function(require,module,exports){
|
|
87823
|
+
"use strict";
|
|
87824
|
+
var __extends = (this && this.__extends) || (function () {
|
|
87825
|
+
var extendStatics = function (d, b) {
|
|
87826
|
+
extendStatics = Object.setPrototypeOf ||
|
|
87827
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
87828
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
87829
|
+
return extendStatics(d, b);
|
|
87830
|
+
};
|
|
87831
|
+
return function (d, b) {
|
|
87832
|
+
extendStatics(d, b);
|
|
87833
|
+
function __() { this.constructor = d; }
|
|
87834
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
87835
|
+
};
|
|
87836
|
+
})();
|
|
87837
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
87838
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
87839
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
87840
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
87841
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
87842
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
87843
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
87844
|
+
});
|
|
87845
|
+
};
|
|
87846
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
87847
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
87848
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
87849
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
87850
|
+
function step(op) {
|
|
87851
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
87852
|
+
while (_) try {
|
|
87853
|
+
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;
|
|
87854
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
87855
|
+
switch (op[0]) {
|
|
87856
|
+
case 0: case 1: t = op; break;
|
|
87857
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
87858
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
87859
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
87860
|
+
default:
|
|
87861
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
87862
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
87863
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
87864
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
87865
|
+
if (t[2]) _.ops.pop();
|
|
87866
|
+
_.trys.pop(); continue;
|
|
87867
|
+
}
|
|
87868
|
+
op = body.call(thisArg, _);
|
|
87869
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
87870
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
87871
|
+
}
|
|
87872
|
+
};
|
|
87873
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87874
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
87875
|
+
};
|
|
87876
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87877
|
+
exports.AirGapCoinWallet = exports.TimeInterval = void 0;
|
|
87878
|
+
var bignumber_1 = __importDefault(require("../dependencies/src/bignumber.js-9.0.0/bignumber"));
|
|
87879
|
+
var ProtocolNetwork_1 = require("../utils/ProtocolNetwork");
|
|
87880
|
+
var ProtocolSymbols_1 = require("../utils/ProtocolSymbols");
|
|
87881
|
+
var AirGapMarketWallet_1 = require("./AirGapMarketWallet");
|
|
87882
|
+
var TimeInterval;
|
|
87883
|
+
(function (TimeInterval) {
|
|
87884
|
+
TimeInterval["HOURS"] = "24h";
|
|
87885
|
+
TimeInterval["DAYS"] = "7d";
|
|
87886
|
+
TimeInterval["MONTH"] = "30d";
|
|
87887
|
+
})(TimeInterval = exports.TimeInterval || (exports.TimeInterval = {}));
|
|
87888
|
+
var AirGapCoinWallet = /** @class */ (function (_super) {
|
|
87889
|
+
__extends(AirGapCoinWallet, _super);
|
|
87890
|
+
function AirGapCoinWallet() {
|
|
87891
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
87892
|
+
}
|
|
87893
|
+
AirGapCoinWallet.prototype.getCurrentBalance = function () {
|
|
87894
|
+
return this.currentBalance;
|
|
87895
|
+
};
|
|
87896
|
+
AirGapCoinWallet.prototype.setCurrentBalance = function (balance) {
|
|
87897
|
+
this.currentBalance = balance;
|
|
87898
|
+
};
|
|
87899
|
+
AirGapCoinWallet.prototype.getCurrentMarketPrice = function () {
|
|
87900
|
+
return this.currentMarketPrice;
|
|
87901
|
+
};
|
|
87902
|
+
AirGapCoinWallet.prototype.setCurrentMarketPrice = function (marketPrice) {
|
|
87903
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
87904
|
+
var _a;
|
|
87905
|
+
return __generator(this, function (_b) {
|
|
87906
|
+
switch (_b.label) {
|
|
87907
|
+
case 0:
|
|
87908
|
+
_a = this;
|
|
87909
|
+
return [4 /*yield*/, this.protocol.getOptions()];
|
|
87910
|
+
case 1:
|
|
87911
|
+
_a.currentMarketPrice = (_b.sent()).network.type === ProtocolNetwork_1.NetworkType.MAINNET ? marketPrice : new bignumber_1.default(0);
|
|
87912
|
+
return [2 /*return*/];
|
|
87913
|
+
}
|
|
87914
|
+
});
|
|
87915
|
+
});
|
|
87916
|
+
};
|
|
87917
|
+
AirGapCoinWallet.prototype._synchronize = function () {
|
|
87918
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
87919
|
+
var _a, balance, marketPrice;
|
|
87920
|
+
return __generator(this, function (_b) {
|
|
87921
|
+
switch (_b.label) {
|
|
87922
|
+
case 0: return [4 /*yield*/, Promise.all([this.balanceOf(), this.fetchCurrentMarketPrice()])];
|
|
87923
|
+
case 1:
|
|
87924
|
+
_a = _b.sent(), balance = _a[0], marketPrice = _a[1];
|
|
87925
|
+
this.setCurrentBalance(balance);
|
|
87926
|
+
return [4 /*yield*/, this.setCurrentMarketPrice(marketPrice)];
|
|
87927
|
+
case 2:
|
|
87928
|
+
_b.sent();
|
|
87929
|
+
return [2 /*return*/];
|
|
87930
|
+
}
|
|
87931
|
+
});
|
|
87932
|
+
});
|
|
87933
|
+
};
|
|
87934
|
+
AirGapCoinWallet.prototype.reset = function () {
|
|
87935
|
+
this.currentBalance = undefined;
|
|
87936
|
+
this.currentMarketPrice = undefined;
|
|
87937
|
+
};
|
|
87938
|
+
AirGapCoinWallet.prototype.fetchCurrentMarketPrice = function (baseSymbol) {
|
|
87939
|
+
if (baseSymbol === void 0) { baseSymbol = 'USD'; }
|
|
87940
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
87941
|
+
var marketPrice;
|
|
87942
|
+
return __generator(this, function (_a) {
|
|
87943
|
+
switch (_a.label) {
|
|
87944
|
+
case 0: return [4 /*yield*/, this.priceService.getCurrentMarketPrice(this.protocol, baseSymbol)];
|
|
87945
|
+
case 1:
|
|
87946
|
+
marketPrice = _a.sent();
|
|
87947
|
+
return [4 /*yield*/, this.setCurrentMarketPrice(marketPrice)];
|
|
87948
|
+
case 2:
|
|
87949
|
+
_a.sent();
|
|
87950
|
+
return [2 /*return*/, marketPrice];
|
|
87951
|
+
}
|
|
87952
|
+
});
|
|
87953
|
+
});
|
|
87954
|
+
};
|
|
87955
|
+
AirGapCoinWallet.prototype.balanceOf = function () {
|
|
87956
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
87957
|
+
var protocolIdentifier, result, _a, _b, _c, _d, _e;
|
|
87958
|
+
return __generator(this, function (_f) {
|
|
87959
|
+
switch (_f.label) {
|
|
87960
|
+
case 0: return [4 /*yield*/, this.protocol.getIdentifier()];
|
|
87961
|
+
case 1:
|
|
87962
|
+
protocolIdentifier = _f.sent();
|
|
87963
|
+
if (!((protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.BTC ||
|
|
87964
|
+
protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.BTC_SEGWIT ||
|
|
87965
|
+
protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.GRS) &&
|
|
87966
|
+
this.isExtendedPublicKey)) return [3 /*break*/, 3];
|
|
87967
|
+
_a = bignumber_1.default.bind;
|
|
87968
|
+
return [4 /*yield*/, this.protocol.getBalanceOfExtendedPublicKey(this.publicKey, 0)];
|
|
87969
|
+
case 2:
|
|
87970
|
+
// TODO: Remove and test
|
|
87971
|
+
/*
|
|
87972
|
+
We should remove this if BTC also uses blockbook. (And change the order of the if/else below)
|
|
87973
|
+
|
|
87974
|
+
The problem is that we have addresses cached for all protocols. But blockbook (grs) doesn't allow
|
|
87975
|
+
multiple addresses to be checked at once, so we need to xPub key there (or we would do 100s of requests).
|
|
87976
|
+
|
|
87977
|
+
We can also not simply change the order of the following if/else, because then it would use the xPub method for
|
|
87978
|
+
BTC as well, which results in the addresses being derived again, which causes massive lags in the apps.
|
|
87979
|
+
*/
|
|
87980
|
+
result = new (_a.apply(bignumber_1.default, [void 0, _f.sent()]))();
|
|
87981
|
+
return [3 /*break*/, 11];
|
|
87982
|
+
case 3:
|
|
87983
|
+
if (!(protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED) /* TODO: cover ALL sapling protocols */) return [3 /*break*/, 5]; /* TODO: cover ALL sapling protocols */
|
|
87984
|
+
_b = bignumber_1.default.bind;
|
|
87985
|
+
return [4 /*yield*/, this.protocol.getBalanceOfPublicKey(this.publicKey)];
|
|
87986
|
+
case 4:
|
|
87987
|
+
result = new (_b.apply(bignumber_1.default, [void 0, _f.sent()]))();
|
|
87988
|
+
return [3 /*break*/, 11];
|
|
87989
|
+
case 5:
|
|
87990
|
+
if (!(this.addresses.length > 0)) return [3 /*break*/, 7];
|
|
87991
|
+
_c = bignumber_1.default.bind;
|
|
87992
|
+
return [4 /*yield*/, this.protocol.getBalanceOfAddresses(this.addressesToCheck())];
|
|
87993
|
+
case 6:
|
|
87994
|
+
result = new (_c.apply(bignumber_1.default, [void 0, _f.sent()]))();
|
|
87995
|
+
return [3 /*break*/, 11];
|
|
87996
|
+
case 7:
|
|
87997
|
+
if (!this.isExtendedPublicKey) return [3 /*break*/, 9];
|
|
87998
|
+
_d = bignumber_1.default.bind;
|
|
87999
|
+
return [4 /*yield*/, this.protocol.getBalanceOfExtendedPublicKey(this.publicKey, 0)];
|
|
88000
|
+
case 8:
|
|
88001
|
+
result = new (_d.apply(bignumber_1.default, [void 0, _f.sent()]))();
|
|
88002
|
+
return [3 /*break*/, 11];
|
|
88003
|
+
case 9:
|
|
88004
|
+
_e = bignumber_1.default.bind;
|
|
88005
|
+
return [4 /*yield*/, this.protocol.getBalanceOfPublicKey(this.publicKey)];
|
|
88006
|
+
case 10:
|
|
88007
|
+
result = new (_e.apply(bignumber_1.default, [void 0, _f.sent()]))();
|
|
88008
|
+
_f.label = 11;
|
|
88009
|
+
case 11:
|
|
88010
|
+
this.setCurrentBalance(result);
|
|
88011
|
+
return [2 /*return*/, result];
|
|
88012
|
+
}
|
|
88013
|
+
});
|
|
88014
|
+
});
|
|
88015
|
+
};
|
|
88016
|
+
return AirGapCoinWallet;
|
|
88017
|
+
}(AirGapMarketWallet_1.AirGapMarketWallet));
|
|
88018
|
+
exports.AirGapCoinWallet = AirGapCoinWallet;
|
|
88019
|
+
|
|
88020
|
+
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":425,"../utils/ProtocolNetwork":590,"../utils/ProtocolSymbols":591,"./AirGapMarketWallet":597}],597:[function(require,module,exports){
|
|
88021
|
+
"use strict";
|
|
88022
|
+
var __extends = (this && this.__extends) || (function () {
|
|
88023
|
+
var extendStatics = function (d, b) {
|
|
88024
|
+
extendStatics = Object.setPrototypeOf ||
|
|
88025
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
88026
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
88027
|
+
return extendStatics(d, b);
|
|
88028
|
+
};
|
|
88029
|
+
return function (d, b) {
|
|
88030
|
+
extendStatics(d, b);
|
|
88031
|
+
function __() { this.constructor = d; }
|
|
88032
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
88033
|
+
};
|
|
88034
|
+
})();
|
|
88035
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
88036
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
88037
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
88038
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
88039
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
88040
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
88041
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
88042
|
+
});
|
|
88043
|
+
};
|
|
88044
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
88045
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
88046
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
88047
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
88048
|
+
function step(op) {
|
|
88049
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
88050
|
+
while (_) try {
|
|
88051
|
+
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;
|
|
88052
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
88053
|
+
switch (op[0]) {
|
|
88054
|
+
case 0: case 1: t = op; break;
|
|
88055
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
88056
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
88057
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
88058
|
+
default:
|
|
88059
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
88060
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
88061
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
88062
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
88063
|
+
if (t[2]) _.ops.pop();
|
|
88064
|
+
_.trys.pop(); continue;
|
|
88065
|
+
}
|
|
88066
|
+
op = body.call(thisArg, _);
|
|
88067
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
88068
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
88069
|
+
}
|
|
88070
|
+
};
|
|
88071
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
88072
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88073
|
+
};
|
|
88074
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
88075
|
+
exports.AirGapMarketWallet = void 0;
|
|
88076
|
+
var bignumber_1 = __importDefault(require("../dependencies/src/bignumber.js-9.0.0/bignumber"));
|
|
88077
|
+
var ProtocolSymbols_1 = require("../utils/ProtocolSymbols");
|
|
88078
|
+
var AirGapWallet_1 = require("./AirGapWallet");
|
|
88079
|
+
var AirGapMarketWallet = /** @class */ (function (_super) {
|
|
88080
|
+
__extends(AirGapMarketWallet, _super);
|
|
88081
|
+
function AirGapMarketWallet(protocol, publicKey, isExtendedPublicKey, derivationPath, masterFingerprint, status, priceService, addressIndex) {
|
|
88082
|
+
var _this = _super.call(this, protocol, publicKey, isExtendedPublicKey, derivationPath, masterFingerprint, status, addressIndex) || this;
|
|
88083
|
+
_this.protocol = protocol;
|
|
88084
|
+
_this.publicKey = publicKey;
|
|
88085
|
+
_this.isExtendedPublicKey = isExtendedPublicKey;
|
|
88086
|
+
_this.derivationPath = derivationPath;
|
|
88087
|
+
_this.masterFingerprint = masterFingerprint;
|
|
88088
|
+
_this.status = status;
|
|
88089
|
+
_this.priceService = priceService;
|
|
88090
|
+
_this.addressIndex = addressIndex;
|
|
88091
|
+
return _this;
|
|
88092
|
+
}
|
|
88093
|
+
AirGapMarketWallet.prototype.addressesToCheck = function () {
|
|
88094
|
+
var addressesToReceive = this.addressIndex !== undefined ? [this.addresses[this.addressIndex]] : this.addresses;
|
|
88095
|
+
return addressesToReceive;
|
|
88096
|
+
};
|
|
88097
|
+
AirGapMarketWallet.prototype.setProtocol = function (protocol) {
|
|
88098
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88099
|
+
return __generator(this, function (_a) {
|
|
88100
|
+
switch (_a.label) {
|
|
88101
|
+
case 0: return [4 /*yield*/, _super.prototype.setProtocol.call(this, protocol)];
|
|
88102
|
+
case 1:
|
|
88103
|
+
_a.sent();
|
|
88104
|
+
this.reset();
|
|
88105
|
+
return [4 /*yield*/, this.synchronize()];
|
|
88106
|
+
case 2:
|
|
88107
|
+
_a.sent();
|
|
88108
|
+
return [2 /*return*/];
|
|
88109
|
+
}
|
|
88110
|
+
});
|
|
88111
|
+
});
|
|
88112
|
+
};
|
|
88113
|
+
AirGapMarketWallet.prototype.synchronize = function () {
|
|
88114
|
+
var args = [];
|
|
88115
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
88116
|
+
args[_i] = arguments[_i];
|
|
88117
|
+
}
|
|
88118
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88119
|
+
var _this = this;
|
|
88120
|
+
return __generator(this, function (_a) {
|
|
88121
|
+
if (this.synchronizePromise === undefined) {
|
|
88122
|
+
this.synchronizePromise = this._synchronize.apply(this, args).finally(function () {
|
|
88123
|
+
_this.synchronizePromise = undefined;
|
|
88124
|
+
});
|
|
88125
|
+
}
|
|
88126
|
+
return [2 /*return*/, this.synchronizePromise];
|
|
88127
|
+
});
|
|
88128
|
+
});
|
|
88129
|
+
};
|
|
88130
|
+
AirGapMarketWallet.prototype.fetchTransactions = function (limit, cursor) {
|
|
88131
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88132
|
+
var protocolIdentifier, transactionResult;
|
|
88133
|
+
return __generator(this, function (_a) {
|
|
88134
|
+
switch (_a.label) {
|
|
88135
|
+
case 0: return [4 /*yield*/, this.protocol.getIdentifier()
|
|
88136
|
+
// let transactions: IAirGapTransaction[] = []
|
|
88137
|
+
];
|
|
88138
|
+
case 1:
|
|
88139
|
+
protocolIdentifier = _a.sent();
|
|
88140
|
+
if (!((protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.BTC ||
|
|
88141
|
+
protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.BTC_SEGWIT ||
|
|
88142
|
+
protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.GRS) &&
|
|
88143
|
+
this.isExtendedPublicKey)) return [3 /*break*/, 3];
|
|
88144
|
+
return [4 /*yield*/, this.protocol.getTransactionsFromExtendedPublicKey(this.publicKey, limit, cursor)];
|
|
88145
|
+
case 2:
|
|
88146
|
+
// TODO: Remove and test
|
|
88147
|
+
/*
|
|
88148
|
+
We should remove this if BTC also uses blockbook. (And change the order of the if/else below)
|
|
88149
|
+
|
|
88150
|
+
The problem is that we have addresses cached for all protocols. But blockbook (grs) doesn't allow
|
|
88151
|
+
multiple addresses to be checked at once, so we need to xPub key there (or we would do 100s of requests).
|
|
88152
|
+
|
|
88153
|
+
We can also not simply change the order of the following if/else, because then it would use the xPub method for
|
|
88154
|
+
BTC as well, which results in the addresses being derived again, which causes massive lags in the apps.
|
|
88155
|
+
*/
|
|
88156
|
+
transactionResult = _a.sent();
|
|
88157
|
+
return [3 /*break*/, 11];
|
|
88158
|
+
case 3:
|
|
88159
|
+
if (!(protocolIdentifier === ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED) /* TODO: cover ALL sapling protocols */) return [3 /*break*/, 5]; /* TODO: cover ALL sapling protocols */
|
|
88160
|
+
return [4 /*yield*/, this.protocol.getTransactionsFromPublicKey(this.publicKey, limit, cursor)];
|
|
88161
|
+
case 4:
|
|
88162
|
+
transactionResult = _a.sent();
|
|
88163
|
+
return [3 /*break*/, 11];
|
|
88164
|
+
case 5:
|
|
88165
|
+
if (!(this.addresses.length > 0)) return [3 /*break*/, 7];
|
|
88166
|
+
return [4 /*yield*/, this.protocol.getTransactionsFromAddresses(this.addressesToCheck(), limit, cursor)];
|
|
88167
|
+
case 6:
|
|
88168
|
+
transactionResult = _a.sent();
|
|
88169
|
+
return [3 /*break*/, 11];
|
|
88170
|
+
case 7:
|
|
88171
|
+
if (!this.isExtendedPublicKey) return [3 /*break*/, 9];
|
|
88172
|
+
return [4 /*yield*/, this.protocol.getTransactionsFromExtendedPublicKey(this.publicKey, limit, cursor)];
|
|
88173
|
+
case 8:
|
|
88174
|
+
transactionResult = _a.sent();
|
|
88175
|
+
return [3 /*break*/, 11];
|
|
88176
|
+
case 9: return [4 /*yield*/, this.protocol.getTransactionsFromPublicKey(this.publicKey, limit, cursor)];
|
|
88177
|
+
case 10:
|
|
88178
|
+
transactionResult = _a.sent();
|
|
88179
|
+
_a.label = 11;
|
|
88180
|
+
case 11: return [2 /*return*/, transactionResult];
|
|
88181
|
+
}
|
|
88182
|
+
});
|
|
88183
|
+
});
|
|
88184
|
+
};
|
|
88185
|
+
AirGapMarketWallet.prototype.prepareTransaction = function (recipients, values, fee, data) {
|
|
88186
|
+
if (this.isExtendedPublicKey) {
|
|
88187
|
+
return this.protocol.prepareTransactionFromExtendedPublicKey(this.publicKey, 0, recipients, values, fee, data);
|
|
88188
|
+
}
|
|
88189
|
+
else {
|
|
88190
|
+
if (this.addressIndex) {
|
|
88191
|
+
data = Object.assign(data, { addressIndex: this.addressIndex });
|
|
88192
|
+
}
|
|
88193
|
+
return this.protocol.prepareTransactionFromPublicKey(this.publicKey, recipients, values, fee, data);
|
|
88194
|
+
}
|
|
88195
|
+
};
|
|
88196
|
+
AirGapMarketWallet.prototype.getMaxTransferValue = function (recipients, fee, data) {
|
|
88197
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88198
|
+
var _a, _b;
|
|
88199
|
+
return __generator(this, function (_c) {
|
|
88200
|
+
switch (_c.label) {
|
|
88201
|
+
case 0:
|
|
88202
|
+
if (!this.isExtendedPublicKey) return [3 /*break*/, 2];
|
|
88203
|
+
_a = bignumber_1.default.bind;
|
|
88204
|
+
return [4 /*yield*/, this.protocol.estimateMaxTransactionValueFromExtendedPublicKey(this.publicKey, recipients, fee, data)];
|
|
88205
|
+
case 1: return [2 /*return*/, new (_a.apply(bignumber_1.default, [void 0, _c.sent()]))()];
|
|
88206
|
+
case 2:
|
|
88207
|
+
if (this.addressIndex) {
|
|
88208
|
+
data = Object.assign(data, { addressIndex: this.addressIndex });
|
|
88209
|
+
}
|
|
88210
|
+
_b = bignumber_1.default.bind;
|
|
88211
|
+
return [4 /*yield*/, this.protocol.estimateMaxTransactionValueFromPublicKey(this.publicKey, recipients, fee, data)];
|
|
88212
|
+
case 3: return [2 /*return*/, new (_b.apply(bignumber_1.default, [void 0, _c.sent()]))()];
|
|
88213
|
+
}
|
|
88214
|
+
});
|
|
88215
|
+
});
|
|
88216
|
+
};
|
|
88217
|
+
AirGapMarketWallet.prototype.estimateFees = function (recipients, values, data) {
|
|
88218
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88219
|
+
return __generator(this, function (_a) {
|
|
88220
|
+
if (this.isExtendedPublicKey) {
|
|
88221
|
+
return [2 /*return*/, this.protocol.estimateFeeDefaultsFromExtendedPublicKey(this.publicKey, recipients, values, data)];
|
|
88222
|
+
}
|
|
88223
|
+
else {
|
|
88224
|
+
if (this.addressIndex) {
|
|
88225
|
+
data = Object.assign(data, { addressIndex: this.addressIndex });
|
|
88226
|
+
}
|
|
88227
|
+
return [2 /*return*/, this.protocol.estimateFeeDefaultsFromPublicKey(this.publicKey, recipients, values, data)];
|
|
88228
|
+
}
|
|
88229
|
+
return [2 /*return*/];
|
|
88230
|
+
});
|
|
88231
|
+
});
|
|
88232
|
+
};
|
|
88233
|
+
return AirGapMarketWallet;
|
|
88234
|
+
}(AirGapWallet_1.AirGapWallet));
|
|
88235
|
+
exports.AirGapMarketWallet = AirGapMarketWallet;
|
|
88236
|
+
|
|
88237
|
+
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":425,"../utils/ProtocolSymbols":591,"./AirGapWallet":599}],598:[function(require,module,exports){
|
|
88238
|
+
"use strict";
|
|
88239
|
+
var __extends = (this && this.__extends) || (function () {
|
|
88240
|
+
var extendStatics = function (d, b) {
|
|
88241
|
+
extendStatics = Object.setPrototypeOf ||
|
|
88242
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
88243
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
88244
|
+
return extendStatics(d, b);
|
|
88245
|
+
};
|
|
88246
|
+
return function (d, b) {
|
|
88247
|
+
extendStatics(d, b);
|
|
88248
|
+
function __() { this.constructor = d; }
|
|
88249
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
88250
|
+
};
|
|
88251
|
+
})();
|
|
88252
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
88253
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
88254
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
88255
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
88256
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
88257
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
88258
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
88259
|
+
});
|
|
88260
|
+
};
|
|
88261
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
88262
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
88263
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
88264
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
88265
|
+
function step(op) {
|
|
88266
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
88267
|
+
while (_) try {
|
|
88268
|
+
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;
|
|
88269
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
88270
|
+
switch (op[0]) {
|
|
88271
|
+
case 0: case 1: t = op; break;
|
|
88272
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
88273
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
88274
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
88275
|
+
default:
|
|
88276
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
88277
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
88278
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
88279
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
88280
|
+
if (t[2]) _.ops.pop();
|
|
88281
|
+
_.trys.pop(); continue;
|
|
88282
|
+
}
|
|
88283
|
+
op = body.call(thisArg, _);
|
|
88284
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
88285
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
88286
|
+
}
|
|
88287
|
+
};
|
|
88288
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
88289
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88290
|
+
};
|
|
88291
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
88292
|
+
exports.AirGapNFTWallet = void 0;
|
|
88293
|
+
var bignumber_1 = __importDefault(require("../dependencies/src/bignumber.js-9.0.0/bignumber"));
|
|
88294
|
+
var ProtocolNetwork_1 = require("../utils/ProtocolNetwork");
|
|
88295
|
+
var AirGapMarketWallet_1 = require("./AirGapMarketWallet");
|
|
88296
|
+
var AirGapNFTWallet = /** @class */ (function (_super) {
|
|
88297
|
+
__extends(AirGapNFTWallet, _super);
|
|
88298
|
+
function AirGapNFTWallet() {
|
|
88299
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
88300
|
+
_this.currentBalance = {};
|
|
88301
|
+
_this.currentMarketPrice = {};
|
|
88302
|
+
return _this;
|
|
88303
|
+
}
|
|
88304
|
+
AirGapNFTWallet.prototype.getCurrentBalance = function (assetID) {
|
|
88305
|
+
return this.currentBalance[assetID];
|
|
88306
|
+
};
|
|
88307
|
+
AirGapNFTWallet.prototype.setCurrentBalance = function (balance, assetID) {
|
|
88308
|
+
this.currentBalance[assetID] = balance;
|
|
88309
|
+
};
|
|
88310
|
+
AirGapNFTWallet.prototype.getCurrentMarketPrice = function (assetID) {
|
|
88311
|
+
return this.currentMarketPrice[assetID];
|
|
88312
|
+
};
|
|
88313
|
+
AirGapNFTWallet.prototype.setCurrentMarketPrice = function (marketPrice, assetID) {
|
|
88314
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88315
|
+
var _a, _b;
|
|
88316
|
+
return __generator(this, function (_c) {
|
|
88317
|
+
switch (_c.label) {
|
|
88318
|
+
case 0:
|
|
88319
|
+
_a = this.getCurrentMarketPrice;
|
|
88320
|
+
_b = assetID;
|
|
88321
|
+
return [4 /*yield*/, this.protocol.getOptions()];
|
|
88322
|
+
case 1:
|
|
88323
|
+
_a[_b] =
|
|
88324
|
+
(_c.sent()).network.type === ProtocolNetwork_1.NetworkType.MAINNET ? marketPrice : new bignumber_1.default(0);
|
|
88325
|
+
return [2 /*return*/];
|
|
88326
|
+
}
|
|
88327
|
+
});
|
|
88328
|
+
});
|
|
88329
|
+
};
|
|
88330
|
+
AirGapNFTWallet.prototype.synchronize = function (assetsID) {
|
|
88331
|
+
if (assetsID === void 0) { assetsID = []; }
|
|
88332
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88333
|
+
return __generator(this, function (_a) {
|
|
88334
|
+
return [2 /*return*/, _super.prototype.synchronize.call(this, assetsID)];
|
|
88335
|
+
});
|
|
88336
|
+
});
|
|
88337
|
+
};
|
|
88338
|
+
AirGapNFTWallet.prototype._synchronize = function (assetIDs) {
|
|
88339
|
+
if (assetIDs === void 0) { assetIDs = []; }
|
|
88340
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88341
|
+
var _this = this;
|
|
88342
|
+
return __generator(this, function (_a) {
|
|
88343
|
+
switch (_a.label) {
|
|
88344
|
+
case 0: return [4 /*yield*/, Promise.all(assetIDs.map(function (assetID) { return __awaiter(_this, void 0, void 0, function () {
|
|
88345
|
+
var _a, balance, marketPrice;
|
|
88346
|
+
return __generator(this, function (_b) {
|
|
88347
|
+
switch (_b.label) {
|
|
88348
|
+
case 0: return [4 /*yield*/, Promise.all([this.balanceOf(assetID), this.fetchCurrentMarketPrice(assetID)])];
|
|
88349
|
+
case 1:
|
|
88350
|
+
_a = _b.sent(), balance = _a[0], marketPrice = _a[1];
|
|
88351
|
+
this.setCurrentBalance(balance, assetID);
|
|
88352
|
+
return [4 /*yield*/, this.setCurrentMarketPrice(marketPrice, assetID)];
|
|
88353
|
+
case 2:
|
|
88354
|
+
_b.sent();
|
|
88355
|
+
return [2 /*return*/];
|
|
88356
|
+
}
|
|
88357
|
+
});
|
|
88358
|
+
}); }))];
|
|
88359
|
+
case 1:
|
|
88360
|
+
_a.sent();
|
|
88361
|
+
return [2 /*return*/];
|
|
88362
|
+
}
|
|
88363
|
+
});
|
|
88364
|
+
});
|
|
88365
|
+
};
|
|
88366
|
+
AirGapNFTWallet.prototype.reset = function () {
|
|
88367
|
+
this.currentBalance = {};
|
|
88368
|
+
this.currentMarketPrice = {};
|
|
88369
|
+
};
|
|
88370
|
+
AirGapNFTWallet.prototype.fetchCurrentMarketPrice = function (assetID, _baseSymbol) {
|
|
88371
|
+
if (_baseSymbol === void 0) { _baseSymbol = 'USD'; }
|
|
88372
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88373
|
+
var result;
|
|
88374
|
+
return __generator(this, function (_a) {
|
|
88375
|
+
switch (_a.label) {
|
|
88376
|
+
case 0:
|
|
88377
|
+
result = new bignumber_1.default(0);
|
|
88378
|
+
return [4 /*yield*/, this.setCurrentMarketPrice(result, assetID)];
|
|
88379
|
+
case 1:
|
|
88380
|
+
_a.sent();
|
|
88381
|
+
return [2 /*return*/, result];
|
|
88382
|
+
}
|
|
88383
|
+
});
|
|
88384
|
+
});
|
|
88385
|
+
};
|
|
88386
|
+
AirGapNFTWallet.prototype.balanceOf = function (assetID) {
|
|
88387
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88388
|
+
var result, _a, _b;
|
|
88389
|
+
return __generator(this, function (_c) {
|
|
88390
|
+
switch (_c.label) {
|
|
88391
|
+
case 0:
|
|
88392
|
+
if (!this.isExtendedPublicKey) return [3 /*break*/, 2];
|
|
88393
|
+
_a = bignumber_1.default.bind;
|
|
88394
|
+
return [4 /*yield*/, this.protocol.getBalanceOfExtendedPublicKey(this.publicKey, 0, { assetID: assetID })];
|
|
88395
|
+
case 1:
|
|
88396
|
+
result = new (_a.apply(bignumber_1.default, [void 0, _c.sent()]))();
|
|
88397
|
+
return [3 /*break*/, 4];
|
|
88398
|
+
case 2:
|
|
88399
|
+
_b = bignumber_1.default.bind;
|
|
88400
|
+
return [4 /*yield*/, this.protocol.getBalanceOfPublicKey(this.publicKey, { addressIndex: this.addressIndex, assetID: assetID })];
|
|
88401
|
+
case 3:
|
|
88402
|
+
result = new (_b.apply(bignumber_1.default, [void 0, _c.sent()]))();
|
|
88403
|
+
_c.label = 4;
|
|
88404
|
+
case 4:
|
|
88405
|
+
this.setCurrentBalance(result, assetID);
|
|
88406
|
+
return [2 /*return*/, result];
|
|
88407
|
+
}
|
|
88408
|
+
});
|
|
88409
|
+
});
|
|
88410
|
+
};
|
|
88411
|
+
return AirGapNFTWallet;
|
|
88412
|
+
}(AirGapMarketWallet_1.AirGapMarketWallet));
|
|
88413
|
+
exports.AirGapNFTWallet = AirGapNFTWallet;
|
|
88414
|
+
|
|
88415
|
+
},{"../dependencies/src/bignumber.js-9.0.0/bignumber":425,"../utils/ProtocolNetwork":590,"./AirGapMarketWallet":597}],599:[function(require,module,exports){
|
|
88416
|
+
"use strict";
|
|
88417
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
88418
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
88419
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
88420
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
88421
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
88422
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
88423
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
88424
|
+
});
|
|
88425
|
+
};
|
|
88426
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
88427
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
88428
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
88429
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
88430
|
+
function step(op) {
|
|
88431
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
88432
|
+
while (_) try {
|
|
88433
|
+
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;
|
|
88434
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
88435
|
+
switch (op[0]) {
|
|
88436
|
+
case 0: case 1: t = op; break;
|
|
88437
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
88438
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
88439
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
88440
|
+
default:
|
|
88441
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
88442
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
88443
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
88444
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
88445
|
+
if (t[2]) _.ops.pop();
|
|
88446
|
+
_.trys.pop(); continue;
|
|
88447
|
+
}
|
|
88448
|
+
op = body.call(thisArg, _);
|
|
88449
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
88450
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
88451
|
+
}
|
|
88452
|
+
};
|
|
88453
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
88454
|
+
exports.AirGapWallet = exports.AirGapWalletStatus = void 0;
|
|
88455
|
+
var errors_1 = require("../errors");
|
|
88456
|
+
var coinlib_error_1 = require("../errors/coinlib-error");
|
|
88457
|
+
var AirGapWalletStatus;
|
|
88458
|
+
(function (AirGapWalletStatus) {
|
|
88459
|
+
AirGapWalletStatus["ACTIVE"] = "active";
|
|
88460
|
+
AirGapWalletStatus["HIDDEN"] = "hidden";
|
|
88461
|
+
AirGapWalletStatus["DELETED"] = "deleted";
|
|
88462
|
+
AirGapWalletStatus["TRANSIENT"] = "transient";
|
|
88463
|
+
})(AirGapWalletStatus = exports.AirGapWalletStatus || (exports.AirGapWalletStatus = {}));
|
|
88464
|
+
var AirGapWallet = /** @class */ (function () {
|
|
88465
|
+
function AirGapWallet(protocol, publicKey, isExtendedPublicKey, derivationPath, masterFingerprint, status, addressIndex) {
|
|
88466
|
+
this.protocol = protocol;
|
|
88467
|
+
this.publicKey = publicKey;
|
|
88468
|
+
this.isExtendedPublicKey = isExtendedPublicKey;
|
|
88469
|
+
this.derivationPath = derivationPath;
|
|
88470
|
+
this.masterFingerprint = masterFingerprint;
|
|
88471
|
+
this.status = status;
|
|
88472
|
+
this.addressIndex = addressIndex;
|
|
88473
|
+
this.addresses = []; // used for cache
|
|
88474
|
+
}
|
|
88475
|
+
Object.defineProperty(AirGapWallet.prototype, "receivingPublicAddress", {
|
|
88476
|
+
get: function () {
|
|
88477
|
+
return this.addresses[this.addressIndex !== undefined ? this.addressIndex : 0];
|
|
88478
|
+
},
|
|
88479
|
+
enumerable: false,
|
|
88480
|
+
configurable: true
|
|
88481
|
+
});
|
|
88482
|
+
AirGapWallet.prototype.setProtocol = function (protocol) {
|
|
88483
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88484
|
+
var _a;
|
|
88485
|
+
return __generator(this, function (_b) {
|
|
88486
|
+
switch (_b.label) {
|
|
88487
|
+
case 0: return [4 /*yield*/, this.protocol.getIdentifier()];
|
|
88488
|
+
case 1:
|
|
88489
|
+
_a = (_b.sent());
|
|
88490
|
+
return [4 /*yield*/, protocol.getIdentifier()];
|
|
88491
|
+
case 2:
|
|
88492
|
+
if (_a !== (_b.sent())) {
|
|
88493
|
+
throw new errors_1.ConditionViolationError(coinlib_error_1.Domain.WALLET, 'Can only set same protocol with a different network');
|
|
88494
|
+
}
|
|
88495
|
+
this.protocol = protocol;
|
|
88496
|
+
return [2 /*return*/];
|
|
88497
|
+
}
|
|
88498
|
+
});
|
|
88499
|
+
});
|
|
88500
|
+
};
|
|
88501
|
+
AirGapWallet.prototype.deriveAddresses = function (amount) {
|
|
88502
|
+
if (amount === void 0) { amount = 50; }
|
|
88503
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88504
|
+
var addresses, parts, offset;
|
|
88505
|
+
return __generator(this, function (_a) {
|
|
88506
|
+
switch (_a.label) {
|
|
88507
|
+
case 0:
|
|
88508
|
+
if (!this.isExtendedPublicKey) return [3 /*break*/, 2];
|
|
88509
|
+
parts = this.derivationPath.split('/');
|
|
88510
|
+
offset = 0;
|
|
88511
|
+
if (!parts[parts.length - 1].endsWith("'")) {
|
|
88512
|
+
offset = Number.parseInt(parts[parts.length - 1], 10);
|
|
88513
|
+
}
|
|
88514
|
+
return [4 /*yield*/, Promise.all([
|
|
88515
|
+
this.protocol.getAddressesFromExtendedPublicKey(this.publicKey, 0, amount, offset),
|
|
88516
|
+
this.protocol.getAddressesFromExtendedPublicKey(this.publicKey, 1, amount, offset)
|
|
88517
|
+
])];
|
|
88518
|
+
case 1:
|
|
88519
|
+
addresses = (_a.sent()).reduce(function (flatten, next) { return flatten.concat(next); }, []);
|
|
88520
|
+
return [3 /*break*/, 4];
|
|
88521
|
+
case 2: return [4 /*yield*/, this.protocol.getAddressesFromPublicKey(this.publicKey)];
|
|
88522
|
+
case 3:
|
|
88523
|
+
addresses = _a.sent();
|
|
88524
|
+
_a.label = 4;
|
|
88525
|
+
case 4: return [2 /*return*/, addresses.map(function (address) { return address.address; })];
|
|
88526
|
+
}
|
|
88527
|
+
});
|
|
88528
|
+
});
|
|
88529
|
+
};
|
|
88530
|
+
AirGapWallet.prototype.toJSON = function () {
|
|
88531
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88532
|
+
var _a;
|
|
88533
|
+
return __generator(this, function (_b) {
|
|
88534
|
+
switch (_b.label) {
|
|
88535
|
+
case 0:
|
|
88536
|
+
_a = {};
|
|
88537
|
+
return [4 /*yield*/, this.protocol.getIdentifier()];
|
|
88538
|
+
case 1:
|
|
88539
|
+
_a.protocolIdentifier = _b.sent();
|
|
88540
|
+
return [4 /*yield*/, this.protocol.getOptions()];
|
|
88541
|
+
case 2: return [2 /*return*/, (_a.networkIdentifier = (_b.sent()).network.identifier,
|
|
88542
|
+
_a.publicKey = this.publicKey,
|
|
88543
|
+
_a.isExtendedPublicKey = this.isExtendedPublicKey,
|
|
88544
|
+
_a.derivationPath = this.derivationPath,
|
|
88545
|
+
_a.addresses = this.addresses,
|
|
88546
|
+
_a.masterFingerprint = this.masterFingerprint,
|
|
88547
|
+
_a.status = this.status,
|
|
88548
|
+
_a.addressIndex = this.addressIndex,
|
|
88549
|
+
_a)];
|
|
88550
|
+
}
|
|
88551
|
+
});
|
|
88552
|
+
});
|
|
88553
|
+
};
|
|
88554
|
+
return AirGapWallet;
|
|
88555
|
+
}());
|
|
88556
|
+
exports.AirGapWallet = AirGapWallet;
|
|
88557
|
+
|
|
88558
|
+
},{"../errors":582,"../errors/coinlib-error":581}]},{},[214])(214)
|
|
87255
88559
|
});
|