Skip to content

Commit 3770948

Browse files
Krishang NadgaudaKrishang Nadgauda
authored andcommitted
prefix I to EIP interfaces and move to eip/interface
1 parent 562b963 commit 3770948

22 files changed

+925
-449
lines changed

contracts/eip/ERC1155.sol renamed to contracts/eip/interface/IERC1155.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pragma solidity ^0.8.0;
66
@dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1155.md
77
Note: The ERC-165 identifier for this interface is 0xd9b67a26.
88
*/
9-
interface ERC1155 {
9+
interface IERC1155 {
1010
/**
1111
@dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard).
1212
The `_operator` argument MUST be msg.sender.

contracts/eip/ERC1155Enumerable.sol renamed to contracts/eip/interface/IERC1155Enumerable.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pragma solidity ^0.8.0;
33

44
/// @title ERC1155 Non-Fungible Token Standard, optional enumeration extension
55
/// @dev See https://eips.ethereum.org/EIPS/eip-1155
6-
interface ERC1155Enumerable {
6+
interface IERC1155Enumerable {
77
/// @notice Returns the next token ID available for minting
88
/// @return The token identifier for the `_index`th NFT,
99
/// (sort order not specified)

contracts/eip/ERC1155Metadata.sol renamed to contracts/eip/interface/IERC1155Metadata.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pragma solidity ^0.8.0;
44
/**
55
Note: The ERC-165 identifier for this interface is 0x0e89341c.
66
*/
7-
interface ERC1155Metadata {
7+
interface IERC1155Metadata {
88
/**
99
@notice A distinct Uniform Resource Identifier (URI) for a given token.
1010
@dev URIs are defined in RFC 3986.

contracts/eip/ERC1155Supply.sol renamed to contracts/eip/interface/IERC1155Supply.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pragma solidity ^0.8.0;
33

44
/// @title ERC1155S Non-Fungible Token Standard, optional supply extension
55
/// @dev See https://eips.ethereum.org/EIPS/eip-1155
6-
interface ERC1155Supply {
6+
interface IERC1155Supply {
77
/// @notice Count NFTs tracked by this contract
88
/// @return A count of valid NFTs tracked by this contract, where each one of
99
/// them has an assigned and queryable owner not equal to the zero address

contracts/eip/ERC20.sol renamed to contracts/eip/interface/IERC20.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pragma solidity ^0.8.0;
55
* @title ERC20 interface
66
* @dev see https://github.com/ethereum/EIPs/issues/20
77
*/
8-
interface ERC20 {
8+
interface IERC20 {
99
function totalSupply() external view returns (uint256);
1010

1111
function balanceOf(address who) external view returns (uint256);

contracts/eip/ERC20Metadata.sol renamed to contracts/eip/interface/IERC20Metadata.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pragma solidity ^0.8.0;
55
* @title ERC20Metadata interface
66
* @dev see https://github.com/ethereum/EIPs/issues/20
77
*/
8-
interface ERC20Metadata {
8+
interface IERC20Metadata {
99
function name() external view returns (string memory);
1010

1111
function symbol() external view returns (string memory);

contracts/eip/ERC721.sol renamed to contracts/eip/interface/IERC721.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pragma solidity ^0.8.0;
55
/// @dev See https://eips.ethereum.org/EIPS/eip-721
66
/// Note: the ERC-165 identifier for this interface is 0x80ac58cd.
77
/* is ERC165 */
8-
interface ERC721 {
8+
interface IERC721 {
99
/// @dev This emits when ownership of any NFT changes by any mechanism.
1010
/// This event emits when NFTs are created (`from` == 0) and destroyed
1111
/// (`to` == 0). Exception: during contract creation, any number of NFTs

contracts/eip/ERC721Enumerable.sol renamed to contracts/eip/interface/IERC721Enumerable.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pragma solidity ^0.8.0;
55
/// @dev See https://eips.ethereum.org/EIPS/eip-721
66
/// Note: the ERC-165 identifier for this interface is 0x780e9d63.
77
/* is ERC721 */
8-
interface ERC721Enumerable {
8+
interface IERC721Enumerable {
99
/// @notice Enumerate valid NFTs
1010
/// @dev Throws if `_index` >= `totalSupply()`.
1111
/// @param _index A counter less than `totalSupply()`

contracts/eip/ERC721Metadata.sol renamed to contracts/eip/interface/IERC721Metadata.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pragma solidity ^0.8.0;
55
/// @dev See https://eips.ethereum.org/EIPS/eip-721
66
/// Note: the ERC-165 identifier for this interface is 0x5b5e139f.
77
/* is ERC721 */
8-
interface ERC721Metadata {
8+
interface IERC721Metadata {
99
/// @notice A descriptive name for a collection of NFTs in this contract
1010
function name() external view returns (string memory);
1111

contracts/eip/ERC721Supply.sol renamed to contracts/eip/interface/IERC721Supply.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pragma solidity ^0.8.0;
55
/// @dev See https://eips.ethereum.org/EIPS/eip-721
66
/// Note: the ERC-165 identifier for this interface is 0x780e9d63.
77
/* is ERC721 */
8-
interface ERC721Supply {
8+
interface IERC721Supply {
99
/// @notice Count NFTs tracked by this contract
1010
/// @return A count of valid NFTs tracked by this contract, where each one of
1111
/// them has an assigned and queryable owner not equal to the zero address

0 commit comments

Comments
 (0)