Skip to content

feat(delivery_contract): implement on-chain driver reputation score t…#45

Merged
Tybravo merged 1 commit into
SwiftChainn:mainfrom
Divine-mercyx:feat/driver-reputation-score-tracker
Apr 28, 2026
Merged

feat(delivery_contract): implement on-chain driver reputation score t…#45
Tybravo merged 1 commit into
SwiftChainn:mainfrom
Divine-mercyx:feat/driver-reputation-score-tracker

Conversation

@Divine-mercyx

Copy link
Copy Markdown
Contributor

…racker

Closes #28

  • Defined DriverProfile struct in shared_types.
  • Implemented get_driver_profile read-only query.
  • Incremented deliveries_completed and reputation_score on successful confirm_delivery.
  • Added logic to start new drivers with a score of 0.
  • Stored profiles in persistent storage keyed by driver address.
  • Created unit tests covering single and multiple delivery score accumulation.

…racker

Closes SwiftChainn#28

- Defined DriverProfile struct in shared_types.
- Implemented get_driver_profile read-only query.
- Incremented deliveries_completed and reputation_score on successful confirm_delivery.
- Added logic to start new drivers with a score of 0.
- Stored profiles in persistent storage keyed by driver address.
- Created unit tests covering single and multiple delivery score accumulation.
@drips-wave

drips-wave Bot commented Apr 27, 2026

Copy link
Copy Markdown

@Divine-mercyx 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! 🚀

Learn more about application limits

@Tybravo Tybravo merged commit d5cbddd into SwiftChainn:main Apr 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Smart Contract: Implement Driver Reputation Score Tracker

2 participants