foundry-rs/forge-std
Ver no GitHubdocs: enhance documentation with NatSpec for all public functions
Open
#653 aberto em 4 de fev. de 2025
documentationhelp wanted
Métricas do repositório
- Stars
- (1.041 stars)
- Métricas de merge de PR
- (Mesclagem média 12m) (3 fundiu PRs em 30d)
Description
Related: https://github.com/foundry-rs/book/issues/1303
To do:
- Interfaces https://github.com/foundry-rs/forge-std/pull/666
- Base.sol
- console.sol
- console2.sol
- safeconsole.sol
- Script.sol
- StdAssertions.sol
- StdChains.sol https://github.com/foundry-rs/forge-std/pull/860
- StdCheats.sol https://github.com/foundry-rs/forge-std/pull/860
- StdError.sol
- StdInvariant.sol
- StdJson.sol https://github.com/foundry-rs/forge-std/pull/860
- StdMath.sol
- StdStorage.sol https://github.com/foundry-rs/forge-std/pull/860
- StdStyle.sol https://github.com/foundry-rs/forge-std/pull/860
- StdToml.sol https://github.com/foundry-rs/forge-std/pull/860
- StdUtils.sol
- Test.sol
- Vm.sol
Goals:
- Document all public facing functions with
@notice - Mark private variables and functions with underscore prefix https://github.com/foundry-rs/forge-std/pull/861
- Unify layouts to follow common best practices of grouping storage variables
- Move internal functions up, private functions down
- Should not modify any user facing function or interface
This will make it easier to autogenerate documentation that we can then load into https://book.getfoundry.sh/reference/forge-std/ and keep it up to date