IOpenRelay

Git Source

Functions

GAS_BONUS

Returns the gas bonus

function GAS_BONUS() external view returns (uint256 _gasBonus);

Returns

NameTypeDescription
_gasBonusuint256The value of the gas bonus

GAS_MULTIPLIER

Returns the gas multiplier

function GAS_MULTIPLIER() external view returns (uint256 _gasMultiplier);

Returns

NameTypeDescription
_gasMultiplieruint256The value of the gas multiplier

BASE

Returns the base used for the payment calculation

function BASE() external view returns (uint32 _base);

Returns

NameTypeDescription
_baseuint32The value of the base

exec

Execute an automation vault which will execute the jobs and will manage the payment to the fee data receivers

The payment will be calculated on the basis of several variables like the gas spent, the base fee, the gas bonus and the gas multiplier

function exec(
  IAutomationVault _automationVault,
  IAutomationVault.ExecData[] calldata _execData,
  address _feeRecipient
) external;

Parameters

NameTypeDescription
_automationVaultIAutomationVaultThe automation vault that will be executed
_execDataIAutomationVault.ExecData[]The array of exec data
_feeRecipientaddressThe address of the fee recipient

Events

AutomationVaultExecuted

Emitted when an automation vault is executed

event AutomationVaultExecuted(
  address indexed _automationVault,
  address indexed _relayCaller,
  IAutomationVault.ExecData[] _execData,
  IAutomationVault.FeeData[] _feeData
);

Parameters

NameTypeDescription
_automationVaultaddressThe address of the automation vault
_relayCalleraddressThe address of the relay caller
_execDataIAutomationVault.ExecData[]The array of exec data
_feeDataIAutomationVault.FeeData[]The array of fee data

Errors

OpenRelay_NoExecData

Thrown when the exec data is empty

error OpenRelay_NoExecData();