Skip to content

Repository files navigation

RIVES CORE

Cartesi Rollups Node version: 1.5.x (cartesi cli version 0.15.x)

The RiscV Entertainment System (RIVES) CORE allows users to play riscv-binaries of games on a RISC-v Cartesi Machine on the browser, submit the game moves onchain so the session will be replayed a Cartesi Rollups App to generate a provable score. Naturally you can upload you own games.

DISCLAIMERS

For now, this is not a final product and should not be used as one.

Requirements

To build the DApp, two images are also required: riv/toolchain and castesi/sdk:<version>-riv.

  • To generate riv/toolchain, clone RIV repository and in its directory do:
make toolchain
  • To generate castesi/sdk:<version>-riv, in the rives-core project directory do:
make cartesi-riv

Building

Define a .env file with some variables:

OPERATOR_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266

Build backend with:

make build

Hint: you can create .env.[ENV] files to define other enviroments, and then run:

make build-[ENV]

Running

Run the DApp environment with (this command runs cartesi run):

make run

Then run the external verifier

make run-external-verifier

Running Backend in the host

To run the backend in host mode and speedup the development process you should run the node in dev mode

make run-dev

Obs: you should define the following variables in .env file: RIVEMU_PATH, OPERATOR_ADDRESS, and ROLLUP_HTTP_SERVER_URL

Obs: you can find the sources for rivemu here

About

RIVES backend node

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages