Parameters from the EIP-7702 specifications as defined at
https://eips.ethereum.org/EIPS/eip-7702.
Source code in tests/prague/eip7702_set_code_tx/spec.py
| 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
REFUND_AUTH_PER_EXISTING_ACCOUNT = 12_500
AUTH_PER_EMPTY_ACCOUNT = 25_000
DELEGATION_DESIGNATION = Bytes("ef0100")
RESET_DELEGATION_ADDRESS = Address(0)
MAX_AUTH_CHAIN_ID = 2**256 - 1
MAX_NONCE = 2**64 - 1
@staticmethod
def delegation_designation(address: Address) -> Bytes:
"""Return delegation designation for the given address."""
return Bytes(Spec.DELEGATION_DESIGNATION + bytes(address))
|