-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoundry.toml
48 lines (40 loc) · 1.64 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
# Foundry Configuration File
# Default definitions: https://github.com/gakonst/foundry/blob/b7917fa8491aedda4dd6db53fbb206ea233cd531/config/src/lib.rs#L782
# See more config options at: https://github.com/gakonst/foundry/tree/master/config
[profile.default]
src = 'src' # The source directory
test = 'tests' # The test directory
libs = ['lib'] # A list of library directories
solc_version = '0.8.26' # Override for the solc version (setting this ignores `auto_detect_solc`)
optimizer = true # Enable or disable the solc optimizer
optimizer_runs = 100
verbosity = 3 # The verbosity of tests
gas_limit = "18446744073709551615" # Gas limit for tests
via_ir = true
fs_permissions = [{ access = "write", path = "./"}]
evm_version = "cancun"
[profile.staking]
test = {'tests/Staking.t.sol' = ['MasterVaultTest']}
optimizer = false
[profile.production]
optimizer = true # Enable or disable the solc optimizer
optimizer_runs = 100 # The number of optimizer runs
[fuzz]
runs = 100
[invariant]
runs = 10 # The number of calls to make in the invariant tests
depth = 100 # The number of times to run the invariant tests
call_override = false # Override calls
fail_on_revert = true # Fail the test if the contract reverts
[profile.default.fuzz]
include_storage = false
runs = 10000
[fmt]
line_length = 120
tab_width = 4
int_types = "long"
multiline_func_header = "attributes_first"
quote_style = "double"
number_underscore = "thousands"
override_spacing = true
wrap_comments = false