@lifi/widget 3.40.8 → 4.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -50
- package/dist/esm/AppDefault.d.ts +8 -0
- package/dist/esm/AppDefault.js +231 -14
- package/dist/esm/AppDefault.js.map +1 -1
- package/dist/esm/AppLayout.d.ts +1 -0
- package/dist/esm/AppLayout.js +19 -0
- package/dist/esm/AppLayout.js.map +1 -0
- package/dist/esm/AppProvider.js +7 -20
- package/dist/esm/AppProvider.js.map +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js +9 -6
- package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js.map +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.js +2 -2
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.js.map +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.style.d.ts +2 -2
- package/dist/esm/components/AmountInput/AmountInput.js +5 -7
- package/dist/esm/components/AmountInput/AmountInput.js.map +1 -1
- package/dist/esm/components/AmountInput/AmountInput.style.d.ts +2 -2
- package/dist/esm/components/AmountInput/AmountInputAdornment.style.d.ts +1 -1
- package/dist/esm/components/AmountInput/AmountInputEndAdornment.js +1 -1
- package/dist/esm/components/AmountInput/AmountInputEndAdornment.js.map +1 -1
- package/dist/esm/components/AmountInput/PriceFormHelperText.style.d.ts +1 -1
- package/dist/esm/components/AppContainer.d.ts +1 -1
- package/dist/esm/components/Avatar/AccountAvatar.d.ts +1 -1
- package/dist/esm/components/Avatar/AccountAvatar.js.map +1 -1
- package/dist/esm/components/Avatar/Avatar.style.d.ts +1 -1
- package/dist/esm/components/Avatar/SmallAvatar.d.ts +1 -1
- package/dist/esm/components/ButtonTertiary.d.ts +1 -1
- package/dist/esm/components/Card/Card.d.ts +1 -1
- package/dist/esm/components/Card/CardButton.style.d.ts +2 -2
- package/dist/esm/components/Card/CardHeader.d.ts +1 -1
- package/dist/esm/components/Card/CardIconButton.d.ts +3 -3
- package/dist/esm/components/Card/CardLabel.d.ts +1 -1
- package/dist/esm/components/Card/CardTitle.d.ts +1 -1
- package/dist/esm/components/Card/InputCard.d.ts +1 -1
- package/dist/esm/components/ChainSelect/ChainSelect.js +8 -3
- package/dist/esm/components/ChainSelect/ChainSelect.js.map +1 -1
- package/dist/esm/components/ChainSelect/ChainSelect.style.d.ts +3 -3
- package/dist/esm/components/Chains/ChainList.style.d.ts +4 -4
- package/dist/esm/components/Chains/VirtualizedChainList.d.ts +1 -1
- package/dist/esm/components/Chains/VirtualizedChainList.js +7 -1
- package/dist/esm/components/Chains/VirtualizedChainList.js.map +1 -1
- package/dist/esm/components/ContractComponent/ItemPrice.d.ts +1 -1
- package/dist/esm/components/ContractComponent/ItemPrice.js +1 -1
- package/dist/esm/components/ContractComponent/ItemPrice.js.map +1 -1
- package/dist/esm/components/ContractComponent/NFT/NFT.js +1 -1
- package/dist/esm/components/ContractComponent/NFT/NFT.js.map +1 -1
- package/dist/esm/components/ContractComponent/NFT/NFT.style.d.ts +1 -1
- package/dist/esm/components/Header/BackButton.d.ts +1 -2
- package/dist/esm/components/Header/BackButton.js +16 -2
- package/dist/esm/components/Header/BackButton.js.map +1 -1
- package/dist/esm/components/Header/DisconnectIconButton.d.ts +1 -1
- package/dist/esm/components/Header/DisconnectIconButton.js.map +1 -1
- package/dist/esm/components/Header/Header.js +1 -1
- package/dist/esm/components/Header/Header.js.map +1 -1
- package/dist/esm/components/Header/Header.style.d.ts +3 -3
- package/dist/esm/components/Header/NavigationHeader.js +7 -13
- package/dist/esm/components/Header/NavigationHeader.js.map +1 -1
- package/dist/esm/components/Header/SettingsButton.js +3 -3
- package/dist/esm/components/Header/SettingsButton.js.map +1 -1
- package/dist/esm/components/Header/SettingsButton.style.d.ts +2 -2
- package/dist/esm/components/Header/TransactionHistoryButton.js +3 -3
- package/dist/esm/components/Header/TransactionHistoryButton.js.map +1 -1
- package/dist/esm/components/Header/WalletHeader.js.map +1 -1
- package/dist/esm/components/ListItem/ListItem.d.ts +1 -1
- package/dist/esm/components/ListItem/ListItemButton.d.ts +1 -1
- package/dist/esm/components/ListItemButton.d.ts +1 -1
- package/dist/esm/components/Messages/GasSufficiencyMessage.js +1 -1
- package/dist/esm/components/Messages/GasSufficiencyMessage.js.map +1 -1
- package/dist/esm/components/PageContainer.d.ts +1 -1
- package/dist/esm/components/PageEntered.js +1 -1
- package/dist/esm/components/PageEntered.js.map +1 -1
- package/dist/esm/components/PoweredBy/PoweredBy.style.d.ts +1 -1
- package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.js +0 -9
- package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.js.map +1 -1
- package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
- package/dist/esm/components/RouteCard/RouteCard.js +1 -3
- package/dist/esm/components/RouteCard/RouteCard.js.map +1 -1
- package/dist/esm/components/Routes/Routes.js +3 -4
- package/dist/esm/components/Routes/Routes.js.map +1 -1
- package/dist/esm/components/Routes/RoutesContent.js +1 -2
- package/dist/esm/components/Routes/RoutesContent.js.map +1 -1
- package/dist/esm/components/Routes/RoutesExpanded.js +4 -3
- package/dist/esm/components/Routes/RoutesExpanded.js.map +1 -1
- package/dist/esm/components/Routes/RoutesExpanded.style.d.ts +1 -1
- package/dist/esm/components/Search/SearchInput.style.d.ts +1 -1
- package/dist/esm/components/Search/SearchNotFound.style.d.ts +2 -2
- package/dist/esm/components/SelectChainAndToken.js +2 -3
- package/dist/esm/components/SelectChainAndToken.js.map +1 -1
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.js +10 -10
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.js.map +1 -1
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.d.ts +3 -3
- package/dist/esm/components/SendToWallet/SendToWallet.style.d.ts +1 -1
- package/dist/esm/components/SendToWallet/SendToWalletButton.js +10 -8
- package/dist/esm/components/SendToWallet/SendToWalletButton.js.map +1 -1
- package/dist/esm/components/SettingsListItemButton.d.ts +1 -1
- package/dist/esm/components/Skeleton/WidgetSkeleton.style.d.ts +4 -4
- package/dist/esm/components/Step/CircularProgress.d.ts +3 -3
- package/dist/esm/components/Step/CircularProgress.js +8 -8
- package/dist/esm/components/Step/CircularProgress.js.map +1 -1
- package/dist/esm/components/Step/CircularProgress.style.d.ts +2 -2
- package/dist/esm/components/Step/CircularProgress.style.js.map +1 -1
- package/dist/esm/components/Step/Step.js +8 -11
- package/dist/esm/components/Step/Step.js.map +1 -1
- package/dist/esm/components/Step/StepAction.d.ts +5 -0
- package/dist/esm/components/Step/{StepProcess.js → StepAction.js} +16 -12
- package/dist/esm/components/Step/StepAction.js.map +1 -0
- package/dist/esm/components/StepActions/StepActions.js +3 -2
- package/dist/esm/components/StepActions/StepActions.js.map +1 -1
- package/dist/esm/components/StepActions/StepActions.style.d.ts +2 -2
- package/dist/esm/components/StepDivider/StepDivider.style.d.ts +1 -1
- package/dist/esm/components/Tabs/NavigationTabs.d.ts +4 -4
- package/dist/esm/components/Tabs/Tabs.style.d.ts +3 -3
- package/dist/esm/components/Timer/StepTimer.js +26 -74
- package/dist/esm/components/Timer/StepTimer.js.map +1 -1
- package/dist/esm/components/Token/Token.style.d.ts +1 -1
- package/dist/esm/components/TokenList/PinTokenButton.d.ts +6 -0
- package/dist/esm/components/TokenList/PinTokenButton.js +29 -0
- package/dist/esm/components/TokenList/PinTokenButton.js.map +1 -0
- package/dist/esm/components/TokenList/TokenDetailsSheetContent.style.d.ts +2 -2
- package/dist/esm/components/TokenList/TokenList.js +13 -5
- package/dist/esm/components/TokenList/TokenList.js.map +1 -1
- package/dist/esm/components/TokenList/TokenList.style.d.ts +6 -6
- package/dist/esm/components/TokenList/TokenListItem.js +5 -4
- package/dist/esm/components/TokenList/TokenListItem.js.map +1 -1
- package/dist/esm/components/TokenList/VirtualizedTokenList.js +63 -38
- package/dist/esm/components/TokenList/VirtualizedTokenList.js.map +1 -1
- package/dist/esm/components/TokenList/types.d.ts +2 -3
- package/dist/esm/components/TokenList/useTokenSelect.js +2 -3
- package/dist/esm/components/TokenList/useTokenSelect.js.map +1 -1
- package/dist/esm/components/TokenRate/TokenRate.d.ts +1 -1
- package/dist/esm/components/TokenRate/TokenRate.js +1 -1
- package/dist/esm/components/TokenRate/TokenRate.js.map +1 -1
- package/dist/esm/components/TokenRate/TokenRate.style.d.ts +1 -1
- package/dist/esm/components/TransactionDetails.js +3 -2
- package/dist/esm/components/TransactionDetails.js.map +1 -1
- package/dist/esm/config/version.d.ts +1 -1
- package/dist/esm/config/version.js +1 -1
- package/dist/esm/config/version.js.map +1 -1
- package/dist/esm/hooks/useActionMessage.d.ts +5 -0
- package/dist/esm/hooks/useActionMessage.js +18 -0
- package/dist/esm/hooks/useActionMessage.js.map +1 -0
- package/dist/esm/hooks/useAddressActivity.js +18 -9
- package/dist/esm/hooks/useAddressActivity.js.map +1 -1
- package/dist/esm/hooks/useAddressValidation.js +5 -2
- package/dist/esm/hooks/useAddressValidation.js.map +1 -1
- package/dist/esm/hooks/useAvailableChains.d.ts +2 -1
- package/dist/esm/hooks/useAvailableChains.js +32 -11
- package/dist/esm/hooks/useAvailableChains.js.map +1 -1
- package/dist/esm/hooks/useExplorer.js +1 -2
- package/dist/esm/hooks/useExplorer.js.map +1 -1
- package/dist/esm/hooks/useFilteredByTokenBalances.js +3 -1
- package/dist/esm/hooks/useFilteredByTokenBalances.js.map +1 -1
- package/dist/esm/hooks/useFromTokenSufficiency.d.ts +1 -1
- package/dist/esm/hooks/useFromTokenSufficiency.js +4 -4
- package/dist/esm/hooks/useFromTokenSufficiency.js.map +1 -1
- package/dist/esm/hooks/useGasRecommendation.js +3 -1
- package/dist/esm/hooks/useGasRecommendation.js.map +1 -1
- package/dist/esm/hooks/useGasSufficiency.js +21 -15
- package/dist/esm/hooks/useGasSufficiency.js.map +1 -1
- package/dist/esm/hooks/useHasChainExpansion.d.ts +1 -1
- package/dist/esm/hooks/useHasChainExpansion.js +11 -3
- package/dist/esm/hooks/useHasChainExpansion.js.map +1 -1
- package/dist/esm/hooks/useInitializeSDKProviders.d.ts +1 -0
- package/dist/esm/hooks/useInitializeSDKProviders.js +11 -0
- package/dist/esm/hooks/useInitializeSDKProviders.js.map +1 -0
- package/dist/esm/hooks/useIsBatchingSupported.js +7 -3
- package/dist/esm/hooks/useIsBatchingSupported.js.map +1 -1
- package/dist/esm/hooks/useIsContractAddress.js +12 -9
- package/dist/esm/hooks/useIsContractAddress.js.map +1 -1
- package/dist/esm/hooks/useNavigateBack.d.ts +1 -4
- package/dist/esm/hooks/useNavigateBack.js +9 -23
- package/dist/esm/hooks/useNavigateBack.js.map +1 -1
- package/dist/esm/hooks/useRouteExecution.js +12 -13
- package/dist/esm/hooks/useRouteExecution.js.map +1 -1
- package/dist/esm/hooks/useRoutes.js +23 -60
- package/dist/esm/hooks/useRoutes.js.map +1 -1
- package/dist/esm/hooks/useToAddressAutoPopulate.js +3 -1
- package/dist/esm/hooks/useToAddressAutoPopulate.js.map +1 -1
- package/dist/esm/hooks/useToAddressRequirements.js +3 -2
- package/dist/esm/hooks/useToAddressRequirements.js.map +1 -1
- package/dist/esm/hooks/useTokenBalance.d.ts +3 -3
- package/dist/esm/hooks/useTokenBalance.js +8 -6
- package/dist/esm/hooks/useTokenBalance.js.map +1 -1
- package/dist/esm/hooks/useTokenBalances.d.ts +1 -0
- package/dist/esm/hooks/useTokenBalances.js +70 -5
- package/dist/esm/hooks/useTokenBalances.js.map +1 -1
- package/dist/esm/hooks/useTokenBalancesQueries.js +4 -2
- package/dist/esm/hooks/useTokenBalancesQueries.js.map +1 -1
- package/dist/esm/hooks/useTokenSearch.js +3 -1
- package/dist/esm/hooks/useTokenSearch.js.map +1 -1
- package/dist/esm/hooks/useTokens.js +11 -5
- package/dist/esm/hooks/useTokens.js.map +1 -1
- package/dist/esm/hooks/useTools.js +3 -1
- package/dist/esm/hooks/useTools.js.map +1 -1
- package/dist/esm/hooks/useTransactionDetails.js +3 -1
- package/dist/esm/hooks/useTransactionDetails.js.map +1 -1
- package/dist/esm/hooks/useTransactionHistory.js +3 -1
- package/dist/esm/hooks/useTransactionHistory.js.map +1 -1
- package/dist/esm/hooks/useWidgetChains.d.ts +6 -0
- package/dist/esm/hooks/useWidgetChains.js +5 -0
- package/dist/esm/hooks/useWidgetChains.js.map +1 -0
- package/dist/esm/i18n/bn.json +4 -1
- package/dist/esm/i18n/de.json +4 -1
- package/dist/esm/i18n/en.json +3 -14
- package/dist/esm/i18n/es.json +4 -1
- package/dist/esm/i18n/fr.json +4 -1
- package/dist/esm/i18n/hi.json +4 -1
- package/dist/esm/i18n/id.json +4 -1
- package/dist/esm/i18n/it.json +4 -1
- package/dist/esm/i18n/ja.json +4 -1
- package/dist/esm/i18n/ko.json +4 -1
- package/dist/esm/i18n/pl.json +4 -1
- package/dist/esm/i18n/pt.json +4 -1
- package/dist/esm/i18n/th.json +4 -1
- package/dist/esm/i18n/tr.json +4 -1
- package/dist/esm/i18n/uk.json +4 -1
- package/dist/esm/i18n/vi.json +4 -1
- package/dist/esm/i18n/zh.json +4 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/pages/LanguagesPage.js +7 -6
- package/dist/esm/pages/LanguagesPage.js.map +1 -1
- package/dist/esm/pages/MainPage/MainPage.js +1 -3
- package/dist/esm/pages/MainPage/MainPage.js.map +1 -1
- package/dist/esm/pages/MainPage/ReviewButton.js +5 -5
- package/dist/esm/pages/MainPage/ReviewButton.js.map +1 -1
- package/dist/esm/pages/RoutesPage/RoutesPage.d.ts +1 -2
- package/dist/esm/pages/RoutesPage/RoutesPage.js +5 -4
- package/dist/esm/pages/RoutesPage/RoutesPage.js.map +1 -1
- package/dist/esm/pages/SelectChainPage/SelectChainPage.js +1 -1
- package/dist/esm/pages/SelectChainPage/SelectChainPage.js.map +1 -1
- package/dist/esm/pages/SelectTokenPage/SelectTokenPage.js +2 -13
- package/dist/esm/pages/SelectTokenPage/SelectTokenPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/BookmarksPage.js +3 -5
- package/dist/esm/pages/SendToWallet/BookmarksPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js +1 -1
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/ConnectedWalletsPage.js +4 -3
- package/dist/esm/pages/SendToWallet/ConnectedWalletsPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/RecentWalletsPage.js +4 -7
- package/dist/esm/pages/SendToWallet/RecentWalletsPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToConfiguredWalletPage.js +1 -1
- package/dist/esm/pages/SendToWallet/SendToConfiguredWalletPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.d.ts +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.js +5 -5
- package/dist/esm/pages/SendToWallet/SendToWalletPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.d.ts +8 -8
- package/dist/esm/pages/SettingsPage/BridgeAndExchangeSettings.js +4 -2
- package/dist/esm/pages/SettingsPage/BridgeAndExchangeSettings.js.map +1 -1
- package/dist/esm/pages/SettingsPage/LanguageSetting.js +2 -2
- package/dist/esm/pages/SettingsPage/LanguageSetting.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SettingsCard/SettingCard.style.d.ts +1 -1
- package/dist/esm/pages/SettingsPage/SettingsCard/SettingCardExpandable.d.ts +12 -2
- package/dist/esm/pages/SettingsPage/SettingsCard/SettingCardExpandable.js +10 -4
- package/dist/esm/pages/SettingsPage/SettingsCard/SettingCardExpandable.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SettingsCard/SettingsAccordian.d.ts +1 -1
- package/dist/esm/pages/SettingsPage/SettingsCard/SettingsAccordian.js +2 -2
- package/dist/esm/pages/SettingsPage/SettingsCard/SettingsAccordian.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SettingsPage.js +5 -1
- package/dist/esm/pages/SettingsPage/SettingsPage.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js +3 -3
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.d.ts +3 -3
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js +9 -9
- package/dist/esm/pages/SettingsPage/SmallBalanceFilterSettings.d.ts +1 -0
- package/dist/esm/pages/SettingsPage/SmallBalanceFilterSettings.js +58 -0
- package/dist/esm/pages/SettingsPage/SmallBalanceFilterSettings.js.map +1 -0
- package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsPage.js +7 -8
- package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsPage.js.map +1 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryItem.js +4 -3
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryItem.js.map +1 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryPage.d.ts +1 -2
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryPage.js.map +1 -1
- package/dist/esm/pages/TransactionPage/StatusBottomSheet.js +13 -12
- package/dist/esm/pages/TransactionPage/StatusBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/TransactionPage.d.ts +1 -1
- package/dist/esm/pages/TransactionPage/TransactionPage.js +13 -6
- package/dist/esm/pages/TransactionPage/TransactionPage.js.map +1 -1
- package/dist/esm/providers/I18nProvider/I18nProvider.js +1 -0
- package/dist/esm/providers/I18nProvider/I18nProvider.js.map +1 -1
- package/dist/esm/providers/SDKClientProvider.d.ts +4 -0
- package/dist/esm/providers/SDKClientProvider.js +29 -0
- package/dist/esm/providers/SDKClientProvider.js.map +1 -0
- package/dist/esm/providers/WalletProvider/WalletProvider.d.ts +7 -2
- package/dist/esm/providers/WalletProvider/WalletProvider.js +27 -11
- package/dist/esm/providers/WalletProvider/WalletProvider.js.map +1 -1
- package/dist/esm/providers/WalletProvider/useExternalWalletProvider.js +15 -18
- package/dist/esm/providers/WalletProvider/useExternalWalletProvider.js.map +1 -1
- package/dist/esm/providers/WidgetProvider/WidgetProvider.js +0 -27
- package/dist/esm/providers/WidgetProvider/WidgetProvider.js.map +1 -1
- package/dist/esm/stores/StoreProvider.js +2 -1
- package/dist/esm/stores/StoreProvider.js.map +1 -1
- package/dist/esm/stores/bookmarks/types.d.ts +2 -3
- package/dist/esm/stores/chains/ChainOrderStore.js +17 -12
- package/dist/esm/stores/chains/ChainOrderStore.js.map +1 -1
- package/dist/esm/stores/chains/createChainOrderStore.d.ts +0 -8
- package/dist/esm/stores/chains/createChainOrderStore.js +1 -5
- package/dist/esm/stores/chains/createChainOrderStore.js.map +1 -1
- package/dist/esm/stores/form/FormStore.js +18 -8
- package/dist/esm/stores/form/FormStore.js.map +1 -1
- package/dist/esm/stores/form/FormUpdater.js +5 -50
- package/dist/esm/stores/form/FormUpdater.js.map +1 -1
- package/dist/esm/stores/form/URLSearchParamsBuilder.js +11 -31
- package/dist/esm/stores/form/URLSearchParamsBuilder.js.map +1 -1
- package/dist/esm/stores/form/getDefaultValuesFromQueryString.d.ts +7 -0
- package/dist/esm/stores/form/getDefaultValuesFromQueryString.js +32 -0
- package/dist/esm/stores/form/getDefaultValuesFromQueryString.js.map +1 -0
- package/dist/esm/stores/form/types.d.ts +2 -3
- package/dist/esm/stores/form/types.js.map +1 -1
- package/dist/esm/stores/header/types.d.ts +5 -3
- package/dist/esm/stores/header/useHeaderStore.js +14 -0
- package/dist/esm/stores/header/useHeaderStore.js.map +1 -1
- package/dist/esm/stores/pinnedTokens/PinnedTokensStore.d.ts +4 -0
- package/dist/esm/stores/pinnedTokens/PinnedTokensStore.js +20 -0
- package/dist/esm/stores/pinnedTokens/PinnedTokensStore.js.map +1 -0
- package/dist/esm/stores/pinnedTokens/createPinnedTokensStore.d.ts +19 -0
- package/dist/esm/stores/pinnedTokens/createPinnedTokensStore.js +61 -0
- package/dist/esm/stores/pinnedTokens/createPinnedTokensStore.js.map +1 -0
- package/dist/esm/stores/pinnedTokens/types.d.ts +17 -0
- package/dist/esm/stores/pinnedTokens/types.js +2 -0
- package/dist/esm/stores/pinnedTokens/types.js.map +1 -0
- package/dist/esm/stores/routes/RouteExecutionStore.d.ts +2 -3
- package/dist/esm/stores/routes/RouteExecutionStore.js.map +1 -1
- package/dist/esm/stores/routes/createRouteExecutionStore.js +2 -5
- package/dist/esm/stores/routes/createRouteExecutionStore.js.map +1 -1
- package/dist/esm/stores/routes/useExecutingRoutesIds.js +2 -2
- package/dist/esm/stores/routes/useExecutingRoutesIds.js.map +1 -1
- package/dist/esm/stores/routes/utils.d.ts +2 -2
- package/dist/esm/stores/routes/utils.js +15 -15
- package/dist/esm/stores/routes/utils.js.map +1 -1
- package/dist/esm/stores/settings/SettingsStore.d.ts +2 -3
- package/dist/esm/stores/settings/SettingsStore.js.map +1 -1
- package/dist/esm/stores/settings/createSettingsStore.d.ts +2 -0
- package/dist/esm/stores/settings/createSettingsStore.js +2 -1
- package/dist/esm/stores/settings/createSettingsStore.js.map +1 -1
- package/dist/esm/stores/settings/types.d.ts +3 -3
- package/dist/esm/stores/settings/types.js.map +1 -1
- package/dist/esm/types/events.d.ts +2 -10
- package/dist/esm/types/events.js +0 -1
- package/dist/esm/types/events.js.map +1 -1
- package/dist/esm/types/token.d.ts +1 -0
- package/dist/esm/types/widget.d.ts +9 -16
- package/dist/esm/types/widget.js +1 -0
- package/dist/esm/types/widget.js.map +1 -1
- package/dist/esm/utils/chainType.d.ts +1 -2
- package/dist/esm/utils/chainType.js +1 -19
- package/dist/esm/utils/chainType.js.map +1 -1
- package/dist/esm/utils/converters.js +11 -18
- package/dist/esm/utils/converters.js.map +1 -1
- package/dist/esm/utils/format.d.ts +1 -0
- package/dist/esm/utils/format.js +2 -1
- package/dist/esm/utils/format.js.map +1 -1
- package/dist/esm/utils/getActionMessage.d.ts +7 -0
- package/dist/esm/utils/getActionMessage.js +111 -0
- package/dist/esm/utils/getActionMessage.js.map +1 -0
- package/dist/esm/utils/getErrorMessage.d.ts +6 -0
- package/dist/esm/utils/getErrorMessage.js +118 -0
- package/dist/esm/utils/getErrorMessage.js.map +1 -0
- package/dist/esm/utils/prepareActions.d.ts +2 -0
- package/dist/esm/utils/prepareActions.js +24 -0
- package/dist/esm/utils/prepareActions.js.map +1 -0
- package/dist/esm/utils/tokenList.d.ts +3 -2
- package/dist/esm/utils/tokenList.js +104 -8
- package/dist/esm/utils/tokenList.js.map +1 -1
- package/package.json +15 -23
- package/package.json.tmp +16 -28
- package/src/AppDefault.tsx +279 -31
- package/src/AppLayout.tsx +36 -0
- package/src/AppProvider.tsx +12 -40
- package/src/components/ActiveTransactions/ActiveTransactionItem.tsx +9 -6
- package/src/components/ActiveTransactions/ActiveTransactions.tsx +2 -2
- package/src/components/AmountInput/AmountInput.tsx +6 -8
- package/src/components/AmountInput/AmountInputEndAdornment.tsx +1 -1
- package/src/components/Avatar/AccountAvatar.tsx +1 -1
- package/src/components/ChainSelect/ChainSelect.tsx +8 -4
- package/src/components/Chains/VirtualizedChainList.tsx +7 -3
- package/src/components/ContractComponent/ItemPrice.tsx +1 -2
- package/src/components/ContractComponent/NFT/NFT.tsx +1 -1
- package/src/components/Header/BackButton.tsx +15 -3
- package/src/components/Header/DisconnectIconButton.tsx +2 -1
- package/src/components/Header/Header.tsx +1 -1
- package/src/components/Header/NavigationHeader.tsx +23 -46
- package/src/components/Header/SettingsButton.tsx +3 -3
- package/src/components/Header/TransactionHistoryButton.tsx +3 -3
- package/src/components/Header/WalletHeader.tsx +1 -1
- package/src/components/Messages/GasSufficiencyMessage.tsx +1 -1
- package/src/components/PageEntered.ts +1 -1
- package/src/components/ReverseTokensButton/ReverseTokensButton.tsx +0 -10
- package/src/components/RouteCard/RouteCard.tsx +1 -3
- package/src/components/Routes/Routes.tsx +3 -4
- package/src/components/Routes/RoutesContent.tsx +1 -2
- package/src/components/Routes/RoutesExpanded.tsx +4 -3
- package/src/components/SelectChainAndToken.tsx +2 -4
- package/src/components/SelectTokenButton/SelectTokenButton.tsx +11 -13
- package/src/components/SendToWallet/SendToWalletButton.tsx +9 -12
- package/src/components/Step/CircularProgress.style.tsx +3 -3
- package/src/components/Step/CircularProgress.tsx +11 -11
- package/src/components/Step/Step.tsx +13 -14
- package/src/components/Step/{StepProcess.tsx → StepAction.tsx} +20 -15
- package/src/components/StepActions/StepActions.tsx +3 -2
- package/src/components/Timer/StepTimer.tsx +43 -105
- package/src/components/TokenList/PinTokenButton.tsx +50 -0
- package/src/components/TokenList/TokenList.tsx +67 -59
- package/src/components/TokenList/TokenListItem.tsx +20 -11
- package/src/components/TokenList/VirtualizedTokenList.tsx +80 -53
- package/src/components/TokenList/types.ts +2 -3
- package/src/components/TokenList/useTokenSelect.ts +2 -8
- package/src/components/TokenRate/TokenRate.tsx +1 -2
- package/src/components/TransactionDetails.tsx +3 -2
- package/src/config/version.ts +1 -1
- package/src/hooks/useActionMessage.ts +33 -0
- package/src/hooks/useAddressActivity.ts +19 -11
- package/src/hooks/useAddressValidation.ts +9 -2
- package/src/hooks/useAvailableChains.ts +42 -14
- package/src/hooks/useExplorer.ts +1 -2
- package/src/hooks/useFilteredByTokenBalances.ts +3 -1
- package/src/hooks/useFromTokenSufficiency.ts +8 -5
- package/src/hooks/useGasRecommendation.ts +3 -0
- package/src/hooks/useGasSufficiency.ts +23 -13
- package/src/hooks/useHasChainExpansion.ts +13 -3
- package/src/hooks/useInitializeSDKProviders.ts +12 -0
- package/src/hooks/useIsBatchingSupported.ts +11 -5
- package/src/hooks/useIsContractAddress.ts +14 -10
- package/src/hooks/useNavigateBack.ts +11 -29
- package/src/hooks/useRouteExecution.ts +12 -16
- package/src/hooks/useRoutes.ts +26 -74
- package/src/hooks/useToAddressAutoPopulate.ts +3 -1
- package/src/hooks/useToAddressRequirements.ts +3 -2
- package/src/hooks/useTokenBalance.ts +18 -3
- package/src/hooks/useTokenBalances.ts +91 -5
- package/src/hooks/useTokenBalancesQueries.ts +4 -2
- package/src/hooks/useTokenSearch.ts +10 -3
- package/src/hooks/useTokens.ts +11 -6
- package/src/hooks/useTools.ts +3 -1
- package/src/hooks/useTransactionDetails.ts +3 -0
- package/src/hooks/useTransactionHistory.ts +3 -0
- package/src/hooks/useWidgetChains.ts +6 -0
- package/src/i18n/bn.json +4 -1
- package/src/i18n/de.json +4 -1
- package/src/i18n/en.json +3 -14
- package/src/i18n/es.json +4 -1
- package/src/i18n/fr.json +4 -1
- package/src/i18n/hi.json +4 -1
- package/src/i18n/id.json +4 -1
- package/src/i18n/it.json +4 -1
- package/src/i18n/ja.json +4 -1
- package/src/i18n/ko.json +4 -1
- package/src/i18n/pl.json +4 -1
- package/src/i18n/pt.json +4 -1
- package/src/i18n/th.json +4 -1
- package/src/i18n/tr.json +4 -1
- package/src/i18n/uk.json +4 -1
- package/src/i18n/vi.json +4 -1
- package/src/i18n/zh.json +4 -1
- package/src/index.ts +2 -8
- package/src/pages/LanguagesPage.tsx +2 -1
- package/src/pages/MainPage/MainPage.tsx +1 -3
- package/src/pages/MainPage/ReviewButton.tsx +5 -5
- package/src/pages/RoutesPage/RoutesPage.tsx +6 -6
- package/src/pages/SelectChainPage/SelectChainPage.tsx +1 -1
- package/src/pages/SelectTokenPage/SelectTokenPage.tsx +4 -28
- package/src/pages/SendToWallet/BookmarksPage.tsx +3 -5
- package/src/pages/SendToWallet/ConfirmAddressSheet.tsx +1 -1
- package/src/pages/SendToWallet/ConnectedWalletsPage.tsx +5 -4
- package/src/pages/SendToWallet/RecentWalletsPage.tsx +4 -7
- package/src/pages/SendToWallet/SendToConfiguredWalletPage.tsx +1 -1
- package/src/pages/SendToWallet/SendToWalletPage.tsx +6 -6
- package/src/pages/SettingsPage/BridgeAndExchangeSettings.tsx +4 -2
- package/src/pages/SettingsPage/LanguageSetting.tsx +2 -2
- package/src/pages/SettingsPage/SettingsCard/SettingCardExpandable.tsx +63 -33
- package/src/pages/SettingsPage/SettingsCard/SettingsAccordian.tsx +3 -2
- package/src/pages/SettingsPage/SettingsPage.tsx +7 -0
- package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.style.tsx +10 -10
- package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.tsx +5 -5
- package/src/pages/SettingsPage/SmallBalanceFilterSettings.tsx +116 -0
- package/src/pages/TransactionDetailsPage/TransactionDetailsPage.tsx +7 -8
- package/src/pages/TransactionHistoryPage/TransactionHistoryItem.tsx +4 -3
- package/src/pages/TransactionHistoryPage/TransactionHistoryPage.tsx +1 -2
- package/src/pages/TransactionPage/StatusBottomSheet.tsx +15 -14
- package/src/pages/TransactionPage/TransactionPage.tsx +14 -7
- package/src/providers/I18nProvider/I18nProvider.tsx +1 -0
- package/src/providers/SDKClientProvider.tsx +41 -0
- package/src/providers/WalletProvider/WalletProvider.tsx +61 -20
- package/src/providers/WalletProvider/useExternalWalletProvider.ts +20 -18
- package/src/providers/WidgetProvider/WidgetProvider.tsx +0 -29
- package/src/stores/StoreProvider.tsx +10 -7
- package/src/stores/bookmarks/types.ts +2 -3
- package/src/stores/chains/ChainOrderStore.tsx +29 -16
- package/src/stores/chains/createChainOrderStore.ts +1 -5
- package/src/stores/form/FormStore.tsx +19 -18
- package/src/stores/form/FormUpdater.tsx +5 -73
- package/src/stores/form/URLSearchParamsBuilder.tsx +12 -39
- package/src/stores/form/getDefaultValuesFromQueryString.ts +48 -0
- package/src/stores/form/types.ts +2 -5
- package/src/stores/header/types.ts +5 -3
- package/src/stores/header/useHeaderStore.tsx +14 -0
- package/src/stores/pinnedTokens/PinnedTokensStore.tsx +38 -0
- package/src/stores/pinnedTokens/createPinnedTokensStore.ts +71 -0
- package/src/stores/pinnedTokens/types.ts +20 -0
- package/src/stores/routes/RouteExecutionStore.tsx +2 -5
- package/src/stores/routes/createRouteExecutionStore.ts +4 -5
- package/src/stores/routes/useExecutingRoutesIds.ts +2 -2
- package/src/stores/routes/utils.ts +21 -19
- package/src/stores/settings/SettingsStore.tsx +2 -3
- package/src/stores/settings/createSettingsStore.ts +2 -1
- package/src/stores/settings/types.ts +3 -5
- package/src/types/events.ts +2 -11
- package/src/types/token.ts +1 -0
- package/src/types/widget.ts +18 -26
- package/src/utils/chainType.ts +1 -24
- package/src/utils/converters.ts +14 -20
- package/src/utils/format.ts +3 -1
- package/src/utils/getActionMessage.ts +168 -0
- package/src/utils/getErrorMessage.ts +144 -0
- package/src/utils/prepareActions.ts +27 -0
- package/src/utils/tokenList.ts +117 -11
- package/dist/esm/AppRoutes.d.ts +0 -1
- package/dist/esm/AppRoutes.js +0 -111
- package/dist/esm/AppRoutes.js.map +0 -1
- package/dist/esm/components/Step/StepProcess.d.ts +0 -5
- package/dist/esm/components/Step/StepProcess.js.map +0 -1
- package/dist/esm/config/baseAccount.d.ts +0 -2
- package/dist/esm/config/baseAccount.js +0 -6
- package/dist/esm/config/baseAccount.js.map +0 -1
- package/dist/esm/config/coinbase.d.ts +0 -2
- package/dist/esm/config/coinbase.js +0 -6
- package/dist/esm/config/coinbase.js.map +0 -1
- package/dist/esm/config/metaMask.d.ts +0 -2
- package/dist/esm/config/metaMask.js +0 -11
- package/dist/esm/config/metaMask.js.map +0 -1
- package/dist/esm/config/walletConnect.d.ts +0 -2
- package/dist/esm/config/walletConnect.js +0 -4
- package/dist/esm/config/walletConnect.js.map +0 -1
- package/dist/esm/hooks/useExpansionRoutes.d.ts +0 -2
- package/dist/esm/hooks/useExpansionRoutes.js +0 -26
- package/dist/esm/hooks/useExpansionRoutes.js.map +0 -1
- package/dist/esm/hooks/useInternalWalletProvider.d.ts +0 -1
- package/dist/esm/hooks/useInternalWalletProvider.js +0 -6
- package/dist/esm/hooks/useInternalWalletProvider.js.map +0 -1
- package/dist/esm/hooks/useProcessMessage.d.ts +0 -11
- package/dist/esm/hooks/useProcessMessage.js +0 -199
- package/dist/esm/hooks/useProcessMessage.js.map +0 -1
- package/dist/esm/providers/WalletProvider/EVMBaseProvider.d.ts +0 -2
- package/dist/esm/providers/WalletProvider/EVMBaseProvider.js +0 -31
- package/dist/esm/providers/WalletProvider/EVMBaseProvider.js.map +0 -1
- package/dist/esm/providers/WalletProvider/EVMExternalContext.d.ts +0 -1
- package/dist/esm/providers/WalletProvider/EVMExternalContext.js +0 -3
- package/dist/esm/providers/WalletProvider/EVMExternalContext.js.map +0 -1
- package/dist/esm/providers/WalletProvider/EVMProvider.d.ts +0 -2
- package/dist/esm/providers/WalletProvider/EVMProvider.js +0 -20
- package/dist/esm/providers/WalletProvider/EVMProvider.js.map +0 -1
- package/dist/esm/providers/WalletProvider/SDKProviders.d.ts +0 -1
- package/dist/esm/providers/WalletProvider/SDKProviders.js +0 -62
- package/dist/esm/providers/WalletProvider/SDKProviders.js.map +0 -1
- package/dist/esm/providers/WalletProvider/SVMBaseProvider.d.ts +0 -2
- package/dist/esm/providers/WalletProvider/SVMBaseProvider.js +0 -27
- package/dist/esm/providers/WalletProvider/SVMBaseProvider.js.map +0 -1
- package/dist/esm/providers/WalletProvider/SVMExternalContext.d.ts +0 -1
- package/dist/esm/providers/WalletProvider/SVMExternalContext.js +0 -3
- package/dist/esm/providers/WalletProvider/SVMExternalContext.js.map +0 -1
- package/dist/esm/providers/WalletProvider/SVMProvider.d.ts +0 -2
- package/dist/esm/providers/WalletProvider/SVMProvider.js +0 -20
- package/dist/esm/providers/WalletProvider/SVMProvider.js.map +0 -1
- package/dist/esm/providers/WalletProvider/SuiBaseProvider.d.ts +0 -2
- package/dist/esm/providers/WalletProvider/SuiBaseProvider.js +0 -17
- package/dist/esm/providers/WalletProvider/SuiBaseProvider.js.map +0 -1
- package/dist/esm/providers/WalletProvider/SuiExternalContext.d.ts +0 -1
- package/dist/esm/providers/WalletProvider/SuiExternalContext.js +0 -3
- package/dist/esm/providers/WalletProvider/SuiExternalContext.js.map +0 -1
- package/dist/esm/providers/WalletProvider/SuiProvider.d.ts +0 -2
- package/dist/esm/providers/WalletProvider/SuiProvider.js +0 -20
- package/dist/esm/providers/WalletProvider/SuiProvider.js.map +0 -1
- package/dist/esm/providers/WalletProvider/UTXOBaseProvider.d.ts +0 -2
- package/dist/esm/providers/WalletProvider/UTXOBaseProvider.js +0 -18
- package/dist/esm/providers/WalletProvider/UTXOBaseProvider.js.map +0 -1
- package/dist/esm/providers/WalletProvider/UTXOExternalContext.d.ts +0 -1
- package/dist/esm/providers/WalletProvider/UTXOExternalContext.js +0 -3
- package/dist/esm/providers/WalletProvider/UTXOExternalContext.js.map +0 -1
- package/dist/esm/providers/WalletProvider/UTXOProvider.d.ts +0 -2
- package/dist/esm/providers/WalletProvider/UTXOProvider.js +0 -20
- package/dist/esm/providers/WalletProvider/UTXOProvider.js.map +0 -1
- package/src/AppRoutes.tsx +0 -112
- package/src/config/baseAccount.ts +0 -7
- package/src/config/coinbase.ts +0 -7
- package/src/config/metaMask.ts +0 -13
- package/src/config/walletConnect.ts +0 -5
- package/src/hooks/useExpansionRoutes.ts +0 -29
- package/src/hooks/useInternalWalletProvider.ts +0 -6
- package/src/hooks/useProcessMessage.ts +0 -273
- package/src/providers/WalletProvider/EVMBaseProvider.tsx +0 -41
- package/src/providers/WalletProvider/EVMExternalContext.ts +0 -3
- package/src/providers/WalletProvider/EVMProvider.tsx +0 -28
- package/src/providers/WalletProvider/SDKProviders.tsx +0 -86
- package/src/providers/WalletProvider/SVMBaseProvider.tsx +0 -37
- package/src/providers/WalletProvider/SVMExternalContext.ts +0 -3
- package/src/providers/WalletProvider/SVMProvider.tsx +0 -29
- package/src/providers/WalletProvider/SuiBaseProvider.tsx +0 -31
- package/src/providers/WalletProvider/SuiExternalContext.ts +0 -3
- package/src/providers/WalletProvider/SuiProvider.tsx +0 -28
- package/src/providers/WalletProvider/UTXOBaseProvider.tsx +0 -29
- package/src/providers/WalletProvider/UTXOExternalContext.ts +0 -3
- package/src/providers/WalletProvider/UTXOProvider.tsx +0 -28
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { useMemo } from 'react'
|
|
2
2
|
import { useWidgetConfig } from '../providers/WidgetProvider/WidgetProvider.js'
|
|
3
3
|
import type { FormType } from '../stores/form/types.js'
|
|
4
|
+
import { usePinnedTokensStore } from '../stores/pinnedTokens/PinnedTokensStore.js'
|
|
5
|
+
import { useSettings } from '../stores/settings/useSettings.js'
|
|
6
|
+
import { HiddenUI } from '../types/widget.js'
|
|
7
|
+
import { formatTokenPrice } from '../utils/format.js'
|
|
4
8
|
import { isSearchMatch, processTokenBalances } from '../utils/tokenList.js'
|
|
5
9
|
import { useAccountsBalancesData } from './useAccountsBalancesData.js'
|
|
6
10
|
import { useTokenBalancesQueries } from './useTokenBalancesQueries.js'
|
|
@@ -12,6 +16,7 @@ export const useTokenBalances = (
|
|
|
12
16
|
isAllNetworks?: boolean,
|
|
13
17
|
search?: string
|
|
14
18
|
) => {
|
|
19
|
+
const { hiddenUI } = useWidgetConfig()
|
|
15
20
|
const {
|
|
16
21
|
allTokens,
|
|
17
22
|
isLoading: isTokensLoading,
|
|
@@ -28,11 +33,48 @@ export const useTokenBalances = (
|
|
|
28
33
|
useTokenBalancesQueries(accountsWithAllTokens, isBalanceLoadingEnabled)
|
|
29
34
|
|
|
30
35
|
const { tokens: configTokens } = useWidgetConfig()
|
|
36
|
+
const { smallBalanceThreshold } = useSettings(['smallBalanceThreshold'])
|
|
37
|
+
|
|
38
|
+
const pinnedTokens = usePinnedTokensStore((state) => state.pinnedTokens)
|
|
31
39
|
|
|
32
40
|
const isBalanceLoading =
|
|
33
41
|
(isBalanceQueriesLoading || isAccountsLoading) &&
|
|
34
42
|
!allTokensWithBalances?.length
|
|
35
43
|
|
|
44
|
+
// Create function to check if token is pinned
|
|
45
|
+
const isPinnedToken = useMemo(() => {
|
|
46
|
+
if (isAllNetworks) {
|
|
47
|
+
// For all networks, check all pinned tokens
|
|
48
|
+
const allPinned: Array<{ chainId: number; tokenAddress: string }> = []
|
|
49
|
+
Object.entries(pinnedTokens).forEach(([chainIdStr, addresses]) => {
|
|
50
|
+
const chainId = Number.parseInt(chainIdStr, 10)
|
|
51
|
+
addresses.forEach((address) => {
|
|
52
|
+
allPinned.push({ chainId, tokenAddress: address })
|
|
53
|
+
})
|
|
54
|
+
})
|
|
55
|
+
const pinnedSet = new Set(
|
|
56
|
+
allPinned.map((p) => `${p.chainId}-${p.tokenAddress.toLowerCase()}`)
|
|
57
|
+
)
|
|
58
|
+
return (chainId: number, tokenAddress: string) => {
|
|
59
|
+
const key = `${chainId}-${tokenAddress.toLowerCase()}`
|
|
60
|
+
return pinnedSet.has(key)
|
|
61
|
+
}
|
|
62
|
+
} else if (selectedChainId) {
|
|
63
|
+
// For single chain, check only selected chain
|
|
64
|
+
const chainPinnedTokens = pinnedTokens[selectedChainId] || []
|
|
65
|
+
const pinnedSet = new Set(
|
|
66
|
+
chainPinnedTokens.map((addr) => addr.toLowerCase())
|
|
67
|
+
)
|
|
68
|
+
return (chainId: number, tokenAddress: string) => {
|
|
69
|
+
return (
|
|
70
|
+
chainId === selectedChainId &&
|
|
71
|
+
pinnedSet.has(tokenAddress.toLowerCase())
|
|
72
|
+
)
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return undefined
|
|
76
|
+
}, [isAllNetworks, selectedChainId, pinnedTokens])
|
|
77
|
+
|
|
36
78
|
const displayedTokensList = useMemo(() => {
|
|
37
79
|
const tokensByChain = isAllNetworks
|
|
38
80
|
? Object.values(allTokens ?? {}).flat()
|
|
@@ -53,30 +95,72 @@ export const useTokenBalances = (
|
|
|
53
95
|
(t) => `${t.chainId}-${t.address.toLowerCase()}`
|
|
54
96
|
) || []
|
|
55
97
|
)
|
|
56
|
-
|
|
98
|
+
|
|
99
|
+
const hideSmallBalances =
|
|
100
|
+
!!smallBalanceThreshold && !hiddenUI?.includes(HiddenUI.HideSmallBalances)
|
|
101
|
+
const threshold = hideSmallBalances
|
|
102
|
+
? Number.parseFloat(smallBalanceThreshold)
|
|
103
|
+
: undefined
|
|
104
|
+
|
|
105
|
+
if (!balancesByChain) {
|
|
106
|
+
return undefined
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return balancesByChain.reduce<typeof balancesByChain>((acc, token) => {
|
|
57
110
|
const tokenKey = `${token.chainId}-${token.address.toLowerCase()}`
|
|
58
111
|
// Check if token is in displayed list and has amount
|
|
59
112
|
const isInDisplayedList = displayedTokensSet.has(tokenKey) && token.amount
|
|
60
113
|
// Check if it matches search (for cached appended tokens)
|
|
61
114
|
const matchesSearch = isSearchMatch(token, search)
|
|
62
|
-
|
|
63
|
-
|
|
115
|
+
|
|
116
|
+
// Filter: only include tokens that match our criteria
|
|
117
|
+
if (!isInDisplayedList && !matchesSearch) {
|
|
118
|
+
return acc
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Apply small balance threshold transformation if enabled
|
|
122
|
+
let processedToken = token
|
|
123
|
+
if (
|
|
124
|
+
hideSmallBalances &&
|
|
125
|
+
threshold !== undefined &&
|
|
126
|
+
threshold >= 0 &&
|
|
127
|
+
token.amount
|
|
128
|
+
) {
|
|
129
|
+
const balanceUSD = formatTokenPrice(
|
|
130
|
+
token.amount,
|
|
131
|
+
token.priceUSD,
|
|
132
|
+
token.decimals
|
|
133
|
+
)
|
|
134
|
+
if (balanceUSD < threshold) {
|
|
135
|
+
processedToken = {
|
|
136
|
+
...token,
|
|
137
|
+
amount: 0n,
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
acc.push(processedToken)
|
|
143
|
+
return acc
|
|
144
|
+
}, [])
|
|
64
145
|
}, [
|
|
65
146
|
allTokensWithBalances,
|
|
66
147
|
displayedTokensList,
|
|
67
148
|
search,
|
|
68
149
|
selectedChainId,
|
|
69
150
|
isAllNetworks,
|
|
151
|
+
smallBalanceThreshold,
|
|
152
|
+
hiddenUI,
|
|
70
153
|
])
|
|
71
154
|
|
|
72
|
-
const { processedTokens, withCategories } = useMemo(() => {
|
|
155
|
+
const { processedTokens, withCategories, withPinnedTokens } = useMemo(() => {
|
|
73
156
|
return processTokenBalances(
|
|
74
157
|
isBalanceLoading,
|
|
75
158
|
isAllNetworks || !!search,
|
|
76
159
|
configTokens,
|
|
77
160
|
selectedChainId,
|
|
78
161
|
displayedTokensList,
|
|
79
|
-
displayedTokensWithBalances
|
|
162
|
+
displayedTokensWithBalances,
|
|
163
|
+
isPinnedToken
|
|
80
164
|
)
|
|
81
165
|
}, [
|
|
82
166
|
isBalanceLoading,
|
|
@@ -86,11 +170,13 @@ export const useTokenBalances = (
|
|
|
86
170
|
displayedTokensList,
|
|
87
171
|
displayedTokensWithBalances,
|
|
88
172
|
search,
|
|
173
|
+
isPinnedToken,
|
|
89
174
|
])
|
|
90
175
|
|
|
91
176
|
return {
|
|
92
177
|
tokens: processedTokens ?? [],
|
|
93
178
|
withCategories,
|
|
179
|
+
withPinnedTokens,
|
|
94
180
|
isTokensLoading,
|
|
95
181
|
isSearchLoading,
|
|
96
182
|
isBalanceLoading,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getTokenBalances, type TokenExtended } from '@lifi/sdk'
|
|
2
2
|
import { useQueries } from '@tanstack/react-query'
|
|
3
3
|
import { useMemo, useRef } from 'react'
|
|
4
|
+
import { useSDKClient } from '../providers/SDKClientProvider.js'
|
|
4
5
|
import { useWidgetConfig } from '../providers/WidgetProvider/WidgetProvider.js'
|
|
5
6
|
import type { TokenAmount, TokenAmountExtended } from '../types/token.js'
|
|
6
7
|
import { getQueryKey } from '../utils/queries.js'
|
|
@@ -12,6 +13,7 @@ export const useTokenBalancesQueries = (
|
|
|
12
13
|
isBalanceLoadingEnabled?: boolean
|
|
13
14
|
) => {
|
|
14
15
|
const { keyPrefix } = useWidgetConfig()
|
|
16
|
+
const sdkClient = useSDKClient()
|
|
15
17
|
const firstLoadStartRef = useRef<number | null>(null)
|
|
16
18
|
|
|
17
19
|
const queryConfig = useMemo(() => {
|
|
@@ -33,7 +35,7 @@ export const useTokenBalancesQueries = (
|
|
|
33
35
|
if (!accountAddress || !tokens) {
|
|
34
36
|
return []
|
|
35
37
|
}
|
|
36
|
-
return await getTokenBalances(accountAddress, tokens)
|
|
38
|
+
return await getTokenBalances(sdkClient, accountAddress, tokens)
|
|
37
39
|
},
|
|
38
40
|
enabled: isBalanceLoadingEnabled,
|
|
39
41
|
refetchInterval: defaultRefetchInterval,
|
|
@@ -42,7 +44,7 @@ export const useTokenBalancesQueries = (
|
|
|
42
44
|
}
|
|
43
45
|
})
|
|
44
46
|
)
|
|
45
|
-
}, [accountsWithTokens, isBalanceLoadingEnabled, keyPrefix])
|
|
47
|
+
}, [accountsWithTokens, isBalanceLoadingEnabled, keyPrefix, sdkClient])
|
|
46
48
|
|
|
47
49
|
const result = useQueries({
|
|
48
50
|
queries: queryConfig,
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
type TokenExtended,
|
|
6
6
|
} from '@lifi/sdk'
|
|
7
7
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
8
|
+
import { useSDKClient } from '../providers/SDKClientProvider.js'
|
|
8
9
|
import { useWidgetConfig } from '../providers/WidgetProvider/WidgetProvider.js'
|
|
9
10
|
import type { FormType } from '../stores/form/types.js'
|
|
10
11
|
import type { TokensByChain } from '../types/token.js'
|
|
@@ -19,13 +20,19 @@ export const useTokenSearch = (
|
|
|
19
20
|
) => {
|
|
20
21
|
const queryClient = useQueryClient()
|
|
21
22
|
const { tokens: configTokens, keyPrefix } = useWidgetConfig()
|
|
23
|
+
const sdkClient = useSDKClient()
|
|
22
24
|
|
|
23
25
|
const { data, isLoading } = useQuery({
|
|
24
26
|
queryKey: [getQueryKey('token-search', keyPrefix), chainId, tokenQuery],
|
|
25
27
|
queryFn: async ({ queryKey: [, chainId, tokenQuery], signal }) => {
|
|
26
|
-
const token = await getToken(
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
const token = await getToken(
|
|
29
|
+
sdkClient,
|
|
30
|
+
chainId as ChainId,
|
|
31
|
+
tokenQuery as string,
|
|
32
|
+
{
|
|
33
|
+
signal,
|
|
34
|
+
}
|
|
35
|
+
)
|
|
29
36
|
|
|
30
37
|
if (token) {
|
|
31
38
|
// Filter config tokens by chain before checking if token is allowed
|
package/src/hooks/useTokens.ts
CHANGED
|
@@ -4,15 +4,14 @@ import {
|
|
|
4
4
|
getTokens,
|
|
5
5
|
type TokensExtendedResponse,
|
|
6
6
|
} from '@lifi/sdk'
|
|
7
|
+
import { useChainTypeFromAddress } from '@lifi/widget-provider'
|
|
7
8
|
import { useQuery } from '@tanstack/react-query'
|
|
8
9
|
import { useMemo } from 'react'
|
|
10
|
+
import { useSDKClient } from '../providers/SDKClientProvider.js'
|
|
9
11
|
import { useWidgetConfig } from '../providers/WidgetProvider/WidgetProvider.js'
|
|
10
12
|
import type { FormType } from '../stores/form/types.js'
|
|
11
13
|
import type { TokensByChain } from '../types/token.js'
|
|
12
|
-
import {
|
|
13
|
-
defaultChainIdsByType,
|
|
14
|
-
getChainTypeFromAddress,
|
|
15
|
-
} from '../utils/chainType.js'
|
|
14
|
+
import { defaultChainIdsByType } from '../utils/chainType.js'
|
|
16
15
|
import { isItemAllowed } from '../utils/item.js'
|
|
17
16
|
import { getQueryKey } from '../utils/queries.js'
|
|
18
17
|
import {
|
|
@@ -32,6 +31,8 @@ export const useTokens = (
|
|
|
32
31
|
chains: chainsConfig,
|
|
33
32
|
keyPrefix,
|
|
34
33
|
} = useWidgetConfig()
|
|
34
|
+
const sdkClient = useSDKClient()
|
|
35
|
+
const { getChainTypeFromAddress } = useChainTypeFromAddress()
|
|
35
36
|
|
|
36
37
|
// Main tokens cache - verified tokens from API
|
|
37
38
|
const { data: verifiedTokens, isLoading } = useQuery({
|
|
@@ -45,6 +46,7 @@ export const useTokens = (
|
|
|
45
46
|
].filter((chainType) => isItemAllowed(chainType, chainsConfig?.types))
|
|
46
47
|
|
|
47
48
|
const tokensResponse: TokensExtendedResponse = await getTokens(
|
|
49
|
+
sdkClient,
|
|
48
50
|
{
|
|
49
51
|
chainTypes,
|
|
50
52
|
orderBy: 'volumeUSD24H',
|
|
@@ -86,6 +88,7 @@ export const useTokens = (
|
|
|
86
88
|
].filter((chainType) => isItemAllowed(chainType, chainsConfig?.types))
|
|
87
89
|
|
|
88
90
|
const tokensResponse: TokensExtendedResponse = await getTokens(
|
|
91
|
+
sdkClient,
|
|
89
92
|
{
|
|
90
93
|
chainTypes,
|
|
91
94
|
orderBy: 'volumeUSD24H',
|
|
@@ -101,7 +104,7 @@ export const useTokens = (
|
|
|
101
104
|
let _chainId = searchChainId
|
|
102
105
|
if (!_chainId) {
|
|
103
106
|
const chainType = getChainTypeFromAddress(searchQuery)
|
|
104
|
-
if (chainType) {
|
|
107
|
+
if (chainType && chainType in defaultChainIdsByType) {
|
|
105
108
|
_chainId = defaultChainIdsByType[chainType]
|
|
106
109
|
}
|
|
107
110
|
}
|
|
@@ -111,7 +114,9 @@ export const useTokens = (
|
|
|
111
114
|
if (_chainId && searchQuery) {
|
|
112
115
|
const existingTokens = tokensResponse.tokens[_chainId] || []
|
|
113
116
|
if (!existingTokens.length) {
|
|
114
|
-
const token = await getToken(_chainId, searchQuery, {
|
|
117
|
+
const token = await getToken(sdkClient, _chainId, searchQuery, {
|
|
118
|
+
signal,
|
|
119
|
+
})
|
|
115
120
|
if (token) {
|
|
116
121
|
tokensResponse.tokens[_chainId] = [token]
|
|
117
122
|
}
|
package/src/hooks/useTools.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { getTools, type ToolsResponse } from '@lifi/sdk'
|
|
2
2
|
import { useQuery } from '@tanstack/react-query'
|
|
3
|
+
import { useSDKClient } from '../providers/SDKClientProvider.js'
|
|
3
4
|
import { useWidgetConfig } from '../providers/WidgetProvider/WidgetProvider.js'
|
|
4
5
|
import { useSettingsStoreContext } from '../stores/settings/SettingsStore.js'
|
|
5
6
|
import { getConfigItemSets, isItemAllowedForSets } from '../utils/item.js'
|
|
@@ -8,6 +9,7 @@ import { getQueryKey } from '../utils/queries.js'
|
|
|
8
9
|
export const useTools = () => {
|
|
9
10
|
const { bridges, exchanges, keyPrefix } = useWidgetConfig()
|
|
10
11
|
const settingsStore = useSettingsStoreContext()
|
|
12
|
+
const sdkClient = useSDKClient()
|
|
11
13
|
|
|
12
14
|
const { data } = useQuery({
|
|
13
15
|
queryKey: [
|
|
@@ -18,7 +20,7 @@ export const useTools = () => {
|
|
|
18
20
|
exchanges?.deny,
|
|
19
21
|
],
|
|
20
22
|
queryFn: async (): Promise<ToolsResponse> => {
|
|
21
|
-
const tools = await getTools()
|
|
23
|
+
const tools = await getTools(sdkClient)
|
|
22
24
|
const bridgesConfigSets = getConfigItemSets(
|
|
23
25
|
bridges,
|
|
24
26
|
(bridges) => new Set(bridges)
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
useQueryClient,
|
|
8
8
|
} from '@tanstack/react-query'
|
|
9
9
|
import { useMemo } from 'react'
|
|
10
|
+
import { useSDKClient } from '../providers/SDKClientProvider.js'
|
|
10
11
|
import { useWidgetConfig } from '../providers/WidgetProvider/WidgetProvider.js'
|
|
11
12
|
import { getQueryKey } from '../utils/queries.js'
|
|
12
13
|
|
|
@@ -14,6 +15,7 @@ export const useTransactionDetails = (transactionHash?: string) => {
|
|
|
14
15
|
const { account, accounts } = useAccount()
|
|
15
16
|
const queryClient = useQueryClient()
|
|
16
17
|
const { keyPrefix } = useWidgetConfig()
|
|
18
|
+
const sdkClient = useSDKClient()
|
|
17
19
|
|
|
18
20
|
const transactionHistoryQueryKey = useMemo(
|
|
19
21
|
() => getQueryKey('transaction-history', keyPrefix),
|
|
@@ -40,6 +42,7 @@ export const useTransactionDetails = (transactionHash?: string) => {
|
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
const transaction = await getStatus(
|
|
45
|
+
sdkClient,
|
|
43
46
|
{
|
|
44
47
|
txHash: transactionHash,
|
|
45
48
|
},
|
|
@@ -3,12 +3,14 @@ import { type ExtendedTransactionInfo, getTransactionHistory } from '@lifi/sdk'
|
|
|
3
3
|
import { useAccount } from '@lifi/wallet-management'
|
|
4
4
|
import type { QueryFunction } from '@tanstack/react-query'
|
|
5
5
|
import { useQueries } from '@tanstack/react-query'
|
|
6
|
+
import { useSDKClient } from '../providers/SDKClientProvider.js'
|
|
6
7
|
import { useWidgetConfig } from '../providers/WidgetProvider/WidgetProvider.js'
|
|
7
8
|
import { getQueryKey } from '../utils/queries.js'
|
|
8
9
|
|
|
9
10
|
export const useTransactionHistory = () => {
|
|
10
11
|
const { accounts } = useAccount()
|
|
11
12
|
const { keyPrefix } = useWidgetConfig()
|
|
13
|
+
const sdkClient = useSDKClient()
|
|
12
14
|
|
|
13
15
|
const { data, isLoading } = useQueries({
|
|
14
16
|
queries: accounts.map((account) => ({
|
|
@@ -24,6 +26,7 @@ export const useTransactionHistory = () => {
|
|
|
24
26
|
date.setFullYear(date.getFullYear() - 10)
|
|
25
27
|
|
|
26
28
|
const response = await getTransactionHistory(
|
|
29
|
+
sdkClient,
|
|
27
30
|
{
|
|
28
31
|
wallet: accountAddress,
|
|
29
32
|
fromTimestamp: Math.floor(date.getTime() / 1000),
|
package/src/i18n/bn.json
CHANGED
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
"deleteTransactionHistory": "",
|
|
128
128
|
"fundsLossPrevention": "",
|
|
129
129
|
"highValueLoss": "প্রাপ্ত টোকেনগুলির মান সোওয়াপ করা টোকেন এবং লেনদেনের খরচের তুলনায় উল্লেখযোগ্যভাবে কম।",
|
|
130
|
+
"unverifiedToken": "",
|
|
130
131
|
"insufficientFunds": "সোওয়াপ সম্পূর্ণ করার জন্য আপনার কাছে পর্যাপ্ত তহবিল নেই।",
|
|
131
132
|
"insufficientGas": "সোওয়াপ সম্পূর্ণ করার জন্য আপনার কাছে পর্যাপ্ত গ্যাস নেই। আপনাকে অন্তত যোগ করতে হবে:",
|
|
132
133
|
"minFromAmountUSD": "",
|
|
@@ -237,6 +238,7 @@
|
|
|
237
238
|
"myTokens": "",
|
|
238
239
|
"onChain": "{{chainName}} -এ",
|
|
239
240
|
"ownedBy": "মালিক",
|
|
241
|
+
"pinnedTokens": "",
|
|
240
242
|
"popularTokens": "",
|
|
241
243
|
"priceImpact": "",
|
|
242
244
|
"process": {
|
|
@@ -331,7 +333,8 @@
|
|
|
331
333
|
"routePriority": "রুট অগ্রাধিকার",
|
|
332
334
|
"slippage": "",
|
|
333
335
|
"custom": "",
|
|
334
|
-
"resetSettings": ""
|
|
336
|
+
"resetSettings": "",
|
|
337
|
+
"hideSmallBalances": ""
|
|
335
338
|
},
|
|
336
339
|
"sendToWallet": {
|
|
337
340
|
"addBookmark": "",
|
package/src/i18n/de.json
CHANGED
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
"deleteTransactionHistory": "Die Transaktionshistorie wird nur lokal gespeichert und kann nicht wiederhergestellt werden, wenn Sie sie löschen.",
|
|
128
128
|
"fundsLossPrevention": "",
|
|
129
129
|
"highValueLoss": "Der Wert der erhaltenen Token ist deutlich niedriger als die getauschten Token und die Transaktionskosten.",
|
|
130
|
+
"unverifiedToken": "",
|
|
130
131
|
"insufficientFunds": "Sie haben nicht genug Token, um diesen Swap abzuschließen.",
|
|
131
132
|
"insufficientGas": "Sie haben nicht genug Gas um diesen Swap abzuschließen. Sie müssen mindestens hinzufügen:",
|
|
132
133
|
"minFromAmountUSD": "",
|
|
@@ -237,6 +238,7 @@
|
|
|
237
238
|
"myTokens": "",
|
|
238
239
|
"onChain": "auf {{chainName}}",
|
|
239
240
|
"ownedBy": "In Besitz von",
|
|
241
|
+
"pinnedTokens": "",
|
|
240
242
|
"popularTokens": "",
|
|
241
243
|
"priceImpact": "",
|
|
242
244
|
"process": {
|
|
@@ -331,7 +333,8 @@
|
|
|
331
333
|
"routePriority": "Routenpriorität",
|
|
332
334
|
"slippage": "",
|
|
333
335
|
"custom": "",
|
|
334
|
-
"resetSettings": ""
|
|
336
|
+
"resetSettings": "",
|
|
337
|
+
"hideSmallBalances": ""
|
|
335
338
|
},
|
|
336
339
|
"sendToWallet": {
|
|
337
340
|
"addBookmark": "",
|
package/src/i18n/en.json
CHANGED
|
@@ -33,8 +33,6 @@
|
|
|
33
33
|
"disconnect": "Disconnect",
|
|
34
34
|
"done": "Done",
|
|
35
35
|
"exchange": "Exchange",
|
|
36
|
-
"fund": "Deposit",
|
|
37
|
-
"fundReview": "Review deposit",
|
|
38
36
|
"getGas": "Get gas",
|
|
39
37
|
"learnMore": "Learn more",
|
|
40
38
|
"light": "Light",
|
|
@@ -67,9 +65,6 @@
|
|
|
67
65
|
"depositTo": "Deposit to",
|
|
68
66
|
"exchange": "Exchange",
|
|
69
67
|
"from": "Exchange from",
|
|
70
|
-
"fund": "Deposit",
|
|
71
|
-
"fundDetails": "Deposit details",
|
|
72
|
-
"fundTo": "Deposit to",
|
|
73
68
|
"gas": "Gas",
|
|
74
69
|
"payWith": "Pay with",
|
|
75
70
|
"receive": "Receive",
|
|
@@ -118,7 +113,6 @@
|
|
|
118
113
|
"bridgePartiallySuccessful": "Bridge partially successful",
|
|
119
114
|
"bridgeSuccessful": "Bridge successful",
|
|
120
115
|
"depositSuccessful": "Deposit successful",
|
|
121
|
-
"fundSuccessful": "Deposit successful",
|
|
122
116
|
"checkoutSuccessful": "Purchase successful",
|
|
123
117
|
"refundIssued": "Refund issued",
|
|
124
118
|
"swapPartiallySuccessful": "Swap partially successful",
|
|
@@ -227,7 +221,6 @@
|
|
|
227
221
|
"checkoutStepDetails": "Purchase via {{tool}}",
|
|
228
222
|
"currentAmount": "Current amount",
|
|
229
223
|
"depositStepDetails": "Deposit via {{tool}}",
|
|
230
|
-
"fundStepDetails": "Deposit via {{tool}}",
|
|
231
224
|
"featuredTokens": "Featured tokens",
|
|
232
225
|
"fees": {
|
|
233
226
|
"defaultIntegrator": "Integrator fee",
|
|
@@ -245,6 +238,7 @@
|
|
|
245
238
|
"myTokens": "My tokens",
|
|
246
239
|
"onChain": "on {{chainName}}",
|
|
247
240
|
"ownedBy": "Owned by",
|
|
241
|
+
"pinnedTokens": "Pinned tokens",
|
|
248
242
|
"popularTokens": "Popular tokens",
|
|
249
243
|
"priceImpact": "Price impact",
|
|
250
244
|
"process": {
|
|
@@ -261,9 +255,6 @@
|
|
|
261
255
|
"deposit": {
|
|
262
256
|
"done": "Deposit completed"
|
|
263
257
|
},
|
|
264
|
-
"fund": {
|
|
265
|
-
"done": "Deposit completed"
|
|
266
|
-
},
|
|
267
258
|
"receivingChain": {
|
|
268
259
|
"done": "Bridge completed",
|
|
269
260
|
"partial": "Bridge partially completed",
|
|
@@ -305,16 +296,13 @@
|
|
|
305
296
|
"stepBridge": "Bridge",
|
|
306
297
|
"stepBridgeAndBuy": "Bridge and buy",
|
|
307
298
|
"stepBridgeAndDeposit": "Bridge and deposit",
|
|
308
|
-
"stepBridgeAndFund": "Bridge and deposit",
|
|
309
299
|
"stepBuy": "Buy",
|
|
310
300
|
"stepDeposit": "Deposit",
|
|
311
|
-
"stepFund": "Deposit",
|
|
312
301
|
"stepDetails": "{{tool}} via LI.FI",
|
|
313
302
|
"stepSwap": "Swap",
|
|
314
303
|
"stepSwapAndBridge": "Swap and bridge",
|
|
315
304
|
"stepSwapAndBuy": "Swap and buy",
|
|
316
305
|
"stepSwapAndDeposit": "Swap and deposit",
|
|
317
|
-
"stepSwapAndFund": "Swap and deposit",
|
|
318
306
|
"swapStepDetails": "Swap on {{chain}} via {{tool}}",
|
|
319
307
|
"transferId": "Transfer ID",
|
|
320
308
|
"tags": {
|
|
@@ -345,7 +333,8 @@
|
|
|
345
333
|
"routePriority": "Route priority",
|
|
346
334
|
"slippage": "Max. slippage",
|
|
347
335
|
"custom": "Custom",
|
|
348
|
-
"resetSettings": "You're using custom settings that can affect the number or sorting of available routes."
|
|
336
|
+
"resetSettings": "You're using custom settings that can affect the number or sorting of available routes.",
|
|
337
|
+
"hideSmallBalances": "Hide small balances"
|
|
349
338
|
},
|
|
350
339
|
"sendToWallet": {
|
|
351
340
|
"addBookmark": "Add bookmark",
|
package/src/i18n/es.json
CHANGED
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
"deleteTransactionHistory": "El historial de transacciones solo se almacena localmente y no se puede recuperar si lo elimina.",
|
|
128
128
|
"fundsLossPrevention": "Asegúrate de que las cuentas de Contratos Inteligentes estén bien configuradas en la cadena de destino y evita transferencias directas a plataformas de intercambio centralizadas para no perder fondos.",
|
|
129
129
|
"highValueLoss": "El valor de los tokens recibidos es significativamente menor que los tokens intercambiados y el costo de la transacción.",
|
|
130
|
+
"unverifiedToken": "",
|
|
130
131
|
"insufficientFunds": "No tiene fondos suficientes para ejecutar el intercambio.",
|
|
131
132
|
"insufficientGas": "Debes agregar al menos:",
|
|
132
133
|
"minFromAmountUSD": "",
|
|
@@ -237,6 +238,7 @@
|
|
|
237
238
|
"myTokens": "Mis tokens",
|
|
238
239
|
"onChain": "en {{chainName}}",
|
|
239
240
|
"ownedBy": "Propiedad de",
|
|
241
|
+
"pinnedTokens": "",
|
|
240
242
|
"popularTokens": "Tokens populares",
|
|
241
243
|
"priceImpact": "Impacto en el precio",
|
|
242
244
|
"process": {
|
|
@@ -331,7 +333,8 @@
|
|
|
331
333
|
"routePriority": "Prioridad de ruta",
|
|
332
334
|
"slippage": "Máx. deslizamiento",
|
|
333
335
|
"custom": "Personalizado",
|
|
334
|
-
"resetSettings": "Estás usando ajustes personalizados que pueden afectar el número o la ordenación de rutas disponibles."
|
|
336
|
+
"resetSettings": "Estás usando ajustes personalizados que pueden afectar el número o la ordenación de rutas disponibles.",
|
|
337
|
+
"hideSmallBalances": ""
|
|
335
338
|
},
|
|
336
339
|
"sendToWallet": {
|
|
337
340
|
"addBookmark": "Añadir marcador",
|
package/src/i18n/fr.json
CHANGED
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
"deleteTransactionHistory": "L'historique d transaction est uniquement stocké localement et ne peut être récupéré si vous le supprimez.",
|
|
128
128
|
"fundsLossPrevention": "",
|
|
129
129
|
"highValueLoss": "La valeur des jetons reçus est nettement inférieure à celle des jetons échangés et au coût de la transaction.",
|
|
130
|
+
"unverifiedToken": "",
|
|
130
131
|
"insufficientFunds": "Vous n'avez pas assez de fonds pour finaliser l'échange.",
|
|
131
132
|
"insufficientGas": "Vous n'avez pas assez de gaz pour finaliser l'échange. Vous devez avoir au moins:",
|
|
132
133
|
"minFromAmountUSD": "",
|
|
@@ -237,6 +238,7 @@
|
|
|
237
238
|
"myTokens": "Mes jetons",
|
|
238
239
|
"onChain": "sur {{chainName}}",
|
|
239
240
|
"ownedBy": "Propriétaire",
|
|
241
|
+
"pinnedTokens": "",
|
|
240
242
|
"popularTokens": "Jetons populaires",
|
|
241
243
|
"priceImpact": "",
|
|
242
244
|
"process": {
|
|
@@ -331,7 +333,8 @@
|
|
|
331
333
|
"routePriority": "Priorité de l'itinéraire",
|
|
332
334
|
"slippage": "",
|
|
333
335
|
"custom": "Personnalisé",
|
|
334
|
-
"resetSettings": "Vous utilisez des paramètres personnalisés pouvant affecter le nombre ou le tri des routes disponibles."
|
|
336
|
+
"resetSettings": "Vous utilisez des paramètres personnalisés pouvant affecter le nombre ou le tri des routes disponibles.",
|
|
337
|
+
"hideSmallBalances": ""
|
|
335
338
|
},
|
|
336
339
|
"sendToWallet": {
|
|
337
340
|
"addBookmark": "Ajouter un favori",
|
package/src/i18n/hi.json
CHANGED
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
"deleteTransactionHistory": "",
|
|
128
128
|
"fundsLossPrevention": "",
|
|
129
129
|
"highValueLoss": "",
|
|
130
|
+
"unverifiedToken": "",
|
|
130
131
|
"insufficientFunds": "",
|
|
131
132
|
"insufficientGas": "",
|
|
132
133
|
"minFromAmountUSD": "",
|
|
@@ -237,6 +238,7 @@
|
|
|
237
238
|
"myTokens": "",
|
|
238
239
|
"onChain": "",
|
|
239
240
|
"ownedBy": "",
|
|
241
|
+
"pinnedTokens": "",
|
|
240
242
|
"popularTokens": "",
|
|
241
243
|
"priceImpact": "",
|
|
242
244
|
"process": {
|
|
@@ -331,7 +333,8 @@
|
|
|
331
333
|
"routePriority": "मार्ग प्राथमिकता",
|
|
332
334
|
"slippage": "",
|
|
333
335
|
"custom": "",
|
|
334
|
-
"resetSettings": ""
|
|
336
|
+
"resetSettings": "",
|
|
337
|
+
"hideSmallBalances": ""
|
|
335
338
|
},
|
|
336
339
|
"sendToWallet": {
|
|
337
340
|
"addBookmark": "",
|
package/src/i18n/id.json
CHANGED
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
"deleteTransactionHistory": "Riwayat transaksi hanya disimpan secara lokal dan tidak dapat dipulihkan jika Anda menghapusnya.",
|
|
128
128
|
"fundsLossPrevention": "Selalu pastikan akun kontrak pintar disiapkan dengan benar di rantai tujuan dan hindari transfer langsung ke bursa untuk mencegah hilangnya dana.",
|
|
129
129
|
"highValueLoss": "Nilai token yang diterima jauh lebih rendah daripada token yang ditukar dan biaya transaksi.",
|
|
130
|
+
"unverifiedToken": "",
|
|
130
131
|
"insufficientFunds": "Anda tidak memiliki cukup dana untuk menyelesaikan penukaran.",
|
|
131
132
|
"insufficientGas": "Anda tidak memiliki cukup gas untuk menyelesaikan penukaran. Anda perlu menambahkan setidaknya:",
|
|
132
133
|
"minFromAmountUSD": "",
|
|
@@ -237,6 +238,7 @@
|
|
|
237
238
|
"myTokens": "Token saya",
|
|
238
239
|
"onChain": "di {{chainName}}",
|
|
239
240
|
"ownedBy": "Dimiliki oleh",
|
|
241
|
+
"pinnedTokens": "",
|
|
240
242
|
"popularTokens": "Token populer",
|
|
241
243
|
"priceImpact": "Dampak terhadap harga",
|
|
242
244
|
"process": {
|
|
@@ -331,7 +333,8 @@
|
|
|
331
333
|
"routePriority": "Prioritas rute",
|
|
332
334
|
"slippage": "Slip maksimum",
|
|
333
335
|
"custom": "Kustom",
|
|
334
|
-
"resetSettings": "Anda menggunakan pengaturan khusus yang dapat memengaruhi jumlah atau pengurutan rute yang tersedia."
|
|
336
|
+
"resetSettings": "Anda menggunakan pengaturan khusus yang dapat memengaruhi jumlah atau pengurutan rute yang tersedia.",
|
|
337
|
+
"hideSmallBalances": ""
|
|
335
338
|
},
|
|
336
339
|
"sendToWallet": {
|
|
337
340
|
"addBookmark": "Tambahkan bookmark",
|
package/src/i18n/it.json
CHANGED
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
"deleteTransactionHistory": "La cronologia delle transazioni è memorizzata solo localmente e non può essere recuperata se la elimini.",
|
|
128
128
|
"fundsLossPrevention": "",
|
|
129
129
|
"highValueLoss": "Il valore dei token ricevuti è significativamente inferiore ai token scambiati più il costo della transazione.",
|
|
130
|
+
"unverifiedToken": "",
|
|
130
131
|
"insufficientFunds": "Non hai abbastanza fondi per completare lo scambio.",
|
|
131
132
|
"insufficientGas": "Non hai abbastanza gas per completare lo scambio. Devi aggiungere almeno:",
|
|
132
133
|
"minFromAmountUSD": "",
|
|
@@ -237,6 +238,7 @@
|
|
|
237
238
|
"myTokens": "",
|
|
238
239
|
"onChain": "su {{chainName}}",
|
|
239
240
|
"ownedBy": "Di proprietà di",
|
|
241
|
+
"pinnedTokens": "",
|
|
240
242
|
"popularTokens": "",
|
|
241
243
|
"priceImpact": "",
|
|
242
244
|
"process": {
|
|
@@ -331,7 +333,8 @@
|
|
|
331
333
|
"routePriority": "Priorità di route",
|
|
332
334
|
"slippage": "",
|
|
333
335
|
"custom": "",
|
|
334
|
-
"resetSettings": ""
|
|
336
|
+
"resetSettings": "",
|
|
337
|
+
"hideSmallBalances": ""
|
|
335
338
|
},
|
|
336
339
|
"sendToWallet": {
|
|
337
340
|
"addBookmark": "",
|
package/src/i18n/ja.json
CHANGED
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
"deleteTransactionHistory": "トランザクション履歴はローカルにのみ保存され、ユーザーが削除した場合には復元できません。",
|
|
128
128
|
"fundsLossPrevention": "",
|
|
129
129
|
"highValueLoss": "受け取るトークンの価値は、交換されたトークンとトランザクションコストよりも大幅に低くなります。",
|
|
130
|
+
"unverifiedToken": "",
|
|
130
131
|
"insufficientFunds": "トランザクションを完了するのに十分な資金がありません。",
|
|
131
132
|
"insufficientGas": "トランザクションを完了するのに十分なガスがありません。少なくとも以下を追加する必要があります:",
|
|
132
133
|
"minFromAmountUSD": "",
|
|
@@ -237,6 +238,7 @@
|
|
|
237
238
|
"myTokens": "自分のトークン",
|
|
238
239
|
"onChain": "({{chainName}})",
|
|
239
240
|
"ownedBy": "所有者",
|
|
241
|
+
"pinnedTokens": "",
|
|
240
242
|
"popularTokens": "人気のトークン",
|
|
241
243
|
"priceImpact": "",
|
|
242
244
|
"process": {
|
|
@@ -331,7 +333,8 @@
|
|
|
331
333
|
"routePriority": "ルート優先度",
|
|
332
334
|
"slippage": "",
|
|
333
335
|
"custom": "カスタム設定",
|
|
334
|
-
"resetSettings": "利用可能なルートの数とソートに影響する可能性があるカスタム設定を使用しています。"
|
|
336
|
+
"resetSettings": "利用可能なルートの数とソートに影響する可能性があるカスタム設定を使用しています。",
|
|
337
|
+
"hideSmallBalances": ""
|
|
335
338
|
},
|
|
336
339
|
"sendToWallet": {
|
|
337
340
|
"addBookmark": "ブックマークに追加",
|