[FR] - Change representation of cost models in the code to JSON string
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đá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
Bắt đầu trong internal/Cardano/Api/Genesis.hs tại phần biểu diễn cost model, sau đó so sánh với plutus-core/cost-model/data/builtinCostModel.json. Xem cardano-testnet/src/Testnet/Defaults.hs để biết phương pháp validation được đề cập. Hoàn thành khi các cost model được biểu diễn dưới dạng chuỗi JSON dễ đọc trong Haskell, vị trí Plutus ban đầu được ghi lại và validation được xử lý nếu có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Internal/External
Internal
Area
Other Any other topic (Delegation, Ranking, ...).
Describe the feature you'd like
Currently cost models are represented as an array with hard to understand values. To make maintenance easier, they should be stored as JSON string in haskell (quasiquoted preferably). The cost model should be also linked to the original location in plutus repository in the code comment: https://github.com/IntersectMBO/plutus/blob/master/plutus-core/cost-model/data/builtinCostModel.json
A validation logic implemented in cardano-testnet would be nice to have: https://github.com/IntersectMBO/cardano-node/blob/cd3c037fa6d2f836794012f806cd32edfcf31763/cardano-testnet/src/Testnet/Defaults.hs#L88
Describe alternatives you've considered
n/a
Additional context / screenshots
n/a
- Ngôn ngữ chính
- Haskell
- Star
- 41
- Fork
- 33
- Merge trung bình
- 3 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
- Không có Dockerfile hay 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-api
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
IntersectMBO/cardano-api#1434 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
`Prelude.maximum: empty list` crash in fee estimation for empty `RequireAnyOf` (`{"type": "any", "scripts": []}`) scriptsCó thể đã có người làm @Jimbo4350 đã nhận 8 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
IntersectMBO/cardano-api#1424 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 53/100
IntersectMBO/cardano-api#1431 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
type: enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
IntersectMBO/cardano-api#1423 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Add a dedicated transaction viewing type to the experimental APICó thể đã có người làm @palas đã nhận 21 ngày trước. Đang mởtype: enhancement
IntersectMBO/cardano-api#1416 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của IntersectMBO/cardano-api
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
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 72/100
haskell/bytestring#730 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
seal-harness/seal-harness#399 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
add previously overlooked rulesĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
fmidue/codeworld-tasks#124 ·
-
allow haskell-src-exts-1.24Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
reflex-frp/reflex#563 ·