forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wagmi.config.ts
36 lines (34 loc) · 1.01 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
import { defineConfig } from '@wagmi/cli';
import type { Abi } from 'abitype';
// CI will fail if we import from the protocol package
// We'll ignore this file on svelte-check: `svelte-check --ignore ./wagmi.config.ts`
import Bridge from '../protocol/out/Bridge.sol/Bridge.json';
import TokenVault from '../protocol/out/TokenVault.sol/TokenVault.json';
import ICrossChainSync from '../protocol/out/ICrossChainSync.sol/ICrossChainSync.json';
import FreeMintERC20 from '../protocol/out/FreeMintERC20.sol/FreeMintERC20.json';
import ERC20 from '../protocol/out/ERC20.sol/ERC20.json';
export default defineConfig({
out: 'src/constants/abi/index.ts',
contracts: [
{
name: 'bridge',
abi: Bridge.abi as Abi,
},
{
name: 'tokenVault',
abi: TokenVault.abi as Abi,
},
{
name: 'crossChainSync',
abi: ICrossChainSync.abi as Abi,
},
{
name: 'freeMintErc20',
abi: FreeMintERC20.abi as Abi,
},
{
name: 'erc20',
abi: ERC20.abi as Abi,
},
],
});