@subwallet/extension-base 1.2.30-0 → 1.2.32-0
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 +2 -2
- package/cjs/constants/blocked-actions-list.js +15 -0
- package/cjs/constants/index.js +12 -0
- package/cjs/core/logic-validation/transfer.js +166 -0
- package/cjs/koni/background/handlers/Extension.js +31 -7
- package/cjs/packageInfo.js +1 -1
- package/cjs/services/balance-service/helpers/subscribe/index.js +0 -3
- package/cjs/services/chain-service/handler/SubstrateApi.js +1 -0
- package/cjs/services/earning-service/handlers/liquid-staking/stella-swap.js +6 -6
- package/cjs/services/swap-service/handler/chainflip-handler.js +35 -13
- package/cjs/services/swap-service/utils.js +5 -3
- package/cjs/services/transaction-service/index.js +7 -1
- package/cjs/utils/staticData/index.js +7 -2
- package/constants/blocked-actions-list.d.ts +7 -0
- package/constants/blocked-actions-list.js +8 -0
- package/constants/index.d.ts +1 -0
- package/constants/index.js +2 -1
- package/core/logic-validation/transfer.d.ts +2 -0
- package/core/logic-validation/transfer.js +164 -0
- package/koni/background/handlers/Extension.js +32 -8
- package/package.json +16 -10
- package/packageInfo.js +1 -1
- package/services/balance-service/helpers/subscribe/index.js +0 -3
- package/services/chain-service/handler/SubstrateApi.js +1 -0
- package/services/earning-service/handlers/liquid-staking/stella-swap.js +6 -6
- package/services/mkt-campaign-service/types.d.ts +4 -0
- package/services/swap-service/handler/chainflip-handler.d.ts +3 -2
- package/services/swap-service/handler/chainflip-handler.js +36 -14
- package/services/swap-service/utils.js +5 -3
- package/services/transaction-service/index.js +9 -3
- package/utils/staticData/blockedActionsFeatures.json +39 -0
- package/utils/staticData/index.d.ts +4 -1
- package/utils/staticData/index.js +5 -1
|
@@ -16,6 +16,8 @@ export const marketingCampaigns = require("./marketingCampaigns.json");
|
|
|
16
16
|
export const termAndCondition = require("./termAndCondition.json");
|
|
17
17
|
// eslint-disable-next-line @typescript-eslint/no-var-requires,@typescript-eslint/no-unsafe-assignment
|
|
18
18
|
export const currencySymbol = require("./currencySymbol.json");
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires,@typescript-eslint/no-unsafe-assignment
|
|
20
|
+
export const blockedActionsFeatures = require("./blockedActionsFeatures.json");
|
|
19
21
|
export let StaticKey;
|
|
20
22
|
(function (StaticKey) {
|
|
21
23
|
StaticKey["BUY_SERVICE_INFOS"] = "buy-service-infos";
|
|
@@ -25,6 +27,7 @@ export let StaticKey;
|
|
|
25
27
|
StaticKey["CROWDLOAN_FUNDS"] = "crowdloan-funds";
|
|
26
28
|
StaticKey["TERM_AND_CONDITION"] = "term-and-condition";
|
|
27
29
|
StaticKey["BUY_TOKEN_CONFIGS"] = "buy-token-configs";
|
|
30
|
+
StaticKey["BLOCKED_ACTIONS_FEATURES"] = "blocked-actions-features";
|
|
28
31
|
})(StaticKey || (StaticKey = {}));
|
|
29
32
|
export const staticData = {
|
|
30
33
|
[StaticKey.CHAINS]: Object.values(ChainInfoMap),
|
|
@@ -33,5 +36,6 @@ export const staticData = {
|
|
|
33
36
|
[StaticKey.CROWDLOAN_FUNDS]: crowdloanFunds,
|
|
34
37
|
[StaticKey.MARKETING_CAMPAINGS]: marketingCampaigns,
|
|
35
38
|
[StaticKey.TERM_AND_CONDITION]: termAndCondition.default,
|
|
36
|
-
[StaticKey.BUY_TOKEN_CONFIGS]: buyTokenConfigs
|
|
39
|
+
[StaticKey.BUY_TOKEN_CONFIGS]: buyTokenConfigs,
|
|
40
|
+
[StaticKey.BLOCKED_ACTIONS_FEATURES]: blockedActionsFeatures
|
|
37
41
|
};
|