diff --git a/src/config/chains/index.ts b/src/config/chains/index.ts index b980e6e..39954bd 100644 --- a/src/config/chains/index.ts +++ b/src/config/chains/index.ts @@ -1,3 +1,2 @@ export * from './crab'; export * from './darwinia'; -export * from './pangolin'; diff --git a/src/config/chains/pangolin.ts b/src/config/chains/pangolin.ts deleted file mode 100644 index 58b9d8a..0000000 --- a/src/config/chains/pangolin.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { ChainId, ChainConfig } from '@/types/chains'; - -export const pangolin: ChainConfig = { - /** - * Chain - */ - id: ChainId.PANGOLIN, - name: 'Pangolin', - nativeCurrency: { - name: 'PRING', - symbol: 'PRING', - decimals: 18 - }, - rpcUrls: { - default: { - http: ['https://pangolin-rpc.darwinia.network'], - webSocket: ['wss://pangolin-rpc.darwinia.network'] - }, - public: { - http: ['https://pangolin-rpc.darwinia.network'], - webSocket: ['wss://pangolin-rpc.darwinia.network'] - } - }, - blockExplorers: { - default: { - name: 'Subscan', - url: 'https://pangolin.subscan.io/' - } - }, - testnet: true, - /** - * rainbowkit iconUrl - */ - iconUrl: '/images/chains/pangolin.png', - /** - * Token info - */ - nativeToken: { - symbol: 'PRING', - decimals: 18, - logoPath: '/images/token/pring.png' - }, - ktonToken: { - address: '0x0000000000000000000000000000000000000402', - symbol: 'PKTON', - decimals: 18, - logoPath: '/images/token/pkton.svg' - }, - /** - * stakingContract - */ - stakingContractAddress: '0x000000000419683a1a03abc21fc9da25fd2b4dd7' -} as const satisfies ChainConfig; diff --git a/src/types/chains.ts b/src/types/chains.ts index 21ad991..1a75dbd 100644 --- a/src/types/chains.ts +++ b/src/types/chains.ts @@ -4,8 +4,7 @@ import type { Chain } from '@rainbow-me/rainbowkit'; */ export enum ChainId { CRAB = 44, - DARWINIA = 46, - PANGOLIN = 43 + DARWINIA = 46 } interface NativeToken { diff --git a/src/utils/chain.ts b/src/utils/chain.ts index 3ca61c0..0dea8d7 100644 --- a/src/utils/chain.ts +++ b/src/utils/chain.ts @@ -1,12 +1,11 @@ -import { darwinia, crab, pangolin } from '@/config/chains'; +import { darwinia, crab } from '@/config/chains'; import { ChainConfig, ChainId } from '@/types/chains'; // Map object to return a specific chain configuration // Using Record to ensure type safety const chainConfigMap: Record = { [ChainId.DARWINIA]: darwinia, - [ChainId.CRAB]: crab, - [ChainId.PANGOLIN]: pangolin + [ChainId.CRAB]: crab }; // Helper function to filter testnets in production