← all projects

black.tax

@Lehlohonolo-Sehako·sehako·added 2026-10-24
0
stars
27k
lines
269
files
0
forks
0
followers
languages
Java 61%HTML 14%TypeScript 13%JavaScript 8%Python 2%Shell 1%

black.tax runs a stokvel's treasury. A rule-based treasurer in backend/agent/src/decide.ts directs pooled contributions at the member debt with the highest rate first, keeps a reserve floor, pauses a payout when a member's DebiCheck mandate or contribution lapses, and explains each decision in plain language; assess.ts grades loan requests from other stokvels into Tier A, B or C by fixed thresholds, with the human treasurer approving. Every figure traces to a Beancount double-entry ledger served by the Python service in backend/ledger/ and its file hash. Approved inter-stokvel loans settle in USDC on Arc through Circle's ERC-8183 job escrow: backend/agent/src/arc.ts drives the full createJob -> setBudget -> approve -> fund -> submit -> complete lifecycle via @circle-fin/developer-controlled-wallets, with the right wallet signing each step, deterministic idempotency keys derived from the business reference, step and run scope (idempotencyKey()), and the job ID read from the JobCreated event. A Spring Boot core (backend/core), the arc-setup.ts and arc-status.ts wallet scripts and a Next.js frontend complete the monorepo.

events
tags
circle components
builder bio

🇿🇦

team · solo

1 (Solo) — Lehlohonolo Sehako

on xhttps://www.youtube.com/@LehlohonoloSehako
repo description

Agentic treasury for South African stokvels: DebiCheck collections, a Beancount ledger, and inter-stokvel loans escrowed in USDC on Arc (ERC-8183).

last pushed 2026-10-18