diff --git a/packages/nextjs/app/favicon.ico b/packages/nextjs/app/favicon.ico index 718d6fe..8e9012e 100644 Binary files a/packages/nextjs/app/favicon.ico and b/packages/nextjs/app/favicon.ico differ diff --git a/packages/nextjs/public/logo.svg b/packages/nextjs/public/logo.svg new file mode 100644 index 0000000..d263996 --- /dev/null +++ b/packages/nextjs/public/logo.svg @@ -0,0 +1 @@ + diff --git a/packages/nextjs/services/web3/wagmiConfig.ts b/packages/nextjs/services/web3/wagmiConfig.ts index e6e1152..8ef39da 100644 --- a/packages/nextjs/services/web3/wagmiConfig.ts +++ b/packages/nextjs/services/web3/wagmiConfig.ts @@ -1,6 +1,8 @@ import { http } from "viem"; import { createConfig } from "wagmi"; import { NETWORKS } from "~/constants/contracts"; +import { getDefaultConfig } from "connectkit"; +import { walletConnect } from "wagmi/connectors"; // Define the local network chain const localChain = { @@ -44,11 +46,29 @@ const lensChain = { }, }; -export const wagmiConfig = createConfig({ - chains: [//localChain, - lensChain], - transports: { - [localChain.id]: http("http://127.0.0.1:8545"), - [lensChain.id]: http(NETWORKS.LENS.rpcUrl), - }, -}); \ No newline at end of file +export const wagmiConfig = createConfig( + getDefaultConfig({ + // Your dApp's info + appName: "Pixel Canvas", + appDescription: "A collaborative pixel art canvas on the blockchain", + appUrl: "https://pixelcanvas.vercel.app", + appIcon: "https://pixelcanvas.vercel.app/logo.svg", + + // Chains + chains: [lensChain], + transports: { + [lensChain.id]: http(NETWORKS.LENS.rpcUrl), + }, + + // Wallets config + walletConnectProjectId: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID || "", + + // Add additional connectors + connectors: [ + walletConnect({ + projectId: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID || "", + showQrModal: true, + }), + ], + }), +); \ No newline at end of file