Eigenlayer SDK for building AVS
APACHE-2.0 License
eigensdk-rs
is a Rust SDK for interacting with Eigenlayer and building AVS tooling. Additionally, it incorporates features for interacting with Tangle and utilizing our gadget, an augmented SDK for building task based AVS. Together, these two offer a comprehensive solution for building applications with both Eigenlayer and Tangle. This SDK is a high-performance, reliable, and efficient library that integrates seamlessly with Eigenlayer's ecosystem while leveraging the many advantages of Rust.
It should be noted that this SDK is still being actively developed and has not undergone a professional audit. Please use at your own risk in production.
Clone the repository:
git clone https://github.com/webb-tools/eigensdk-rs/
cd eigensdk-rs
cargo build --release
or to use EigenSDK-RS in your own Rust project, just add the following dependency to your Cargo.toml
:
[dependencies]
eigensdk-rs = { git = "https://github.com/webb-tools/eigensdk-rs" }
To programmatically start an AVS operator:
let operator = Operator::new_from_config(
config,
http_provider,
ws_provider,
operator_info_service,
signer,
)
.await?;
operator.start().await?;
This repository both contains tests for the included AVSs and provides the tools necessary to test custom AVSs you build with this SDK.
To run the tests from the command line, you can run the following commands in the root directory:
./test-utils/scripts/build.sh
. ./test-utils/scripts/env_setup.sh
Incredible Squaring AVS
cargo test -p test-utils test_incredible_squaring_full
The full test starts a local Anvil testnet, deploys all the required contracts to it, and then starts an operator.
cargo build --release -p test-utils
Incredible Squaring AVS's Testnet
./target/release/incredible-squaring
To contribute:
Gadget is licensed under either of the following: