feat: implement time-based operations and scheduling#58
Merged
Baskarayelu merged 2 commits intoRemitwise-Org:mainfrom Jan 31, 2026
Merged
Conversation
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.
Summary
Implemented comprehensive time-based operations and scheduling across all relevant contracts in the Remitwise platform. This feature enables automated, recurring, and time-locked operations for bills, savings, insurance, and remittances.
Changes
Bill Payments Contract
execute_due_schedules()function callable by anyoneSavings Goals Contract
execute_due_savings_schedules()functionInsurance Contract
execute_due_premium_schedules()functionRemittance Split Contract
Technical Implementation
Core Features
env.ledger().timestamp()for all time operationsKeeper Pattern
All contracts implement public execution functions that can be called by anyone (keepers):
execute_due_schedules()- Bill paymentsexecute_due_savings_schedules()- Savings goalsexecute_due_premium_schedules()- Insurance premiumsThese functions:
Data Structures
Testing
Comprehensive test coverage including:
Test Results: All 137 tests passing across all contracts
Validation
All checks pass after rebase on latest main:
cargo fmt -- --checkcargo clippy --all-targets --all-features -- -D warningscargo checkcargo test --workspace(137 tests passed)Breaking Changes
None. All changes are additive:
Usage Example
Future Enhancements
Potential improvements for future iterations:
Closes #42