Add EIP-8272 RECENT_ROOT_CODE predeploy - #53
Open
AnkushinDaniil wants to merge 1 commit into
Open
Conversation
AnkushinDaniil
force-pushed
the
daniil/recent-root-8272
branch
from
August 11, 2026 05:39
a75a4c6 to
488096e
Compare
Collaborator
|
Geas supports |
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 the
RECENT_ROOT_CODEpredeploy for EIP-8272 as a geas source, following the request from the EIP authors to maintain the runtime here with generated bytecode and tests rather than as a hex blob in the EIP text.src/recent_root/main.easassembles byte-identical to the 144-byte runtime currently pinned in EIP-8272.ctor.easis the deploy-time wrapper in the same shape as the other predeploys here.shasum -cpasses for both generated files.The runtime reads the current slot with the EIP-7843
SLOTNUMopcode (0x4b), which geas does not yet know as a named mnemonic, so it is emitted as a raw byte and the tworecent_roottargets are built with-no-stackcheck. The Foundry test covers the calldata-length and call-value guards, which revert beforeSLOTNUMis reached; the full write path needs an EIP-7843-aware EVM and is exercised on the client devnet instead.The behaviour it implements, from EIP-8272: