Kupmios: PlutusV4 scripts and Byron addresses from Kupo

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

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

  • #624 von @Kshot3000 — ohne Merge geschlossen

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
70/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
api

Rechercherichtung

Start with ScriptSchema in packages/evolution/src/sdk/provider/internal/Kupo.ts and the handling in KupmiosEffects.ts:152-153 and 173, then compare the referenced Kupo source locations. Verify that PlutusV4 scripts and Byron base58 addresses no longer surface defects; unsupported cases should result in ProviderError as described.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug

Two Kupo responses the Kupmios provider does not handle, found by checking the Kupo source at v2.10.0 to v2.12.0.

  1. PlutusV4 scripts. From v2.12.0, /scripts/{hash} can return language: "plutus:v4" (src/Kupo/Data/Cardano/Script.hs:126). ScriptSchema (packages/evolution/src/sdk/provider/internal/Kupo.ts:34) rejects it, and the default: throw in getScriptEffect (KupmiosEffects.ts:152-153) runs inside Effect.map, so it would surface as a defect. Nothing breaks until V4 scripts exist on chain. Fix: accept the literal and fail with a ProviderError until the SDK supports V4.
  2. Byron addresses. Kupo writes Byron addresses in base58 (src/Kupo/Data/Cardano/Address.hs:25-34), but the provider parses every address with CoreAddress.fromBech32 inside Effect.map (KupmiosEffects.ts:173). A Byron output returned by an output-reference or policy query throws a defect. Fix: accept base58, or fail with a ProviderError.
Vorherrschende Sprache
TypeScript
Sterne
22
Forks
34
Ø Merge
16 Std. 53 Min.
Gemergte PRs (30 T.)
10

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 IntersectMBO/evolution-sdk

Alle Issues in IntersectMBO/evolution-sdk

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

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