Skip to content

prototyp3-dev/frontend-web-cartesi

Repository files navigation

Cartesi frontend web

Cartesi Rollups version: 1.0.x

Features

With this project you can test some interactions with the Cartesi Rollups project:

  1. Metamask integration
  2. Send Inspect state Requests and Listing Reports response
  3. Sending Dapp Address with the DApp Relay
  4. Sending inputs
  5. Depositing Ether
  6. Depositing ERC20
  7. Depositing ERC721
  8. Depositing ERC1155 Single
  9. Depositing ERC1155 Batch
  10. Listing Notices
  11. Listing Reports
  12. Listing Vouchers
  13. Executing Vouchers

Configurtion

Edit src/config.json to set the testnet parameters and deployment, inspect, graphql, rpc addresses.

Available Scripts

In the project directory, run:

yarn
yarn codegen

to build the app.

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

Voucher Notes

To execute Vouchers, the voucher epoch must be finalized so the rollups framework generate the proofs. As a reminder, you can advance time in hardhat with the command:

curl --data '{"id":1337,"jsonrpc":"2.0","method":"evm_increaseTime","params":[864010]}' http://localhost:8545

Open in Gitpod