Migratable

Git Source

Inherits: IMigratable

State Variables

_IMPLEMENTATION_SLOT

Storage slot with the address of the current implementation. keccak256('eip1967.proxy.implementation') - 1.

uint256 private constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

Functions

implementation

Returns the address of the current implementation.

function implementation() public view returns (address implementation_);

_migrate

Performs an arbitrary migration by delegate-calling migrator_.

The migrator fallback code defines the entire migration process, and takes no user-defined arguments.

function _migrate(address migrator_) internal;

Parameters

NameTypeDescription
migrator_addressThe address of a trusted migrator contract the will have the authority to perform any state changes, ETH transfers, and contract calls on behalf of this contract.