Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
30 lines
1.0 KiB
Solidity
30 lines
1.0 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "../IERC721.sol";
|
|
|
|
/**
|
|
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
|
|
* @dev See https://eips.ethereum.org/EIPS/eip-721
|
|
*/
|
|
interface IERC721Enumerable is IERC721 {
|
|
/**
|
|
* @dev Returns the total amount of tokens stored by the contract.
|
|
*/
|
|
function totalSupply() external view returns (uint256);
|
|
|
|
/**
|
|
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
|
|
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
|
|
*/
|
|
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
|
|
|
|
/**
|
|
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
|
|
* Use along with {totalSupply} to enumerate all tokens.
|
|
*/
|
|
function tokenByIndex(uint256 index) external view returns (uint256);
|
|
}
|