Skip to content

feat(base): port to foundry-rs/base foundry branch - #29

Merged
mablr merged 3 commits into
mainfrom
mablr/base-foundry-branch
Nov 18, 2026
Merged

mablr merged 3 commits into
mainfrom
mablr/base-foundry-branch

Conversation

@mablr

@mablr mablr commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

This moves foundry-rs/base from dc2c07d, a commit no branch kept, to 8d20ec3, the head of the fork's foundry branch. That branch is upstream base/base main as of Nov 18 (6df61c8) plus the alloy 2.6 UnknownTypedTransaction accessor 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 from BaseTime. 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.

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 mablr added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 18, 2026
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.
@mablr
mablr merged commit b90cf83 into main Nov 18, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants