feat: Integrate Subscription and Attendance Log contracts - #313
Merged
truthixify merged 8 commits intoOct 4, 2025
Merged
Conversation
…des#218) - Add cross-contract calls from subscription.rs to attendance_log.rs - Implement log_attendance on subscription create/renew events - Add new error types for subscription and attendance integration - Add comprehensive test suite for subscription-attendance integration - All tests passing, contract compiles successfully Closes DistinctCodes#218
|
@Jayy4rl is attempting to deploy a commit to the naijabuz's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Author
|
@truthixify review and let me know |
- Fix Vec::collect() error in test_multiple_subscription_events_logged - Remove unused 'amount' parameter warning in log_subscription_event - All 26 tests now passing successfully
Contributor
|
Resolve conflicts and make the CI pass. |
- Fix imports: Add SubscriptionContract and Subscription to lib.rs - Update attendance_log API: Change from log_event to log_attendance - Add AttendanceAction parameter to subscription logging - Create log_attendance_internal to avoid double auth in cross-contract calls - Update tests: Replace get_events_by_user with get_logs_for_user - Fix test field names: user -> user_id for AttendanceLog - Add MembershipStatus import to tests - All 15 tests now passing - Format and clippy checks passing
Contributor
Author
|
CI passing now @truthixify |
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.
Add cross-contract calls from subscription.rs to attendance_log.rs
Implement log_attendance on subscription create/renew events
Add new error types for subscription and attendance integration
Add comprehensive test suite for subscription-attendance integration
All tests passing, contract compiles successfully
Closes [CONTRACT] Integrate Subscription and Attendance Log Contracts #218