-
Notifications
You must be signed in to change notification settings - Fork 6
/
foundry.toml
56 lines (45 loc) · 1.06 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
[profile.default]
src = 'src'
out = 'out'
libs = ['lib']
ffi = true
# Compilation
solc_version = "0.8.16"
optimizer = true
optimizer_runs = 10_000
via_ir = true
extra_output_files = ["metadata", "irOptimized"]
# Testing
fuzz = { runs = 50 }
block_timestamp = 1_680_220_800 # March 31, 2023 at 00:00 GMT
[invariant]
fail_on_revert = true
[fmt]
line_length = 80
int_types = "short"
number_underscore = "preserve"
ignore = []
[doc]
out = "docs_generated" # Note to not overwrite own docs
# Profile to compile without --via-ir and optimizations
# Run via `FOUNDRY_PROFILE=no-via-ir forge ...`
[profile.no-via-ir]
optimizer = false
via_ir = false
# Profile for intense testing
# Run via `FOUNDRY_PROFILE=intense forge t`
[profile.intense]
[profile.intense.fuzz]
runs = 10_000
[profile.intense.invariant]
runs = 10_000
# Profile for CI testing
# Run via `FOUNDRY_PROFILE=ci forge t`
[profile.ci]
[profile.ci.fuzz]
runs = 100
[profile.ci.invariant]
runs = 100
# See more config options https://github.com/foundry-rs/foundry/tree/master/config
[profile.default.zksync]
zksolc = "1.5.1"