-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfoundry.toml
71 lines (60 loc) · 1.79 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
[profile.default]
src = 'contracts'
out = 'out'
libs = ['lib']
test = 'test'
cache_path = 'forge-cache'
# extra_output = ["ir", "irOptimized"]
# extra_output = ["irOptimized"]
# Remove bytecode hash at the end of compiled bytecode
bytecode_hash = "none"
# Allow read/write permission on current path
fs_permissions = [{ access = "read-write", path = "./" }]
# For OZ upgrades checks
build_info = true
extra_output = ["storageLayout"]
# Optimizer config
optimizer = true
optimizer_runs = 100_000
via-ir = false
[profile.default.optimizer_details]
constantOptimizer = true
yul = true
# Fuzzing config
[fuzz]
runs = 1000
include_storage = true
include_push_bytes = true
# CI config
[profile.ci]
fuzz = { runs = 10_000, seed = '0xacab' }
verbosity = 4
# Invariant config
[invariant]
runs = 256
depth = 15
fail_on_revert = false
call_override = false
dictionary_weight = 80
include_storage = true
include_push_bytes = true
[etherscan]
mainnet = { key = "${API_KEY_ETHERSCAN}" }
goerli = { key = "${API_KEY_ETHERSCAN}", url = "https://api-goerli.etherscan.io/api" }
polygon = { key = "${API_KEY_POLYGONSCAN}", url = "https://api.polygonscan.com/api" }
mumbai = { key = "${API_KEY_POLYGONSCAN}", url = "https://api-testnet.polygonscan.com/api" }
[fmt]
bracket_spacing = true
int_types = "long"
line_length = 120
multiline_func_header = "all"
number_underscore = "thousands"
quote_style = "double"
tab_width = 4
wrap_comments = true
[rpc_endpoints]
localhost = "http://localhost:8545"
mainnet = "https://eth-mainnet.g.alchemy.com/v2/${API_KEY_ALCHEMY_MAINNET}"
goerli = "https://eth-goerli.g.alchemy.com/v2/${API_KEY_ALCHEMY_GOERLI}"
polygon = "https://polygon-mainnet.g.alchemy.com/v2/${API_KEY_ALCHEMY_POLYGON}"
mumbai = "https://polygon-mumbai.g.alchemy.com/v2/${API_KEY_ALCHEMY_MUMBAI}"