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

cardano-testnet: Replace eon-based era witnesses with Exp.IsEra/Era

Aperta
#6,487 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #6534 di @SillyZir — chiusa senza merge

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
haskell
Ambito
testing

Direzione di ricerca

Search all of cardano-testnet/src and tests for EraOnwards constructors, *EraOnwardsConstraints functions, and ShelleyBasedEra witnesses. Compare each use with Cardano.Api.Experimental.Era's Era, IsEra, and obtainCommonConstraints, then run the affected cardano-testnet tests to verify that the audit is complete and they still pass.

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

Descrizione

Background

cardano-api has introduced a new era API in Cardano.Api.Experimental.Era built around Era era, IsEra era, and EraCommonConstraints. This replaces the older eon-based approach (BabbageEraOnwards, ConwayEraOnwards, babbageEraOnwardsConstraints, etc.), which is now deprecated — see cardano-api #938.

The new API is cleaner: rather than threading specific eon witnesses (ConwayEraOnwardsConway, etc.) through code and calling *EraOnwardsConstraints to bring constraints into scope, callers use Era era / IsEra era and obtainCommonConstraints.

Problem

cardano-testnet tests and infrastructure still use the old eon API extensively. For example, from the new gRPC integration tests in PR #6273:

let ceo = ConwayEraOnwardsConway
    sbe = convert ceo
    ...
babbageEraOnwardsConstraints (convert ceo) $ do
  ...

This should instead use Era ConwayEra / obtainCommonConstraints:

let era = ConwayEra  -- Exp.Era
    sbe = convert era
    ...
obtainCommonConstraints era $ do
  ...

Scope

Audit all of cardano-testnet (src and tests) for usage of:

  • *EraOnwards* constructors and witnesses
  • *EraOnwardsConstraints functions
  • ShelleyBasedEra* era witnesses where Era era suffices

And replace with the experimental era API.

Lingua principale
Haskell
Stelle
3.2k
Fork
762
Merge medio
1g 23h
PR unite (30g)
21

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/cardano-node

Tutte le issue di IntersectMBO/cardano-node

Issue simili

Altre issue su Haskell

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.