-
Notifications
You must be signed in to change notification settings - Fork 116
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
make Bridge pausable #86
Conversation
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.
There are enqueueDelayedMessage
entrypoints, defined in child contracts ERC20Bridge
and Bridge
, which can also be made pausable. Edit: although I guess it is enough if posting delayed msgs is paused in the Inbox
@@ -66,6 +70,18 @@ abstract contract AbsBridge is Initializable, DelegateCallAware, IBridge { | |||
} | |||
_; | |||
} | |||
modifier whenNotPaused() { |
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.
I think it would be nice to have more granular pauses available in the bridge. Eg:
- pause withdrawal / outbox
- pause inbox / delayed messages (we already have this in the inbox contract so maybe we could remove it there and put it here instead)
- pause seq inbox messages
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.
As also mentioned here #74 (review)
we can use OZ AccessControl by having a BridgeStorage base contract that inherit the current storage layout so it doesn't get shifted downward.
closing in favor of #107 |
Currently pausing batch posting requires all batchPosters be removed in the sequencer inbox, pausing outbox execution requires all allowed outboxes be removed in the bridge, and pausing force inclusion isn't possible / requires a proxy upgrade. This makes those things possible more cleanly.