Skip to main content

Module c4

Module c4 

Source
Expand description

Code4rena-paired project view.

Bundles a ProjectData with an optional audit-report payload. The same shape is reused for all project sources — C4 contests (where meta and audit are both populated), Move snapshots (where audit may be a AuditReportMaterial::MoveVulnerabilitySnippet and meta is None), and freshly-cloned audit checkouts (where both are None). Keeping a single struct here lets the rest of the pipeline take “project + optional audit” without having to discriminate on dataset origin.

Structs§

AuditMeta
audits/<id>.json payload for a Code4rena contest. Only the fields downstream callers currently inspect are listed; serde will ignore unknown fields so we don’t break when the source schema grows.
C4PairedProjectData
A project bundle with an optional audit-side payload.

Enums§

AuditReportMaterial
Renderable audit-report payload. Plain text for C4; structured Move vulnerability snippets for the Move dataset. Both render to markdown for prompt inclusion.