-
Notifications
You must be signed in to change notification settings - Fork 80
/
foundry.toml
61 lines (54 loc) · 1.27 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
[profile.default]
# Project
# https://book.getfoundry.sh/reference/config/project
src = 'contracts'
test = 'test'
script = 'script'
out = 'out'
libs = ['node_modules', 'lib']
cache = true
cache_path = 'cache'
force = false
evm_version = 'shanghai'
# Compiler
# https://book.getfoundry.sh/reference/config/solidity-compiler
libraries = []
auto_detect_solc = true
solc_version = '0.8.25'
# 2462: Visibility for constructor is ignored
ignored_error_codes = [2462]
# set optimizer to true when deploying to mainnet
optimizer = true
optimizer_runs = 100
via_ir = false
bytecode_hash = 'ipfs'
# Testing
# https://book.getfoundry.sh/reference/config/testing
verbosity = 0
ffi = true
fs_permissions = [
{ access = "read", path = "../" },
{ access = "read", path = "./out" },
]
ignored_warnings_from = [
"test",
"contracts/interfaces/IMockFBeanstalk.sol",
"contracts/mocks/",
]
gas_reports = ['*']
# Cache to `$HOME/.foundry/cache/<chain id>/<block number>`.
no_storage_caching = false
no_match_test = "testFork"
[profile.differential]
match_test = "testDiff"
no_match_test = ["a^"]
no_match_contract = ["ReseedStateTest"]
[profile.default.rpc_storage_caching]
chains = 'all'
endpoints = 'all'
[rpc_endpoints]
mainnet = "${FORKING_RPC}"
[invariant]
runs = 4
depth = 2048
fail_on_revert = true