-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add template for creating new Foundry projects
- Loading branch information
Showing
3 changed files
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Compiler files | ||
cache/ | ||
out/ | ||
|
||
# Ignores development broadcast logs | ||
!/broadcast | ||
/broadcast/*/31337/ | ||
/broadcast/**/dry-run/ | ||
|
||
# Docs | ||
docs/ | ||
|
||
# Dotenv file | ||
.env |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Foundry Template Setup | ||
|
||
Copy this folder to start a new Foundry project, then run the following to initialize the submodules: | ||
|
||
```bash | ||
$ forge install foundry-rs/forge-std | ||
$ forge install OpenZeppelin/openzeppelin-foundry-upgrades | ||
$ forge install OpenZeppelin/openzeppelin-contracts-upgradeable | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[profile.default] | ||
solc = "0.8.25" | ||
evm_version = "cancun" | ||
src = "src" | ||
out = "out" | ||
libs = ["lib"] | ||
ffi = true | ||
ast = true | ||
build_info = true | ||
extra_output = ["storageLayout"] | ||
|
||
[fmt] | ||
single_line_statement_blocks = "multi" | ||
multiline_func_header = "params_first" | ||
sort_imports = true | ||
contract_new_lines = true | ||
bracket_spacing = true | ||
int_types = "long" | ||
quote_style = "double" | ||
number_underscore = "thousands" | ||
wrap_comments = true | ||
|
||
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options | ||
|
||
remappings = [ | ||
"@openzeppelin/contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/", | ||
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", | ||
] |