|
1 | | -import { ChainId } from '@human-protocol/sdk'; |
2 | | - |
3 | 1 | import { FC, PropsWithChildren } from 'react'; |
4 | | -import { http, createConfig, WagmiProvider as WWagmiProvider } from 'wagmi'; |
| 2 | +import { createConfig, http, WagmiProvider as WWagmiProvider } from 'wagmi'; |
5 | 3 | import * as wagmiChains from 'wagmi/chains'; |
6 | 4 | import { coinbaseWallet, walletConnect } from 'wagmi/connectors'; |
7 | 5 |
|
8 | | -import { RPC_URLS, LOCALHOST } from '../constants/chains'; |
| 6 | +import { LOCALHOST } from '../constants/chains'; |
9 | 7 |
|
10 | 8 | const projectId = import.meta.env.VITE_APP_WALLETCONNECT_PROJECT_ID; |
11 | 9 |
|
@@ -35,19 +33,19 @@ export const wagmiConfig = createConfig({ |
35 | 33 | }), |
36 | 34 | ], |
37 | 35 | transports: { |
38 | | - [wagmiChains.mainnet.id]: http(RPC_URLS[ChainId.MAINNET]), |
39 | | - [wagmiChains.sepolia.id]: http(RPC_URLS[ChainId.SEPOLIA]), |
40 | | - [wagmiChains.bsc.id]: http(RPC_URLS[ChainId.BSC_MAINNET]), |
41 | | - [wagmiChains.bscTestnet.id]: http(RPC_URLS[ChainId.BSC_TESTNET]), |
42 | | - [wagmiChains.polygon.id]: http(RPC_URLS[ChainId.POLYGON]), |
43 | | - [wagmiChains.polygonAmoy.id]: http(RPC_URLS[ChainId.POLYGON_AMOY]), |
44 | | - [wagmiChains.moonbeam.id]: http(RPC_URLS[ChainId.MOONBEAM]), |
45 | | - [wagmiChains.moonbaseAlpha.id]: http(RPC_URLS[ChainId.MOONBASE_ALPHA]), |
46 | | - [wagmiChains.avalanche.id]: http(RPC_URLS[ChainId.AVALANCHE]), |
47 | | - [wagmiChains.avalancheFuji.id]: http(RPC_URLS[ChainId.AVALANCHE_TESTNET]), |
48 | | - [wagmiChains.xLayer.id]: http(RPC_URLS[ChainId.XLAYER]), |
49 | | - [wagmiChains.xLayerTestnet.id]: http(RPC_URLS[ChainId.XLAYER_TESTNET]), |
50 | | - [LOCALHOST.id]: http(RPC_URLS[ChainId.LOCALHOST]), |
| 36 | + [wagmiChains.mainnet.id]: http(), |
| 37 | + [wagmiChains.sepolia.id]: http(), |
| 38 | + [wagmiChains.bsc.id]: http(), |
| 39 | + [wagmiChains.bscTestnet.id]: http(), |
| 40 | + [wagmiChains.polygon.id]: http(), |
| 41 | + [wagmiChains.polygonAmoy.id]: http(), |
| 42 | + [wagmiChains.moonbeam.id]: http(), |
| 43 | + [wagmiChains.moonbaseAlpha.id]: http(), |
| 44 | + [wagmiChains.avalanche.id]: http(), |
| 45 | + [wagmiChains.avalancheFuji.id]: http(), |
| 46 | + [wagmiChains.xLayer.id]: http(), |
| 47 | + [wagmiChains.xLayerTestnet.id]: http(), |
| 48 | + [LOCALHOST.id]: http(LOCALHOST.rpcUrls.default.http[0]), |
51 | 49 | }, |
52 | 50 | }); |
53 | 51 |
|
|
0 commit comments