@airgap/wallet 0.13.7-beta.27 → 0.13.8-beta.10
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.canFetchDataForAddress = 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,11 +31895,14 @@ 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");
|
|
31901
31903
|
Object.defineProperty(exports, "canEncryptAES", { enumerable: true, get: function () { return protocol_1.canEncryptAES; } });
|
|
31902
31904
|
Object.defineProperty(exports, "canEncryptAsymmetric", { enumerable: true, get: function () { return protocol_1.canEncryptAsymmetric; } });
|
|
31905
|
+
Object.defineProperty(exports, "canFetchDataForAddress", { enumerable: true, get: function () { return protocol_1.canFetchDataForAddress; } });
|
|
31903
31906
|
Object.defineProperty(exports, "canFetchDataForMultipleAddresses", { enumerable: true, get: function () { return protocol_1.canFetchDataForMultipleAddresses; } });
|
|
31904
31907
|
Object.defineProperty(exports, "canSignMessage", { enumerable: true, get: function () { return protocol_1.canSignMessage; } });
|
|
31905
31908
|
Object.defineProperty(exports, "hasConfigurableContract", { enumerable: true, get: function () { return protocol_1.hasConfigurableContract; } });
|
|
@@ -31907,12 +31910,14 @@ Object.defineProperty(exports, "hasConfigurableTransactionInjector", { enumerabl
|
|
|
31907
31910
|
Object.defineProperty(exports, "hasMultiAddressPublicKeys", { enumerable: true, get: function () { return protocol_1.hasMultiAddressPublicKeys; } });
|
|
31908
31911
|
Object.defineProperty(exports, "isBip32Protocol", { enumerable: true, get: function () { return protocol_1.isBip32Protocol; } });
|
|
31909
31912
|
Object.defineProperty(exports, "isMultiTokenSubProtocol", { enumerable: true, get: function () { return protocol_1.isMultiTokenSubProtocol; } });
|
|
31913
|
+
Object.defineProperty(exports, "isOfflineProtocol", { enumerable: true, get: function () { return protocol_1.isOfflineProtocol; } });
|
|
31914
|
+
Object.defineProperty(exports, "isOnlineProtocol", { enumerable: true, get: function () { return protocol_1.isOnlineProtocol; } });
|
|
31910
31915
|
Object.defineProperty(exports, "isSingleTokenSubProtocol", { enumerable: true, get: function () { return protocol_1.isSingleTokenSubProtocol; } });
|
|
31911
31916
|
Object.defineProperty(exports, "isSubProtocol", { enumerable: true, get: function () { return protocol_1.isSubProtocol; } });
|
|
31912
31917
|
Object.defineProperty(exports, "isTransactionStatusChecker", { enumerable: true, get: function () { return protocol_1.isTransactionStatusChecker; } });
|
|
31913
31918
|
Object.defineProperty(exports, "protocolNetworkIdentifier", { enumerable: true, get: function () { return protocol_1.protocolNetworkIdentifier; } });
|
|
31914
31919
|
|
|
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/
|
|
31920
|
+
},{"./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
31921
|
"use strict";
|
|
31917
31922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31918
31923
|
exports.ModuleNetworkRegistry = void 0;
|
|
@@ -31935,7 +31940,7 @@ var ModuleNetworkRegistry = /** @class */ (function () {
|
|
|
31935
31940
|
}());
|
|
31936
31941
|
exports.ModuleNetworkRegistry = ModuleNetworkRegistry;
|
|
31937
31942
|
|
|
31938
|
-
},{"../utils/protocol":
|
|
31943
|
+
},{"../utils/protocol":228}],222:[function(require,module,exports){
|
|
31939
31944
|
"use strict";
|
|
31940
31945
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
31941
31946
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -32000,7 +32005,7 @@ function implementsInterface(object, schema) {
|
|
|
32000
32005
|
if (typeof object !== 'object' || !object) {
|
|
32001
32006
|
return false;
|
|
32002
32007
|
}
|
|
32003
|
-
return Object.keys(schema).every(function (key) { return schema[key] === 'optional' ||
|
|
32008
|
+
return Object.keys(schema).every(function (key) { return schema[key] === 'optional' || key in object; });
|
|
32004
32009
|
}
|
|
32005
32010
|
exports.implementsInterface = implementsInterface;
|
|
32006
32011
|
|
|
@@ -32034,13 +32039,43 @@ exports.isExtendedPublicKey = isExtendedPublicKey;
|
|
|
32034
32039
|
},{"./interface":224}],226:[function(require,module,exports){
|
|
32035
32040
|
"use strict";
|
|
32036
32041
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32042
|
+
exports.createSupportedProtocols = void 0;
|
|
32043
|
+
function createSupportedProtocols(online, offline) {
|
|
32044
|
+
var onlineIdentifiers = new Set(Object.keys(online));
|
|
32045
|
+
var offlineIdentifiers = offline ? new Set(offline) : onlineIdentifiers;
|
|
32046
|
+
var identifiers = new Set(Array.from(onlineIdentifiers).concat(Array.from(onlineIdentifiers)));
|
|
32047
|
+
return Array.from(identifiers).reduce(function (obj, next) {
|
|
32048
|
+
var _a;
|
|
32049
|
+
var offlineConfiguration = offlineIdentifiers.has(next) ? { type: 'offline' } : undefined;
|
|
32050
|
+
var onlineConfiguration = online[next]
|
|
32051
|
+
? createOnlineProtocolConfiguration(online[next])
|
|
32052
|
+
: undefined;
|
|
32053
|
+
var configuration = offlineConfiguration !== undefined && onlineConfiguration !== undefined
|
|
32054
|
+
? { type: 'full', offline: offlineConfiguration, online: onlineConfiguration }
|
|
32055
|
+
: (offlineConfiguration !== null && offlineConfiguration !== void 0 ? offlineConfiguration : onlineConfiguration);
|
|
32056
|
+
return Object.assign(obj, (_a = {}, _a[next] = configuration, _a));
|
|
32057
|
+
// tslint:disable-next-line: no-object-literal-type-assertion
|
|
32058
|
+
}, {});
|
|
32059
|
+
}
|
|
32060
|
+
exports.createSupportedProtocols = createSupportedProtocols;
|
|
32061
|
+
function createOnlineProtocolConfiguration(networks) {
|
|
32062
|
+
var _a;
|
|
32063
|
+
return {
|
|
32064
|
+
type: 'online',
|
|
32065
|
+
networks: (_a = networks.supportedNetworks) !== null && _a !== void 0 ? _a : networks
|
|
32066
|
+
};
|
|
32067
|
+
}
|
|
32068
|
+
|
|
32069
|
+
},{}],227:[function(require,module,exports){
|
|
32070
|
+
"use strict";
|
|
32071
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32037
32072
|
exports.normalizeToUndefined = void 0;
|
|
32038
32073
|
function normalizeToUndefined(value) {
|
|
32039
32074
|
return value !== null ? value : undefined;
|
|
32040
32075
|
}
|
|
32041
32076
|
exports.normalizeToUndefined = normalizeToUndefined;
|
|
32042
32077
|
|
|
32043
|
-
},{}],
|
|
32078
|
+
},{}],228:[function(require,module,exports){
|
|
32044
32079
|
"use strict";
|
|
32045
32080
|
var __assign = (this && this.__assign) || function () {
|
|
32046
32081
|
__assign = Object.assign || function(t) {
|
|
@@ -32054,7 +32089,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
32054
32089
|
return __assign.apply(this, arguments);
|
|
32055
32090
|
};
|
|
32056
32091
|
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;
|
|
32092
|
+
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;
|
|
32093
|
+
// @ts-ignore
|
|
32058
32094
|
var createHash = require("@airgap/coinlib-core/dependencies/src/create-hash-1.2.0/index");
|
|
32059
32095
|
var interface_1 = require("./interface");
|
|
32060
32096
|
// Schemas
|
|
@@ -32066,10 +32102,11 @@ var baseProtocolSchema = {
|
|
|
32066
32102
|
var offlineProtocolSchema = __assign(__assign({}, baseProtocolSchema), { getKeyPairFromSecret: 'required', signTransactionWithSecretKey: 'required' });
|
|
32067
32103
|
var onlineProtocolSchema = __assign(__assign({}, baseProtocolSchema), { broadcastTransaction: 'required', getBalanceOfPublicKey: 'required', getNetwork: 'required', getTransactionFeeWithPublicKey: 'required', getTransactionMaxAmountWithPublicKey: 'required', getTransactionsForPublicKey: 'required', prepareTransactionWithPublicKey: 'required' });
|
|
32068
32104
|
var bip32BaseProtocolSchema = __assign(__assign({}, baseProtocolSchema), { deriveFromExtendedPublicKey: 'required' });
|
|
32069
|
-
var bip32OfflineProtocolSchema = __assign(__assign(__assign({}, bip32BaseProtocolSchema), offlineProtocolSchema), { getExtendedKeyPairFromSecret: 'required' });
|
|
32105
|
+
var bip32OfflineProtocolSchema = __assign(__assign(__assign({}, bip32BaseProtocolSchema), offlineProtocolSchema), { getExtendedKeyPairFromSecret: 'required', deriveFromExtendedSecretKey: 'required' });
|
|
32070
32106
|
var bip32OnlineProtocolSchema = __assign(__assign({}, bip32BaseProtocolSchema), onlineProtocolSchema);
|
|
32071
32107
|
var subProtocolSchema = {
|
|
32072
|
-
getType: 'required'
|
|
32108
|
+
getType: 'required',
|
|
32109
|
+
mainProtocol: 'required'
|
|
32073
32110
|
};
|
|
32074
32111
|
var singleTokenSubProtocolSchema = __assign(__assign({}, subProtocolSchema), { getContractAddress: 'required' });
|
|
32075
32112
|
var multiTokenSubProtocolBaseSchema = singleTokenSubProtocolSchema;
|
|
@@ -32113,9 +32150,11 @@ var transactionStatusCheckerSchema = {
|
|
|
32113
32150
|
function isOfflineProtocol(object) {
|
|
32114
32151
|
return (0, interface_1.implementsInterface)(object, offlineProtocolSchema);
|
|
32115
32152
|
}
|
|
32153
|
+
exports.isOfflineProtocol = isOfflineProtocol;
|
|
32116
32154
|
function isOnlineProtocol(object) {
|
|
32117
32155
|
return (0, interface_1.implementsInterface)(object, onlineProtocolSchema);
|
|
32118
32156
|
}
|
|
32157
|
+
exports.isOnlineProtocol = isOnlineProtocol;
|
|
32119
32158
|
function isOfflineBip32Protocol(protocol) {
|
|
32120
32159
|
return (0, interface_1.implementsInterface)(protocol, bip32OfflineProtocolSchema);
|
|
32121
32160
|
}
|
|
@@ -32205,7 +32244,7 @@ function protocolNetworkIdentifier(network) {
|
|
|
32205
32244
|
}
|
|
32206
32245
|
exports.protocolNetworkIdentifier = protocolNetworkIdentifier;
|
|
32207
32246
|
|
|
32208
|
-
},{"./interface":224,"@airgap/coinlib-core/dependencies/src/create-hash-1.2.0/index":194}],
|
|
32247
|
+
},{"./interface":224,"@airgap/coinlib-core/dependencies/src/create-hash-1.2.0/index":194}],229:[function(require,module,exports){
|
|
32209
32248
|
"use strict";
|
|
32210
32249
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32211
32250
|
exports.TimeInterval = exports.AirGapNFTWallet = exports.AirGapWalletStatus = exports.AirGapCoinWallet = exports.AirGapOnlineWallet = exports.AirGapOfflineWallet = exports.AirGapWallet = void 0;
|
|
@@ -32222,7 +32261,7 @@ Object.defineProperty(exports, "AirGapNFTWallet", { enumerable: true, get: funct
|
|
|
32222
32261
|
var AirGapOnlineWallet_1 = require("./wallet/online/AirGapOnlineWallet");
|
|
32223
32262
|
Object.defineProperty(exports, "AirGapOnlineWallet", { enumerable: true, get: function () { return AirGapOnlineWallet_1.AirGapOnlineWallet; } });
|
|
32224
32263
|
|
|
32225
|
-
},{"./wallet/AirGapWallet":
|
|
32264
|
+
},{"./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
32265
|
"use strict";
|
|
32227
32266
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32228
32267
|
exports.normalizeAddress = void 0;
|
|
@@ -32236,7 +32275,7 @@ function normalizeAddress(address) {
|
|
|
32236
32275
|
}
|
|
32237
32276
|
exports.normalizeAddress = normalizeAddress;
|
|
32238
32277
|
|
|
32239
|
-
},{}],
|
|
32278
|
+
},{}],231:[function(require,module,exports){
|
|
32240
32279
|
"use strict";
|
|
32241
32280
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
32242
32281
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -32301,7 +32340,7 @@ function deriveAddresses(protocol, publicKey, visibilityIndex, amount, offset) {
|
|
|
32301
32340
|
}
|
|
32302
32341
|
exports.deriveAddresses = deriveAddresses;
|
|
32303
32342
|
|
|
32304
|
-
},{"./address":
|
|
32343
|
+
},{"./address":230}],232:[function(require,module,exports){
|
|
32305
32344
|
"use strict";
|
|
32306
32345
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
32307
32346
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -32454,7 +32493,7 @@ var AirGapWallet = /** @class */ (function () {
|
|
|
32454
32493
|
}());
|
|
32455
32494
|
exports.AirGapWallet = AirGapWallet;
|
|
32456
32495
|
|
|
32457
|
-
},{"../utils/address":
|
|
32496
|
+
},{"../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
32497
|
"use strict";
|
|
32459
32498
|
var __extends = (this && this.__extends) || (function () {
|
|
32460
32499
|
var extendStatics = function (d, b) {
|
|
@@ -32486,7 +32525,7 @@ var AirGapOfflineWallet = /** @class */ (function (_super) {
|
|
|
32486
32525
|
}(AirGapWallet_1.AirGapWallet));
|
|
32487
32526
|
exports.AirGapOfflineWallet = AirGapOfflineWallet;
|
|
32488
32527
|
|
|
32489
|
-
},{"../AirGapWallet":
|
|
32528
|
+
},{"../AirGapWallet":232}],234:[function(require,module,exports){
|
|
32490
32529
|
"use strict";
|
|
32491
32530
|
var __extends = (this && this.__extends) || (function () {
|
|
32492
32531
|
var extendStatics = function (d, b) {
|
|
@@ -32690,7 +32729,7 @@ var AirGapCoinWallet = /** @class */ (function (_super) {
|
|
|
32690
32729
|
}(AirGapOnlineWallet_1.AirGapOnlineWallet));
|
|
32691
32730
|
exports.AirGapCoinWallet = AirGapCoinWallet;
|
|
32692
32731
|
|
|
32693
|
-
},{"./AirGapOnlineWallet":
|
|
32732
|
+
},{"./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
32733
|
"use strict";
|
|
32695
32734
|
var __extends = (this && this.__extends) || (function () {
|
|
32696
32735
|
var extendStatics = function (d, b) {
|
|
@@ -32776,7 +32815,7 @@ var AirGapNFTWallet = /** @class */ (function (_super) {
|
|
|
32776
32815
|
case 0: return [4 /*yield*/, this.protocol.getNetwork()];
|
|
32777
32816
|
case 1:
|
|
32778
32817
|
networkType = (_a.sent()).type;
|
|
32779
|
-
this.
|
|
32818
|
+
this.currentMarketPrice[assetID] = networkType === 'mainnet' ? marketPrice : new bignumber_1.default(0);
|
|
32780
32819
|
return [2 /*return*/];
|
|
32781
32820
|
}
|
|
32782
32821
|
});
|
|
@@ -32873,7 +32912,7 @@ var AirGapNFTWallet = /** @class */ (function (_super) {
|
|
|
32873
32912
|
}(AirGapOnlineWallet_1.AirGapOnlineWallet));
|
|
32874
32913
|
exports.AirGapNFTWallet = AirGapNFTWallet;
|
|
32875
32914
|
|
|
32876
|
-
},{"./AirGapOnlineWallet":
|
|
32915
|
+
},{"./AirGapOnlineWallet":236,"@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber":193,"@airgap/module-kit":220}],236:[function(require,module,exports){
|
|
32877
32916
|
"use strict";
|
|
32878
32917
|
var __extends = (this && this.__extends) || (function () {
|
|
32879
32918
|
var extendStatics = function (d, b) {
|
|
@@ -33132,5 +33171,5 @@ var AirGapOnlineWallet = /** @class */ (function (_super) {
|
|
|
33132
33171
|
}(AirGapWallet_1.AirGapWallet));
|
|
33133
33172
|
exports.AirGapOnlineWallet = AirGapOnlineWallet;
|
|
33134
33173
|
|
|
33135
|
-
},{"../AirGapWallet":
|
|
33174
|
+
},{"../AirGapWallet":232,"@airgap/coinlib-core":197,"@airgap/module-kit":220,"@airgap/module-kit/utils/protocol":228}]},{},[229])(229)
|
|
33136
33175
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airgap/wallet",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.8-beta.10",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"airgap"
|
|
@@ -21,15 +21,15 @@
|
|
|
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"
|
|
28
28
|
},
|
|
29
29
|
"author": "Papers GmbH <contact@papers.ch> (https://papers.ch)",
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@airgap/coinlib-core": "^0.13.
|
|
32
|
-
"@airgap/module-kit": "^0.13.
|
|
31
|
+
"@airgap/coinlib-core": "^0.13.8-beta.6",
|
|
32
|
+
"@airgap/module-kit": "^0.13.8-beta.6"
|
|
33
33
|
},
|
|
34
34
|
"nyc": {
|
|
35
35
|
"include": [
|
|
@@ -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,UAAmC,WAAkC,EAAE,OAAe;;;;;4BAC/D,qBAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,EAAA;;wBAA/C,WAAW,GAAG,CAAC,SAAgC,CAAC,CAAC,IAAI;wBAC3D,IAAI,CAAC,
|
|
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;QA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