sepolia deployment
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { getDefaultConfig, RainbowKitProvider, darkTheme, lightTheme } from '@rainbow-me/rainbowkit';
|
||||
import { WagmiProvider } from 'wagmi';
|
||||
import { mainnet, polygon, optimism, arbitrum, base } from 'wagmi/chains';
|
||||
import { mainnet, polygon, optimism, arbitrum, base, sepolia } from 'wagmi/chains';
|
||||
import { QueryClientProvider, QueryClient } from '@tanstack/react-query';
|
||||
import { ThemeProvider, useTheme } from 'next-themes';
|
||||
import { useEffect, useState } from 'react';
|
||||
@@ -12,28 +12,35 @@ import { TranslationsProvider } from '@/providers/translations-provider';
|
||||
import { Header } from '@/components/header';
|
||||
import { ToastProvider } from '@/components/ui/toast';
|
||||
|
||||
import deployments from '@/contracts/liqp-deployments.json';
|
||||
|
||||
const mockchain = defineChain({
|
||||
id: 31337,
|
||||
name: 'Mockchain',
|
||||
nativeCurrency: {
|
||||
decimals: 18,
|
||||
name: 'Ether',
|
||||
symbol: 'ETH',
|
||||
name: 'Test Ether',
|
||||
symbol: 'TETH',
|
||||
},
|
||||
rpcUrls: {
|
||||
default: { http: ['http://localhost:8545'] },
|
||||
},
|
||||
blockExplorers: {
|
||||
default: { name: 'Explorer', url: 'http://localhost:8545' },
|
||||
},
|
||||
testnet: true,
|
||||
});
|
||||
|
||||
const allChains = [mainnet, polygon, optimism, arbitrum, base, sepolia, mockchain];
|
||||
const chains = allChains.filter(chain =>
|
||||
Object.keys(deployments || {}).includes(chain.id.toString())
|
||||
);
|
||||
if (chains.length === 0) {
|
||||
console.error('No chains found with deployed contracts.');
|
||||
}
|
||||
|
||||
const config = getDefaultConfig({
|
||||
appName: 'Liquidity Party',
|
||||
projectId: 'YOUR_PROJECT_ID', // Get this from https://cloud.walletconnect.com
|
||||
chains: [mainnet, polygon, optimism, arbitrum, base, mockchain],
|
||||
ssr: false,
|
||||
appName: 'Liquidity Party',
|
||||
projectId: 'YOUR_PROJECT_ID', // Get this from https://cloud.walletconnect.com
|
||||
chains: chains as any,
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
const queryClient = new QueryClient({
|
||||
|
||||
Reference in New Issue
Block a user