AlloKit Builders Telegram Group
AlloKit is a modular framework for rapidly building and experimenting with on-chain funding strategies. It is built on top of Scaffold-ETH 2 and inspired by OpenZeppelin’s design principles of modularity, extensibility, and reuse.
- Components built with shadcn/ui.
- Indexer built with Ponder
- Strategy Contracts built with OpenZeppelin
- Hooks generated by Wagmi CLI
Get Started | Read about the Architecture | Tutorials
This document outlines the thought process of building SimpleGrants and AlloKit. https://hackmd.io/@carlb/allogram
The contracts are designed to be minimal and modular. A Strategy contract can easily be created by composing extensions and gates.
The indexer is built with Ponder and can be easily extended to support new events.
Create .env.local files for both the allo app and the indexer.
cp packages/allo-app/.env.sample packages/allo-app/.env.local
cp packages/allo-indexer/.env.sample packages/allo-indexer/.env.localUpdate the Pinata variables. This is needed for the creation and fetching of metadata to work properly.
PINATA_GATEWAY_KEY=
PINATA_JWT=
PINATA_GATEWAY_URL=Update the Alchemy key. This is needed to fetch the token price in USD.
ALCHEMY_API_KEY=yarn chain # Run hardhat node
yarn deploy # Deploy contracts
yarn allo:indexer # Run indexer
yarn allo:dev # Run app
yarn app # Run contract debugger
open localhost:3000Make sure Ponder schema has been generated. Regenerate by navigating to packages/allo-indexer and run npm run codegen.