Deploy a new Factory

Once you have deployed a Factory through the FoF, you can deploy a new one.

This add function can only be used if you already are the host of at least one Factory deployed through the FoF.

function add(uint256[] calldata listPositions, bytes[][] calldata factoryBytecodes) external returns(address[][] memory factoryLists, uint256[][] memory factoryPositions);

The function takes as input:

  • uint256[] listPositions -> a list of positions

  • bytes[][] factoryBytecodes -> a list of list of bytecodes of Factories to be deployed

The function returns the list of addresses of the Factories deployed and the positions of the Factories, i.e. factoryPosition, within the listPosition.

Last updated