code wiki / (root) / nx_trust_lib.nx

nx_trust_lib.nx

buildroot/runtime/nx_trust_lib.nx

4091 B115 linesdepth 7pulls 12 transitivereach 9 importersview sourcekind librarytopic trust
docsdependenciesstructsconstsfunctions

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

nx_matter_lib.nx nx_trust_lib.nx nx_billing_lib.nx nx_ledger_trust_equiv_gate.nx nx_matter_intake_lib.nx nx_trust.nx nx_trust_gate.nx

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

12func tr_atoi(s: *u8) -> i64
23func tr_dollars(cents: i64, out: *u8) -> i64
called by 3: mainmainmain calls 1: mt_catn
40func trust_put(prefix: *u8, client: *u8, seq: i64, matter: *u8, ttype: *u8, cents: i64) -> i64
66func trust_balance(prefix: *u8, client: *u8) -> i64
112func trust_disburse_ok(prefix: *u8, client: *u8, cents: i64) -> i64