Skip to content

Lay3rLabs/wavs-demos

Repository files navigation

WAVS Demo Services

Demos of WAVS Rust and Solidity services

Comprehensive demos for developing WAVS (WebAssembly AVS) applications using Rust and Solidity. This repo provides a pre-configured development environment with integrated testing frameworks for both Rust and Solidity components.

Demos

System Requirements

Core (Docker, Compose, Make, JQ, NodeJS v21+)

Docker

Docker Compose

  • MacOS: Already installed with Docker installer
  • Linux: sudo apt-get install docker-compose-v2
  • Compose Documentation

Make

JQ

Node.js

Rust v1.84+

Rust Installation

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

rustup toolchain install stable
rustup target add wasm32-wasip2

Upgrade Rust

# Remove old targets if present
rustup target remove wasm32-wasi || true
rustup target remove wasm32-wasip1 || true

# Update and add required target
rustup update stable
rustup target add wasm32-wasip2
Cargo Components

Install Cargo Components

# Install required cargo components
# https://github.com/bytecodealliance/cargo-component#installation
cargo install cargo-component warg-cli wkg --locked

# Configure default registry
wkg config --default-registry wa.dev