feat: implement hackathon team matching contract with comprehensive i…#846
Open
akinboyewaSamson wants to merge 1 commit into
Open
feat: implement hackathon team matching contract with comprehensive i…#846akinboyewaSamson wants to merge 1 commit into
akinboyewaSamson wants to merge 1 commit into
Conversation
…ntegration test suite and snapshots
|
@TobyKing007 is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@akinboyewaSamson 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! 🚀 |
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.
closes #799
PR Description - Implement Hackathon Team Matching Smart Contract
Overview
This PR implements the Hackathon Team Matching feature as a standalone, test-verified Soroban smart contract crate. It provides the platform's curriculum layer with on-chain functionality for forming teams, matching participants, and verifying developers' skills.
Proposed Changes
Crate Configuration: Created a isolated workspace member crate contracts/hackathon-team-matching to avoid compilation/namespace conflicts with educational templates in the main crate.
Developer Profiles: Allows developers to register on-chain profiles with skills and desired roles.
Team Management: Enables team creation, member capacity control, and team closing triggers.
Collaboration Flows: Implements a complete matching proposal flow:
Join Requests (Developer -> Team) and owner approvals.
Team Invitations (Team -> Developer) and developer acceptances.
Leave and remove member mechanics.
Dynamic Matching Engine: Query functions to retrieve matching teams or developers based on overlapping skills/roles.
Attestation Integration: Links dynamically with the SkillVerificationContract client to check if developers have verified skills on-chain.
Verification & Testing
9 unit and integration tests were added in src/test.rs covering registration, recruitment flows, dynamic matching logic, and external verification. All tests pass successfully:
text
running 9 tests
test test::test_check_skill_verified ... ok
test test::test_double_registration_fails - should panic ... ok
test test::test_initialize_and_registration ... ok
test test::test_create_team ... ok
test test::test_invitation_flow ... ok
test test::test_join_request_team_full - should panic ... ok
test test::test_join_request_flow ... ok
test test::test_leave_and_remove_member ... ok
test test::test_matching_engine ... ok
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.25s
Compilation target
Verified successful compilation to WebAssembly:
bash
cargo build --package hackathon-team-matching --target wasm32-unknown-unknown --release
Artifact built at: contracts/target/wasm32-unknown-unknown/release/hackathon_team_matching.wasm