@airgap/wallet 0.13.8-beta.3 → 0.13.8-beta.5
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.
|
@@ -31863,7 +31863,7 @@ exports.newPlainUIText = newPlainUIText;
|
|
|
31863
31863
|
},{}],220:[function(require,module,exports){
|
|
31864
31864
|
"use strict";
|
|
31865
31865
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31866
|
-
exports.normalizeToUndefined = exports.protocolNetworkIdentifier = exports.isTransactionStatusChecker = exports.hasConfigurableTransactionInjector = exports.canSignMessage = exports.canEncryptAsymmetric = exports.canEncryptAES = exports.hasConfigurableContract = exports.hasMultiAddressPublicKeys = exports.canFetchDataForMultipleAddresses = exports.isMultiTokenSubProtocol = exports.isSingleTokenSubProtocol = exports.isSubProtocol = exports.isBip32Protocol = exports.isExtendedPublicKey = exports.isPublicKey = exports.isExtendedSecretKey = exports.isSecretKey = exports.isAnyKey = exports.implementsInterface = exports.isAmount = exports.ModuleNetworkRegistry = exports.newSignedTransaction = exports.newUnsignedTransaction = exports.newSignature = exports.newExtendedPublicKey = exports.newPublicKey = exports.newExtendedSecretKey = exports.newSecretKey = exports.newAmount = exports.newPlainUIText = exports.newErrorUIAlert = exports.newWarningUIAlert = exports.newInfoUIAlert = exports.newSuccessUIAlert = void 0;
|
|
31866
|
+
exports.normalizeToUndefined = exports.protocolNetworkIdentifier = exports.isTransactionStatusChecker = exports.hasConfigurableTransactionInjector = exports.canSignMessage = exports.canEncryptAsymmetric = exports.canEncryptAES = exports.hasConfigurableContract = exports.hasMultiAddressPublicKeys = exports.canFetchDataForMultipleAddresses = exports.isMultiTokenSubProtocol = exports.isSingleTokenSubProtocol = exports.isSubProtocol = exports.isBip32Protocol = exports.isOnlineProtocol = exports.isOfflineProtocol = exports.createSupportedProtocols = exports.isExtendedPublicKey = exports.isPublicKey = exports.isExtendedSecretKey = exports.isSecretKey = exports.isAnyKey = exports.implementsInterface = exports.isAmount = exports.ModuleNetworkRegistry = exports.newSignedTransaction = exports.newUnsignedTransaction = exports.newSignature = exports.newExtendedPublicKey = exports.newPublicKey = exports.newExtendedSecretKey = exports.newSecretKey = exports.newAmount = exports.newPlainUIText = exports.newErrorUIAlert = exports.newWarningUIAlert = exports.newInfoUIAlert = exports.newSuccessUIAlert = void 0;
|
|
31867
31867
|
var amount_1 = require("./factories/amount");
|
|
31868
31868
|
Object.defineProperty(exports, "newAmount", { enumerable: true, get: function () { return amount_1.newAmount; } });
|
|
31869
31869
|
var key_1 = require("./factories/key");
|
|
@@ -31895,6 +31895,8 @@ Object.defineProperty(exports, "isExtendedPublicKey", { enumerable: true, get: f
|
|
|
31895
31895
|
Object.defineProperty(exports, "isExtendedSecretKey", { enumerable: true, get: function () { return key_2.isExtendedSecretKey; } });
|
|
31896
31896
|
Object.defineProperty(exports, "isPublicKey", { enumerable: true, get: function () { return key_2.isPublicKey; } });
|
|
31897
31897
|
Object.defineProperty(exports, "isSecretKey", { enumerable: true, get: function () { return key_2.isSecretKey; } });
|
|
31898
|
+
var module_1 = require("./utils/module");
|
|
31899
|
+
Object.defineProperty(exports, "createSupportedProtocols", { enumerable: true, get: function () { return module_1.createSupportedProtocols; } });
|
|
31898
31900
|
var normalize_1 = require("./utils/normalize");
|
|
31899
31901
|
Object.defineProperty(exports, "normalizeToUndefined", { enumerable: true, get: function () { return normalize_1.normalizeToUndefined; } });
|
|
31900
31902
|
var protocol_1 = require("./utils/protocol");
|
|
@@ -31907,12 +31909,14 @@ Object.defineProperty(exports, "hasConfigurableTransactionInjector", { enumerabl
|
|
|
31907
31909
|
Object.defineProperty(exports, "hasMultiAddressPublicKeys", { enumerable: true, get: function () { return protocol_1.hasMultiAddressPublicKeys; } });
|
|
31908
31910
|
Object.defineProperty(exports, "isBip32Protocol", { enumerable: true, get: function () { return protocol_1.isBip32Protocol; } });
|
|
31909
31911
|
Object.defineProperty(exports, "isMultiTokenSubProtocol", { enumerable: true, get: function () { return protocol_1.isMultiTokenSubProtocol; } });
|
|
31912
|
+
Object.defineProperty(exports, "isOfflineProtocol", { enumerable: true, get: function () { return protocol_1.isOfflineProtocol; } });
|
|
31913
|
+
Object.defineProperty(exports, "isOnlineProtocol", { enumerable: true, get: function () { return protocol_1.isOnlineProtocol; } });
|
|
31910
31914
|
Object.defineProperty(exports, "isSingleTokenSubProtocol", { enumerable: true, get: function () { return protocol_1.isSingleTokenSubProtocol; } });
|
|
31911
31915
|
Object.defineProperty(exports, "isSubProtocol", { enumerable: true, get: function () { return protocol_1.isSubProtocol; } });
|
|
31912
31916
|
Object.defineProperty(exports, "isTransactionStatusChecker", { enumerable: true, get: function () { return protocol_1.isTransactionStatusChecker; } });
|
|
31913
31917
|
Object.defineProperty(exports, "protocolNetworkIdentifier", { enumerable: true, get: function () { return protocol_1.protocolNetworkIdentifier; } });
|
|
31914
31918
|
|
|
31915
|
-
},{"./factories/amount":214,"./factories/key":215,"./factories/signature":216,"./factories/transaction":217,"./factories/ui/alert":218,"./factories/ui/text":219,"./module/module-network-registry":221,"./utils/amount":223,"./utils/interface":224,"./utils/key":225,"./utils/
|
|
31919
|
+
},{"./factories/amount":214,"./factories/key":215,"./factories/signature":216,"./factories/transaction":217,"./factories/ui/alert":218,"./factories/ui/text":219,"./module/module-network-registry":221,"./utils/amount":223,"./utils/interface":224,"./utils/key":225,"./utils/module":226,"./utils/normalize":227,"./utils/protocol":228}],221:[function(require,module,exports){
|
|
31916
31920
|
"use strict";
|
|
31917
31921
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31918
31922
|
exports.ModuleNetworkRegistry = void 0;
|
|
@@ -31935,7 +31939,7 @@ var ModuleNetworkRegistry = /** @class */ (function () {
|
|
|
31935
31939
|
}());
|
|
31936
31940
|
exports.ModuleNetworkRegistry = ModuleNetworkRegistry;
|
|
31937
31941
|
|
|
31938
|
-
},{"../utils/protocol":
|
|
31942
|
+
},{"../utils/protocol":228}],222:[function(require,module,exports){
|
|
31939
31943
|
"use strict";
|
|
31940
31944
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
31941
31945
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -32000,7 +32004,7 @@ function implementsInterface(object, schema) {
|
|
|
32000
32004
|
if (typeof object !== 'object' || !object) {
|
|
32001
32005
|
return false;
|
|
32002
32006
|
}
|
|
32003
|
-
return Object.keys(schema).every(function (key) { return schema[key] === 'optional' ||
|
|
32007
|
+
return Object.keys(schema).every(function (key) { return schema[key] === 'optional' || key in object; });
|
|
32004
32008
|
}
|
|
32005
32009
|
exports.implementsInterface = implementsInterface;
|
|
32006
32010
|
|
|
@@ -32034,13 +32038,43 @@ exports.isExtendedPublicKey = isExtendedPublicKey;
|
|
|
32034
32038
|
},{"./interface":224}],226:[function(require,module,exports){
|
|
32035
32039
|
"use strict";
|
|
32036
32040
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32041
|
+
exports.createSupportedProtocols = void 0;
|
|
32042
|
+
function createSupportedProtocols(online, offline) {
|
|
32043
|
+
var onlineIdentifiers = new Set(Object.keys(online));
|
|
32044
|
+
var offlineIdentifiers = offline ? new Set(offline) : onlineIdentifiers;
|
|
32045
|
+
var identifiers = new Set(Array.from(onlineIdentifiers).concat(Array.from(onlineIdentifiers)));
|
|
32046
|
+
return Array.from(identifiers).reduce(function (obj, next) {
|
|
32047
|
+
var _a;
|
|
32048
|
+
var offlineConfiguration = offlineIdentifiers.has(next) ? { type: 'offline' } : undefined;
|
|
32049
|
+
var onlineConfiguration = online[next]
|
|
32050
|
+
? createOnlineProtocolConfiguration(online[next])
|
|
32051
|
+
: undefined;
|
|
32052
|
+
var configuration = offlineConfiguration !== undefined && onlineConfiguration !== undefined
|
|
32053
|
+
? { type: 'full', offline: offlineConfiguration, online: onlineConfiguration }
|
|
32054
|
+
: (offlineConfiguration !== null && offlineConfiguration !== void 0 ? offlineConfiguration : onlineConfiguration);
|
|
32055
|
+
return Object.assign(obj, (_a = {}, _a[next] = configuration, _a));
|
|
32056
|
+
// tslint:disable-next-line: no-object-literal-type-assertion
|
|
32057
|
+
}, {});
|
|
32058
|
+
}
|
|
32059
|
+
exports.createSupportedProtocols = createSupportedProtocols;
|
|
32060
|
+
function createOnlineProtocolConfiguration(networks) {
|
|
32061
|
+
var _a;
|
|
32062
|
+
return {
|
|
32063
|
+
type: 'online',
|
|
32064
|
+
networks: (_a = networks.supportedNetworks) !== null && _a !== void 0 ? _a : networks
|
|
32065
|
+
};
|
|
32066
|
+
}
|
|
32067
|
+
|
|
32068
|
+
},{}],227:[function(require,module,exports){
|
|
32069
|
+
"use strict";
|
|
32070
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32037
32071
|
exports.normalizeToUndefined = void 0;
|
|
32038
32072
|
function normalizeToUndefined(value) {
|
|
32039
32073
|
return value !== null ? value : undefined;
|
|
32040
32074
|
}
|
|
32041
32075
|
exports.normalizeToUndefined = normalizeToUndefined;
|
|
32042
32076
|
|
|
32043
|
-
},{}],
|
|
32077
|
+
},{}],228:[function(require,module,exports){
|
|
32044
32078
|
"use strict";
|
|
32045
32079
|
var __assign = (this && this.__assign) || function () {
|
|
32046
32080
|
__assign = Object.assign || function(t) {
|
|
@@ -32054,7 +32088,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
32054
32088
|
return __assign.apply(this, arguments);
|
|
32055
32089
|
};
|
|
32056
32090
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32057
|
-
exports.protocolNetworkIdentifier = exports.isTransactionStatusChecker = exports.hasConfigurableTransactionInjector = exports.canSignMessage = exports.canEncryptAsymmetric = exports.canEncryptAES = exports.hasConfigurableContract = exports.hasMultiAddressPublicKeys = exports.canFetchDataForMultipleAddresses = exports.canFetchDataForAddress = exports.isMultiTokenSubProtocol = exports.isSingleTokenSubProtocol = exports.isSubProtocol = exports.isBip32Protocol = void 0;
|
|
32091
|
+
exports.protocolNetworkIdentifier = exports.isTransactionStatusChecker = exports.hasConfigurableTransactionInjector = exports.canSignMessage = exports.canEncryptAsymmetric = exports.canEncryptAES = exports.hasConfigurableContract = exports.hasMultiAddressPublicKeys = exports.canFetchDataForMultipleAddresses = exports.canFetchDataForAddress = exports.isMultiTokenSubProtocol = exports.isSingleTokenSubProtocol = exports.isSubProtocol = exports.isBip32Protocol = exports.isOnlineProtocol = exports.isOfflineProtocol = void 0;
|
|
32092
|
+
// @ts-ignore
|
|
32058
32093
|
var createHash = require("@airgap/coinlib-core/dependencies/src/create-hash-1.2.0/index");
|
|
32059
32094
|
var interface_1 = require("./interface");
|
|
32060
32095
|
// Schemas
|
|
@@ -32066,10 +32101,11 @@ var baseProtocolSchema = {
|
|
|
32066
32101
|
var offlineProtocolSchema = __assign(__assign({}, baseProtocolSchema), { getKeyPairFromSecret: 'required', signTransactionWithSecretKey: 'required' });
|
|
32067
32102
|
var onlineProtocolSchema = __assign(__assign({}, baseProtocolSchema), { broadcastTransaction: 'required', getBalanceOfPublicKey: 'required', getNetwork: 'required', getTransactionFeeWithPublicKey: 'required', getTransactionMaxAmountWithPublicKey: 'required', getTransactionsForPublicKey: 'required', prepareTransactionWithPublicKey: 'required' });
|
|
32068
32103
|
var bip32BaseProtocolSchema = __assign(__assign({}, baseProtocolSchema), { deriveFromExtendedPublicKey: 'required' });
|
|
32069
|
-
var bip32OfflineProtocolSchema = __assign(__assign(__assign({}, bip32BaseProtocolSchema), offlineProtocolSchema), { getExtendedKeyPairFromSecret: 'required' });
|
|
32104
|
+
var bip32OfflineProtocolSchema = __assign(__assign(__assign({}, bip32BaseProtocolSchema), offlineProtocolSchema), { getExtendedKeyPairFromSecret: 'required', deriveFromExtendedSecretKey: 'required' });
|
|
32070
32105
|
var bip32OnlineProtocolSchema = __assign(__assign({}, bip32BaseProtocolSchema), onlineProtocolSchema);
|
|
32071
32106
|
var subProtocolSchema = {
|
|
32072
|
-
getType: 'required'
|
|
32107
|
+
getType: 'required',
|
|
32108
|
+
mainProtocol: 'required'
|
|
32073
32109
|
};
|
|
32074
32110
|
var singleTokenSubProtocolSchema = __assign(__assign({}, subProtocolSchema), { getContractAddress: 'required' });
|
|
32075
32111
|
var multiTokenSubProtocolBaseSchema = singleTokenSubProtocolSchema;
|
|
@@ -32113,9 +32149,11 @@ var transactionStatusCheckerSchema = {
|
|
|
32113
32149
|
function isOfflineProtocol(object) {
|
|
32114
32150
|
return (0, interface_1.implementsInterface)(object, offlineProtocolSchema);
|
|
32115
32151
|
}
|
|
32152
|
+
exports.isOfflineProtocol = isOfflineProtocol;
|
|
32116
32153
|
function isOnlineProtocol(object) {
|
|
32117
32154
|
return (0, interface_1.implementsInterface)(object, onlineProtocolSchema);
|
|
32118
32155
|
}
|
|
32156
|
+
exports.isOnlineProtocol = isOnlineProtocol;
|
|
32119
32157
|
function isOfflineBip32Protocol(protocol) {
|
|
32120
32158
|
return (0, interface_1.implementsInterface)(protocol, bip32OfflineProtocolSchema);
|
|
32121
32159
|
}
|
|
@@ -32205,7 +32243,7 @@ function protocolNetworkIdentifier(network) {
|
|
|
32205
32243
|
}
|
|
32206
32244
|
exports.protocolNetworkIdentifier = protocolNetworkIdentifier;
|
|
32207
32245
|
|
|
32208
|
-
},{"./interface":224,"@airgap/coinlib-core/dependencies/src/create-hash-1.2.0/index":194}],
|
|
32246
|
+
},{"./interface":224,"@airgap/coinlib-core/dependencies/src/create-hash-1.2.0/index":194}],229:[function(require,module,exports){
|
|
32209
32247
|
"use strict";
|
|
32210
32248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32211
32249
|
exports.TimeInterval = exports.AirGapNFTWallet = exports.AirGapWalletStatus = exports.AirGapCoinWallet = exports.AirGapOnlineWallet = exports.AirGapOfflineWallet = exports.AirGapWallet = void 0;
|
|
@@ -32222,7 +32260,7 @@ Object.defineProperty(exports, "AirGapNFTWallet", { enumerable: true, get: funct
|
|
|
32222
32260
|
var AirGapOnlineWallet_1 = require("./wallet/online/AirGapOnlineWallet");
|
|
32223
32261
|
Object.defineProperty(exports, "AirGapOnlineWallet", { enumerable: true, get: function () { return AirGapOnlineWallet_1.AirGapOnlineWallet; } });
|
|
32224
32262
|
|
|
32225
|
-
},{"./wallet/AirGapWallet":
|
|
32263
|
+
},{"./wallet/AirGapWallet":232,"./wallet/offline/AirGapOfflineWallet":233,"./wallet/online/AirGapCoinWallet":234,"./wallet/online/AirGapNFTWallet":235,"./wallet/online/AirGapOnlineWallet":236}],230:[function(require,module,exports){
|
|
32226
32264
|
"use strict";
|
|
32227
32265
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32228
32266
|
exports.normalizeAddress = void 0;
|
|
@@ -32236,7 +32274,7 @@ function normalizeAddress(address) {
|
|
|
32236
32274
|
}
|
|
32237
32275
|
exports.normalizeAddress = normalizeAddress;
|
|
32238
32276
|
|
|
32239
|
-
},{}],
|
|
32277
|
+
},{}],231:[function(require,module,exports){
|
|
32240
32278
|
"use strict";
|
|
32241
32279
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
32242
32280
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -32301,7 +32339,7 @@ function deriveAddresses(protocol, publicKey, visibilityIndex, amount, offset) {
|
|
|
32301
32339
|
}
|
|
32302
32340
|
exports.deriveAddresses = deriveAddresses;
|
|
32303
32341
|
|
|
32304
|
-
},{"./address":
|
|
32342
|
+
},{"./address":230}],232:[function(require,module,exports){
|
|
32305
32343
|
"use strict";
|
|
32306
32344
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
32307
32345
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -32454,7 +32492,7 @@ var AirGapWallet = /** @class */ (function () {
|
|
|
32454
32492
|
}());
|
|
32455
32493
|
exports.AirGapWallet = AirGapWallet;
|
|
32456
32494
|
|
|
32457
|
-
},{"../utils/address":
|
|
32495
|
+
},{"../utils/address":230,"../utils/protocol":231,"@airgap/coinlib-core/errors":196,"@airgap/coinlib-core/errors/coinlib-error":195,"@airgap/module-kit":220}],233:[function(require,module,exports){
|
|
32458
32496
|
"use strict";
|
|
32459
32497
|
var __extends = (this && this.__extends) || (function () {
|
|
32460
32498
|
var extendStatics = function (d, b) {
|
|
@@ -32486,7 +32524,7 @@ var AirGapOfflineWallet = /** @class */ (function (_super) {
|
|
|
32486
32524
|
}(AirGapWallet_1.AirGapWallet));
|
|
32487
32525
|
exports.AirGapOfflineWallet = AirGapOfflineWallet;
|
|
32488
32526
|
|
|
32489
|
-
},{"../AirGapWallet":
|
|
32527
|
+
},{"../AirGapWallet":232}],234:[function(require,module,exports){
|
|
32490
32528
|
"use strict";
|
|
32491
32529
|
var __extends = (this && this.__extends) || (function () {
|
|
32492
32530
|
var extendStatics = function (d, b) {
|
|
@@ -32690,7 +32728,7 @@ var AirGapCoinWallet = /** @class */ (function (_super) {
|
|
|
32690
32728
|
}(AirGapOnlineWallet_1.AirGapOnlineWallet));
|
|
32691
32729
|
exports.AirGapCoinWallet = AirGapCoinWallet;
|
|
32692
32730
|
|
|
32693
|
-
},{"./AirGapOnlineWallet":
|
|
32731
|
+
},{"./AirGapOnlineWallet":236,"@airgap/coinlib-core":197,"@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber":193,"@airgap/module-kit":220,"@airgap/module-kit/utils/protocol":228}],235:[function(require,module,exports){
|
|
32694
32732
|
"use strict";
|
|
32695
32733
|
var __extends = (this && this.__extends) || (function () {
|
|
32696
32734
|
var extendStatics = function (d, b) {
|
|
@@ -32776,7 +32814,7 @@ var AirGapNFTWallet = /** @class */ (function (_super) {
|
|
|
32776
32814
|
case 0: return [4 /*yield*/, this.protocol.getNetwork()];
|
|
32777
32815
|
case 1:
|
|
32778
32816
|
networkType = (_a.sent()).type;
|
|
32779
|
-
this.
|
|
32817
|
+
this.currentMarketPrice[assetID] = networkType === 'mainnet' ? marketPrice : new bignumber_1.default(0);
|
|
32780
32818
|
return [2 /*return*/];
|
|
32781
32819
|
}
|
|
32782
32820
|
});
|
|
@@ -32873,7 +32911,7 @@ var AirGapNFTWallet = /** @class */ (function (_super) {
|
|
|
32873
32911
|
}(AirGapOnlineWallet_1.AirGapOnlineWallet));
|
|
32874
32912
|
exports.AirGapNFTWallet = AirGapNFTWallet;
|
|
32875
32913
|
|
|
32876
|
-
},{"./AirGapOnlineWallet":
|
|
32914
|
+
},{"./AirGapOnlineWallet":236,"@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber":193,"@airgap/module-kit":220}],236:[function(require,module,exports){
|
|
32877
32915
|
"use strict";
|
|
32878
32916
|
var __extends = (this && this.__extends) || (function () {
|
|
32879
32917
|
var extendStatics = function (d, b) {
|
|
@@ -33132,5 +33170,5 @@ var AirGapOnlineWallet = /** @class */ (function (_super) {
|
|
|
33132
33170
|
}(AirGapWallet_1.AirGapWallet));
|
|
33133
33171
|
exports.AirGapOnlineWallet = AirGapOnlineWallet;
|
|
33134
33172
|
|
|
33135
|
-
},{"../AirGapWallet":
|
|
33173
|
+
},{"../AirGapWallet":232,"@airgap/coinlib-core":197,"@airgap/module-kit":220,"@airgap/module-kit/utils/protocol":228}]},{},[229])(229)
|
|
33136
33174
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airgap/wallet",
|
|
3
|
-
"version": "0.13.8-beta.
|
|
3
|
+
"version": "0.13.8-beta.5",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"airgap"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"lint:prettier": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
22
22
|
"lint-ci": "tslint -t json -o ../../lint-reports/core.json --project . || true",
|
|
23
23
|
"lint-ci:prettier": "prettier \"src/**/*.ts\" \"test/**/*.ts\" --list-different",
|
|
24
|
-
"test": "nyc mocha --bail --require ts-node/register --require source-map-support/register --full-trace --delay --timeout 40000 ./test/**/**.spec.ts",
|
|
24
|
+
"test": "TS_NODE_PROJECT='./test/tsconfig.json' nyc mocha --bail --require ts-node/register --require source-map-support/register --full-trace --delay --timeout 40000 ./test/**/**.spec.ts",
|
|
25
25
|
"test-ci": "nyc --reporter=lcov npm test",
|
|
26
26
|
"test-legacy": "",
|
|
27
27
|
"browserify": "browserify ./dist/index.js -s airgapCoinLibWallet > ./dist/airgap-coinlib-wallet.min.js"
|
|
@@ -83,7 +83,7 @@ var AirGapNFTWallet = /** @class */ (function (_super) {
|
|
|
83
83
|
case 0: return [4 /*yield*/, this.protocol.getNetwork()];
|
|
84
84
|
case 1:
|
|
85
85
|
networkType = (_a.sent()).type;
|
|
86
|
-
this.
|
|
86
|
+
this.currentMarketPrice[assetID] = networkType === 'mainnet' ? marketPrice : new bignumber_1.default(0);
|
|
87
87
|
return [2 /*return*/];
|
|
88
88
|
}
|
|
89
89
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirGapNFTWallet.js","sourceRoot":"","sources":["../../../src/wallet/online/AirGapNFTWallet.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iHAA0F;AAC1F,iDAA8G;AAE9G,2DAAyD;AAEzD;IAEU,mCAAqB;IAF/B;QAAA,qEA0EC;QAvES,oBAAc,GAA0C,EAAE,CAAA;QAU1D,wBAAkB,GAA0C,EAAE,CAAA;;IA6DxE,CAAC;IArEQ,2CAAiB,GAAxB,UAAyB,OAAe;QACtC,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA;IACrC,CAAC;IAEM,2CAAiB,GAAxB,UAAyB,OAA8B,EAAE,OAAe;QACtE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,OAAO,CAAA;IACxC,CAAC;IAIM,+CAAqB,GAA5B,UAA6B,OAAe;QAC1C,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAA;IACzC,CAAC;IAEY,+CAAqB,GAAlC,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