How harishmelwani/salazy works
SalAZy is a browser-based private payroll application on Aztec. Employers configure businesses and employees, fund a payroll period, issue salary payments, and prove the period fully paid; employees can view their private salary notes and balance. The frontend coordinates wallet setup, payroll actions, and status views through its Aztec helpers and the Noir contract. Wallet backup/restore and sponsored fees are supporting capabilities. Contract internals are unsampled, so contract behavior is represented at its source path without inferred internal stages.
Main entry points: App.tsx Payroll UI · salazy.ts Payroll client · wallet.ts Embedded wallet · fees.ts Fee registration
Components 12
Payroll experience
- Payroll UI
salazy_frontend/src/App.tsx - React entry
salazy_frontend/src/main.tsx
Aztec client
- Network config
salazy_frontend/src/config.ts - Embedded wallet
salazy_frontend/src/wallet.ts - Payroll client
salazy_frontend/src/salazy.ts
On-chain payroll
- Payroll contract
salazy_contract/src/main.nr
Wallet and fees
- Fee registration
salazy_frontend/src/fees.ts - Browser persistence
Other components
- Employer
- Employee
- Aztec node
- Sponsored fee contract
Connections 16
- Employer → Payroll UI: manages payroll
salazy_frontend/src/App.tsx - Employee → Payroll UI: views salary
salazy_frontend/src/App.tsx - React entry → Payroll UI: renders
salazy_frontend/src/main.tsx - Payroll UI → Embedded wallet: opens wallet
salazy_frontend/src/App.tsx - Payroll UI → Fee registration: registers fees
salazy_frontend/src/App.tsx - Payroll UI → Payroll client: runs payroll
salazy_frontend/src/App.tsx - Payroll UI → Network config: reads address
salazy_frontend/src/App.tsx - Embedded wallet → Network config: reads node URL
salazy_frontend/src/wallet.ts - Payroll client → Network config: reads node settings
salazy_frontend/src/salazy.ts - Embedded wallet → Browser persistence: persists identity
salazy_frontend/src/wallet.ts - Embedded wallet → Aztec node: connects
salazy_frontend/src/wallet.ts - Payroll client → Aztec node: loads contract
salazy_frontend/src/salazy.ts - Payroll client → Payroll contract: simulates and sends
salazy_frontend/src/salazy.ts - Payroll client → Fee registration: creates fee payment
salazy_frontend/src/salazy.ts - Fee registration → Sponsored fee contract: configures payment
salazy_frontend/src/fees.ts - Fee registration → Embedded wallet: registers contracts
salazy_frontend/src/fees.ts