Primary Lending Platform Proxy Admin

Methods

appendUpgrade

function appendUpgrade(contract TransparentUpgradeableProxy proxy, address newImplementation) external nonpayable

Parameters

changeProxyAdmin

function changeProxyAdmin(contract TransparentUpgradeableProxy proxy, address newAdmin) external nonpayable

Changes the admin of proxy to newAdmin. Requirements: - This contract must be the current admin of proxy.

Parameters

delayPeriod

function delayPeriod() external view returns (uint256)

Returns

getProxyAdmin

function getProxyAdmin(contract TransparentUpgradeableProxy proxy) external view returns (address)

Returns the current admin of proxy. Requirements: - This contract must be the admin of proxy.

Parameters

Returns

getProxyImplementation

function getProxyImplementation(contract TransparentUpgradeableProxy proxy) external view returns (address)

Returns the current implementation of proxy. Requirements: - This contract must be the admin of proxy.

Parameters

Returns

minimumDelayPeriod

function minimumDelayPeriod() external view returns (uint256)

Returns

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

renounceOwnership

function renounceOwnership() external 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.

setDelayPeriod

function setDelayPeriod(uint256 _delayPeriod) external nonpayable

Parameters

transferOwnership

function transferOwnership(address newOwner) external nonpayable

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters

upgrade

function upgrade(contract TransparentUpgradeableProxy proxy, address implementation) external nonpayable

Upgrades proxy to implementation. See {TransparentUpgradeableProxy-upgradeTo}. Requirements: - This contract must be the admin of proxy.

Parameters

upgradeAndCall

function upgradeAndCall(contract TransparentUpgradeableProxy proxy, address implementation, bytes data) external 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.

Parameters

upgradeData

function upgradeData(address) external view returns (uint256 appendTimestamp, uint256 delayPeriod, address oldImplementation, address newImplementation)

Parameters

Returns

Events

AppendUpgrade

event AppendUpgrade(address indexed proxy, uint256 appendTimestamp, uint256 delayPeriod, address oldImplementation, address newImplementation)

Parameters

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

SetDelayPeriod

event SetDelayPeriod(uint256 oldDelayPeriod, uint256 newDelayPeriod)

Parameters

Upgrade

event Upgrade(address indexed proxy, uint256 upgradeTimestamp, address oldImplementation, address newImplementation)

Parameters

Last updated