Feat/add create match entrypoint#973
Merged
Olowodarey merged 8 commits intoJun 16, 2026
Merged
Conversation
- test_create_match_success: creator can add matches; match_count increments and list works - test_create_match_unauthorized: non-creator cannot add matches - test_create_match_event_not_found: error handling for missing events - test_create_match_event_cancelled: cannot add matches to cancelled events - test_create_match_invalid_team_names_empty: rejects empty team names - test_create_match_invalid_team_names_too_long: rejects names exceeding MAX_TEAM_NAME_LEN - test_create_match_invalid_team_names_identical: rejects identical team names - test_create_match_past_time_rejected: rejects non-future match times - test_create_multiple_matches_sorted_by_time: verifies matches are sorted by match_time in list
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…point with existing codebase
f8261dc to
7e2a201
Compare
Contributor
Author
|
@Olowodarey please review |
Collaborator
|
@tech-adrian well done but you are yet too add tests pls check issues discription |
Contributor
Author
done tests added |
Collaborator
|
@tech-adrian clean job welldone for your effort thank you |
12 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.
Create Match Entrypoint Implementation (#964)
Summary
Added the critical missing
create_matchentrypoint that allows event creators to add football matches to their events. This completes the contract's match management functionality.Changes
MatchErrorenum with 6 error variants and corecreate_matchimplementation with full validation flowcreate_matchandlist_event_matchesas contract entrypoints with proper error-to-panic mappingImplementation Details
caller.require_auth())list_event_matchessorted by match_time (ascending)Tests Passing
All 12 match tests pass, including edge cases for authorization, validation, and sorting.
Closes
#964