IUtilityContract

Git Source

Inherits: IERC165

Author: Solidity University

This interface defines the functions and events for utility contracts.

Utility contracts should implement this interface to be compatible with the DeployManager.

Functions

initialize

Initializes the utility contract with the provided data

This function should be called by the DeployManager after deploying the contract

function initialize(bytes memory _initData) external returns (bool);

Parameters

NameTypeDescription
_initDatabytesThe initialization data for the utility contract

Returns

NameTypeDescription
<none>boolTrue if the initialization was successful

getDeployManager

function getDeployManager() external view returns (address);

Errors

DeployManagerCannotBeZero

Reverts if the deploy manager is not set or is invalid

error DeployManagerCannotBeZero();

NotDeployManager

error NotDeployManager();

FailedToDeployManager

error FailedToDeployManager();

AlreadyInitialized

error AlreadyInitialized();