feat: Pause/upgrade, batch operations, and advanced access control#115
Merged
Baskarayelu merged 1 commit intoRemitwise-Org:mainfrom Feb 22, 2026
Merged
feat: Pause/upgrade, batch operations, and advanced access control#115Baskarayelu merged 1 commit intoRemitwise-Org:mainfrom
Baskarayelu merged 1 commit intoRemitwise-Org:mainfrom
Conversation
- Added pause functionality for the contract, allowing an admin to pause and unpause the contract and specific functions. - Introduced new error types for paused states and unauthorized actions. - Updated bill cancellation logic to require the owner's address as an argument. - Modified test cases and snapshots to reflect changes in function signatures and added scenarios for paused states.
Contributor
Author
|
@Baskarayelu Please review |
Contributor
|
Looks good to me! |
4 tasks
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
Implements Contract Pause & Upgrade (#39), Batch Operations (#40), and Advanced Access Control & Role Management (#41).
#39 – Contract Pause and Upgrade Mechanism
set_versionwith upgrade events.#40 – Batch Operations for Efficiency
batch_pay_bills(caller, bill_ids)– atomic, validated, max 50.batch_pay_premiums(caller, policy_ids)– atomic.batch_add_to_goals(caller, contributions)– atomic goal contributions.batch_add_family_members(caller, members),batch_remove_family_members(caller, addresses)– atomic, with size limits.#41 – Advanced Access Control and Role Management
require_role_at_least.set_role_expiry/get_role_expiry_public; expired roles rejected.get_access_audit(limit)(last 100 entries).Breaking / API changes
cancel_bill(env, bill_id)→cancel_bill(env, caller, bill_id);archive_paid_billsandbulk_cleanup_billsnow returnResult<u32, Error>.Tests & pipeline
cargo fmt,cargo clippy -- -D warnings, andcargo test --workspace --all-featurespass.