-
Notifications
You must be signed in to change notification settings - Fork 172
Expand file tree
/
Copy pathwagmi.config.mts
More file actions
51 lines (49 loc) · 1.75 KB
/
Copy pathwagmi.config.mts
File metadata and controls
51 lines (49 loc) · 1.75 KB
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
import { defineConfig, type Config } from '@wagmi/cli'
import { Abi } from 'viem'
import GraphToken from './artifacts/contracts/contracts/token/IGraphToken.sol/IGraphToken.json'
import L2GNS from './artifacts/contracts/toolshed/IL2GNSToolshed.sol/IL2GNSToolshed.json'
import L2Curation from './artifacts/contracts/toolshed/IL2CurationToolshed.sol/IL2CurationToolshed.json'
import HorizonStaking from './artifacts/contracts/toolshed/IHorizonStakingToolshed.sol/IHorizonStakingToolshed.json'
import EpochManager from './artifacts/contracts/toolshed/IEpochManagerToolshed.sol/IEpochManagerToolshed.json'
import RewardsManager from './artifacts/contracts/toolshed/IRewardsManagerToolshed.sol/IRewardsManagerToolshed.json'
import L2GraphTokenGateway from './artifacts/contracts/contracts/l2/gateway/IL2GraphTokenGateway.sol/IL2GraphTokenGateway.json'
import GraphTokenLockWallet from './artifacts/contracts/toolshed/IGraphTokenLockWalletToolshed.sol/IGraphTokenLockWalletToolshed.json'
// Only generate wagmi types for contracts that are used by the Explorer
export default defineConfig({
out: 'wagmi/generated.ts',
contracts: [
{
name: 'L2GNS',
abi: L2GNS.abi as Abi,
},
{
name: 'L2Curation',
abi: L2Curation.abi as Abi,
},
{
name: 'L2GraphToken',
abi: GraphToken.abi as Abi,
},
{
name: 'HorizonStaking',
abi: HorizonStaking.abi as Abi,
},
{
name: 'EpochManager',
abi: EpochManager.abi as Abi,
},
{
name: 'RewardsManager',
abi: RewardsManager.abi as Abi,
},
{
name: 'L2GraphTokenGateway',
abi: L2GraphTokenGateway.abi as Abi,
},
{
name: 'GraphTokenLockWallet',
abi: GraphTokenLockWallet.abi as Abi,
},
],
plugins: []
}) as Config