code wiki / (root) / nx_offer_ledger_gate.nx

nx_offer_ledger_gate.nx

buildroot/runtime/nx_offer_ledger_gate.nx

3064 B61 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic offer
docsdependenciesstructsconstsfunctions

about

nx_offer_ledger_gate.nx -- offer state machine + the full acquisition LOOP. State machine: open->PENDING->SENT->ACCEPTED, decline path, bad transitions refused. Then the LOOP CLOSURE: a TO_ACQUIRE target whose offer is ACCEPTED becomes OWNED (nx_fetch_rights) + licensed (nx_rights_ledger) -> product-usable. Returns 0 iff every check holds; nonzero pinpoints the first failure.

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_offer_ledger.nx nx_rights_ledger.nx nx_fetch_rights.nx nx_offer_ledger_gate.nx

imports: nx_syscalls.nxnx_offer_ledger.nxnx_rights_ledger.nxnx_fetch_rights.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_offer_ledger_new sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ nx_offer_open _of_at nx_offer_state _of_find _of_at ↻ _of_at ↻ nx_offer_accept _of_find ↻ _of_at ↻ nx_offer_send _of_find ↻ _of_at ↻ nx_offer_is_accepted _of_at ↻ nx_offer_decline _of_find ↻ _of_at ↻ nx_offer_count_by_state _of_at ↻ nx_fr_new sys_mmap ↻ nx_rights_ledger_new sys_mmap ↻

structs

none

consts

none

functions

13func main() -> i64