-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwagmi.config.ts
98 lines (96 loc) · 1.99 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import { defineConfig } from "@wagmi/cli";
import { react } from "@wagmi/cli/plugins";
import { Address } from "viem";
import { erc20ABI } from "wagmi";
import {
aaveABI,
callOptionABI,
fixedYieldABI,
gmxABI,
managerABI,
vaultABI,
} from "@/abi";
import contracts from "@/deploy/contracts.json";
export default defineConfig([
{
out: "src/hooks/generated/aave.ts",
contracts: [
{
name: "Aave",
// address: {
// 1337:
// // same for now, but it can happen they have different addresses
// coreConfig.instance === CoreInstance.PrivateTestnet
// ? "0xD1d01555b5DC60ba330414be2266f4FAC195a32B"
// : "0xD1d01555b5DC60ba330414be2266f4FAC195a32B",
// },
address: contracts.aaveService[0] as Address,
abi: aaveABI,
},
],
plugins: [react()],
},
{
out: "src/hooks/generated/vault.ts",
contracts: [
{
name: "Vault",
abi: vaultABI,
},
],
plugins: [react()],
},
{
out: "src/hooks/generated/manager.ts",
contracts: [
{
name: "Manager",
abi: managerABI,
address: contracts.manager as Address,
},
],
plugins: [react()],
},
{
out: "src/hooks/generated/gmx.ts",
contracts: [
{
name: "Gmx",
abi: gmxABI,
address: contracts.gmxService[0] as Address,
},
],
plugins: [react()],
},
{
out: "src/hooks/generated/callOption.ts",
contracts: [
{
name: "CallOption",
abi: callOptionABI,
},
],
plugins: [react()],
},
{
out: "src/hooks/generated/fixedYield.ts",
contracts: [
{
name: "FixedYield",
abi: fixedYieldABI,
address: contracts.fixedYieldService as Address,
},
],
plugins: [react()],
},
{
out: "src/hooks/generated/token.ts",
contracts: [
{
abi: erc20ABI,
name: "Token",
},
],
plugins: [react()],
},
]);