Skip to content

hyli-org/app-scaffold

Repository files navigation

Hyli App Scaffold

This repository provides a scaffold to build applications on the Hyli network using Risc0 contracts.

Architecture

The application follows a client-server model:

  • The frontend sends operation requests to the server.
  • The server handles transaction creation, proving, and submission.
  • All interactions are executed through the Hyli network.

Currently, only Risc0 contracts are supported.

Getting Started

Pre-requisites

1. Start the Hyli node

You can run the docker node and the wallet using

docker-compose up -d

This will launch a development-mode node and the wallet server and ui.

2. Start the server

From the root of this repository:

RISC0_DEV_MODE=1 cargo run -p server

This starts the backend service, which handles contract interactions and proofs.

3. Start the frontend

To navigate to the frontend directory and start the development server:

cd front
bun install
bun run dev

This runs the web interface for interacting with the Hyli network.

Development

Building Contracts

Contract ELF files are rebuilt automatically when changes are made.

For reproducible builds using Docker:

cargo build -p contracts --features build --features all

This ensures builds are consistent across environments.

If you want to build in non-reproducible mode (to test contract compilation):

cargo build -p contracts --features build --features all --features nonreproducible

For more details, refer to the Hyli documentation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5