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

Possible support of L1SLOAD (RIP-7728)? #48

Open
2 of 5 tasks
0xurb opened this issue Oct 16, 2024 · 1 comment
Open
2 of 5 tasks

Possible support of L1SLOAD (RIP-7728)? #48

0xurb opened this issue Oct 16, 2024 · 1 comment
Labels
A-node C-debt C-enhancement New feature or request

Comments

@0xurb
Copy link
Contributor

0xurb commented Oct 16, 2024

Are you interested in RIP-7728 support? I find this one perspective.
https://github.com/0xurb/l1sload - example implementation on revm (release/v45).
When optimism flow will be finished, we can do more exciting precompiles, that use state and L1 context.

Risks and open questions:

Can we require L2 nodes to rely on L1 archive nodes?

  • TBD

How to deal with RPC errors?

  • TBD

Impact of RPC latency on sequencing? How do we price this in gas?

  • some latency (tentative) cost for used gas calculation is included per slot

Can we guarantee that the accessed L1 state is recent?

  • TBD

Should we allow state reads at arbitrary L1 block height?

  • state has an access through L1Block.sol. And if EVM context storage is returns error, we can take BlockId::Latest on RPC calls.
@onbjerg
Copy link
Member

onbjerg commented Oct 21, 2024

Yeah, it's definitely something we're interested in exploring:)

@onbjerg onbjerg added C-enhancement New feature or request A-node C-debt labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-node C-debt C-enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants