Primary Lending Platform Proxy Admin

Methods

appendUpgrade

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

Parameters

Name
Type
Description

proxy

contract TransparentUpgradeableProxy

undefined

newImplementation

address

undefined

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

Name
Type
Description

proxy

contract TransparentUpgradeableProxy

undefined

newAdmin

address

undefined

delayPeriod

function delayPeriod() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

getProxyAdmin

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

Parameters

Name
Type
Description

proxy

contract TransparentUpgradeableProxy

undefined

Returns

Name
Type
Description

_0

address

undefined

getProxyImplementation

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

Parameters

Name
Type
Description

proxy

contract TransparentUpgradeableProxy

undefined

Returns

Name
Type
Description

_0

address

undefined

minimumDelayPeriod

Returns

Name
Type
Description

_0

uint256

undefined

owner

Returns the address of the current owner.

Returns

Name
Type
Description

_0

address

undefined

renounceOwnership

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

Parameters

Name
Type
Description

_delayPeriod

uint256

undefined

transferOwnership

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

Parameters

Name
Type
Description

newOwner

address

undefined

upgrade

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

Parameters

Name
Type
Description

proxy

contract TransparentUpgradeableProxy

undefined

implementation

address

undefined

upgradeAndCall

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

Name
Type
Description

proxy

contract TransparentUpgradeableProxy

undefined

implementation

address

undefined

data

bytes

undefined

upgradeData

Parameters

Name
Type
Description

_0

address

undefined

Returns

Name
Type
Description

appendTimestamp

uint256

undefined

delayPeriod

uint256

undefined

oldImplementation

address

undefined

newImplementation

address

undefined

Events

AppendUpgrade

Parameters

Name
Type
Description

proxy indexed

address

undefined

appendTimestamp

uint256

undefined

delayPeriod

uint256

undefined

oldImplementation

address

undefined

newImplementation

address

undefined

OwnershipTransferred

Parameters

Name
Type
Description

previousOwner indexed

address

undefined

newOwner indexed

address

undefined

SetDelayPeriod

Parameters

Name
Type
Description

oldDelayPeriod

uint256

undefined

newDelayPeriod

uint256

undefined

Upgrade

Parameters

Name
Type
Description

proxy indexed

address

undefined

upgradeTimestamp

uint256

undefined

oldImplementation

address

undefined

newImplementation

address

undefined

Last updated