-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfoundry.toml
More file actions
94 lines (82 loc) · 1.95 KB
/
foundry.toml
File metadata and controls
94 lines (82 loc) · 1.95 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# 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 = ["node_modules", "lib"]
# Whether or not to enable `vm.ffi`
ffi = true
# 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
# Contracts to track with --gas-report
#gas_reports = []
ignored_error_codes = [3628, 5574, 2018]
evm_version = "cancun"
[rpc_endpoints]
eth_mainnet = "${ETH_MAINNET_RPC}"
[fmt]
single_line_statement_blocks = "single"
multiline_func_header = "params_first"
line_length = 120
tab_width = 4
bracket_spacing = true
int_types = "long"
number_underscore = "thousands"
sort_imports = true
contract_new_lines = true
override_spacing = false
[fuzz]
# Amount of runs per fuzz test
runs = 256
[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_000
via_ir = true
[profile.coverage.fuzz]
runs = 64
[profile.test]
src = "_"
script = "_"
optimizer = false
build_info = false
# extra_output_files = ["evm.assembly"]
verbosity = 3
via_ir = false
[profile.test-fuzz]
src = "_"
script = "_"
optimizer = true
build_info = false
# extra_output_files = ["evm.assembly"]
verbosity = 3
via_ir = true
optimizer_runs = 1_000_000_000
[profile.test-fuzz.fuzz]
runs = 65536