Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
f284fe5
feat(fork): Create amsterdam fork using new fork tool
fselmo Aug 21, 2025
a232a9a
bal specs
nerolation Jul 1, 2025
b6aecd7
bal tests
nerolation Jul 1, 2025
ebb8957
bal tests 2
nerolation Jul 2, 2025
e5f68ec
six ssz types
nerolation Jul 2, 2025
803e724
ssz encoding and bal validation
nerolation Jul 8, 2025
5f03a8f
update BAL format
nerolation Jul 21, 2025
7ceb6fd
address comments
nerolation Jul 23, 2025
02da4dc
remove redundent code comments
nerolation Jul 23, 2025
69351b2
add markdown docstrings
nerolation Jul 23, 2025
1857dfb
add system contract logic
nerolation Aug 1, 2025
53cb39e
Update EIP-7928 implementation: system contracts at index 0, migrate …
nerolation Aug 19, 2025
2e407b0
move away from method-style
nerolation Aug 20, 2025
1cfda15
bytes to uint
nerolation Aug 20, 2025
a1e382b
bal -> block_access_list; re-add custom rlp encoding for block access…
nerolation Aug 20, 2025
861c50b
fix(bals-tx-index): Track bal indexes in t8n
fselmo Aug 20, 2025
bc8494d
refactor(bals): Clean up BAL module types and imports
fselmo Aug 20, 2025
a8dde8a
chore(bals): Remove unused SSZ utils.py
fselmo Aug 20, 2025
8d4d46e
chore: point to working eest branch
fselmo Aug 20, 2025
a3b39a8
refactor(bal): Send the full bal object and bal_hash over t8n
fselmo Aug 20, 2025
a9b72d7
chore(lint): Fix lint issues
fselmo Aug 21, 2025
4474281
chore(forks): Move bals from Osaka to Amsterdam
fselmo Aug 21, 2025
575f645
chore(lint,tests): Fix tests after moving bal from osaka -> amsterdam
fselmo Aug 21, 2025
87183fb
fix(amsterdam): Add change tracker to state test in t8n
fselmo Aug 21, 2025
dc22ffa
refactor(bal): Send BAL as a list over t8n tool
fselmo Aug 22, 2025
b9b3ef3
chore(lint): fix issues from running ``tox -e static`` locally
fselmo Aug 25, 2025
7e45868
chore(tests): Attempt to resolve issues with CI tests
fselmo Aug 25, 2025
4a234fc
Fix bug in tracker
fselmo Aug 27, 2025
1602a94
chore(lint): Fix 'tox -e static' issues
fselmo Aug 27, 2025
cbf3b9a
fix(setuptools): Update packages to include amsterdam
fselmo Aug 27, 2025
7eab0c0
chore(forks): Fix issues from lint after rebase with Osaka latest
fselmo Aug 27, 2025
39dcb41
feat(fork criteria): Index upcoming forks for better ordering / fix i…
fselmo Aug 27, 2025
65c63b1
fix(t8n): Only initialize the bal_change_tracker for amsterdam
fselmo Aug 29, 2025
a5c7b29
fix(docs): Fix issues with toxenvs: lint, doc, json_infra
fselmo Aug 29, 2025
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
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,13 @@ packages = [
"ethereum.osaka.vm.instructions",
"ethereum.osaka.vm.precompiled_contracts",
"ethereum.osaka.vm.precompiled_contracts.bls12_381",
"ethereum.amsterdam",
"ethereum.amsterdam.block_access_lists",
"ethereum.amsterdam.utils",
"ethereum.amsterdam.vm",
"ethereum.amsterdam.vm.instructions",
"ethereum.amsterdam.vm.precompiled_contracts",
"ethereum.amsterdam.vm.precompiled_contracts.bls12_381",
]

[tool.setuptools.package-data]
Expand Down Expand Up @@ -488,6 +495,9 @@ ignore = [
"src/ethereum_spec_tools/evm_tools/t8n/evm_trace.py" = [
"N815" # The traces must use camel case in JSON property names
]
"src/ethereum/amsterdam/blocks.py" = [
"E501" # Line too long - needed for long ref links
]

[tool.ruff.lint.mccabe]
# Set the maximum allowed cyclomatic complexity. C901 default is 10.
Expand Down
7 changes: 7 additions & 0 deletions src/ethereum/amsterdam/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""
The Amsterdam fork.
"""

from ethereum.fork_criteria import Unscheduled

FORK_CRITERIA = Unscheduled(order_index=1) # scheduled after Osaka
51 changes: 51 additions & 0 deletions src/ethereum/amsterdam/block_access_lists/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
"""
Block Access Lists (EIP-7928) implementation for Ethereum Amsterdam fork.
"""

from .builder import (
BlockAccessListBuilder,
add_balance_change,
add_code_change,
add_nonce_change,
add_storage_read,
add_storage_write,
add_touched_account,
build,
)
from .rlp_utils import (
compute_block_access_list_hash,
rlp_encode_block_access_list,
validate_block_access_list_against_execution,
)
from .tracker import (
StateChangeTracker,
set_transaction_index,
track_address_access,
track_balance_change,
track_code_change,
track_nonce_change,
track_storage_read,
track_storage_write,
)

__all__ = [
"BlockAccessListBuilder",
"StateChangeTracker",
"add_balance_change",
"add_code_change",
"add_nonce_change",
"add_storage_read",
"add_storage_write",
"add_touched_account",
"build",
"compute_block_access_list_hash",
"set_transaction_index",
"rlp_encode_block_access_list",
"track_address_access",
"track_balance_change",
"track_code_change",
"track_nonce_change",
"track_storage_read",
"track_storage_write",
"validate_block_access_list_against_execution",
]
Loading
Loading