Browse Source

Add IERC5313.sol (#4013)

Co-authored-by: Ernesto García <ernestognw@gmail.com>
Hadrien Croubois 2 years ago
parent
commit
132e5aa97b
2 changed files with 22 additions and 0 deletions
  1. 5 0
      .changeset/happy-socks-travel.md
  2. 17 0
      contracts/interfaces/IERC5313.sol

+ 5 - 0
.changeset/happy-socks-travel.md

@@ -0,0 +1,5 @@
+---
+'openzeppelin-solidity': minor
+---
+
+`IERC5313`: Add an interface for EIP-5313 that is now final.

+ 17 - 0
contracts/interfaces/IERC5313.sol

@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: MIT
+
+pragma solidity ^0.8.0;
+
+/**
+ * @dev Interface for the Light Contract Ownership Standard.
+ *
+ * A standardized minimal interface required to identify an account that controls a contract
+ *
+ * _Available since v4.9._
+ */
+interface IERC5313 {
+    /**
+     * @dev Gets the address of the owner.
+     */
+    function owner() external view returns (address);
+}