Kupmios: PlutusV4 scripts and Byron addresses from Kupo

Aperta
#572 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #624 di @Kshot3000 — chiusa senza merge

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
70/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
22
Fork
34
Merge medio
16h 53m
PR unite (30g)
10

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di IntersectMBO/evolution-sdk

Tutte le issue di IntersectMBO/evolution-sdk

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.