feat(evm): add L1SLOAD and L1STATICCALL precompiles#195
Open
jmadibekov wants to merge 7 commits into
Open
Conversation
jmadibekov
force-pushed
the
jmadibekov/l1-precompiles
branch
from
June 1, 2026 09:10
005937a to
14f88ae
Compare
jmadibekov
force-pushed
the
jmadibekov/l1-precompiles
branch
2 times, most recently
from
June 1, 2026 14:48
4b9fab3 to
83659a1
Compare
L1SLOAD and L1STATICCALL precompiles
jmadibekov
marked this pull request as ready for review
June 2, 2026 08:45
jmadibekov
force-pushed
the
jmadibekov/l1-precompiles
branch
from
June 4, 2026 10:33
a066500 to
d80f878
Compare
L1SLOAD and L1STATICCALL precompilesL1SLOAD and L1STATICCALL precompiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
L1SLOADat0x10001andL1STATICCALLat0x10002precompiles gated atTaikoSpecId::UNZEN. On chains where Unzen isNever, the addresses stay unregistered and calls fall through to the standard "no code at address" path.Companion prover PR: taikoxyz/raiko2#72. The prover imports
alethia-reth-evmas a library so guest and live execution share one precompile binary.Both precompiles share the live shape: input validation → window check → cache lookup → on miss invoke the fetcher → cache the result → return. The pieces that differ between the two:
0x10001)0x10002)addr + slot + blocktarget + block + calldata(addr, slot, block)(target, block, keccak(calldata))eth_getStorageAtdebug_traceCall(storage/stack/memory disabled)B256(gas, output, reverted)2000 + 2000(fixed)2000 + 10000 + 16/byte + l1_gas(dynamic)(gas=0, empty)before cacheL1SLOAD live path
L1STATICCALL live path
Note: Operational caveats, the devnet runbook, and the cross-cutting behavior notes (EL + prover) are consolidated in the companion prover PR taikoxyz/raiko2#72 to keep them in one place.