code wiki / _hdl_build / nx_adnet_submit.nx

nx_adnet_submit.nx

buildroot/runtime/_hdl_build/nx_adnet_submit.nx

8797 B123 linesdepth 5pulls 6 transitivereach 2 importersview sourcekind librarytopic adnet
docsdependenciesstructsconstsfunctions

about

nx_adnet_submit.nx -- LIB: the SELF-SERVE advertiser intake SURFACE (server-rendered, ZERO JS) for the sovereign ad network. Completes the "businesses sign up to advertise" census axis with a real, frontend- testable page: GET renders the form; POST parses the urlencoded body (the DRY nx_http_form_get_field the login route uses), builds a full inventory row, VALIDATES it with the exact same fail-closed validators the serving slot enforces (ass_valid_row: first-party img only, http(s)/path click only, clean slug), and STAGES it to an operator-review journal. STAGED IS NOT LIVE: nothing an advertiser submits ever serves until the operator approves it (ass_approve, a separate operator lane). B2B only; the schema has NO visitor field -> no visitor identity can transit this path by construction. All reflected input is HTML-escaped. license_tier: ORIGINAL

dependencies 3 imports · 2 importers

nx_syscalls.nx nx_http_form.nx nx_adnet_selfserve.nx nx_adnet_submit.nx nx_adnet_submit_gate.nx nx_sites_daemon_v2.nx

imports: nx_syscalls.nxnx_http_form.nxnx_adnet_selfserve.nx

imported by: nx_adnet_submit_gate.nxnx_sites_daemon_v2.nx

structs

none

consts

none

functions

15func asf_cat_esc(dst: *u8, off: i64, s: *u8, cap: i64) -> i64
called by 2: asf_renderasf_post
35func asf_render(out: *u8, cap: i64, msg: *u8, slug: *u8, adv: *u8, img: *u8, click: *u8, section: *u8) -> i64
called by 2: asf_form_pageasf_post calls 1: asf_cat_esc
68func asf_form_page(out: *u8, cap: i64) -> i64
76func asf_post(body: *u8, body_n: i64, subs_path: *u8, out: *u8, cap: i64) -> i64