feat: implement cross-contract orchestrator for automated remittance …#114
Open
Awointa wants to merge 3 commits intoRemitwise-Org:mainfrom
Open
feat: implement cross-contract orchestrator for automated remittance …#114Awointa wants to merge 3 commits intoRemitwise-Org:mainfrom
Awointa wants to merge 3 commits intoRemitwise-Org:mainfrom
Conversation
…allocation - Add orchestrator contract coordinating family wallet, remittance split, savings, bills, and insurance - Implement atomic multi-contract operations with automatic rollback on failure - Add permission checking and spending limit enforcement via family wallet - Create comprehensive integration test suite with 13 tests covering success and failure scenarios - Include audit logging, execution statistics, and event emission - Add detailed documentation and README with usage examples and gas estimates
Contributor
|
@Awointa Please fix the pipeline & resolve the conflicts |
…gration Implements spending limit validation function required by cross-contract orchestrator. Owners/admins have unlimited spending, members are limited by configured threshold.
Author
|
Done |
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: Cross-Contract Orchestrator Implementation (#7)
Introduces a dedicated orchestrator contract that coordinates atomic remittance allocation across savings, bill payment, and insurance contracts — with spending limit and permission enforcement delegated to the family wallet contract.
Key Features
Changes
Orchestrator Contract
family_wallet—check_spending_limit(previously blocking)Documentation
check_spending_limitbehaviour and permission tiers documentedGas Cost
~22,000 gas for a complete end-to-end remittance flow
Testing
cargo test --package orchestratorChecklist
check_spending_limitadded tofamily_walletcontractCloses #7