@airgap/wallet 0.13.8-beta.9 → 0.13.8
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-wallet.min.js +16 -54
- package/package.json +3 -3
|
@@ -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.
|
|
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;
|
|
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,14 +31895,11 @@ 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; } });
|
|
31900
31898
|
var normalize_1 = require("./utils/normalize");
|
|
31901
31899
|
Object.defineProperty(exports, "normalizeToUndefined", { enumerable: true, get: function () { return normalize_1.normalizeToUndefined; } });
|
|
31902
31900
|
var protocol_1 = require("./utils/protocol");
|
|
31903
31901
|
Object.defineProperty(exports, "canEncryptAES", { enumerable: true, get: function () { return protocol_1.canEncryptAES; } });
|
|
31904
31902
|
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; } });
|
|
31906
31903
|
Object.defineProperty(exports, "canFetchDataForMultipleAddresses", { enumerable: true, get: function () { return protocol_1.canFetchDataForMultipleAddresses; } });
|
|
31907
31904
|
Object.defineProperty(exports, "canSignMessage", { enumerable: true, get: function () { return protocol_1.canSignMessage; } });
|
|
31908
31905
|
Object.defineProperty(exports, "hasConfigurableContract", { enumerable: true, get: function () { return protocol_1.hasConfigurableContract; } });
|
|
@@ -31910,14 +31907,12 @@ Object.defineProperty(exports, "hasConfigurableTransactionInjector", { enumerabl
|
|
|
31910
31907
|
Object.defineProperty(exports, "hasMultiAddressPublicKeys", { enumerable: true, get: function () { return protocol_1.hasMultiAddressPublicKeys; } });
|
|
31911
31908
|
Object.defineProperty(exports, "isBip32Protocol", { enumerable: true, get: function () { return protocol_1.isBip32Protocol; } });
|
|
31912
31909
|
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; } });
|
|
31915
31910
|
Object.defineProperty(exports, "isSingleTokenSubProtocol", { enumerable: true, get: function () { return protocol_1.isSingleTokenSubProtocol; } });
|
|
31916
31911
|
Object.defineProperty(exports, "isSubProtocol", { enumerable: true, get: function () { return protocol_1.isSubProtocol; } });
|
|
31917
31912
|
Object.defineProperty(exports, "isTransactionStatusChecker", { enumerable: true, get: function () { return protocol_1.isTransactionStatusChecker; } });
|
|
31918
31913
|
Object.defineProperty(exports, "protocolNetworkIdentifier", { enumerable: true, get: function () { return protocol_1.protocolNetworkIdentifier; } });
|
|
31919
31914
|
|
|
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/
|
|
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/normalize":226,"./utils/protocol":227}],221:[function(require,module,exports){
|
|
31921
31916
|
"use strict";
|
|
31922
31917
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31923
31918
|
exports.ModuleNetworkRegistry = void 0;
|
|
@@ -31940,7 +31935,7 @@ var ModuleNetworkRegistry = /** @class */ (function () {
|
|
|
31940
31935
|
}());
|
|
31941
31936
|
exports.ModuleNetworkRegistry = ModuleNetworkRegistry;
|
|
31942
31937
|
|
|
31943
|
-
},{"../utils/protocol":
|
|
31938
|
+
},{"../utils/protocol":227}],222:[function(require,module,exports){
|
|
31944
31939
|
"use strict";
|
|
31945
31940
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
31946
31941
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -32039,43 +32034,13 @@ exports.isExtendedPublicKey = isExtendedPublicKey;
|
|
|
32039
32034
|
},{"./interface":224}],226:[function(require,module,exports){
|
|
32040
32035
|
"use strict";
|
|
32041
32036
|
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 });
|
|
32072
32037
|
exports.normalizeToUndefined = void 0;
|
|
32073
32038
|
function normalizeToUndefined(value) {
|
|
32074
32039
|
return value !== null ? value : undefined;
|
|
32075
32040
|
}
|
|
32076
32041
|
exports.normalizeToUndefined = normalizeToUndefined;
|
|
32077
32042
|
|
|
32078
|
-
},{}],
|
|
32043
|
+
},{}],227:[function(require,module,exports){
|
|
32079
32044
|
"use strict";
|
|
32080
32045
|
var __assign = (this && this.__assign) || function () {
|
|
32081
32046
|
__assign = Object.assign || function(t) {
|
|
@@ -32089,7 +32054,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
32089
32054
|
return __assign.apply(this, arguments);
|
|
32090
32055
|
};
|
|
32091
32056
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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 =
|
|
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;
|
|
32093
32058
|
// @ts-ignore
|
|
32094
32059
|
var createHash = require("@airgap/coinlib-core/dependencies/src/create-hash-1.2.0/index");
|
|
32095
32060
|
var interface_1 = require("./interface");
|
|
@@ -32102,11 +32067,10 @@ var baseProtocolSchema = {
|
|
|
32102
32067
|
var offlineProtocolSchema = __assign(__assign({}, baseProtocolSchema), { getKeyPairFromSecret: 'required', signTransactionWithSecretKey: 'required' });
|
|
32103
32068
|
var onlineProtocolSchema = __assign(__assign({}, baseProtocolSchema), { broadcastTransaction: 'required', getBalanceOfPublicKey: 'required', getNetwork: 'required', getTransactionFeeWithPublicKey: 'required', getTransactionMaxAmountWithPublicKey: 'required', getTransactionsForPublicKey: 'required', prepareTransactionWithPublicKey: 'required' });
|
|
32104
32069
|
var bip32BaseProtocolSchema = __assign(__assign({}, baseProtocolSchema), { deriveFromExtendedPublicKey: 'required' });
|
|
32105
|
-
var bip32OfflineProtocolSchema = __assign(__assign(__assign({}, bip32BaseProtocolSchema), offlineProtocolSchema), { getExtendedKeyPairFromSecret: 'required'
|
|
32070
|
+
var bip32OfflineProtocolSchema = __assign(__assign(__assign({}, bip32BaseProtocolSchema), offlineProtocolSchema), { getExtendedKeyPairFromSecret: 'required' });
|
|
32106
32071
|
var bip32OnlineProtocolSchema = __assign(__assign({}, bip32BaseProtocolSchema), onlineProtocolSchema);
|
|
32107
32072
|
var subProtocolSchema = {
|
|
32108
|
-
getType: 'required'
|
|
32109
|
-
mainProtocol: 'required'
|
|
32073
|
+
getType: 'required'
|
|
32110
32074
|
};
|
|
32111
32075
|
var singleTokenSubProtocolSchema = __assign(__assign({}, subProtocolSchema), { getContractAddress: 'required' });
|
|
32112
32076
|
var multiTokenSubProtocolBaseSchema = singleTokenSubProtocolSchema;
|
|
@@ -32150,11 +32114,9 @@ var transactionStatusCheckerSchema = {
|
|
|
32150
32114
|
function isOfflineProtocol(object) {
|
|
32151
32115
|
return (0, interface_1.implementsInterface)(object, offlineProtocolSchema);
|
|
32152
32116
|
}
|
|
32153
|
-
exports.isOfflineProtocol = isOfflineProtocol;
|
|
32154
32117
|
function isOnlineProtocol(object) {
|
|
32155
32118
|
return (0, interface_1.implementsInterface)(object, onlineProtocolSchema);
|
|
32156
32119
|
}
|
|
32157
|
-
exports.isOnlineProtocol = isOnlineProtocol;
|
|
32158
32120
|
function isOfflineBip32Protocol(protocol) {
|
|
32159
32121
|
return (0, interface_1.implementsInterface)(protocol, bip32OfflineProtocolSchema);
|
|
32160
32122
|
}
|
|
@@ -32244,7 +32206,7 @@ function protocolNetworkIdentifier(network) {
|
|
|
32244
32206
|
}
|
|
32245
32207
|
exports.protocolNetworkIdentifier = protocolNetworkIdentifier;
|
|
32246
32208
|
|
|
32247
|
-
},{"./interface":224,"@airgap/coinlib-core/dependencies/src/create-hash-1.2.0/index":194}],
|
|
32209
|
+
},{"./interface":224,"@airgap/coinlib-core/dependencies/src/create-hash-1.2.0/index":194}],228:[function(require,module,exports){
|
|
32248
32210
|
"use strict";
|
|
32249
32211
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32250
32212
|
exports.TimeInterval = exports.AirGapNFTWallet = exports.AirGapWalletStatus = exports.AirGapCoinWallet = exports.AirGapOnlineWallet = exports.AirGapOfflineWallet = exports.AirGapWallet = void 0;
|
|
@@ -32261,7 +32223,7 @@ Object.defineProperty(exports, "AirGapNFTWallet", { enumerable: true, get: funct
|
|
|
32261
32223
|
var AirGapOnlineWallet_1 = require("./wallet/online/AirGapOnlineWallet");
|
|
32262
32224
|
Object.defineProperty(exports, "AirGapOnlineWallet", { enumerable: true, get: function () { return AirGapOnlineWallet_1.AirGapOnlineWallet; } });
|
|
32263
32225
|
|
|
32264
|
-
},{"./wallet/AirGapWallet":
|
|
32226
|
+
},{"./wallet/AirGapWallet":231,"./wallet/offline/AirGapOfflineWallet":232,"./wallet/online/AirGapCoinWallet":233,"./wallet/online/AirGapNFTWallet":234,"./wallet/online/AirGapOnlineWallet":235}],229:[function(require,module,exports){
|
|
32265
32227
|
"use strict";
|
|
32266
32228
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32267
32229
|
exports.normalizeAddress = void 0;
|
|
@@ -32275,7 +32237,7 @@ function normalizeAddress(address) {
|
|
|
32275
32237
|
}
|
|
32276
32238
|
exports.normalizeAddress = normalizeAddress;
|
|
32277
32239
|
|
|
32278
|
-
},{}],
|
|
32240
|
+
},{}],230:[function(require,module,exports){
|
|
32279
32241
|
"use strict";
|
|
32280
32242
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
32281
32243
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -32340,7 +32302,7 @@ function deriveAddresses(protocol, publicKey, visibilityIndex, amount, offset) {
|
|
|
32340
32302
|
}
|
|
32341
32303
|
exports.deriveAddresses = deriveAddresses;
|
|
32342
32304
|
|
|
32343
|
-
},{"./address":
|
|
32305
|
+
},{"./address":229}],231:[function(require,module,exports){
|
|
32344
32306
|
"use strict";
|
|
32345
32307
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
32346
32308
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -32493,7 +32455,7 @@ var AirGapWallet = /** @class */ (function () {
|
|
|
32493
32455
|
}());
|
|
32494
32456
|
exports.AirGapWallet = AirGapWallet;
|
|
32495
32457
|
|
|
32496
|
-
},{"../utils/address":
|
|
32458
|
+
},{"../utils/address":229,"../utils/protocol":230,"@airgap/coinlib-core/errors":196,"@airgap/coinlib-core/errors/coinlib-error":195,"@airgap/module-kit":220}],232:[function(require,module,exports){
|
|
32497
32459
|
"use strict";
|
|
32498
32460
|
var __extends = (this && this.__extends) || (function () {
|
|
32499
32461
|
var extendStatics = function (d, b) {
|
|
@@ -32525,7 +32487,7 @@ var AirGapOfflineWallet = /** @class */ (function (_super) {
|
|
|
32525
32487
|
}(AirGapWallet_1.AirGapWallet));
|
|
32526
32488
|
exports.AirGapOfflineWallet = AirGapOfflineWallet;
|
|
32527
32489
|
|
|
32528
|
-
},{"../AirGapWallet":
|
|
32490
|
+
},{"../AirGapWallet":231}],233:[function(require,module,exports){
|
|
32529
32491
|
"use strict";
|
|
32530
32492
|
var __extends = (this && this.__extends) || (function () {
|
|
32531
32493
|
var extendStatics = function (d, b) {
|
|
@@ -32729,7 +32691,7 @@ var AirGapCoinWallet = /** @class */ (function (_super) {
|
|
|
32729
32691
|
}(AirGapOnlineWallet_1.AirGapOnlineWallet));
|
|
32730
32692
|
exports.AirGapCoinWallet = AirGapCoinWallet;
|
|
32731
32693
|
|
|
32732
|
-
},{"./AirGapOnlineWallet":
|
|
32694
|
+
},{"./AirGapOnlineWallet":235,"@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":227}],234:[function(require,module,exports){
|
|
32733
32695
|
"use strict";
|
|
32734
32696
|
var __extends = (this && this.__extends) || (function () {
|
|
32735
32697
|
var extendStatics = function (d, b) {
|
|
@@ -32912,7 +32874,7 @@ var AirGapNFTWallet = /** @class */ (function (_super) {
|
|
|
32912
32874
|
}(AirGapOnlineWallet_1.AirGapOnlineWallet));
|
|
32913
32875
|
exports.AirGapNFTWallet = AirGapNFTWallet;
|
|
32914
32876
|
|
|
32915
|
-
},{"./AirGapOnlineWallet":
|
|
32877
|
+
},{"./AirGapOnlineWallet":235,"@airgap/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber":193,"@airgap/module-kit":220}],235:[function(require,module,exports){
|
|
32916
32878
|
"use strict";
|
|
32917
32879
|
var __extends = (this && this.__extends) || (function () {
|
|
32918
32880
|
var extendStatics = function (d, b) {
|
|
@@ -33171,5 +33133,5 @@ var AirGapOnlineWallet = /** @class */ (function (_super) {
|
|
|
33171
33133
|
}(AirGapWallet_1.AirGapWallet));
|
|
33172
33134
|
exports.AirGapOnlineWallet = AirGapOnlineWallet;
|
|
33173
33135
|
|
|
33174
|
-
},{"../AirGapWallet":
|
|
33136
|
+
},{"../AirGapWallet":231,"@airgap/coinlib-core":197,"@airgap/module-kit":220,"@airgap/module-kit/utils/protocol":227}]},{},[228])(228)
|
|
33175
33137
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airgap/wallet",
|
|
3
|
-
"version": "0.13.8
|
|
3
|
+
"version": "0.13.8",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"airgap"
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"author": "Papers GmbH <contact@papers.ch> (https://papers.ch)",
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@airgap/coinlib-core": "^0.13.8
|
|
32
|
-
"@airgap/module-kit": "^0.13.8
|
|
31
|
+
"@airgap/coinlib-core": "^0.13.8",
|
|
32
|
+
"@airgap/module-kit": "^0.13.8"
|
|
33
33
|
},
|
|
34
34
|
"nyc": {
|
|
35
35
|
"include": [
|