-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwagmi.config.ts
More file actions
115 lines (113 loc) · 3.55 KB
/
wagmi.config.ts
File metadata and controls
115 lines (113 loc) · 3.55 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import { defineConfig, Plugin } from "@wagmi/cli";
import { foundry, FoundryConfig } from "@wagmi/cli/plugins";
const namingPlugin = (suffix = "V310", trim = "V3") => (config: FoundryConfig = {}): Plugin => {
const plugin = foundry(config);
return {
...plugin,
contracts: async () => {
const contracts = await plugin.contracts();
return contracts.map((contract) => {
return {
...contract,
name: contract.name.replaceAll(trim, "").concat(suffix),
};
});
},
};
};
export default defineConfig([
{
out: "./compressors.generated.ts",
plugins: [
foundry({
artifacts: "out",
forge: {
build: false,
clean: false,
rebuild: false,
},
include: [
"ICreditAccountCompressor.sol/**.json",
"ICreditSuiteCompressor.sol/**.json",
"IGaugeCompressor.sol/**.json",
"IMarketCompressor.sol/**.json",
"IPeripheryCompressor.sol/**.json",
"IPriceFeedCompressor.sol/**.json",
"IRewardsCompressor.sol/**.json",
"ITokenCompressor.sol/**.json",
],
}),
],
},
{
out: "./adapters.generated.ts",
plugins: [
foundry({
artifacts: "out",
forge: {
build: false,
clean: false,
rebuild: false,
},
include: [
"IAaveV2_LendingPoolAdapter.sol/**.json",
"IAaveV2_WrappedATokenAdapter.sol/**.json",
"IBalancerV2VaultAdapter.sol/**.json",
"IBalancerV3RouterAdapter.sol/**.json",
"ICamelotV3Adapter.sol/**.json",
"ICompoundV2_CTokenAdapter.sol/**.json",
"IConvexV1BaseRewardPoolAdapter.sol/**.json",
"IConvexV1BoosterAdapter.sol/**.json",
"ICurveV1Adapter.sol/**.json",
"ICurveV1_2AssetsAdapter.sol/**.json",
"ICurveV1_3AssetsAdapter.sol/**.json",
"ICurveV1_4AssetsAdapter.sol/**.json",
"ICurveV1_StableNGAdapter.sol/**.json",
"IEqualizerRouterAdapter.sol/**.json",
"IERC4626Adapter.sol/**.json",
"ILidoV1Adapter.sol/**.json",
"IwstETHV1Adapter.sol/**.json",
"IMellowVaultAdapter.sol/**.json",
"IPendleRouterAdapter.sol/**.json",
"IDaiUsdsAdapter.sol/**.json",
"IStakingRewardsAdapter.sol/**.json",
"IUniswapV2Adapter.sol/**.json",
"IUniswapV3Adapter.sol/**.json",
"IVelodromeV2RouterAdapter.sol/**.json",
"IYearnV2Adapter.sol/**.json",
],
}),
],
},
{
out: "./v310.generated.ts",
plugins: [
namingPlugin()({
artifacts: "out",
forge: {
build: false,
clean: false,
rebuild: false,
},
include: [
"IAddressProvider.sol/IAddressProvider.json",
"IBotListV3.sol/IBotListV3.json",
"ICreditConfiguratorV3.sol/ICreditConfiguratorV3.json",
"ICreditFacadeV3.sol/ICreditFacadeV3.json",
"ICreditFacadeV3Multicall.sol/ICreditFacadeV3Multicall.json",
"ICreditManagerV3.sol/ICreditManagerV3.json",
"IGaugeV3.sol/IGaugeV3.json",
"ILossPolicy.sol/ILossPolicy.json",
"IMarketConfigurator.sol/IMarketConfigurator.json",
"IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3.json",
"IPoolV3.sol/IPoolV3.json",
"IPriceOracleV3.sol/IPriceOracleV3.json",
"ITumblerV3.sol/ITumblerV3.json",
],
exclude: [
"base/IAddressProvider.sol/IAddressProvider.json"
]
}),
],
}
]);