A service that listens to smart contract events and executes computational tasks.
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.

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,
- Rust (for running the validator)
- Node.js (for JavaScript execution)
- Anvil (for local blockchain)
- Start an Anvil node:
anvil --chain-id 31337 --fork-url https://eth.drpc.org -p 3001
- Run the validator:
cargo run
The validator will now listen for computation requests from the smart contract and execute them automatically.
- Event monitoring for computation requests
- JavaScript code execution
I welcome contributions! Here's how you can help:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- Follow the existing code style
- Add tests for new features
- Update documentation as needed
- Ensure all tests pass before submitting PRs
twitter: @askwhyharsh