Define constants for EIP-7997: Deterministic Factory Contract.
Spec
dataclass
Constants from EIP-7997.
Source code in tests/amsterdam/eip7997_deterministic_factory_contract/spec.py
| @dataclass(frozen=True)
class Spec:
"""Constants from EIP-7997."""
FACTORY_ADDRESS: int = 0x4E59B44847B379578588920CA78FBF26C0B4956C
FACTORY_BYTECODE: Bytes = Bytes(
"7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0"
"3601600081602082378035828234f58015156039578182fd"
"5b8082525050506014600cf3"
)
SALT_SIZE: int = 32
"""The factory reads the salt from the first 32 bytes of calldata."""
|