Feature/multi regional tax jurisdiction mapping#243
Merged
JerryIdoko merged 6 commits intoGrant-Stream:mainfrom Mar 27, 2026
Merged
Conversation
…#207) - Add JurisdictionInfo struct for tax jurisdiction data - Add GranteeRecord struct with jurisdiction_code field - Add TaxWithholdingRecord struct for tax payment tracking - Add register_jurisdiction function for DAO to manage tax jurisdictions - Add update_jurisdiction function for updating tax rates as laws change - Add register_grantee_jurisdiction function for grantees to specify tax info - Add calculate_tax_withholding function with treaty benefit support - Add process_payment_with_tax function for automated tax withholding - Add comprehensive error handling for tax operations - Add storage keys for jurisdiction and tax data - Add helper functions for jurisdiction management This makes Grant-Stream a tax-native protocol capable of handling global workforce while maintaining legal compliance with international tax authorities.
…-Stream#207 - Add comprehensive jurisdiction registry system with tax rate management - Implement GranteeRecord with jurisdiction_code field for tax compliance - Create tax withholding calculation engine with treaty support - Add payment processing with automatic tax withholding - Implement DAO governance for jurisdiction registry updates - Add comprehensive test suite for all tax jurisdiction functionality - Create detailed implementation documentation This makes Grant-Stream a 'Tax-Native' protocol capable of handling global tax compliance for developers worldwide while maintaining legal standing with international tax authorities.
…-Stream#207 - Add jurisdiction_code to GranteeRecord struct - Implement Jurisdiction Registry with DAO governance - Create dynamic tax withholding calculation system - Add tax treaty benefits support - Build comprehensive tax payment processing - Include full test suite for all functionality - Transform Grant-Stream into Tax-Native protocol This enables global workforce management while maintaining legal compliance with international tax authorities.
…ps://github.com/Great-2025/Grant-Stream-Contracts into feature/multi-regional-tax-jurisdiction-mapping
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.
Core Feature Delivered:
Entity Monitor Hook: Legal Oracle can report entity dissolution
Auto-Pause Mechanism: All active streams to dissolved entities are frozen
Treasury Protection: Prevents funds from going to legal void entities
Key Components Implemented:
Legal Entity Status System
5 status types: Active, Dissolved, Inactive, Suspended, Bankrupt
Status caching with 24-hour expiration
Comprehensive audit trail
Security Framework
Admin-only Legal Oracle configuration
Oracle authorization verification
Duplicate report prevention
Auto-Pause Logic
Automatic detection of active grants for dissolved entities
Atomic pausing of multiple grants
Event emission for transparency
Complete API
8 new functions for full lifecycle management
Public query functions
Admin and Oracle-only functions
Comprehensive Testing
8 test cases covering all scenarios
Error condition validation
Edge case handling
closes #208