Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zellular-xyz/incredible-squaring-avs-js

EigenLayer Incredible Squaring in JavaScript
https://github.com/zellular-xyz/incredible-squaring-avs-js

Last synced: 2 months ago
JSON representation

EigenLayer Incredible Squaring in JavaScript

Awesome Lists containing this project

README

        

# Incredible Squaring AVS in Javascript

Do not use it in Production, testnet only.

A Javascript implementation of the EigenLayer [Incredible Squaring AVS](https://github.com/Layr-Labs/incredible-squaring-avs)

## Dependencies

1. Install [foundry](https://book.getfoundry.sh/getting-started/installation)
```
curl -L https://foundry.paradigm.xyz | bash
foundryup
```

2. Install [docker](https://docs.docker.com/get-docker/)

3. Build the contracts:
```
make build-contracts
```

4. NodeJs
5. Install required modules:
```
npm install
```

> [!TIP]
> This AVS employs the [eigensdk-js](https://github.com/zellular-xyz/eigensdk-js) to facilitate interaction with EigenLayer contracts and to aggregate BLS signatures.

## Running

This simple session illustrates the basic flow of the AVS. The makefile commands are hardcoded for a single operator, but it's however easy to create new operator config files, and start more operators manually (see the actual commands that the makefile calls).

Start anvil in a separate terminal:

```bash
make start-anvil-chain-with-el-and-avs-deployed
```

The above command starts a local anvil chain from a [saved state](./tests/anvil/avs-and-eigenlayer-deployed-anvil-state.json) with eigenlayer and incredible-squaring contracts already deployed (but no operator registered).

Start the aggregator:

```bash
make start-aggregator
```

Register the operator with eigenlayer and incredible-squaring, and then start the process:

```bash
make start-operator
```