-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwagmiConfig.ts
90 lines (82 loc) · 2.19 KB
/
wagmiConfig.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import { http, createConfig } from 'wagmi';
import { Chain } from 'wagmi/chains';
import { mainnet, sepolia, zora } from 'wagmi/chains';
import { connectorsForWallets } from '@rainbow-me/rainbowkit';
import {
metaMaskWallet,
coinbaseWallet,
rainbowWallet,
walletConnectWallet,
rabbyWallet,
ledgerWallet,
phantomWallet,
} from '@rainbow-me/rainbowkit/wallets';
// const zora = {
// id: 43_114,
// name: 'Avalanche',
// network: 'avalanche',
// nativeCurrency: {
// decimals: 18,
// name: 'Avalanche',
// symbol: 'AVAX',
// },
// rpcUrls: {
// public: { http: ['https://api.avax.network/ext/bc/C/rpc'] },
// default: { http: ['https://api.avax.network/ext/bc/C/rpc'] },
// },
// blockExplorers: {
// etherscan: { name: 'SnowTrace', url: 'https://snowtrace.io' },
// default: { name: 'SnowTrace', url: 'https://snowtrace.io' },
// },
// contracts: {
// multicall3: {
// address: '0xca11bde05977b3631167028862be2a173976ca11',
// blockCreated: 11_907_934,
// },
// },
// } as const satisfies Chain;
const connectors = connectorsForWallets(
[
{
groupName: 'Recommended',
wallets: [
metaMaskWallet,
coinbaseWallet,
rainbowWallet,
walletConnectWallet,
rabbyWallet,
ledgerWallet,
phantomWallet,
],
},
],
{
appName: 'anarchive',
projectId: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID,
}
);
export const config = createConfig({
chains: [zora as Chain],
transports: {
[zora.id]: http(),
},
connectors,
});
// import { WagmiConfig, createConfig, configureChains, mainnet } from 'wagmi'
// import { publicProvider } from 'wagmi/providers/public'
// const { publicClient, webSocketPublicClient } = configureChains(
// [mainnet],
// [publicProvider()],
// )
// const config = createConfig({
// publicClient,
// webSocketPublicClient,
// })
// import { getDefaultConfig } from '@rainbow-me/rainbowkit';
// import { zora } from 'wagmi/chains';
// const config = getDefaultConfig({
// appName: 'My RainbowKit App',
// projectId: 'YOUR_PROJECT_ID',
// chains: [zora],
// ssr: true, // If your dApp uses server side rendering (SSR)
// });