Skip to content

Commit

Permalink
Merge branch '10-add-header-component'
Browse files Browse the repository at this point in the history
  • Loading branch information
dalaoqi committed Mar 24, 2024
2 parents 06bcc4f + ab8af44 commit 2678f13
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions frontend_v2/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
});
Expand Down

0 comments on commit 2678f13

Please sign in to comment.