Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CCIP-5323] Compile llo-feeds using forge instead of solc. #16718

Merged
merged 3 commits into from
Mar 11, 2025

Conversation

pavel-raykov
Copy link
Collaborator

No description provided.

@cl-sonarqube-production
Copy link

@pavel-raykov pavel-raykov marked this pull request as ready for review March 11, 2025 09:08
@pavel-raykov pavel-raykov requested a review from a team as a code owner March 11, 2025 09:08
@pavel-raykov pavel-raykov enabled auto-merge March 11, 2025 16:50
echo "Compiling" "$contract"

local command
command="forge build $CONTRACTS_DIR/src/v0.8/$PROJECT/"$1"/"$2.sol" \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would imagine we still need the optimisation_runs & a fixed solc version in order to have a deterministic binary. We could perhaps move these to a configuration within the directory. We could potentially move away from deterministic binaries but it requires some thought.. some initial concerns would be:

  1. How can we determine the compiler settings for each chain, do we migrate this responsibility to tooling?
  2. Different developers using different compiler versions or settings might produce different bytecode, leading to confusion when comparing results.

Copy link
Collaborator Author

@pavel-raykov pavel-raykov Mar 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, all the compile settings are controlled by the forge profiles https://github.com/smartcontractkit/chainlink/blob/develop/contracts/foundry.toml . Whenever you need a new setting you can either override the default profile, or you can create your own custom one and set it via the FOUNDRY_PROFILE environment variable.

@pavel-raykov pavel-raykov added this pull request to the merge queue Mar 11, 2025
Merged via the queue into develop with commit 7492d01 Mar 11, 2025
183 checks passed
@pavel-raykov pavel-raykov deleted the ref-llo-feeds branch March 11, 2025 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants