Tutorial: Deployment and Configuration of Automation Vault with Relays
automation vault
Step 1: Deployment of the Automation Vault
-
Deploy Automation Vault:
- Use the
AutomationVaultFactory
contract to deploy a new instance ofAutomationVault
. Make sure to provide the owner parameter.
- Use the
Step 2: Adding Balance to the Automation Vault
-
Transfer Funds to the Vault:
- Transfer the necessary funds to the automation vault to cover the costs associated with task execution. This could include ETH or ERC-20 tokens, depending on the protocol requirements.
Step 3: Approval of Callers and Relays
-
Approval of Callers:
- Use functions in the automation vault to approve specific callers that should have permissions to interact with the automation vault.
-
Approval of Relays:
- Ensure approval of relevant relays to be used for task execution. This might include relays such as
Keep3rRelay
,Keep3rBondedRelay
,GelatoRelay
, orOpenRelay
, depending on the protocol's needs.
- Ensure approval of relevant relays to be used for task execution. This might include relays such as
Step 4: Configuration of jobs and selectors
-
Approval of jobs:
- To enable task executions, you need to approve specific jobs that the automation vault will interact with and will be allowed.
-
Approval of selectors:
- Additionally, you need to approve specific function selectors for each approved job. This ensures that only designated functions within the approved jobs can be executed.
Step 5: Tracking and Monitoring
-
Tracking and Monitoring:
- Monitor task executions through emitted events and other relevant metrics.
With these steps, you should have a solid guide for a protocol to deploy its automation vault, configure necessary permissions and relays, add balance, and execute automated tasks.