-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
foundry.toml
62 lines (55 loc) · 1.73 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
[profile.default]
auto_detect_solc = false
bytecode_hash = "none"
cbor_metadata = false
evm_version = "paris"
fs_permissions = [{ access = "read", path = "./out-optimized" }]
gas_reports = ["PRBProxy", "PRBProxyRegistry"]
ignored_error_codes = [
5159, # ignore selfdestruct warning
]
optimizer = true
optimizer_runs = 200
out = "out"
script = "script"
solc = "0.8.23"
src = "src"
test = "test"
[profile.default.fuzz]
max_test_rejects = 1_000_000 # Number of times `vm.assume` can fail
runs = 1_000
[profile.ci]
fuzz = { runs = 10_000 }
# Speed up compilation and tests during development
[profile.lite]
fuzz = { runs = 50 }
optimizer = false
# Compile only the production code with IR
[profile.optimized]
ignored_error_codes = []
out = "out-optimized"
test = "src"
via_ir = true
# Test the optimized contracts without re-compiling them
[profile.test-optimized]
src = "test"
[fmt]
bracket_spacing = true
int_types = "long"
line_length = 120
multiline_func_header = "all"
number_underscore = "thousands"
quote_style = "double"
tab_width = 4
wrap_comments = true
[rpc_endpoints]
arbitrum = "https://arbitrum-mainnet.infura.io/v3/${API_KEY_INFURA}"
avalanche = "https://avalanche-mainnet.infura.io/v3/${API_KEY_INFURA}"
bnb_smart_chain = "https://bsc-dataseed.binance.org"
gnosis_chain = "https://rpc.gnosischain.com"
goerli = "https://goerli.infura.io/v3/${API_KEY_INFURA}"
localhost = "http://localhost:8545"
mainnet = "https://eth-mainnet.g.alchemy.com/v2/${API_KEY_ALCHEMY}"
optimism = "https://optimism-mainnet.infura.io/v3/${API_KEY_INFURA}"
polygon = "https://polygon-mainnet.infura.io/v3/${API_KEY_INFURA}"
sepolia = "https://sepolia.infura.io/v3/${API_KEY_INFURA}"