foundry-template
Foundry scaffold project with many useful solidity tools
Init from forge-template
forge init --vscode foundry-template
Deps
- forge-std
- solmate
- create3-factory
- lifinance/create3-factory
- immutable-create3-factory
- safe-global/safe-contracts
- 0x/contracts
- prb-math
EVM Tools
Usage
Install dependencies
forge install
Build
forge build
Test
forge test
Deploy
Dryrun
forge script script/Deploy.s.sol -f [network]
Live
forge script script/Deploy.s.sol -f [network] --verify --broadcast
Code guide
- https://github.com/d-xo/weird-erc20
- https://github.com/nicolasgarcia214/damn-vulnerable-defi-foundry
Analysis tools
- https://www.contractreader.io/ - chatgpt contract analysis
- https://github.com/a16z/helios - execution client and consensus client
- https://github.com/a16z/halmos - Symbolic Bounded Model Checker
- https://github.com/0xKitsune/solstat - Static analyzer to identify contract vulnerabilities and gas efficiencies
- https://blockscan.com/ - find the same contract address across different EVM chains.
- https://github.com/nascentxyz/pyrometer - analyzing the security
- https://github.com/primitivefinance/arbiter - simulated EVM.
- https://github.com/iFrostizz/solhunt - static analyzer
Dev Tools
- forge-testsuite - write solidity tests in Rust
Security tools
- https://tokensniffer.com/ - token scanner
- https://dexscreener.com/ - dex scanner
EVM network docs
- https://docs.avax.network/quickstart/fuji-workflow
- https://docs.avax.network/dapps/developer-toolchains/using-foundry-with-the-avalanche-c-chain
solc version manager
- svm-rs - foundry uses it inside
Hacks
Foundry inside
- default
forge.toml
configs: https://github.com/foundry-rs/foundry/blob/master/config/src/lib.rs#L1706