Skip to content

abundancee/Koko-Faucet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Koko-Faucet Project

This repository contains two main components:

1. Koko Contract

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 code
    • test/Koko.t.sol: Contract tests
    • script/Koko.s.sol: Deployment and scripting

2. KokoUI

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 UI
    • src/abi/KokoAbi.ts: Contract ABI for frontend integration
    • src/hooks/: Custom React hooks for contract actions

Getting Started

Prerequisites

  • Node.js (for frontend)
  • Foundry (for smart contract development)

Setup

  1. Clone the repository:
    git clone <repo-url>
  2. Install frontend dependencies:
    cd KokoUI
    npm install
  3. Install contract dependencies:
    cd "../Koko Contract"
    forge install

Usage

  • Run the frontend:
    cd KokoUI
    npm run dev
  • Test/deploy contracts:
    cd "Koko Contract"
    forge test
    # or
    forge script script/Koko.s.sol --broadcast

License

MIT


For more details, see the individual README files in each subfolder.

About

Koko Faucet UI is a React + Vite Frontend for an ERC20 faucet contract. It lets users connect a wallet, claim test tokens with cooldown protection, transfer tokens, and lets the contract owner mint token.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors