code wiki / _hdl_build / nx_estate_gate.nx
nx_estate_gate.nx
buildroot/runtime/_hdl_build/nx_estate_gate.nx
about
nx_estate_gate.nx -- GATE: R-ESTATE. Renders a will's Schedule of Assets from the inventory's `estate`
domain and proves: T1 every catalogued asset appears, T2 net worth exact, T3 per-beneficiary bequests +
residuary, T4 CONSERVATION (every asset accounted to a distribution group -> subtotals sum to the total),
T5 sovereign + boundary-escaped, T6 SHIPPED via the publisher. license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_estate.nxnx_inventory.nxnx_publisher.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 10 | const EG_INV: *u8 = "knowledge/store/inv-" |
| 11 | const EG_DOM: *u8 = "estate" |
| 12 | const EG_Q: *u8 = "knowledge/publish/estate-queue.tsv" |
| 13 | const EG_LED: *u8 = "knowledge/publish/estate-ledger.tsv" |
| 14 | const EG_STG: *u8 = "knowledge/publish/estate-stage" |
| 15 | const EG_LIVE: *u8 = "knowledge/publish/estate-live" |
| 16 | const EG_STAGE_FILE: *u8 = "knowledge/staging/estate/schedule.html" |
| 17 | const EG_LIVE_FILE: *u8 = "knowledge/publish/estate-live/estate-schedule.html" |
functions
| 19 | func g_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 20 | func g_i(v: i64) -> i64 |
| 28 | func g_money(cents: i64) -> i64 { let b: *u8 = sys_mmap(32); let o: i64 = iv_money(b, 0, cents); sys_write(1, b, o); return 0 } |
| 29 | func g_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 } |
| 31 | func main() -> i64 |