-
Notifications
You must be signed in to change notification settings - Fork 0
/
foundry.toml
72 lines (62 loc) · 1.61 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
# To easily switch between profiles add the following to your
# .bashrc or .zshrc: function profile() { FOUNDRY_PROFILE=$1 "${@:2}" }
# Then you can invoke like this; `profile test forge build -w`
# See more config options https://github.com/foundry-rs/foundry/tree/master/config
[profile.default]
# The source directory
src = 'src/contracts'
# the test directoy
test = 'src/test'
# The artifact directory
out = 'out'
# The script directory
script = "src/script"
# A list of paths to look for libraries in
libs = ['lib', 'node_modules']
# Whether or not to enable `vm.ffi`
ffi = false
# Enables or disables the optimizer
optimizer = false
# The number of optimizer runs
optimizer_runs = 200
# use the via-ir compiler flag
via_ir = false
# include metadata hash in bytecode
bytecode_hash = "none"
# Whether to append the metadata hash to the bytecode
cbor_metadata = false
# evm version (needed until all chains support PUSH0)
evm_version = "london"
# Contracts to track with --gas-report
#gas_reports = []
ignored_error_codes = [ 1878, 2519, 2462, 5574, 5667, 2072, 2018, 3420, 5740 ]
[fuzz]
# Amount of runs per fuzz test
runs = 1024
[profile.src]
test = "_" # Makes building faster
script = "_"
optimizer = false
[profile.script]
src = "_"
test = "_"
optimizer = false
[profile.deploy]
src = "_"
test = "_"
optimizer = true
optimizer_runs = 1_000_000
via_ir = true
[profile.test]
src = "_"
script = "_"
optimizer = false
build_info = false
extra_output = []
verbosity = 3
[fmt]
line_length = 1000 # This gets overriden by prettier afterwards
tab_width = 4
bracket_spacing = true
int_types = "long"
number_underscore = "thousands"