Skip to main content

UniversalCreate2DeployerFromStore

Git Source

Title: UniversalCreate2DeployerFromStore

Author: 0xakita.eth

CREATE2 deployer using bytecode stored on-chain.

Used with UniversalBytecodeStore to keep calldata small.

State Variables

store

UniversalBytecodeStore public immutable store

Functions

constructor

constructor(address _store) ;

deploy

function deploy(bytes32 salt, bytes32 codeId, bytes calldata constructorArgs) external returns (address addr);

computeAddress

function computeAddress(bytes32 salt, bytes32 initCodeHash) external view returns (address);

Events

Deployed

event Deployed(address indexed addr, bytes32 indexed salt, bytes32 indexed codeId, bytes32 initCodeHash);

Errors

CodeNotFound

error CodeNotFound(bytes32 codeId);

DeployFailed

error DeployFailed();