-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoundry.toml
51 lines (44 loc) · 1.05 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
[profile.default]
src = 'src'
out = 'out'
test = 'test'
libs = ["lib"]
script = "script"
sizes = true
solc_version = "0.8.18"
optimizer = true
optimizer_runs = 200
remappings = [
'forge-std/=lib/forge-std/src/',
'@chainlink/contracts/=lib/chainlink-brownie-contracts/contracts/',
'@openzeppelin/contracts=lib/openzeppelin-contracts/contracts',
]
# Compile only the production code and the test mocks with via IR
[profile.optimized]
out = "out-optimized"
test = "test/mocks"
via_ir = true
# Test the optimized contracts without re-compiling them
[profile.test-optimized]
src = "test"
[doc]
ignore = ["**/*.t.sol"]
out = "docs"
repository = "https://github.com/Cyfrin/foundry-defi-stablecoin-f23"
[fmt]
bracket_spacing = true
int_types = "long"
line_length = 120
multiline_func_header = "all"
number_underscore = "thousands"
quote_style = "double"
tab_width = 4
[etherscan]
mainnet = { key = "${ETHERSCAN_API_KEY}" }
sepolia = { key = "${ETHERSCAN_API_KEY}" }
[rpc_endpoints]
sepolia = "${SEPOLIA_RPC_URL}"
[invariant]
runs = 128
depth = 128
fail_on_revert = true