Repository navigation
contracts: treasury fees, shared shipment types, ratings and open lists - #1907
Merged
Merged
Conversation
- escrow: pay cancellation fees to a configurable treasury (CodeGirlsInc#1866) - document/shipment: move the shipment record into the common crate (CodeGirlsInc#1867) - reputation: index and paginate the ratings a user received (CodeGirlsInc#1868) - shipment: maintain a paginated list of open (Created) shipments (CodeGirlsInc#1869) Closes CodeGirlsInc#1866 Closes CodeGirlsInc#1867 Closes CodeGirlsInc#1868 Closes CodeGirlsInc#1869 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@walexjnr is attempting to deploy a commit to the Mftee's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@walexjnr 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 walexjnr:
escrow: cancellation fees now go to a configurableDataKey::Treasuryinstead of the admin key.initializedefaults it to the admin, an admin-onlyset_treasuryemits atreasuryevent, andget_treasuryexposes it (falling back to the admin for already-deployed escrows).shipment/document:ShipmentandShipmentStatusnow have a single#[contracttype]definition in thecommoncrate, re-exported by both contract crates, so the document registry can no longer decode a drifted copy.reputation:submit_ratingmaintains aRatingsFor(Address)index (removed on void), exposed through paginatedget_ratings_for(user, offset, limit).shipment: a boundedOpenListis appended on create, removed on accept/cancel, and exposed through paginatedget_open_shipments(offset, limit).No tests, build or compile were run, per the request.
Closes #1866
Closes #1867
Closes #1868
Closes #1869