Update EIP-2780: Rework as resource-based intrinsic transaction gas#11645
Draft
misilva73 wants to merge 6 commits into
Draft
Update EIP-2780: Rework as resource-based intrinsic transaction gas#11645misilva73 wants to merge 6 commits into
misilva73 wants to merge 6 commits into
Conversation
Collaborator
|
✅ All reviewers have approved. |
|
Is it feasible to split the case of updating new balances into cold / warm? That means dividing |
gurukamath
reviewed
May 12, 2026
qu0b
reviewed
May 12, 2026
|
The commit c9a4075 (as a parent of 02f5961) contains errors. |
4 tasks
7 tasks
15 tasks
0a37332 to
588917e
Compare
Retitle and restructure around decomposing the flat 21,000 intrinsic cost into named primitives (TX_BASE_COST, COLD_ACCOUNT_ACCESS, TX_VALUE_COST, TRANSFER_LOG_COST) priced to actual resource usage, internalize state growth via STATE_BYTES_PER_NEW_ACCOUNT, and derive the values from client runtime benchmarks.
Contributor
Author
|
Tagging @benaadams and @gurukamath for a review |
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.
Reworks EIP-2780 from reducing the intrinsic cost into a resource-based decomposition of the
21,000base. The headline number is unchanged — it's just rebuilt from explicit primitives, each priced to the resource a transaction actually consumes (TX_BASE_COST + COLD_ACCOUNT_ACCESS + TX_VALUE_COST + TRANSFER_LOG_COST = 21,000for a standard value transfer).What changed
STATE_BYTES_PER_NEW_ACCOUNT × CPSBin state gas (EIP-8037).TX_BASE_COSTandTX_VALUE_COSTfitted from the EELS ether-transfer benchmark across all major ELs, per EIP-8038's method.