code wiki / _hdl_build / nx_auction_core.nx

nx_auction_core.nx

buildroot/runtime/_hdl_build/nx_auction_core.nx

2716 B60 linesdepth 0pulls 0 transitivereach 4 importersview sourcekind librarytopic auction
docsdependenciesstructsconstsfunctions

about

nx_auction_core.nx -- SHARED auction settlement engine (MANHEIM-BUILD): the reusable core under EVERY auction channel (timed, proxy, simulcast, 2nd-chance, specialty). Pure integer-exact + deterministic; NO syscalls -- operates only on caller-provided arrays. LIBRARY (no main); imported by the per-channel gate organs. DRY law #15: the bid-validation + increment + reserve + anti-snipe rules live in ONE place, so every channel settles identically and a rule fix lands once. license_tier: ORIGINAL

dependencies 0 imports · 4 importers

nx_auction_core.nx nx_auction_2ndchance.nx nx_auction_proxybid.nx nx_auction_realtime.nx nx_auction_timed.nx

imports: none

imported by: nx_auction_2ndchance.nxnx_auction_proxybid.nxnx_auction_realtime.nxnx_auction_timed.nx

structs

none

consts

7const AT_SOLD: i64 = 1
8const AT_NOSALE: i64 = 0

functions

18func at_resolve(opening: i64, increment: i64, reserve: i64, start: i64, end: i64, snipe_window: i64, extension: i64, bidder: *i64, amount: *i64, time: *i64, n: i64, out: *i64) -> i64