foundry-rs / foundry-rs/foundry

Add configuration option for alternate compilers

Open
#4,418 1 comment 0 reactions 0 assignees View on GitHub
A-compatibility A-compiler A-config C-forge T-feature
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.