Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1.7 KiB
1.7 KiB
CREATE3
Deterministic deployments agnostic to the initialization code.
Custom Errors
DeploymentFailed()
error DeploymentFailed()
Unable to deploy the contract.
Bytecode Constants
PROXY_INITCODE_HASH
bytes32 internal constant PROXY_INITCODE_HASH =
0x21c35dbe1b344a2488cf3321d6ce542f8e9f305544ff09e4993a62319a497c1f
Hash of the _PROXY_INITCODE.
Equivalent to keccak256(abi.encodePacked(hex"67363d3d37363d34f03d5260086018f3")).
CREATE3 Operations
deployDeterministic(bytes,bytes32)
function deployDeterministic(bytes memory initCode, bytes32 salt)
internal
returns (address deployed)
Deploys initCode deterministically with a salt.
Returns the deterministic address of the deployed contract,
which solely depends on salt.
deployDeterministic(uint256,bytes,bytes32)
function deployDeterministic(
uint256 value,
bytes memory initCode,
bytes32 salt
) internal returns (address deployed)
Deploys initCode deterministically with a salt.
The deployed contract is funded with value (in wei) ETH.
Returns the deterministic address of the deployed contract,
which solely depends on salt.
predictDeterministicAddress(bytes32)
function predictDeterministicAddress(bytes32 salt)
internal
view
returns (address deployed)
Returns the deterministic address for salt.
predictDeterministicAddress(bytes32,address)
function predictDeterministicAddress(bytes32 salt, address deployer)
internal
pure
returns (address deployed)
Returns the deterministic address for salt with deployer.