Skip to content

Commit

Permalink
Added getProxyAdmin to the interface (#66)
Browse files Browse the repository at this point in the history
* Added getProxyAdmin to the interface

* inheritdoc added
  • Loading branch information
pavelvm5 authored Jan 31, 2025
1 parent 275365e commit b039c8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {ITransparentProxyFactory} from './interfaces/ITransparentProxyFactory.so
abstract contract TransparentProxyFactoryBase is ITransparentProxyFactory {
mapping(address proxy => address admin) internal _proxyToAdmin;

/// @inheritdoc ITransparentProxyFactory
function getProxyAdmin(address proxy) external view returns (address) {
return _proxyToAdmin[proxy];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,11 @@ interface ITransparentProxyFactory {
bytes32 salt,
address initialOwner
) external view returns (address);

/**
* @notice Returns the address of the `ProxyAdmin` associated with a given transparent proxy.
* @param proxy Address of the transparent proxy
* @return address Address of the `ProxyAdmin` that was deployed when the proxy was created
*/
function getProxyAdmin(address proxy) external view returns (address);
}

0 comments on commit b039c8c

Please sign in to comment.