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

Add LightClientArbitrum #2423

Merged
merged 5 commits into from
Jan 7, 2025
Merged

Conversation

Sneh1999
Copy link
Contributor

@Sneh1999 Sneh1999 commented Dec 22, 2024

Replacing block.number in arbitrum because it returns the block number of eth instead of arbitrum
Discussion here

@Sneh1999 Sneh1999 force-pushed the fix-light-client-contract-for-arb-sepolia branch from d47f297 to 5746ef8 Compare December 22, 2024 15:07
@alysiahuggins
Copy link
Contributor

additionally, we'll need to create another issue to deal with adding upgradeable deployment scripts for LightClientArbitrum.sol and upgrading LightClient.sol. In that issue, we should consider versioning as mentioned here https://github.com/EspressoSystems/espresso-sequencer/blob/main/doc/smart-contract-upgrades.md

@alysiahuggins
Copy link
Contributor

additionally, we'll need to create another issue to deal with adding upgradeable deployment scripts for LightClientArbitrum.sol and upgrading LightClient.sol. In that issue, we should consider versioning as mentioned here https://github.com/EspressoSystems/espresso-sequencer/blob/main/doc/smart-contract-upgrades.md

#2436

function setUp() public {
vm.createSelectFork("https://arb1.arbitrum.io/rpc");
mockArbsys = new MockArbSys();
vm.etch(address(100), address(mockArbsys).code); // Replace address(100) with mock
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: this is important because foundry doesnt support arbitrum pre-compiles so we have to mock them in tests

@Sneh1999 Sneh1999 requested a review from alysiahuggins January 7, 2025 18:06
@Sneh1999 Sneh1999 force-pushed the fix-light-client-contract-for-arb-sepolia branch from 3b0577c to 56ab328 Compare January 7, 2025 18:58
…into fix-light-client-contract-for-arb-sepolia
Copy link
Contributor

@alysiahuggins alysiahuggins left a comment

Choose a reason for hiding this comment

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

lgtm!

we'd need to add the LightClientArbitrum contract to the just gen-bindings command but that can be handled in the next github issue #2436

@Sneh1999 Sneh1999 merged commit 29b2c00 into main Jan 7, 2025
22 checks passed
@Sneh1999 Sneh1999 deleted the fix-light-client-contract-for-arb-sepolia branch January 7, 2025 19:47
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.

2 participants