-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathfoundry.toml
More file actions
68 lines (63 loc) · 1.94 KB
/
foundry.toml
File metadata and controls
68 lines (63 loc) · 1.94 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
[profile.default]
src = 'src'
out = 'out'
libs = ['node_modules', 'lib']
test = 'test/foundry'
cache_path = 'forge-cache/sol'
optimizer = true
optimizer_runs = 2000
via_ir = false
evm_version = 'prague'
solc_version = '0.8.30'
bytecode_hash = 'none'
remappings = ['ds-test/=lib/forge-std/lib/ds-test/src/',
'forge-std/=lib/forge-std/src/',
'@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/',
'@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/',
'@offchainlabs/upgrade-executor/=node_modules/@offchainlabs/upgrade-executor/',
'@uniswap/v2-core/=node_modules/@uniswap/v2-core/contracts',
'@uniswap/lib/=node_modules/@uniswap/lib/contracts']
fs_permissions = [{ access = "read", path = "./"}]
additional_compiler_profiles = [
{ name = "20_runs", optimizer_runs = 20 },
{ name = "200_runs", optimizer_runs = 200 },
{ name = "default", optimizer_runs = 2000 }
]
compilation_restrictions = [
{ paths = "src/rollup/RollupUserLogic.sol", optimizer_runs = 20 },
{ paths = "src/challengeV2/EdgeChallengeManager.sol", optimizer_runs = 200 },
]
skip = ['test/*']
[profile.test]
inherit = "default"
optimizer = false
additional_compiler_profiles = []
compilation_restrictions = []
skip = []
[profile.yul]
inherit = "default"
src = 'yul'
out = 'out/yul'
libs = ['node_modules', 'lib']
cache_path = 'forge-cache/yul'
remappings = []
auto_detect_remappings = false
skip = ['*.sol', 'test/*']
[fmt]
line_length = 100
tab_width = 4
bracket_spacing = false
int_types = "long"
multiline_func_header = "params_first"
quote_style = "double"
number_underscore = "preserve"
hex_underscore = "remove"
single_line_statement_blocks = "preserve"
override_spacing = false
wrap_comments = false
ignore = []
contract_new_lines = false
sort_imports = false
[fuzz]
runs = 1000
# See more config options https://github.com/foundry-rs/foundry/tree/master/config