Eigenlayer Context
The EigenlayerContext
trait provides a standardized interface for interacting with Eigenlayer services and utilities in your Blueprint.
Overview
The EigenlayerContext
trait provides access to core Eigenlayer services:
- AVS Registry Reader/Writer - For interacting with the AVS registry contracts
- Operator Info Service - For managing operator information and state
- BLS Aggregation Service - For handling BLS signature aggregation
Using the Context
1. Define Your Context
First, define your context struct that implements the EigenlayerContext
trait:
2. Use the Context in Jobs
You can then use this context in your jobs to access Eigenlayer functionality:
3. Instantiate the Context
Finally, instantiate your context in your main runner: