feat: Add KYC file upload validation (#936) - #1025
Open
Kenlachy wants to merge 4 commits into
Open
Conversation
- Add liveness_expiration field to InheritancePlan struct - Add LivenessExpired error variant for emergency exit validation - Implement withdraw_plan function with owner signature verification - Add liveness expiration check (30 days from plan creation) - Implement secure token transfer back to owner - Add reentrancy protection by deactivating plan before transfer - Add comprehensive test suite for withdraw_plan functionality - Tests cover success case, liveness expiration, unauthorized access, and event emission
- Implement InheritX smart contract in Solidity - Add withdraw_plan function for emergency exit - Owner signature verification via msg.sender - Liveness expiration check (30 days default) - Safe token transfers using OpenZeppelin SafeERC20 - Reentrancy protection by deactivating plan before transfer - Add plan creation and yield accumulation functions - Add view functions for plan details and withdrawal checks
- Add multipart support to axum for file upload handling - Implement file type validation (JPEG, PNG, PDF only) - Implement 10MB file size limit to prevent storage overflow - Add proper error responses for validation failures - Return detailed file metadata on successful upload
|
@Kenlachy 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! 🚀 |
Contributor
|
@Kenlachy |
Contributor
|
@Kenlachy |
Contributor
|
@Kenlachy |
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 KYC file upload validation
closes #936