Keeper as Performer
A Performer Keeper is responsible for executing tasks on the blockchain when predefined conditions are met. These keepers actively listen for job triggers, fetch dynamic arguments if required, execute transactions, and submit the results.
Responsibilities of a Performer Keeper:
Task Monitoring: Continuously listens for new tasks.
Fetching Arguments: If the task requires dynamic arguments, the keeper retrieves real-time data from external APIs or smart contracts.
Transaction Execution: Calls the target smart contract function with the required parameters.
Gas Management: Ensures the transaction is executed with the optimal gas fee to avoid failures or excessive costs.
Result Submission: After executing the task, the keeper submits the execution proof to the Aggregator node.
Workflow of a Performer Keeper:
Detects an available task from the TaskManager.
Decodes the function call and fetches required parameters.
If the task requires external data, it queries the API and processes the response.
Executes the function call on-chain using the retrieved or static arguments.
Submits proof of execution, including transaction details.
Example Scenario:
A DeFi protocol submits a job that requires swapping USDC to ETH when the price reaches a specific threshold.
The Performer Keeper monitors the USDC price, and once the condition is met, it executes the trade on a DEX.
The keeper then submits the transaction hash and execution details as proof.
Last updated