forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wagmi.config.ts
66 lines (64 loc) · 1.91 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
import { defineConfig } from '@wagmi/cli';
import type { Abi } from 'abitype';
import Bridge from '../protocol/out/Bridge.sol/Bridge.json';
// 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 ERC20 from '../protocol/out/BridgedERC20.sol/BridgedERC20.json';
import ERC721 from '../protocol/out/BridgedERC721.sol/BridgedERC721.json';
import ERC1155 from '../protocol/out/BridgedERC1155.sol/BridgedERC1155.json';
import ERC20Vault from '../protocol/out/ERC20Vault.sol/ERC20Vault.json';
import ERC721Vault from '../protocol/out/ERC721Vault.sol/ERC721Vault.json';
import ERC1155Vault from '../protocol/out/ERC1155Vault.sol/ERC1155Vault.json';
import FreeMintERC20 from '../protocol/out/FreeMintERC20.sol/FreeMintERC20.json';
import ICrossChainSync from '../protocol/out/ICrossChainSync.sol/ICrossChainSync.json';
import ISignalService from '../protocol/out/ISignalService.sol/ISignalService.json';
import QuotaManager from '../protocol/out/QuotaManager.sol/QuotaManager.json';
export default defineConfig({
out: 'src/abi/index.ts',
contracts: [
{
name: 'Bridge',
abi: Bridge.abi as Abi,
},
{
name: 'ERC20Vault',
abi: ERC20Vault.abi as Abi,
},
{
name: 'ERC721Vault',
abi: ERC721Vault.abi as Abi,
},
{
name: 'ERC1155Vault',
abi: ERC1155Vault.abi as Abi,
},
{
name: 'CrossChainSync',
abi: ICrossChainSync.abi as Abi,
},
{
name: 'SignalService',
abi: ISignalService.abi as Abi,
},
{
name: 'FreeMintERC20',
abi: FreeMintERC20.abi as Abi,
},
{
name: 'Erc20',
abi: ERC20.abi as Abi,
},
{
name: 'Erc721',
abi: ERC721.abi as Abi,
},
{
name: 'Erc1155',
abi: ERC1155.abi as Abi,
},
{
name: 'QuotaManager',
abi: QuotaManager.abi as Abi,
},
],
});