-
Notifications
You must be signed in to change notification settings - Fork 0
/
wagmi.config.ts
55 lines (53 loc) · 1.21 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
import {
CLEAR_ABI,
CLEAR_ADDRESS,
SEAPORT_V1_5_ABI,
SEAPORT_ADDRESS,
SEAPORT_VALIDATOR_ABI,
VALIDATOR_ADDRESS,
} from '@valorem-labs-inc/sdk';
import { defineConfig } from '@wagmi/cli';
import { erc20ABI } from 'wagmi';
import { react } from '@wagmi/cli/plugins';
const FOUNDRY_CLEAR_ADDRESS = '0x9f13A8276F0cc1e85F0f62c67Cf9f4f940d7D20d';
export default defineConfig({
out: 'src/lib/codegen/wagmi.ts',
contracts: [
{
name: 'Clear',
address: {
1: CLEAR_ADDRESS,
42161: CLEAR_ADDRESS,
421614: CLEAR_ADDRESS,
31337: FOUNDRY_CLEAR_ADDRESS,
},
abi: CLEAR_ABI,
},
{
name: 'Seaport',
address: SEAPORT_ADDRESS,
abi: SEAPORT_V1_5_ABI,
},
{
name: 'SeaportValidator',
address: VALIDATOR_ADDRESS,
abi: SEAPORT_VALIDATOR_ABI,
},
{
name: 'ERC20',
abi: erc20ABI,
},
],
plugins: [
react({
useContractEvent: false,
useContractItemEvent: false,
useContractRead: false,
useContractFunctionRead: true,
useContractWrite: false,
useContractFunctionWrite: true,
usePrepareContractWrite: false,
usePrepareContractFunctionWrite: true,
}),
],
});