Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zellular-xyz/incredible-squaring-avs-js
- Owner: zellular-xyz
- Created: 2024-06-19T15:15:19.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-25T19:27:46.000Z (7 months ago)
- Last Synced: 2024-10-18T23:28:40.982Z (3 months ago)
- Language: Solidity
- Size: 10.7 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-avs - Incredible Squaring TypeScript
- awesome-avs - Incredible Squaring TypeScript
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
```