Skip to main content

Module publish

Module publish 

Source
Expand description

CLI argument parsing for decdn publish — the origin-publisher control plane (issues #1029 / #1491, ADR 002 / ADR 011). Three write commands: namespace create (PublisherRegistry.createNamespace), and then assign / revoke (OriginAssignment.addOrigin / removeOrigin), which a vetted publisher self-serves with no waiting. Vetting itself is granted out-of-band by a VETTER_ROLE holder on the installed vetting policy (an operator, multisig, or governance), not through this CLI. assign submits one addOrigin per operator, so it is N transactions rather than one. Content is bound to a namespace off-chain at fetch time, so there is no per-hash on-chain claim.

Structs§

AssignArgs
decdn publish assign <namespace> <ops…> flags.
NamespaceArgs
decdn publish namespace <subcommand> (nested to match the issue’s namespace create phrasing and leave room for future namespace transfer).
NamespaceCreateArgs
decdn publish namespace create flags.
PublishArgs
decdn publish <subcommand>.
PublishChainArgs
Chain coordinates shared by the publish subcommands. Mirrors ChainArgs but targets the publisher contracts (PublisherRegistry, OriginAssignment) instead of CapacityBond. The common coordinates live in CommonChainArgs; this struct adds the two publisher-contract address flags.
RevokeArgs
decdn publish revoke <namespace> <operator> flags.

Enums§

NamespaceCommand
Namespace lifecycle operations.
PublishCommand
Publisher control-plane operations.