- This is a PoC demo showcasing the management of DAO deposits through the use of a new transaction building protocol named CoBuild.
- There's a preview deployed to the testnet, have fun.
This PoC shows how CoBuild works with type scripts and lock scripts that only support WitnessArgs layout.
- It defines the CoBuild action data schema for DAO.
- It adopts the transaction building workflow based on the CoBuild data structure BuildingPacket.
- It uses WitnessArgs layout for lock scripts and the DAO type script.
- It shows how to present the transaction before users sign it.
- By default, the PoC discards the CoBuild message after building the transaction. However, it provides an opt-in feature to pack the CoBuild message and the example contract to verify the message.
First, run the development server:
pnpm dev
Open http://localhost:3000 with your browser to see the result.
This will use the testnet and the public RPC node https://testnet.ckbapp.dev/
. See docs/dev.md about how to set up a dev chain for local development and testing.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
See the list of configurable environment variables in the file env.example.