Skip to content

Latest commit

 

History

754 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌱 Stellar GreenPay

Donate directly to verified climate projects using XLM — every transaction tracked on-chain.

License: MIT PRs Welcome Stellar Soroban

Stellar GreenPay is an open-source climate donation platform where donors give XLM directly to verified environmental projects. Every donation is recorded on the Stellar blockchain via Soroban smart contracts — providing radical transparency and zero platform fees.


✨ Features (v1)

  • 🔗 Wallet Connect — Freighter browser wallet integration
  • 🌍 Browse Projects — Climate projects with evidence-backed outcome claims and visible provenance
  • 💚 Donate XLM — Direct on-chain donations to project wallets
  • 📊 Evidence-first outcomes — donations are on-chain; project outcome ranges carry methodology, evidence, verifier status, an on-chain attestation hash, and revocation history
  • 🏆 Leaderboard — Top donors ranked by total XLM given
  • 💬 Project Updates — Organisations post progress updates to donors

🗂 Project Structure

stellar-greenpay/
├── frontend/          # Next.js + React + Tailwind CSS
├── backend/           # Node.js + Express API
├── contracts/         # Stellar Soroban smart contracts (Rust)
├── docs/              # Architecture, API, and project documentation
│   └── runbooks/      # Incident response runbooks (matcher key, indexer lag)
├── scripts/           # Deployment & utility scripts
├── .github/           # CI/CD workflows & issue templates
└── LICENSE

🚀 Quick Start

Prerequisites

Tool Version
Node.js ≥ 18.x
npm Latest
Rust + Cargo ≥ 1.74 (for contracts)
Freighter Wallet Browser extension

1. Clone & Setup

git clone https://github.com/your-org/stellar-greenpay.git
cd stellar-greenpay
chmod +x scripts/setup-dev.sh
./scripts/setup-dev.sh

2. Start Frontend

cd frontend && npm run dev
# → http://localhost:3000

3. Start Backend

cd backend && npm run dev
# → http://localhost:4000

Docker Hot-Reload Development

Use the development override when you want frontend and backend source edits to refresh inside Docker without rebuilding:

docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build

The override mounts backend/src directly into the API container and runs Nodemon in legacy watch mode for Docker Desktop file-event reliability. It mounts the frontend workspace into the Next.js container, keeps container-owned node_modules/.next directories, and enables polling for Next/Webpack watchers.


🔑 Environment Variables

Frontend (frontend/.env.local)

NEXT_PUBLIC_STELLAR_NETWORK=testnet
NEXT_PUBLIC_HORIZON_URL=https://horizon-testnet.stellar.org
NEXT_PUBLIC_API_URL=http://localhost:4000
NEXT_PUBLIC_CONTRACT_ID=

Backend (backend/.env)

PORT=4000
STELLAR_NETWORK=testnet
HORIZON_URL=https://horizon-testnet.stellar.org
CONTRACT_ID=
ALLOWED_ORIGINS=http://localhost:3000

🧪 Get Testnet XLM

  1. Install Freighter Wallet and switch to Testnet
  2. Visit Stellar Friendbot with your public key
  3. Receive 10,000 test XLM instantly

🤝 Contributing

See CONTRIBUTING.md. All skill levels welcome!

Please note that this project is governed by a Code of Conduct. By participating, you agree to uphold its terms.

Secret Scanning

Every push and every pull request to main runs Gitleaks with the repo-local .gitleaks.toml config. Any detected secret fails CI, so keep real credentials out of source control; use .env files locally and GitHub encrypted secrets for CI/deployment values. The allowlist only covers generated archives, env templates, and deterministic test fixtures.

🗺 Roadmap

See ROADMAP.md for planned features.

📄 License

MIT — see LICENSE fixed

About

Stellar GreenPay is an open-source climate donation platform where donors give XLM directly to verified environmental projects. Every donation is recorded on the Stellar blockchain via Soroban smart contracts providing radical transparency and zero platform fees.

Resources

Code of conduct

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages