forked from EspressoSystems/espresso-sequencer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
foundry.toml
54 lines (46 loc) · 1.72 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
[profile.default]
# Note that if we want to move the `./contracts` directory into its own repo we
# need to move the foundry.toml and remove the `./contracts` prefix from the
# directories below.
src = 'contracts/src'
out = 'contracts/out'
test = 'contracts/test'
libs = ['contracts/lib']
script = "contracts/script"
broadcast = "contracts/broadcast"
cache_path = "contracts/cache"
optimizer_runs = 0 # Increasing the number of runs saves gas but increases the size of the contract
# Version should match the solc installed via flake, otherwise the contract
# artifacts may differ slightly.
solc = "0.8.23"
# The bytecode hash is no longer deterministic and prevents us from generating
# deterministic bindings. The "none" setting prevents solc from appending the
# IPFS hash to the bytecode.
bytecode_hash = "none"
ffi = true
extra_output = ["storageLayout"]
fs_permissions = [{ access = "read-write", path = "./contracts/script/"}, { access = "read-write", path = "contracts/out"}]
ignored_warnings_from = ['contracts/lib']
[profile.defender]
# Note that if we want to move the `./contracts` directory into its own repo we
# need to move the foundry.toml and remove the `./contracts` prefix from the
# directories below.
out = 'out'
build_info = true
extra_output = ["storageLayout"]
fs_permissions = [{ access = "read-write", path = "./contracts/script/"}, { access = "read-write", path = "contracts/out"}]
# See more config options https://github.com/foundry-rs/foundry/tree/master/config
[rpc_endpoints]
local = "http://localhost:8545"
[fmt]
line_length=100
bracket_spacing=true
wrap_comments=true
[profile.ci]
fuzz = { runs = 1000 }
invariant = { runs = 1000 }
verbosity = 1
[profile.quick]
fuzz = { runs = 10 }
invariant = { runs = 10 }
verbosity = 1