IAutomationVaultFactory
Functions
totalAutomationVaults
Get the total amount of automation vaults deployed by the factory
function totalAutomationVaults() external view returns (uint256 _totalAutomationVaults);
Returns
Name | Type | Description |
---|---|---|
_totalAutomationVaults | uint256 | The total amount of automation vaults deployed |
automationVaults
Get a certain amount of automation vaults deployed by the factory
function automationVaults(uint256 _startFrom, uint256 _amount) external view returns (address[] memory _list);
Parameters
Name | Type | Description |
---|---|---|
_startFrom | uint256 | Index from where to start retrieving automation vaults |
_amount | uint256 | Amount of automation vaults to retrieve |
Returns
Name | Type | Description |
---|---|---|
_list | address[] | The array of automation vaults |
deployAutomationVault
Deploy a new automation vault
function deployAutomationVault(
address _owner,
address _nativeToken,
uint256 _salt
) external returns (IAutomationVault _automationVault);
Parameters
Name | Type | Description |
---|---|---|
_owner | address | The address of the owner |
_nativeToken | address | The address of the native token |
_salt | uint256 | The salt to use for the automation vault deployment |
Returns
Name | Type | Description |
---|---|---|
_automationVault | IAutomationVault | The address of the automation vault deployed |
Events
DeployAutomationVault
Emitted when a new automation vault is deployed
event DeployAutomationVault(address indexed _owner, address indexed _automationVault);
Parameters
Name | Type | Description |
---|---|---|
_owner | address | The address of the owner |
_automationVault | address | The address of the automation vault deployed |
Errors
AutomationVaultFactory_Create2Failed
Thrown when the automation vault factory fails to deploy a new automation vault
error AutomationVaultFactory_Create2Failed();