feat: admin API

Offen
#49 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
rust

Rechercherichtung

Start by locating the existing ADMIN_API_KEY configuration and the /api/admin/* route entry points, then inspect the existing contract_abis and labels tables. Trace how contract source and compiler metadata are handled before defining the verification endpoint behavior. Done means all listed admin routes require the bearer key, verification upserts contract_abis, and label PUT/DELETE operations work.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Wire up ADMIN_API_KEY (currently documented but unused) and add protected endpoints. A single key configured via env var is used for all admin routes — rotated by updating the env and restarting.

  • Auth — Authorization: Bearer <ADMIN_API_KEY> middleware on all /api/admin/* routes
  • Contract verification — POST /api/admin/contracts/:address/verify (source + compiler metadata → upsert contract_abis)
  • Address labels — PUT/DELETE /api/admin/labels/:address (table already exists, just needs endpoints)
Vorherrschende Sprache
Rust
Sterne
2
Forks
1
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus evstack/atlas

Alle Issues in evstack/atlas

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.