File tree 5 files changed +29
-9
lines changed
5 files changed +29
-9
lines changed Original file line number Diff line number Diff line change 3
3
pragma solidity ^ 0.8.20 ;
4
4
5
5
import { IERC173 } from '../../interfaces/IERC173.sol ' ;
6
+ import { IERC5313 } from '../../interfaces/IERC5313.sol ' ;
6
7
import { IOwnable } from './IOwnable.sol ' ;
7
8
import { _Ownable } from './_Ownable.sol ' ;
8
9
@@ -11,7 +12,7 @@ import { _Ownable } from './_Ownable.sol';
11
12
*/
12
13
abstract contract Ownable is IOwnable , _Ownable {
13
14
/**
14
- * @inheritdoc IERC173
15
+ * @inheritdoc IERC5313
15
16
*/
16
17
function owner () external view returns (address ) {
17
18
return _owner ();
Original file line number Diff line number Diff line change 3
3
pragma solidity ^ 0.8.20 ;
4
4
5
5
import { _IERC173 } from './_IERC173.sol ' ;
6
+ import { IERC5313 } from './IERC5313.sol ' ;
6
7
7
8
/**
8
9
* @title Contract ownership standard interface
9
10
* @dev see https://eips.ethereum.org/EIPS/eip-173
10
11
*/
11
- interface IERC173 is _IERC173 {
12
- /**
13
- * @notice get the ERC173 contract owner
14
- * @return contract owner
15
- */
16
- function owner () external view returns (address );
17
-
12
+ interface IERC173 is _IERC173 , IERC5313 {
18
13
/**
19
14
* @notice transfer contract ownership to new account
20
15
* @param account address of new owner
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: MIT
2
+
3
+ pragma solidity ^ 0.8.20 ;
4
+
5
+ import { _IERC5313 } from './_IERC5313.sol ' ;
6
+
7
+ /**
8
+ * @title Minimal contract ownership standard interface
9
+ * @dev see https://eips.ethereum.org/EIPS/eip-5313
10
+ */
11
+ interface IERC5313 is _IERC5313 {
12
+ /**
13
+ * @notice query the ERC173/ERC5313 contract owner
14
+ * @return owner contract owner
15
+ */
16
+ function owner () external view returns (address owner );
17
+ }
Original file line number Diff line number Diff line change 2
2
3
3
pragma solidity ^ 0.8.20 ;
4
4
5
+ import { _IERC5313 } from './_IERC5313.sol ' ;
6
+
5
7
/**
6
8
* @title Partial ERC173 interface needed by internal functions
7
9
*/
8
- interface _IERC173 {
10
+ interface _IERC173 is _IERC5313 {
9
11
event OwnershipTransferred (
10
12
address indexed previousOwner ,
11
13
address indexed newOwner
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: MIT
2
+
3
+ pragma solidity ^ 0.8.20 ;
4
+
5
+ interface _IERC5313 {}
You can’t perform that action at this time.
0 commit comments