Skip to main content

IBeaconController

Git Source

Functions

upgradeTo

a wrapper around UpgradeableBeacon to delegate to its upgradeTo function.

function upgradeTo(
address implementation
) external;

Parameters

NameTypeDescription
implementationaddressthe new implementation address to set in the beacon.

upgradeToAllowed

allows upgrades to a set of pre-approved implementations only with different privileges than upgradeTo.

function upgradeToAllowed(
address implementation
) external;

Parameters

NameTypeDescription
implementationaddressthe new implementation address to set in the beacon.

allowedList

gets the list of allowed implementations for emergency upgrades.

function allowedList() external view returns (address[] memory);

addToAllowedList

adds an implementation to the allowed list.

function addToAllowedList(
address implementation
) external;

Parameters

NameTypeDescription
implementationaddressthe implementation address to add.

removeFromAllowedList

removes an implementation from the allowed list.

function removeFromAllowedList(
address implementation
) external;

Parameters

NameTypeDescription
implementationaddressthe implementation address to remove.