A Cruna Protocol Plugin boilerplate
- Clone this repository
- Install dependencies using pnpm (recommended). If you already use pnpm, skip the first two lines.
npm i -g pnpm
pnpm setup
pnpm i
- Compile contracts:
npm run compile
- Run tests:
npm test
This example is a simple, probably not very useful, badge collector contract that allows users to collect badges. The contract emits an event when a badge is collected. It is also able to (try to) transfer the badge to another user — which will fail if the badge is not transferable.
Replace the code with your own plugin contract code and update the tests in test/integration.test.js to match your contract.
(c) 2024 Cruna
MIT