-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoundry.toml
executable file
·40 lines (34 loc) · 1.24 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
# All profiles inherit from default
[profile.default]
src = 'src'
out = 'out'
libs = ['lib']
solc = "0.8.16"
fs_permissions = [{ access = "read-write", path = "./"}]
verbosity = 3
ignored_error_codes = [
"license"
]
# Default fuzz settings below but can be increased if needed
[fuzz]
runs = 256
max_test_rejects = 65536
# Invariant tests revert more so good to have more runs if hardware allows
# 10_000 runs takes about a min but unearths some good findings
[invariant]
runs = 256
[etherscan]
mainnet = { key = "${ETHERSCAN_API_KEY}" }
goerli = { key = "${ETHERSCAN_API_KEY}", chain_id = "5", url = "https://api-goerli.etherscan.io/" }
# set the environment variable FOUNDRY_PROFILE=testing to supress certain compiler warnings
# that are not particularly applicable to test files.
# make sure to run without to see the full compiler warnings before any deploys
# full option https://book.getfoundry.sh/reference/config/solidity-compiler#ignored_error_codes
[profile.testing]
ignored_error_codes = [
"license",
"unreachable", # OZ libraries
"code-size", # deploy scripts are often v large
"func-mutability", # lots of false positives on tests
]
# See more config options https://github.com/foundry-rs/foundry/tree/master/config