-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwagmi.ts
30 lines (28 loc) · 786 Bytes
/
wagmi.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { http, cookieStorage, createConfig, createStorage } from "wagmi";
import { base, baseSepolia } from "wagmi/chains";
import { coinbaseWallet } from "wagmi/connectors";
export function getConfig() {
return createConfig({
chains: [base, baseSepolia],
connectors: [
coinbaseWallet({
appName: "EternalVigilance",
preference: "smartWalletOnly",
version: "4",
}),
],
storage: createStorage({
storage: cookieStorage,
}),
ssr: true,
transports: {
[base.id]: http(),
[baseSepolia.id]: http(),
},
});
}
declare module "wagmi" {
interface Register {
config: ReturnType<typeof getConfig>;
}
}