@embarkai/ui-kit 0.4.64 → 0.4.65
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/dist/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +308 -308
- package/dist/index.d.cts +20 -4
- package/dist/index.d.ts +20 -4
- package/dist/index.js +157 -160
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -841,7 +841,7 @@ var init_iframe_mpc_client = __esm({
|
|
|
841
841
|
});
|
|
842
842
|
|
|
843
843
|
// src/internal/constants.ts
|
|
844
|
-
var import_lucide_react, LOCAL_COLOR_MODE_KEY, LOOCAL_BACKUP_STATUS_KEY, DEFAULT_AUTH_MENU_HEIGHT, DEFAULT_MAIN_MENU_HEIGHT, MAX_CONTENT_HEIGHT, MAIN_DIALOG_ANIMATION_SPEED, Y_ANIMATION_SETUP, BLOCKSCOUT_QUERY_STALE_TIME, BLOCKSCOUT_QUERY_GC_TIME, BLOCKSCOUT_REFRESH_DEBOUNCE, IPFS_GATEWAY, PROVIDERS_META
|
|
844
|
+
var import_lucide_react, LOCAL_COLOR_MODE_KEY, LOOCAL_BACKUP_STATUS_KEY, DEFAULT_AUTH_MENU_HEIGHT, DEFAULT_MAIN_MENU_HEIGHT, MAX_CONTENT_HEIGHT, MAIN_DIALOG_ANIMATION_SPEED, Y_ANIMATION_SETUP, BLOCKSCOUT_QUERY_STALE_TIME, BLOCKSCOUT_QUERY_GC_TIME, BLOCKSCOUT_REFRESH_DEBOUNCE, IPFS_GATEWAY, PROVIDERS_META;
|
|
845
845
|
var init_constants = __esm({
|
|
846
846
|
"src/internal/constants.ts"() {
|
|
847
847
|
import_lucide_react = require("lucide-react");
|
|
@@ -868,7 +868,6 @@ var init_constants = __esm({
|
|
|
868
868
|
// Alias for twitter (API uses 'x')
|
|
869
869
|
wallet: { name: "Wallet", icon: import_lucide_react.Wallet2, description: "External wallet (EOA)" }
|
|
870
870
|
};
|
|
871
|
-
WRAPPED_TOKENS = ["WETH", "WBTC", "WBNB", "WLUMIA"];
|
|
872
871
|
}
|
|
873
872
|
});
|
|
874
873
|
|
|
@@ -944,18 +943,57 @@ var init_useLayoutDataStore = __esm({
|
|
|
944
943
|
}
|
|
945
944
|
});
|
|
946
945
|
|
|
947
|
-
// src/internal/components/BalanceFeedProvider/
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
946
|
+
// src/internal/components/BalanceFeedProvider/constants.ts
|
|
947
|
+
var BALANCE_POLLING_INTERVAL, NATIVE_BALANCE_QUERY_KEY, CUSTOM_BALANCE_QUERY_KEY, ASSET_RATE_QUERY_KEY, SKIP_SYMBOLS, WRAPPED_TOKENS;
|
|
948
|
+
var init_constants2 = __esm({
|
|
949
|
+
"src/internal/components/BalanceFeedProvider/constants.ts"() {
|
|
950
|
+
BALANCE_POLLING_INTERVAL = 3e4;
|
|
951
|
+
NATIVE_BALANCE_QUERY_KEY = "embarkai-native-balance-query-key";
|
|
952
|
+
CUSTOM_BALANCE_QUERY_KEY = "embarkai-custom-balance-query-key";
|
|
953
|
+
ASSET_RATE_QUERY_KEY = "embarkai-asset-rate-query-key";
|
|
954
|
+
SKIP_SYMBOLS = ["TEST", "USDT", "P", "$P USDT"];
|
|
955
|
+
WRAPPED_TOKENS = {
|
|
956
|
+
WETH: "ETH"
|
|
957
|
+
};
|
|
957
958
|
}
|
|
959
|
+
});
|
|
960
|
+
|
|
961
|
+
// src/internal/components/BalanceFeedProvider/useAssetRate.ts
|
|
962
|
+
function checkWrapedTokenSymbol(symbol) {
|
|
963
|
+
return WRAPPED_TOKENS[symbol] || symbol;
|
|
964
|
+
}
|
|
965
|
+
async function getAssetRate(symbol, asSymbol) {
|
|
966
|
+
const asTarget = asSymbol || "USDT";
|
|
967
|
+
if (SKIP_SYMBOLS.includes(symbol) || symbol === asTarget) return { symbol, price: "1" };
|
|
968
|
+
const apiTicker = `${checkWrapedTokenSymbol(symbol)}${asTarget}`;
|
|
969
|
+
return await fetch(`${ASSET_API_URL}?symbol=${apiTicker}`).then(async (res) => await res.json()).catch((err) => {
|
|
970
|
+
console.warn("[ASSET RATE] Failed & fallbacked to price 1:", { symbol: apiTicker, error: err });
|
|
971
|
+
return { symbol, price: "1" };
|
|
972
|
+
});
|
|
958
973
|
}
|
|
974
|
+
function useAssetUsdtRate(assetSymbol, options) {
|
|
975
|
+
const { refetchInterval, staleTime } = options || {};
|
|
976
|
+
const address = useSession((st) => st.address);
|
|
977
|
+
return (0, import_react_query.useQuery)({
|
|
978
|
+
queryKey: [ASSET_RATE_QUERY_KEY, address, assetSymbol],
|
|
979
|
+
enabled: !!address && !!assetSymbol,
|
|
980
|
+
refetchInterval: refetchInterval || BALANCE_POLLING_INTERVAL * 2,
|
|
981
|
+
staleTime: staleTime || BALANCE_POLLING_INTERVAL * 2,
|
|
982
|
+
// keeps the data fresh for 1 minute before considering it stale
|
|
983
|
+
queryFn: async () => await getAssetRate(assetSymbol)
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
var import_react_query, ASSET_API_URL;
|
|
987
|
+
var init_useAssetRate = __esm({
|
|
988
|
+
"src/internal/components/BalanceFeedProvider/useAssetRate.ts"() {
|
|
989
|
+
init_SessionContext();
|
|
990
|
+
import_react_query = require("@tanstack/react-query");
|
|
991
|
+
init_constants2();
|
|
992
|
+
ASSET_API_URL = "https://api.binance.com/api/v3/ticker/price";
|
|
993
|
+
}
|
|
994
|
+
});
|
|
995
|
+
|
|
996
|
+
// src/internal/components/BalanceFeedProvider/BalanceFeedProvider.tsx
|
|
959
997
|
function BalanceFeedProvider() {
|
|
960
998
|
const config = useProviderConfig().config;
|
|
961
999
|
const address = useSession((st) => st.address);
|
|
@@ -970,14 +1008,9 @@ function BalanceFeedProvider() {
|
|
|
970
1008
|
() => useLayoutDataStore.getState().setCryptoSymbol(chainConfig?.nativeCurrency?.symbol || "LUMIA"),
|
|
971
1009
|
[chainConfig]
|
|
972
1010
|
);
|
|
973
|
-
const { data: cryptoRate } = (
|
|
974
|
-
queryKey: [LUMIA_RATE_QUERY_KEY, address, balanceSymbol],
|
|
975
|
-
enabled: !!address && !!balanceSymbol,
|
|
976
|
-
refetchInterval: BALANCE_POLLING_INTERVAL * 2,
|
|
977
|
-
queryFn: async () => await getAssetRate(balanceSymbol, "USDT")
|
|
978
|
-
});
|
|
1011
|
+
const { data: cryptoRate } = useAssetUsdtRate(balanceSymbol);
|
|
979
1012
|
const isNativeBalanceFeedEnabled = !!balanceSymbol && !!chainConfig?.nativeCurrency.symbol && balanceSymbol === chainConfig?.nativeCurrency.symbol;
|
|
980
|
-
const { data: nativeBalance } = (0,
|
|
1013
|
+
const { data: nativeBalance } = (0, import_react_query2.useQuery)({
|
|
981
1014
|
enabled: !!isNativeBalanceFeedEnabled && !!address && !!publicClient,
|
|
982
1015
|
retry: false,
|
|
983
1016
|
refetchInterval: BALANCE_POLLING_INTERVAL,
|
|
@@ -1011,7 +1044,7 @@ function BalanceFeedProvider() {
|
|
|
1011
1044
|
symbol: projectAssetAssetSymbol
|
|
1012
1045
|
} = config.current?.projectAssets?.assets?.find((a) => a.symbol === config.current?.showBalanceAs) || {};
|
|
1013
1046
|
const isProjectAssetBalanceEnabled = !!balanceSymbol && !!projectAssetAssetSymbol && balanceSymbol === projectAssetAssetSymbol;
|
|
1014
|
-
const { data: projectAssetBalance } = (0,
|
|
1047
|
+
const { data: projectAssetBalance } = (0, import_react_query2.useQuery)({
|
|
1015
1048
|
retry: false,
|
|
1016
1049
|
refetchInterval: BALANCE_POLLING_INTERVAL,
|
|
1017
1050
|
enabled: !!address && !!isProjectAssetBalanceEnabled,
|
|
@@ -1035,7 +1068,7 @@ function BalanceFeedProvider() {
|
|
|
1035
1068
|
});
|
|
1036
1069
|
}, [isProjectAssetBalanceEnabled, projectAssetBalance]);
|
|
1037
1070
|
const isCustomAssetBalanceEnabled = !isNativeBalanceFeedEnabled && !isProjectAssetBalanceEnabled;
|
|
1038
|
-
const { data: customBalance } = (0,
|
|
1071
|
+
const { data: customBalance } = (0, import_react_query2.useQuery)({
|
|
1039
1072
|
enabled: !!isCustomAssetBalanceEnabled && !!balanceSymbol && !!chainConfig?.id && !!address && !!publicClient,
|
|
1040
1073
|
retry: false,
|
|
1041
1074
|
refetchInterval: BALANCE_POLLING_INTERVAL,
|
|
@@ -1083,21 +1116,18 @@ function BalanceFeedProvider() {
|
|
|
1083
1116
|
}, [isCustomAssetBalanceEnabled, customBalance, cryptoRate]);
|
|
1084
1117
|
return null;
|
|
1085
1118
|
}
|
|
1086
|
-
var import_read2,
|
|
1119
|
+
var import_read2, import_react_query2, import_react, import_viem2;
|
|
1087
1120
|
var init_BalanceFeedProvider = __esm({
|
|
1088
1121
|
"src/internal/components/BalanceFeedProvider/BalanceFeedProvider.tsx"() {
|
|
1089
1122
|
init_ProviderContext();
|
|
1090
1123
|
init_SessionContext();
|
|
1091
1124
|
import_read2 = require("@embarkai/core/read");
|
|
1092
|
-
|
|
1125
|
+
import_react_query2 = require("@tanstack/react-query");
|
|
1093
1126
|
import_react = require("react");
|
|
1094
1127
|
import_viem2 = require("viem");
|
|
1095
1128
|
init_useLayoutDataStore();
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
CUSTOM_BALANCE_QUERY_KEY = "embarkai-custom-balance-query-key";
|
|
1099
|
-
LUMIA_RATE_QUERY_KEY = "lembarkai-root-balance-rate-query-key";
|
|
1100
|
-
SKIP_SYMBOLS = ["TEST", "USDT", "P", "$P USDT"];
|
|
1129
|
+
init_constants2();
|
|
1130
|
+
init_useAssetRate();
|
|
1101
1131
|
}
|
|
1102
1132
|
});
|
|
1103
1133
|
|
|
@@ -1105,12 +1135,13 @@ var init_BalanceFeedProvider = __esm({
|
|
|
1105
1135
|
var init_BalanceFeedProvider2 = __esm({
|
|
1106
1136
|
"src/internal/components/BalanceFeedProvider/index.ts"() {
|
|
1107
1137
|
init_BalanceFeedProvider();
|
|
1138
|
+
init_useAssetRate();
|
|
1108
1139
|
}
|
|
1109
1140
|
});
|
|
1110
1141
|
|
|
1111
1142
|
// src/internal/clients/account/constants.ts
|
|
1112
1143
|
var PAYMASTER_VERIFICATION_GAS_LIMIT, PAYMASTER_POSTOP_GAS_LIMIT, MAX_BUNDLER_VERIFICATION_GAS, PAYMASTER_VERIFICATION_GAS, PAYMASTER_POSTOP_GAS, SALT_ZERO, SALT_ZERO_UINT256, COMPAT_CREATE_ABI, executeAbi, executeBatchAbi, entryPointDepositAbi;
|
|
1113
|
-
var
|
|
1144
|
+
var init_constants3 = __esm({
|
|
1114
1145
|
"src/internal/clients/account/constants.ts"() {
|
|
1115
1146
|
PAYMASTER_VERIFICATION_GAS_LIMIT = "0x249f0";
|
|
1116
1147
|
PAYMASTER_POSTOP_GAS_LIMIT = "0x186a0";
|
|
@@ -1243,12 +1274,12 @@ var init_helpers = __esm({
|
|
|
1243
1274
|
// src/internal/components/ChainSync/ChainSync.tsx
|
|
1244
1275
|
function ChainSync() {
|
|
1245
1276
|
const { config, callbacksRef } = useProviderConfig();
|
|
1246
|
-
const qc = (0,
|
|
1277
|
+
const qc = (0, import_react_query3.useQueryClient)();
|
|
1247
1278
|
const address = useSession((st) => st.address);
|
|
1248
1279
|
const session = useSession((st) => st.session);
|
|
1249
1280
|
const activeChainId = useSession((st) => st.activeChainId);
|
|
1250
1281
|
const prevChainId = (0, import_react2.useRef)(null);
|
|
1251
|
-
const { mutate: updateChain } = (0,
|
|
1282
|
+
const { mutate: updateChain } = (0, import_react_query3.useMutation)({
|
|
1252
1283
|
mutationFn: async (toChainId) => {
|
|
1253
1284
|
if (!toChainId) {
|
|
1254
1285
|
console.warn("[CHAIN_SYNC] No target chainId provided, skipping chain update");
|
|
@@ -1344,17 +1375,17 @@ function ChainSync() {
|
|
|
1344
1375
|
}, [address, activeChainId]);
|
|
1345
1376
|
return null;
|
|
1346
1377
|
}
|
|
1347
|
-
var import_read3,
|
|
1378
|
+
var import_read3, import_react_query3, import_lodash_es, import_react2;
|
|
1348
1379
|
var init_ChainSync = __esm({
|
|
1349
1380
|
"src/internal/components/ChainSync/ChainSync.tsx"() {
|
|
1350
1381
|
init_ProviderContext();
|
|
1351
1382
|
init_SessionContext();
|
|
1352
1383
|
import_read3 = require("@embarkai/core/read");
|
|
1353
|
-
|
|
1384
|
+
import_react_query3 = require("@tanstack/react-query");
|
|
1354
1385
|
import_lodash_es = require("lodash-es");
|
|
1355
1386
|
import_react2 = require("react");
|
|
1356
1387
|
init_auth();
|
|
1357
|
-
|
|
1388
|
+
init_constants3();
|
|
1358
1389
|
init_helpers();
|
|
1359
1390
|
init_useLayoutDataStore();
|
|
1360
1391
|
init_vaultClient();
|
|
@@ -1528,7 +1559,7 @@ var init_session = __esm({
|
|
|
1528
1559
|
import_accounts = require("viem/accounts");
|
|
1529
1560
|
import_read4 = require("@embarkai/core/read");
|
|
1530
1561
|
init_iframe_mpc_client();
|
|
1531
|
-
|
|
1562
|
+
init_constants3();
|
|
1532
1563
|
init_helpers();
|
|
1533
1564
|
init_register_smart_account_address();
|
|
1534
1565
|
}
|
|
@@ -1832,7 +1863,7 @@ var init_user_operations = __esm({
|
|
|
1832
1863
|
import_accounts2 = require("viem/accounts");
|
|
1833
1864
|
init_akHelpers();
|
|
1834
1865
|
init_iframe_mpc_client();
|
|
1835
|
-
|
|
1866
|
+
init_constants3();
|
|
1836
1867
|
init_helpers();
|
|
1837
1868
|
init_resolve_paymaster();
|
|
1838
1869
|
}
|
|
@@ -2002,14 +2033,14 @@ var init_deposit_for_smart_account = __esm({
|
|
|
2002
2033
|
import_viem5 = require("viem");
|
|
2003
2034
|
import_accounts4 = require("viem/accounts");
|
|
2004
2035
|
init_base2();
|
|
2005
|
-
|
|
2036
|
+
init_constants3();
|
|
2006
2037
|
}
|
|
2007
2038
|
});
|
|
2008
2039
|
|
|
2009
2040
|
// src/internal/clients/account/index.ts
|
|
2010
2041
|
var init_account = __esm({
|
|
2011
2042
|
"src/internal/clients/account/index.ts"() {
|
|
2012
|
-
|
|
2043
|
+
init_constants3();
|
|
2013
2044
|
init_session();
|
|
2014
2045
|
init_user_operations();
|
|
2015
2046
|
init_signing();
|
|
@@ -2540,7 +2571,7 @@ var init_useOpenPage = __esm({
|
|
|
2540
2571
|
// src/internal/hooks/useBackupStatusChanges.ts
|
|
2541
2572
|
function useBackupStatusChanges() {
|
|
2542
2573
|
const { open: openPage } = useOpenPage();
|
|
2543
|
-
const { mutate: handleBackupStatusChanged } = (0,
|
|
2574
|
+
const { mutate: handleBackupStatusChanged } = (0, import_react_query4.useMutation)({
|
|
2544
2575
|
mutationFn: async (event) => {
|
|
2545
2576
|
const customEvent = event;
|
|
2546
2577
|
console.log("[BACKUP STATUS] changed:", customEvent?.detail);
|
|
@@ -2581,12 +2612,12 @@ function useBackupStatusChanges() {
|
|
|
2581
2612
|
};
|
|
2582
2613
|
}, []);
|
|
2583
2614
|
}
|
|
2584
|
-
var
|
|
2615
|
+
var import_react_query4, import_react5, NEW_USER_TOUCHED_KEY;
|
|
2585
2616
|
var init_useBackupStatusChanges = __esm({
|
|
2586
2617
|
"src/internal/hooks/useBackupStatusChanges.ts"() {
|
|
2587
2618
|
init_SessionContext();
|
|
2588
2619
|
init_useOpenPage();
|
|
2589
|
-
|
|
2620
|
+
import_react_query4 = require("@tanstack/react-query");
|
|
2590
2621
|
import_react5 = require("react");
|
|
2591
2622
|
init_auth();
|
|
2592
2623
|
init_vaultClient();
|
|
@@ -6484,7 +6515,7 @@ var init_zh = __esm({
|
|
|
6484
6515
|
|
|
6485
6516
|
// src/i18n/constants.ts
|
|
6486
6517
|
var PASSPORT_TRANSLATIONS, PASSPORT_NAMESPACE, LOCAL_STORAGE_I18N_KEY;
|
|
6487
|
-
var
|
|
6518
|
+
var init_constants4 = __esm({
|
|
6488
6519
|
"src/i18n/constants.ts"() {
|
|
6489
6520
|
init_en();
|
|
6490
6521
|
init_ru();
|
|
@@ -6620,14 +6651,14 @@ var import_react_i18next;
|
|
|
6620
6651
|
var init_useT = __esm({
|
|
6621
6652
|
"src/i18n/useT.ts"() {
|
|
6622
6653
|
import_react_i18next = require("react-i18next");
|
|
6623
|
-
|
|
6654
|
+
init_constants4();
|
|
6624
6655
|
}
|
|
6625
6656
|
});
|
|
6626
6657
|
|
|
6627
6658
|
// src/i18n/index.ts
|
|
6628
6659
|
var init_i18n = __esm({
|
|
6629
6660
|
"src/i18n/index.ts"() {
|
|
6630
|
-
|
|
6661
|
+
init_constants4();
|
|
6631
6662
|
init_languages();
|
|
6632
6663
|
init_utils3();
|
|
6633
6664
|
init_useT();
|
|
@@ -7023,7 +7054,7 @@ function Email() {
|
|
|
7023
7054
|
const setIsLoading = useSession((st) => st.setIsLoading);
|
|
7024
7055
|
const isMobileView = useLayoutStore((st) => st.isMobileView);
|
|
7025
7056
|
const { email, alert: alert2, setEmail, setExpiresIn, setStep, setAlert } = useAuthStore();
|
|
7026
|
-
const { mutate: onSendVerificationCode } = (0,
|
|
7057
|
+
const { mutate: onSendVerificationCode } = (0, import_react_query5.useMutation)({
|
|
7027
7058
|
mutationFn: async (mail) => {
|
|
7028
7059
|
const isEmailValid = mail.length !== 0 && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(mail);
|
|
7029
7060
|
if (!isEmailValid) {
|
|
@@ -7136,14 +7167,14 @@ function Email() {
|
|
|
7136
7167
|
)
|
|
7137
7168
|
] });
|
|
7138
7169
|
}
|
|
7139
|
-
var
|
|
7170
|
+
var import_react_query5, import_lucide_react5, import_react13, import_jsx_runtime14;
|
|
7140
7171
|
var init_Email = __esm({
|
|
7141
7172
|
"src/internal/components/AuthMenu/SignInStep/Email.tsx"() {
|
|
7142
7173
|
init_initial();
|
|
7143
7174
|
init_ProviderContext();
|
|
7144
7175
|
init_SessionContext();
|
|
7145
7176
|
init_i18n();
|
|
7146
|
-
|
|
7177
|
+
import_react_query5 = require("@tanstack/react-query");
|
|
7147
7178
|
import_lucide_react5 = require("lucide-react");
|
|
7148
7179
|
import_react13 = require("react");
|
|
7149
7180
|
init_useLayoutStore();
|
|
@@ -7780,7 +7811,7 @@ var init_SignInStep2 = __esm({
|
|
|
7780
7811
|
|
|
7781
7812
|
// src/internal/components/KeyshareRestoreMenu/constants.ts
|
|
7782
7813
|
var AVAILABLE_CLOUD_PROVIDERS_QUERY_KEY, CHECK_BACKUP_QUERY_KEY;
|
|
7783
|
-
var
|
|
7814
|
+
var init_constants5 = __esm({
|
|
7784
7815
|
"src/internal/components/KeyshareRestoreMenu/constants.ts"() {
|
|
7785
7816
|
AVAILABLE_CLOUD_PROVIDERS_QUERY_KEY = "get-available-cloud-providers-query";
|
|
7786
7817
|
CHECK_BACKUP_QUERY_KEY = "check-backup-availability-query";
|
|
@@ -7790,7 +7821,7 @@ var init_constants4 = __esm({
|
|
|
7790
7821
|
// src/internal/components/AuthMenu/useAuthMenuHanders.ts
|
|
7791
7822
|
function useAuthMenuHandlers() {
|
|
7792
7823
|
const { config, callbacksRef } = useProviderConfig();
|
|
7793
|
-
const qc = (0,
|
|
7824
|
+
const qc = (0, import_react_query6.useQueryClient)();
|
|
7794
7825
|
const pendingLoginResponseRef = (0, import_react16.useRef)(null);
|
|
7795
7826
|
const [telegramCleanup, setTelegramCleanup] = (0, import_react16.useState)(null);
|
|
7796
7827
|
const usePaymaster = useSession((st) => st.usePaymaster);
|
|
@@ -7961,17 +7992,17 @@ function useAuthMenuHandlers() {
|
|
|
7961
7992
|
goBackToSignIn
|
|
7962
7993
|
};
|
|
7963
7994
|
}
|
|
7964
|
-
var
|
|
7995
|
+
var import_react_query6, import_react16;
|
|
7965
7996
|
var init_useAuthMenuHanders = __esm({
|
|
7966
7997
|
"src/internal/components/AuthMenu/useAuthMenuHanders.ts"() {
|
|
7967
7998
|
init_ProviderContext();
|
|
7968
7999
|
init_SessionContext();
|
|
7969
|
-
|
|
8000
|
+
import_react_query6 = require("@tanstack/react-query");
|
|
7970
8001
|
import_react16 = require("react");
|
|
7971
8002
|
init_auth();
|
|
7972
8003
|
init_useLayoutDataStore();
|
|
7973
8004
|
init_useLayoutStore();
|
|
7974
|
-
|
|
8005
|
+
init_constants5();
|
|
7975
8006
|
init_useAuthStore();
|
|
7976
8007
|
}
|
|
7977
8008
|
});
|
|
@@ -8153,7 +8184,7 @@ function VerifyStep(props) {
|
|
|
8153
8184
|
setAlert
|
|
8154
8185
|
} = useAuthStore();
|
|
8155
8186
|
const [resendCount, setResendCount] = (0, import_react18.useState)(0);
|
|
8156
|
-
const { mutate: onVerifyCode, isPending: isCodeVerifying } = (0,
|
|
8187
|
+
const { mutate: onVerifyCode, isPending: isCodeVerifying } = (0, import_react_query7.useMutation)({
|
|
8157
8188
|
mutationFn: async (code) => {
|
|
8158
8189
|
setIsLoading(true);
|
|
8159
8190
|
setAlert(null);
|
|
@@ -8222,7 +8253,7 @@ function VerifyStep(props) {
|
|
|
8222
8253
|
setIsLoading(false);
|
|
8223
8254
|
}
|
|
8224
8255
|
});
|
|
8225
|
-
const { mutate: onResendCode, isPending: isCodeResending } = (0,
|
|
8256
|
+
const { mutate: onResendCode, isPending: isCodeResending } = (0, import_react_query7.useMutation)({
|
|
8226
8257
|
mutationFn: async () => {
|
|
8227
8258
|
setAlert(null);
|
|
8228
8259
|
setIsLoading(true);
|
|
@@ -8301,14 +8332,14 @@ function VerifyStep(props) {
|
|
|
8301
8332
|
)
|
|
8302
8333
|
] });
|
|
8303
8334
|
}
|
|
8304
|
-
var
|
|
8335
|
+
var import_react_query7, import_lucide_react7, import_react18, import_jsx_runtime19;
|
|
8305
8336
|
var init_VerifyStep = __esm({
|
|
8306
8337
|
"src/internal/components/AuthMenu/VerifyStep/VerifyStep.tsx"() {
|
|
8307
8338
|
init_initial();
|
|
8308
8339
|
init_ProviderContext();
|
|
8309
8340
|
init_SessionContext();
|
|
8310
8341
|
init_i18n();
|
|
8311
|
-
|
|
8342
|
+
import_react_query7 = require("@tanstack/react-query");
|
|
8312
8343
|
import_lucide_react7 = require("lucide-react");
|
|
8313
8344
|
import_react18 = require("react");
|
|
8314
8345
|
init_icons();
|
|
@@ -9601,14 +9632,14 @@ var init_config = __esm({
|
|
|
9601
9632
|
// src/internal/components/BuyMenu/binance/BinanceSummary.tsx
|
|
9602
9633
|
function BinanceSummary(props) {
|
|
9603
9634
|
const { payment } = props;
|
|
9604
|
-
const qc = (0,
|
|
9635
|
+
const qc = (0, import_react_query8.useQueryClient)();
|
|
9605
9636
|
const { t } = useT();
|
|
9606
9637
|
const embarkaiAddress = useSession((st) => st.address);
|
|
9607
9638
|
const chainConfig = useSession((st) => st.chainConfig);
|
|
9608
9639
|
const { selectedFiat, selectedCrypto, srcQueryAmount, redirecting, setRedirecting } = useBuyMenuStore();
|
|
9609
9640
|
const quoteData = useBinanceStore((st) => st.quoteData);
|
|
9610
9641
|
const cryptoToRecieve = Number(quoteData?.totalAmount || "0");
|
|
9611
|
-
const { mutate: checkoutFundWalletOrder, isPending: isFundWalletOrderCheckouting } = (0,
|
|
9642
|
+
const { mutate: checkoutFundWalletOrder, isPending: isFundWalletOrderCheckouting } = (0, import_react_query8.useMutation)({
|
|
9612
9643
|
mutationFn: async () => {
|
|
9613
9644
|
setRedirecting(true);
|
|
9614
9645
|
return await createPreorderMutation({
|
|
@@ -9717,14 +9748,14 @@ function BinanceSummary(props) {
|
|
|
9717
9748
|
)
|
|
9718
9749
|
] });
|
|
9719
9750
|
}
|
|
9720
|
-
var
|
|
9751
|
+
var import_react_query8, import_lucide_react12, import_jsx_runtime37;
|
|
9721
9752
|
var init_BinanceSummary = __esm({
|
|
9722
9753
|
"src/internal/components/BuyMenu/binance/BinanceSummary.tsx"() {
|
|
9723
9754
|
init_utils2();
|
|
9724
9755
|
init_SessionContext();
|
|
9725
9756
|
init_i18n();
|
|
9726
9757
|
init_priceFormatter();
|
|
9727
|
-
|
|
9758
|
+
import_react_query8 = require("@tanstack/react-query");
|
|
9728
9759
|
import_lucide_react12 = require("lucide-react");
|
|
9729
9760
|
init_button();
|
|
9730
9761
|
init_highlight();
|
|
@@ -10028,7 +10059,7 @@ function BinanceTxHistory() {
|
|
|
10028
10059
|
isFetching: isTxDataFetching,
|
|
10029
10060
|
hasNextPage,
|
|
10030
10061
|
fetchNextPage
|
|
10031
|
-
} = (0,
|
|
10062
|
+
} = (0, import_react_query9.useInfiniteQuery)({
|
|
10032
10063
|
initialPageParam: 1,
|
|
10033
10064
|
queryKey: [QUERY_KEYS2.binanceTransactions, walletAddress],
|
|
10034
10065
|
getNextPageParam: (lastPage) => lastPage.page < lastPage.pageCount ? lastPage.page + 1 : void 0,
|
|
@@ -10074,14 +10105,14 @@ function BinanceTxHistory() {
|
|
|
10074
10105
|
)
|
|
10075
10106
|
] });
|
|
10076
10107
|
}
|
|
10077
|
-
var
|
|
10108
|
+
var import_react_query9, import_dayjs, import_lodash_es8, import_lucide_react13, import_react24, import_jsx_runtime39, TRANSACTIONS_PAGESIZE, SHOW_STATUSES;
|
|
10078
10109
|
var init_BinanceTxHistory = __esm({
|
|
10079
10110
|
"src/internal/components/BuyMenu/binance/BinanceTxHistory.tsx"() {
|
|
10080
10111
|
init_tokens();
|
|
10081
10112
|
init_utils2();
|
|
10082
10113
|
init_SessionContext();
|
|
10083
10114
|
init_i18n();
|
|
10084
|
-
|
|
10115
|
+
import_react_query9 = require("@tanstack/react-query");
|
|
10085
10116
|
import_dayjs = __toESM(require("dayjs"), 1);
|
|
10086
10117
|
import_lodash_es8 = require("lodash-es");
|
|
10087
10118
|
import_lucide_react13 = require("lucide-react");
|
|
@@ -10102,7 +10133,7 @@ var init_BinanceTxHistory = __esm({
|
|
|
10102
10133
|
|
|
10103
10134
|
// src/internal/components/BuyMenu/binance/useBinanceSseTracing.ts
|
|
10104
10135
|
function useBinanceSseTxTracing(walletAddress) {
|
|
10105
|
-
const qc = (0,
|
|
10136
|
+
const qc = (0, import_react_query10.useQueryClient)();
|
|
10106
10137
|
const debounceRef = (0, import_react25.useRef)(null);
|
|
10107
10138
|
(0, import_react25.useEffect)(() => {
|
|
10108
10139
|
if (!walletAddress) return;
|
|
@@ -10126,10 +10157,10 @@ function useBinanceSseTxTracing(walletAddress) {
|
|
|
10126
10157
|
};
|
|
10127
10158
|
}, [walletAddress, qc]);
|
|
10128
10159
|
}
|
|
10129
|
-
var
|
|
10160
|
+
var import_react_query10, import_react25;
|
|
10130
10161
|
var init_useBinanceSseTracing = __esm({
|
|
10131
10162
|
"src/internal/components/BuyMenu/binance/useBinanceSseTracing.ts"() {
|
|
10132
|
-
|
|
10163
|
+
import_react_query10 = require("@tanstack/react-query");
|
|
10133
10164
|
import_react25 = require("react");
|
|
10134
10165
|
init_iframe_manager();
|
|
10135
10166
|
init_queryKeys();
|
|
@@ -10148,7 +10179,7 @@ var init_utils6 = __esm({
|
|
|
10148
10179
|
|
|
10149
10180
|
// src/internal/components/BuyMenu/binance/Binance.tsx
|
|
10150
10181
|
function Binance() {
|
|
10151
|
-
const qc = (0,
|
|
10182
|
+
const qc = (0, import_react_query11.useQueryClient)();
|
|
10152
10183
|
const { t } = useT();
|
|
10153
10184
|
const chainConfig = useSession((st) => st.chainConfig);
|
|
10154
10185
|
const walletAddress = useSession((st) => st.address);
|
|
@@ -10172,13 +10203,13 @@ function Binance() {
|
|
|
10172
10203
|
useBuyMenuStore.getState().setRenderKey(`${selectedCrypto}-${selectedFiat}-${Date.now()}`);
|
|
10173
10204
|
}, [isCurrurenciesSelected]);
|
|
10174
10205
|
useBinanceSseTxTracing(walletAddress);
|
|
10175
|
-
const { data: tradingPairsData, isLoading: isTradingPairsLoading } = (0,
|
|
10206
|
+
const { data: tradingPairsData, isLoading: isTradingPairsLoading } = (0, import_react_query11.useQuery)({
|
|
10176
10207
|
retry: false,
|
|
10177
10208
|
enabled: !!walletAddress,
|
|
10178
10209
|
queryKey: [QUERY_KEYS2.binanceTradingPairs, walletAddress],
|
|
10179
10210
|
queryFn: async () => await getTradingPairsQuery()
|
|
10180
10211
|
});
|
|
10181
|
-
const { data: networksData = null, isLoading: isNetworksDataLoading } = (0,
|
|
10212
|
+
const { data: networksData = null, isLoading: isNetworksDataLoading } = (0, import_react_query11.useQuery)({
|
|
10182
10213
|
retry: false,
|
|
10183
10214
|
enabled: !!walletAddress,
|
|
10184
10215
|
queryKey: [QUERY_KEYS2.binanceNetworks, walletAddress],
|
|
@@ -10187,7 +10218,7 @@ function Binance() {
|
|
|
10187
10218
|
const networkAvailableCryptoList = networksData?.data?.filter(
|
|
10188
10219
|
(ntw) => ntw.networks.map((n) => n.network).includes(CHAIN_ID_TO_BINANCE_NETWORK_TICKER[chainConfig.id] || "UNSUPPORTED")
|
|
10189
10220
|
) || [];
|
|
10190
|
-
const { data: paymentModesData = null, isFetching: isPaymentModesLoading } = (0,
|
|
10221
|
+
const { data: paymentModesData = null, isFetching: isPaymentModesLoading } = (0, import_react_query11.useQuery)({
|
|
10191
10222
|
retry: false,
|
|
10192
10223
|
enabled: !!walletAddress && !!selectedCrypto && !!selectedFiat,
|
|
10193
10224
|
// && srcQueryAmount > 0,
|
|
@@ -10205,7 +10236,7 @@ function Binance() {
|
|
|
10205
10236
|
(0, import_react26.useEffect)(() => {
|
|
10206
10237
|
useBuyMenuStore.getState().setMinAmount(Number(selectedPaymentMode?.fiatMinLimit || "0"));
|
|
10207
10238
|
}, [selectedPaymentMode]);
|
|
10208
|
-
const { mutate: estimateQuote, isPending: isQuoteEstimating } = (0,
|
|
10239
|
+
const { mutate: estimateQuote, isPending: isQuoteEstimating } = (0, import_react_query11.useMutation)({
|
|
10209
10240
|
mutationFn: async () => {
|
|
10210
10241
|
return await getQuoteQuery({
|
|
10211
10242
|
fiatCurrency: selectedFiat,
|
|
@@ -10367,13 +10398,13 @@ function Binance() {
|
|
|
10367
10398
|
)
|
|
10368
10399
|
] });
|
|
10369
10400
|
}
|
|
10370
|
-
var
|
|
10401
|
+
var import_react_query11, import_lucide_react14, import_react26, import_jsx_runtime40, PREFERRED_PAYMENT_METHOD, PREFERRED_FIATS, PREFERRED_CRYPTOS;
|
|
10371
10402
|
var init_Binance = __esm({
|
|
10372
10403
|
"src/internal/components/BuyMenu/binance/Binance.tsx"() {
|
|
10373
10404
|
init_utils2();
|
|
10374
10405
|
init_SessionContext();
|
|
10375
10406
|
init_i18n();
|
|
10376
|
-
|
|
10407
|
+
import_react_query11 = require("@tanstack/react-query");
|
|
10377
10408
|
import_lucide_react14 = require("lucide-react");
|
|
10378
10409
|
import_react26 = require("react");
|
|
10379
10410
|
init_button();
|
|
@@ -10468,7 +10499,7 @@ function FinchPaySummary(props) {
|
|
|
10468
10499
|
const walletAddress = useSession((st) => st.address);
|
|
10469
10500
|
const redirecting = useBuyMenuStore((st) => st.redirecting);
|
|
10470
10501
|
const srcQueryAmount = useBuyMenuStore((st) => st.srcQueryAmount);
|
|
10471
|
-
const { mutate: checkoutFundWalletOrder, isPending: isFundWalletOrderCheckouting } = (0,
|
|
10502
|
+
const { mutate: checkoutFundWalletOrder, isPending: isFundWalletOrderCheckouting } = (0, import_react_query12.useMutation)({
|
|
10472
10503
|
mutationFn: async () => {
|
|
10473
10504
|
useBuyMenuStore.getState().setRedirecting(true);
|
|
10474
10505
|
return createWidgetUrlMutation({
|
|
@@ -10552,14 +10583,14 @@ function FinchPaySummary(props) {
|
|
|
10552
10583
|
)
|
|
10553
10584
|
] });
|
|
10554
10585
|
}
|
|
10555
|
-
var
|
|
10586
|
+
var import_react_query12, import_lucide_react15, import_jsx_runtime41;
|
|
10556
10587
|
var init_FinchPaySummary = __esm({
|
|
10557
10588
|
"src/internal/components/BuyMenu/finchpay/FinchPaySummary.tsx"() {
|
|
10558
10589
|
init_utils2();
|
|
10559
10590
|
init_SessionContext();
|
|
10560
10591
|
init_i18n();
|
|
10561
10592
|
init_priceFormatter();
|
|
10562
|
-
|
|
10593
|
+
import_react_query12 = require("@tanstack/react-query");
|
|
10563
10594
|
import_lucide_react15 = require("lucide-react");
|
|
10564
10595
|
init_button();
|
|
10565
10596
|
init_highlight();
|
|
@@ -10656,7 +10687,7 @@ function FinchPayTxHistory() {
|
|
|
10656
10687
|
isFetching: isTxDataFetching,
|
|
10657
10688
|
hasNextPage,
|
|
10658
10689
|
fetchNextPage
|
|
10659
|
-
} = (0,
|
|
10690
|
+
} = (0, import_react_query13.useInfiniteQuery)({
|
|
10660
10691
|
initialPageParam: 1,
|
|
10661
10692
|
queryKey: [QUERY_KEYS2.finchPayTransactionList, walletAddress],
|
|
10662
10693
|
getNextPageParam: (lastPage) => lastPage.page < lastPage.pageCount ? lastPage.page + 1 : void 0,
|
|
@@ -10726,13 +10757,13 @@ function FinchPayTxHistory() {
|
|
|
10726
10757
|
] })
|
|
10727
10758
|
] });
|
|
10728
10759
|
}
|
|
10729
|
-
var
|
|
10760
|
+
var import_react_query13, import_dayjs2, import_lucide_react16, import_react27, import_jsx_runtime42, TRANSACTIONS_PAGESIZE2;
|
|
10730
10761
|
var init_FinchPayTxHistory = __esm({
|
|
10731
10762
|
"src/internal/components/BuyMenu/finchpay/FinchPayTxHistory.tsx"() {
|
|
10732
10763
|
init_utils2();
|
|
10733
10764
|
init_SessionContext();
|
|
10734
10765
|
init_i18n();
|
|
10735
|
-
|
|
10766
|
+
import_react_query13 = require("@tanstack/react-query");
|
|
10736
10767
|
import_dayjs2 = __toESM(require("dayjs"), 1);
|
|
10737
10768
|
import_lucide_react16 = require("lucide-react");
|
|
10738
10769
|
import_react27 = require("react");
|
|
@@ -10761,7 +10792,7 @@ var init_networks = __esm({
|
|
|
10761
10792
|
|
|
10762
10793
|
// src/internal/components/BuyMenu/finchpay/useFinchpaySseTxTracing.ts
|
|
10763
10794
|
function useFinchpaySseTxTracing(walletAddress) {
|
|
10764
|
-
const qc = (0,
|
|
10795
|
+
const qc = (0, import_react_query14.useQueryClient)();
|
|
10765
10796
|
const debounceRef = (0, import_react28.useRef)(null);
|
|
10766
10797
|
(0, import_react28.useEffect)(() => {
|
|
10767
10798
|
if (!walletAddress) return;
|
|
@@ -10785,10 +10816,10 @@ function useFinchpaySseTxTracing(walletAddress) {
|
|
|
10785
10816
|
};
|
|
10786
10817
|
}, [walletAddress, qc]);
|
|
10787
10818
|
}
|
|
10788
|
-
var
|
|
10819
|
+
var import_react_query14, import_react28;
|
|
10789
10820
|
var init_useFinchpaySseTxTracing = __esm({
|
|
10790
10821
|
"src/internal/components/BuyMenu/finchpay/useFinchpaySseTxTracing.ts"() {
|
|
10791
|
-
|
|
10822
|
+
import_react_query14 = require("@tanstack/react-query");
|
|
10792
10823
|
import_react28 = require("react");
|
|
10793
10824
|
init_iframe_manager();
|
|
10794
10825
|
init_queryKeys();
|
|
@@ -10814,7 +10845,7 @@ var init_utils7 = __esm({
|
|
|
10814
10845
|
|
|
10815
10846
|
// src/internal/components/BuyMenu/finchpay/FinchPay.tsx
|
|
10816
10847
|
function FinchPay() {
|
|
10817
|
-
const qc = (0,
|
|
10848
|
+
const qc = (0, import_react_query15.useQueryClient)();
|
|
10818
10849
|
const { t, i18n } = useT();
|
|
10819
10850
|
const resolvedLanguage = i18n.resolvedLanguage || "en";
|
|
10820
10851
|
const chainConfig = useSession((st) => st.chainConfig);
|
|
@@ -10835,7 +10866,7 @@ function FinchPay() {
|
|
|
10835
10866
|
data: currenciesData = { networks: [], coins: [], fiats: [], currentNetworkCoins: [] },
|
|
10836
10867
|
isLoading: isCurrenciesLoading,
|
|
10837
10868
|
error: currenciesError
|
|
10838
|
-
} = (0,
|
|
10869
|
+
} = (0, import_react_query15.useQuery)({
|
|
10839
10870
|
retry: false,
|
|
10840
10871
|
enabled: !!walletAddress,
|
|
10841
10872
|
queryKey: [QUERY_KEYS2.finchPayCurrencies, walletAddress],
|
|
@@ -10876,7 +10907,7 @@ function FinchPay() {
|
|
|
10876
10907
|
data: limitsData,
|
|
10877
10908
|
isLoading: isLimitsLoading,
|
|
10878
10909
|
error: limitsError
|
|
10879
|
-
} = (0,
|
|
10910
|
+
} = (0, import_react_query15.useQuery)({
|
|
10880
10911
|
retry: false,
|
|
10881
10912
|
enabled: !!walletAddress && !!selectedFiat && !!selectedCryptoMeta?.ticker,
|
|
10882
10913
|
queryKey: [QUERY_KEYS2.finchPayLimits, selectedFiat || null, selectedCryptoMeta?.ticker || null],
|
|
@@ -10899,7 +10930,7 @@ function FinchPay() {
|
|
|
10899
10930
|
data: estimateData = null,
|
|
10900
10931
|
isLoading: isEstimateLoading,
|
|
10901
10932
|
error: estimateError
|
|
10902
|
-
} = (0,
|
|
10933
|
+
} = (0, import_react_query15.useQuery)({
|
|
10903
10934
|
retry: false,
|
|
10904
10935
|
enabled: !!selectedCrypto && !!selectedFiat && !!walletAddress && srcQueryAmount > 0 && minimum > 0 && srcQueryAmount >= minimum,
|
|
10905
10936
|
queryKey: [
|
|
@@ -11057,14 +11088,14 @@ function FinchPay() {
|
|
|
11057
11088
|
)
|
|
11058
11089
|
] });
|
|
11059
11090
|
}
|
|
11060
|
-
var
|
|
11091
|
+
var import_react_query15, import_lucide_react17, import_react29, import_jsx_runtime43;
|
|
11061
11092
|
var init_FinchPay = __esm({
|
|
11062
11093
|
"src/internal/components/BuyMenu/finchpay/FinchPay.tsx"() {
|
|
11063
11094
|
init_priceFormatter();
|
|
11064
11095
|
init_utils2();
|
|
11065
11096
|
init_SessionContext();
|
|
11066
11097
|
init_i18n();
|
|
11067
|
-
|
|
11098
|
+
import_react_query15 = require("@tanstack/react-query");
|
|
11068
11099
|
import_lucide_react17 = require("lucide-react");
|
|
11069
11100
|
import_react29 = require("react");
|
|
11070
11101
|
init_button();
|
|
@@ -11729,7 +11760,7 @@ function ChainsMenu() {
|
|
|
11729
11760
|
);
|
|
11730
11761
|
}, [isTestnets]);
|
|
11731
11762
|
const activeDefaultPaymasterAddress = (0, import_read15.getChainConfig)(activeChainId)?.paymasterAddress;
|
|
11732
|
-
const { data: activePaymasterData, isLoading: isActivePaymasterDataLoading } = (0,
|
|
11763
|
+
const { data: activePaymasterData, isLoading: isActivePaymasterDataLoading } = (0, import_react_query16.useQuery)({
|
|
11733
11764
|
queryKey: ["chain-paymaster", config.current.projectId, activeChainId],
|
|
11734
11765
|
queryFn: async () => {
|
|
11735
11766
|
if (!activeChainId) {
|
|
@@ -11797,7 +11828,7 @@ function ChainsMenu() {
|
|
|
11797
11828
|
}
|
|
11798
11829
|
);
|
|
11799
11830
|
}
|
|
11800
|
-
var import_core2, import_read15,
|
|
11831
|
+
var import_core2, import_read15, import_react_query16, import_lucide_react20, import_react31, import_jsx_runtime53;
|
|
11801
11832
|
var init_ChainsMenu = __esm({
|
|
11802
11833
|
"src/internal/components/ChainsMenu/ChainsMenu.tsx"() {
|
|
11803
11834
|
init_networks3();
|
|
@@ -11806,7 +11837,7 @@ var init_ChainsMenu = __esm({
|
|
|
11806
11837
|
init_useT();
|
|
11807
11838
|
import_core2 = require("@embarkai/core");
|
|
11808
11839
|
import_read15 = require("@embarkai/core/read");
|
|
11809
|
-
|
|
11840
|
+
import_react_query16 = require("@tanstack/react-query");
|
|
11810
11841
|
import_lucide_react20 = require("lucide-react");
|
|
11811
11842
|
import_react31 = require("react");
|
|
11812
11843
|
init_resolve_paymaster();
|
|
@@ -11944,14 +11975,14 @@ async function unlinkDevice(deviceId) {
|
|
|
11944
11975
|
}
|
|
11945
11976
|
}
|
|
11946
11977
|
function useDevices() {
|
|
11947
|
-
return (0,
|
|
11978
|
+
return (0, import_react_query17.useQuery)({
|
|
11948
11979
|
queryKey: [DEVICES_QUERY_KEY],
|
|
11949
11980
|
queryFn: getDevices
|
|
11950
11981
|
});
|
|
11951
11982
|
}
|
|
11952
11983
|
function useLinkDevice() {
|
|
11953
|
-
const qc = (0,
|
|
11954
|
-
return (0,
|
|
11984
|
+
const qc = (0, import_react_query17.useQueryClient)();
|
|
11985
|
+
return (0, import_react_query17.useMutation)({
|
|
11955
11986
|
mutationFn: (code) => linkDevice(code),
|
|
11956
11987
|
onSuccess: () => {
|
|
11957
11988
|
qc.invalidateQueries({ queryKey: [DEVICES_QUERY_KEY] });
|
|
@@ -11959,18 +11990,18 @@ function useLinkDevice() {
|
|
|
11959
11990
|
});
|
|
11960
11991
|
}
|
|
11961
11992
|
function useUnlinkDevice() {
|
|
11962
|
-
const qc = (0,
|
|
11963
|
-
return (0,
|
|
11993
|
+
const qc = (0, import_react_query17.useQueryClient)();
|
|
11994
|
+
return (0, import_react_query17.useMutation)({
|
|
11964
11995
|
mutationFn: (deviceId) => unlinkDevice(deviceId),
|
|
11965
11996
|
onSuccess: () => {
|
|
11966
11997
|
qc.invalidateQueries({ queryKey: [DEVICES_QUERY_KEY] });
|
|
11967
11998
|
}
|
|
11968
11999
|
});
|
|
11969
12000
|
}
|
|
11970
|
-
var
|
|
12001
|
+
var import_react_query17, DEVICES_QUERY_KEY;
|
|
11971
12002
|
var init_devices = __esm({
|
|
11972
12003
|
"src/internal/clients/devices.ts"() {
|
|
11973
|
-
|
|
12004
|
+
import_react_query17 = require("@tanstack/react-query");
|
|
11974
12005
|
init_httpClient();
|
|
11975
12006
|
DEVICES_QUERY_KEY = "devices";
|
|
11976
12007
|
}
|
|
@@ -13739,7 +13770,7 @@ var init_cloudStorage = __esm({
|
|
|
13739
13770
|
|
|
13740
13771
|
// src/internal/components/KeyshareRestoreMenu/hooks/useCreateBackup.ts
|
|
13741
13772
|
function useCreateBackup() {
|
|
13742
|
-
const qc = (0,
|
|
13773
|
+
const qc = (0, import_react_query18.useQueryClient)();
|
|
13743
13774
|
const session = useSession((st) => st.session);
|
|
13744
13775
|
const address = useSession((st) => st.address);
|
|
13745
13776
|
const hasServerVault = useSession((st) => st.hasServerVault);
|
|
@@ -13757,7 +13788,7 @@ function useCreateBackup() {
|
|
|
13757
13788
|
const onBackupSuccess = (0, import_react37.useCallback)(() => {
|
|
13758
13789
|
console.log("[EMBARKAI BACKUP] Backup created successfully");
|
|
13759
13790
|
}, [hasServerVault]);
|
|
13760
|
-
const { mutate: createPasswordBackup, isPending: isPasswordBackupCreating } = (0,
|
|
13791
|
+
const { mutate: createPasswordBackup, isPending: isPasswordBackupCreating } = (0, import_react_query18.useMutation)({
|
|
13761
13792
|
mutationFn: async () => {
|
|
13762
13793
|
const iframeManager = getIframeManager();
|
|
13763
13794
|
if (!iframeManager) {
|
|
@@ -13802,7 +13833,7 @@ function useCreateBackup() {
|
|
|
13802
13833
|
qc.invalidateQueries({ queryKey: [CHECK_BACKUP_QUERY_KEY, address] });
|
|
13803
13834
|
}
|
|
13804
13835
|
});
|
|
13805
|
-
const { mutate: createLocalBackup, isPending: isLocalBackupCreating } = (0,
|
|
13836
|
+
const { mutate: createLocalBackup, isPending: isLocalBackupCreating } = (0, import_react_query18.useMutation)({
|
|
13806
13837
|
mutationFn: async () => {
|
|
13807
13838
|
const iframeManager = getIframeManager();
|
|
13808
13839
|
if (!usePasskey && !restorePassword) {
|
|
@@ -13836,7 +13867,7 @@ function useCreateBackup() {
|
|
|
13836
13867
|
qc.invalidateQueries({ queryKey: [CHECK_BACKUP_QUERY_KEY, address] });
|
|
13837
13868
|
}
|
|
13838
13869
|
});
|
|
13839
|
-
const { mutate: createPasskey, isPending: isPasskeyCreating } = (0,
|
|
13870
|
+
const { mutate: createPasskey, isPending: isPasskeyCreating } = (0, import_react_query18.useMutation)({
|
|
13840
13871
|
mutationFn: async () => {
|
|
13841
13872
|
useRestoreStore.getState().setIsCreatingPasskey(true);
|
|
13842
13873
|
const { linkPasskeyWithWebAuthn: linkPasskeyWithWebAuthn2 } = await Promise.resolve().then(() => (init_passkey2(), passkey_exports2));
|
|
@@ -13863,7 +13894,7 @@ function useCreateBackup() {
|
|
|
13863
13894
|
}
|
|
13864
13895
|
}
|
|
13865
13896
|
});
|
|
13866
|
-
const { mutate: createCloudBackup, isPending: isCloudBackupCreating } = (0,
|
|
13897
|
+
const { mutate: createCloudBackup, isPending: isCloudBackupCreating } = (0, import_react_query18.useMutation)({
|
|
13867
13898
|
mutationFn: async () => {
|
|
13868
13899
|
const iframeManager = getIframeManager();
|
|
13869
13900
|
const encryptedData = await iframeManager.encryptBackupData(passportUserId);
|
|
@@ -13914,16 +13945,16 @@ function useCreateBackup() {
|
|
|
13914
13945
|
createPasskey
|
|
13915
13946
|
};
|
|
13916
13947
|
}
|
|
13917
|
-
var
|
|
13948
|
+
var import_react_query18, import_react37;
|
|
13918
13949
|
var init_useCreateBackup = __esm({
|
|
13919
13950
|
"src/internal/components/KeyshareRestoreMenu/hooks/useCreateBackup.ts"() {
|
|
13920
13951
|
init_SessionContext();
|
|
13921
|
-
|
|
13952
|
+
import_react_query18 = require("@tanstack/react-query");
|
|
13922
13953
|
import_react37 = require("react");
|
|
13923
13954
|
init_auth();
|
|
13924
13955
|
init_useLayoutStore();
|
|
13925
13956
|
init_iframe_manager();
|
|
13926
|
-
|
|
13957
|
+
init_constants5();
|
|
13927
13958
|
init_hooks();
|
|
13928
13959
|
}
|
|
13929
13960
|
});
|
|
@@ -13942,7 +13973,7 @@ function useRestoreAccount() {
|
|
|
13942
13973
|
setRestoreFile
|
|
13943
13974
|
} = useRestoreStore();
|
|
13944
13975
|
const { onRestoreSuccess } = useOnRestoreSuccess();
|
|
13945
|
-
const { mutate: restoreFromServer2, isPending: isRestoringFromServer } = (0,
|
|
13976
|
+
const { mutate: restoreFromServer2, isPending: isRestoringFromServer } = (0, import_react_query19.useMutation)({
|
|
13946
13977
|
mutationFn: async () => {
|
|
13947
13978
|
setError(null);
|
|
13948
13979
|
setSuccess(null);
|
|
@@ -13981,7 +14012,7 @@ function useRestoreAccount() {
|
|
|
13981
14012
|
setError(errorMsg);
|
|
13982
14013
|
}
|
|
13983
14014
|
});
|
|
13984
|
-
const { mutate: restoreFromFile, isPending: isRestoringFromFile } = (0,
|
|
14015
|
+
const { mutate: restoreFromFile, isPending: isRestoringFromFile } = (0, import_react_query19.useMutation)({
|
|
13985
14016
|
mutationFn: async () => {
|
|
13986
14017
|
if (!restoreFile) {
|
|
13987
14018
|
throw new Error("Please select a backup file");
|
|
@@ -14015,7 +14046,7 @@ function useRestoreAccount() {
|
|
|
14015
14046
|
setError(errorMsg);
|
|
14016
14047
|
}
|
|
14017
14048
|
});
|
|
14018
|
-
const { mutate: restoreFromCloud, isPending: isRestoringFromCloud } = (0,
|
|
14049
|
+
const { mutate: restoreFromCloud, isPending: isRestoringFromCloud } = (0, import_react_query19.useMutation)({
|
|
14019
14050
|
mutationFn: async () => {
|
|
14020
14051
|
alert("Cloud restore not implemented yet");
|
|
14021
14052
|
return null;
|
|
@@ -14034,11 +14065,11 @@ function useRestoreAccount() {
|
|
|
14034
14065
|
isRestoringFromCloud
|
|
14035
14066
|
};
|
|
14036
14067
|
}
|
|
14037
|
-
var
|
|
14068
|
+
var import_react_query19;
|
|
14038
14069
|
var init_useRestoreAccount = __esm({
|
|
14039
14070
|
"src/internal/components/KeyshareRestoreMenu/hooks/useRestoreAccount.ts"() {
|
|
14040
14071
|
init_SessionContext();
|
|
14041
|
-
|
|
14072
|
+
import_react_query19 = require("@tanstack/react-query");
|
|
14042
14073
|
init_useOnRestoreSuccess();
|
|
14043
14074
|
init_useRestoreStore();
|
|
14044
14075
|
}
|
|
@@ -14542,7 +14573,7 @@ var init_File = __esm({
|
|
|
14542
14573
|
function Server(props) {
|
|
14543
14574
|
const { isLoading, mode = "restore", serverHandler, createPasskeyHandler } = props;
|
|
14544
14575
|
const address = useSession((st) => st.address);
|
|
14545
|
-
const qc = (0,
|
|
14576
|
+
const qc = (0, import_react_query20.useQueryClient)();
|
|
14546
14577
|
const { t } = useT();
|
|
14547
14578
|
const usePasskey = useRestoreStore((st) => st.usePasskey);
|
|
14548
14579
|
const setUsePasskey = useRestoreStore((st) => st.setUsePasskey);
|
|
@@ -14582,19 +14613,19 @@ function Server(props) {
|
|
|
14582
14613
|
] })
|
|
14583
14614
|
] });
|
|
14584
14615
|
}
|
|
14585
|
-
var
|
|
14616
|
+
var import_react_query20, import_dayjs3, import_lucide_react31, import_react41, import_jsx_runtime63;
|
|
14586
14617
|
var init_Server = __esm({
|
|
14587
14618
|
"src/internal/components/KeyshareRestoreMenu/methods/Server.tsx"() {
|
|
14588
14619
|
init_SessionContext();
|
|
14589
14620
|
init_useT();
|
|
14590
14621
|
init_icons();
|
|
14591
|
-
|
|
14622
|
+
import_react_query20 = require("@tanstack/react-query");
|
|
14592
14623
|
import_dayjs3 = __toESM(require("dayjs"), 1);
|
|
14593
14624
|
import_lucide_react31 = require("lucide-react");
|
|
14594
14625
|
import_react41 = require("react");
|
|
14595
14626
|
init_highlight();
|
|
14596
14627
|
init_PasswordPasskey();
|
|
14597
|
-
|
|
14628
|
+
init_constants5();
|
|
14598
14629
|
init_hooks();
|
|
14599
14630
|
import_jsx_runtime63 = require("react/jsx-runtime");
|
|
14600
14631
|
}
|
|
@@ -14744,7 +14775,7 @@ function Cloud2(props) {
|
|
|
14744
14775
|
data: cloudProviders = [],
|
|
14745
14776
|
isLoading: isCloudProvidersLoading,
|
|
14746
14777
|
error: cloudProvidersError
|
|
14747
|
-
} = (0,
|
|
14778
|
+
} = (0, import_react_query21.useQuery)({
|
|
14748
14779
|
retry: false,
|
|
14749
14780
|
enabled: !!passportUserId,
|
|
14750
14781
|
queryKey: [AVAILABLE_CLOUD_PROVIDERS_QUERY_KEY, passportUserId],
|
|
@@ -14818,17 +14849,17 @@ function Cloud2(props) {
|
|
|
14818
14849
|
)
|
|
14819
14850
|
] });
|
|
14820
14851
|
}
|
|
14821
|
-
var
|
|
14852
|
+
var import_react_query21, import_lucide_react33, import_react42, import_jsx_runtime65;
|
|
14822
14853
|
var init_Cloud = __esm({
|
|
14823
14854
|
"src/internal/components/KeyshareRestoreMenu/methods/Cloud.tsx"() {
|
|
14824
14855
|
init_SessionContext();
|
|
14825
|
-
|
|
14856
|
+
import_react_query21 = require("@tanstack/react-query");
|
|
14826
14857
|
import_lucide_react33 = require("lucide-react");
|
|
14827
14858
|
import_react42 = require("react");
|
|
14828
14859
|
init_button();
|
|
14829
14860
|
init_select();
|
|
14830
14861
|
init_PasswordPasskey();
|
|
14831
|
-
|
|
14862
|
+
init_constants5();
|
|
14832
14863
|
init_useRestoreStore();
|
|
14833
14864
|
import_jsx_runtime65 = require("react/jsx-runtime");
|
|
14834
14865
|
}
|
|
@@ -14998,13 +15029,13 @@ var init_methods = __esm({
|
|
|
14998
15029
|
});
|
|
14999
15030
|
|
|
15000
15031
|
// src/internal/components/KeyshareRestoreMenu/KeyshareRestoreMenu.tsx
|
|
15001
|
-
var
|
|
15032
|
+
var import_react_query22, import_lucide_react35, import_react44, import_wagmi, import_jsx_runtime67, RESTORE_COMPONENTS, KeyshareRestoreMenu;
|
|
15002
15033
|
var init_KeyshareRestoreMenu = __esm({
|
|
15003
15034
|
"src/internal/components/KeyshareRestoreMenu/KeyshareRestoreMenu.tsx"() {
|
|
15004
15035
|
init_ProviderContext();
|
|
15005
15036
|
init_SessionContext();
|
|
15006
15037
|
init_i18n();
|
|
15007
|
-
|
|
15038
|
+
import_react_query22 = require("@tanstack/react-query");
|
|
15008
15039
|
import_lucide_react35 = require("lucide-react");
|
|
15009
15040
|
import_react44 = require("react");
|
|
15010
15041
|
import_wagmi = require("wagmi");
|
|
@@ -15017,7 +15048,7 @@ var init_KeyshareRestoreMenu = __esm({
|
|
|
15017
15048
|
init_highlight();
|
|
15018
15049
|
init_switch();
|
|
15019
15050
|
init_components2();
|
|
15020
|
-
|
|
15051
|
+
init_constants5();
|
|
15021
15052
|
init_hooks();
|
|
15022
15053
|
init_useOnRestoreSuccess();
|
|
15023
15054
|
init_methods();
|
|
@@ -15029,7 +15060,7 @@ var init_KeyshareRestoreMenu = __esm({
|
|
|
15029
15060
|
guardian: Guardian
|
|
15030
15061
|
};
|
|
15031
15062
|
KeyshareRestoreMenu = () => {
|
|
15032
|
-
const qc = (0,
|
|
15063
|
+
const qc = (0, import_react_query22.useQueryClient)();
|
|
15033
15064
|
const { callbacksRef } = useProviderConfig();
|
|
15034
15065
|
const { t } = useT();
|
|
15035
15066
|
const address = useSession((st) => st.address);
|
|
@@ -15071,7 +15102,7 @@ var init_KeyshareRestoreMenu = __esm({
|
|
|
15071
15102
|
restoreFromCloud,
|
|
15072
15103
|
isRestoringFromCloud
|
|
15073
15104
|
} = useRestoreAccount();
|
|
15074
|
-
const { data: serverRecoveryStatus, isLoading: isBackupStatusLoading } = (0,
|
|
15105
|
+
const { data: serverRecoveryStatus, isLoading: isBackupStatusLoading } = (0, import_react_query22.useQuery)({
|
|
15075
15106
|
retry: false,
|
|
15076
15107
|
queryKey: [CHECK_BACKUP_QUERY_KEY, address],
|
|
15077
15108
|
queryFn: async () => await getShareRecoveryStats()
|
|
@@ -15080,7 +15111,7 @@ var init_KeyshareRestoreMenu = __esm({
|
|
|
15080
15111
|
(0, import_react44.useEffect)(() => {
|
|
15081
15112
|
if (!!hasServerBackup) useRestoreStore.getState().setMethod("server");
|
|
15082
15113
|
}, [hasServerBackup]);
|
|
15083
|
-
const { mutate: disconnect, isPending: isDisconnecting } = (0,
|
|
15114
|
+
const { mutate: disconnect, isPending: isDisconnecting } = (0, import_react_query22.useMutation)({
|
|
15084
15115
|
mutationFn: async () => {
|
|
15085
15116
|
const { setStatus, setIsLoading } = useSession.getState();
|
|
15086
15117
|
const { setError, setMethod } = useRestoreStore.getState();
|
|
@@ -15243,7 +15274,7 @@ function KeyshareBackupMenu() {
|
|
|
15243
15274
|
setMethod(null);
|
|
15244
15275
|
};
|
|
15245
15276
|
}, []);
|
|
15246
|
-
const { data: serverRecoveryStatus, isLoading: isRecoveryLoading } = (0,
|
|
15277
|
+
const { data: serverRecoveryStatus, isLoading: isRecoveryLoading } = (0, import_react_query23.useQuery)({
|
|
15247
15278
|
retry: false,
|
|
15248
15279
|
enabled: !!address,
|
|
15249
15280
|
queryKey: [CHECK_BACKUP_QUERY_KEY, address],
|
|
@@ -15369,12 +15400,12 @@ function KeyshareBackupMenu() {
|
|
|
15369
15400
|
}
|
|
15370
15401
|
);
|
|
15371
15402
|
}
|
|
15372
|
-
var
|
|
15403
|
+
var import_react_query23, import_lucide_react36, import_react45, import_jsx_runtime68, COMPONENTS;
|
|
15373
15404
|
var init_KeyshareBackupMenu = __esm({
|
|
15374
15405
|
"src/internal/components/KeyshareRestoreMenu/KeyshareBackupMenu.tsx"() {
|
|
15375
15406
|
init_SessionContext();
|
|
15376
15407
|
init_i18n();
|
|
15377
|
-
|
|
15408
|
+
import_react_query23 = require("@tanstack/react-query");
|
|
15378
15409
|
import_lucide_react36 = require("lucide-react");
|
|
15379
15410
|
import_react45 = require("react");
|
|
15380
15411
|
init_useLayoutDataStore();
|
|
@@ -15385,7 +15416,7 @@ var init_KeyshareBackupMenu = __esm({
|
|
|
15385
15416
|
init_highlight();
|
|
15386
15417
|
init_switch();
|
|
15387
15418
|
init_components2();
|
|
15388
|
-
|
|
15419
|
+
init_constants5();
|
|
15389
15420
|
init_hooks();
|
|
15390
15421
|
init_methods();
|
|
15391
15422
|
import_jsx_runtime68 = require("react/jsx-runtime");
|
|
@@ -15685,18 +15716,18 @@ var init_KycMenu = __esm({
|
|
|
15685
15716
|
// src/internal/hooks/useUserProfile.ts
|
|
15686
15717
|
function useUserProfile() {
|
|
15687
15718
|
const address = useSession((st) => st.address);
|
|
15688
|
-
return (0,
|
|
15719
|
+
return (0, import_react_query24.useQuery)({
|
|
15689
15720
|
queryKey: [QUERY_KEYS.userProfile, address],
|
|
15690
15721
|
queryFn: getUserProfile,
|
|
15691
15722
|
enabled: !!address,
|
|
15692
15723
|
retry: false
|
|
15693
15724
|
});
|
|
15694
15725
|
}
|
|
15695
|
-
var
|
|
15726
|
+
var import_react_query24;
|
|
15696
15727
|
var init_useUserProfile = __esm({
|
|
15697
15728
|
"src/internal/hooks/useUserProfile.ts"() {
|
|
15698
15729
|
init_SessionContext();
|
|
15699
|
-
|
|
15730
|
+
import_react_query24 = require("@tanstack/react-query");
|
|
15700
15731
|
init_profile();
|
|
15701
15732
|
}
|
|
15702
15733
|
});
|
|
@@ -15851,7 +15882,7 @@ var init_common = __esm({
|
|
|
15851
15882
|
// src/internal/components/ManageWalletMenu/hooks/useProvidersList.ts
|
|
15852
15883
|
function useProvidersList() {
|
|
15853
15884
|
const address = useSession((st) => st.address);
|
|
15854
|
-
return (0,
|
|
15885
|
+
return (0, import_react_query25.useQuery)({
|
|
15855
15886
|
retry: false,
|
|
15856
15887
|
// hook is invoked on multiple pages to preload cache
|
|
15857
15888
|
enabled: !!address,
|
|
@@ -15860,11 +15891,11 @@ function useProvidersList() {
|
|
|
15860
15891
|
queryFn: async () => getLinkedProviders()
|
|
15861
15892
|
});
|
|
15862
15893
|
}
|
|
15863
|
-
var
|
|
15894
|
+
var import_react_query25, PROVIDERS_QUERY_KEY;
|
|
15864
15895
|
var init_useProvidersList = __esm({
|
|
15865
15896
|
"src/internal/components/ManageWalletMenu/hooks/useProvidersList.ts"() {
|
|
15866
15897
|
init_SessionContext();
|
|
15867
|
-
|
|
15898
|
+
import_react_query25 = require("@tanstack/react-query");
|
|
15868
15899
|
init_common();
|
|
15869
15900
|
PROVIDERS_QUERY_KEY = "lumia-passport-providers-query";
|
|
15870
15901
|
}
|
|
@@ -15924,9 +15955,9 @@ var init_MainMenu2 = __esm({
|
|
|
15924
15955
|
|
|
15925
15956
|
// src/modules/linkedProfiles.ts
|
|
15926
15957
|
function useLinkedProfiles() {
|
|
15927
|
-
const qc = (0,
|
|
15958
|
+
const qc = (0, import_react_query26.useQueryClient)();
|
|
15928
15959
|
const address = useSession((st) => st.address);
|
|
15929
|
-
const { data, isFetching, isLoading, error } = (0,
|
|
15960
|
+
const { data, isFetching, isLoading, error } = (0, import_react_query26.useQuery)({
|
|
15930
15961
|
retry: false,
|
|
15931
15962
|
enabled: !!address,
|
|
15932
15963
|
queryKey: [LINKED_PROFILES_QUERY_KEY, address],
|
|
@@ -15951,10 +15982,10 @@ function useLinkedProfiles() {
|
|
|
15951
15982
|
}, [qc, address]);
|
|
15952
15983
|
return { profiles, avatar, isLoading, isFetching, error, refresh };
|
|
15953
15984
|
}
|
|
15954
|
-
var
|
|
15985
|
+
var import_react_query26, import_react49, LINKED_PROFILES_QUERY_KEY;
|
|
15955
15986
|
var init_linkedProfiles = __esm({
|
|
15956
15987
|
"src/modules/linkedProfiles.ts"() {
|
|
15957
|
-
|
|
15988
|
+
import_react_query26 = require("@tanstack/react-query");
|
|
15958
15989
|
import_react49 = require("react");
|
|
15959
15990
|
init_SessionContext();
|
|
15960
15991
|
init_auth();
|
|
@@ -15999,7 +16030,7 @@ function EmailForm() {
|
|
|
15999
16030
|
const isLoading = useSession((st) => st.isLoading);
|
|
16000
16031
|
const setIsLoading = useSession((st) => st.setIsLoading);
|
|
16001
16032
|
const { email, setEmail, setAlert, setEmailCodeExpiresIn, setEmailStep } = useManageWalletStore();
|
|
16002
|
-
const { mutate: onSendVerificationCode } = (0,
|
|
16033
|
+
const { mutate: onSendVerificationCode } = (0, import_react_query27.useMutation)({
|
|
16003
16034
|
mutationFn: async () => {
|
|
16004
16035
|
if (!email) return;
|
|
16005
16036
|
setIsLoading(true);
|
|
@@ -16084,14 +16115,14 @@ function EmailForm() {
|
|
|
16084
16115
|
)
|
|
16085
16116
|
] });
|
|
16086
16117
|
}
|
|
16087
|
-
var
|
|
16118
|
+
var import_react_query27, import_lucide_react41, import_jsx_runtime74;
|
|
16088
16119
|
var init_EmailForm = __esm({
|
|
16089
16120
|
"src/internal/components/ManageWalletMenu/EmailForm.tsx"() {
|
|
16090
16121
|
init_initial();
|
|
16091
16122
|
init_ProviderContext();
|
|
16092
16123
|
init_SessionContext();
|
|
16093
16124
|
init_i18n();
|
|
16094
|
-
|
|
16125
|
+
import_react_query27 = require("@tanstack/react-query");
|
|
16095
16126
|
import_lucide_react41 = require("lucide-react");
|
|
16096
16127
|
init_projectId();
|
|
16097
16128
|
init_button();
|
|
@@ -16139,7 +16170,7 @@ function useSendVerificationCode() {
|
|
|
16139
16170
|
const setAlert = useManageWalletStore((st) => st.setAlert);
|
|
16140
16171
|
const setLinkIsLoading = useManageWalletStore((st) => st.setLinkIsLoading);
|
|
16141
16172
|
const setEmailCodeExpiresIn = useManageWalletStore((st) => st.setEmailCodeExpiresIn);
|
|
16142
|
-
return (0,
|
|
16173
|
+
return (0, import_react_query28.useMutation)({
|
|
16143
16174
|
mutationFn: async (email) => {
|
|
16144
16175
|
if (!email) {
|
|
16145
16176
|
throw new Error("Email is required");
|
|
@@ -16160,10 +16191,10 @@ function useSendVerificationCode() {
|
|
|
16160
16191
|
}
|
|
16161
16192
|
});
|
|
16162
16193
|
}
|
|
16163
|
-
var
|
|
16194
|
+
var import_react_query28;
|
|
16164
16195
|
var init_useSendVerificationCode = __esm({
|
|
16165
16196
|
"src/internal/components/ManageWalletMenu/hooks/useSendVerificationCode.ts"() {
|
|
16166
|
-
|
|
16197
|
+
import_react_query28 = require("@tanstack/react-query");
|
|
16167
16198
|
init_email();
|
|
16168
16199
|
init_useStore();
|
|
16169
16200
|
}
|
|
@@ -16172,7 +16203,7 @@ var init_useSendVerificationCode = __esm({
|
|
|
16172
16203
|
// src/internal/components/ManageWalletMenu/hooks/useVerifyCode.ts
|
|
16173
16204
|
function useVerifyCode() {
|
|
16174
16205
|
const { callbacksRef } = useProviderConfig();
|
|
16175
|
-
const qc = (0,
|
|
16206
|
+
const qc = (0, import_react_query29.useQueryClient)();
|
|
16176
16207
|
const address = useSession((st) => st.address);
|
|
16177
16208
|
const setIsLoading = useSession((st) => st.setIsLoading);
|
|
16178
16209
|
const {
|
|
@@ -16186,7 +16217,7 @@ function useVerifyCode() {
|
|
|
16186
16217
|
setLinkIsLoading,
|
|
16187
16218
|
setAlert
|
|
16188
16219
|
} = useManageWalletStore();
|
|
16189
|
-
return (0,
|
|
16220
|
+
return (0, import_react_query29.useMutation)({
|
|
16190
16221
|
mutationFn: async (codeToVerify) => {
|
|
16191
16222
|
const code = codeToVerify ?? emailCode;
|
|
16192
16223
|
if (!code) {
|
|
@@ -16224,13 +16255,13 @@ function useVerifyCode() {
|
|
|
16224
16255
|
}
|
|
16225
16256
|
});
|
|
16226
16257
|
}
|
|
16227
|
-
var
|
|
16258
|
+
var import_react_query29;
|
|
16228
16259
|
var init_useVerifyCode = __esm({
|
|
16229
16260
|
"src/internal/components/ManageWalletMenu/hooks/useVerifyCode.ts"() {
|
|
16230
16261
|
init_ProviderContext();
|
|
16231
16262
|
init_SessionContext();
|
|
16232
16263
|
init_linkedProfiles();
|
|
16233
|
-
|
|
16264
|
+
import_react_query29 = require("@tanstack/react-query");
|
|
16234
16265
|
init_email();
|
|
16235
16266
|
init_useProvidersList();
|
|
16236
16267
|
init_useStore();
|
|
@@ -16249,7 +16280,7 @@ function normalizePasskeyLinkError(msg) {
|
|
|
16249
16280
|
return msg;
|
|
16250
16281
|
}
|
|
16251
16282
|
function AddProvider() {
|
|
16252
|
-
const qc = (0,
|
|
16283
|
+
const qc = (0, import_react_query30.useQueryClient)();
|
|
16253
16284
|
const { callbacksRef } = useProviderConfig();
|
|
16254
16285
|
const address = useSession((st) => st.address);
|
|
16255
16286
|
const { t } = useT();
|
|
@@ -16378,14 +16409,14 @@ function AddProvider() {
|
|
|
16378
16409
|
] })
|
|
16379
16410
|
] });
|
|
16380
16411
|
}
|
|
16381
|
-
var
|
|
16412
|
+
var import_react_query30, import_jsx_runtime75;
|
|
16382
16413
|
var init_AddProvider = __esm({
|
|
16383
16414
|
"src/internal/components/ManageWalletMenu/AddProvider.tsx"() {
|
|
16384
16415
|
init_ProviderContext();
|
|
16385
16416
|
init_SessionContext();
|
|
16386
16417
|
init_i18n();
|
|
16387
16418
|
init_linkedProfiles();
|
|
16388
|
-
|
|
16419
|
+
import_react_query30 = require("@tanstack/react-query");
|
|
16389
16420
|
init_icons();
|
|
16390
16421
|
init_passkey2();
|
|
16391
16422
|
init_useLayoutDataStore();
|
|
@@ -16437,7 +16468,7 @@ function normalizeSocialLinkError(message) {
|
|
|
16437
16468
|
return message;
|
|
16438
16469
|
}
|
|
16439
16470
|
function useLinkSocial() {
|
|
16440
|
-
const qc = (0,
|
|
16471
|
+
const qc = (0, import_react_query31.useQueryClient)();
|
|
16441
16472
|
const address = useSession((st) => st.address);
|
|
16442
16473
|
const {
|
|
16443
16474
|
config: { current: config },
|
|
@@ -16523,14 +16554,14 @@ function useLinkSocial() {
|
|
|
16523
16554
|
}
|
|
16524
16555
|
}, [providerType, linkIsLoading, socialLinkStarted, isWalletLinking, handleLinkSocialProvider]);
|
|
16525
16556
|
}
|
|
16526
|
-
var
|
|
16557
|
+
var import_react_query31, import_react50;
|
|
16527
16558
|
var init_useLinkSocial = __esm({
|
|
16528
16559
|
"src/internal/components/ManageWalletMenu/hooks/useLinkSocial.ts"() {
|
|
16529
16560
|
init_useLayoutDataStore();
|
|
16530
16561
|
init_ProviderContext();
|
|
16531
16562
|
init_SessionContext();
|
|
16532
16563
|
init_linkedProfiles();
|
|
16533
|
-
|
|
16564
|
+
import_react_query31 = require("@tanstack/react-query");
|
|
16534
16565
|
import_react50 = __toESM(require("react"), 1);
|
|
16535
16566
|
init_auth();
|
|
16536
16567
|
init_telegramBrowser();
|
|
@@ -16595,7 +16626,7 @@ function useLinkTelegram() {
|
|
|
16595
16626
|
config: { current: config },
|
|
16596
16627
|
callbacksRef
|
|
16597
16628
|
} = useProviderConfig();
|
|
16598
|
-
const qc = (0,
|
|
16629
|
+
const qc = (0, import_react_query32.useQueryClient)();
|
|
16599
16630
|
const address = useSession((st) => st.address);
|
|
16600
16631
|
const isWalletLinking = useLayoutDataStore((st) => st.isWalletLinking);
|
|
16601
16632
|
const { providerType, linkIsLoading, setLinkIsLoading, setProviderType, setAlert } = useManageWalletStore();
|
|
@@ -16671,13 +16702,13 @@ function useLinkTelegram() {
|
|
|
16671
16702
|
}
|
|
16672
16703
|
}, [providerType]);
|
|
16673
16704
|
}
|
|
16674
|
-
var
|
|
16705
|
+
var import_react_query32, import_react51;
|
|
16675
16706
|
var init_useLinkTelegram = __esm({
|
|
16676
16707
|
"src/internal/components/ManageWalletMenu/hooks/useLinkTelegram.ts"() {
|
|
16677
16708
|
init_ProviderContext();
|
|
16678
16709
|
init_SessionContext();
|
|
16679
16710
|
init_linkedProfiles();
|
|
16680
|
-
|
|
16711
|
+
import_react_query32 = require("@tanstack/react-query");
|
|
16681
16712
|
import_react51 = require("react");
|
|
16682
16713
|
init_telegram2();
|
|
16683
16714
|
init_useLayoutDataStore();
|
|
@@ -16971,7 +17002,7 @@ var init_ManageWallet = __esm({
|
|
|
16971
17002
|
|
|
16972
17003
|
// src/internal/components/ManageWalletMenu/UnlinkProviderMenu.tsx
|
|
16973
17004
|
function UnlinkProviderMenu() {
|
|
16974
|
-
const qc = (0,
|
|
17005
|
+
const qc = (0, import_react_query33.useQueryClient)();
|
|
16975
17006
|
const address = useSession((st) => st.address);
|
|
16976
17007
|
const { callbacksRef } = useProviderConfig();
|
|
16977
17008
|
const { disconnect: disconnectExternalWallet } = (0, import_wagmi2.useDisconnect)();
|
|
@@ -16980,7 +17011,7 @@ function UnlinkProviderMenu() {
|
|
|
16980
17011
|
const setPage = useLayoutDataStore((st) => st.setPage);
|
|
16981
17012
|
const { confirmUnlink, setConfirmUnlink, setAlert } = useManageWalletStore();
|
|
16982
17013
|
const [confirmInput, setConfirmInput] = (0, import_react53.useState)("");
|
|
16983
|
-
const { mutate: handleUnlinkProvider, isPending: isProviderUnlinking } = (0,
|
|
17014
|
+
const { mutate: handleUnlinkProvider, isPending: isProviderUnlinking } = (0, import_react_query33.useMutation)({
|
|
16984
17015
|
mutationFn: async () => {
|
|
16985
17016
|
if (!confirmUnlink) {
|
|
16986
17017
|
throw new Error("No provider to unlink");
|
|
@@ -17061,7 +17092,7 @@ function UnlinkProviderMenu() {
|
|
|
17061
17092
|
] })
|
|
17062
17093
|
] });
|
|
17063
17094
|
}
|
|
17064
|
-
var
|
|
17095
|
+
var import_react_query33, import_lucide_react45, import_react53, import_wagmi2, import_jsx_runtime79;
|
|
17065
17096
|
var init_UnlinkProviderMenu = __esm({
|
|
17066
17097
|
"src/internal/components/ManageWalletMenu/UnlinkProviderMenu.tsx"() {
|
|
17067
17098
|
init_useLayoutDataStore();
|
|
@@ -17069,7 +17100,7 @@ var init_UnlinkProviderMenu = __esm({
|
|
|
17069
17100
|
init_SessionContext();
|
|
17070
17101
|
init_useT();
|
|
17071
17102
|
init_linkedProfiles();
|
|
17072
|
-
|
|
17103
|
+
import_react_query33 = require("@tanstack/react-query");
|
|
17073
17104
|
import_lucide_react45 = require("lucide-react");
|
|
17074
17105
|
import_react53 = require("react");
|
|
17075
17106
|
import_wagmi2 = require("wagmi");
|
|
@@ -17196,7 +17227,7 @@ function useNicknameAvailability(currentNickname) {
|
|
|
17196
17227
|
if (!currentNickname) return;
|
|
17197
17228
|
useNicknameStore.getState().setNicknameValue(currentNickname);
|
|
17198
17229
|
}, [currentNickname]);
|
|
17199
|
-
const { mutate: checkAvailability, isPending: isCheckingAvailability } = (0,
|
|
17230
|
+
const { mutate: checkAvailability, isPending: isCheckingAvailability } = (0, import_react_query34.useMutation)({
|
|
17200
17231
|
mutationFn: async (newNickname) => {
|
|
17201
17232
|
useNicknameStore.getState().setError(null);
|
|
17202
17233
|
useNicknameStore.getState().setAvailability(null);
|
|
@@ -17228,11 +17259,11 @@ function useNicknameAvailability(currentNickname) {
|
|
|
17228
17259
|
}, [nicknameValue, currentNickname, debouncedCheckAvailability]);
|
|
17229
17260
|
return { isCheckingAvailability };
|
|
17230
17261
|
}
|
|
17231
|
-
var
|
|
17262
|
+
var import_react_query34, import_lodash_es10, import_react54, DEBOUNCE_MS;
|
|
17232
17263
|
var init_useNicknameAvailability = __esm({
|
|
17233
17264
|
"src/internal/components/NicknameMenu/useNicknameAvailability.ts"() {
|
|
17234
17265
|
init_i18n();
|
|
17235
|
-
|
|
17266
|
+
import_react_query34 = require("@tanstack/react-query");
|
|
17236
17267
|
import_lodash_es10 = require("lodash-es");
|
|
17237
17268
|
import_react54 = require("react");
|
|
17238
17269
|
init_nickname();
|
|
@@ -17247,7 +17278,7 @@ var init_useNicknameAvailability = __esm({
|
|
|
17247
17278
|
function NicknameEditForm(props) {
|
|
17248
17279
|
const { isInitialUser, nicknameInfo } = props;
|
|
17249
17280
|
const { handle: currentNickname, canChange } = nicknameInfo || { handle: "", canChange: false };
|
|
17250
|
-
const qc = (0,
|
|
17281
|
+
const qc = (0, import_react_query35.useQueryClient)();
|
|
17251
17282
|
const { t } = useT();
|
|
17252
17283
|
const address = useSession((st) => st.address);
|
|
17253
17284
|
const { callbacksRef } = useProviderConfig();
|
|
@@ -17263,7 +17294,7 @@ function NicknameEditForm(props) {
|
|
|
17263
17294
|
isSuccess: isNicknameChangeSuccess,
|
|
17264
17295
|
// error: nicknameChangeError,
|
|
17265
17296
|
reset
|
|
17266
|
-
} = (0,
|
|
17297
|
+
} = (0, import_react_query35.useMutation)({
|
|
17267
17298
|
mutationFn: (handle) => changeNickname(handle),
|
|
17268
17299
|
onSuccess: () => {
|
|
17269
17300
|
qc.invalidateQueries({ queryKey: [QUERY_KEYS.nicknameInfo] });
|
|
@@ -17382,13 +17413,13 @@ function NicknameEditForm(props) {
|
|
|
17382
17413
|
!!canChange && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "w-full flex items-center leadding-4 text-[10px] text-[var(--ui-kit-fg-muted)]", children: t("passport:nicknameMenu.hint") })
|
|
17383
17414
|
] });
|
|
17384
17415
|
}
|
|
17385
|
-
var
|
|
17416
|
+
var import_react_query35, import_lucide_react46, import_react55, import_jsx_runtime80;
|
|
17386
17417
|
var init_NicknameEditForm = __esm({
|
|
17387
17418
|
"src/internal/components/NicknameMenu/NicknameEditForm.tsx"() {
|
|
17388
17419
|
init_ProviderContext();
|
|
17389
17420
|
init_SessionContext();
|
|
17390
17421
|
init_i18n();
|
|
17391
|
-
|
|
17422
|
+
import_react_query35 = require("@tanstack/react-query");
|
|
17392
17423
|
import_lucide_react46 = require("lucide-react");
|
|
17393
17424
|
import_react55 = require("react");
|
|
17394
17425
|
init_icons();
|
|
@@ -17419,7 +17450,7 @@ function NicknameMenu() {
|
|
|
17419
17450
|
data: nicknameInfo,
|
|
17420
17451
|
isLoading: isNicknameInfoLoading,
|
|
17421
17452
|
error: nicknameInfoError
|
|
17422
|
-
} = (0,
|
|
17453
|
+
} = (0, import_react_query36.useQuery)({
|
|
17423
17454
|
retry: 1,
|
|
17424
17455
|
enabled: !!address,
|
|
17425
17456
|
queryKey: [QUERY_KEYS.nicknameInfo, address],
|
|
@@ -17500,13 +17531,13 @@ function NicknameMenu() {
|
|
|
17500
17531
|
}
|
|
17501
17532
|
);
|
|
17502
17533
|
}
|
|
17503
|
-
var
|
|
17534
|
+
var import_react_query36, import_dayjs4, import_lucide_react47, import_jsx_runtime81;
|
|
17504
17535
|
var init_NicknameMenu = __esm({
|
|
17505
17536
|
"src/internal/components/NicknameMenu/NicknameMenu.tsx"() {
|
|
17506
17537
|
init_SessionContext();
|
|
17507
17538
|
init_useOpenPage();
|
|
17508
17539
|
init_i18n();
|
|
17509
|
-
|
|
17540
|
+
import_react_query36 = require("@tanstack/react-query");
|
|
17510
17541
|
import_dayjs4 = __toESM(require("dayjs"), 1);
|
|
17511
17542
|
import_lucide_react47 = require("lucide-react");
|
|
17512
17543
|
init_nickname();
|
|
@@ -17577,7 +17608,7 @@ var init_useResolvedPublicClient = __esm({
|
|
|
17577
17608
|
|
|
17578
17609
|
// src/internal/hooks/useBlockscoutAssets/constants.ts
|
|
17579
17610
|
var NATIVE_BALANCE_QUERY_KEY2, WATCH_TOKENS_QUERY_KEY, BLOCKSCOUT_QUERY_KEY, ERC3643_DETECTION_QUERY_KEY, BALANCE_DEFAULT_QUERY_CFG, ERC3643_ABI;
|
|
17580
|
-
var
|
|
17611
|
+
var init_constants6 = __esm({
|
|
17581
17612
|
"src/internal/hooks/useBlockscoutAssets/constants.ts"() {
|
|
17582
17613
|
init_constants();
|
|
17583
17614
|
NATIVE_BALANCE_QUERY_KEY2 = "chain-native-coin-balance-query";
|
|
@@ -17606,7 +17637,7 @@ var init_constants5 = __esm({
|
|
|
17606
17637
|
// src/internal/hooks/useBlockscoutAssets/useNativeBalance.ts
|
|
17607
17638
|
function useNativeBalance(options) {
|
|
17608
17639
|
const { enabled, address, chainId, publicClient, nativeCurrency } = options;
|
|
17609
|
-
return (0,
|
|
17640
|
+
return (0, import_react_query37.useQuery)({
|
|
17610
17641
|
enabled: enabled && !!address && !!publicClient && !!nativeCurrency?.symbol,
|
|
17611
17642
|
...BALANCE_DEFAULT_QUERY_CFG,
|
|
17612
17643
|
queryKey: [NATIVE_BALANCE_QUERY_KEY2, chainId, address],
|
|
@@ -17621,12 +17652,12 @@ function useNativeBalance(options) {
|
|
|
17621
17652
|
}
|
|
17622
17653
|
});
|
|
17623
17654
|
}
|
|
17624
|
-
var
|
|
17655
|
+
var import_react_query37, import_viem6;
|
|
17625
17656
|
var init_useNativeBalance = __esm({
|
|
17626
17657
|
"src/internal/hooks/useBlockscoutAssets/useNativeBalance.ts"() {
|
|
17627
|
-
|
|
17658
|
+
import_react_query37 = require("@tanstack/react-query");
|
|
17628
17659
|
import_viem6 = require("viem");
|
|
17629
|
-
|
|
17660
|
+
init_constants6();
|
|
17630
17661
|
}
|
|
17631
17662
|
});
|
|
17632
17663
|
|
|
@@ -17639,7 +17670,7 @@ function useWatchTokens(options) {
|
|
|
17639
17670
|
const tokensForChain = chainId ? allWatchTokens?.[chainId] || [] : [];
|
|
17640
17671
|
return tokensForChain;
|
|
17641
17672
|
}, [config, chainId]);
|
|
17642
|
-
return (0,
|
|
17673
|
+
return (0, import_react_query38.useQuery)({
|
|
17643
17674
|
enabled: !!publicClient && !!address && enabled && watchTokens.length > 0,
|
|
17644
17675
|
...BALANCE_DEFAULT_QUERY_CFG,
|
|
17645
17676
|
queryKey: [WATCH_TOKENS_QUERY_KEY, chainId, address, watchTokens.map((t) => t.address).join(",")],
|
|
@@ -17702,14 +17733,14 @@ function useWatchTokens(options) {
|
|
|
17702
17733
|
}
|
|
17703
17734
|
});
|
|
17704
17735
|
}
|
|
17705
|
-
var
|
|
17736
|
+
var import_react_query38, import_react57, import_viem7;
|
|
17706
17737
|
var init_useWatchTokens = __esm({
|
|
17707
17738
|
"src/internal/hooks/useBlockscoutAssets/useWatchTokens.ts"() {
|
|
17708
17739
|
init_ProviderContext();
|
|
17709
|
-
|
|
17740
|
+
import_react_query38 = require("@tanstack/react-query");
|
|
17710
17741
|
import_react57 = require("react");
|
|
17711
17742
|
import_viem7 = require("viem");
|
|
17712
|
-
|
|
17743
|
+
init_constants6();
|
|
17713
17744
|
}
|
|
17714
17745
|
});
|
|
17715
17746
|
|
|
@@ -17848,7 +17879,7 @@ var init_utils8 = __esm({
|
|
|
17848
17879
|
// src/internal/hooks/useBlockscoutAssets/useBlockscoutAssets.ts
|
|
17849
17880
|
function useBlockscoutAssets(options) {
|
|
17850
17881
|
const { address, chainId, enabled = true, detectSecurityTokens = true } = options;
|
|
17851
|
-
const qc = (0,
|
|
17882
|
+
const qc = (0, import_react_query39.useQueryClient)();
|
|
17852
17883
|
const { chainConfig, publicClient, resolvedChainId } = useResolvedPublicClient(chainId, "useBlockscoutAssets");
|
|
17853
17884
|
const {
|
|
17854
17885
|
//
|
|
@@ -17886,7 +17917,7 @@ function useBlockscoutAssets(options) {
|
|
|
17886
17917
|
data: coreTokenBalances = [],
|
|
17887
17918
|
isLoading: coreTokensLoading,
|
|
17888
17919
|
isFetching: coreTokensFetching
|
|
17889
|
-
} = (0,
|
|
17920
|
+
} = (0, import_react_query39.useQuery)({
|
|
17890
17921
|
enabled: !!address && enabled && !blockscoutClient && !customTokenBalancesQuery && !customTokenBalancesQueryKey,
|
|
17891
17922
|
...BALANCE_DEFAULT_QUERY_CFG,
|
|
17892
17923
|
queryKey: [`NON-${BLOCKSCOUT_QUERY_KEY}`, resolvedChainId, address],
|
|
@@ -17902,7 +17933,7 @@ function useBlockscoutAssets(options) {
|
|
|
17902
17933
|
data: customItems = [],
|
|
17903
17934
|
isLoading: customLoading,
|
|
17904
17935
|
isFetching: customFetching
|
|
17905
|
-
} = (0,
|
|
17936
|
+
} = (0, import_react_query39.useQuery)({
|
|
17906
17937
|
enabled: !!address && enabled && !blockscoutClient && !!customTokenBalancesQuery && !!customTokenBalancesQueryKey,
|
|
17907
17938
|
...BALANCE_DEFAULT_QUERY_CFG,
|
|
17908
17939
|
queryKey: customTokenBalancesQueryKey,
|
|
@@ -17915,7 +17946,7 @@ function useBlockscoutAssets(options) {
|
|
|
17915
17946
|
isFetching: blockscoutFetching,
|
|
17916
17947
|
error: blockscoutError,
|
|
17917
17948
|
dataUpdatedAt
|
|
17918
|
-
} = (0,
|
|
17949
|
+
} = (0, import_react_query39.useQuery)({
|
|
17919
17950
|
enabled: !!address && enabled && !!blockscoutClient && !customTokenBalancesQuery && !customTokenBalancesQueryKey,
|
|
17920
17951
|
...BALANCE_DEFAULT_QUERY_CFG,
|
|
17921
17952
|
queryKey: [BLOCKSCOUT_QUERY_KEY, resolvedChainId, blockscoutApiUrl, address],
|
|
@@ -17926,7 +17957,7 @@ function useBlockscoutAssets(options) {
|
|
|
17926
17957
|
data: nftItems,
|
|
17927
17958
|
isLoading: nftsLoading,
|
|
17928
17959
|
isFetching: nftsFetching
|
|
17929
|
-
} = (0,
|
|
17960
|
+
} = (0, import_react_query39.useQuery)({
|
|
17930
17961
|
enabled: !!address && enabled && !!blockscoutClient,
|
|
17931
17962
|
...BALANCE_DEFAULT_QUERY_CFG,
|
|
17932
17963
|
queryKey: [BLOCKSCOUT_QUERY_KEY, "nfts", resolvedChainId, blockscoutApiUrl, address],
|
|
@@ -17936,7 +17967,7 @@ function useBlockscoutAssets(options) {
|
|
|
17936
17967
|
if (!blockscoutItems) return [];
|
|
17937
17968
|
return blockscoutItems.filter((tb) => tb.token.type === "ERC-20").map((tb) => tb.token.address_hash);
|
|
17938
17969
|
}, [blockscoutItems]);
|
|
17939
|
-
const { data: erc3643Results } = (0,
|
|
17970
|
+
const { data: erc3643Results } = (0, import_react_query39.useQuery)({
|
|
17940
17971
|
queryKey: [ERC3643_DETECTION_QUERY_KEY, resolvedChainId, address, erc20TokenAddresses],
|
|
17941
17972
|
queryFn: async () => {
|
|
17942
17973
|
if (!publicClient || erc20TokenAddresses.length === 0) {
|
|
@@ -18118,17 +18149,17 @@ function useBlockscoutAssets(options) {
|
|
|
18118
18149
|
lastUpdated: dataUpdatedAt || null
|
|
18119
18150
|
};
|
|
18120
18151
|
}
|
|
18121
|
-
var import_clients2,
|
|
18152
|
+
var import_clients2, import_react_query39, import_react58;
|
|
18122
18153
|
var init_useBlockscoutAssets = __esm({
|
|
18123
18154
|
"src/internal/hooks/useBlockscoutAssets/useBlockscoutAssets.ts"() {
|
|
18124
18155
|
init_ProviderContext();
|
|
18125
18156
|
import_clients2 = require("@embarkai/core/clients");
|
|
18126
|
-
|
|
18157
|
+
import_react_query39 = require("@tanstack/react-query");
|
|
18127
18158
|
import_react58 = require("react");
|
|
18128
18159
|
init_initial();
|
|
18129
18160
|
init_constants();
|
|
18130
18161
|
init_useResolvedPublicClient();
|
|
18131
|
-
|
|
18162
|
+
init_constants6();
|
|
18132
18163
|
init_useNativeBalance();
|
|
18133
18164
|
init_useWatchTokens();
|
|
18134
18165
|
init_utils8();
|
|
@@ -18233,34 +18264,6 @@ function isSecurityToken(asset) {
|
|
|
18233
18264
|
function isProjectAssetConfig(asset) {
|
|
18234
18265
|
return "balanceQueryKey" in asset && "balanceQuery" in asset;
|
|
18235
18266
|
}
|
|
18236
|
-
function isAssetRateAvailable(symbol) {
|
|
18237
|
-
switch (symbol) {
|
|
18238
|
-
// list of prohibited symbols without market data on Binance
|
|
18239
|
-
// case 'XYZ':
|
|
18240
|
-
// case 'ABC':
|
|
18241
|
-
case "P":
|
|
18242
|
-
return false;
|
|
18243
|
-
default:
|
|
18244
|
-
return true;
|
|
18245
|
-
}
|
|
18246
|
-
}
|
|
18247
|
-
function checkWrapedTokenSymbol(symbol) {
|
|
18248
|
-
if (WRAPPED_TOKENS.includes(symbol)) {
|
|
18249
|
-
return symbol.slice(1);
|
|
18250
|
-
}
|
|
18251
|
-
return symbol.toUpperCase();
|
|
18252
|
-
}
|
|
18253
|
-
async function getAssetRate2(symbol) {
|
|
18254
|
-
if (SKIP_SYMBOLS2.includes(symbol)) return { symbol, price: "0" };
|
|
18255
|
-
if (symbol === "USDT") return { symbol, price: "1" };
|
|
18256
|
-
const assetURL = `https://api.binance.com/api/v3/ticker/price?symbol=${checkWrapedTokenSymbol(symbol)}USDT`;
|
|
18257
|
-
try {
|
|
18258
|
-
const response = await fetch(assetURL);
|
|
18259
|
-
return await response.json();
|
|
18260
|
-
} catch {
|
|
18261
|
-
return { symbol, price: "0" };
|
|
18262
|
-
}
|
|
18263
|
-
}
|
|
18264
18267
|
async function resolveAssetRate(symbol, address, customAssetRateQuery) {
|
|
18265
18268
|
if (customAssetRateQuery) {
|
|
18266
18269
|
try {
|
|
@@ -18273,8 +18276,7 @@ async function resolveAssetRate(symbol, address, customAssetRateQuery) {
|
|
|
18273
18276
|
console.warn("[PortfolioItem] Custom asset rate query failed:", error);
|
|
18274
18277
|
}
|
|
18275
18278
|
}
|
|
18276
|
-
|
|
18277
|
-
return getAssetRate2(symbol);
|
|
18279
|
+
return getAssetRate(symbol);
|
|
18278
18280
|
}
|
|
18279
18281
|
function PortfolioItemImage(props) {
|
|
18280
18282
|
const { asset } = props;
|
|
@@ -18322,7 +18324,7 @@ function PortfolioItem(props) {
|
|
|
18322
18324
|
queryKey: asset.balanceQueryKey,
|
|
18323
18325
|
queryFn: asset.balanceQuery
|
|
18324
18326
|
} : void 0;
|
|
18325
|
-
const { data: projectAssetBalance } = (0,
|
|
18327
|
+
const { data: projectAssetBalance } = (0, import_react_query40.useQuery)({
|
|
18326
18328
|
enabled: !!projectAssetQuery,
|
|
18327
18329
|
retry: false,
|
|
18328
18330
|
queryKey: projectAssetQuery?.queryKey ?? ["project-asset-balance-disabled", asset.symbol],
|
|
@@ -18332,18 +18334,19 @@ function PortfolioItem(props) {
|
|
|
18332
18334
|
const isSecurity = isSecurityToken(asset);
|
|
18333
18335
|
const embeddedRate = Number(asset.exchangeRateUsd || 0);
|
|
18334
18336
|
const hasEmbeddedRate = Number.isFinite(embeddedRate) && embeddedRate > 0;
|
|
18335
|
-
const { data: assetRate, isLoading: isRateLoading } = (0,
|
|
18336
|
-
enabled: !!address && !hasEmbeddedRate && !isProjectAsset && !isNft && !isSecurity
|
|
18337
|
+
const { data: assetRate, isLoading: isRateLoading } = (0, import_react_query40.useQuery)({
|
|
18338
|
+
enabled: !!address && !hasEmbeddedRate && !isProjectAsset && !isNft && !isSecurity,
|
|
18339
|
+
// (!!customAssetRateQuery || !!isAssetRateAvailable(asset.symbol)),
|
|
18337
18340
|
retry: false,
|
|
18338
18341
|
staleTime: 4 * 60 * 1e3,
|
|
18339
|
-
queryKey: customAssetRateQuery && customAssetRateQueryKey ? customAssetRateQueryKey : [
|
|
18342
|
+
queryKey: customAssetRateQuery && customAssetRateQueryKey ? customAssetRateQueryKey : [PORTFOLIO_ASSET_RATE_QUERY_KEY, address, asset.address, asset.symbol],
|
|
18340
18343
|
// customAssetRateQueryKey
|
|
18341
18344
|
queryFn: async () => await resolveAssetRate(asset.symbol, asset.address, customAssetRateQuery)
|
|
18342
18345
|
});
|
|
18343
18346
|
const hasProjectAssetBalance = isProjectAsset && projectAssetBalance != null;
|
|
18344
18347
|
const renderBalance = hasProjectAssetBalance ? projectAssetBalance.cryptoFormatted : Number((0, import_viem10.formatUnits)(BigInt(asset?.balance || "0"), asset?.decimals || 18));
|
|
18345
18348
|
const resolvedRate = hasEmbeddedRate ? embeddedRate : Number(assetRate?.price || 0);
|
|
18346
|
-
const usdRenderBalance = resolvedRate > 0 ? renderBalance * resolvedRate : 0;
|
|
18349
|
+
const usdRenderBalance = resolvedRate > 0 && resolvedRate !== 1 ? renderBalance * resolvedRate : 0;
|
|
18347
18350
|
const shortContractAddress = asset.address ? truncateMiddle(asset.address, 6, 4) : null;
|
|
18348
18351
|
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
18349
18352
|
"div",
|
|
@@ -18404,12 +18407,11 @@ function PortfolioItem(props) {
|
|
|
18404
18407
|
}
|
|
18405
18408
|
);
|
|
18406
18409
|
}
|
|
18407
|
-
var
|
|
18410
|
+
var import_react_query40, import_lucide_react48, import_viem10, import_jsx_runtime83, PORTFOLIO_ASSET_RATE_QUERY_KEY;
|
|
18408
18411
|
var init_PortfolioItem = __esm({
|
|
18409
18412
|
"src/internal/components/PortfolioMenu/PortfolioItem.tsx"() {
|
|
18410
18413
|
init_ProviderContext();
|
|
18411
|
-
|
|
18412
|
-
import_react_query39 = require("@tanstack/react-query");
|
|
18414
|
+
import_react_query40 = require("@tanstack/react-query");
|
|
18413
18415
|
import_lucide_react48 = require("lucide-react");
|
|
18414
18416
|
import_viem10 = require("viem");
|
|
18415
18417
|
init_no_image();
|
|
@@ -18418,10 +18420,10 @@ var init_PortfolioItem = __esm({
|
|
|
18418
18420
|
init_priceFormatter();
|
|
18419
18421
|
init_utils2();
|
|
18420
18422
|
init_truncateMiddle();
|
|
18423
|
+
init_BalanceFeedProvider2();
|
|
18421
18424
|
init_BalanceView2();
|
|
18422
18425
|
import_jsx_runtime83 = require("react/jsx-runtime");
|
|
18423
|
-
|
|
18424
|
-
ASSETS_RATES_QUERY_KEY = "lumia-passport-assets-rates-query-key";
|
|
18426
|
+
PORTFOLIO_ASSET_RATE_QUERY_KEY = "embarkai-portfolio-asset-rate-query-key";
|
|
18425
18427
|
}
|
|
18426
18428
|
});
|
|
18427
18429
|
|
|
@@ -18429,7 +18431,7 @@ var init_PortfolioItem = __esm({
|
|
|
18429
18431
|
function PortfolioMenu() {
|
|
18430
18432
|
const { assets: projectAssets = [] } = useProviderConfig().config.current?.projectAssets || {};
|
|
18431
18433
|
const { t } = useT();
|
|
18432
|
-
const qc = (0,
|
|
18434
|
+
const qc = (0, import_react_query41.useQueryClient)();
|
|
18433
18435
|
const address = useSession((st) => st.address);
|
|
18434
18436
|
const maxScrollHeight = useLayoutStore((st) => st.maxScrollHeight);
|
|
18435
18437
|
const {
|
|
@@ -18500,13 +18502,13 @@ function PortfolioMenu() {
|
|
|
18500
18502
|
}
|
|
18501
18503
|
);
|
|
18502
18504
|
}
|
|
18503
|
-
var
|
|
18505
|
+
var import_react_query41, import_lucide_react49, import_react59, import_jsx_runtime84;
|
|
18504
18506
|
var init_PortfolioMenu = __esm({
|
|
18505
18507
|
"src/internal/components/PortfolioMenu/PortfolioMenu.tsx"() {
|
|
18506
18508
|
init_ProviderContext();
|
|
18507
18509
|
init_SessionContext();
|
|
18508
18510
|
init_i18n();
|
|
18509
|
-
|
|
18511
|
+
import_react_query41 = require("@tanstack/react-query");
|
|
18510
18512
|
import_lucide_react49 = require("lucide-react");
|
|
18511
18513
|
import_react59 = require("react");
|
|
18512
18514
|
init_useBlockscoutAssets2();
|
|
@@ -18756,7 +18758,7 @@ var init_useSecurityStore = __esm({
|
|
|
18756
18758
|
|
|
18757
18759
|
// src/internal/components/SecurityMenu/constants.ts
|
|
18758
18760
|
var KEYSHARE_RECOVERY_STATS_QUERY, CONNECTED_TRUSTED_APPS_QUERY;
|
|
18759
|
-
var
|
|
18761
|
+
var init_constants7 = __esm({
|
|
18760
18762
|
"src/internal/components/SecurityMenu/constants.ts"() {
|
|
18761
18763
|
KEYSHARE_RECOVERY_STATS_QUERY = "keyshare-recovery-stats-query";
|
|
18762
18764
|
CONNECTED_TRUSTED_APPS_QUERY = "connected-trusted-apps-query";
|
|
@@ -18767,7 +18769,7 @@ var init_constants6 = __esm({
|
|
|
18767
18769
|
function useConnectedApps() {
|
|
18768
18770
|
const session = useSession((st) => st.session);
|
|
18769
18771
|
const userId = session?.mpcUserId || null;
|
|
18770
|
-
return (0,
|
|
18772
|
+
return (0, import_react_query42.useQuery)({
|
|
18771
18773
|
retry: false,
|
|
18772
18774
|
enabled: !!userId,
|
|
18773
18775
|
queryKey: [CONNECTED_TRUSTED_APPS_QUERY, userId],
|
|
@@ -18780,13 +18782,13 @@ function useConnectedApps() {
|
|
|
18780
18782
|
}
|
|
18781
18783
|
});
|
|
18782
18784
|
}
|
|
18783
|
-
var
|
|
18785
|
+
var import_react_query42;
|
|
18784
18786
|
var init_useConnectedApps = __esm({
|
|
18785
18787
|
"src/internal/components/SecurityMenu/ConnectedApps/useConnectedApps.ts"() {
|
|
18786
18788
|
init_SessionContext();
|
|
18787
|
-
|
|
18789
|
+
import_react_query42 = require("@tanstack/react-query");
|
|
18788
18790
|
init_httpClient();
|
|
18789
|
-
|
|
18791
|
+
init_constants7();
|
|
18790
18792
|
}
|
|
18791
18793
|
});
|
|
18792
18794
|
|
|
@@ -18925,10 +18927,10 @@ var init_ConnectedApps = __esm({
|
|
|
18925
18927
|
// src/internal/components/SecurityMenu/ConnectedApps/UntrustApplication.tsx
|
|
18926
18928
|
function UntrustApplication() {
|
|
18927
18929
|
const { t } = useT();
|
|
18928
|
-
const qc = (0,
|
|
18930
|
+
const qc = (0, import_react_query43.useQueryClient)();
|
|
18929
18931
|
const userId = useSession((st) => st?.session?.mpcUserId);
|
|
18930
18932
|
const appToUntrust = useSecurityStore((st) => st.appToUntrust);
|
|
18931
|
-
const { mutate: handleUntrustApp, isPending: isUntrustingApp } = (0,
|
|
18933
|
+
const { mutate: handleUntrustApp, isPending: isUntrustingApp } = (0, import_react_query43.useMutation)({
|
|
18932
18934
|
mutationFn: async () => {
|
|
18933
18935
|
if (!userId || !appToUntrust) return;
|
|
18934
18936
|
const iframeManager = getIframeManager();
|
|
@@ -19004,17 +19006,17 @@ function UntrustApplication() {
|
|
|
19004
19006
|
] })
|
|
19005
19007
|
] });
|
|
19006
19008
|
}
|
|
19007
|
-
var
|
|
19009
|
+
var import_react_query43, import_lucide_react52, import_jsx_runtime87;
|
|
19008
19010
|
var init_UntrustApplication = __esm({
|
|
19009
19011
|
"src/internal/components/SecurityMenu/ConnectedApps/UntrustApplication.tsx"() {
|
|
19010
19012
|
init_SessionContext();
|
|
19011
19013
|
init_i18n();
|
|
19012
|
-
|
|
19014
|
+
import_react_query43 = require("@tanstack/react-query");
|
|
19013
19015
|
import_lucide_react52 = require("lucide-react");
|
|
19014
19016
|
init_iframe_manager();
|
|
19015
19017
|
init_button();
|
|
19016
19018
|
init_highlight();
|
|
19017
|
-
|
|
19019
|
+
init_constants7();
|
|
19018
19020
|
init_useSecurityStore();
|
|
19019
19021
|
import_jsx_runtime87 = require("react/jsx-runtime");
|
|
19020
19022
|
}
|
|
@@ -19131,7 +19133,7 @@ var init_LastBackup = __esm({
|
|
|
19131
19133
|
function useKeyshareRecoveryStats() {
|
|
19132
19134
|
const session = useSession((st) => st.session);
|
|
19133
19135
|
const userId = session?.mpcUserId || null;
|
|
19134
|
-
return (0,
|
|
19136
|
+
return (0, import_react_query44.useQuery)({
|
|
19135
19137
|
enabled: !!userId,
|
|
19136
19138
|
queryKey: [KEYSHARE_RECOVERY_STATS_QUERY, userId],
|
|
19137
19139
|
queryFn: async () => {
|
|
@@ -19148,15 +19150,15 @@ function useKeyshareRecoveryStats() {
|
|
|
19148
19150
|
}
|
|
19149
19151
|
});
|
|
19150
19152
|
}
|
|
19151
|
-
var
|
|
19153
|
+
var import_react_query44;
|
|
19152
19154
|
var init_useKeyshareRecoveryStats = __esm({
|
|
19153
19155
|
"src/internal/components/SecurityMenu/Keyshare/useKeyshareRecoveryStats.ts"() {
|
|
19154
19156
|
init_SessionContext();
|
|
19155
|
-
|
|
19157
|
+
import_react_query44 = require("@tanstack/react-query");
|
|
19156
19158
|
init_keyshare();
|
|
19157
19159
|
init_iframe_manager();
|
|
19158
19160
|
init_vaultClient();
|
|
19159
|
-
|
|
19161
|
+
init_constants7();
|
|
19160
19162
|
}
|
|
19161
19163
|
});
|
|
19162
19164
|
|
|
@@ -19591,7 +19593,7 @@ function SenderSelector(props) {
|
|
|
19591
19593
|
(0, import_react63.useEffect)(() => {
|
|
19592
19594
|
useFlowSelectorStore.getState().setRenderKey(`sender-selected-${Date.now()}`);
|
|
19593
19595
|
}, [walletMessage]);
|
|
19594
|
-
const { mutate: loginDirectWallet, isPending: isDirectWalletLoggingIn } = (0,
|
|
19596
|
+
const { mutate: loginDirectWallet, isPending: isDirectWalletLoggingIn } = (0, import_react_query45.useMutation)({
|
|
19595
19597
|
mutationFn: async (walletProfile) => {
|
|
19596
19598
|
if (!walletProfile?.meta?.walletName || !walletProfile?.externalId || !walletProfile?.meta?.walletType) {
|
|
19597
19599
|
console.error("[SENDER SELECTOR] Invalid wallet profile:", walletProfile);
|
|
@@ -19719,13 +19721,13 @@ function SenderSelector(props) {
|
|
|
19719
19721
|
] })
|
|
19720
19722
|
] });
|
|
19721
19723
|
}
|
|
19722
|
-
var import_rainbowkit,
|
|
19724
|
+
var import_rainbowkit, import_react_query45, import_react63, import_wagmi3, import_jsx_runtime92;
|
|
19723
19725
|
var init_SenderSelector = __esm({
|
|
19724
19726
|
"src/internal/components/SendMenu/hyperbridge/components/SenderSelector.tsx"() {
|
|
19725
19727
|
init_ProviderContext();
|
|
19726
19728
|
init_i18n();
|
|
19727
19729
|
import_rainbowkit = require("@rainbow-me/rainbowkit");
|
|
19728
|
-
|
|
19730
|
+
import_react_query45 = require("@tanstack/react-query");
|
|
19729
19731
|
import_react63 = require("react");
|
|
19730
19732
|
import_wagmi3 = require("wagmi");
|
|
19731
19733
|
init_wallet();
|
|
@@ -20197,7 +20199,7 @@ function useHyperlaneHistory() {
|
|
|
20197
20199
|
const page = useLayoutDataStore((st) => st.page);
|
|
20198
20200
|
const flow = useFlowSelectorStore((st) => st.flow);
|
|
20199
20201
|
const bridgeStep = useBridgeStore((st) => st.bridgeStep);
|
|
20200
|
-
const query = (0,
|
|
20202
|
+
const query = (0, import_react_query46.useInfiniteQuery)({
|
|
20201
20203
|
retry: false,
|
|
20202
20204
|
initialPageParam: 1,
|
|
20203
20205
|
refetchInterval: TX_HISTORY_POLLING_INTERVAL,
|
|
@@ -20223,11 +20225,11 @@ function useHyperlaneHistory() {
|
|
|
20223
20225
|
}, [isBridgeTxHistoryLoading, txList]);
|
|
20224
20226
|
return { query, txList };
|
|
20225
20227
|
}
|
|
20226
|
-
var
|
|
20228
|
+
var import_react_query46, import_lodash_es12, import_react65, HYPERLANE_HISTORY_QUERY_KEY, TX_HISTORY_PAGE_SIZE, TX_HISTORY_POLLING_INTERVAL;
|
|
20227
20229
|
var init_useHyperlaneHistory = __esm({
|
|
20228
20230
|
"src/internal/components/SendMenu/hyperbridge/hooks/useHyperlaneHistory.ts"() {
|
|
20229
20231
|
init_SessionContext();
|
|
20230
|
-
|
|
20232
|
+
import_react_query46 = require("@tanstack/react-query");
|
|
20231
20233
|
import_lodash_es12 = require("lodash-es");
|
|
20232
20234
|
import_react65 = require("react");
|
|
20233
20235
|
init_useLayoutDataStore();
|
|
@@ -20256,7 +20258,7 @@ var init_useOperationHashesStore = __esm({
|
|
|
20256
20258
|
|
|
20257
20259
|
// src/internal/components/SendMenu/hyperbridge/hooks/useBridge.ts
|
|
20258
20260
|
function useBridge() {
|
|
20259
|
-
const qc = (0,
|
|
20261
|
+
const qc = (0, import_react_query47.useQueryClient)();
|
|
20260
20262
|
const { t } = useT();
|
|
20261
20263
|
const address = useSession((st) => st.address);
|
|
20262
20264
|
const { data: walletClient } = (0, import_wagmi4.useWalletClient)();
|
|
@@ -20275,7 +20277,7 @@ function useBridge() {
|
|
|
20275
20277
|
setOriginChain(destinationChain);
|
|
20276
20278
|
setDestinationChain(originChain);
|
|
20277
20279
|
}, []);
|
|
20278
|
-
const { mutate: estimateQuote } = (0,
|
|
20280
|
+
const { mutate: estimateQuote } = (0, import_react_query47.useMutation)({
|
|
20279
20281
|
mutationFn: async (amountToBridge) => {
|
|
20280
20282
|
useFlowSelectorStore.getState().setError(null);
|
|
20281
20283
|
useFlowSelectorStore.getState().setIsUiLocked(true);
|
|
@@ -20343,7 +20345,7 @@ function useBridge() {
|
|
|
20343
20345
|
})
|
|
20344
20346
|
);
|
|
20345
20347
|
}, []);
|
|
20346
|
-
const { mutate: bridgeAsset, isPending: isAssetBridging } = (0,
|
|
20348
|
+
const { mutate: bridgeAsset, isPending: isAssetBridging } = (0, import_react_query47.useMutation)({
|
|
20347
20349
|
mutationFn: async () => {
|
|
20348
20350
|
const {
|
|
20349
20351
|
hyperRoute,
|
|
@@ -20438,13 +20440,13 @@ function useBridge() {
|
|
|
20438
20440
|
isAssetBridging
|
|
20439
20441
|
};
|
|
20440
20442
|
}
|
|
20441
|
-
var
|
|
20443
|
+
var import_react_query47, import_react66, import_wagmi4;
|
|
20442
20444
|
var init_useBridge = __esm({
|
|
20443
20445
|
"src/internal/components/SendMenu/hyperbridge/hooks/useBridge.ts"() {
|
|
20444
20446
|
init_SessionContext();
|
|
20445
20447
|
init_i18n();
|
|
20446
20448
|
init_useExternalWalletStore();
|
|
20447
|
-
|
|
20449
|
+
import_react_query47 = require("@tanstack/react-query");
|
|
20448
20450
|
import_react66 = require("react");
|
|
20449
20451
|
import_wagmi4 = require("wagmi");
|
|
20450
20452
|
init_useLayoutStore();
|
|
@@ -20469,7 +20471,7 @@ function useHyperlaneRoutes() {
|
|
|
20469
20471
|
data: hyperlaneWarpRoutes = [],
|
|
20470
20472
|
isLoading: isLoadingWarpRoutes,
|
|
20471
20473
|
error: errorWarpRoutes
|
|
20472
|
-
} = (0,
|
|
20474
|
+
} = (0, import_react_query48.useQuery)({
|
|
20473
20475
|
retry: false,
|
|
20474
20476
|
enabled: !!address && page === "send" /* SEND */ && flow === "bridge",
|
|
20475
20477
|
queryKey: [HYPERLANE_WARP_ROUTES_QUERY_KEY, address],
|
|
@@ -20507,11 +20509,11 @@ function useHyperlaneRoutes() {
|
|
|
20507
20509
|
}, [hyperRoute, hyperlaneWarpRoutes]);
|
|
20508
20510
|
return { hyperlaneWarpRoutes, isLoadingWarpRoutes };
|
|
20509
20511
|
}
|
|
20510
|
-
var
|
|
20512
|
+
var import_react_query48, import_react67, HYPERLANE_WARP_ROUTES_QUERY_KEY;
|
|
20511
20513
|
var init_useHyperlaneRoutes = __esm({
|
|
20512
20514
|
"src/internal/components/SendMenu/hyperbridge/hooks/useHyperlaneRoutes.ts"() {
|
|
20513
20515
|
init_SessionContext();
|
|
20514
|
-
|
|
20516
|
+
import_react_query48 = require("@tanstack/react-query");
|
|
20515
20517
|
import_react67 = require("react");
|
|
20516
20518
|
init_useLayoutDataStore();
|
|
20517
20519
|
init_useFlowSelector();
|
|
@@ -20581,14 +20583,8 @@ var init_ResolveChainIcon = __esm({
|
|
|
20581
20583
|
});
|
|
20582
20584
|
|
|
20583
20585
|
// src/internal/components/SendMenu/hyperbridge/hooks/useBridgeBalance.ts
|
|
20584
|
-
function checkWrapedTokenSymbol2(symbol) {
|
|
20585
|
-
if (WRAPPED_TOKENS.includes(symbol)) {
|
|
20586
|
-
return symbol.slice(1);
|
|
20587
|
-
}
|
|
20588
|
-
return symbol.toUpperCase();
|
|
20589
|
-
}
|
|
20590
20586
|
function useBridgeBalance(hyperlaneWarpRoutes) {
|
|
20591
|
-
const qc = (0,
|
|
20587
|
+
const qc = (0, import_react_query49.useQueryClient)();
|
|
20592
20588
|
const { t } = useT();
|
|
20593
20589
|
const address = useSession((st) => st.address);
|
|
20594
20590
|
const directWalletAddress = useExternalWalletStore((st) => st.externalAddress);
|
|
@@ -20612,10 +20608,10 @@ function useBridgeBalance(hyperlaneWarpRoutes) {
|
|
|
20612
20608
|
enabled: bridgeSender === "embarkai-wallet" && !!selectedWarpRoute && !!address && !!originChain,
|
|
20613
20609
|
address
|
|
20614
20610
|
});
|
|
20615
|
-
const embarkTokenBalanace = assets.find((a) => selectedWarpRoute?.symbol ===
|
|
20611
|
+
const embarkTokenBalanace = assets.find((a) => selectedWarpRoute?.symbol === checkWrapedTokenSymbol(a.symbol));
|
|
20616
20612
|
const originChainMeta = CHAINS_UI_META[originChain];
|
|
20617
20613
|
const isSelectedTokenNative = selectedWarpRoute?.symbol?.toUpperCase() === originChainMeta?.chain?.nativeCurrency?.symbol?.toUpperCase();
|
|
20618
|
-
const { data: externalBalanceData, isLoading: isExternalBalanceLoading } = (0,
|
|
20614
|
+
const { data: externalBalanceData, isLoading: isExternalBalanceLoading } = (0, import_react_query49.useQuery)({
|
|
20619
20615
|
retry: false,
|
|
20620
20616
|
enabled: bridgeSender === "direct-wallet" && !isSelectedTokenNative && !!directWalletAddress && !!routeTokenAddress && !!originChain,
|
|
20621
20617
|
queryKey: [EXTERNAL_WALLET_BRIDGING_BALANCE_QUERY, originChain, directWalletAddress, routeTokenAddress],
|
|
@@ -20658,7 +20654,7 @@ function useBridgeBalance(hyperlaneWarpRoutes) {
|
|
|
20658
20654
|
return { value, decimals, symbol, formatted };
|
|
20659
20655
|
}
|
|
20660
20656
|
});
|
|
20661
|
-
const { data: externalNativeBalanceData, isLoading: isExternalNativeBalanceLoading } = (0,
|
|
20657
|
+
const { data: externalNativeBalanceData, isLoading: isExternalNativeBalanceLoading } = (0, import_react_query49.useQuery)({
|
|
20662
20658
|
retry: false,
|
|
20663
20659
|
enabled: bridgeSender === "direct-wallet" && isSelectedTokenNative && !!directWalletAddress && !!originChain,
|
|
20664
20660
|
queryKey: [EXTERNAL_WALLET_BRIDGING_NATIVE_BALANCE_QUERY, originChain, directWalletAddress],
|
|
@@ -20720,19 +20716,19 @@ function useBridgeBalance(hyperlaneWarpRoutes) {
|
|
|
20720
20716
|
isRouteTokenBalanceLoading: isAssetsLoading || isExternalBalanceLoading || isExternalNativeBalanceLoading
|
|
20721
20717
|
};
|
|
20722
20718
|
}
|
|
20723
|
-
var import_core6,
|
|
20719
|
+
var import_core6, import_react_query49, import_react69, import_viem14, import_wagmi5, EXTERNAL_WALLET_BRIDGING_BALANCE_QUERY, EXTERNAL_WALLET_BRIDGING_NATIVE_BALANCE_QUERY;
|
|
20724
20720
|
var init_useBridgeBalance = __esm({
|
|
20725
20721
|
"src/internal/components/SendMenu/hyperbridge/hooks/useBridgeBalance.ts"() {
|
|
20726
|
-
init_constants();
|
|
20727
20722
|
init_SessionContext();
|
|
20728
20723
|
init_i18n();
|
|
20729
20724
|
import_core6 = require("@embarkai/core");
|
|
20730
|
-
|
|
20725
|
+
import_react_query49 = require("@tanstack/react-query");
|
|
20731
20726
|
import_react69 = require("react");
|
|
20732
20727
|
import_viem14 = require("viem");
|
|
20733
20728
|
import_wagmi5 = require("wagmi");
|
|
20734
20729
|
init_useBlockscoutAssets2();
|
|
20735
20730
|
init_useExternalWalletStore();
|
|
20731
|
+
init_BalanceFeedProvider2();
|
|
20736
20732
|
init_useFlowSelector();
|
|
20737
20733
|
init_chains();
|
|
20738
20734
|
init_useBridgeStore();
|
|
@@ -21373,7 +21369,7 @@ function HistoryItem(props) {
|
|
|
21373
21369
|
txStatus
|
|
21374
21370
|
} = props;
|
|
21375
21371
|
const { t } = useT();
|
|
21376
|
-
const qc = (0,
|
|
21372
|
+
const qc = (0, import_react_query50.useQueryClient)();
|
|
21377
21373
|
const address = useSession((st) => st.address);
|
|
21378
21374
|
const warpRoutes = qc.getQueryData([HYPERLANE_WARP_ROUTES_QUERY_KEY, address]);
|
|
21379
21375
|
const assetWarpRoute = warpRoutes?.find((route) => {
|
|
@@ -21498,12 +21494,12 @@ function HistoryStep() {
|
|
|
21498
21494
|
)
|
|
21499
21495
|
] });
|
|
21500
21496
|
}
|
|
21501
|
-
var
|
|
21497
|
+
var import_react_query50, import_dayjs7, import_lucide_react61, import_jsx_runtime100, P_CN3;
|
|
21502
21498
|
var init_HistoryStep = __esm({
|
|
21503
21499
|
"src/internal/components/SendMenu/hyperbridge/steps/HistoryStep.tsx"() {
|
|
21504
21500
|
init_SessionContext();
|
|
21505
21501
|
init_i18n();
|
|
21506
|
-
|
|
21502
|
+
import_react_query50 = require("@tanstack/react-query");
|
|
21507
21503
|
import_dayjs7 = __toESM(require("dayjs"), 1);
|
|
21508
21504
|
import_lucide_react61 = require("lucide-react");
|
|
21509
21505
|
init_tokens();
|
|
@@ -21845,7 +21841,7 @@ function useNicknameResolve(input, options) {
|
|
|
21845
21841
|
clearTimeout(timer);
|
|
21846
21842
|
};
|
|
21847
21843
|
}, [normalized, isNicknameInput, enabled]);
|
|
21848
|
-
const query = (0,
|
|
21844
|
+
const query = (0, import_react_query51.useQuery)({
|
|
21849
21845
|
queryKey: [...QUERY_KEYS.nicknameResolve(debouncedInput), chainId],
|
|
21850
21846
|
queryFn: async () => await resolveNickname(debouncedInput, chainId),
|
|
21851
21847
|
enabled: enabled && isNicknameInput && debouncedInput.length > 0,
|
|
@@ -21878,10 +21874,10 @@ function useNicknameResolve(input, options) {
|
|
|
21878
21874
|
resolvedAddress
|
|
21879
21875
|
};
|
|
21880
21876
|
}
|
|
21881
|
-
var
|
|
21877
|
+
var import_react_query51, import_react75, DEBOUNCE_MS2;
|
|
21882
21878
|
var init_useNicknameResolve = __esm({
|
|
21883
21879
|
"src/hooks/useNicknameResolve.ts"() {
|
|
21884
|
-
|
|
21880
|
+
import_react_query51 = require("@tanstack/react-query");
|
|
21885
21881
|
import_react75 = require("react");
|
|
21886
21882
|
init_nickname();
|
|
21887
21883
|
init_profile();
|
|
@@ -22434,7 +22430,7 @@ function isNftAsset4(asset) {
|
|
|
22434
22430
|
function useTokenBalance(asset) {
|
|
22435
22431
|
const address = useSession((st) => st.address);
|
|
22436
22432
|
const chainConfig = useSession((st) => st.chainConfig);
|
|
22437
|
-
return (0,
|
|
22433
|
+
return (0, import_react_query52.useQuery)({
|
|
22438
22434
|
retry: false,
|
|
22439
22435
|
enabled: !!address && !!chainConfig?.id && !!asset?.symbol,
|
|
22440
22436
|
refetchInterval: 5e3,
|
|
@@ -22498,11 +22494,11 @@ function useTokenBalance(asset) {
|
|
|
22498
22494
|
}
|
|
22499
22495
|
});
|
|
22500
22496
|
}
|
|
22501
|
-
var
|
|
22497
|
+
var import_react_query52, import_viem18, SEND_TOKEN_BALANCE_QUERY_KEY;
|
|
22502
22498
|
var init_useTokenBalance = __esm({
|
|
22503
22499
|
"src/internal/components/SendMenu/send/useTokenBalance.ts"() {
|
|
22504
22500
|
init_SessionContext();
|
|
22505
|
-
|
|
22501
|
+
import_react_query52 = require("@tanstack/react-query");
|
|
22506
22502
|
import_viem18 = require("viem");
|
|
22507
22503
|
SEND_TOKEN_BALANCE_QUERY_KEY = "current-chain-send-token-balance-query";
|
|
22508
22504
|
}
|
|
@@ -22730,7 +22726,7 @@ function ConfirmSendStep(props) {
|
|
|
22730
22726
|
const isNft = isNftAsset3(selectedAsset);
|
|
22731
22727
|
const isSecurity = isSecurityToken2(selectedAsset);
|
|
22732
22728
|
const effectiveAddress = isNicknameInput ? resolvedAddress : recipient;
|
|
22733
|
-
const { mutate: handleConfirm, isPending: isTransactionPending } = (0,
|
|
22729
|
+
const { mutate: handleConfirm, isPending: isTransactionPending } = (0, import_react_query53.useMutation)({
|
|
22734
22730
|
mutationFn: async () => {
|
|
22735
22731
|
if (!effectiveAddress || !selectedAsset) return;
|
|
22736
22732
|
setTxStep("pending");
|
|
@@ -22884,12 +22880,12 @@ function ConfirmSendStep(props) {
|
|
|
22884
22880
|
)
|
|
22885
22881
|
] });
|
|
22886
22882
|
}
|
|
22887
|
-
var
|
|
22883
|
+
var import_react_query53, import_lucide_react67, import_jsx_runtime109;
|
|
22888
22884
|
var init_ConfirmSendStep = __esm({
|
|
22889
22885
|
"src/internal/components/SendMenu/send/sendSteps/ConfirmSendStep.tsx"() {
|
|
22890
22886
|
init_SessionContext();
|
|
22891
22887
|
init_i18n();
|
|
22892
|
-
|
|
22888
|
+
import_react_query53 = require("@tanstack/react-query");
|
|
22893
22889
|
import_lucide_react67 = require("lucide-react");
|
|
22894
22890
|
init_priceFormatter();
|
|
22895
22891
|
init_utils2();
|
|
@@ -23299,7 +23295,7 @@ var init_pro_mode = __esm({
|
|
|
23299
23295
|
|
|
23300
23296
|
// src/internal/components/SettingsMenu/constants.ts
|
|
23301
23297
|
var import_lucide_react70, NAV_BUTTONS;
|
|
23302
|
-
var
|
|
23298
|
+
var init_constants8 = __esm({
|
|
23303
23299
|
"src/internal/components/SettingsMenu/constants.ts"() {
|
|
23304
23300
|
import_lucide_react70 = require("lucide-react");
|
|
23305
23301
|
init_icons();
|
|
@@ -23355,7 +23351,7 @@ function SettingsMenu() {
|
|
|
23355
23351
|
const setPage = useLayoutDataStore((st) => st.setPage);
|
|
23356
23352
|
const settingsButtons = useSettingsButtons();
|
|
23357
23353
|
useProvidersList();
|
|
23358
|
-
(0,
|
|
23354
|
+
(0, import_react_query54.useQuery)({
|
|
23359
23355
|
retry: 1,
|
|
23360
23356
|
enabled: !!address,
|
|
23361
23357
|
queryKey: [QUERY_KEYS.nicknameInfo, address],
|
|
@@ -23397,13 +23393,13 @@ function SettingsMenu() {
|
|
|
23397
23393
|
}
|
|
23398
23394
|
);
|
|
23399
23395
|
}
|
|
23400
|
-
var
|
|
23396
|
+
var import_react_query54, import_lucide_react71, import_react82, import_jsx_runtime112;
|
|
23401
23397
|
var init_SettingsMenu = __esm({
|
|
23402
23398
|
"src/internal/components/SettingsMenu/SettingsMenu.tsx"() {
|
|
23403
23399
|
init_ProviderContext();
|
|
23404
23400
|
init_SessionContext();
|
|
23405
23401
|
init_i18n();
|
|
23406
|
-
|
|
23402
|
+
import_react_query54 = require("@tanstack/react-query");
|
|
23407
23403
|
import_lucide_react71 = require("lucide-react");
|
|
23408
23404
|
import_react82 = require("react");
|
|
23409
23405
|
init_nickname();
|
|
@@ -23414,7 +23410,7 @@ var init_SettingsMenu = __esm({
|
|
|
23414
23410
|
init_utils2();
|
|
23415
23411
|
init_useProvidersList();
|
|
23416
23412
|
init_button();
|
|
23417
|
-
|
|
23413
|
+
init_constants8();
|
|
23418
23414
|
import_jsx_runtime112 = require("react/jsx-runtime");
|
|
23419
23415
|
}
|
|
23420
23416
|
});
|
|
@@ -24271,7 +24267,7 @@ var init_TransactionsGroup = __esm({
|
|
|
24271
24267
|
|
|
24272
24268
|
// src/internal/components/TransactionsMenu/TransactionsMenu.tsx
|
|
24273
24269
|
function TransactionsMenu() {
|
|
24274
|
-
const qc = (0,
|
|
24270
|
+
const qc = (0, import_react_query55.useQueryClient)();
|
|
24275
24271
|
const address = useSession((st) => st.address);
|
|
24276
24272
|
const chainConfig = useSession((st) => st.chainConfig);
|
|
24277
24273
|
const { t } = useT();
|
|
@@ -24284,7 +24280,7 @@ function TransactionsMenu() {
|
|
|
24284
24280
|
isLoading: isTxHistoryLoading,
|
|
24285
24281
|
isFetching: isTxHistoryFetching,
|
|
24286
24282
|
error: txHistoryError
|
|
24287
|
-
} = (0,
|
|
24283
|
+
} = (0, import_react_query55.useQuery)({
|
|
24288
24284
|
retry: false,
|
|
24289
24285
|
enabled: !!address && !!chainConfig?.id && historySupported,
|
|
24290
24286
|
queryKey: [TRANSACTIONS_HISTORY_QUERY_KEY, chainConfig.id, address],
|
|
@@ -24339,12 +24335,12 @@ function TransactionsMenu() {
|
|
|
24339
24335
|
}
|
|
24340
24336
|
);
|
|
24341
24337
|
}
|
|
24342
|
-
var
|
|
24338
|
+
var import_react_query55, import_lucide_react74, import_react83, import_jsx_runtime115;
|
|
24343
24339
|
var init_TransactionsMenu = __esm({
|
|
24344
24340
|
"src/internal/components/TransactionsMenu/TransactionsMenu.tsx"() {
|
|
24345
24341
|
init_SessionContext();
|
|
24346
24342
|
init_i18n();
|
|
24347
|
-
|
|
24343
|
+
import_react_query55 = require("@tanstack/react-query");
|
|
24348
24344
|
import_lucide_react74 = require("lucide-react");
|
|
24349
24345
|
import_react83 = require("react");
|
|
24350
24346
|
init_useLayoutDataStore();
|
|
@@ -24635,7 +24631,7 @@ var init_package = __esm({
|
|
|
24635
24631
|
"package.json"() {
|
|
24636
24632
|
package_default = {
|
|
24637
24633
|
name: "@embarkai/ui-kit",
|
|
24638
|
-
version: "0.4.
|
|
24634
|
+
version: "0.4.65",
|
|
24639
24635
|
description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
|
|
24640
24636
|
type: "module",
|
|
24641
24637
|
main: "./dist/index.cjs",
|
|
@@ -24737,7 +24733,7 @@ var init_package = __esm({
|
|
|
24737
24733
|
|
|
24738
24734
|
// src/internal/components/Footer/Footer.tsx
|
|
24739
24735
|
function Footer() {
|
|
24740
|
-
const qc = (0,
|
|
24736
|
+
const qc = (0, import_react_query56.useQueryClient)();
|
|
24741
24737
|
const { callbacksRef, config } = useProviderConfig();
|
|
24742
24738
|
const { t } = useT();
|
|
24743
24739
|
const address = useSession((st) => st.address);
|
|
@@ -24754,7 +24750,7 @@ function Footer() {
|
|
|
24754
24750
|
}
|
|
24755
24751
|
}
|
|
24756
24752
|
});
|
|
24757
|
-
const { mutate: disconnect, isPending: isDisconnecting } = (0,
|
|
24753
|
+
const { mutate: disconnect, isPending: isDisconnecting } = (0, import_react_query56.useMutation)({
|
|
24758
24754
|
mutationFn: async (disconnectAddress) => {
|
|
24759
24755
|
if (!disconnectAddress) throw new Error("No address to disconnect");
|
|
24760
24756
|
const { setError, setStatus, setIsLoading } = useSession.getState();
|
|
@@ -24847,7 +24843,7 @@ function Footer() {
|
|
|
24847
24843
|
}
|
|
24848
24844
|
);
|
|
24849
24845
|
}
|
|
24850
|
-
var
|
|
24846
|
+
var import_react_query56, import_lucide_react75, import_wagmi7, import_jsx_runtime117;
|
|
24851
24847
|
var init_Footer = __esm({
|
|
24852
24848
|
"src/internal/components/Footer/Footer.tsx"() {
|
|
24853
24849
|
init_package();
|
|
@@ -24855,7 +24851,7 @@ var init_Footer = __esm({
|
|
|
24855
24851
|
init_ProviderContext();
|
|
24856
24852
|
init_SessionContext();
|
|
24857
24853
|
init_i18n();
|
|
24858
|
-
|
|
24854
|
+
import_react_query56 = require("@tanstack/react-query");
|
|
24859
24855
|
import_lucide_react75 = require("lucide-react");
|
|
24860
24856
|
import_wagmi7 = require("wagmi");
|
|
24861
24857
|
init_auth();
|
|
@@ -24864,7 +24860,7 @@ var init_Footer = __esm({
|
|
|
24864
24860
|
init_useLayoutStore();
|
|
24865
24861
|
init_utils2();
|
|
24866
24862
|
init_useExternalWalletStore();
|
|
24867
|
-
|
|
24863
|
+
init_constants5();
|
|
24868
24864
|
init_button();
|
|
24869
24865
|
import_jsx_runtime117 = require("react/jsx-runtime");
|
|
24870
24866
|
}
|
|
@@ -25327,7 +25323,7 @@ var init_TssManager = __esm({
|
|
|
25327
25323
|
|
|
25328
25324
|
// src/internal/components/WalletConnectHandler.tsx
|
|
25329
25325
|
function WalletConnectHandler() {
|
|
25330
|
-
const qc = (0,
|
|
25326
|
+
const qc = (0, import_react_query57.useQueryClient)();
|
|
25331
25327
|
const { callbacksRef } = useProviderConfig();
|
|
25332
25328
|
const passportWalletAddress = useSession((st) => st.address);
|
|
25333
25329
|
const { address: walletAddress, isConnected, chain, connector } = (0, import_wagmi8.useAccount)();
|
|
@@ -25455,7 +25451,7 @@ function WalletConnectHandler() {
|
|
|
25455
25451
|
}
|
|
25456
25452
|
}, [isWalletLinking, setIsWalletLinking, disconnect]);
|
|
25457
25453
|
const isAuthFlow = !passportWalletAddress;
|
|
25458
|
-
const { mutate: handleWalletSign, isPending: isWalletSigning } = (0,
|
|
25454
|
+
const { mutate: handleWalletSign, isPending: isWalletSigning } = (0, import_react_query57.useMutation)({
|
|
25459
25455
|
mutationFn: async (payload) => {
|
|
25460
25456
|
const { chainId, signingWalletAddress } = payload;
|
|
25461
25457
|
if (!signingWalletAddress || !chainId) {
|
|
@@ -25588,14 +25584,14 @@ function WalletConnectHandler() {
|
|
|
25588
25584
|
]);
|
|
25589
25585
|
return null;
|
|
25590
25586
|
}
|
|
25591
|
-
var import_rainbowkit2,
|
|
25587
|
+
var import_rainbowkit2, import_react_query57, import_react90, import_wagmi8;
|
|
25592
25588
|
var init_WalletConnectHandler = __esm({
|
|
25593
25589
|
"src/internal/components/WalletConnectHandler.tsx"() {
|
|
25594
25590
|
init_ProviderContext();
|
|
25595
25591
|
init_SessionContext();
|
|
25596
25592
|
init_linkedProfiles();
|
|
25597
25593
|
import_rainbowkit2 = require("@rainbow-me/rainbowkit");
|
|
25598
|
-
|
|
25594
|
+
import_react_query57 = require("@tanstack/react-query");
|
|
25599
25595
|
import_react90 = __toESM(require("react"), 1);
|
|
25600
25596
|
import_wagmi8 = require("wagmi");
|
|
25601
25597
|
init_wallet();
|
|
@@ -28620,13 +28616,14 @@ __export(index_exports, {
|
|
|
28620
28616
|
UserOperationTimeoutError: () => UserOperationTimeoutError,
|
|
28621
28617
|
UserRejectedError: () => UserRejectedError,
|
|
28622
28618
|
WALLET_ICONS: () => WALLET_ICONS,
|
|
28623
|
-
|
|
28619
|
+
checkWrapedTokenSymbol: () => checkWrapedTokenSymbol,
|
|
28624
28620
|
combineI18NResources: () => combineI18NResources,
|
|
28625
28621
|
createAccountAbstractionError: () => createAccountAbstractionError,
|
|
28626
28622
|
deployAccount: () => deployAccount,
|
|
28627
28623
|
destroyIframeManager: () => destroyIframeManager,
|
|
28628
28624
|
generateFingerprint: () => generateFingerprint,
|
|
28629
28625
|
getAllSmartAccounts: () => getAllSmartAccounts,
|
|
28626
|
+
getAssetRate: () => getAssetRate,
|
|
28630
28627
|
getAvailableLanguages: () => getAvailableLanguages,
|
|
28631
28628
|
getExplorerUrl: () => getExplorerUrl,
|
|
28632
28629
|
getIframeManager: () => getIframeManager,
|
|
@@ -28652,6 +28649,7 @@ __export(index_exports, {
|
|
|
28652
28649
|
useAccountSession: () => useAccountSession,
|
|
28653
28650
|
useActiveChainId: () => useActiveChainId,
|
|
28654
28651
|
useAddress: () => useAddress,
|
|
28652
|
+
useAssetUsdtRate: () => useAssetUsdtRate,
|
|
28655
28653
|
useAssets: () => useAssets,
|
|
28656
28654
|
useBalance: () => useBalance,
|
|
28657
28655
|
useBlockscoutAssets: () => useBlockscoutAssets,
|
|
@@ -29953,6 +29951,7 @@ init_bundler();
|
|
|
29953
29951
|
init_auth();
|
|
29954
29952
|
init_profile();
|
|
29955
29953
|
init_SecurityMenu2();
|
|
29954
|
+
init_BalanceFeedProvider2();
|
|
29956
29955
|
init_linkedProfiles();
|
|
29957
29956
|
init_nickname_fingerprint();
|
|
29958
29957
|
init_errors();
|
|
@@ -30253,7 +30252,6 @@ init_tokens();
|
|
|
30253
30252
|
init_wallets();
|
|
30254
30253
|
|
|
30255
30254
|
// src/index.ts
|
|
30256
|
-
init_constants();
|
|
30257
30255
|
init_i18n();
|
|
30258
30256
|
|
|
30259
30257
|
// src/internal/exportedQueryKeys.ts
|
|
@@ -30298,13 +30296,14 @@ autorun();
|
|
|
30298
30296
|
UserOperationTimeoutError,
|
|
30299
30297
|
UserRejectedError,
|
|
30300
30298
|
WALLET_ICONS,
|
|
30301
|
-
|
|
30299
|
+
checkWrapedTokenSymbol,
|
|
30302
30300
|
combineI18NResources,
|
|
30303
30301
|
createAccountAbstractionError,
|
|
30304
30302
|
deployAccount,
|
|
30305
30303
|
destroyIframeManager,
|
|
30306
30304
|
generateFingerprint,
|
|
30307
30305
|
getAllSmartAccounts,
|
|
30306
|
+
getAssetRate,
|
|
30308
30307
|
getAvailableLanguages,
|
|
30309
30308
|
getExplorerUrl,
|
|
30310
30309
|
getIframeManager,
|
|
@@ -30330,6 +30329,7 @@ autorun();
|
|
|
30330
30329
|
useAccountSession,
|
|
30331
30330
|
useActiveChainId,
|
|
30332
30331
|
useAddress,
|
|
30332
|
+
useAssetUsdtRate,
|
|
30333
30333
|
useAssets,
|
|
30334
30334
|
useBalance,
|
|
30335
30335
|
useBlockscoutAssets,
|