Skip to main content

Module create3

Module create3 

Source
Expand description

CREATE3 deployment-address derivation.

CREATE3 makes a contract’s deployed address depend only on the deploying factory and a salt, independent of the contract’s init code. This module reproduces that derivation off-chain: it computes the CREATE2 proxy address the factory would create from (deployer, salt), then the CREATE address the proxy deploys to. This lets callers predict an address before a transaction is sent.

Constants§

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

Functions§

derive_create3_address
Derive CREATE3 deployment address for the universal factory implementation.
derive_universal_create3_address
Derive CREATE3 deployment address via the universal factory.