IModuleFactory_v1.sol
Functions
reverter
Returns the address of the {InverterReverter_v1} contract.
Returns
<none>
address
governor
Returns the {Governor_v1} contract address.
Returns
<none>
address
createAndInitModule
Creates a module instance identified by given metadata
and initiates it.
Parameters
metadata
IModule_v1.Metadata
The module's metadata
.
orchestrator
IOrchestrator_v1
configData
bytes
The configData of the module.
workflowConfig
IOrchestratorFactory_v1.WorkflowConfig
The configData of the workflow.
Returns
<none>
address
moduleProxyAddress Returns the address of the created module proxy.
createModuleProxy
Creates a module proxy instance identified by given metadata
.
Parameters
metadata
IModule_v1.Metadata
The module's metadata.
orchestrator
IOrchestrator_v1
workflowConfig
IOrchestratorFactory_v1.WorkflowConfig
The configData of the workflow.
Returns
<none>
address
Returns the address of the created module proxy.
getBeaconAndId
Returns the {IInverterBeacon_v1} instance registered and the id
for given metadata
.
Parameters
metadata
IModule_v1.Metadata
The module's metadata.
Returns
<none>
IInverterBeacon_v1
<none>
bytes32
id The metadata's id.
getOrchestratorOfProxy
Returns the {Orchestrator_v1} address of a beacon proxy.
Parameters
proxy
address
The beacon proxy address.
Returns
<none>
address
registerMetadata
Registers metadata metadata
with {IInverterBeacon_v1} implementation beacon
.
Only callable by owner.
Parameters
metadata
IModule_v1.Metadata
The module's metadata.
beacon
IInverterBeacon_v1
Events
MetadataRegistered
Event emitted when new beacon registered for metadata.
Parameters
metadata
IModule_v1.Metadata
The registered Metadata.
beacon
IInverterBeacon_v1
The registered Beacon.
ModuleCreated
Event emitted when new module created for an {Orchestrator_v1}.
Parameters
orchestrator
address
module
address
The created module instance.
metadata
IModule_v1.Metadata
The registered metadata.
GovernorSet
Event emitted when {Governor_v1} is set.
Parameters
governor
address
Errors
ModuleFactory__InvalidMetadata
Given metadata invalid.
ModuleFactory__InvalidInitialRegistrationData
Given metadata invalid.
ModuleFactory__InvalidInverterBeacon
Given beacon invalid.
ModuleFactory__UnregisteredMetadata
Given metadata unregistered.
ModuleFactory__MetadataAlreadyRegistered
Given metadata already registered.
ModuleFactory__ModuleIsSunset
Given module version is sunset.
Last updated