Skip to content

Spec

Documentation for tests/prague/eip7702_eoa_code_tx/spec.py.

Defines EIP-7702 specification constants and functions.

Spec dataclass

Parameters from the EIP-7702 specifications as defined at https://eips.ethereum.org/EIPS/eip-7702

Source code in tests/prague/eip7702_eoa_code_tx/spec.py
20
21
22
23
24
25
26
27
28
29
@dataclass(frozen=True)
class Spec:
    """
    Parameters from the EIP-7702 specifications as defined at
    https://eips.ethereum.org/EIPS/eip-7702
    """

    SET_CODE_TX_TYPE = 0x04
    MAGIC = 0x05
    PER_AUTH_BASE_COST = 2500