cardano-testnet: Replace eon-based era witnesses with Exp.IsEra/Era
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
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*EraOnwardsConstraintsfunctionsShelleyBasedEra*era witnesses whereEra erasuffices
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
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di IntersectMBO/cardano-node
-
Stale
Difficoltà 1/5 1-3 ore Idoneità per principianti 75/100
IntersectMBO/cardano-node#6597 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Stale
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
IntersectMBO/cardano-node#6578 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
IntersectMBO/cardano-node#6522 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
needs triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 44/100
IntersectMBO/cardano-node#6734 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
increase in memory usageAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
IntersectMBO/cardano-node#6718 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di IntersectMBO/cardano-node
Issue simili
-
bug core-libs
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
objectionary/phino#1951 ·
I maintainer di solito rispondono entro 1 giorno
-
The Hackage corpus takes in every package in its cache directory, not only the listed releasesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
ndmitchell/hlint#1710 ·
-
CJK text is italicizedForse già presa @daniel-gregg l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100