Skip to content

Commit 77a15b2

Browse files
committed
new(tests): EIP-7623: Add transaction validity tests
1 parent 0e10497 commit 77a15b2

File tree

3 files changed

+558
-0
lines changed

3 files changed

+558
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""
2+
abstract: Test [EIP-7623: Increase calldata cost](https://eips.ethereum.org/EIPS/eip-7623)
3+
Tests for [EIP-7623: Increase calldata cost](https://eips.ethereum.org/EIPS/eip-7623).
4+
"""
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
"""
2+
Defines EIP-7623 specification constants and functions.
3+
"""
4+
5+
from dataclasses import dataclass
6+
7+
8+
@dataclass(frozen=True)
9+
class ReferenceSpec:
10+
"""
11+
Defines the reference spec version and git path.
12+
"""
13+
14+
git_path: str
15+
version: str
16+
17+
18+
ref_spec_7623 = ReferenceSpec("EIPS/eip-7623.md", "9104d079c04737b1fec5f7150715f024d8028558")
19+
20+
21+
# Constants
22+
@dataclass(frozen=True)
23+
class Spec:
24+
"""
25+
Parameters from the EIP-7623 specifications as defined at
26+
https://eips.ethereum.org/EIPS/eip-7623
27+
"""
28+
29+
STANDARD_TOKEN_COST = 4
30+
TOTAL_COST_FLOOR_PER_TOKEN = 10

0 commit comments

Comments
 (0)