1- import { createAppKit } from " @reown/appkit/react" ;
2- import { WagmiAdapter } from " @reown/appkit-adapter-wagmi" ;
3- import { CreateConnectorFn } from " wagmi" ;
4- import { mainnet } from " wagmi/chains" ;
5- import { injected , metaMask , walletConnect } from " wagmi/connectors" ;
1+ import { createAppKit } from ' @reown/appkit/react'
2+ import { WagmiAdapter } from ' @reown/appkit-adapter-wagmi'
3+ import { CreateConnectorFn } from ' wagmi'
4+ import { mainnet } from ' wagmi/chains'
5+ import { injected , metaMask , walletConnect } from ' wagmi/connectors'
66
7- export const projectId = process . env . NEXT_PUBLIC_WC_PROJECT_ID || 'your-project-id' ;
7+ export const projectId = process . env . NEXT_PUBLIC_WC_PROJECT_ID || 'your-project-id'
88
99const metadata = {
10- name : "Devconnect Perks" ,
11- description : "Devconnect ARG" ,
12- url : process . env . NODE_ENV === 'development' ? 'http://localhost:3000' : process . env . NEXT_PUBLIC_APP_URL || "https://devconnect.org" ,
13- icons : [ "https://devconnect.org/favicon.ico" ] ,
14- } ;
10+ name : 'Devconnect Perks' ,
11+ description : 'Devconnect ARG' ,
12+ url :
13+ process . env . NODE_ENV === 'development'
14+ ? 'http://localhost:3000'
15+ : process . env . NEXT_PUBLIC_APP_URL || 'https://devconnect.org' ,
16+ icons : [ 'https://devconnect.org/favicon.ico' ] ,
17+ }
1518
1619// Configure connectors
1720const connectors : CreateConnectorFn [ ] = [
1821 injected ( ) ,
19- // metaMask(),
20- // walletConnect({
21- // projectId,
22- // }),
23- ] ;
22+ // metaMask(),
23+ // walletConnect({
24+ // projectId,
25+ // }),
26+ ]
2427
2528// Create wagmi adapter with all connectors
2629export const wagmiAdapter = new WagmiAdapter ( {
2730 ssr : true ,
28- networks : [ mainnet ] ,
31+ networks : [ mainnet ] as any ,
2932 projectId,
3033 connectors,
31- } ) ;
34+ } )
3235
3336export const appKit = createAppKit ( {
3437 adapters : [ wagmiAdapter ] ,
35- networks : [ mainnet ] ,
38+ networks : [ mainnet ] as any ,
3639 projectId,
3740 metadata,
3841 features : {
@@ -41,13 +44,13 @@ export const appKit = createAppKit({
4144 socials : false ,
4245 emailShowWallets : false ,
4346 } ,
44- themeMode : " light" ,
47+ themeMode : ' light' ,
4548 enableEIP6963 : true , // Enable EIP6963 for better injected wallet detection
4649 enableInjected : true ,
4750 enableWalletConnect : true ,
4851 enableCoinbase : true ,
4952 allowUnsupportedChain : true ,
50- allWallets : " SHOW" , // Show all wallets including injected ones
53+ allWallets : ' SHOW' , // Show all wallets including injected ones
5154 featuredWalletIds : [
5255 // MetaMask
5356 'c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96' ,
@@ -58,4 +61,4 @@ export const appKit = createAppKit({
5861 // Zerion
5962 'ecc4036f814562b41a5268adc86270fba1365471402006302e70169465b7ac18' ,
6063 ] ,
61- } ) ;
64+ } )
0 commit comments