forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoundry.toml
76 lines (68 loc) · 2.23 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[profile.default]
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.27"
remappings = [
"@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/",
"openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/",
"@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
"openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
"@risc0/contracts/=node_modules/risc0-ethereum/contracts/src/",
"@solady/=node_modules/solady/",
"@optimism/=node_modules/optimism/",
"@sp1-contracts/=node_modules/sp1-contracts/contracts/",
"forge-std/=node_modules/forge-std/",
"ds-test/=node_modules/ds-test/src/",
"@p256-verifier/contracts/=node_modules/p256-verifier/src/",
"src/=contracts/",
"test/=test/",
"script/=script/"
]
# 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 = "./script/" },
{ 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]
libs = ["node_modules", "lib"]
[fuzz]
runs = 200
[fmt]
bracket_spacing = true
line_length = 100
multiline_func_header = "all"
number_underscore = "thousands"
wrap_comments = true
[profile.layer1]
src = "contracts/layer1"
test = "test/layer1"
script = "script/layer1"
out = "out/layer1"
evm_version = "cancun"
[profile.layer2]
src = "contracts/layer2"
test = "test/layer2"
script = "script/layer2"
out = "out/layer2"
evm_version = "shanghai"
[profile.genesis]
src = "contracts/layer2"
test = "test/genesis"
script = "script/layer2"
out = "out/layer2"
evm_version = "shanghai"