code wiki / _hdl_build / nx_produce.nx

nx_produce.nx

buildroot/runtime/_hdl_build/nx_produce.nx

8806 B129 linesdepth 6pulls 7 transitivereach 3 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_produce.nx -- LIB: the CLEAN-PRODUCE catalog (R-IMPACT-2). Extends the impact model across the "Dirty Dozen" (the most pesticide-heavy produce conventionally), proving the triple win at PRODUCT-LINE scale: a whole basket of Nishi produce is cleaner + greener + cheaper for the customer, AND higher-margin for us. Aggregates basket savings + our margin; renders a customer-facing storefront. Reuses nx_impact accessors. license_tier: ORIGINAL

dependencies 4 imports · 3 importers

nx_impact.nx nx_food_science.nx nx_seg_store.nx nx_syscalls.nx nx_produce.nx nx_clean_market_gate.nx nx_link_auto_gate.nx nx_produce_gate.nx

imports: nx_impact.nxnx_food_science.nxnx_seg_store.nxnx_syscalls.nx

imported by: nx_clean_market_gate.nxnx_link_auto_gate.nxnx_produce_gate.nx

structs

none

consts

none

functions

11func pd_money(dst: *u8, off: i64, cents: i64) -> i64 { return im_money(dst, off, cents) }
called by 1: pd_render_storefront calls 1: im_money
13func pd_seed(prefix: *u8) -> i64
50func pd_list(prefix: *u8, outids: *i64) -> i64
78func pd_all_triple_win(prefix: *u8, total_out: *i64) -> i64
called by 1: main calls 3: sys_mmappd_listim_triple_win
88func pd_basket_savings(prefix: *u8) -> i64
97func pd_basket_margin(prefix: *u8, src: *u8) -> i64
called by 1: main calls 3: sys_mmappd_listim_margin
107func pd_render_storefront(prefix: *u8, out: *u8) -> i64