degenbot.contract.addresses =========================== .. py:module:: degenbot.contract.addresses .. autoapi-nested-parse:: Deterministic contract address derivation. Module Contents --------------- .. py:function:: create2_address(deployer: str | bytes, salt: bytes | str, init_code_hash: bytes | str) -> degenbot._ffi.ChecksummedAddress Generate the deterministic CREATE2 address. Given a deployer, salt, and the keccak hash of the contract creation (init) bytecode. Delegating shell over ``degenbot._ffi.create2_address`` — the derivation lives in the Rust ``degenbot_uniswap::create2`` module. .. rubric:: References - https://eips.ethereum.org/EIPS/eip-1014 - https://docs.openzeppelin.com/cli/2.8/deploying-with-create2 :returns: The computed value.