-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(contracts): add create3 compatible proxy admin (#613)
Allow setting owner in ProxyAdmin constructor. To be able to deploy a ProxyAdmin via Create3 factory, we need to be able to specify the owner in the constructor. task: https://app.asana.com/0/1206208509925075/1206874791954734
- Loading branch information
1 parent
ee0def4
commit 1dbdd48
Showing
7 changed files
with
38 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// SPDX-License-Identifier: AGPL-3.0 | ||
pragma solidity ^0.8.12; | ||
|
||
import { ProxyAdmin as OZProxyAdmin } from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol"; | ||
|
||
/** | ||
* @title ProxyAdmin | ||
* @notice Wrapper around OpenZeppelin's ProxyAdmin that allows for setting the owner on deployment. | ||
* @dev This allows us to use Create3 to deploy | ||
*/ | ||
contract ProxyAdmin is OZProxyAdmin { | ||
constructor(address owner) OZProxyAdmin() { | ||
_transferOwnership(owner); | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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