Repository navigation
feat: implement atomic batch timelock queueing and execution - #1399
Open
ayomhide2-web wants to merge 1 commit into
Open
ayomhide2-web wants to merge 1 commit into
ayomhide2-web wants to merge 1 commit into
Conversation
Add queue_timelock_batch and execute_timelock_batch so an admin can stage several privileged changes behind one 24h timelock and apply them atomically. Each batched parameter set is hashed with the existing proposal-hash scheme and re-verified at execution, and any failing sub-operation reverts the whole batch. Closes JSE-ORG#1241 Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
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 batch timelock queueing and execution to allow administrators to perform multiple governance operations atomically within a single transaction.
Changes Made
TimelockBatchProposalstructure to store multiple timelock operations and their parameter hashes.DataKey::TimelockBatchOp(u32)for batch proposal storage.queue_timelock_batchto queue multiple governance operations.execute_timelock_batchto execute queued operations sequentially.Testing
cargo test --lib test_adminScope
Supports atomic multi-parameter governance updates without changing the existing timelock security requirements.
Closes #1241