Skip to content

cryptape/ckb-dao-cobuild-poc

Repository files navigation

CKB DAO CoBuild PoC

Disclaimer

  • 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.

Background

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.

Getting Started

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.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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.