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

feat: add permissioned protocol deployments to the factory #26

Merged
merged 2 commits into from
May 29, 2024

Conversation

excaliborr
Copy link
Contributor

@excaliborr excaliborr commented May 29, 2024

🤖 Linear

Closes OPT-70

Copy link

linear bot commented May 29, 2024

OPT-70 Add UpgradeManager permissioned functions to the factory

  • upgradeManager immutable address of the manager
  • whitelistedMessenger : will be a mapping that has address ⇒ bool to check if a messenger can create an L2 adapter
  • isMessengerWhitelisted Will be a mapping of if a messenger has an adapter deployed
  • whitelistMessenger Will whitelist a messenger, can only be called by the UpgradeManager
  • Edit deploy to check for if a messenger is whitelisted

@excaliborr excaliborr marked this pull request as ready for review May 29, 2024 16:57
*/
function whitelistMessenger(address _l1Messenger) external onlyOwner {
isL1MessengerWhitelisted[_l1Messenger] = true;
function prepareDeploymentForMessenger(address _l1Messenger, address _executor) external onlyOwner {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing a check over isMessengerDeployed not deployed?

Copy link
Contributor Author

@excaliborr excaliborr May 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think its neccessary as if its already deployed it would revert in the factory anyway's, this function simply sets the address that can deploy the protocol, do you think the check is important here?

0xDiscotech
0xDiscotech previously approved these changes May 29, 2024
hexshire
hexshire previously approved these changes May 29, 2024
@excaliborr excaliborr dismissed stale reviews from hexshire and 0xDiscotech via cee1d50 May 29, 2024 17:14
@excaliborr excaliborr merged commit 94ee122 into dev May 29, 2024
4 checks passed
@excaliborr excaliborr deleted the feat/factory-registry branch May 29, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants