CREATE3

Git Source

Authors: Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/CREATE3.sol), Modified from 0xSequence (https://github.com/0xSequence/create3/blob/master/contracts/Create3.sol)

Deploy to deterministic addresses without an initcode factor.

State Variables

PROXY_BYTECODE

bytes internal constant PROXY_BYTECODE = hex"67363d3d37363d34f03d5260086018f3";

PROXY_BYTECODE_HASH

bytes32 internal constant PROXY_BYTECODE_HASH = keccak256(PROXY_BYTECODE);

Functions

deploy

function deploy(bytes32 salt, bytes memory creationCode, uint256 value) internal returns (address deployed);

getDeployed

function getDeployed(bytes32 salt) internal view returns (address);