Initial commit

This commit is contained in:
2026-03-25 21:47:57 +01:00
commit 477741b545
44 changed files with 12611 additions and 0 deletions

25
app/config/wagmi.ts Normal file
View File

@@ -0,0 +1,25 @@
import { createConfig, http } from "wagmi";
import { metaMask } from "wagmi/connectors";
import { type Chain } from "viem";
export const nextChain = {
id: 1337,
name: "Next",
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
rpcUrls: {
default: { http: ["https://eth.code-camp.org"] }
},
blockExplorers: {
default: { name: "Otterscan", url: "https://etherscan.code-camp.org" }
},
testnet: true
} as const satisfies Chain;
export const config = createConfig({
chains: [nextChain],
transports: {
[nextChain.id]: http()
},
connectors: [metaMask()]
});