Skip to content

a rust based AVS on EIGENLAYER, that listens for offchain compute requests on ETH and executes these functions in return of token rewards for computation

Notifications You must be signed in to change notification settings

askwhyharsh/function_layer_AVS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FunctionLayr

A service that listens to smart contract events and executes computational tasks.

References

Overview

IMAGE ALT TEXT

This service acts as an operator/validator that monitors smart contract events and performs requested computations. Currently supports JavaScript execution on Anvil networks, with more language support planned.

image

Now, for now the above works

later on, the experience of calling a function, will not require arURI or anything, it would be as easy as maybe

  • calling the name of the function,
  • providing the inputs
  • payment for the execution
  • number of responses (from validators, how many validotrs should submit the inference)

below is how we can create a registry of commonly used function, image

Prerequisites

  • Rust (for running the validator)
  • Node.js (for JavaScript execution)
  • Anvil (for local blockchain)

Getting Started

  1. Start an Anvil node:
anvil --chain-id 31337 --fork-url https://eth.drpc.org -p 3001
  1. Run the validator:
cargo run

The validator will now listen for computation requests from the smart contract and execute them automatically.

Current Features

  • Event monitoring for computation requests
  • JavaScript code execution

Contributing

I welcome contributions! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Follow the existing code style
  • Add tests for new features
  • Update documentation as needed
  • Ensure all tests pass before submitting PRs

Contact

twitter: @askwhyharsh

About

a rust based AVS on EIGENLAYER, that listens for offchain compute requests on ETH and executes these functions in return of token rewards for computation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published