⬅️ Contracts
DEV NOTE: This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an explanation of why you would want to use this see the documentation for {TransparentUpgradeableProxy}.
Mainnet implementations
FeiDAOTimelock, IAaveIncentivesController, TribalChief, CollateralizationOracleWrapper
Events
OwnershipTransferred
event OwnershipTransferred(address,address)
Params
Param |
Type |
Notes |
previousOwner |
address indexed |
|
newOwner |
address indexed |
|
Methods
changeProxyAdmin
function changeProxyAdmin(address,address) nonpayable
Changes the admin of proxy
to newAdmin
. Requirements: - This contract must be the current admin of proxy
.
Params
Param |
Type |
Notes |
proxy |
address |
|
newAdmin |
address |
|
getProxyAdmin
function getProxyAdmin(address) view returns(address)
Returns the current admin of proxy
. Requirements: - This contract must be the admin of proxy
.
Params
Param |
Type |
Notes |
proxy |
address |
|
Returns
getProxyImplementation
function getProxyImplementation(address) view returns(address)
Returns the current implementation of proxy
. Requirements: - This contract must be the admin of proxy
.
Params
Param |
Type |
Notes |
proxy |
address |
|
Returns
owner
function owner() view returns(address)
Returns the address of the current owner.
Returns
renounceOwnership
function renounceOwnership() nonpayable
Leaves the contract without owner. It will not be possible to call onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
transferOwnership
function transferOwnership(address) nonpayable
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Params
Param |
Type |
Notes |
newOwner |
address |
|
upgrade
function upgrade(address,address) nonpayable
Upgrades proxy
to implementation
. See {TransparentUpgradeableProxy-upgradeTo}. Requirements: - This contract must be the admin of proxy
.
Params
Param |
Type |
Notes |
proxy |
address |
|
implementation |
address |
|
upgradeAndCall
function upgradeAndCall(address,address,bytes) payable
Upgrades proxy
to implementation
and calls a function on the new implementation. See {TransparentUpgradeableProxy-upgradeToAndCall}. Requirements: - This contract must be the admin of proxy
.
Params
Param |
Type |
Notes |
proxy |
address |
|
implementation |
address |
|
data |
bytes |
|
⬅️ Contracts