Skip to main content

MCInitLib

Git Source

🎁 MC Initial Configuration 🌱 Init Bundle 🔗 Use Function 🪟 Use Facade 🏰 Setup Standard Functions

Functions

init


🌱 Init Bundle

function init(MCDevKit storage mc, string memory name) internal returns (MCDevKit storage);

init

function init(MCDevKit storage mc) internal returns (MCDevKit storage);

use


🔗 Use Function

function use(MCDevKit storage mc, string memory name, bytes4 selector, address implementation)
internal
returns (MCDevKit storage);

use

function use(MCDevKit storage mc, bytes4 selector, address implementation) internal returns (MCDevKit storage);

use

function use(MCDevKit storage mc, Function storage func) internal returns (MCDevKit storage);

use

function use(MCDevKit storage mc, string memory functionName) internal returns (MCDevKit storage);

useFacade


🪟 Use Facade

Assign facade address to current bundle

function useFacade(MCDevKit storage mc, address facade) internal returns (MCDevKit storage);

setupStdFunctions


🏰 Setup Standard Functions

function setupStdFunctions(MCDevKit storage mc) internal returns (MCDevKit storage);