This project was bootstrapped with Create React App.
With this project you can test some interactions with the Cartesi Rollups project:
- Metamask integration
- Send Inspect state Requests and Listing Reports response
- Sending inputs
- Listing Notices
- Listing Reports
- Depositing Ether
- Depositing ERC20
- Listing Vouchers
- Executing Vouchers
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.
Edit useRollups.tsx to set you deployments address in testnets (rollupsAddress variable) or set up the environment to connect to hardhat (uncomment)
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