Welcome to the Hello World AVS fork with a vibe coded front end. Please see the video recording of this project here and the parent project here for more background.
- AVS consumer requests a "Hello World" message to be generated and signed.
- HelloWorld contract receives the request and emits a NewTaskCreated event for the request.
- All Operators who are registered to the AVS and has staked, delegated assets takes this request. Operator generates the requested message, hashes it, and signs the hash with their private key.
- Each Operator submits their signed hash back to the HelloWorld AVS contract.
- If the Operator is registered to the AVS and has the minimum needed stake, the submission is accepted.
That's it. This simple flow highlights some of the core mechanics of how AVSs work.
This section describes the tooling required for local development.
Install dependencies:
In terminal window #1, execute the following commands:
# Install npm packages
npm install
# Start local anvil chain
npm run start:anvil
Open a separate terminal window #2, execute the following commands
# Setup .env file
cp .env.example .env
cp contracts/.env.example contracts/.env
# Updates dependencies if necessary and builds the contracts
npm run build:forge
# Deploy the EigenLayer contracts
npm run deploy:core
# Deploy the Hello World AVS contracts
npm run deploy:hello-world
# (Optional) Update ABIs
npm run extract:abis
# Start the Operator application
npm run start:operator
Open a separate terminal window #3, execute the following commands
# Start the frontend
cd avs-frontend
npm install
npm start
For help and support deploying and modifying this repo for your AVS, please:
- Open a ticket via the intercom link at support.eigenlayer.xyz.
- Include the necessary troubleshooting information for your environment:
- Local anvil testing:
- Redeploy your local test using
--revert-strings debug
flag via the following commands and retest:npm run deploy:core-debug && npm run deploy:hello-world-debug
- Include the full stacktrace from your error as a .txt file attachment.
- Create a minimal repo that demonstrates the behavior (fork or otherwise)
- Steps require to reproduce issue (compile and cause the error)
- Redeploy your local test using
- Holesky testing:
- Ensure contracts are verified on Holesky. Eg
forge verify-contract --chain-id 17000 --num-of-optimizations 200 src/YourContract.sol:YourContract YOUR_CONTRACT_ADDRESS
- Send us your transaction hash where your contract is failing. We will use Tenderly to debug (adjust gas limit) and/or cast to re-run the transaction (eg
cast call --trace "trace_replayTransaction(0xTransactionHash)"
).
- Ensure contracts are verified on Holesky. Eg
If you're planning to build an AVS and would like to speak with a member of the EigenLayer DevRel team to discuss your ideas or architecture, please fill out this form and we'll be in touch shortly: EigenLayer AVS Intro Call
- This repo is meant currently intended for local anvil development testing. Holesky deployment support will be added shortly.
- Users who wish to build an AVS for Production purposes will want to migrate from the
ECDSAServiceManagerBase
implementation inHelloWorldServiceManager.sol
to a BLS style architecture using RegistryCoordinator.