ownership & killable
This commit is contained in:
25
src/IOwnable.sol
Normal file
25
src/IOwnable.sol
Normal file
@@ -0,0 +1,25 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
|
||||
/**
|
||||
* @dev OpenZeppelin's Ownable contract, split into internal and external parts.
|
||||
*/
|
||||
interface IOwnable {
|
||||
/**
|
||||
* @dev The caller account is not authorized to perform an operation.
|
||||
*/
|
||||
error OwnableUnauthorizedAccount(address account);
|
||||
|
||||
/**
|
||||
* @dev The owner is not a valid owner account. (eg. `address(0)`)
|
||||
*/
|
||||
error OwnableInvalidOwner(address owner);
|
||||
|
||||
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
|
||||
|
||||
function owner() external view returns (address);
|
||||
function renounceOwnership() external;
|
||||
function transferOwnership(address newOwner) external;
|
||||
}
|
||||
Reference in New Issue
Block a user