-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathwagmi.config.ts
47 lines (46 loc) · 1.59 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
41
42
43
44
45
46
47
import { defineConfig } from "@wagmi/cli";
import { react, actions } from "@wagmi/cli/plugins";
import { arbitrumGoerli } from "wagmi/chains";
import KlerosCore from "@kleros/kleros-v2-contracts/deployments/arbitrumGoerli/KlerosCore.json" assert { type: "json" };
import PNK from "@kleros/kleros-v2-contracts/deployments/arbitrumGoerli/PNK.json" assert { type: "json" };
import DisputeKitClassic from "@kleros/kleros-v2-contracts/deployments/arbitrumGoerli/DisputeKitClassic.json" assert { type: "json" };
import PolicyRegistry from "@kleros/kleros-v2-contracts/deployments/arbitrumGoerli/PolicyRegistry.json" assert { type: "json" };
import IArbitrableV2 from "@kleros/kleros-v2-contracts/artifacts/src/arbitration/interfaces/IArbitrableV2.sol/IArbitrableV2.json" assert { type: "json" };
export default defineConfig({
out: "src/hooks/contracts/generated.ts",
contracts: [
{
name: "KlerosCore",
address: {
[arbitrumGoerli.id]: KlerosCore.address as `0x{string}`,
},
abi: KlerosCore.abi,
},
{
name: "DisputeKitClassic",
address: {
[arbitrumGoerli.id]: DisputeKitClassic.address as `0x{string}`,
},
abi: DisputeKitClassic.abi,
},
{
name: "PNK",
address: {
[arbitrumGoerli.id]: PNK.address as `0x{string}`,
},
abi: PNK.abi,
},
{
name: "PolicyRegistry",
address: {
[arbitrumGoerli.id]: PolicyRegistry.address as `0x{string}`,
},
abi: PolicyRegistry.abi,
},
{
name: "IArbitrableV2",
abi: IArbitrableV2.abi,
},
],
plugins: [react(), actions()],
});