foundry-rs / foundry-rs/foundry
Add configuration option for alternate compilers
- Dominant language
- Rust
- Stars
- 10.6k
- Forks
- 2.6k
- Avg merge
- 16h 38m
- Merged PRs (30d)
- 511
Description
### Component
Forge, Other (please describe)
### Describe the feature you would like
As a smart contract developer who builds in Solidity but requires a compiler that is not solc - its difficult for me to use foundry. It would be greatly beneficial for Foundry to implement alternate compiler configurations for developers using custom ZK compilers for L2s.
An Ideal outcome of this would be having a switch in the config such that you could point the compiler to a local compiler command as opposed to defaulting to solc. This may have downstream affects for loading ABIs and bytecode for testing. An example compiler that would utilize this request would be the zkSync compiler - currently the only option is using hardhat and npm (https://www.npmjs.com/package/@matterlabs/hardhat-zksync-solc).
### Additional context
_No response_
Contributor guide
Research direction
Start by mapping Foundry’s existing compiler configuration and the downstream ABI and bytecode loading paths; the issue names no files or tests. Done means a configuration can select a local alternate compiler command and compilation, ABI loading, and bytecode-based testing work for an alternate compiler such as zkSync.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, solidity
- Domain
- blockchain, compilers, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100