Skip to content
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

Closed
wants to merge 4 commits into from
Closed

make Bridge pausable #86

wants to merge 4 commits into from

Conversation

DZGoldman
Copy link
Contributor

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.

  • Also removed acceptFundsFromOldBridge while at it.
  • AFAIK upgrading to inherit OZ's PausableUpgradeable would mess up the storage layout, so we just include the pause methods directly.

@cla-bot cla-bot bot added the s label Oct 25, 2023
@DZGoldman DZGoldman marked this pull request as ready for review October 25, 2023 19:55
Copy link
Contributor

@gvladika gvladika left a 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() {
Copy link
Collaborator

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

Copy link
Member

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.

@gzeoneth gzeoneth mentioned this pull request Nov 3, 2023
3 tasks
@DZGoldman
Copy link
Contributor Author

closing in favor of #107

@DZGoldman DZGoldman closed this Jan 10, 2024
@gzeoneth gzeoneth deleted the make-bridge-pausable branch July 8, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants