Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sprout 🌱

Sprout is a round-up micro-investing app on the Sui blockchain. It automatically deposits spare change from purchases into an on-chain SUI savings vault.

Project Structure

  • /contracts: Sui Move modules for vault management and milestones.
  • /backend: Node.js/Express server for API routes and event indexing.
  • /frontend: Next.js application for Sui wallet vault management.
  • /scripts: Deployment and demo seeding scripts.

Quickstart

1. Contracts

cd contracts
sui move build
# Deploy using the script
../scripts/deploy.sh testnet

2. Backend

cd backend
npm install
# Copy .env.example and fill in the IDs from deployment
cp .env.example .env
# Start the server
npm run dev
# In a separate terminal, start the indexer
npm run indexer

3. Frontend

cd frontend
npm install
# Copy .env.local.example and fill in the IDs
cp .env.local.example .env.local
# Start the app
npm run dev

Key Technologies

  • Sui Blockchain: Core on-chain logic.
  • PostgreSQL: Event indexing and pending round-up tracking.

User Flow

  1. Connect: Connect a Sui wallet.
  2. Setup: Open a SUI vault from the connected wallet.
  3. Spend: Simulate purchases using scripts/seed_demo.sh.
  4. Invest: Deposit pending round-ups into your vault from the dashboard.
  5. Grow: Watch your plant grow as your balance increases!

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages