Skip to content

zellular-xyz/incredible-squaring-avs-js

Repository files navigation

Incredible Squaring AVS in Javascript

Do not use it in Production, testnet only.

A Javascript implementation of the EigenLayer Incredible Squaring AVS

Dependencies

  1. Install foundry
curl -L https://foundry.paradigm.xyz | bash
foundryup
  1. Install docker

  2. Build the contracts:

make build-contracts
  1. NodeJs
  2. Install required modules:
npm install

Tip

This AVS employs the 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:

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

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

Start the aggregator:

make start-aggregator

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

make start-operator