Skip to content

Commit

Permalink
new(tests): EIP-7623: Add transaction validity tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Dec 9, 2024
1 parent 0e10497 commit 77a15b2
Show file tree
Hide file tree
Showing 3 changed files with 558 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/prague/eip7623_increase_calldata_cost/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""
abstract: Test [EIP-7623: Increase calldata cost](https://eips.ethereum.org/EIPS/eip-7623)
Tests for [EIP-7623: Increase calldata cost](https://eips.ethereum.org/EIPS/eip-7623).
"""
30 changes: 30 additions & 0 deletions tests/prague/eip7623_increase_calldata_cost/spec.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""
Defines EIP-7623 specification constants and functions.
"""

from dataclasses import dataclass


@dataclass(frozen=True)
class ReferenceSpec:
"""
Defines the reference spec version and git path.
"""

git_path: str
version: str


ref_spec_7623 = ReferenceSpec("EIPS/eip-7623.md", "9104d079c04737b1fec5f7150715f024d8028558")


# Constants
@dataclass(frozen=True)
class Spec:
"""
Parameters from the EIP-7623 specifications as defined at
https://eips.ethereum.org/EIPS/eip-7623
"""

STANDARD_TOKEN_COST = 4
TOTAL_COST_FLOOR_PER_TOKEN = 10
Loading

0 comments on commit 77a15b2

Please sign in to comment.