forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
foundry.toml
52 lines (46 loc) · 1.49 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[profile.default]
src = "contracts"
out = "out"
test = "test"
script = "script"
gas_price = 10_000_000_000 # 10 Gwei
gas_limit = "18446744073709551615" # u64::MAX
optimizer = true
optimizer_runs = 200
ffi = true
memory_limit = 2_073_741_824
solc_version = "0.8.24"
evm_version = "cancun"
remappings = [
"@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/",
"@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
"solady/=node_modules/solady/",
"forge-std/=node_modules/forge-std/",
"ds-test/=node_modules/ds-test/src/",
"p256-verifier/=node_modules/p256-verifier/",
]
# Do not change the block_gas_limit value, TaikoL2.t.sol depends on it.
# For mainnet_mock tokenomics test we need a huge value to run lots of iterations.
# Use 30M for TaikoL2.t.sol related tests, only use this number with mainnet simulation.
block_gas_limit = 80_000_000
fs_permissions = [
{ access = "read", path = "./out" },
{ access = "read-write", path = "./deployments" },
{ access = "read", path = "./test" },
{ access = "read", path = "./genesis" },
]
# 2394: Transient storage warning
# 3860: Contract initcode size is xxx bytes and exceeds 49152 bytes
# 5574: Contract code size is xxx bytes and exceeds 24576 byte
# 5740: Unreachable code
ignored_error_codes = [2394, 3860, 5574, 5740]
[fuzz]
runs = 200
[fmt]
bracket_spacing = true
line_length = 100
multiline_func_header = "all"
number_underscore = "thousands"
wrap_comments = true
[profile.genesis]
test = "genesis"