Solidity Foundry開発ルール

5/28/2025

これらのルールは、Foundryを使用したSolidityスマートコントラクト開発の一般的なガイドライン、ベストプラクティス、テスト、パフォーマンス最適化、開発ワークフロー、ドキュメント、依存関係、環境設定を網羅しています。コード品質、セキュリティ、効率性を重視しています。


    # via_ir pipeline is very slow - use a separate profile to pre-compile and then use vm.getCode to deploy
[profile.via_ir]
via_ir = true
# do not compile tests when compiling via-ir
test = 'src'
out = 'via_ir-out'
```

- When deterministic deployment is required:

```
[profile.deterministic]
# ensure that block number + timestamp are realistic when running tests
block_number = 17722462
block_timestamp = 1689711647
# don't pollute bytecode with metadata
bytecode_hash = 'none'
cbor_metadata = false
```