-
Notifications
You must be signed in to change notification settings - Fork 1
/
wagmi.config.ts
59 lines (56 loc) · 1.95 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
import { defineConfig } from "@wagmi/cli";
import { foundry, react } from "@wagmi/cli/plugins";
import * as chains from "wagmi/chains";
// https://optimistic.etherscan.io/address/0xfd20c63554a9916816dc5e5df596a0333185f263#code
const SMART_GARDEN_MANAGER_ADDRESS =
"0xfD20C63554A9916816dC5e5Df596A0333185F263";
// https://optimistic.etherscan.io/address/0xf249209905ed226966e956c104baf8c766d47706
const HARVEST_PLUGIN_ADDRESS = "0xf249209905Ed226966E956C104baf8C766d47706";
/**
* Wagmi cli will automatically generate react hooks from your forge contracts
* @see https://wagmi.sh/cli/getting-started
* You can also generate hooks from etherscan
* @see https://wagmi.sh/cli/plugins/etherscan
* Or for erc20 erc721 tokens
* @see https://wagmi.sh/cli/plugins/erc
* Or from hardhat
* @see https://wagmi.sh/cli/plugins/hardhat
* Or from an arbitrary fetch request
* @see https://wagmi.sh/cli/plugins/fetch
*
* You can also generate vanilla actions for @wagmi/core
* @see https://wagmi.sh/cli/plugins/actions
*/
export default defineConfig({
out: "src/generated.ts",
plugins: [
/**
* Generates react hooks from your forge contracts
* @see https://wagmi.sh/cli/plugins/foundry
*/
foundry({
forge: {
clean: true,
},
deployments: {
SmartGardenManager: {
[chains.optimism.id]: SMART_GARDEN_MANAGER_ADDRESS,
[chains.optimismGoerli.id]: SMART_GARDEN_MANAGER_ADDRESS,
[chains.foundry.id]: SMART_GARDEN_MANAGER_ADDRESS,
},
HarvesterPlugin: {
[chains.optimism.id]: HARVEST_PLUGIN_ADDRESS,
[chains.optimismGoerli.id]: HARVEST_PLUGIN_ADDRESS,
[chains.foundry.id]: HARVEST_PLUGIN_ADDRESS,
},
},
// collision due to duplicates in the forge-std and safe-contracts deps
exclude: ["IERC165.sol/**"],
}),
/**
* Generates react hooks from your abis
* @see https://wagmi.sh/cli/plugins/react
*/
react(),
],
});