A Soroban smart contract that coordinates cross-contract remittance flows across family wallet, remittance split, savings goals, bill payments, and insurance.
- Coordinated multi-contract remittance execution
- Reentrancy protection (execution lock)
- Compensation/rollback support for failed flows
- Signed and unsigned flow execution
- Audit logging
- Execution statistics tracking
- Per-address nonce-based replay protection
use orchestrator::{OrchestratorClient, RemittanceFlowParams};
let params = RemittanceFlowParams {
caller: owner.clone(),
total_amount: 10_000_0000000, // 10 USDC
family_wallet: family_wallet_addr,
remittance_split: remittance_split_addr,
savings: savings_addr,
bills: bills_addr,
insurance: insurance_addr,
goal_id: 1,
bill_id: 1,
policy_id: 1,
};
client.execute_remittance_flow(params);Executes the full remittance flow across all contracts.
Executes the flow with signed request validation.
Returns execution statistics.
Returns paginated audit log entries.
Returns the current nonce for an address.
cargo test -p orchestrator