IUtilityContract
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
Name | Type | Description |
---|---|---|
_initData | bytes | The initialization data for the utility contract |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | True 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();