Stateful testing for EIP-8141 Frame Transactions and the Alternative Mempool.
Aftershock is a developer testing workbench for EIP-8141 Frame Transactions and the Alternative Mempool. Getting a transaction admitted is only the beginning: payer balances, nonce conflicts and replacements can affect what happens before inclusion. Aftershock runs controlled experiments against real isolated nodes and checks expected behavior against actual observations. Our original suites test shared-payer affordability and keyed-nonce conflict/replacement lifecycles. Additional coverage includes replacement TTL expiry and refresh. Developers can also upload compiled contract bytecode with an ordered test plan. Contract lab deploys the contract, executes calls, mined transactions or Frame Transactions, and checks declared return-data and storage assertions. Hosted execution runs through GitHub Actions, so visitors need only a browser. Each run produces inspectable evidence, including transaction hashes, admission observations, receipts, assertions and cleanup results. The website separately supports live public-devnet inspection and bounded transaction/contract-call simulation. Aftershock helps wallet, payer and mempool developers reproduce issues and catch regressions. It provides scoped testing against pinned implementations, not a general security certification.
Aftershock uses TypeScript, npm workspaces, Zod for input/report validation, viem for account and contract interactions, and the official @forshtat/hegota-support codec for EIP-8141 transaction encoding, signing and RPC serialization. The scenario engine runs against an isolated EIP-8141-aware ethrex fork, the alternative-mempool sidecar and Lighthouse consensus. Tests create fresh accounts and controlled state transitions, then compare node observations with assertions derived from pinned implementation rules. Admission and successful execution are checked separately. A lightweight HTML/CSS/JavaScript frontend and bounded API functions run on Vercel. GitHub Actions provisions disposable Linux execution environments, runs Docker-based tests and returns validated report artifacts. Workflow identity, source commit and artifact integrity are checked; custom contract reports are also bound to the submitted plan’s SHA-256 hash. The CLI supports local execution, reports, comparison and scoped replay workflows. We reuse upstream clients, the official codec and workshop assets. Our contribution is stateful scenario orchestration, invariant checks, evidence capture and the developer-facing test-plan workflow. Public-devnet submission and mined execution were also verified. AI assistance is disclosed in the repository.

