Repository navigation
contracts: dispute timestamps, shared bounds, document supersede - #1906
Merged
Merged
Conversation
…sede - escrow: record and expose the dispute start time (CodeGirlsInc#1871) - shipment: define weight/text bounds once and share one validator (CodeGirlsInc#1872) - document: let an uploader supersede their own unverified document (CodeGirlsInc#1870) - reputation: drop empty ShipmentRaters entries and extend TTL (CodeGirlsInc#1873) Closes CodeGirlsInc#1870 Closes CodeGirlsInc#1871 Closes CodeGirlsInc#1872 Closes CodeGirlsInc#1873 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@oladev2026-tech is attempting to deploy a commit to the Mftee's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@oladev2026-tech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Small contract fixes for the four issues assigned to oladev2026-tech:
document: addedsupersede_document(uploader, doc_id, new_doc_id)plusget_superseded_by. Only the uploader can supersede their own unverified document, the replacement must be theirs on the same shipment, and the replacement id is stored under a newDataKey::SupersededByentry with asupersededevent, soDocumentRecord's encoding is unchanged.escrow:raise_disputenow stores the dispute timestamp underDataKey::DisputedAt, exposed viaget_disputed_at(shipment_id)(0when never disputed).EscrowRecordis unchanged.shipment: weight/location/cargo bounds are nowMAX_WEIGHT_KG,MAX_LOCATION_LENandMAX_CARGO_LEN, andcreate/updateshare onevalidate_termshelper. Documented in the crate README.reputation:void_ratingnow removesShipmentRaterswhen the list becomes empty instead of writing back an empty vector, and extends the TTL otherwise.No tests, build or compile were run, per the request.
Closes #1870
Closes #1871
Closes #1872
Closes #1873