diff --git a/frontend_v2/pages/_app.tsx b/frontend_v2/pages/_app.tsx index ad38dc1..569c477 100644 --- a/frontend_v2/pages/_app.tsx +++ b/frontend_v2/pages/_app.tsx @@ -4,20 +4,30 @@ import type { AppProps } from 'next/app' import { RainbowKitProvider, getDefaultWallets, getDefaultConfig } from '@rainbow-me/rainbowkit'; import { metaMaskWallet } from '@rainbow-me/rainbowkit/wallets'; import { - scroll, scrollSepolia, - optimism, optimismSepolia, - polygonZkEvm, polygonZkEvmTestnet, - sepolia, - linea, - lineaTestnet + lineaTestnet, } from 'wagmi/chains'; +import { defineChain } from 'viem' + import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { WagmiProvider } from 'wagmi'; +export const thunderTest = defineChain({ + id: 18, + name: 'ThunderCore Testnet', + nativeCurrency: { name: 'ThunderCore Testnet Token', symbol: 'TST', decimals: 18 }, + rpcUrls: { + default: { http: ['https://testnet-rpc.thundercore.com'] }, + }, + blockExplorers: { + default: { name: 'thundercore-blockscout-testnet', url: 'https://explorer-testnet.thundercore.com' }, + }, + contracts: {}, +}) + const { wallets } = getDefaultWallets(); const config = getDefaultConfig({ appName: 'RainbowKit demo', @@ -30,16 +40,11 @@ const config = getDefaultConfig({ }, ], chains: [ - sepolia, - scroll, scrollSepolia, - polygonZkEvm, polygonZkEvmTestnet, - optimism, optimismSepolia, - linea, lineaTestnet, - ...(process.env.NEXT_PUBLIC_ENABLE_TESTNETS === 'true' ? [sepolia] : []), + thunderTest, ], ssr: true, });