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