chiru-labs / ERC721A

https://ERC721A.org
MIT License
2.51k stars 842 forks source link

is there an IERC721Enumerable implementation ? #478

Closed aekiratli closed 11 months ago

aekiratli commented 11 months ago
/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;
    // rest of the code
TypeError: Contract "StandardERC721A" should be marked as abstract.
  --> contracts/Azuki-ERC721A-NFT-Sale-basic/contracts/ERC721/ERC721a-standard.sol:27:1:
   |
27 | contract StandardERC721A is ERC721A, Ownable, IERC721Enumerable {
   | ^ (Relevant source part starts here and spans across multiple lines).
Note: Missing implementation:
  --> @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol:28:5:
   |
28 |     function tokenByIndex(uint256 index) external view returns (uint256);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Note: Missing implementation:
  --> @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol:22:5:
   |
22 |     function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
nidhhoggr commented 11 months ago

249