188 - OZ ProxyAdmin
OpenZeppelin ProxyAdmin: This is an auxiliary contract meant to be assigned as the admin of a TransparentUpgradeableProxy.
-
getProxyImplementation(contract TransparentUpgradeableProxy proxy)
→address
: Returns the current implementation of proxy. Requirements: This contract must be the admin of proxy. -
getProxyAdmin(contract TransparentUpgradeableProxy proxy)
→address
: Returns the current admin of proxy. Requirements: This contract must be the admin of proxy. -
changeProxyAdmin(contract TransparentUpgradeableProxy proxy, address newAdmin)
: Changes the admin of proxy to newAdmin. Requirements: This contract must be the current admin of proxy. -
upgrade(contract TransparentUpgradeableProxy proxy, address implementation)
: Upgrades proxy to implementation. Requirements: This contract must be the admin of proxy. -
upgradeAndCall(contract TransparentUpgradeableProxy proxy, address implementation, bytes data)
: Upgrades proxy to implementation and calls a function on the new implementation. Requirements: This contract must be the admin of proxy.
- Admin Contract -> TransparentUpgradeableProxy
getProxyImplementation()
getProxyAdmin()
changeProxyAdmin()
upgrade(proxy, implementation)
upgradeAndCall(proxy, implementation, data)