Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Kupmios: protocol parameters fail when Ogmios omits a cost model language

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start in packages/evolution/src/sdk/provider/internal/Ogmios.ts at ProtocolParametersSchema and RedeemerSchema, then compare them with the Ogmios encoder references in the issue. Done means protocol parameters decode when any cost-model language is absent by using an empty map, and the guard redeemer purpose is accepted for Dijkstra support.

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

Descrizione

bug

Two protocol-parameter decoding failures in the Kupmios provider, found by checking the Ogmios encoders at v6.14.0 and v7.0.0. #559 covers the third, the maxReferenceScriptsSize rename.

  1. Cost models. ProtocolParametersSchema requires plutus:v1, plutus:v2 and plutus:v3 (packages/evolution/src/sdk/provider/internal/Ogmios.ts:91-95). Ogmios builds the map from costModelsValid, so it sends only the languages that have a cost model (server/src/Ogmios/Data/Json/Alonzo.hs:131-141 at v6.14.0), and its JSON schema CostModels has no required keys. On a network without one of the three, getProtocolParameters fails. Fix: make each language key optional and map a missing one to {}.
  2. Redeemer purpose. Ogmios v7.0.0 adds a guard purpose in the Dijkstra era (server/src/Ogmios/Data/Json/Dijkstra.hs:320-326), which RedeemerSchema (Ogmios.ts:146) rejects. No current network uses it. It belongs with Dijkstra support.
Lingua principale
TypeScript
Stelle
22
Fork
35
Merge medio
21h 8m
PR unite (30g)
50

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.