This repository contains two main components:
A smart contract project for the Koko Faucet, built with Foundry.
- Location:
Koko Contract/ - Contains Solidity contracts, scripts, and tests for the Koko Faucet.
- Uses OpenZeppelin and Forge Standard Library as dependencies.
- Key files:
src/Koko.sol: Main contract source codetest/Koko.t.sol: Contract testsscript/Koko.s.sol: Deployment and scripting
A modern frontend for interacting with the Koko Faucet smart contract.
- Location:
KokoUI/ - Built with React, TypeScript, Vite, and Tailwind CSS
- Contains reusable components, hooks, and utilities for web3 interaction
- Key files:
src/pages/FaucetPage.tsx: Main faucet UIsrc/abi/KokoAbi.ts: Contract ABI for frontend integrationsrc/hooks/: Custom React hooks for contract actions
- Node.js (for frontend)
- Foundry (for smart contract development)
- Clone the repository:
git clone <repo-url>
- Install frontend dependencies:
cd KokoUI npm install - Install contract dependencies:
cd "../Koko Contract" forge install
- Run the frontend:
cd KokoUI npm run dev - Test/deploy contracts:
cd "Koko Contract" forge test # or forge script script/Koko.s.sol --broadcast
MIT
For more details, see the individual README files in each subfolder.