Skip to content

chore(target_chains/ethereum): cut a release for price feeds contracts #2683

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

Merged
merged 1 commit into from
May 13, 2025

Conversation

ali-behjati
Copy link
Collaborator

Summary

Updates the solc compiler to 0.8.29 (the version before latest version) so the contracts fit the contract size limit. I checked a few explorers to make sure they support this solc version. See the comments on some adjustments.

How has this been tested?

  • Current tests cover my changes: I believe when these tests pass we are fine. I assume that since we are still in 0.8.x storage is not going to break.

@ali-behjati ali-behjati requested a review from cctdaniel May 13, 2025 12:25
@ali-behjati ali-behjati force-pushed the target_chains/eth/update-solc-and-cut-release branch from e00b53d to f7a906f Compare May 13, 2025 12:25
Copy link

vercel bot commented May 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2025 1:21pm
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2025 1:21pm
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2025 1:21pm
entropy-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2025 1:21pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2025 1:21pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2025 1:21pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2025 1:21pm

@@ -1081,7 +1081,7 @@ abstract contract Entropy is IEntropy, EntropyState {
_state.seed = keccak256(
abi.encodePacked(
block.timestamp,
block.difficulty,
block.prevrandao,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this doesn't change the behaviour, after the ethereum merge (PoW -> PoS) this was repurposed to be the pseudo random number that beacon chain creates.

@@ -1171,7 +1171,7 @@ contract EchoTest is Test, EchoEvents, IEchoConsumer, EchoTestUtils {
assertApproxEqRel(
gas2Used,
gas1Used * 2,
0.1e18, // 10% tolerance
0.2e18, // 20% tolerance
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@tejasbadadare strangely the difference got to 19% here which probably means that it has got more optimized so does a better job on longer operations.

Copy link
Contributor

@tejasbadadare tejasbadadare May 13, 2025

Choose a reason for hiding this comment

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

Oh wow nice. The alternative explanation is that gas2Used went up and that the gas scaling isn't as linear as we thought :P

@@ -112,7 +112,7 @@ module.exports = {
],
},
solidity: {
version: "0.8.4",
Copy link
Contributor

Choose a reason for hiding this comment

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

Any tradeoffs for going back a compiler version?

Also it's weird that the solidity github's latest release is 0.8.3 but 0.8.4 came out years ago ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the latest release is 0.8.30*

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh lol i mixed up 0.8.3 and 0.8.30 🤦

Copy link
Contributor

@tejasbadadare tejasbadadare left a comment

Choose a reason for hiding this comment

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

Nice!! Tried this out with the strict mininal updateData parsing PR and we're ~1k bytes within limit. I'll merge that one once this lands.

@ali-behjati ali-behjati merged commit 7330900 into main May 13, 2025
11 checks passed
@ali-behjati ali-behjati deleted the target_chains/eth/update-solc-and-cut-release branch May 13, 2025 17:44
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