Skip to content

feat(specs, tests): implement EIP-8037 state creation gas cost increase#2363

Merged
spencer-tb merged 2 commits intoethereum:eips/amsterdam/eip-8037from
spencer-tb:eips/amsterdam/eip-8037
Feb 28, 2026
Merged

feat(specs, tests): implement EIP-8037 state creation gas cost increase#2363
spencer-tb merged 2 commits intoethereum:eips/amsterdam/eip-8037from
spencer-tb:eips/amsterdam/eip-8037

Conversation

@spencer-tb
Copy link
Contributor

@spencer-tb spencer-tb commented Feb 28, 2026

🗒️ Description

Implements EIP-8037: State Creation Gas Cost Increase. Introduces two-dimensional gas metering that splits gas into regular (computation, memory) and state (account creation, storage set, code deposit) dimensions.

  • Adds specs for EIP-8037 in alignment with:
  • Updates the test framework by adding fork aware calculators required for 8037.
  • Adds test suite for 8037 (8037 specific tests).
  • Adds hardcoded 1174 hard coded cpsb for denvet-3.
  • Adds skips to failing static tests, will be fixed for devnet-4.

🔗 Related Issues or PRs

EIP spec updates: ethereum/EIPs#11328
EELS issue: #2040

✅ Checklist

  • All: Ran fast tox checks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:
    uvx tox -e static
  • All: PR title adheres to the repo standard - it will be used as the squash commit message and should start type(scope):.
  • All: Considered updating the online docs in the ./docs/ directory.
  • All: Set appropriate labels for the changes (only maintainers can apply labels).

Cute Animal Picture

metapod

@spencer-tb spencer-tb added A-spec-specs Area: Specification—The Ethereum specification itself (eg. `src/ethereum/*`) C-feat Category: an improvement or new feature P-urgent A-tests Area: Consensus tests. labels Feb 28, 2026
@spencer-tb spencer-tb force-pushed the eips/amsterdam/eip-8037 branch from d971186 to a8f6439 Compare February 28, 2026 03:38
@spencer-tb spencer-tb merged commit 066b8be into ethereum:eips/amsterdam/eip-8037 Feb 28, 2026
14 of 15 checks passed
@codecov
Copy link

codecov bot commented Feb 28, 2026

Codecov Report

❌ Patch coverage is 93.61702% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.59%. Comparing base (4f20148) to head (a8f6439).
⚠️ Report is 1 commits behind head on eips/amsterdam/eip-8037.

Files with missing lines Patch % Lines
src/ethereum/forks/amsterdam/fork.py 86.36% 3 Missing ⚠️
src/ethereum/trace.py 0.00% 3 Missing ⚠️
src/ethereum/forks/amsterdam/transactions.py 92.59% 1 Missing and 1 partial ⚠️
...ethereum/forks/amsterdam/vm/instructions/system.py 97.05% 1 Missing ⚠️
Additional details and impacted files
@@                     Coverage Diff                     @@
##           eips/amsterdam/eip-8037    #2363      +/-   ##
===========================================================
- Coverage                    84.89%   82.59%   -2.31%     
===========================================================
  Files                          599      642      +43     
  Lines                        36719    39495    +2776     
  Branches                      3780     4062     +282     
===========================================================
+ Hits                         31172    32620    +1448     
- Misses                        4916     6154    +1238     
- Partials                       631      721      +90     
Flag Coverage Δ
unittests 82.59% <93.61%> (-2.31%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-spec-specs Area: Specification—The Ethereum specification itself (eg. `src/ethereum/*`) A-tests Area: Consensus tests. C-feat Category: an improvement or new feature P-urgent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant