Skip to content

Feature/multi regional tax jurisdiction mapping#243

Merged
JerryIdoko merged 6 commits intoGrant-Stream:mainfrom
Great-2025:feature/multi-regional-tax-jurisdiction-mapping
Mar 27, 2026
Merged

Feature/multi regional tax jurisdiction mapping#243
JerryIdoko merged 6 commits intoGrant-Stream:mainfrom
Great-2025:feature/multi-regional-tax-jurisdiction-mapping

Conversation

@Great-2025
Copy link
Copy Markdown
Contributor

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

akordavid373 and others added 6 commits March 27, 2026 17:38
…#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.
@JerryIdoko JerryIdoko merged commit 9b81f40 into Grant-Stream:main Mar 27, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

130. Support for Legal_Entity_dissolution_Auto-Pause

3 participants