Repository navigation
Conversation
…n error to prevent EIP-2929 warm set leak (bluealloy#3780)
…ar-gas GasId names (bluealloy#3725)
…as accounting & EIP alignment (bluealloy#3782) Conflict: crates/interpreter/src/instructions/host.rs, 1 hunk / 10 lines. v112 computed skip_cold from cold_storage_additional_cost and passed it to sstore_skip_cold_load; upstream drops that optimization because EIP-7928 BAL records the slot access even on a certain OOG. Resolution: took upstream.
…de from account in test state (bluealloy#3803)
…fdestruct journal entries (bluealloy#3805)
…net-7 alignment (EIP-2780 runtime gas phase, fixtures v7.0.0) (bluealloy#3795) Conflict: MIGRATION_GUIDE.md only, 1 hunk / 24 lines. v112 has no Unreleased preamble; took the upstream section verbatim. No source conflict.
…e before tracking gas (bluealloy#3815)
… transfer logs to the inspector (bluealloy#3816)
…state gas in PrecompileOutput (bluealloy#3820)
…ile frame gas without touching the interpreter crate (bluealloy#3822)
…m gas overrides and dead CPSB constants (bluealloy#3857)
…pre-access checks (EIP-8037) (bluealloy#3829)
The sixteen cherry-picked upstream commits change public items in seven crates (constants, struct fields, trait methods and parameter counts around the EIP-2780 runtime gas phase, EIP-7702 GasId names, EIP-7708/8246 journal switches and the precompile frame gas). Rule 1 allows that only with a row in the API exceptions table; these are the rows, one per item group, with the consumers each was checked against: alloy-evm 0.36.0, alloy-op-evm 0.15.0, revm-inspectors 0.43.0 and mega-reth use none of them, op-revm is replaced by the vendored port in the next pull request, and mega-evm adapts in its own.
Claude review status
🛠️ Review did not finish Attempted head This round did not publish: MODEL_ACTION_FAILED in phase review_retry. Anything listed below is from the last round that did. Re-run the workflow or push a new commit to try again. |
The touch-point and semver jobs gated on the labels in the event payload, which does not carry a label added right after the pull request opened: #42 was opened with its labels and both jobs still saw none. Ask the API for the labels at run time instead.
The touch-point and semver jobs gated on the labels in the event payload, which does not carry a label added right after the pull request opened: #42 was opened with its labels and both jobs still saw none. Ask the API for the labels at run time instead.
|
Superseded by #45: rebuilt on a clean base (the previous base branch was the head of an already-merged pull request). Same sixteen cherry-picks and the same exception rows. |
Summary
The upstream EIP-8037 / EIP-2780 gas core, cherry-picked from bluealloy/revm between
v112andv117(16 commits,#3725to#3857), each kept as its ownmega: cherry-pick upstream <sha> — <title>commit. Nothing MegaETH-specific rides along: no hook, no price, no policy. This is the base the fork's hooks land on in the next pull requests.What the commits bring, in order:
#3757,#3758,#3780)GasIdnames (#3725)#3782), devnet-7 alignment with the EIP-2780 runtime gas phase and fixtures v7.0.0 (#3795), devnet-8 gas repricing (#3850), removal of the duplicate Amsterdam overrides and dead CPSB constants (#3857)#3813); state validated before gas tracking (#3815)#3805), EIP-7708 transfer logs forwarded (#3816)PrecompileOutputtracks spilled state gas (#3820); precompile frame gas built in the handler (#3822)#3829)#3803); EEST devnet fixtures move to[email protected]Upstream touch points
None to register: cherry-picked upstream commits are dropped, not re-applied, when the base line moves past them (the
touch-pointsjob is exempt formega:cherry-pick). The one conflict wasCargo.lock, where upstream bumpedanyhowto 1.0.103 and this fork already carries 1.0.104.API exceptions
Seven crates change public items; every one is registered in the "API exceptions" table of
MEGAETH-FORK.md(16 rows) with the consumers it was checked against. Summary:revm-primitives: five dead constants removed (CPSB constants, an EIP-7702 regular-gas constant renamed).revm-interpreter:CreateOutcomeandInputsImplgain a field;InputsTr::depthadded.revm-context:JournalCfgswaps the EIP-7708 burn switch for the EIP-8246 clear switch;CfgEnvloses the 7708 field; twoJournalInner7708 helpers removed.revm-context-interface:JournalEntry::CodeChangegains two fields;JournalEntryTr::code_changed1 → 3 parameters;Cfggains two methods and loses one; the initial-gas functions gain a parameter (EIP-2780 runtime phase); the EIP-7702 refund accessors are renamed;InitialAndFloorGas.state_refundremoved.revm-handler:validate_initial_tx_gas*,create_init_frame,Handler::execution,Handler::first_frame_inputchange parameter counts;Handler::refundreturns a value.revm-precompile:PrecompileOutputgainsstate_gas_spilled.revm-inspector:InspectorHandler::inspect_execution2 → 3 parameters.Consumers checked by grep for every item: alloy-evm 0.36.0, alloy-op-evm 0.15.0, revm-inspectors 0.43.0 and mega-reth (
2dc2f44a) use none of them. op-revm 20 breaks in three places and is replaced by the vendored revm 43 port in the next pull request; mega-evm adapts in its own.Test plan
Locally on the pinned 1.95.0: clippy with
-Dwarningson all features, fmt, nextest on the three feature sets (384 / 384 / 387 tests),no_stdon riscv32 and riscv64, the fourrevmfeature sets, docs, doctests,cargo deny check all, andcargo semver-checksfor the twelve crates against both the crates.io baseline and the pull request base. The EEST run on the new devnet-8 fixtures is CI's.Labels checklist
mega:cherry-pick,api:exception.