DiamondFactory

Git Source

Inherits: IDiamondFactory, DiamondFactoryBase

Factory that deploys new diamonds. NOTE: This contract is structured so that it can be a facet itself.

Functions

createDiamond

Deployes a new diamond proxy and applies an initial diamond cut.

function createDiamond(Diamond.InitParams calldata initParams) external returns (address diamond);

Parameters

NameTypeDescription

initParams

Diamond.InitParams

Struct containing the initial diamond cut params.