Skip to content

imaad666/Piggy-Bit

Repository files navigation

Piggy Bit

A decentralized savings application built for Rootstock and Ethereum networks. Create goal-based savings jars with automatic recurring deposits and real-time price tracking.

Features

  • Savings Jars: Create personalized savings goals with target amounts and timeframes
  • Multiple Tokens: Support for tRBTC, PYUSD, and other ERC-20 tokens
  • Auto Deposits: Set up recurring deposits on daily, weekly, or monthly schedules
  • Price Feeds: Real-time price tracking powered by Pyth Network
  • Cross-Chain: Works on Rootstock and Ethereum Sepolia testnets

Tech Stack

  • Frontend: React, TypeScript, Vite
  • Blockchain: Wagmi, Viem
  • Smart Contracts: Solidity, Hardhat
  • Price Data: Pyth Network
  • Deployment: Vercel

Getting Started

Prerequisites

  • Node.js 18+
  • npm 8+
  • MetaMask or compatible wallet

Installation

# Clone the repository
git clone https://github.com/imaad666/Piggy-Bit.git
cd Piggy-Bit

# Install dependencies
npm install

# Start development server
npm run dev

Smart Contracts

# Navigate to contracts directory
cd contracts

# Install dependencies
npm install

# Compile contracts
npx hardhat compile

# Deploy to testnet
npx hardhat run scripts/deploy.ts --network sepolia

Usage

  1. Connect your wallet (MetaMask recommended)
  2. Switch to Rootstock or Ethereum Sepolia network
  3. Create a new savings jar with your target amount
  4. Set up automatic recurring deposits
  5. Track your progress with real-time price updates

Networks

  • Rootstock: Main deployment network
  • Ethereum Sepolia: Testnet for development

License

MIT License - Built for ETHGlobal Delhi

About

Submission for ETHGlobal New Delhi (2025)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors