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.
- cartesi-cli to build and run the DApp backend
- npm and json-schema-to-typescript to generate typescript interfaces
npm install -g json-schema-to-typescript --save - cartesi-client, an interface to cartesi rollups framework
- cartesapp, an high level framwork for python cartesi rollup app
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 therives-coreproject directory do:
make cartesi-rivDefine a .env file with some variables:
OPERATOR_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266Build backend with:
make buildHint: you can create .env.[ENV] files to define other enviroments, and then run:
make build-[ENV]Run the DApp environment with (this command runs cartesi run):
make runThen run the external verifier
make run-external-verifierTo run the backend in host mode and speedup the development process you should run the node in dev mode
make run-devObs: 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