IAutomationVaultFactory

Git Source

Functions

totalAutomationVaults

Get the total amount of automation vaults deployed by the factory

function totalAutomationVaults() external view returns (uint256 _totalAutomationVaults);

Returns

NameTypeDescription
_totalAutomationVaultsuint256The 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

NameTypeDescription
_startFromuint256Index from where to start retrieving automation vaults
_amountuint256Amount of automation vaults to retrieve

Returns

NameTypeDescription
_listaddress[]The array of automation vaults

deployAutomationVault

Deploy a new automation vault

function deployAutomationVault(
  address _owner,
  address _nativeToken,
  uint256 _salt
) external returns (IAutomationVault _automationVault);

Parameters

NameTypeDescription
_owneraddressThe address of the owner
_nativeTokenaddressThe address of the native token
_saltuint256The salt to use for the automation vault deployment

Returns

NameTypeDescription
_automationVaultIAutomationVaultThe 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

NameTypeDescription
_owneraddressThe address of the owner
_automationVaultaddressThe 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();