casper-network / casper-network/casper-java-sdk
Ensure compatibility with Casper Type V3.0 changes
- Ngôn ngữ chính
- Java
- Star
- 10
- Fork
- 25
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
See: https://docs.google.com/document/d/1M5uux_Ry4HzaD46DL9q1vd-M_QSqpMrcxTjHh3NgfxU/edit
### Casper Types v3.0.0 changes.
#### Added
Add new bytesrepr::Error::NotRepresentable error variant that represents values that are not representable by the serialization format.
Add new Key::Unbond key variant under which the new unbonding information (to support redelegation) is written.
Add new Key::ChainspecRegistry key variant under which the ChainspecRegistry is written.
Add new Key::ChecksumRegistry key variant under which a registry of checksums for a given block is written. There are two checksums in the registry, one for the execution results and the other for the approvals of all deploys in the block.
Add new StoredValue::Unbonding variant to support redelegating.
Add a new type WithdrawPurses which is meant to represent UnbondingPurses as they exist in current live networks.
#### Changed
Extend UnbondingPurse to take a new field new_validator which represents the validator to whom tokens will be re-delegated.
Increase DICTIONARY_ITEM_KEY_MAX_LENGTH to 128.
Change prefix of formatted string representation of ContractPackageHash from "contract-package-wasm" to "contract-package-". Parsing from the old format is still supported.
Apply #[non_exhaustive] to error enums.
Change Debug output of DeployHash to hex-encoded string rather than a list of integers.
#### Fixed
Fix some integer casts, where failure is now detected and reported via new error variant NotRepresentable.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với tài liệu Casper Types v3.0.0 được liên kết và ánh xạ từng mục Added, Changed và Fixed tới các kiểu tương ứng của Java SDK cũng như cơ chế tuần tự hóa hoặc xử lý lỗi của chúng. Issue chỉ hoàn tất khi tất cả các thay đổi về khả năng tương thích được liệt kê đều được hỗ trợ và xác minh; payload không nêu tên tệp mã nguồn hay các bài kiểm thử, vì vậy cần khám phá repository.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- api
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100