Deployer

Git Source

State Variables

admin

address public admin;

pendingAdmin

address public pendingAdmin;

Functions

onlyAdmin

modifier onlyAdmin();

constructor

constructor(address _admin);

receive

receive() external payable;

setPendingAdmin

function setPendingAdmin(address newAdmin) external onlyAdmin;

saveEth

function saveEth() external;

setNewAdmin

function setNewAdmin(address _addr) external;

precompute

function precompute(bytes32 salt) external view returns (address);

create

function create(bytes32 salt, bytes memory code) external payable onlyAdmin returns (address);

acceptAdmin

function acceptAdmin() external;

Events

AdminSet

event AdminSet(address indexed _admin);

PendingAdminSet

event PendingAdminSet(address indexed _admin);

AdminAccepted

event AdminAccepted(address indexed _admin);

Errors

NotAuthorized

error NotAuthorized(address admin, address sender);