Skip to main content

Module publish

Module publish 

Source
Expand description

decdn publish — origin-publisher control plane (issues #1029 / #1491).

Submits the PublisherRegistry / OriginAssignment writes that create namespaces and then seat or unseat a publisher’s authorized origins. Vetting is not a CLI step: a VETTER_ROLE holder on the installed vetting policy (an operator, multisig, or governance) vets the wallet out-of-band, after which assign and revoke take effect in the transaction that carries them (ADR 011 § Origin Assignment Authority). Content is bound to a namespace off-chain by the requester at fetch time (ADR 002 § Hash-to-namespace association), so there is no per-hash on-chain claim. Mirrors the on-chain-write pattern of super::register: resolve chain coordinates and parse the target contract address, then — on the submit path only — load the keystore signer, build a wallet-filled provider, submit, and print a JSON or key=value receipt. --dry-run stops after resolution: it loads no keystore and sends no transaction, printing just the resolved parameters.

Functions§

publish_dispatch
Entry point for decdn publish.