Skip to content

Commit fe3e56d

Browse files
authored
chore: remove src/references/index.ts barrel file (#6999)
Fixes APP-#### ## What changed (plus any additional context for devs) ## Screen recordings / screenshots ## What to test
1 parent 8444496 commit fe3e56d

File tree

72 files changed

+86
-85
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+86
-85
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ const allowedBarrelFiles = [
7878
'src/react-native-animated-charts/src/index.ts',
7979
'src/react-query/index.ts',
8080
'src/features/ens/references/index.ts',
81-
'src/references/index.ts',
8281
'src/references/opensea/index.ts',
8382
'src/references/rainbow-token-list/index.ts',
8483
'src/references/signatureRegistry/index.ts',

src/__swaps__/screens/Swap/components/CoinRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { ContextMenuButton } from '@/components/context-menu';
88
import { Box, Column, Columns, HitSlop, Inline, Text } from '@/design-system';
99
import { setClipboard } from '@/hooks/useClipboard';
1010
import * as i18n from '@/languages';
11-
import { ETH_ADDRESS } from '@/references';
11+
import { ETH_ADDRESS } from '@/references/constants';
1212
import { toggleFavorite } from '@/resources/favorites';
1313
import { useUserAssetsStore } from '@/state/assets/userAssets';
1414
import { showActionSheetWithOptions } from '@/framework/ui/utils/actionsheet';

src/__swaps__/screens/Swap/components/ExchangeRateBubble.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { valueBasedDecimalFormatter } from '@/__swaps__/utils/decimalFormatter';
66
import { opacity } from '@/framework/ui/utils/opacity';
77
import { useSwapContext } from '@/__swaps__/screens/Swap/providers/swap-provider';
88
import { AddressZero } from '@ethersproject/constants';
9-
import { ETH_ADDRESS } from '@/references';
9+
import { ETH_ADDRESS } from '@/references/constants';
1010
import { GestureHandlerButton } from '@/components/buttons/GestureHandlerButton';
1111
import { convertAmountToNativeDisplayWorklet } from '@/helpers/utilities';
1212
import { StyleSheet } from 'react-native';

src/__swaps__/screens/Swap/components/SwapNumberPad.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Animated, {
1111
withTiming,
1212
} from 'react-native-reanimated';
1313
import { triggerHaptics } from 'react-native-turbo-haptics';
14-
import { supportedNativeCurrencies } from '@/references';
14+
import { supportedCurrencies as supportedNativeCurrencies } from '@/references/supportedCurrencies';
1515
import { TIMING_CONFIGS } from '@/components/animations/animationConfigs';
1616
import { Bleed, Box, Columns, HitSlop, Separator, Text, useColorMode, useForegroundColor } from '@/design-system';
1717
import { IS_IOS } from '@/env';

src/__swaps__/screens/Swap/resources/assets/userAssets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type Address } from 'viem';
22
import { createQueryKey } from '@/react-query';
3-
import { type SupportedCurrencyKey } from '@/references';
3+
import type { SupportedCurrencyKey } from '@/references/supportedCurrencies';
44

55
// ///////////////////////////////////////////////
66
// Query Types

src/__swaps__/screens/Swap/resources/search/searchV2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getProvider } from '@/handlers/web3';
66
import { RainbowError, logger } from '@/logger';
77
import { RainbowFetchClient } from '@/framework/data/http/rainbowFetch';
88
import { Contract } from '@ethersproject/contracts';
9-
import { erc20ABI } from '@/references';
9+
import erc20ABI from '@/references/erc20-abi.json';
1010
import { ChainId } from '@/state/backendNetworks/types';
1111
import { useBackendNetworksStore } from '@/state/backendNetworks/backendNetworks';
1212
import { createRainbowStore } from '@/state/internal/createRainbowStore';

src/__swaps__/types/assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Address } from 'viem';
22

3-
import { type ETH_ADDRESS } from '@/references';
3+
import type { ETH_ADDRESS } from '@/references/constants';
44
import { type ChainId, type ChainName } from '@/state/backendNetworks/types';
55
import { type SearchAsset } from '@/__swaps__/types/search';
66
import { type ResponseByTheme } from '../utils/swaps';

src/__swaps__/utils/assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type SupportedCurrencyKey } from '@/references';
1+
import type { SupportedCurrencyKey } from '@/references/supportedCurrencies';
22
import {
33
type AddressOrEth,
44
type AssetApiResponse,

src/__swaps__/utils/flipAssets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type SharedValue, withSpring } from 'react-native-reanimated';
22
import type { NativeCurrencyKey } from '@/entities/nativeCurrencyTypes';
3-
import { supportedNativeCurrencies } from '@/references';
3+
import { supportedCurrencies as supportedNativeCurrencies } from '@/references/supportedCurrencies';
44
import { divWorklet, equalWorklet, greaterThanWorklet, mulWorklet, toFixedWorklet } from '@/framework/core/safeMath';
55
import { type ExtendedAnimatedAssetWithColors } from '@/__swaps__/types/assets';
66
import { type InputKeys, type InputMethods, type InputValues } from '@/__swaps__/types/swap';

src/__swaps__/utils/swaps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { type TokenColors } from '@/graphql/__generated__/metadata';
1616
import * as i18n from '@/languages';
1717
import { DEFAULT_SLIPPAGE_BIPS_CHAINID, type RainbowConfig } from '@/model/remoteConfig';
1818
import store from '@/redux/store';
19-
import { supportedNativeCurrencies } from '@/references';
19+
import { supportedCurrencies as supportedNativeCurrencies } from '@/references/supportedCurrencies';
2020
import { useUserAssetsStore } from '@/state/assets/userAssets';
2121
import { colors } from '@/styles';
2222
import { type BigNumberish } from '@ethersproject/bignumber';

0 commit comments

Comments
 (0)