cardano-testnet: Replace eon-based era witnesses with Exp.IsEra/Era
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
- #6534 của @SillyZir — đã đóng, không merge
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Haskell
- Star
- 3.2k
- Fork
- 760
- Merge trung bình
- 2 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 21
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của IntersectMBO/cardano-node
-
Stale
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 75/100
IntersectMBO/cardano-node#6597 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Stale
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
IntersectMBO/cardano-node#6578 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
IntersectMBO/cardano-node#6522 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 30/100
IntersectMBO/cardano-node#6729 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
increase in memory usageĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
IntersectMBO/cardano-node#6718 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của IntersectMBO/cardano-node
Issue tương tự
-
component: hls-refactor-plugin status: needs triage type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
haskell/haskell-language-server#5111 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
alunduil/network-arbitrary#193 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
alunduil/siren-json.hs#245 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
infrastructure
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
alunduil/collection-json.hs#393 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày