-
Notifications
You must be signed in to change notification settings - Fork 37
/
wagmi.config.ts
40 lines (39 loc) · 1.15 KB
/
wagmi.config.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
31
32
33
34
35
36
37
38
39
40
import { defineConfig } from "@wagmi/cli";
import entrypointABI from "./abis/Entrypoint.json";
import smartWalletABI from "./abis/SmartWallet.json";
import smartWalletFactoryABI from "./abis/SmartWalletFactory.json";
import anchorStateRegistryABI from "./abis/AnchorStateRegistry.json";
import l1BlockABI from "./abis/L1Block.json";
import { baseSepolia, optimismSepolia } from "viem/chains";
export default defineConfig({
out: "./generated.ts",
contracts: [
{
abi: smartWalletFactoryABI,
address: {
[baseSepolia.id]: "0x775062650652749c86686f68971F23Bb3FFf2b92",
// [optimismSepolia.id]: "0x4Ca895d26b7eb26a9D980565732049d4199f32C8",
},
name: "AccountFactory",
},
{
abi: smartWalletABI,
name: "Account",
},
{
abi: entrypointABI,
name: "EntryPoint",
address: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
},
{
abi: anchorStateRegistryABI,
name: "AnchorStateRegistry",
address: "0x4C8BA32A5DAC2A720bb35CeDB51D6B067D104205",
},
{
abi: l1BlockABI,
name: "L1Block",
address: "0x4200000000000000000000000000000000000015",
}
],
});