Feat/usdc payment validation - #282
Merged
truthixify merged 12 commits intoOct 1, 2025
Merged
Conversation
- Add subscription module with payment validation logic - Implement validate_payment function with USDC token verification - Integrate payment validation into create_subscription workflow - Add comprehensive error handling for payment scenarios - Include full test coverage for payment validation features - Ensure USDC contract address validation and storage - Support subscription creation with validated USDC payments All tests passing and compilation successful.
- Update serde from 1.0.227 to 1.0.228 - Update quote from 1.0.40 to 1.0.41 - Update ref-cast and ref-cast-impl to 1.0.25 - Update cc from 1.2.38 to 1.2.39 Resolves merge conflicts with main branch.
…teemoney/ManageHub into feat/usdc-payment-validation
|
@jayteemoney 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
|
Currently the CI is failing, can you fix the CI, once it passes, I’ll merge your PR. |
Contributor
|
Just make the format check pass and your Pr will be merged. |
Contributor
Author
|
alright i will rectify and make the format check pass... i had technical
issues with my pc but i have now rectified it and i will
get back to work
…On Wed, Oct 1, 2025 at 12:27 AM truthixify ***@***.***> wrote:
*truthixify* left a comment (DistinctCodes/ManageHub#282)
<#282 (comment)>
Just make the format check pass and your Pr will be merged.
—
Reply to this email directly, view it on GitHub
<#282 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BKMYX5UBD5TQIKUF3D2CE233VMGVZAVCNFSM6AAAAACHZPZPVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGNJUGEYDQNRRGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
…teemoney/ManageHub into feat/usdc-payment-validation
Contributor
|
It’s still failing for the format check, you can run |
…feat/usdc-payment-validation
Contributor
Author
|
i ran cargo fmt in the contract folder and it was successful. sorry for all inconveniences |
Contributor
|
Oh, did you fix thr clippy issues also? @jayteemoney also, did you allow maintainers to edit? I can help fix the issue. |
Contributor
Author
|
i think maintainers can edit by default and to be honest i wil need you to help fix the issue |
Contributor
|
Hey @jayteemoney It's all green now, thank you for your contribution. |
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.
feat: Add USDC payment validation for subscription system
closes #220
Implemented full USDC payment validation for subscription creation.
Added new subscription.rs module with payment verification logic.
Integrated subscription management into the main contract interface.
Introduced 7 new error types in errors.rs for payment validation failures.
Extended types.rs with a new Subscription contract type.
Added persistent storage for subscription and USDC configuration.
Comprehensive test suite: 9 new payment validation tests + all existing 27 passing.
Covered edge cases and error scenarios for USDC validation.
Updated Cargo.lock to resolve dependency conflicts.
Provides a secure foundation for subscription-based services with USDC support.