Skip to content

Commit

Permalink
add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
joaolago1113 committed Jan 6, 2025
1 parent 5a6f3ba commit e42782d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
Binary file modified packages/nextjs/app/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions packages/nextjs/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 28 additions & 8 deletions packages/nextjs/services/web3/wagmiConfig.ts
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down Expand Up @@ -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),
},
});
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,
}),
],
}),
);

0 comments on commit e42782d

Please sign in to comment.