forked from compound-finance/compound-governance
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added foundry.toml defaults for testing and formatting (original cont…
…racts not formatted)
- Loading branch information
Showing
2 changed files
with
52 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,50 @@ | ||
[profile.default] | ||
src = 'contracts' | ||
out = 'out' | ||
libs = ['node_modules', 'lib'] | ||
test = 'test' | ||
cache_path = 'cache_forge' | ||
src = 'contracts' | ||
out = 'out' | ||
libs = ['node_modules', 'lib'] | ||
test = 'test' | ||
cache_path = 'cache_forge' | ||
evm_version = "shanghai" | ||
optimizer = true | ||
optimizer_runs = 10_000_000 | ||
solc_version = "0.8.18" | ||
verbosity = 3 | ||
|
||
[profile.ci] | ||
fuzz = { runs = 5000 } | ||
invariant = { runs = 1000 } | ||
|
||
[profile.lite] | ||
fuzz = { runs = 50 } | ||
invariant = { runs = 10 } | ||
# Speed up compilation and tests during development. | ||
optimizer = false | ||
|
||
[invariant] | ||
call_override = false | ||
depth = 100 | ||
dictionary_weight = 80 | ||
fail_on_revert = false | ||
include_push_bytes = true | ||
include_storage = true | ||
optimizer = false | ||
runs = 25 | ||
|
||
[fmt] | ||
bracket_spacing = false | ||
int_types = "long" | ||
line_length = 120 | ||
multiline_func_header = "attributes_first" | ||
number_underscore = "thousands" | ||
quote_style = "double" | ||
single_line_statement_blocks = "multi" | ||
tab_width = 4 | ||
wrap_comments = true | ||
ignore = [ | ||
"contracts/Comp.sol", | ||
"contracts/GovernorBravo*.sol", | ||
"contracts/SafeMath.sol", | ||
"contracts/Timelock.sol", | ||
"contracts/test/GovernorAlpha.sol", | ||
"contracts/test/Multicall.sol" | ||
] |