Decentralized Payroll & Token Vesting Protocol on Stellar Soroban.
_____ _ ____ ____ __
/ ____| | / __ \___ _____/ __ \____ _/ /_____ _
| (___ | | _____ _| | | \ \/ / __/ / / / __ `/ __/ __ `/
\___ \| |/ / _ \/ / | | |> </ /_/ /_/ / /_/ / /_/ /_/ /
____) | < __/ | |__| /_/\_\__,_.___/\__,_/\__/\__,_/
|_____/|_|\_\___|_|\____/ /____/
StellarPay is a protocol that enables startups, DAOs, and remote-first organizations to manage payroll and token vesting entirely on-chain using Stellar Soroban smart contracts.
⚠️ Module Boundary Notice: Treasury and governance functionality has moved to StellarSentinel. See docs/MODULE_BOUNDARY.md for the disposition matrix and migration timeline. Thecontracts/treasury/andcontracts/governance/crates remain in this repository temporarily during migration but are deprecated.
Build an on-chain payroll and vesting protocol:
- Payroll Streaming: Continuous token distribution, claimable in real-time
- Token Vesting: Cliff + linear vesting for team, advisors, and investors
Treasury (multi-sig vault) and governance (proposals + voting) are owned by StellarSentinel. See docs/MODULE_BOUNDARY.md for details.
graph TD
Admin((Org Admin)) -->|Connect Wallet| UI[Next.js Dashboard]
Employee((Employee)) -->|Claim Tokens| UI
UI -->|Invoke| P[Payroll Stream Contract]
UI -->|Invoke| V[Vesting Contract]
subgraph Stellar Soroban
P -->|Stream| P_Store[Stream State]
V -->|Vest| V_Store[Schedule State]
end
subgraph StellarSentinel [StellarSentinel — Separate Repository]
T[Treasury Contract]
G[Governance Contract]
end
UI -.->|Redirect| StellarSentinel
subgraph Backend
Indexer[Event Indexer] -->|Poll| P
Indexer -->|Poll| V
Indexer -->|Store| DB[(PostgreSQL)]
end
DB -->|Query| API[Analytics API]
API -->|Feed| UI
| Layer | Technology |
|---|---|
| Smart Contracts | Soroban (Rust), soroban-sdk 22.0.0 |
| Frontend | Next.js 14, TypeScript, Tailwind CSS |
| Wallet | Freighter Wallet |
| Indexing | Custom Soroban-RPC event poller |
| Database | PostgreSQL, Redis |
| CI/CD | GitHub Actions |
StellarPay/
├── contracts/ # Soroban workspace
│ └── contracts/
│ ├── treasury/ # ⚠️ DEPRECATED — migrating to StellarSentinel
│ ├── payroll_stream/ # Payment streaming
│ ├── vesting/ # Cliff + linear vesting
│ └── governance/ # ⚠️ DEPRECATED — migrating to StellarSentinel
├── frontend/ # Next.js dashboard
│ └── src/
│ ├── app/ # Pages (payroll, vesting)
│ ├── components/ # Reusable UI components
│ ├── hooks/ # Contract interaction hooks
│ └── lib/ # Network & wallet utilities
├── docs/ # Issue trackers & guides
│ ├── MODULE_BOUNDARY.md # Treasury/governance disposition matrix
│ ├── ISSUES-SMARTCONTRACT.md # 25 smart contract issues
│ ├── ISSUES-FRONTEND.md # 25 frontend issues
│ ├── ISSUES-BACKEND.md # 16 backend/indexer issues
│ ├── ISSUES-SDK-TOOLING.md # 10 SDK/tooling issues
│ ├── SMARTCONTRACT_GUIDE.md # Contract development guide
│ └── FRONTEND_GUIDE.md # Frontend integration guide
├── CONTRIBUTING.md
├── CODE_OF_CONDUCT.md
├── MAINTAINERS.md
└── STYLE.md
- Rust & Cargo (for smart contracts)
- Soroban CLI:
cargo install --locked soroban-cli - Node.js v18+ (for frontend)
- Freighter Wallet browser extension
Clone the repository:
git clone https://github.com/Stellar-Re-Code/StellarPay.git
cd StellarPayVerify contract integrity:
cd contracts
cargo build --all
cargo test --allSetup frontend:
cd frontend
npm install
npm run devWe have separated our task lists for better organization. Please refer to the specific tracker for your area of contribution:
- 🧠 Smart Contract Issues — 25 issues across 4 contracts
- 🎨 Frontend Issues — 25 issues for the Next.js dashboard
- ⚙️ Backend & Indexer Issues — 16 issues for the off-chain stack
- 🛠 SDK & Tooling Issues — 10 issues for SDK, CLI, and DevOps
- 📘 Smart Contract Guide
- 🌐 Frontend Integration Guide
- 📋 Module Boundary: Treasury & Governance — Deprecation path and migration plan
We welcome contributions! Please see our CONTRIBUTING.md for details on our code of conduct and the development process.
Quick Start for Contributors:
- Pick an issue from
docs/ - Fork the repo
- Create a branch
- Submit a PR!
Project maintained under the Stellar-Re-Code organization.