-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathwagmi.config.ts
92 lines (90 loc) · 2.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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import { ContractConfig, defineConfig } from '@wagmi/cli';
import { actions, react } from '@wagmi/cli/plugins';
import {
ALGEBRA_ETERNAL_FARMING,
ALGEBRA_FACTORY,
ALGEBRA_POSITION_MANAGER,
ALGEBRA_QUOTER,
ALGEBRA_QUOTER_V2,
ALGEBRA_ROUTER,
FARMING_CENTER,
} from './src/constants/addresses';
import {
algebraFactoryABI,
algebraPoolABI,
algebraPositionManagerABI,
algebraQuoterABI,
algebraBasePluginABI,
algebraRouterABI,
algebraQuoterV2ABI,
algebraEternalFarmingABI,
farmingCenterABI,
wNativeABI,
algebraVirtualPoolABI
} from './src/abis';
const contracts: ContractConfig[] = [
{
address: ALGEBRA_FACTORY,
abi: algebraFactoryABI,
name: 'AlgebraFactory',
},
{
abi: algebraPoolABI,
name: 'AlgebraPool',
},
{
abi: algebraBasePluginABI,
name: 'AlgebraBasePlugin',
},
{
address: ALGEBRA_POSITION_MANAGER,
abi: algebraPositionManagerABI,
name: 'AlgebraPositionManager',
},
{
address: ALGEBRA_QUOTER,
abi: algebraQuoterABI,
name: 'AlgebraQuoter',
},
{
address: ALGEBRA_QUOTER_V2,
abi: algebraQuoterV2ABI,
name: 'AlgerbaQuoterV2',
},
{
address: ALGEBRA_ROUTER,
abi: algebraRouterABI,
name: 'AlgebraRouter',
},
{
address: ALGEBRA_ETERNAL_FARMING,
abi: algebraEternalFarmingABI,
name: 'AlgebraEternalFarming',
},
{
address: FARMING_CENTER,
abi: farmingCenterABI,
name: 'FarmingCenter',
},
{
abi: algebraVirtualPoolABI,
name: 'AlgebraVirtualPool',
},
{
abi: wNativeABI,
name: 'WrappedNative'
},
];
export default defineConfig({
out: 'src/generated.ts',
contracts,
plugins: [
actions({
watchContractEvent: false,
}),
react({
useContractEvent: false,
useContractItemEvent: false,
}),
],
});