@subwallet/extension-base 1.3.30-0 → 1.3.31-1
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/background/KoniTypes.d.ts +12 -0
- package/cjs/constants/paraspell-chain-map.js +13 -0
- package/cjs/core/logic-validation/transfer.js +13 -1
- package/cjs/core/substrate/xcm-parser.js +5 -1
- package/cjs/core/utils.js +36 -15
- package/cjs/koni/background/handlers/Extension.js +136 -90
- package/cjs/koni/background/handlers/State.js +8 -1
- package/cjs/packageInfo.js +1 -1
- package/cjs/services/balance-service/helpers/process.js +27 -0
- package/cjs/services/balance-service/helpers/subscribe/substrate/index.js +33 -1
- package/cjs/services/balance-service/index.js +9 -0
- package/cjs/services/balance-service/transfer/xcm/acrossBridge/index.js +229 -0
- package/cjs/services/balance-service/transfer/xcm/index.js +96 -7
- package/cjs/services/balance-service/transfer/xcm/utils.js +213 -0
- package/cjs/services/chain-service/constants.js +2 -4
- package/cjs/services/chain-service/index.js +71 -17
- package/cjs/services/chain-service/utils/patch.js +1 -1
- package/cjs/services/earning-service/handlers/special.js +18 -9
- package/cjs/services/keyring-service/context/handlers/Ledger.js +1 -1
- package/cjs/services/keyring-service/context/state.js +3 -0
- package/cjs/services/migration-service/scripts/DisableZeroBalanceTokens.js +60 -0
- package/cjs/services/migration-service/scripts/EnableChain.js +1 -1
- package/cjs/services/migration-service/scripts/index.js +3 -2
- package/cjs/services/swap-service/handler/base-handler.js +24 -11
- package/cjs/services/transaction-service/utils.js +38 -14
- package/cjs/utils/fee/transfer.js +52 -28
- package/cjs/utils/staticData/index.js +7 -2
- package/constants/paraspell-chain-map.d.ts +1 -0
- package/constants/paraspell-chain-map.js +7 -0
- package/core/logic-validation/transfer.d.ts +1 -0
- package/core/logic-validation/transfer.js +12 -1
- package/core/substrate/xcm-parser.d.ts +1 -0
- package/core/substrate/xcm-parser.js +4 -1
- package/core/utils.d.ts +2 -2
- package/core/utils.js +36 -15
- package/koni/background/handlers/Extension.d.ts +1 -0
- package/koni/background/handlers/Extension.js +60 -15
- package/koni/background/handlers/State.d.ts +1 -0
- package/koni/background/handlers/State.js +7 -1
- package/package.json +23 -7
- package/packageInfo.js +1 -1
- package/services/balance-service/helpers/process.d.ts +2 -1
- package/services/balance-service/helpers/process.js +26 -0
- package/services/balance-service/helpers/subscribe/substrate/index.js +34 -2
- package/services/balance-service/index.js +11 -2
- package/services/balance-service/transfer/xcm/acrossBridge/index.d.ts +15 -0
- package/services/balance-service/transfer/xcm/acrossBridge/index.js +216 -0
- package/services/balance-service/transfer/xcm/index.d.ts +5 -1
- package/services/balance-service/transfer/xcm/index.js +85 -1
- package/services/balance-service/transfer/xcm/utils.d.ts +11 -0
- package/services/balance-service/transfer/xcm/utils.js +208 -0
- package/services/chain-service/constants.d.ts +0 -1
- package/services/chain-service/constants.js +1 -2
- package/services/chain-service/index.d.ts +9 -2
- package/services/chain-service/index.js +72 -18
- package/services/chain-service/utils/patch.js +1 -1
- package/services/earning-service/handlers/special.js +19 -10
- package/services/keyring-service/context/handlers/Ledger.js +1 -1
- package/services/keyring-service/context/state.d.ts +1 -0
- package/services/keyring-service/context/state.js +3 -0
- package/services/migration-service/scripts/DisableZeroBalanceTokens.d.ts +4 -0
- package/services/migration-service/scripts/DisableZeroBalanceTokens.js +51 -0
- package/services/migration-service/scripts/EnableChain.js +1 -1
- package/services/migration-service/scripts/index.js +3 -2
- package/services/swap-service/handler/base-handler.js +25 -12
- package/services/transaction-service/types.d.ts +3 -2
- package/services/transaction-service/utils.d.ts +1 -0
- package/services/transaction-service/utils.js +38 -15
- package/types/balance/transfer.d.ts +1 -0
- package/types/transaction/request.d.ts +7 -0
- package/utils/fee/transfer.d.ts +1 -0
- package/utils/fee/transfer.js +54 -30
- package/utils/staticData/index.d.ts +4 -1
- package/utils/staticData/index.js +5 -1
- package/utils/staticData/paraSpellChainMap.json +1 -0
package/utils/fee/transfer.js
CHANGED
|
@@ -8,11 +8,12 @@ import { createCardanoTransaction } from '@subwallet/extension-base/services/bal
|
|
|
8
8
|
import { getERC20TransactionObject, getEVMTransactionObject } from '@subwallet/extension-base/services/balance-service/transfer/smart-contract';
|
|
9
9
|
import { createSubstrateExtrinsic } from '@subwallet/extension-base/services/balance-service/transfer/token';
|
|
10
10
|
import { createTonTransaction } from '@subwallet/extension-base/services/balance-service/transfer/ton-transfer';
|
|
11
|
-
import { createAvailBridgeExtrinsicFromAvail, createAvailBridgeTxFromEth, createPolygonBridgeExtrinsic, createSnowBridgeExtrinsic,
|
|
11
|
+
import { createAcrossBridgeExtrinsic, createAvailBridgeExtrinsicFromAvail, createAvailBridgeTxFromEth, createPolygonBridgeExtrinsic, createSnowBridgeExtrinsic, createXcmExtrinsicV2, dryRunXcmExtrinsicV2 } from '@subwallet/extension-base/services/balance-service/transfer/xcm';
|
|
12
|
+
import { _isAcrossChainBridge, _isAcrossTestnetBridge } from '@subwallet/extension-base/services/balance-service/transfer/xcm/acrossBridge';
|
|
12
13
|
import { isAvailChainBridge } from '@subwallet/extension-base/services/balance-service/transfer/xcm/availBridge';
|
|
13
14
|
import { _isPolygonChainBridge } from '@subwallet/extension-base/services/balance-service/transfer/xcm/polygonBridge';
|
|
14
15
|
import { _isPosChainBridge } from '@subwallet/extension-base/services/balance-service/transfer/xcm/posBridge';
|
|
15
|
-
import { _getContractAddressOfToken, _isChainCardanoCompatible, _isChainEvmCompatible, _isChainTonCompatible, _isLocalToken, _isNativeToken, _isPureEvmChain, _isTokenEvmSmartContract, _isTokenTransferredByCardano, _isTokenTransferredByEvm, _isTokenTransferredByTon } from '@subwallet/extension-base/services/chain-service/utils';
|
|
16
|
+
import { _getAssetDecimals, _getContractAddressOfToken, _isChainCardanoCompatible, _isChainEvmCompatible, _isChainTonCompatible, _isLocalToken, _isNativeToken, _isPureEvmChain, _isTokenEvmSmartContract, _isTokenTransferredByCardano, _isTokenTransferredByEvm, _isTokenTransferredByTon } from '@subwallet/extension-base/services/chain-service/utils';
|
|
16
17
|
import { calculateToAmountByReservePool, FEE_COVERAGE_PERCENTAGE_SPECIAL_CASE } from '@subwallet/extension-base/services/fee-service/utils';
|
|
17
18
|
import { getHydrationRate } from '@subwallet/extension-base/services/fee-service/utils/tokenPayFee';
|
|
18
19
|
import { isCardanoTransaction, isTonTransaction } from '@subwallet/extension-base/services/transaction-service/helpers';
|
|
@@ -29,7 +30,8 @@ export const detectTransferTxType = (srcToken, srcChain, destChain) => {
|
|
|
29
30
|
const isSnowBridgeEvmTransfer = _isPureEvmChain(srcChain) && _isSnowBridgeXcm(srcChain, destChain) && !isAvailBridgeFromEvm;
|
|
30
31
|
const isPolygonBridgeTransfer = _isPolygonChainBridge(srcChain.slug, destChain.slug);
|
|
31
32
|
const isPosBridgeTransfer = _isPosChainBridge(srcChain.slug, destChain.slug);
|
|
32
|
-
|
|
33
|
+
const isAcrossBridgeTransfer = _isAcrossChainBridge(srcChain.slug, destChain.slug);
|
|
34
|
+
return isAvailBridgeFromEvm || isSnowBridgeEvmTransfer || isPolygonBridgeTransfer || isPosBridgeTransfer || isAcrossBridgeTransfer ? 'evm' : 'substrate';
|
|
33
35
|
} else {
|
|
34
36
|
if (_isChainEvmCompatible(srcChain) && _isTokenTransferredByEvm(srcToken)) {
|
|
35
37
|
return 'evm';
|
|
@@ -77,7 +79,8 @@ export const calculateTransferMaxTransferable = async (id, request, freeBalance,
|
|
|
77
79
|
srcChain,
|
|
78
80
|
srcToken,
|
|
79
81
|
substrateApi,
|
|
80
|
-
tonApi
|
|
82
|
+
tonApi,
|
|
83
|
+
value
|
|
81
84
|
} = request;
|
|
82
85
|
const feeChainType = fee.type;
|
|
83
86
|
let estimatedFee;
|
|
@@ -105,7 +108,7 @@ export const calculateTransferMaxTransferable = async (id, request, freeBalance,
|
|
|
105
108
|
from: address,
|
|
106
109
|
to: recipient,
|
|
107
110
|
transferAll: false,
|
|
108
|
-
value
|
|
111
|
+
value,
|
|
109
112
|
fallbackFee: true
|
|
110
113
|
});
|
|
111
114
|
} else {
|
|
@@ -118,7 +121,7 @@ export const calculateTransferMaxTransferable = async (id, request, freeBalance,
|
|
|
118
121
|
from: address,
|
|
119
122
|
to: recipient,
|
|
120
123
|
transferAll: false,
|
|
121
|
-
value
|
|
124
|
+
value,
|
|
122
125
|
fallbackFee: true
|
|
123
126
|
});
|
|
124
127
|
}
|
|
@@ -128,19 +131,18 @@ export const calculateTransferMaxTransferable = async (id, request, freeBalance,
|
|
|
128
131
|
from: address,
|
|
129
132
|
to: address,
|
|
130
133
|
networkKey: srcChain.slug,
|
|
131
|
-
value
|
|
134
|
+
value,
|
|
132
135
|
transferAll: false,
|
|
133
136
|
// currently not used
|
|
134
137
|
tonApi
|
|
135
138
|
});
|
|
136
139
|
} else if (isCardanoAddress(address) && _isTokenTransferredByCardano(srcToken)) {
|
|
137
|
-
const isTransferNativeToken = _isNativeToken(srcToken);
|
|
138
140
|
[transaction] = await createCardanoTransaction({
|
|
139
141
|
tokenInfo: srcToken,
|
|
140
142
|
from: address,
|
|
141
143
|
to: address,
|
|
142
144
|
networkKey: srcChain.slug,
|
|
143
|
-
value
|
|
145
|
+
value,
|
|
144
146
|
cardanoTtlOffset: DEFAULT_CARDANO_TTL_OFFSET,
|
|
145
147
|
transferAll: false,
|
|
146
148
|
cardanoApi,
|
|
@@ -149,7 +151,7 @@ export const calculateTransferMaxTransferable = async (id, request, freeBalance,
|
|
|
149
151
|
} else {
|
|
150
152
|
[transaction] = await createSubstrateExtrinsic({
|
|
151
153
|
transferAll: false,
|
|
152
|
-
value
|
|
154
|
+
value,
|
|
153
155
|
from: address,
|
|
154
156
|
networkKey: srcChain.slug,
|
|
155
157
|
tokenInfo: srcToken,
|
|
@@ -285,10 +287,11 @@ export const calculateXcmMaxTransferable = async (id, request, freeBalance, fee)
|
|
|
285
287
|
nativeToken,
|
|
286
288
|
srcChain,
|
|
287
289
|
srcToken,
|
|
288
|
-
substrateApi
|
|
290
|
+
substrateApi,
|
|
291
|
+
value
|
|
289
292
|
} = request;
|
|
290
293
|
const feeChainType = fee.type;
|
|
291
|
-
let estimatedFee;
|
|
294
|
+
let estimatedFee = '0';
|
|
292
295
|
let feeOptions;
|
|
293
296
|
let maxTransferable;
|
|
294
297
|
let error;
|
|
@@ -297,20 +300,22 @@ export const calculateXcmMaxTransferable = async (id, request, freeBalance, fee)
|
|
|
297
300
|
const isSnowBridgeEvmTransfer = _isPureEvmChain(srcChain) && _isSnowBridgeXcm(srcChain, destChain) && !isAvailBridgeFromEvm;
|
|
298
301
|
const isPolygonBridgeTransfer = _isPolygonChainBridge(srcChain.slug, destChain.slug);
|
|
299
302
|
const isPosBridgeTransfer = _isPosChainBridge(srcChain.slug, destChain.slug);
|
|
303
|
+
const isAcrossBridgeTransfer = _isAcrossChainBridge(srcChain.slug, destChain.slug);
|
|
304
|
+
const isSubstrateXcm = !(isAvailBridgeFromEvm || isAvailBridgeFromAvail || isSnowBridgeEvmTransfer || isPolygonBridgeTransfer || isPosBridgeTransfer || isAcrossBridgeTransfer);
|
|
300
305
|
const fakeAddress = '5DRewsYzhJqZXU3SRaWy1FSt5iDr875ao91aw5fjrJmDG4Ap'; // todo: move this
|
|
301
306
|
const substrateAddress = fakeAddress; // todo: move this
|
|
302
307
|
const evmAddress = u8aToHex(addressToEvm(fakeAddress)); // todo: move this
|
|
303
|
-
|
|
308
|
+
const bnFreeBalance = new BigN(freeBalance.value);
|
|
304
309
|
const recipient = _isChainEvmCompatible(destChain) ? evmAddress : substrateAddress;
|
|
310
|
+
if (!destToken) {
|
|
311
|
+
throw Error('Destination token is not available');
|
|
312
|
+
}
|
|
305
313
|
try {
|
|
306
|
-
if (!destToken) {
|
|
307
|
-
throw Error('Destination token is not available');
|
|
308
|
-
}
|
|
309
314
|
const params = {
|
|
310
315
|
destinationTokenInfo: destToken,
|
|
311
316
|
originTokenInfo: srcToken,
|
|
312
317
|
// If value is 0, substrate will throw error when estimating fee
|
|
313
|
-
sendingValue:
|
|
318
|
+
sendingValue: value,
|
|
314
319
|
sender: address,
|
|
315
320
|
recipient,
|
|
316
321
|
destinationChain: destChain,
|
|
@@ -324,6 +329,13 @@ export const calculateXcmMaxTransferable = async (id, request, freeBalance, fee)
|
|
|
324
329
|
let funcCreateExtrinsic;
|
|
325
330
|
if (isPosBridgeTransfer || isPolygonBridgeTransfer) {
|
|
326
331
|
funcCreateExtrinsic = createPolygonBridgeExtrinsic;
|
|
332
|
+
} else if (isAcrossBridgeTransfer) {
|
|
333
|
+
funcCreateExtrinsic = createAcrossBridgeExtrinsic;
|
|
334
|
+
if (_isAcrossTestnetBridge(srcChain.slug)) {
|
|
335
|
+
params.sendingValue = BigN(0.0037).shiftedBy(_getAssetDecimals(srcToken)).toFixed(0, 1);
|
|
336
|
+
} else {
|
|
337
|
+
params.sendingValue = BigN(1).shiftedBy(_getAssetDecimals(srcToken)).toFixed(0, 1);
|
|
338
|
+
}
|
|
327
339
|
} else if (isSnowBridgeEvmTransfer) {
|
|
328
340
|
funcCreateExtrinsic = createSnowBridgeExtrinsic;
|
|
329
341
|
} else if (isAvailBridgeFromEvm) {
|
|
@@ -331,9 +343,12 @@ export const calculateXcmMaxTransferable = async (id, request, freeBalance, fee)
|
|
|
331
343
|
} else if (isAvailBridgeFromAvail) {
|
|
332
344
|
funcCreateExtrinsic = createAvailBridgeExtrinsicFromAvail;
|
|
333
345
|
} else {
|
|
334
|
-
funcCreateExtrinsic =
|
|
346
|
+
funcCreateExtrinsic = createXcmExtrinsicV2;
|
|
347
|
+
params.sendingValue = '1';
|
|
335
348
|
}
|
|
336
349
|
const extrinsic = await funcCreateExtrinsic(params);
|
|
350
|
+
|
|
351
|
+
// todo: refactor condition
|
|
337
352
|
if (feeChainType === 'evm') {
|
|
338
353
|
var _tx$gas2;
|
|
339
354
|
// Calculate fee for evm transaction
|
|
@@ -353,12 +368,17 @@ export const calculateXcmMaxTransferable = async (id, request, freeBalance, fee)
|
|
|
353
368
|
};
|
|
354
369
|
} else if (feeChainType === 'substrate') {
|
|
355
370
|
// Calculate fee for substrate transaction
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
371
|
+
if (isSubstrateXcm) {
|
|
372
|
+
const estimatedFeeByDryRun = await dryRunXcmExtrinsicV2(params);
|
|
373
|
+
estimatedFee = estimatedFeeByDryRun.fee || '0';
|
|
374
|
+
} else {
|
|
375
|
+
try {
|
|
376
|
+
var _paymentInfo$partialF2;
|
|
377
|
+
const paymentInfo = await extrinsic.paymentInfo(address);
|
|
378
|
+
estimatedFee = (paymentInfo === null || paymentInfo === void 0 ? void 0 : (_paymentInfo$partialF2 = paymentInfo.partialFee) === null || _paymentInfo$partialF2 === void 0 ? void 0 : _paymentInfo$partialF2.toString()) || '0';
|
|
379
|
+
} catch (e) {
|
|
380
|
+
estimatedFee = '0';
|
|
381
|
+
}
|
|
362
382
|
}
|
|
363
383
|
const _feeCustom = feeCustom;
|
|
364
384
|
const tip = combineSubstrateFee(fee, feeOption, _feeCustom).tip;
|
|
@@ -398,12 +418,12 @@ export const calculateXcmMaxTransferable = async (id, request, freeBalance, fee)
|
|
|
398
418
|
if (_SUPPORT_TOKEN_PAY_FEE_GROUP.assetHub.includes(srcChain.slug)) {
|
|
399
419
|
const estimatedFeeNative = (BigInt(estimatedFee) * BigInt(FEE_COVERAGE_PERCENTAGE_SPECIAL_CASE) / BigInt(100)).toString();
|
|
400
420
|
const estimatedFeeLocal = await calculateToAmountByReservePool(substrateApi.api, nativeToken, srcToken, estimatedFeeNative);
|
|
401
|
-
maxTransferable =
|
|
421
|
+
maxTransferable = bnFreeBalance.minus(estimatedFeeLocal);
|
|
402
422
|
} else if (_SUPPORT_TOKEN_PAY_FEE_GROUP.hydration.includes(srcChain.slug)) {
|
|
403
423
|
const rate = await getHydrationRate(address, nativeToken, srcToken);
|
|
404
424
|
if (rate) {
|
|
405
425
|
const estimatedFeeLocal = new BigN(estimatedFee).multipliedBy(rate).integerValue(BigN.ROUND_UP).toString();
|
|
406
|
-
maxTransferable =
|
|
426
|
+
maxTransferable = bnFreeBalance.minus(estimatedFeeLocal);
|
|
407
427
|
} else {
|
|
408
428
|
throw new Error(`Unable to estimate fee for ${srcChain.slug}.`);
|
|
409
429
|
}
|
|
@@ -411,16 +431,20 @@ export const calculateXcmMaxTransferable = async (id, request, freeBalance, fee)
|
|
|
411
431
|
throw new Error(`Unable to estimate fee for ${srcChain.slug}.`);
|
|
412
432
|
}
|
|
413
433
|
} else if (isTransferNativeTokenAndPayLocalTokenAsFee) {
|
|
414
|
-
maxTransferable =
|
|
434
|
+
maxTransferable = bnFreeBalance;
|
|
415
435
|
} else {
|
|
416
436
|
if (!_isNativeToken(srcToken)) {
|
|
417
|
-
maxTransferable =
|
|
437
|
+
maxTransferable = bnFreeBalance;
|
|
418
438
|
} else {
|
|
419
|
-
maxTransferable =
|
|
439
|
+
maxTransferable = bnFreeBalance.minus(BigN(estimatedFee).multipliedBy(XCM_FEE_RATIO));
|
|
420
440
|
}
|
|
421
441
|
}
|
|
442
|
+
if (isAvailBridgeFromAvail) {
|
|
443
|
+
const addedAmount = BigN(1).shiftedBy(_getAssetDecimals(srcToken));
|
|
444
|
+
maxTransferable = maxTransferable.minus(addedAmount);
|
|
445
|
+
}
|
|
422
446
|
return {
|
|
423
|
-
maxTransferable: maxTransferable.gt(BN_ZERO) ? maxTransferable.toFixed(0)
|
|
447
|
+
maxTransferable: maxTransferable.gt(BN_ZERO) ? maxTransferable.toFixed(0) : '0',
|
|
424
448
|
feeOptions: feeOptions,
|
|
425
449
|
feeType: feeChainType,
|
|
426
450
|
id: id,
|
|
@@ -10,6 +10,7 @@ export declare const blockedActionsFeatures: BlockedActionsFeaturesMap;
|
|
|
10
10
|
export declare const remindNotificationTime: Record<NotificationActionType, number>;
|
|
11
11
|
export declare const blockedActions: Record<string, EnvConfig>;
|
|
12
12
|
export declare const oldChainPrefix: Record<string, EnvConfig>;
|
|
13
|
+
export declare const paraSpellChainMap: Record<string, EnvConfig>;
|
|
13
14
|
export declare enum StaticKey {
|
|
14
15
|
BUY_SERVICE_INFOS = "buy-service-infos",
|
|
15
16
|
CHAINS = "chains",
|
|
@@ -21,7 +22,8 @@ export declare enum StaticKey {
|
|
|
21
22
|
BLOCKED_ACTIONS_FEATURES = "blocked-actions-features",
|
|
22
23
|
REMIND_NOTIFICATION_TIME = "remind-notification-time",
|
|
23
24
|
BLOCKED_ACTIONS = "blocked-actions",
|
|
24
|
-
OLD_CHAIN_PREFIX = "old-chain-prefix"
|
|
25
|
+
OLD_CHAIN_PREFIX = "old-chain-prefix",
|
|
26
|
+
PARASPELL_CHAIN_MAP = "paraspell-chain-map"
|
|
25
27
|
}
|
|
26
28
|
export declare const staticData: {
|
|
27
29
|
chains: import("@subwallet/chain-list/types")._ChainInfo[];
|
|
@@ -35,4 +37,5 @@ export declare const staticData: {
|
|
|
35
37
|
"remind-notification-time": Record<NotificationActionType, number>;
|
|
36
38
|
"blocked-actions": Record<string, EnvConfig>;
|
|
37
39
|
"old-chain-prefix": Record<string, EnvConfig>;
|
|
40
|
+
"paraspell-chain-map": Record<string, EnvConfig>;
|
|
38
41
|
};
|
|
@@ -23,6 +23,8 @@ export const remindNotificationTime = require("./remindNotificationTime.json");
|
|
|
23
23
|
export const blockedActions = require("./blockedActions.json");
|
|
24
24
|
// eslint-disable-next-line @typescript-eslint/no-var-requires,@typescript-eslint/no-unsafe-assignment
|
|
25
25
|
export const oldChainPrefix = require("./oldChainPrefix.json");
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires,@typescript-eslint/no-unsafe-assignment
|
|
27
|
+
export const paraSpellChainMap = require("./paraSpellChainMap.json");
|
|
26
28
|
export let StaticKey;
|
|
27
29
|
(function (StaticKey) {
|
|
28
30
|
StaticKey["BUY_SERVICE_INFOS"] = "buy-service-infos";
|
|
@@ -36,6 +38,7 @@ export let StaticKey;
|
|
|
36
38
|
StaticKey["REMIND_NOTIFICATION_TIME"] = "remind-notification-time";
|
|
37
39
|
StaticKey["BLOCKED_ACTIONS"] = "blocked-actions";
|
|
38
40
|
StaticKey["OLD_CHAIN_PREFIX"] = "old-chain-prefix";
|
|
41
|
+
StaticKey["PARASPELL_CHAIN_MAP"] = "paraspell-chain-map";
|
|
39
42
|
})(StaticKey || (StaticKey = {}));
|
|
40
43
|
export const staticData = {
|
|
41
44
|
[StaticKey.CHAINS]: Object.values(ChainInfoMap),
|
|
@@ -48,5 +51,6 @@ export const staticData = {
|
|
|
48
51
|
[StaticKey.BLOCKED_ACTIONS_FEATURES]: blockedActionsFeatures,
|
|
49
52
|
[StaticKey.REMIND_NOTIFICATION_TIME]: remindNotificationTime,
|
|
50
53
|
[StaticKey.BLOCKED_ACTIONS]: blockedActions,
|
|
51
|
-
[StaticKey.OLD_CHAIN_PREFIX]: oldChainPrefix
|
|
54
|
+
[StaticKey.OLD_CHAIN_PREFIX]: oldChainPrefix,
|
|
55
|
+
[StaticKey.PARASPELL_CHAIN_MAP]: paraSpellChainMap
|
|
52
56
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|