feat: implement advanced credit scoring with on-chain history #76
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.
Description
Implemented an advanced credit scoring system within the
TeachLinkBridgecontract. This feature allows tracking of user creditworthiness based on their on-chain activity, specifically course completions and community contributions.Changes
score.rsto handle credit scoring logic.ContributionType(Content, Code, Community, Governance) andContributionstructs.CreditScoreUpdated,CourseCompleted, andContributionRecordedevents.record_course_completion,record_contribution, and getters for score/history in the public interface.Verification
tests/test_score.rscovering the full scoring flow.Checklist
Closes #58