Skip to main content

UNIVERSAL_CREATE3_FACTORY

Constant UNIVERSAL_CREATE3_FACTORY 

Source
pub const UNIVERSAL_CREATE3_FACTORY: Address;
Expand description

Address of the widely deployed CREATE3Factory (the ZeframLou / Solmate-style implementation, deterministically deployed cross-chain — e.g. by LiFi).

This is the canonical cross-chain address at which this factory has been deployed on many EVM networks. Its derivation salts as keccak256(abi.encodePacked(deployer, salt)) over the standard Solady/Solmate CREATE3 proxy init code whose hash is CREATE3_PROXY_INITCODE_HASH, which is what derive_universal_create3_address reproduces.

This is not pcaversaccio’s CreateX (0xba5Ed0...28ba5Ed). CreateX applies a guarded-salt transformation (permissioned-deploy / cross-chain-redeploy protection, chain-ID mixing) that differs from the plain keccak256(deployer, salt) used here, so this module does not predict CreateX deployment addresses.

Callers must verify the factory is actually deployed at this address on their target chain before relying on a derived address: if the factory is absent (or a chain hosts a different factory implementation), the derived address will not correspond to any real deployment.