Skip to content

Commit

Permalink
chore: Update token config file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Halibao-Lala committed Oct 29, 2024
1 parent 805699a commit 30c2a81
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apps/canonical-bridge-ui/pages/mainnet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
} from '@bnb-chain/canonical-bridge-widget';

import { en as messages } from '@/core/locales/en';
import { useTransferConfig } from '@/data';
import { chains } from '@/data/chains';
import { useTransferConfig } from '@/token-config/mainnet';
import { chains } from '@/token-config/mainnet/chains';
import { Layout } from '@/core/components/Layout';
import { env } from '@/core/env';
import { dark } from '@/core/theme/dark';
Expand Down
4 changes: 2 additions & 2 deletions apps/canonical-bridge-ui/pages/testnet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
} from '@bnb-chain/canonical-bridge-widget';

import { en as messages } from '@/core/locales/en';
import { useTestnetTransferConfig } from '@/data-testnet';
import { testnetChains } from '@/data-testnet/testnetChains';
import { useTestnetTransferConfig } from '@/token-config/testnet';
import { testnetChains } from '@/token-config/testnet/testnetChains';
import { Layout } from '@/core/components/Layout';
import { dark } from '@/core/theme/dark';
import { light } from '@/core/theme/light';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
import axios from 'axios';

import { env } from '@/core/env';
import stargateConfig from '@/data/stargate/config.json';
import layerZeroConfig from '@/data/layerZero/config.json';
import mesonConfig from '@/data/meson/config.json';
import stargateConfig from '@/token-config/mainnet/stargate/config.json';
import layerZeroConfig from '@/token-config/mainnet/layerZero/config.json';
import mesonConfig from '@/token-config/mainnet/meson/config.json';

export function useTransferConfig() {
const [transferConfig, setTransferConfig] = useState<ITransferConfig>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useState } from 'react';
import { ITransferConfig } from '@bnb-chain/canonical-bridge-widget';

import mesonConfigTestnet from '@/data-testnet/meson/config.json';
import mesonConfigTestnet from '@/token-config/testnet/meson/config.json';

export function useTestnetTransferConfig() {
const [transferConfig, setTransferConfig] = useState<ITransferConfig>();
Expand Down

0 comments on commit 30c2a81

Please sign in to comment.