Skip to content

Implement calldata cost floor (EIP-7623)#104

Open
mw2000 wants to merge 4 commits intomainfrom
issue-79
Open

Implement calldata cost floor (EIP-7623)#104
mw2000 wants to merge 4 commits intomainfrom
issue-79

Conversation

@mw2000
Copy link
Copy Markdown
Owner

@mw2000 mw2000 commented Apr 7, 2026

Summary

  • add Prague-gated calldata floor token helpers and hardfork activation for EIP-7623
  • enforce max(intrinsic_gas, calldata_floor_gas_cost) during transaction validation
  • floor final post-refund gas charges at the calldata minimum and cover the behavior with focused tests

Validation

  • mix format --check-formatted
  • mix compile --warnings-as-errors
  • mix credo --strict
  • mix test

Closes #79

mw2000 and others added 4 commits April 7, 2026 01:24
Implement the Prague calldata floor token math and activation flag so later validation and execution changes can share one source of truth for EIP-7623.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Expose calldata floor accounting alongside intrinsic gas calculation so Prague transactions can be evaluated against both standard intrinsic cost and the EIP-7623 floor.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Reject Prague transactions whose gas limit cannot satisfy the calldata floor, and keep the state-test runner aligned with the same hardfork-aware validation path.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Floor final gas charged after refund processing so Prague calldata-heavy transactions pay the EIP-7623 minimum without changing pre-Prague execution behavior.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement calldata cost floor (EIP-7623)

1 participant