repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/cancun/eip6780_selfdestruct/test_dynamic_create2_selfdestruct_collision.py
tests/cancun/eip6780_selfdestruct/test_dynamic_create2_selfdestruct_collision.py
""" Suicide scenario requested test https://github.com/ethereum/execution-spec-tests/issues/381. """ from typing import Dict, Union import pytest from ethereum_test_forks import Cancun, Fork from ethereum_test_tools import ( Account, Address, Alloc, Block, BlockchainTestFiller, Bytecode, ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/cancun/eip6780_selfdestruct/test_selfdestruct_revert.py
tests/cancun/eip6780_selfdestruct/test_selfdestruct_revert.py
"""Tests for selfdestruct interaction with revert.""" from typing import Dict import pytest from ethereum_test_forks import Cancun from ethereum_test_tools import ( EOA, Account, Address, Alloc, Bytecode, Environment, Initcode, StateTestFiller, Storage, Transaction, comput...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/cancun/eip6780_selfdestruct/test_reentrancy_selfdestruct_revert.py
tests/cancun/eip6780_selfdestruct/test_reentrancy_selfdestruct_revert.py
"""Suicide scenario requested test https://github.com/ethereum/tests/issues/1325.""" from typing import SupportsBytes import pytest from ethereum_test_forks import Cancun, Fork from ethereum_test_tools import ( EOA, Account, Address, Alloc, Bytecode, Environment, StateTestFiller, Tran...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/cancun/eip6780_selfdestruct/conftest.py
tests/cancun/eip6780_selfdestruct/conftest.py
"""Pytest (plugin) definitions local to EIP-6780 tests.""" import pytest from ethereum_test_tools import Address, Alloc, Environment @pytest.fixture def env() -> Environment: """Environment for all tests.""" return Environment() @pytest.fixture def selfdestruct_recipient_address(pre: Alloc) -> Address: ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/cancun/eip6780_selfdestruct/__init__.py
tests/cancun/eip6780_selfdestruct/__init__.py
"""Tests for EIP-6780: SELFDESTRUCT only in same transaction."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/cancun/eip6780_selfdestruct/test_selfdestruct.py
tests/cancun/eip6780_selfdestruct/test_selfdestruct.py
""" SELFDESTRUCT only in same transaction tests. Tests for [EIP-6780: SELFDESTRUCT only in same transaction](https://eips.ethereum.org/EIPS/eip-6780). """ from itertools import cycle from typing import Dict, List import pytest from ethereum_test_forks import Cancun, Fork from ethereum_test_tools import ( EOA, ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
true
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/test_worst_memory.py
tests/benchmark/test_worst_memory.py
""" Tests that benchmark EVMs in the worst-case memory opcodes. """ from enum import auto import pytest from ethereum_test_base_types.base_types import Bytes from ethereum_test_benchmark.benchmark_code_generator import JumpLoopGenerator from ethereum_test_forks import Fork from ethereum_test_tools import ( Alloc...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/test_worst_bytecode.py
tests/benchmark/test_worst_bytecode.py
""" Tests that benchmark EVMs in worst-case opcode scenarios. """ import math import pytest from ethereum_test_benchmark.benchmark_code_generator import JumpLoopGenerator from ethereum_test_forks import Fork from ethereum_test_tools import ( Account, Alloc, BenchmarkTestFiller, Block, BlockchainT...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/conftest.py
tests/benchmark/conftest.py
"""Pytest configuration for benchmark tests.""" from pathlib import Path from typing import Any import pytest from ethereum_test_forks import Fork DEFAULT_BENCHMARK_FORK = "Prague" def pytest_generate_tests(metafunc: Any) -> None: """ Modify test generation to enforce default benchmark fork for benchmark ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/helpers.py
tests/benchmark/helpers.py
"""Helper functions for the EVM benchmark worst-case tests.""" from ethereum_test_forks import Fork from ethereum_test_tools import Bytecode from ethereum_test_vm import Opcodes as Op def code_loop_precompile_call(calldata: Bytecode, attack_block: Bytecode, fork: Fork) -> Bytecode: """Create a code loop that cal...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/test_worst_blocks.py
tests/benchmark/test_worst_blocks.py
""" Tests that benchmark EVMs in worst-case block scenarios. """ import math import random from typing import Generator, Tuple import pytest from ethereum_test_base_types import Account from ethereum_test_forks import Fork from ethereum_test_tools import ( AccessList, Address, Alloc, AuthorizationTup...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/test_worst_opcode.py
tests/benchmark/test_worst_opcode.py
""" Tests benchmark worst-case opcode scenarios. """ import pytest from ethereum_test_benchmark.benchmark_code_generator import JumpLoopGenerator from ethereum_test_tools import ( BenchmarkTestFiller, Bytecode, ) from ethereum_test_vm import Opcode from ethereum_test_vm import Opcodes as Op @pytest.mark.par...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/__init__.py
tests/benchmark/__init__.py
""" Benchmark tests for EVMs. Benchmark tests aim to maximize the usage of a specific opcode, precompile, or operation within a transaction or block. These can be executed against EVM implementations to ensure they handle pathological cases efficiently and correctly, allowing Ethereum to safely [Scale the L1](https://...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/test_worst_stateful_opcodes.py
tests/benchmark/test_worst_stateful_opcodes.py
""" Tests that benchmark EVMs for worst-case stateful opcodes. """ import math from enum import auto import pytest from ethereum_test_benchmark.benchmark_code_generator import ExtCallGenerator, JumpLoopGenerator from ethereum_test_forks import Fork from ethereum_test_specs import StateTestFiller from ethereum_test_s...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/test_worst_compute.py
tests/benchmark/test_worst_compute.py
""" Tests that benchmark EVMs in worst-case compute scenarios. """ import math import operator import random from enum import Enum, auto from typing import Any, Dict, cast import pytest from _pytest.mark import ParameterSet from py_ecc.bn128 import G1, G2, multiply from ethereum_test_base_types.base_types import Byt...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
true
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/stateful/conftest.py
tests/benchmark/stateful/conftest.py
"""Pytest configuration for state tests.""" from pathlib import Path from typing import Any import pytest DEFAULT_BENCHMARK_FORK = "Prague" def pytest_generate_tests(metafunc: Any) -> None: """ Add default valid_from marker to state tests without explicit fork specification. """ state_dir = Pat...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/stateful/__init__.py
tests/benchmark/stateful/__init__.py
"""Benchmark state tests package."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/stateful/bloatnet/test_single_opcode.py
tests/benchmark/stateful/bloatnet/test_single_opcode.py
""" abstract: BloatNet single-opcode benchmark cases for state-related operations. These tests focus on individual EVM opcodes (SLOAD, SSTORE) to measure their performance when accessing many storage slots across pre-deployed contracts. Unlike multi-opcode tests, these isolate single operations to benchmar...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/stateful/bloatnet/test_bloatnet.py
tests/benchmark/stateful/bloatnet/test_bloatnet.py
""" abstract: Tests benchmark worst-case bloatnet scenarios. Tests benchmark worst-case bloatnet scenarios. Tests running worst-case bloatnet scenarios for benchmarking purposes. """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/stateful/bloatnet/__init__.py
tests/benchmark/stateful/bloatnet/__init__.py
"""Bloatnet benchmark tests package."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/benchmark/stateful/bloatnet/test_multi_opcode.py
tests/benchmark/stateful/bloatnet/test_multi_opcode.py
""" abstract: BloatNet bench cases extracted from https://hackmd.io/9icZeLN7R0Sk5mIjKlZAHQ. The idea of all these tests is to stress client implementations to find out where the limits of processing are focusing specifically on state-related operations. """ import pytest from ethereum_test_forks import Fork...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/berlin/__init__.py
tests/berlin/__init__.py
"""Test cases for EVM functionality introduced in Berlin."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/berlin/eip2930_access_list/test_tx_intrinsic_gas.py
tests/berlin/eip2930_access_list/test_tx_intrinsic_gas.py
""" Tests [EIP-2930: Access list transaction](https://eips.ethereum.org/EIPS/eip-2930). Original test by Ori: https://github.com/ethereum/tests/blob/v15.0/src/GeneralStateTestsFiller/stEIP1559/intrinsicGen.js. """ from typing import List import pytest from ethereum_test_forks import Fork from ethereum_test_tools im...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/berlin/eip2930_access_list/spec.py
tests/berlin/eip2930_access_list/spec.py
"""Defines EIP-2930 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_2930 = ReferenceSpec("EIPS/eip-2930.md", "c9db53a936c5c9cbe2db32ba0d1b...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/berlin/eip2930_access_list/test_acl.py
tests/berlin/eip2930_access_list/test_acl.py
"""Test ACL Transaction Source Code Examples.""" from typing import List import pytest from ethereum_test_forks import Fork from ethereum_test_tools import ( AccessList, Account, Address, Alloc, CodeGasMeasure, Environment, Hash, StateTestFiller, Transaction, TransactionExcept...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/berlin/eip2930_access_list/__init__.py
tests/berlin/eip2930_access_list/__init__.py
""" Tests for [EIP-2930: Optional access lists](https://eips.ethereum.org/EIPS/eip-2930). """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/berlin/eip2929_gas_cost_increases/test_precompile_warming.py
tests/berlin/eip2929_gas_cost_increases/test_precompile_warming.py
""" Tests EIP-2929 precompile warming behavior. Tests precompile warming behavior across fork transitions from [EIP-2929: Gas cost increases for state access opcodes] (https://eips.ethereum.org/EIPS/eip-2929). """ from typing import Iterator, Tuple import pytest from ethereum_test_checklists import EIPChecklist...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/berlin/eip2929_gas_cost_increases/__init__.py
tests/berlin/eip2929_gas_cost_increases/__init__.py
""" Tests for [EIP-2929: Gas cost increases for state access opcodes](https://eips.ethereum.org/EIPS/eip-2929). """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/berlin/eip2929_gas_cost_increases/test_call.py
tests/berlin/eip2929_gas_cost_increases/test_call.py
"""Test the CALL opcode after EIP-2929.""" import pytest from ethereum_test_forks import Fork from ethereum_test_tools import ( Account, Alloc, CodeGasMeasure, Environment, StateTestFiller, Transaction, ) from ethereum_test_vm import Opcodes as Op REFERENCE_SPEC_GIT_PATH = "EIPS/eip-2929.md" ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/__init__.py
tests/osaka/__init__.py
""" Test cases for EVM functionality introduced in Osaka, [EIP-7607: Hardfork Meta - Fusaka](https://eip.directory/eips/eip-7607). """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7594_peerdas/spec.py
tests/osaka/eip7594_peerdas/spec.py
"""Defines EIP-7594 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_7594 = ReferenceSpec("EIPS/eip-7594.md", "45d03a84a8ad0160ed3fb03af52c...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7594_peerdas/test_max_blob_per_tx.py
tests/osaka/eip7594_peerdas/test_max_blob_per_tx.py
""" MAX_BLOBS_PER_TX limit tests. Tests for `MAX_BLOBS_PER_TX` limit in [EIP-7594: PeerDAS - Peer Data Availability Sampling](https://eips.ethereum.org/EIPS/eip-7594). """ import pytest from ethereum_test_forks import Fork from ethereum_test_tools import ( Address, Alloc, Block, BlockchainTestFiller,...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7594_peerdas/test_get_blobs.py
tests/osaka/eip7594_peerdas/test_get_blobs.py
""" Get blobs engine endpoint tests. Tests for get blobs engine endpoint in [EIP-7594: PeerDAS - Peer Data Availability Sampling](https://eips.ethereum.org/EIPS/eip-7594). """ from hashlib import sha256 from typing import List, Optional import pytest from ethereum_test_base_types.base_types import Hash from ethereu...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7594_peerdas/__init__.py
tests/osaka/eip7594_peerdas/__init__.py
""" Test suite for [EIP-7594: PeerDAS - Peer Data Availability Sampling](https://eips.ethereum.org/EIPS/eip-7594). """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7823_modexp_upper_bounds/spec.py
tests/osaka/eip7823_modexp_upper_bounds/spec.py
"""Defines EIP-7823 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_7823 = ReferenceSpec("EIPS/eip-7823.md", "c8321494fdfbfda52ad46c3515a7...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7823_modexp_upper_bounds/test_modexp_upper_bounds.py
tests/osaka/eip7823_modexp_upper_bounds/test_modexp_upper_bounds.py
""" Test [EIP-7823: Set upper bounds for MODEXP](https://eips.ethereum.org/EIPS/eip-7823). """ from typing import Dict import pytest from ethereum_test_checklists import EIPChecklist from ethereum_test_forks import Fork from ethereum_test_tools import ( Account, Alloc, Block, BlockchainTestFiller, ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7823_modexp_upper_bounds/conftest.py
tests/osaka/eip7823_modexp_upper_bounds/conftest.py
"""Conftest for EIP-7823 tests.""" from typing import Dict import pytest from ethereum_test_forks import Fork, Osaka from ethereum_test_tools import Account, Address, Alloc, Storage, Transaction, keccak256 from ethereum_test_types import Environment from ethereum_test_vm import Opcodes as Op from ...byzantium.eip19...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7823_modexp_upper_bounds/__init__.py
tests/osaka/eip7823_modexp_upper_bounds/__init__.py
""" Tests [EIP-7823: Set upper bounds for MODEXP](https://eips.ethereum.org/EIPS/eip-7823). Test cases for EIP-7823: Set upper bounds for MODEXP. """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7883_modexp_gas_increase/spec.py
tests/osaka/eip7883_modexp_gas_increase/spec.py
"""Defines EIP-7883 specification constants and functions.""" from dataclasses import dataclass from ...byzantium.eip198_modexp_precompile.helpers import ModExpInput @dataclass(frozen=True) class ReferenceSpec: """Defines the reference spec version and git path.""" git_path: str version: str ref_spec...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7883_modexp_gas_increase/conftest.py
tests/osaka/eip7883_modexp_gas_increase/conftest.py
"""Shared pytest definitions for EIP-7883 tests.""" from typing import Dict import pytest from ethereum_test_forks import Fork, Osaka from ethereum_test_tools import ( Account, Address, Alloc, Bytes, Environment, Storage, Transaction, keccak256, ) from ethereum_test_vm import Opcodes ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7883_modexp_gas_increase/helpers.py
tests/osaka/eip7883_modexp_gas_increase/helpers.py
"""Helper functions for the EIP-7883 ModExp gas cost increase tests.""" import os from typing import Annotated, Any, List import pytest from pydantic import BaseModel, ConfigDict, Field, PlainValidator, RootModel, TypeAdapter from pydantic.alias_generators import to_pascal from ethereum_test_tools import Bytes from...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7883_modexp_gas_increase/__init__.py
tests/osaka/eip7883_modexp_gas_increase/__init__.py
""" Tests for [EIP-7883: ModExp Gas Cost Increase](https://eips.ethereum.org/EIPS/eip-7883). """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7883_modexp_gas_increase/test_modexp_thresholds_transition.py
tests/osaka/eip7883_modexp_gas_increase/test_modexp_thresholds_transition.py
""" Test ModExp gas cost transition from EIP-7883 before & after the Osaka fork. """ import pytest from ethereum_test_checklists import EIPChecklist from ethereum_test_forks import Fork from ethereum_test_tools import Account, Alloc, Block, BlockchainTestFiller, Transaction, keccak256 from ethereum_test_vm import Opc...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7883_modexp_gas_increase/test_modexp_thresholds.py
tests/osaka/eip7883_modexp_gas_increase/test_modexp_thresholds.py
""" EIP-7883 ModExp gas cost increase tests. Tests for ModExp gas cost increase in [EIP-7883: ModExp Gas Cost Increase](https://eips.ethereum.org/EIPS/eip-7883). """ from typing import Dict, Generator import pytest from ethereum_test_checklists import EIPChecklist from ethereum_test_forks import Fork, Osaka from et...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7918_blob_reserve_price/spec.py
tests/osaka/eip7918_blob_reserve_price/spec.py
"""Defines EIP-7918 specification constants and functions.""" from dataclasses import dataclass # Base the spec on EIP-4844 which EIP-7918 extends from ...cancun.eip4844_blobs.spec import Spec as EIP4844Spec @dataclass(frozen=True) class ReferenceSpec: """Defines the reference spec version and git path.""" ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7918_blob_reserve_price/test_blob_reserve_price_with_bpo_transitions.py
tests/osaka/eip7918_blob_reserve_price/test_blob_reserve_price_with_bpo_transitions.py
"""Tests EIP-7918 on BPO fork transitions.""" from dataclasses import dataclass from typing import Iterator, List import pytest from ethereum_test_forks import BPO2ToBPO3AtTime15k, Fork from ethereum_test_tools import ( EOA, Address, Alloc, Block, BlockchainTestFiller, Environment, Hash, ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7918_blob_reserve_price/conftest.py
tests/osaka/eip7918_blob_reserve_price/conftest.py
""" Pytest (plugin) definitions local to EIP-7918 tests. Mostly a copy of `tests/cancun/eip4844_blobs/conftest.py`. """ import pytest from ethereum_test_forks import Fork from ethereum_test_tools import Environment from .spec import Spec @pytest.fixture def target_blobs_per_block(fork: Fork) -> int: """Return...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7918_blob_reserve_price/test_blob_base_fee.py
tests/osaka/eip7918_blob_reserve_price/test_blob_base_fee.py
""" [EIP-7918: Blob base fee bounded by execution cost](https://eips.ethereum.org/EIPS/eip-7918). Test the blob base fee reserve price mechanism for [EIP-7918: Blob base fee bounded by execution cost](https://eips.ethereum.org/EIPS/eip-7918). """ from typing import Dict, List import pytest from ethereum_test_forks...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7918_blob_reserve_price/__init__.py
tests/osaka/eip7918_blob_reserve_price/__init__.py
"""Cross-client EIP-7918 Tests."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7918_blob_reserve_price/test_blob_reserve_price_with_bpo.py
tests/osaka/eip7918_blob_reserve_price/test_blob_reserve_price_with_bpo.py
""" [EIP-7918: Blob base fee bounded by execution cost](https://eips.ethereum.org/EIPS/eip-7918). """ import pytest from ethereum_test_tools import ( Alloc, Block, BlockchainTestFiller, Environment, ) from .spec import ref_spec_7918 REFERENCE_SPEC_GIT_PATH = ref_spec_7918.git_path REFERENCE_SPEC_VE...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7825_transaction_gas_limit_cap/spec.py
tests/osaka/eip7825_transaction_gas_limit_cap/spec.py
"""Defines EIP-7825 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 # EIP-7825 reference specification ref_spec_7825 = ReferenceSpec("EIPS/eip-7825...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7825_transaction_gas_limit_cap/test_tx_gas_limit.py
tests/osaka/eip7825_transaction_gas_limit_cap/test_tx_gas_limit.py
""" Transaction gas limit cap tests. Tests for transaction gas limit cap in [EIP-7825: Transaction Gas Limit Cap](https://eips.ethereum.org/EIPS/eip-7825). """ from typing import List import pytest from ethereum_test_forks import Fork from ethereum_test_tools import ( AccessList, Account, Address, A...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7825_transaction_gas_limit_cap/__init__.py
tests/osaka/eip7825_transaction_gas_limit_cap/__init__.py
""" Tests [EIP-7825: Transaction Gas Limit Cap](https://eips.ethereum.org/EIPS/eip-7825). """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7825_transaction_gas_limit_cap/test_tx_gas_limit_transition_fork.py
tests/osaka/eip7825_transaction_gas_limit_cap/test_tx_gas_limit_transition_fork.py
""" Transaction gas limit cap fork transition tests. Tests for fork transition behavior in [EIP-7825: Transaction Gas Limit Cap](https://eips.ethereum.org/EIPS/eip-7825). """ import pytest from ethereum_test_checklists import EIPChecklist from ethereum_test_forks import Fork from ethereum_test_tools import ( Acc...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7939_count_leading_zeros/spec.py
tests/osaka/eip7939_count_leading_zeros/spec.py
"""Defines EIP-7939 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_7939 = ReferenceSpec("EIPS/eip-7939.md", "c8321494fdfbfda52ad46c3515a7...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7939_count_leading_zeros/test_count_leading_zeros.py
tests/osaka/eip7939_count_leading_zeros/test_count_leading_zeros.py
""" Tests [EIP-7939: Count leading zeros (CLZ)](https://eips.ethereum.org/EIPS/eip-7939). """ import pytest from ethereum_test_base_types import Storage from ethereum_test_checklists import EIPChecklist from ethereum_test_forks import Fork from ethereum_test_tools import ( Account, Alloc, AuthorizationTup...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7939_count_leading_zeros/__init__.py
tests/osaka/eip7939_count_leading_zeros/__init__.py
""" Tests [EIP-7939: Count leading zeros (CLZ) opcode](https://eips.ethereum.org/EIPS/eip-7939). """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7951_p256verify_precompiles/spec.py
tests/osaka/eip7951_p256verify_precompiles/spec.py
"""Defines EIP-7951 specification constants and functions.""" from dataclasses import dataclass from typing import Sized, SupportsBytes from ethereum_test_tools import Address, Bytes @dataclass(frozen=True) class ReferenceSpec: """Defines the reference spec version and git path.""" git_path: str versio...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7951_p256verify_precompiles/test_p256verify.py
tests/osaka/eip7951_p256verify_precompiles/test_p256verify.py
""" Tests for [EIP-7951: Precompile for secp256r1 Curve Support](https://eips.ethereum.org/EIPS/eip-7951). """ import pytest from ethereum_test_checklists import EIPChecklist from ethereum_test_tools import ( Address, Alloc, Environment, StateTestFiller, Storage, Transaction, compute_creat...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
true
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7951_p256verify_precompiles/conftest.py
tests/osaka/eip7951_p256verify_precompiles/conftest.py
"""Shared pytest definitions local to EIP-7951 tests.""" from typing import SupportsBytes import pytest from ethereum_test_forks import Fork from ethereum_test_tools import EOA, Address, Alloc, Bytecode, Storage, Transaction, keccak256 from ethereum_test_tools import Opcodes as Op from .spec import Spec @pytest.f...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7951_p256verify_precompiles/helpers.py
tests/osaka/eip7951_p256verify_precompiles/helpers.py
"""Helper functions for the EIP-7951 P256VERIFY precompiles tests.""" import os from typing import Annotated, Any, List import pytest from pydantic import BaseModel, BeforeValidator, ConfigDict, RootModel, TypeAdapter from pydantic.alias_generators import to_pascal def current_python_script_directory(*args: str) ->...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7951_p256verify_precompiles/test_p256verify_before_fork.py
tests/osaka/eip7951_p256verify_precompiles/test_p256verify_before_fork.py
""" Tests P256VERIFY precompiles of [EIP-7951: Precompile for secp256r1 Curve Support](https://eips.ethereum.org/EIPS/eip-7951). Tests P256VERIFY precompiles of [EIP-7951: Precompile for secp256r1 Curve Support](https://eips.ethereum.org/EIPS/eip-7951) before the Osaka hard fork is active. """ import pytest from eth...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7951_p256verify_precompiles/__init__.py
tests/osaka/eip7951_p256verify_precompiles/__init__.py
""" Tests [EIP-7951: Precompile for secp256r1 Curve Support](https://eips.ethereum.org/EIPS/eip-7951). """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7934_block_rlp_limit/spec.py
tests/osaka/eip7934_block_rlp_limit/spec.py
"""Defines EIP-7934 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_7934 = ReferenceSpec("EIPS/eip-7934.md", "2e5cc824089bab8d04aee598708e...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7934_block_rlp_limit/conftest.py
tests/osaka/eip7934_block_rlp_limit/conftest.py
"""Fixtures for the EIP-7934 RLP block size limit tests.""" import pytest from ethereum_test_tools import ( Address, Alloc, ) from ethereum_test_types import Environment from ethereum_test_vm import Opcodes as Op @pytest.fixture def post() -> Alloc: """Post state allocation fixture.""" return Alloc(...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7934_block_rlp_limit/test_max_block_rlp_size.py
tests/osaka/eip7934_block_rlp_limit/test_max_block_rlp_size.py
""" Tests for [EIP-7934: RLP Execution Block Size Limit](https://eips.ethereum.org/EIPS/eip-7934). """ from functools import lru_cache from typing import List, Tuple import pytest from ethereum_test_base_types import Address, HexNumber, ZeroPaddedHexNumber from ethereum_test_checklists import EIPChecklist from ether...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/osaka/eip7934_block_rlp_limit/__init__.py
tests/osaka/eip7934_block_rlp_limit/__init__.py
""" Tests for [EIP-7934: RLP Execution Block Size Limit](https://eips.ethereum.org/EIPS/eip-7934). """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/constantinople/__init__.py
tests/constantinople/__init__.py
"""Test cases for EVM functionality introduced in Constantinople."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/constantinople/eip145_bitwise_shift/spec.py
tests/constantinople/eip145_bitwise_shift/spec.py
"""Defines EIP-145 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_145 = ReferenceSpec("EIPS/eip-145.md", "be0aca3e57f1eeb8ae265e58da6e2df...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/constantinople/eip145_bitwise_shift/test_shift_combinations.py
tests/constantinople/eip145_bitwise_shift/test_shift_combinations.py
"""Test bitwise shift opcodes in different combinations.""" import itertools from typing import Callable import pytest from ethereum_test_tools import ( Account, Alloc, StateTestFiller, Storage, Transaction, ) from ethereum_test_tools import Opcodes as Op from .spec import Spec, ref_spec_145 RE...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/constantinople/eip145_bitwise_shift/__init__.py
tests/constantinople/eip145_bitwise_shift/__init__.py
""" Test [EIP-145: Bitwise shifting instructions in EVM](https://eips.ethereum.org/EIPS/eip-145). """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/constantinople/eip1014_create2/spec.py
tests/constantinople/eip1014_create2/spec.py
"""Defines EIP-1014 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_1014 = ReferenceSpec("EIPS/eip-1014.md", "31d4d62ec1dfc9f2bb26ca648f05...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/constantinople/eip1014_create2/test_recreate.py
tests/constantinople/eip1014_create2/test_recreate.py
"""Test Account Self-destruction and Re-creation.""" import pytest from ethereum_test_forks import Fork from ethereum_test_tools import ( Account, Alloc, Block, BlockchainTestFiller, Initcode, Transaction, compute_create2_address, ) from ethereum_test_tools import Opcodes as Op from .spec...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/constantinople/eip1014_create2/test_create_returndata.py
tests/constantinople/eip1014_create2/test_create_returndata.py
""" Return data management around create2 Port call_outsize_then_create2_successful_then_returndatasizeFiller.json test Port call_then_create2_successful_then_returndatasizeFiller.json test. """ import pytest from ethereum_test_tools import Account, Alloc, StateTestFiller, Transaction, keccak256 from ethereum_test_to...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/constantinople/eip1014_create2/__init__.py
tests/constantinople/eip1014_create2/__init__.py
""" Tests for [EIP-1014: Skinny CREATE2](https://eips.ethereum.org/EIPS/eip-1014). """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/paris/__init__.py
tests/paris/__init__.py
"""Test cases for EVM functionality introduced in Paris (Merge)."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/paris/security/__init__.py
tests/paris/security/__init__.py
"""Ethereum execution client tests related to security issues."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/paris/security/test_selfdestruct_balance_bug.py
tests/paris/security/test_selfdestruct_balance_bug.py
""" Tests the Consensus Flaw During Block Processing related to SELFDESTRUCT. Tests the consensus-vulnerability reported in [go-ethereum/security/advisories/GHSA-xw37-57qp-9mm4](https://github.com/ethere um/go-ethereum/security/advisories/GHSA-xw37-57qp-9mm4). To reproduce the issue with this test case: 1. Fill the ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/paris/eip7610_create_collision/__init__.py
tests/paris/eip7610_create_collision/__init__.py
"""Cross-client Create Collision Tests."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/paris/eip7610_create_collision/test_initcollision.py
tests/paris/eip7610_create_collision/test_initcollision.py
""" Test collision in CREATE/CREATE2 account creation, where the existing account only has a non-zero storage slot set. """ import pytest from ethereum_test_tools import ( Account, Alloc, Bytecode, Initcode, StateTestFiller, Transaction, compute_create_address, ) from ethereum_test_tools i...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/homestead/__init__.py
tests/homestead/__init__.py
"""Test cases for EVM functionality introduced in Homestead."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/homestead/identity_precompile/test_identity.py
tests/homestead/identity_precompile/test_identity.py
"""abstract: EIP-2: Homestead Identity Precompile Test Cases.""" import pytest from ethereum_test_tools import ( Account, Alloc, Environment, StateTestFiller, Transaction, keccak256, ) from ethereum_test_tools import Opcodes as Op @pytest.mark.with_all_call_opcodes() @pytest.mark.valid_from(...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/homestead/identity_precompile/__init__.py
tests/homestead/identity_precompile/__init__.py
"""abstract: EIP-2: Homestead Precompile Identity Test Cases."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/homestead/coverage/test_coverage.py
tests/homestead/coverage/test_coverage.py
""" Tests that address coverage gaps that result from updating `ethereum/tests` into EEST tests. """ import pytest from ethereum_test_forks import Cancun, Fork from ethereum_test_tools import Alloc, Environment, StateTestFiller, Transaction from ethereum_test_vm import Opcodes as Op REFERENCE_SPEC_GIT_PATH = "N/A" R...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/homestead/coverage/__init__.py
tests/homestead/coverage/__init__.py
"""Tests that fill coverage gaps when porting over from `ethereum/tests`."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/homestead/yul/__init__.py
tests/homestead/yul/__init__.py
"""Tests using Yul source for contracts."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/frontier/__init__.py
tests/frontier/__init__.py
"""Test cases for EVM functionality introduced in Frontier."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/frontier/identity_precompile/test_identity.py
tests/frontier/identity_precompile/test_identity.py
"""Test identity precompile output size.""" from typing import Tuple import pytest from ethereum_test_base_types.composite_types import Storage from ethereum_test_tools import ( Account, Alloc, Environment, StateTestFiller, Transaction, ) from ethereum_test_tools import Opcodes as Op from .commo...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/frontier/identity_precompile/common.py
tests/frontier/identity_precompile/common.py
"""Common utilities for the Identity Precompile tests.""" from dataclasses import dataclass from typing import Tuple from pydantic import BaseModel from ethereum_test_base_types.composite_types import Storage from ethereum_test_tools import ( Bytecode, ) from ethereum_test_tools import Opcodes as Op @dataclass...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/frontier/identity_precompile/conftest.py
tests/frontier/identity_precompile/conftest.py
"""Pytest (plugin) definitions local to Identity precompile tests.""" import pytest @pytest.fixture def tx_gas_limit() -> int: """Return the gas limit for transactions.""" return 365_224
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/frontier/identity_precompile/test_identity_returndatasize.py
tests/frontier/identity_precompile/test_identity_returndatasize.py
"""Test identity precompile output size.""" import pytest from ethereum_test_base_types.composite_types import Storage from ethereum_test_tools import ( Account, Alloc, Environment, StateTestFiller, Transaction, ) from ethereum_test_tools import Opcodes as Op from .common import Constants @pyte...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/frontier/identity_precompile/__init__.py
tests/frontier/identity_precompile/__init__.py
"""Test for precompiles that apply for all forks starting from Frontier."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/frontier/scenarios/common.py
tests/frontier/scenarios/common.py
"""Define Scenario structures and helpers for test_scenarios test.""" from abc import abstractmethod from dataclasses import dataclass from enum import Enum from ethereum_test_forks import Fork, Frontier from ethereum_test_tools import Address, Alloc, Bytecode, Conditional, MemoryVariable from ethereum_test_vm import...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/frontier/scenarios/test_scenarios.py
tests/frontier/scenarios/test_scenarios.py
""" Call every possible opcode and test that the subcall is successful if the opcode is supported by the fork and fails otherwise. """ from typing import List import pytest from ethereum_test_forks import Fork from ethereum_test_tools import ( Account, Address, Alloc, Block, BlockchainTestFiller,...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/frontier/scenarios/__init__.py
tests/frontier/scenarios/__init__.py
"""Scenarios common import."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/frontier/scenarios/scenarios/create_combinations.py
tests/frontier/scenarios/scenarios/create_combinations.py
"""Define Scenario that will put a given program in create contexts.""" from dataclasses import dataclass from typing import List from ethereum_test_tools import Alloc, Bytecode from ethereum_test_types import compute_create_address from ethereum_test_vm import EVMCodeType, Opcode from ethereum_test_vm import Macros ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/frontier/scenarios/scenarios/revert_combinations.py
tests/frontier/scenarios/scenarios/revert_combinations.py
"""Define Scenario that will run a given program and then revert.""" from typing import List from ethereum_test_vm import Macro, Opcode from ethereum_test_vm import Macros as Om from ethereum_test_vm import Opcodes as Op from ..common import Scenario, ScenarioEnvironment, ScenarioGeneratorInput def scenarios_rever...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/frontier/scenarios/scenarios/double_call_combinations.py
tests/frontier/scenarios/scenarios/double_call_combinations.py
"""Define Scenario that will run a given program and then revert.""" from typing import List from ethereum_test_tools import Bytecode, Conditional from ethereum_test_tools import Macros as Om from ethereum_test_tools import Opcodes as Op from ..common import Scenario, ScenarioEnvironment, ScenarioGeneratorInput de...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/frontier/scenarios/scenarios/call_combinations.py
tests/frontier/scenarios/scenarios/call_combinations.py
"""Define Scenario that will put a given program in all call contexts.""" from dataclasses import dataclass from typing import List from ethereum_test_tools import Address, Alloc from ethereum_test_vm import EVMCodeType, Opcode from ethereum_test_vm import Opcodes as Op from ..common import Scenario, ScenarioEnviron...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/frontier/scenarios/scenarios/__init__.py
tests/frontier/scenarios/scenarios/__init__.py
"""Scenarios common import."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false