@@ -13,6 +13,8 @@ import {
13
13
SolletExtensionWalletAdapter ,
14
14
SolletWalletAdapter ,
15
15
TorusWalletAdapter ,
16
+ WalletConnectWalletAdapter ,
17
+ WalletConnectWalletAdapterConfig ,
16
18
} from '@solana/wallet-adapter-wallets'
17
19
import { clusterApiUrl } from '@solana/web3.js'
18
20
import { DefaultSeo } from 'next-seo'
@@ -24,6 +26,20 @@ import { ClusterProvider } from '../contexts/ClusterContext'
24
26
import SEO from '../next-seo.config'
25
27
import '../styles/globals.css'
26
28
29
+ const walletConnectConfig : WalletConnectWalletAdapterConfig = {
30
+ network : WalletAdapterNetwork . Mainnet ,
31
+ options : {
32
+ relayUrl : 'wss://relay.walletconnect.com' ,
33
+ projectId : process . env . NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID ,
34
+ metadata : {
35
+ name : 'Pyth Proposals' ,
36
+ description : 'Vote on Pyth Improvement Proposals' ,
37
+ url : 'https://proposals.pyth.network/' ,
38
+ icons : [ 'https://pyth.network/token.svg' ] ,
39
+ } ,
40
+ } ,
41
+ }
42
+
27
43
function MyApp ( { Component, pageProps } : AppProps ) {
28
44
// Can be set to 'devnet', 'testnet', or 'mainnet-beta'
29
45
// const network = WalletAdapterNetwork.Devnet
@@ -44,6 +60,7 @@ function MyApp({ Component, pageProps }: AppProps) {
44
60
new LedgerWalletAdapter ( ) ,
45
61
new SolletWalletAdapter ( ) ,
46
62
new SolletExtensionWalletAdapter ( ) ,
63
+ new WalletConnectWalletAdapter ( walletConnectConfig ) ,
47
64
] ,
48
65
[ ]
49
66
)
0 commit comments