-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/588 timelocks #988
Feat/588 timelocks #988
Conversation
1867b80
to
2030046
Compare
(I force-pushed a revised history where only the new commits are added, as squash-merging doesn't play nice with using branchs this way, particularly when merging back to the feature branch) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Raúl 👋. Was having a quick snoop through this PR and I have a question about the permissioning for delayed actions.
DelayedCalls
are deployed callingVaultAuthorizer.deployDelayedCall
by an account with global permission granted for theactionId
that would be triggered byDelayedCall
Considering we know the value of where
for the DelayedCall
to be deployed why would we not allow users for which AccessControl.hasRole(actionId, account, where) == true
queue up this action?
…onorepo into feat/588-timelocks
Hi Tom, actually I just described it incorrectly, the method does actually allow for specific contracts:
I'm going to update the description |
Co-authored-by: Tom French <[email protected]>
@facuspagnuolo is basing his work on the authorizer revamp milestone on this and other unmerged PRs, closing as this will be superceded by those. |
Adds timelocked action execution in accordance to issue #558
setActionDelay
inVaultAuthorizer
setActionDelay
is in itself a delayed action, initially set with a delay of 1hDelayedCall
cantrigger
a delayed actionDelayedCall
s are deployed callingVaultAuthorizer.deployDelayedCall
by an account with permission granted for theactionId
that would be triggered byDelayedCall
DelayedCall
strigger
can be permissionless or restricted to accounts with global permission granted for the correspondentactionId
. This option is set when deploying them.DelayedCall
s cancellation is restricted to accounts with global permission granted for the correspondentactionId