FrameFactory
Functions
setLibraryAddress
Sets the library address for the factory.
Parameters
_libraryAddress
address
The instance of Frame.sol to use
createFrameWithSource
Deploys a new Frame contract, initializes it, sets its name, and locks the source FrameDataStore.
Parameters
_frameDataStoreFactory
IFrameDataStoreFactory
The FrameDataStoreFactory contract to use to create the Frame's new source data store
_deps
IFrame.Asset[]
An array of dependencies to import, including the Frame's source, in the order they will be rendered to the page
_newData
bytes[]
An array of new data to deploy
_pageWrapStore
address
A FrameDataStore which contains wrappers to construct the html page container
_renderMap
uint256[4][]
_name
string
A name for the Frame
Return Values
address
The new Frame's address
Last updated