Repository navigation
feat(base): port to foundry-rs/base foundry branch - #29
Merged
Merged
Conversation
Pin foundry-rs/base to cf040fa, the fork's `foundry` branch (upstream base/base f24bfc4 plus the alloy 2.6 accessor fix) bumped to alloy 2.6.1, and port the native Base execution to it. EIP-8130 now activates at Everest, with keystore authentication from Zenith. The executor validates the nonce before authorization, no longer auto-delegates codeless senders, computes intrinsic gas from the transaction and sender with the EIP-7623 floor and EIP-7825 cap, reads the millisecond block time from BaseTime, charges call value, per-call access gas, and the new-account charge, warms the sender and payer, and reports the committed phase count. Under gas-limit billing, fee-charged standard and EIP-8130 transactions pay their whole gas limit. From Cobalt, precompile ABI decode failures revert with the selector alone. Amp-Thread-ID: https://ampcode.com/threads/T-01a1ef43-87d8-762b-ba4c-0e297fd78efc Co-authored-by: Mablr <59505383+mablr@users.noreply.github.com>
mablr
requested review from
figtracer,
mattsse and
stevencartavia
as code owners
November 18, 2026 16:44
Repin base to 8d20ec3, the foundry branch rebased onto upstream main. Upstream removed the EIP-8130 Keystore (account creation, config changes, actors, policy gating) and renamed EIP-8130 types and crates to Base transactions, so authorization now recovers the sender and payer and installs only the delegation.
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.
This moves
foundry-rs/basefromdc2c07d, a commit no branch kept, to8d20ec3, the head of the fork'sfoundrybranch. That branch is upstreambase/basemainas of Nov 18 (6df61c8) plus the alloy 2.6UnknownTypedTransactionaccessor fix and the alloy 2.6.1 bump. Foundry pins the same revision, so the types still unify.Upstream changed Base execution substantially since the old pin, so the native port follows it. EIP-8130 now activates at Everest, and upstream removed the Keystore: account creation, configuration changes, actors and policy gating are gone, and authorization recovers the sender and payer with secp256k1 and installs only the delegation. The sender's actor id is its own address. EIP-8130 types and crates are renamed to Base transactions (
TxBase*,base-common-base-tx,base-execution-base-tx). The executor validates the nonce before authorization and no longer auto-delegates codeless senders. It computes intrinsic gas from the transaction and sender, with the EIP-7623 floor and the EIP-7825 cap, and reads the millisecond block time fromBaseTime. Calls carry value and pay access gas for every target but the first, plus the new-account charge. The sender and payer start warm, and results report the committed phase count that 0x79 receipts now commit to. Under Everest's gas-limit billing, fee-charged standard and EIP-8130 transactions pay their whole gas limit. From Cobalt, ABI decode failures in the activation registry and nonce manager revert with the selector alone.The parity tests run EIP-8130 at both Everest and Zenith. A case covers value calls, delegated targets and the calldata floor, with fee charging off and through simulation, because gas-limit billing otherwise hides the metered gas. Test seeds load raw bytecode, so EIP-7702 designators seed as delegations.