IModuleFactory_v1.sol
Functions
reverter
Returns the address of the {InverterReverter_v1} contract.
Returns
Name | Type | Description |
---|---|---|
|
| reverterAddress Returns the address of the {InverterReverter_v1} contract. |
governor
Returns the {Governor_v1} contract address.
Returns
Name | Type | Description |
---|---|---|
|
| govnernorAddress Returns the address of the {Governor_v1} contract. |
createAndInitModule
Creates a module instance identified by given metadata
and initiates it.
Parameters
Name | Type | Description |
---|---|---|
|
| The module's |
|
| The {Orchestrator_v1} instance of the module. |
|
| The configData of the module. |
|
| The configData of the workflow. |
Returns
Name | Type | Description |
---|---|---|
|
| moduleProxyAddress Returns the address of the created module proxy. |
createModuleProxy
Creates a module proxy instance identified by given metadata
.
Parameters
Name | Type | Description |
---|---|---|
|
| The module's metadata. |
|
| The {Orchestrator_v1} instance of the module. |
|
| The configData of the workflow. |
Returns
Name | Type | Description |
---|---|---|
|
| Returns the address of the created module proxy. |
getBeaconAndId
Returns the {IInverterBeacon_v1} instance registered and the id
for given metadata
.
Parameters
Name | Type | Description |
---|---|---|
|
| The module's metadata. |
Returns
Name | Type | Description |
---|---|---|
|
| beacon The module's {IInverterBeacon_v1} instance registered. |
|
| id The metadata's id. |
getOrchestratorOfProxy
Returns the {Orchestrator_v1} address of a beacon proxy.
Parameters
Name | Type | Description |
---|---|---|
|
| The beacon proxy address. |
Returns
Name | Type | Description |
---|---|---|
|
| orchestratorAddress The corresponding {Orchestrator_v1} address for the provided proxy. |
registerMetadata
Registers metadata metadata
with {IInverterBeacon_v1} implementation beacon
.
Only callable by owner.
Parameters
Name | Type | Description |
---|---|---|
|
| The module's metadata. |
|
| The module's {IInverterBeacon_v1} instance. |
Events
MetadataRegistered
Event emitted when new beacon registered for metadata.
Parameters
Name | Type | Description |
---|---|---|
|
| The registered Metadata. |
|
| The registered Beacon. |
ModuleCreated
Event emitted when new module created for an {Orchestrator_v1}.
Parameters
Name | Type | Description |
---|---|---|
|
| The corresponding {Orchestrator_v1}. |
|
| The created module instance. |
|
| The registered metadata. |
GovernorSet
Event emitted when {Governor_v1} is set.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the {Governor_v1}. |
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