Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#6,487 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
haskell
Lĩnh vực
testing

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
  • *EraOnwardsConstraints functions
  • ShelleyBasedEra* era witnesses where Era era suffices

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của IntersectMBO/cardano-node

Tất cả issue của IntersectMBO/cardano-node

Issue tương tự

Thêm issue về Haskell

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.