A Solana-based payroll system that lets companies track work hours and pay employees automatically. Built with Anchor framework.
StreamPay helps companies manage hourly workers by tracking their work sessions and handling payments on the Solana blockchain. Companies can add employees, set hourly rates, and workers can clock in/out for their shifts. Payments happen automatically based on hours worked.
programs/streampay/
- The main Solana program written in Rusttests/
- TypeScript tests for the smart contractmigrations/
- Deployment scripts
- Company registration and management
- Employee onboarding with hourly rates
- Work session tracking (clock in/out)
- Automatic payment calculation
- Real-time balance tracking
Make sure you have Rust, Solana CLI, and Anchor installed first.
Build the program:
anchor build
Run tests:
anchor test
Deploy to devnet:
anchor deploy --provider.cluster devnet
This project uses Anchor 0.31.1 and targets Solana localnet by default. The main program logic is in programs/streampay/src/lib.rs
.
Company owners can initialize their company account, add employees with hourly rates, and employees can start/end work sessions. The contract handles all the payment math automatically.