Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update token config file structure #71

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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