Skip to content

🚧 wip(test): EIP-7928: Block-level Access Lists #1823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Tests for [EIP-7928: Block-level Access Lists](https://eips.ethereum.org/EIPS/eip-7928)."""
44 changes: 44 additions & 0 deletions tests/unscheduled/eip7928_block-level_access_lists/spec.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
"""Reference spec for [EIP-7928: Block-level Access Lists.](https://eips.ethereum.org/EIPS/eip-7928)."""

from dataclasses import dataclass


@dataclass(frozen=True)
class ReferenceSpec:
"""Reference specification."""

git_path: str
version: str


ref_spec_7928 = ReferenceSpec(
git_path="EIPS/eip-7928.md",
version="35732baa14cfea785d9c58d5f18033392b7ed886",
)


@dataclass(frozen=True)
class Spec:
"""Constants and parameters from EIP-7928."""

# SSZ encoding is used for block access list data structures
BAL_ENCODING_FORMAT: str = "SSZ"

# Maximum limits for block access list data structures
TARGET_MAX_GAS_LIMIT = 600_000_000
MAX_TXS: int = 30_000
MAX_SLOTS: int = 300_000
MAX_ACCOUNTS: int = 300_000
# TODO: Use this as a function of the current fork.
MAX_CODE_SIZE: int = 24_576 # 24 KiB

# Type size constants
ADDRESS_SIZE: int = 20 # Ethereum address size in bytes
STORAGE_KEY_SIZE: int = 32 # Storage slot key size in bytes
STORAGE_VALUE_SIZE: int = 32 # Storage value size in bytes
HASH_SIZE: int = 32 # Hash size in bytes

# Numeric type limits
MAX_TX_INDEX: int = 2**16 - 1 # uint16 max value
MAX_BALANCE: int = 2**128 - 1 # uint128 max value
MAX_NONCE: int = 2**64 - 1 # uint64 max value
Loading