DISBURSE: NEAR PAYOUT ACCOUNTING FOUNDATION
A development foundation for teams that need campaign spending controls and a clear record of each payout. It combines a NEAR contract, a read-only TypeScript service foundation, PostgreSQL persistence, and a demo dashboard.
The problem
Teams paying contributors across blockchain networks need a reliable way to set budgets, coordinate payout states, and understand what evidence supports each outcome. Disburse is designed to make those controls and records explicit.
Solution and contribution
I am building this as a NEAR based payout accounting foundation. Its Rust near-sdk contract implements campaign funding, budget caps, payout reservations, role controls, pause controls, idempotency, and payout lifecycle records. NEP-141 funding is allowlisted and finalized event discovery is implemented.
Service and persistence
The TypeScript service has read-only NEAR views and an authenticated read-only HTTP host. PostgreSQL schemas and migrations support durable jobs, idempotency, lease coordination, and reconciliation components. It does not run a production worker, signer, or live payout submission.
Dashboard and architecture
The Next.js demo dashboard presents campaign, payout, and recipient information. Its records are illustrative, and campaign creation, funding, and payout initiation are unavailable. The architecture is contract state and finalized event discovery flowing through a read-only TypeScript service into PostgreSQL records and dashboard read views.
Engineering challenges and quote preview
The design addresses budget enforcement, separate authorization roles, durable idempotent jobs, lease coordination, and explicit reconciliation evidence. A 1Click adapter requests EXACT_OUTPUT quotes with dry: true and validates response fields and input budget using mock responses. A dry quote does not reserve liquidity or execute a payout, and the live quote route has not been tested.
Current status
Local Rust contract, service, and PostgreSQL tests have passed in recorded regression runs. The latest readiness evidence reports fresh checks passing in M5-F.1E, while controlled Testnet execution still requires separately approved account, deployment, and operational gates. There is no production deployment, live cross-chain payout submission, or completed end-to-end settlement. The dashboard is a local demo, not a live operational demonstration.
