Skip to content

ramik10/ShadowRoll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Payroll Backend

Private payroll system using ShadowWire for hidden payment amounts.

Quick Start

# 1. Install dependencies
npm install

# 2. Copy and configure environment
cp .env.example .env
# Edit .env with your values

# 3. Start services (PostgreSQL + Redis)
docker compose up -d

# 4. Run migrations
npm run migrate

# 5. Start server
npm run dev

Required Environment

DATABASE_URL=postgresql://user:pass@localhost:5432/payroll
REDIS_URL=redis://localhost:6379

SHADOW_WIRE_TOKEN=USDC
SHADOW_WIRE_WALLET_PRIVATE_KEY=<your_base58_private_key>

API Endpoints

Endpoint Method Description
/api/employees GET, POST List/create employees
/api/employees/:id GET, PUT, DELETE Single employee
/api/payrolls GET, POST List/create payrolls
/api/payrolls/:id GET Payroll details
/api/payrolls/:id/process POST Send payments
/api/payrolls/:id/reconcile POST Retry failed
/api/payrolls/wallet/balance GET Wallet balance

Wallet Setup

Before processing payments, you must:

  1. Generate a Solana keypair
  2. Deposit funds into ShadowWire from that wallet
  3. Set the private key in SHADOW_WIRE_WALLET_PRIVATE_KEY

About

A privacy focused crypto payroll for larger orgs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors