11// SPDX-License-Identifier: MIT
22pragma solidity >= 0.8.0 ;
33
4-
54interface ITransparentProxyFactory {
6- event ProxyCreated (address proxy , address indexed logic , address indexed proxyAdmin );
7- event ProxyAdminCreated (address proxyAdmin , address indexed adminOwner );
5+ event ProxyCreated (address proxy , address indexed logic , address indexed initialOwner );
6+ event ProxyAdminCreated (address proxyAdmin , address indexed initialOwner );
87 event ProxyDeterministicCreated (
98 address proxy ,
109 address indexed logic ,
11- address indexed admin ,
10+ address indexed initialOwner ,
1211 bytes32 indexed salt
1312 );
1413 event ProxyAdminDeterministicCreated (
1514 address proxyAdmin ,
16- address indexed adminOwner ,
15+ address indexed initialOwner ,
1716 bytes32 indexed salt
1817 );
1918
2019 /**
2120 * @notice Creates a transparent proxy instance, doing the first initialization in construction
2221 * @dev Version using CREATE
2322 * @param logic The address of the implementation contract
24- * @param admin The admin of the proxy.
23+ * @param initialOwner The initial owner of the admin of the proxy.
2524 * @param data abi encoded call to the function with `initializer` (or `reinitializer`) modifier.
2625 * E.g. `abi.encodeWithSelector(mockImpl.initialize.selector, 2)`
2726 * for an `initialize` function being `function initialize(uint256 foo) external initializer;`
2827 * @return address The address of the proxy deployed
2928 **/
30- function create (address logic , address admin , bytes memory data ) external returns (address );
29+ function create (
30+ address logic ,
31+ address initialOwner ,
32+ bytes memory data
33+ ) external returns (address );
3134
3235 /**
3336 * @notice Creates a proxyAdmin instance, and transfers ownership to provided owner
3437 * @dev Version using CREATE
35- * @param adminOwner The owner of the proxyAdmin deployed.
38+ * @param initialOwner The initial owner of the proxyAdmin deployed.
3639 * @return address The address of the proxyAdmin deployed
3740 **/
38- function createProxyAdmin (address adminOwner ) external returns (address );
41+ function createProxyAdmin (address initialOwner ) external returns (address );
3942
4043 /**
4144 * @notice Creates a transparent proxy instance, doing the first initialization in construction
4245 * @dev Version using CREATE2, so deterministic
4346 * @param logic The address of the implementation contract
44- * @param admin The admin of the proxy.
47+ * @param initialOwner The initial owner of the admin of the proxy.
4548 * @param data abi encoded call to the function with `initializer` (or `reinitializer`) modifier.
4649 * E.g. `abi.encodeWithSelector(mockImpl.initialize.selector, 2)`
4750 * for an `initialize` function being `function initialize(uint256 foo) external initializer;`
@@ -50,7 +53,7 @@ interface ITransparentProxyFactory {
5053 **/
5154 function createDeterministic (
5255 address logic ,
53- address admin ,
56+ address initialOwner ,
5457 bytes memory data ,
5558 bytes32 salt
5659 ) external returns (address );
@@ -70,7 +73,7 @@ interface ITransparentProxyFactory {
7073 /**
7174 * @notice Pre-calculates and return the address on which `createDeterministic` will deploy a proxy
7275 * @param logic The address of the implementation contract
73- * @param admin The admin of the proxy
76+ * @param initialOwner The initial owner of the admin of the proxy.
7477 * @param data abi encoded call to the function with `initializer` (or `reinitializer`) modifier.
7578 * E.g. `abi.encodeWithSelector(mockImpl.initialize.selector, 2)`
7679 * for an `initialize` function being `function initialize(uint256 foo) external initializer;`
@@ -79,7 +82,7 @@ interface ITransparentProxyFactory {
7982 **/
8083 function predictCreateDeterministic (
8184 address logic ,
82- address admin ,
85+ address initialOwner ,
8386 bytes calldata data ,
8487 bytes32 salt
8588 ) external view returns (address );
0 commit comments