Skip to content

Commit

Permalink
chains index
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Sep 6, 2024
1 parent c17c1b0 commit 771d39c
Show file tree
Hide file tree
Showing 87 changed files with 86 additions and 87 deletions.
2 changes: 1 addition & 1 deletion src/__swaps__/screens/Swap/components/CoinRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import React, { useCallback, useMemo } from 'react';
import { GestureResponderEvent } from 'react-native';
import { OnPressMenuItemEventObject } from 'react-native-ios-context-menu';
import { SwapCoinIcon } from './SwapCoinIcon';
import { SUPPORTED_CHAIN_IDS } from '@/chains/chains';
import { SUPPORTED_CHAIN_IDS } from '@/chains';

export const COIN_ROW_WITH_PADDING_HEIGHT = 56;

Expand Down
2 changes: 1 addition & 1 deletion src/__swaps__/screens/Swap/components/ReviewPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import { NavigationSteps, useSwapContext } from '../providers/swap-provider';
import { AnimatedSwitch } from './AnimatedSwitch';
import { EstimatedSwapGasFee, EstimatedSwapGasFeeSlot } from './EstimatedSwapGasFee';
import { UnmountOnAnimatedReaction } from './UnmountOnAnimatedReaction';
import { chainsLabel } from '@/chains/chains';
import { chainsLabel } from '@/chains';
import { ChainId } from '@/chains/types';

const UNKNOWN_LABEL = i18n.t(i18n.l.swap.unknown);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { userAssetsStore } from '@/state/assets/userAssets';
import { swapsStore } from '@/state/swaps/swapsStore';
import { showActionSheetWithOptions } from '@/utils';
import { OnPressMenuItemEventObject } from 'react-native-ios-context-menu';
import { chainsLabel, chainsName } from '@/chains/chains';
import { chainsLabel, chainsName } from '@/chains';

type ChainSelectionProps = {
allText?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/__swaps__/screens/Swap/providers/swap-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import { SyncGasStateToSharedValues, SyncQuoteSharedValuesToState } from './Sync
import { performanceTracking, Screens, TimeToSignOperation } from '@/state/performance/performance';
import { getRemoteConfig } from '@/model/remoteConfig';
import { useConnectedToHardhatStore } from '@/state/connectedToHardhat';
import { chainsNativeAsset, supportedFlashbotsChainIds } from '@/chains/chains';
import { chainsNativeAsset, supportedFlashbotsChainIds } from '@/chains';

const swapping = i18n.t(i18n.l.swap.actions.swapping);
const holdToSwap = i18n.t(i18n.l.swap.actions.hold_to_swap);
Expand Down
2 changes: 1 addition & 1 deletion src/__swaps__/utils/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
convertRawAmountToDecimalFormat,
} from '@/__swaps__/utils/numbers';
import { isLowerCaseMatch, isLowerCaseMatchWorklet } from '@/__swaps__/utils/strings';
import { chainsIdByName, chainsName } from '@/chains/chains';
import { chainsIdByName, chainsName } from '@/chains';

export const isSameAsset = (a1: Pick<ParsedAsset, 'chainId' | 'address'>, a2: Pick<ParsedAsset, 'chainId' | 'address'>) =>
+a1.chainId === +a2.chainId && isLowerCaseMatch(a1.address, a2.address);
Expand Down
2 changes: 1 addition & 1 deletion src/__swaps__/utils/swaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { AddressOrEth, ExtendedAnimatedAssetWithColors, ParsedSearchAsset } from
import { inputKeys } from '../types/swap';
import { valueBasedDecimalFormatter } from './decimalFormatter';
import { convertAmountToRawAmount } from './numbers';
import { chainsName } from '@/chains/chains';
import { chainsName } from '@/chains';

// /---- 🎨 Color functions 🎨 ----/ //
//
Expand Down
2 changes: 1 addition & 1 deletion src/__swaps__/utils/userChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
} from 'viem/chains';

import { ChainId } from '@/chains/types';
import { chainsLabel } from '@/chains/chains';
import { chainsLabel } from '@/chains';

export const chainIdMap: Record<
ChainId.mainnet | ChainId.optimism | ChainId.polygon | ChainId.base | ChainId.bsc | ChainId.zora | ChainId.avalanche,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/DappBrowser/control-panel/ControlPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import { swapsStore } from '@/state/swaps/swapsStore';
import { userAssetsStore } from '@/state/assets/userAssets';
import { greaterThan } from '@/helpers/utilities';
import { ChainId } from '@/chains/types';
import { chainsLabel, defaultChains, supportedWalletConnectChainIds } from '@/chains/chains';
import { chainsLabel, defaultChains, supportedWalletConnectChainIds } from '@/chains';

const PAGES = {
HOME: 'home',
Expand Down
2 changes: 1 addition & 1 deletion src/components/DappBrowser/handleProviderRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getDappMetadata } from '@/resources/metadata/dapp';
import { useAppSessionsStore } from '@/state/appSessions';
import { BigNumber } from '@ethersproject/bignumber';
import { ChainId } from '@/chains/types';
import { defaultChains, SUPPORTED_CHAIN_IDS } from '@/chains/chains';
import { defaultChains, SUPPORTED_CHAIN_IDS } from '@/chains';
import { Chain } from '@wagmi/chains';

export type ProviderRequestPayload = RequestArguments & {
Expand Down
2 changes: 1 addition & 1 deletion src/components/L2Disclaimer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { darkModeThemeColors } from '@/styles/colors';
import * as lang from '@/languages';
import { isL2Chain } from '@/handlers/web3';
import { EthCoinIcon } from './coin-icon/EthCoinIcon';
import { chainsName } from '@/chains/chains';
import { chainsName } from '@/chains';

const L2Disclaimer = ({
chainId,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Transactions/TransactionDetailsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
CARD_BORDER_WIDTH,
EXPANDED_CARD_TOP_INSET,
} from '@/components/Transactions/constants';
import { chainsName } from '@/chains/chains';
import { chainsName } from '@/chains';

interface TransactionDetailsCardProps {
chainId: ChainId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { useExternalToken } from '@/resources/assets/externalAssetsQuery';
import { EventInfo, EventType } from '@/components/Transactions/types';
import { infoForEventType, CARD_ROW_HEIGHT } from '@/components/Transactions/constants';
import { EventIcon } from '@/components/Transactions/TransactionIcons';
import { chainsIdByName } from '@/chains/chains';
import { chainsIdByName } from '@/chains';

type TransactionSimulatedEventRowProps = {
amount: string | 'unlimited';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Transactions/TransactionSimulationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
timingConfig,
} from '@/components/Transactions/constants';
import { ChainId } from '@/chains/types';
import { chainsName } from '@/chains/chains';
import { chainsName } from '@/chains';

interface TransactionSimulationCardProps {
chainId: ChainId;
Expand Down
2 changes: 1 addition & 1 deletion src/components/cards/NFTOffersCard/Offer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { useExternalToken } from '@/resources/assets/externalAssetsQuery';
import { useAccountSettings } from '@/hooks';
import { Network } from '@/chains/types';
import { AddressOrEth } from '@/__swaps__/types/assets';
import { chainsIdByName } from '@/chains/chains';
import { chainsIdByName } from '@/chains';

const TWO_HOURS_MS = 2 * 60 * 60 * 1000;
export const CELL_HORIZONTAL_PADDING = 7;
Expand Down
2 changes: 1 addition & 1 deletion src/components/context-menu-buttons/ChainContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as i18n from '@/languages';
import { ChainId } from '@/chains/types';
import { showActionSheetWithOptions } from '@/utils';
import { userAssetsStore } from '@/state/assets/userAssets';
import { chainsLabel, chainsName } from '@/chains/chains';
import { chainsLabel, chainsName } from '@/chains';

interface DefaultButtonOptions {
iconColor?: TextProps['color'];
Expand Down
2 changes: 1 addition & 1 deletion src/components/discover/DiscoverSearchInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import styled from '@/styled-thing';
import { margin, padding } from '@/styles';
import { deviceUtils } from '@/utils';
import DiscoverSheetContext from '@/screens/discover/DiscoverScreenContext';
import { chainsName } from '@/chains/chains';
import { chainsName } from '@/chains';

export const ExchangeSearchHeight = 40;
const ExchangeSearchWidth = deviceUtils.dimensions.width - 30;
Expand Down
2 changes: 1 addition & 1 deletion src/components/exchange/ConfirmExchangeButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Routes from '@/navigation/routesNames';
import { lightModeThemeColors } from '@/styles';
import { useTheme } from '@/theme';
import handleSwapErrorCodes from '@/utils/exchangeErrorCodes';
import { chainsNativeAsset } from '@/chains/chains';
import { chainsNativeAsset } from '@/chains';

const NOOP = () => null;

Expand Down
2 changes: 1 addition & 1 deletion src/components/exchange/CurrencySelectModalHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useNavigation } from '@/navigation';
import Routes from '@/navigation/routesNames';
import RainbowCoinIcon from '../coin-icon/RainbowCoinIcon';
import { useTheme } from '@/theme';
import { chainsIdByName } from '@/chains/chains';
import { chainsIdByName } from '@/chains';

export const CurrencySelectModalHeaderHeight = 59;

Expand Down
2 changes: 1 addition & 1 deletion src/components/exchange/NetworkSwitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Text } from '../text';
import { padding, position } from '@/styles';
import { showActionSheetWithOptions } from '@/utils';
import { EthCoinIcon } from '../coin-icon/EthCoinIcon';
import { chainsLabel, chainsName, defaultChains, supportedSwapChainIds } from '@/chains/chains';
import { chainsLabel, chainsName, defaultChains, supportedSwapChainIds } from '@/chains';
import { isL2Chain } from '@/handlers/web3';

const networkMenuItems = supportedSwapChainIds
Expand Down
2 changes: 1 addition & 1 deletion src/components/exchange/NetworkSwitcherv2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { position } from '@rainbow-me/styles';
import { useTheme } from '@/theme';
import { EthCoinIcon } from '../coin-icon/EthCoinIcon';
import { ChainId } from '@/chains/types';
import { chainsLabel, defaultChains, supportedSwapChainIds } from '@/chains/chains';
import { chainsLabel, defaultChains, supportedSwapChainIds } from '@/chains';

const NetworkSwitcherv2 = ({
currentChainId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { NativeSyntheticEvent } from 'react-native';
import { setClipboard } from '../../hooks/useClipboard';
import { abbreviations, ethereumUtils, haptics, showActionSheetWithOptions } from '@/utils';
import { ChainId } from '@/chains/types';
import { chainsIdByName } from '@/chains/chains';
import { chainsIdByName } from '@/chains';

const buildBlockExplorerAction = (chainId: ChainId) => {
const blockExplorerText = lang.t('exchange.coin_row.view_on', {
Expand Down
2 changes: 1 addition & 1 deletion src/components/expanded-state/AvailableNetworks.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Divider from '../Divider';
import { Text } from '../text';
import { EthCoinIcon } from '../coin-icon/EthCoinIcon';
import { ChainId } from '@/chains/types';
import { defaultChains } from '@/chains/chains';
import { defaultChains } from '@/chains';

const AvailableNetworksv1 = ({ asset, networks, hideDivider, marginBottom = 24, marginHorizontal = 19, prominent }) => {
const { colors } = useTheme();
Expand Down
2 changes: 1 addition & 1 deletion src/components/expanded-state/AvailableNetworksv2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { swapsStore } from '@/state/swaps/swapsStore';
import { InteractionManager } from 'react-native';
import { ChainId } from '@/chains/types';
import { getUniqueId } from '@/utils/ethereumUtils';
import { chainsLabel, chainsName, defaultChains, supportedSwapChainIds } from '@/chains/chains';
import { chainsLabel, chainsName, defaultChains, supportedSwapChainIds } from '@/chains';
import { isL2Chain } from '@/handlers/web3';

const NOOP = () => null;
Expand Down
2 changes: 1 addition & 1 deletion src/components/expanded-state/SwapDetailsState.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { padding, position } from '@/styles';
import { abbreviations, ethereumUtils } from '@/utils';
import { getCrosschainSwapServiceTime } from '@/handlers/swap';
import { SwapPriceImpactType } from '@/hooks/usePriceImpactDetails';
import { chainsIdByName } from '@/chains/chains';
import { chainsIdByName } from '@/chains';

const AnimatedContainer = styled(Animated.View)({
...position.sizeAsObject('100%'),
Expand Down
2 changes: 1 addition & 1 deletion src/components/expanded-state/asset/ChartExpandedState.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { Box } from '@/design-system';
import { useExternalToken } from '@/resources/assets/externalAssetsQuery';
import { bigNumberFormat } from '@/helpers/bigNumberFormat';
import { greaterThanOrEqualTo } from '@/helpers/utilities';
import { chainsName, supportedSwapChainIds } from '@/chains/chains';
import { chainsName, supportedSwapChainIds } from '@/chains';

const defaultCarouselHeight = 60;
const baseHeight = 386 + (android && 20 - getSoftMenuBarHeight()) - defaultCarouselHeight;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { usePrevious, useStepper } from '@/hooks';
import { ImgixImage } from '@/components/images';
import { getExchangeIconUrl, magicMemo } from '@/utils';
import { SocketBridges } from '@/references/swap/bridges';
import { SUPPORTED_CHAINS } from '@/chains/chains';
import { SUPPORTED_CHAINS } from '@/chains';

const parseExchangeName = name => {
const networks = SUPPORTED_CHAINS.map(network => network.name.toLowerCase());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ChainBadge } from '@/components/coin-icon';
import { useTheme } from '@/theme';
import * as i18n from '@/languages';
import { ChainId } from '@/chains/types';
import { chainsNativeAsset } from '@/chains/chains';
import { chainsNativeAsset } from '@/chains';

export function SwapDetailsRewardRow({ reward }: { reward: Reward }) {
const { navigate } = useNavigation();
Expand Down
2 changes: 1 addition & 1 deletion src/components/gas/GasSpeedButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { IS_ANDROID } from '@/env';
import { ContextMenu } from '../context-menu';
import { EthCoinIcon } from '../coin-icon/EthCoinIcon';
import { ChainId } from '@/chains/types';
import { chainsGasSpeeds } from '@/chains/chains';
import { chainsGasSpeeds } from '@/chains';

const { GAS_EMOJIS, GAS_ICONS, GasSpeedOrder, CUSTOM, URGENT, NORMAL, FAST, getGasLabel } = gasUtils;

Expand Down
2 changes: 1 addition & 1 deletion src/components/positions/PositionsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import RainbowCoinIcon from '../coin-icon/RainbowCoinIcon';
import { useAccountSettings } from '@/hooks';
import { useExternalToken } from '@/resources/assets/externalAssetsQuery';
import { AddressOrEth } from '@/__swaps__/types/assets';
import { chainsIdByName } from '@/chains/chains';
import { chainsIdByName } from '@/chains';

type PositionCardProps = {
position: RainbowPosition;
Expand Down
2 changes: 1 addition & 1 deletion src/components/remote-promo-sheet/check-fns/hasSwapTxn.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { EthereumAddress, RainbowTransaction } from '@/entities';
import { SUPPORTED_MAINNET_CHAIN_IDS } from '@/chains/chains';
import { SUPPORTED_MAINNET_CHAIN_IDS } from '@/chains';
import { queryClient } from '@/react-query/queryClient';
import store from '@/redux/store';
import { consolidatedTransactionsQueryKey } from '@/resources/transactions/consolidatedTransactions';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { swapsStore } from '@/state/swaps/swapsStore';
import { InteractionManager } from 'react-native';
import { AddressOrEth, AssetType, ParsedSearchAsset } from '@/__swaps__/types/assets';
import exchangeModalTypes from '@/helpers/exchangeModalTypes';
import { chainsIdByName, chainsName } from '@/chains/chains';
import { chainsIdByName, chainsName } from '@/chains';

type SwapActionButtonProps = {
asset: RainbowToken;
Expand Down
2 changes: 1 addition & 1 deletion src/components/toasts/TestnetToast.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Toast from './Toast';
import { useInternetStatus } from '@/hooks';
import { ChainId } from '@/chains/types';
import { useConnectedToHardhatStore } from '@/state/connectedToHardhat';
import { chainsName, chainsNativeAsset } from '@/chains/chains';
import { chainsName, chainsNativeAsset } from '@/chains';

const TestnetToast = ({ chainId }) => {
const { connectedToHardhat } = useConnectedToHardhatStore();
Expand Down
2 changes: 1 addition & 1 deletion src/components/walletconnect-list/WalletConnectListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import styled from '@/styled-thing';
import { padding } from '@/styles';
import { showActionSheetWithOptions } from '@/utils';
import { ChainId } from '@/chains/types';
import { chainsIdByName, chainsLabel, chainsNativeAsset } from '@/chains/chains';
import { chainsIdByName, chainsLabel, chainsNativeAsset } from '@/chains';

const ContainerPadding = 15;
const VendorLogoIconSize = 50;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { Box, Inline } from '@/design-system';
import ChainBadge from '@/components/coin-icon/ChainBadge';
import { EthCoinIcon } from '../coin-icon/EthCoinIcon';
import { ChainId } from '@/chains/types';
import { supportedWalletConnectChainIds } from '@/chains/chains';
import { supportedWalletConnectChainIds } from '@/chains';

const CONTAINER_PADDING = 15;
const VENDOR_LOGO_ICON_SIZE = 50;
Expand Down
2 changes: 1 addition & 1 deletion src/featuresToUnlock/tokenGatedUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { EthereumAddress } from '@/entities';
import { getProvider } from '@/handlers/web3';
import { tokenGateCheckerAbi } from '@/references';
import { Network } from '@/chains/types';
import { chainsIdByName } from '@/chains/chains';
import { chainsIdByName } from '@/chains';

export type TokenGateCheckerNetwork =
| Network.arbitrum
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Contract } from '@ethersproject/contracts';
import { erc20ABI } from '@/references';
import { convertAmountToBalanceDisplay, convertRawAmountToDecimalFormat } from '@/helpers/utilities';
import { ChainId } from '@/chains/types';
import { chainsNativeAsset } from '@/chains/chains';
import { chainsNativeAsset } from '@/chains';
import { isLowerCaseMatch } from '@/utils';
import { AddressOrEth } from '@/__swaps__/types/assets';

Expand Down
2 changes: 1 addition & 1 deletion src/handlers/gasFees.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { chainsName } from '@/chains/chains';
import { chainsName } from '@/chains';
import { RainbowFetchClient } from '../rainbow-fetch';
import { ChainId } from '@/chains/types';

Expand Down
2 changes: 1 addition & 1 deletion src/handlers/tokenSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { logger, RainbowError } from '@/logger';
import { EthereumAddress } from '@rainbow-me/swaps';
import { RainbowToken, TokenSearchToken } from '@/entities/tokens';
import ethereumUtils from '@/utils/ethereumUtils';
import { chainsName } from '@/chains/chains';
import { chainsName } from '@/chains';

type TokenSearchApiResponse = {
data: TokenSearchToken[];
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/web3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { ethereumUtils } from '@/utils';
import { logger, RainbowError } from '@/logger';
import { IS_IOS, RPC_PROXY_API_KEY, RPC_PROXY_BASE_URL } from '@/env';
import { ChainId } from '@/chains/types';
import { defaultChains } from '@/chains/chains';
import { defaultChains } from '@/chains';

export enum TokenStandard {
ERC1155 = 'ERC1155',
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/walletConnectNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import store from '@/redux/store';
import { showActionSheetWithOptions } from '@/utils';
import * as i18n from '@/languages';
import { ChainId } from '@/chains/types';
import { chainsLabel, defaultChains, supportedWalletConnectChainIds } from '@/chains/chains';
import { chainsLabel, defaultChains, supportedWalletConnectChainIds } from '@/chains';
import { isL2Chain } from '@/handlers/web3';

const walletConnectChains = supportedWalletConnectChainIds.map(chainId => defaultChains[chainId]);
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useAccountTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { RainbowTransaction } from '@/entities';
import { pendingTransactionsStore, usePendingTransactionsStore } from '@/state/pendingTransactions';
import { nonceStore } from '@/state/nonces';
import { ChainId } from '@/chains/types';
import { SUPPORTED_CHAIN_IDS, SUPPORTED_MAINNET_CHAIN_IDS } from '@/chains/chains';
import { SUPPORTED_CHAIN_IDS, SUPPORTED_MAINNET_CHAIN_IDS } from '@/chains';

export const NOE_PAGE = 30;

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useCalculateGasLimit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { GasFeeParamsBySpeed } from '@/entities';
import { StaticJsonRpcProvider } from '@ethersproject/providers';
import { useGas } from '@/hooks';
import { ChainId } from '@/chains/types';
import { needsL1SecurityFeeChains } from '@/chains/chains';
import { needsL1SecurityFeeChains } from '@/chains';

type CalculateGasLimitProps = {
isMessageRequest: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useSearchCurrencyList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { IS_TEST } from '@/env';
import { useFavorites } from '@/resources/favorites';
import { getUniqueId } from '@/utils/ethereumUtils';
import { ChainId } from '@/chains/types';
import { chainsName } from '@/chains/chains';
import { chainsName } from '@/chains';

type swapCurrencyListType =
| 'verifiedAssets'
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useSwapCurrencyList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { useFavorites } from '@/resources/favorites';
import { getUniqueId } from '@/utils/ethereumUtils';
import { logger } from '@/logger';
import { ChainId, Network } from '@/chains/types';
import { chainsName } from '@/chains/chains';
import { chainsName } from '@/chains';

type swapCurrencyListType =
| 'verifiedAssets'
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useSwapDerivedOutputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { ethereumUtils } from '@/utils';
import { useDispatch, useSelector } from 'react-redux';
import { SwappableAsset } from '../entities/tokens';
import useAccountSettings from './useAccountSettings';
import { chainsName } from '@/chains/chains';
import { chainsName } from '@/chains';

const SWAP_POLLING_INTERVAL = 5000;

Expand Down
Loading

0 comments on commit 771d39c

Please sign in to comment.