ICreate2Factory

Git Source

Author: Matter Labs

The contract that can be used for deterministic contract deployment.

Note: security-contact: security@matterlabs.dev

Functions

create2

Function that calls the create2 method of the ContractDeployer contract.

This function accepts the same parameters as the create2 function of the ContractDeployer system contract, so that we could efficiently relay the calldata.

function create2(
  bytes32, // _salt
  bytes32, // _bytecodeHash
  bytes calldata // _input
)
  external
  payable
  returns (address);

create2Account

Function that calls the create2Account method of the ContractDeployer contract.

This function accepts the same parameters as the create2Account function of the ContractDeployer system contract, so that we could efficiently relay the calldata.

function create2Account(
  bytes32, // _salt
  bytes32, // _bytecodeHash
  bytes calldata, // _input
  IContractDeployer.AccountAbstractionVersion // _aaVersion
) external payable returns (address);