nx_trust_lib.nx
buildroot/runtime/nx_trust_lib.nx
about
nx_trust_lib.nx -- Nishi Office: client TRUST ACCOUNTING (F506, IOLTA / Utah RPC 1.15).
Append-only immutable trust ledger on the CID plane (history sacred = what bar audits want).
RPC 1.15 by construction: NO-COMMINGLING (per-client balances isolated), NO-OVERDRAW (a
disbursement exceeding a client's trust balance is REFUSED), THREE-WAY RECONCILIATION
(sum of client ledgers == trust account total; leg 3 = the bank statement a human matches).
Money = integer CENTS, no float (exact). DRY: reuses nx_matter_lib helpers. LIB (no main).
license_tier: ORIGINAL
dependencies 1 imports · 5 importers
imports: nx_matter_lib.nx
imported by: nx_billing_lib.nxnx_ledger_trust_equiv_gate.nxnx_matter_intake_lib.nxnx_trust.nxnx_trust_gate.nx
structs
| none |
consts
| none |
functions
| 12 | func tr_atoi(s: *u8) -> i64 |
| 23 | func tr_dollars(cents: i64, out: *u8) -> i64 |
| 40 | func trust_put(prefix: *u8, client: *u8, seq: i64, matter: *u8, ttype: *u8, cents: i64) -> i64 called by 7: mainmainbl_bill_from_trustmainintake_new_mattermain+1 calls 4: mt_catcopymt_catncanon_encodereg_put |
| 66 | func trust_balance(prefix: *u8, client: *u8) -> i64 |
| 112 | func trust_disburse_ok(prefix: *u8, client: *u8, cents: i64) -> i64 |