Cartesi Rollups Node version: 2.0.x
With this project you can test some interactions with the Cartesi Rollups project:
- Metamask integration
- Send Inspect state Requests and Listing Reports response
- Sending L2 EIP-712 inputs
- Sending inputs
- Depositing Ether
- Depositing ERC20
- Depositing ERC721
- Depositing ERC1155 Single
- Depositing ERC1155 Batch
- Listing Notices
- Listing Reports
- Listing Vouchers
- TODO: Executing Vouchers
Edit src/config.json to set the testnet parameters and deployment, inspect, graphql, rpc addresses.
In the project directory, run:
yarn
yarn codegen
to build the app.
yarn dev --port 3000
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
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 -H "Content-Type: application/json" http://localhost:8545 -d '{"id":1337,"jsonrpc":"2.0","method":"anvil_mine","params":[7200]}'