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 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 ↻ nx_fr_set _fr_at _fr_hash nx_fr_may_use_in_product nx_fr_classify _fr_hash ↻ _fr_at ↻ nx_rights_is_licensed nx_rights_state _rl_at nx_rights_grant nx_use_is_valid _rl_at ↻

structs

none

consts

none

functions

13func main() -> i64