Nexera-FiFactories
OrchestratorFactory
Extends: Ownable
The OrchestratorFactory is utilized to deploy and configure instances of the Orchestrator implementation contract within a single transaction.
Events
OrchestratorDeployed
Emitted when a new Orchestrator owned by owner is deployed at orchestrator address.
State Variables
orchestratorImplementation
Holds the address of the Orchestrator implementation contract.
executor
Holds the address of the default executor.
Functions
setOrchestratorImplementation
Sets the address of the Orchestrator implementation contract.
Only callable by the owner of this contract.
Parameters
| Name | Type | Description |
|---|---|---|
_orchestratorImplementation | address | The address to set as the Orchestrator implementation contract |
setExecutor
Sets the address of the default executor.
Only callable by the owner of this contract.
Parameters
| Name | Type | Description |
|---|---|---|
_executor | address | The address to set as the default executor |
deployOrchestrator
Deploys, initializes and configures a minimal proxy of the Orchestrator implementation contract.
Notes:
- Uses OZ Clones Library's
clonefunction for deployment - Configures the deployed instance by setting the default executor, and the provided whitelisted adapters and tokens
- Transfers ownership of the deployed instance to the caller of this function
Emitts an OrchestratorDeployed event.
Parameters
| Name | Type | Description |
|---|---|---|
whitelistedAdapters | address[] | An array of Adapters' addresses to be whitelisted in the deployed instance |
whitelistedTokens | address[] | An array of tokens' addresses to be whitelisted in the deployed instance |
Returns
| Name | Type | Description |
|---|---|---|
<none> | address | The address of the deployed Orchestrator instance |

