-
Notifications
You must be signed in to change notification settings - Fork 71
/
wagmi.config.ts
43 lines (42 loc) · 1.32 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
import { defineConfig } from "@wagmi/cli";
import { foundry, react } from "@wagmi/cli/plugins";
import * as chains from "wagmi/chains";
import { ATTESTATION_STATION_ADDRESS } from "@eth-optimism/atst";
/**
* 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({
deployments: {
AttestationStation: {
[chains.optimism.id]: ATTESTATION_STATION_ADDRESS,
[chains.optimismGoerli.id]: ATTESTATION_STATION_ADDRESS,
[chains.foundry.id]: ATTESTATION_STATION_ADDRESS,
},
},
}),
/**
* Generates react hooks from your abis
* @see https://wagmi.sh/cli/plugins/react
*/
react(),
],
});