Skip to content

OwnableUpgradeable ​

Git Source

Inherits: Initializable

OwnableUpgradeable is a modified version of OpenZeppelin's Ownable contract to allow for upgradeable implementation

State Variables ​

_owner ​

solidity
address private _owner;

Functions ​

_msgSender ​

solidity
function _msgSender() internal view virtual returns (address);

_msgData ​

solidity
function _msgData() internal view virtual returns (bytes calldata);

__Ownable_init ​

Initializes the contract setting the deployer as the initial owner.

solidity
function __Ownable_init() internal onlyInitializing;

__Ownable_init_unchained ​

solidity
function __Ownable_init_unchained() internal onlyInitializing;

onlyOwner ​

Throws if called by any account other than the owner.

solidity
modifier onlyOwner();

owner ​

Returns the address of the current owner.

solidity
function owner() public view virtual returns (address);

_checkOwner ​

Throws if the sender is not the owner.

solidity
function _checkOwner() internal view virtual;

transferOwnership ​

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

solidity
function transferOwnership(address newOwner) public virtual onlyOwner;

_transferOwnership ​

Transfers ownership of the contract to a new account (newOwner). Internal function without access restriction.

solidity
function _transferOwnership(address newOwner) internal virtual;

Events ​

OwnershipTransferred ​

solidity
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);