Skip to content

[next-wave] Add 'sanctified' SVG badge generator with on-chain verification #741

Description

@Gbangbolaoluwagbemiga

Context

Contracts that pass Sanctifier static analysis AND have an active Runtime Guard Wrapper on-chain should be able to render a verifiable badge for their README.

Design

[ Sanctified ✓ ] [ runtime-guard active ] [ 142 calls · 99.3% pass rate ]

The badge data is queried live from the on-chain Runtime Guard Wrapper.

Tasks

  • New subcommand: sanctifier badge --contract <ADDR> --output badge.svg
  • Call get_stats on the supplied wrapper contract via Soroban RPC
  • Render an SVG with computed pass rate, total calls, last-call timestamp
  • Host a Vercel edge function at /api/badge/[contract].svg that serves the same badge dynamically
  • Add badge to LIVE_TESTNET.md
  • Documentation page in /docs

Acceptance Criteria

  • Badge SVG renders cleanly in GitHub README (no broken refs)
  • Live edge endpoint responds in <500ms cold start
  • Badge updates within 1 minute of a new recorded call on-chain

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programdifficulty:mediumModerate changeenhancementNew feature or requestnext-waveScoped for the next contributor wavesdkCLI / SDK / integrationstoolingDeveloper tools and CLI

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions