-
Notifications
You must be signed in to change notification settings - Fork 2
/
foundry.toml
36 lines (33 loc) · 1.01 KB
/
foundry.toml
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
[profile.default]
src = 'contracts'
out = 'out'
libs = ['node_modules', 'lib']
test = 'test/forge'
cache_path = 'cache_forge'
evm_version = 'shanghai'
remappings = [
"ds-test/=lib/forge-std/lib/ds-test/src",
"@chainlink/=node_modules/@chainlink/",
"@ensdomains/=node_modules/@ensdomains/",
"@gelatonetwork/=node_modules/@gelatonetwork/",
"@openzeppelin/=node_modules/@openzeppelin/",
"@uniswap/=node_modules/@uniswap/",
"@axelar-network/=node_modules/@axelar-network/",
"base64-sol/=node_modules/base64-sol/",
"eth-gas-reporter/=node_modules/eth-gas-reporter/",
"forge-std/=node_modules/forge-std/",
"lib/forge-std:ds-test/=lib/forge-std/lib/ds-test/src/",
]
deny_warnings = true
[profile.gas-optimize]
solc_version = '0.8.19'
optimizer = true
optimizer_runs = 200_000_000
via_ir = true
[profile.gas-optimize.optimizer_details]
inliner = true
deduplicate = true
constantOptimizer = true
yul = true # makes it worse
# orderLiterals = true # makes it worse
# cse = true # makes it worse