Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
113 FMK
Holders
81
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 FMKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
FindMyKiller
Compiler Version
v0.8.24+commit.e11b9ed9
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // https://findmykiller.xyz // My name is Lena Ivanova. // If you’re reading this, two things are true. One, I’m dead. And two, the blockchain is in peril. // Etherscan > Contract >> Read Contract > ?????????? // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File @openzeppelin/contracts/access/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File contracts/IClueManager.sol // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.20; interface IClueManager { function showClue() external view returns (string memory); } // File erc721a/contracts/[email protected] // Original license: SPDX_License_Identifier: MIT // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); /** * `_sequentialUpTo()` must be greater than `_startTokenId()`. */ error SequentialUpToTooSmall(); /** * The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`. */ error SequentialMintExceedsLimit(); /** * Spot minting requires a `tokenId` greater than `_sequentialUpTo()`. */ error SpotMintTokenIdTooSmall(); /** * Cannot mint over a token that already exists. */ error TokenAlreadyExists(); /** * The feature is not compatible with spot mints. */ error NotCompatibleWithSpotMints(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer( address indexed from, address indexed to, uint256 indexed tokenId ); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval( address indexed owner, address indexed approved, uint256 indexed tokenId ); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll( address indexed owner, address indexed operator, bool approved ); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved( uint256 tokenId ) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll( address owner, address operator ) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer( uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to ); } // File erc721a/contracts/[email protected] // Original license: SPDX_License_Identifier: MIT // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * The `_sequentialUpTo()` function can be overriden to enable spot mints * (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // The amount of tokens minted above `_sequentialUpTo()`. // We call these spot mints (i.e. non-sequential mints). uint256 private _spotMinted; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID for sequential mints. * * Override this function to change the starting token ID for sequential mints. * * Note: The value returned must never change after any tokens have been minted. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the maximum token ID (inclusive) for sequential mints. * * Override this function to return a value less than 2**256 - 1, * but greater than `_startTokenId()`, to enable spot (non-sequential) mints. * * Note: The value returned must never change after any tokens have been minted. */ function _sequentialUpTo() internal view virtual returns (uint256) { return type(uint256).max; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256 result) { // Counter underflow is impossible as `_burnCounter` cannot be incremented // more than `_currentIndex + _spotMinted - _startTokenId()` times. unchecked { // With spot minting, the intermediate `result` can be temporarily negative, // and the computation must be unchecked. result = _currentIndex - _burnCounter - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256 result) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { result = _currentIndex - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } /** * @dev Returns the total number of tokens that are spot-minted. */ function _totalSpotMinted() internal view virtual returns (uint256) { return _spotMinted; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf( address owner ) public view virtual override returns (uint256) { if (owner == address(0)) _revert(BalanceQueryForZeroAddress.selector); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface( bytes4 interfaceId ) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI( uint256 tokenId ) public view virtual override returns (string memory) { if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf( uint256 tokenId ) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf( uint256 tokenId ) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt( uint256 index ) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized( uint256 index ) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * @dev Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf( uint256 tokenId ) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; if (tokenId > _sequentialUpTo()) { if (_packedOwnershipExists(packed)) return packed; _revert(OwnerQueryForNonexistentToken.selector); } // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership( uint256 packed ) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData( address owner, uint256 flags ) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or( owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags) ) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag( uint256 quantity ) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve( address to, uint256 tokenId ) public payable virtual override { _approve(to, tokenId, true); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved( uint256 tokenId ) public view virtual override returns (address) { if (!_exists(tokenId)) _revert(ApprovalQueryForNonexistentToken.selector); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll( address operator, bool approved ) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll( address owner, address operator ) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists( uint256 tokenId ) internal view virtual returns (bool result) { if (_startTokenId() <= tokenId) { if (tokenId > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]); if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @dev Returns whether `packed` represents a token that exists. */ function _packedOwnershipExists( uint256 packed ) private pure returns (bool result) { assembly { // The following is equivalent to `owner != address(0) && burned == false`. // Symbolically tested. result := gt( and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_BURNED) ) } } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress( uint256 tokenId ) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); ( uint256 approvedAddressSlot, address approvedAddress ) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if ( !_isSenderApprovedOrOwner( approvedAddress, from, _msgSenderERC721A() ) ) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received( _msgSenderERC721A(), from, tokenId, _data ) returns (bytes4 retval) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { _revert(TransferToNonERC721ReceiverImplementer.selector); } assembly { revert(add(32, reason), mload(reason)) } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) _revert(MintZeroQuantity.selector); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); do { assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) _revert(MintToZeroAddress.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); emit ConsecutiveTransfer( startTokenId, startTokenId + quantity - 1, address(0), to ); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if ( !_checkContractOnERC721Received( address(0), to, index++, _data ) ) { _revert( TransferToNonERC721ReceiverImplementer.selector ); } } while (index < end); // This prevents reentrancy to `_safeMint`. // It does not prevent reentrancy to `_safeMintSpot`. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ""); } /** * @dev Mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * Emits a {Transfer} event for each mint. */ function _mintSpot(address to, uint256 tokenId) internal virtual { if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector); uint256 prevOwnershipPacked = _packedOwnerships[tokenId]; if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector); _beforeTokenTransfers(address(0), to, tokenId, 1); // Overflows are incredibly unrealistic. // The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1. // `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `true` (as `quantity == 1`). _packedOwnerships[tokenId] = _packOwnershipData( to, _nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked) ); // Updates: // - `balance += 1`. // - `numberMinted += 1`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += (1 << _BITPOS_NUMBER_MINTED) | 1; // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. tokenId // `tokenId`. ) } ++_spotMinted; } _afterTokenTransfers(address(0), to, tokenId, 1); } /** * @dev Safely mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * See {_mintSpot}. * * Emits a {Transfer} event. */ function _safeMintSpot( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mintSpot(to, tokenId); unchecked { if (to.code.length != 0) { uint256 currentSpotMinted = _spotMinted; if ( !_checkContractOnERC721Received( address(0), to, tokenId, _data ) ) { _revert(TransferToNonERC721ReceiverImplementer.selector); } // This prevents reentrancy to `_safeMintSpot`. // It does not prevent reentrancy to `_safeMint`. if (_spotMinted != currentSpotMinted) revert(); } } } /** * @dev Equivalent to `_safeMintSpot(to, tokenId, '')`. */ function _safeMintSpot(address to, uint256 tokenId) internal virtual { _safeMintSpot(to, tokenId, ""); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); ( uint256 approvedAddressSlot, address approvedAddress ) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if ( !_isSenderApprovedOrOwner( approvedAddress, from, _msgSenderERC721A() ) ) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as `_burnCounter` cannot be exceed `_currentIndex + _spotMinted` times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) _revert(OwnershipNotInitializedForExtraData.selector); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString( uint256 value ) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } } // File contracts/FindMyKiller.sol // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.20; interface ILEADS721A { error InsufficientSupply(); error InsufficientPayment(); error NotPublicSale(); error BeingGreedy(); error NonExistantToken(); } contract FindMyKiller is ERC721A, Ownable, ILEADS721A { enum Status { PAUSED, PUBLICSALE } uint256 public MintCost; uint256 public MaximumSupply; uint256 public MintCap; uint256 private FrodoMints; string MetadataURI; Status public SalesStatus; IClueManager private ClueManager; constructor( address _clueManagerAddress, uint256 _supply, string memory _uri, uint256 _mintcap ) ERC721A("FMK", "FMK") Ownable(msg.sender) { ClueManager = IClueManager(_clueManagerAddress); MaximumSupply = _supply; MetadataURI = _uri; MintCost = 0.05 ether; MintCap = _mintcap; } function getClue() public view returns (string memory) { return ClueManager.showClue(); } function setSalesStatus(Status _status) public onlyOwner { SalesStatus = _status; } function setPrices(uint256 _publicsale) public onlyOwner { MintCost = _publicsale; } function setMetadataURI(string memory _uri) external onlyOwner { MetadataURI = _uri; } function withdraw(address payable _withdrawTo) external onlyOwner { _withdrawTo.transfer(address(this).balance); } function setClueManager(address _clueManagerAddress) external onlyOwner { ClueManager = IClueManager(_clueManagerAddress); } function _baseURI() internal view override returns (string memory) { return MetadataURI; } function tokenURI( uint256 tokenId ) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert NonExistantToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ""; } modifier publicsaleOnly() { if (SalesStatus != Status.PUBLICSALE) revert NotPublicSale(); _; } modifier paidEnough(uint256 quantity, uint256 cost) { if (msg.value < (quantity * cost)) revert InsufficientPayment(); _; } modifier checkSupply(uint256 quantity) { if (_totalMinted() + quantity > MaximumSupply) revert InsufficientSupply(); if (quantity > MintCap) revert BeingGreedy(); _; } modifier stopFrodo(uint256 quantity) { if (FrodoMints + quantity > 50) revert InsufficientSupply(); _; } function publicMint( uint256 quantity ) public payable publicsaleOnly paidEnough(quantity, MintCost) checkSupply(quantity) { _mint(msg.sender, quantity); } function frodoMinter( address recipient, uint256 quantity ) external onlyOwner stopFrodo(quantity) checkSupply(quantity) { _mint(recipient, quantity); FrodoMints += quantity; } }
{ "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "remappings": [] }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_clueManagerAddress","type":"address"},{"internalType":"uint256","name":"_supply","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"uint256","name":"_mintcap","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"BeingGreedy","type":"error"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"InsufficientSupply","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NonExistantToken","type":"error"},{"inputs":[],"name":"NotCompatibleWithSpotMints","type":"error"},{"inputs":[],"name":"NotPublicSale","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SequentialMintExceedsLimit","type":"error"},{"inputs":[],"name":"SequentialUpToTooSmall","type":"error"},{"inputs":[],"name":"SpotMintTokenIdTooSmall","type":"error"},{"inputs":[],"name":"TokenAlreadyExists","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MaximumSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MintCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SalesStatus","outputs":[{"internalType":"enum FindMyKiller.Status","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"frodoMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClue","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_clueManagerAddress","type":"address"}],"name":"setClueManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicsale","type":"uint256"}],"name":"setPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum FindMyKiller.Status","name":"_status","type":"uint8"}],"name":"setSalesStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_withdrawTo","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801562000010575f80fd5b5060405162001ac338038062001ac383398101604081905262000033916200016f565b604080518082018252600380825262464d4b60e81b6020808401829052845180860190955291845290830152339160026200006f8382620002f7565b5060036200007e8282620002f7565b50505f8055506001600160a01b038116620000b257604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b620000bd816200010a565b50600f8054610100600160a81b0319166101006001600160a01b03871602179055600b839055600e620000f18382620002f7565b5066b1a2bc2ec50000600a55600c5550620003c3915050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b5f805f806080858703121562000183575f80fd5b84516001600160a01b03811681146200019a575f80fd5b60208681015160408801519296509450906001600160401b0380821115620001c0575f80fd5b818801915088601f830112620001d4575f80fd5b815181811115620001e957620001e96200015b565b604051601f8201601f19908116603f011681019083821181831017156200021457620002146200015b565b816040528281528b868487010111156200022c575f80fd5b5f93505b828410156200024f578484018601518185018701529285019262000230565b5f928101909501919091525050506060959095015193969295505050565b600181811c908216806200028257607f821691505b602082108103620002a157634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620002f257805f5260205f20601f840160051c81016020851015620002ce5750805b601f840160051c820191505b81811015620002ef575f8155600101620002da565b50505b505050565b81516001600160401b038111156200031357620003136200015b565b6200032b816200032484546200026d565b84620002a7565b602080601f83116001811462000361575f8415620003495750858301515b5f19600386901b1c1916600185901b178555620003bb565b5f85815260208120601f198616915b82811015620003915788860151825594840194600190910190840162000370565b5085821015620003af57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b6116f280620003d15f395ff3fe6080604052600436106101ba575f3560e01c8063715018a6116100f2578063b88d4fde11610092578063e33c912c11610062578063e33c912c1461047c578063e985e9c51461049b578063f2fde38b146104e2578063f92c3a9314610501575f80fd5b8063b88d4fde14610420578063bdbb7e6a14610433578063c87b56dd14610448578063d04854e014610467575f80fd5b80638da5cb5b116100cd5780638da5cb5b146103b157806395d89b41146103ce578063a22cb465146103e2578063a3201daa14610401575f80fd5b8063715018a61461035f57806371860d7d14610373578063750521f514610392575f80fd5b80632d70eb101161015d57806342842e0e1161013857806342842e0e146102ef57806351cff8d9146103025780636352211e1461032157806370a0823114610340575f80fd5b80632d70eb10146102a95780632db11544146102c85780633c4c51c9146102db575f80fd5b8063095ea7b311610198578063095ea7b31461024a57806318160ddd1461025f578063200ba92f1461028157806323b872dd14610296575f80fd5b806301ffc9a7146101be57806306fdde03146101f2578063081812fc14610213575b5f80fd5b3480156101c9575f80fd5b506101dd6101d83660046110e2565b610527565b60405190151581526020015b60405180910390f35b3480156101fd575f80fd5b50610206610578565b6040516101e9919061114a565b34801561021e575f80fd5b5061023261022d36600461115c565b610608565b6040516001600160a01b0390911681526020016101e9565b61025d610258366004611187565b610641565b005b34801561026a575f80fd5b50610273610651565b6040519081526020016101e9565b34801561028c575f80fd5b50610273600a5481565b61025d6102a43660046111b1565b610668565b3480156102b4575f80fd5b5061025d6102c3366004611187565b6107de565b61025d6102d636600461115c565b610895565b3480156102e6575f80fd5b50610206610964565b61025d6102fd3660046111b1565b6109e2565b34801561030d575f80fd5b5061025d61031c3660046111ef565b610a01565b34801561032c575f80fd5b5061023261033b36600461115c565b610a3b565b34801561034b575f80fd5b5061027361035a3660046111ef565b610a45565b34801561036a575f80fd5b5061025d610a89565b34801561037e575f80fd5b5061025d61038d36600461120a565b610a9c565b34801561039d575f80fd5b5061025d6103ac3660046112cf565b610aca565b3480156103bc575f80fd5b506009546001600160a01b0316610232565b3480156103d9575f80fd5b50610206610ade565b3480156103ed575f80fd5b5061025d6103fc366004611314565b610aed565b34801561040c575f80fd5b5061025d61041b36600461115c565b610b58565b61025d61042e36600461134f565b610b65565b34801561043e575f80fd5b50610273600c5481565b348015610453575f80fd5b5061020661046236600461115c565b610ba0565b348015610472575f80fd5b50610273600b5481565b348015610487575f80fd5b5061025d6104963660046111ef565b610c21565b3480156104a6575f80fd5b506101dd6104b53660046113ca565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b3480156104ed575f80fd5b5061025d6104fc3660046111ef565b610c68565b34801561050c575f80fd5b50600f5461051a9060ff1681565b6040516101e9919061140a565b5f6301ffc9a760e01b6001600160e01b03198316148061055757506380ac58cd60e01b6001600160e01b03198316145b806105725750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461058790611430565b80601f01602080910402602001604051908101604052809291908181526020018280546105b390611430565b80156105fe5780601f106105d5576101008083540402835291602001916105fe565b820191905f5260205f20905b8154815290600101906020018083116105e157829003601f168201915b5050505050905090565b5f61061282610caa565b610626576106266333d1c03960e21b610cec565b505f908152600660205260409020546001600160a01b031690565b61064d82826001610cf4565b5050565b6001545f54035f19805b1461066557600854015b90565b5f61067282610dbe565b6001600160a01b0394851694909150811684146106985761069862a1148160e81b610cec565b5f8281526006602052604090208054338082146001600160a01b038816909114176106f7576001600160a01b0386165f90815260076020908152604080832033845290915290205460ff166106f7576106f7632ce44b5f60e11b610cec565b8015610701575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b8416900361078d57600184015f81815260046020526040812054900361078b575f54811461078b575f8181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4805f036107d5576107d5633a954ecd60e21b610cec565b50505050505050565b6107e6610e4d565b80603281600d546107f7919061147c565b111561081657604051630cea840760e21b815260040160405180910390fd5b81600b5481610823610e7a565b61082d919061147c565b111561084c57604051630cea840760e21b815260040160405180910390fd5b600c5481111561086f57604051635c61173f60e01b815260040160405180910390fd5b6108798484610e84565b82600d5f82825461088a919061147c565b909155505050505050565b6001600f5460ff1660018111156108ae576108ae6113f6565b146108cc5760405163de424d2b60e01b815260040160405180910390fd5b600a5481906108db818361148f565b3410156108fb5760405163cd1c886760e01b815260040160405180910390fd5b82600b5481610908610e7a565b610912919061147c565b111561093157604051630cea840760e21b815260040160405180910390fd5b600c5481111561095457604051635c61173f60e01b815260040160405180910390fd5b61095e3385610e84565b50505050565b6060600f60019054906101000a90046001600160a01b03166001600160a01b031663f7f9c3c96040518163ffffffff1660e01b81526004015f60405180830381865afa1580156109b6573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526109dd91908101906114a6565b905090565b6109fc83838360405180602001604052805f815250610b65565b505050565b610a09610e4d565b6040516001600160a01b038216904780156108fc02915f818181858888f1935050505015801561064d573d5f803e3d5ffd5b5f61057282610dbe565b5f6001600160a01b038216610a6457610a646323d3ad8160e21b610cec565b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b610a91610e4d565b610a9a5f610f3e565b565b610aa4610e4d565b600f805482919060ff191660018381811115610ac257610ac26113f6565b021790555050565b610ad2610e4d565b600e61064d8282611563565b60606003805461058790611430565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610b60610e4d565b600a55565b610b70848484610668565b6001600160a01b0383163b1561095e57610b8c84848484610f9c565b61095e5761095e6368d2bf6b60e11b610cec565b6060610bab82610caa565b610bc8576040516331efff5160e01b815260040160405180910390fd5b5f610bd161107b565b905080515f03610bef5760405180602001604052805f815250610c1a565b80610bf98461108a565b604051602001610c0a929190611623565b6040516020818303038152906040525b9392505050565b610c29610e4d565b600f80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b610c70610e4d565b6001600160a01b038116610c9e57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610ca781610f3e565b50565b5f8054821015610ce7575f5b505f8281526004602052604081205490819003610cdd57610cd683611651565b9250610cb6565b600160e01b161590505b919050565b805f5260045ffd5b5f610cfe83610a3b565b9050818015610d165750336001600160a01b03821614155b15610d55576001600160a01b0381165f90815260076020908152604080832033845290915290205460ff16610d5557610d556367d9dca160e11b610cec565b5f83815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b5f81815260046020526040902054805f03610e2b575f548210610deb57610deb636f96cda160e11b610cec565b5b505f19015f818152600460205260409020548015610dec57600160e01b81165f03610e1657919050565b610e26636f96cda160e11b610cec565b610dec565b600160e01b81165f03610e3d57919050565b610ce7636f96cda160e11b610cec565b6009546001600160a01b03163314610a9a5760405163118cdaa760e01b8152336004820152602401610c95565b5f545f198061065b565b5f805490829003610e9f57610e9f63b562e8dd60e01b610cec565b5f8181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b17811790915580845260059092528220805468010000000000000001860201905590819003610efc57610efc622e076360e81b610cec565b818301825b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4818160010191508103610f0157505f5550505050565b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290610fd0903390899088908890600401611666565b6020604051808303815f875af192505050801561100a575060408051601f3d908101601f19168201909252611007918101906116a1565b60015b61105d573d808015611037576040519150601f19603f3d011682016040523d82523d5f602084013e61103c565b606091505b5080515f03611055576110556368d2bf6b60e11b610cec565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600e805461058790611430565b606060a06040510180604052602081039150505f815280825b600183039250600a81066030018353600a9004806110a35750819003601f19909101908152919050565b6001600160e01b031981168114610ca7575f80fd5b5f602082840312156110f2575f80fd5b8135610c1a816110cd565b5f5b838110156111175781810151838201526020016110ff565b50505f910152565b5f81518084526111368160208601602086016110fd565b601f01601f19169290920160200192915050565b602081525f610c1a602083018461111f565b5f6020828403121561116c575f80fd5b5035919050565b6001600160a01b0381168114610ca7575f80fd5b5f8060408385031215611198575f80fd5b82356111a381611173565b946020939093013593505050565b5f805f606084860312156111c3575f80fd5b83356111ce81611173565b925060208401356111de81611173565b929592945050506040919091013590565b5f602082840312156111ff575f80fd5b8135610c1a81611173565b5f6020828403121561121a575f80fd5b813560028110610c1a575f80fd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561126557611265611228565b604052919050565b5f67ffffffffffffffff82111561128657611286611228565b50601f01601f191660200190565b5f6112a66112a18461126d565b61123c565b90508281528383830111156112b9575f80fd5b828260208301375f602084830101529392505050565b5f602082840312156112df575f80fd5b813567ffffffffffffffff8111156112f5575f80fd5b8201601f81018413611305575f80fd5b61107384823560208401611294565b5f8060408385031215611325575f80fd5b823561133081611173565b915060208301358015158114611344575f80fd5b809150509250929050565b5f805f8060808587031215611362575f80fd5b843561136d81611173565b9350602085013561137d81611173565b925060408501359150606085013567ffffffffffffffff81111561139f575f80fd5b8501601f810187136113af575f80fd5b6113be87823560208401611294565b91505092959194509250565b5f80604083850312156113db575f80fd5b82356113e681611173565b9150602083013561134481611173565b634e487b7160e01b5f52602160045260245ffd5b602081016002831061142a57634e487b7160e01b5f52602160045260245ffd5b91905290565b600181811c9082168061144457607f821691505b60208210810361146257634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561057257610572611468565b808202811582820484141761057257610572611468565b5f602082840312156114b6575f80fd5b815167ffffffffffffffff8111156114cc575f80fd5b8201601f810184136114dc575f80fd5b80516114ea6112a18261126d565b8181528560208385010111156114fe575f80fd5b61150f8260208301602086016110fd565b95945050505050565b601f8211156109fc57805f5260205f20601f840160051c8101602085101561153d5750805b601f840160051c820191505b8181101561155c575f8155600101611549565b5050505050565b815167ffffffffffffffff81111561157d5761157d611228565b6115918161158b8454611430565b84611518565b602080601f8311600181146115c4575f84156115ad5750858301515b5f19600386901b1c1916600185901b17855561161b565b5f85815260208120601f198616915b828110156115f2578886015182559484019460019091019084016115d3565b508582101561160f57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b5f83516116348184602088016110fd565b8351908301906116488183602088016110fd565b01949350505050565b5f8161165f5761165f611468565b505f190190565b5f6001600160a01b03808716835280861660208401525083604083015260806060830152611697608083018461111f565b9695505050505050565b5f602082840312156116b1575f80fd5b8151610c1a816110cd56fea26469706673582212205e23b50cdf1e20deba1520cba57459e8a1db248c238a952bee2d4bd313212a6f64736f6c6343000818003300000000000000000000000018e824205c10dc4c5c454a8939f3cde387c455360000000000000000000000000000000000000000000000000000000000000ea6000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6646565a5a67463341346236476f4c314742334647744277676b7978504e417274623547726543384371364a2f00000000000000000000
Deployed Bytecode
0x6080604052600436106101ba575f3560e01c8063715018a6116100f2578063b88d4fde11610092578063e33c912c11610062578063e33c912c1461047c578063e985e9c51461049b578063f2fde38b146104e2578063f92c3a9314610501575f80fd5b8063b88d4fde14610420578063bdbb7e6a14610433578063c87b56dd14610448578063d04854e014610467575f80fd5b80638da5cb5b116100cd5780638da5cb5b146103b157806395d89b41146103ce578063a22cb465146103e2578063a3201daa14610401575f80fd5b8063715018a61461035f57806371860d7d14610373578063750521f514610392575f80fd5b80632d70eb101161015d57806342842e0e1161013857806342842e0e146102ef57806351cff8d9146103025780636352211e1461032157806370a0823114610340575f80fd5b80632d70eb10146102a95780632db11544146102c85780633c4c51c9146102db575f80fd5b8063095ea7b311610198578063095ea7b31461024a57806318160ddd1461025f578063200ba92f1461028157806323b872dd14610296575f80fd5b806301ffc9a7146101be57806306fdde03146101f2578063081812fc14610213575b5f80fd5b3480156101c9575f80fd5b506101dd6101d83660046110e2565b610527565b60405190151581526020015b60405180910390f35b3480156101fd575f80fd5b50610206610578565b6040516101e9919061114a565b34801561021e575f80fd5b5061023261022d36600461115c565b610608565b6040516001600160a01b0390911681526020016101e9565b61025d610258366004611187565b610641565b005b34801561026a575f80fd5b50610273610651565b6040519081526020016101e9565b34801561028c575f80fd5b50610273600a5481565b61025d6102a43660046111b1565b610668565b3480156102b4575f80fd5b5061025d6102c3366004611187565b6107de565b61025d6102d636600461115c565b610895565b3480156102e6575f80fd5b50610206610964565b61025d6102fd3660046111b1565b6109e2565b34801561030d575f80fd5b5061025d61031c3660046111ef565b610a01565b34801561032c575f80fd5b5061023261033b36600461115c565b610a3b565b34801561034b575f80fd5b5061027361035a3660046111ef565b610a45565b34801561036a575f80fd5b5061025d610a89565b34801561037e575f80fd5b5061025d61038d36600461120a565b610a9c565b34801561039d575f80fd5b5061025d6103ac3660046112cf565b610aca565b3480156103bc575f80fd5b506009546001600160a01b0316610232565b3480156103d9575f80fd5b50610206610ade565b3480156103ed575f80fd5b5061025d6103fc366004611314565b610aed565b34801561040c575f80fd5b5061025d61041b36600461115c565b610b58565b61025d61042e36600461134f565b610b65565b34801561043e575f80fd5b50610273600c5481565b348015610453575f80fd5b5061020661046236600461115c565b610ba0565b348015610472575f80fd5b50610273600b5481565b348015610487575f80fd5b5061025d6104963660046111ef565b610c21565b3480156104a6575f80fd5b506101dd6104b53660046113ca565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b3480156104ed575f80fd5b5061025d6104fc3660046111ef565b610c68565b34801561050c575f80fd5b50600f5461051a9060ff1681565b6040516101e9919061140a565b5f6301ffc9a760e01b6001600160e01b03198316148061055757506380ac58cd60e01b6001600160e01b03198316145b806105725750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461058790611430565b80601f01602080910402602001604051908101604052809291908181526020018280546105b390611430565b80156105fe5780601f106105d5576101008083540402835291602001916105fe565b820191905f5260205f20905b8154815290600101906020018083116105e157829003601f168201915b5050505050905090565b5f61061282610caa565b610626576106266333d1c03960e21b610cec565b505f908152600660205260409020546001600160a01b031690565b61064d82826001610cf4565b5050565b6001545f54035f19805b1461066557600854015b90565b5f61067282610dbe565b6001600160a01b0394851694909150811684146106985761069862a1148160e81b610cec565b5f8281526006602052604090208054338082146001600160a01b038816909114176106f7576001600160a01b0386165f90815260076020908152604080832033845290915290205460ff166106f7576106f7632ce44b5f60e11b610cec565b8015610701575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b8416900361078d57600184015f81815260046020526040812054900361078b575f54811461078b575f8181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4805f036107d5576107d5633a954ecd60e21b610cec565b50505050505050565b6107e6610e4d565b80603281600d546107f7919061147c565b111561081657604051630cea840760e21b815260040160405180910390fd5b81600b5481610823610e7a565b61082d919061147c565b111561084c57604051630cea840760e21b815260040160405180910390fd5b600c5481111561086f57604051635c61173f60e01b815260040160405180910390fd5b6108798484610e84565b82600d5f82825461088a919061147c565b909155505050505050565b6001600f5460ff1660018111156108ae576108ae6113f6565b146108cc5760405163de424d2b60e01b815260040160405180910390fd5b600a5481906108db818361148f565b3410156108fb5760405163cd1c886760e01b815260040160405180910390fd5b82600b5481610908610e7a565b610912919061147c565b111561093157604051630cea840760e21b815260040160405180910390fd5b600c5481111561095457604051635c61173f60e01b815260040160405180910390fd5b61095e3385610e84565b50505050565b6060600f60019054906101000a90046001600160a01b03166001600160a01b031663f7f9c3c96040518163ffffffff1660e01b81526004015f60405180830381865afa1580156109b6573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526109dd91908101906114a6565b905090565b6109fc83838360405180602001604052805f815250610b65565b505050565b610a09610e4d565b6040516001600160a01b038216904780156108fc02915f818181858888f1935050505015801561064d573d5f803e3d5ffd5b5f61057282610dbe565b5f6001600160a01b038216610a6457610a646323d3ad8160e21b610cec565b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b610a91610e4d565b610a9a5f610f3e565b565b610aa4610e4d565b600f805482919060ff191660018381811115610ac257610ac26113f6565b021790555050565b610ad2610e4d565b600e61064d8282611563565b60606003805461058790611430565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610b60610e4d565b600a55565b610b70848484610668565b6001600160a01b0383163b1561095e57610b8c84848484610f9c565b61095e5761095e6368d2bf6b60e11b610cec565b6060610bab82610caa565b610bc8576040516331efff5160e01b815260040160405180910390fd5b5f610bd161107b565b905080515f03610bef5760405180602001604052805f815250610c1a565b80610bf98461108a565b604051602001610c0a929190611623565b6040516020818303038152906040525b9392505050565b610c29610e4d565b600f80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b610c70610e4d565b6001600160a01b038116610c9e57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610ca781610f3e565b50565b5f8054821015610ce7575f5b505f8281526004602052604081205490819003610cdd57610cd683611651565b9250610cb6565b600160e01b161590505b919050565b805f5260045ffd5b5f610cfe83610a3b565b9050818015610d165750336001600160a01b03821614155b15610d55576001600160a01b0381165f90815260076020908152604080832033845290915290205460ff16610d5557610d556367d9dca160e11b610cec565b5f83815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b5f81815260046020526040902054805f03610e2b575f548210610deb57610deb636f96cda160e11b610cec565b5b505f19015f818152600460205260409020548015610dec57600160e01b81165f03610e1657919050565b610e26636f96cda160e11b610cec565b610dec565b600160e01b81165f03610e3d57919050565b610ce7636f96cda160e11b610cec565b6009546001600160a01b03163314610a9a5760405163118cdaa760e01b8152336004820152602401610c95565b5f545f198061065b565b5f805490829003610e9f57610e9f63b562e8dd60e01b610cec565b5f8181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b17811790915580845260059092528220805468010000000000000001860201905590819003610efc57610efc622e076360e81b610cec565b818301825b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4818160010191508103610f0157505f5550505050565b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290610fd0903390899088908890600401611666565b6020604051808303815f875af192505050801561100a575060408051601f3d908101601f19168201909252611007918101906116a1565b60015b61105d573d808015611037576040519150601f19603f3d011682016040523d82523d5f602084013e61103c565b606091505b5080515f03611055576110556368d2bf6b60e11b610cec565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600e805461058790611430565b606060a06040510180604052602081039150505f815280825b600183039250600a81066030018353600a9004806110a35750819003601f19909101908152919050565b6001600160e01b031981168114610ca7575f80fd5b5f602082840312156110f2575f80fd5b8135610c1a816110cd565b5f5b838110156111175781810151838201526020016110ff565b50505f910152565b5f81518084526111368160208601602086016110fd565b601f01601f19169290920160200192915050565b602081525f610c1a602083018461111f565b5f6020828403121561116c575f80fd5b5035919050565b6001600160a01b0381168114610ca7575f80fd5b5f8060408385031215611198575f80fd5b82356111a381611173565b946020939093013593505050565b5f805f606084860312156111c3575f80fd5b83356111ce81611173565b925060208401356111de81611173565b929592945050506040919091013590565b5f602082840312156111ff575f80fd5b8135610c1a81611173565b5f6020828403121561121a575f80fd5b813560028110610c1a575f80fd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561126557611265611228565b604052919050565b5f67ffffffffffffffff82111561128657611286611228565b50601f01601f191660200190565b5f6112a66112a18461126d565b61123c565b90508281528383830111156112b9575f80fd5b828260208301375f602084830101529392505050565b5f602082840312156112df575f80fd5b813567ffffffffffffffff8111156112f5575f80fd5b8201601f81018413611305575f80fd5b61107384823560208401611294565b5f8060408385031215611325575f80fd5b823561133081611173565b915060208301358015158114611344575f80fd5b809150509250929050565b5f805f8060808587031215611362575f80fd5b843561136d81611173565b9350602085013561137d81611173565b925060408501359150606085013567ffffffffffffffff81111561139f575f80fd5b8501601f810187136113af575f80fd5b6113be87823560208401611294565b91505092959194509250565b5f80604083850312156113db575f80fd5b82356113e681611173565b9150602083013561134481611173565b634e487b7160e01b5f52602160045260245ffd5b602081016002831061142a57634e487b7160e01b5f52602160045260245ffd5b91905290565b600181811c9082168061144457607f821691505b60208210810361146257634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561057257610572611468565b808202811582820484141761057257610572611468565b5f602082840312156114b6575f80fd5b815167ffffffffffffffff8111156114cc575f80fd5b8201601f810184136114dc575f80fd5b80516114ea6112a18261126d565b8181528560208385010111156114fe575f80fd5b61150f8260208301602086016110fd565b95945050505050565b601f8211156109fc57805f5260205f20601f840160051c8101602085101561153d5750805b601f840160051c820191505b8181101561155c575f8155600101611549565b5050505050565b815167ffffffffffffffff81111561157d5761157d611228565b6115918161158b8454611430565b84611518565b602080601f8311600181146115c4575f84156115ad5750858301515b5f19600386901b1c1916600185901b17855561161b565b5f85815260208120601f198616915b828110156115f2578886015182559484019460019091019084016115d3565b508582101561160f57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b5f83516116348184602088016110fd565b8351908301906116488183602088016110fd565b01949350505050565b5f8161165f5761165f611468565b505f190190565b5f6001600160a01b03808716835280861660208401525083604083015260806060830152611697608083018461111f565b9695505050505050565b5f602082840312156116b1575f80fd5b8151610c1a816110cd56fea26469706673582212205e23b50cdf1e20deba1520cba57459e8a1db248c238a952bee2d4bd313212a6f64736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000018e824205c10dc4c5c454a8939f3cde387c455360000000000000000000000000000000000000000000000000000000000000ea6000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6646565a5a67463341346236476f4c314742334647744277676b7978504e417274623547726543384371364a2f00000000000000000000
-----Decoded View---------------
Arg [0] : _clueManagerAddress (address): 0x18e824205c10DC4c5C454A8939f3Cde387c45536
Arg [1] : _supply (uint256): 3750
Arg [2] : _uri (string): ipfs://QmfFVZZgF3A4b6GoL1GB3FGtBwgkyxPNArtb5GreC8Cq6J/
Arg [3] : _mintcap (uint256): 5
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 00000000000000000000000018e824205c10dc4c5c454a8939f3cde387c45536
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000ea6
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [5] : 697066733a2f2f516d6646565a5a67463341346236476f4c3147423346477442
Arg [6] : 77676b7978504e417274623547726543384371364a2f00000000000000000000
Deployed Bytecode Sourcemap
68066:3032:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25836:655;;;;;;;;;;-1:-1:-1;25836:655:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;25836:655:0;;;;;;;;26754:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;34289:256::-;;;;;;;;;;-1:-1:-1;34289:256:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:55:1;;;1679:74;;1667:2;1652:18;34289:256:0;1533:226:1;33981:149:0;;;;;;:::i;:::-;;:::i;:::-;;21796:623;;;;;;;;;;;;;:::i;:::-;;;2389:25:1;;;2377:2;2362:18;21796:623:0;2243:177:1;68190:23:0;;;;;;;;;;;;;;;;38754:3701;;;;;;:::i;:::-;;:::i;70873:222::-;;;;;;;;;;-1:-1:-1;70873:222:0;;;;;:::i;:::-;;:::i;70632:233::-;;;;;;:::i;:::-;;:::i;68796:103::-;;;;;;;;;;;;;:::i;42551:193::-;;;;;;:::i;:::-;;:::i;69226:128::-;;;;;;;;;;-1:-1:-1;69226:128:0;;;;;:::i;:::-;;:::i;28219:168::-;;;;;;;;;;-1:-1:-1;28219:168:0;;;;;:::i;:::-;;:::i;23570:258::-;;;;;;;;;;-1:-1:-1;23570:258:0;;;;;:::i;:::-;;:::i;3749:103::-;;;;;;;;;;;;;:::i;68907:97::-;;;;;;;;;;-1:-1:-1;68907:97:0;;;;;:::i;:::-;;:::i;69118:100::-;;;;;;;;;;-1:-1:-1;69118:100:0;;;;;:::i;:::-;;:::i;3074:87::-;;;;;;;;;;-1:-1:-1;3147:6:0;;-1:-1:-1;;;;;3147:6:0;3074:87;;26930:104;;;;;;;;;;;;;:::i;34885:259::-;;;;;;;;;;-1:-1:-1;34885:259:0;;;;;:::i;:::-;;:::i;69012:98::-;;;;;;;;;;-1:-1:-1;69012:98:0;;;;;:::i;:::-;;:::i;43342:416::-;;;;;;:::i;:::-;;:::i;68255:22::-;;;;;;;;;;;;;;;;69620:368;;;;;;;;;;-1:-1:-1;69620:368:0;;;;;:::i;:::-;;:::i;68220:28::-;;;;;;;;;;;;;;;;69362:138;;;;;;;;;;-1:-1:-1;69362:138:0;;;;;:::i;:::-;;:::i;35301:189::-;;;;;;;;;;-1:-1:-1;35301:189:0;;;;;:::i;:::-;-1:-1:-1;;;;;35447:25:0;;;35423:4;35447:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;35301:189;4007:220;;;;;;;;;;-1:-1:-1;4007:220:0;;;;;:::i;:::-;;:::i;68342:25::-;;;;;;;;;;-1:-1:-1;68342:25:0;;;;;;;;;;;;;;;:::i;25836:655::-;25937:4;-1:-1:-1;;;;;;;;;26261:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;26338:25:0;;;26261:102;:179;;;-1:-1:-1;;;;;;;;;;26415:25:0;;;26261:179;26241:199;25836:655;-1:-1:-1;;25836:655:0:o;26754:100::-;26808:13;26841:5;26834:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26754:100;:::o;34289:256::-;34381:7;34406:16;34414:7;34406;:16::i;:::-;34401:86;;34437:50;-1:-1:-1;;;34437:7:0;:50::i;:::-;-1:-1:-1;34507:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;34507:30:0;;34289:256::o;33981:149::-;34095:27;34104:2;34108:7;34117:4;34095:8;:27::i;:::-;33981:149;;:::o;21796:623::-;22290:12;;21902:14;22274:13;:28;-1:-1:-1;;22360:17:0;22339;:38;22335:65;;22389:11;;22379:21;22335:65;21796:623;:::o;38754:3701::-;38896:27;38926;38945:7;38926:18;:27::i;:::-;-1:-1:-1;;;;;39081:22:0;;;;38896:57;;-1:-1:-1;39141:45:0;;;;39137:108;;39201:44;-1:-1:-1;;;39201:7:0;:44::i;:::-;39273:27;37862:24;;;:15;:24;;;;;38090:26;;65648:10;37471:30;;;-1:-1:-1;;;;;37164:28:0;;37449:20;;;37446:56;39482:296;;-1:-1:-1;;;;;35447:25:0;;35423:4;35447:25;;;:18;:25;;;;;;;;65648:10;35447:35;;;;;;;;;;39660:118;;39727:51;-1:-1:-1;;;39727:7:0;:51::i;:::-;39927:15;39924:160;;;40067:1;40046:19;40039:30;39924:160;-1:-1:-1;;;;;40464:24:0;;;;;;;:18;:24;;;;;;40462:26;;-1:-1:-1;;40462:26:0;;;40533:22;;;;;;;;;40531:24;;-1:-1:-1;40531:24:0;;;33053:11;33028:23;33024:41;32976:112;-1:-1:-1;;;32976:112:0;40826:26;;;;:17;:26;;;;;:196;;;;-1:-1:-1;;;41142:47:0;;:52;;41138:627;;41247:1;41237:11;;41215:19;41370:30;;;:17;:30;;;;;;:35;;41366:384;;41508:13;;41493:11;:28;41489:242;;41655:30;;;;:17;:30;;;;;:52;;;41489:242;41196:569;41138:627;-1:-1:-1;;;;;41897:20:0;;42277:7;41897:20;42207:4;42149:25;41878:16;;42014:299;42338:8;42350:1;42338:13;42334:58;;42353:39;-1:-1:-1;;;42353:7:0;:39::i;:::-;38885:3570;;;;38754:3701;;;:::o;70873:222::-;2960:13;:11;:13::i;:::-;70985:8:::1;70573:2;70562:8;70549:10;;:21;;;;:::i;:::-;:26;70545:59;;;70584:20;;-1:-1:-1::0;;;70584:20:0::1;;;;;;;;;;;70545:59;71007:8:::2;70357:13;;70346:8;70329:14;:12;:14::i;:::-;:25;;;;:::i;:::-;:41;70325:87;;;70392:20;;-1:-1:-1::0;;;70392:20:0::2;;;;;;;;;;;70325:87;70440:7;;70429:8;:18;70425:44;;;70456:13;;-1:-1:-1::0;;;70456:13:0::2;;;;;;;;;;;70425:44;71028:26:::3;71034:9;71045:8;71028:5;:26::i;:::-;71079:8;71065:10;;:22;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;;;;70873:222:0:o;70632:233::-;70052:17;70037:11;;;;;:32;;;;;;;:::i;:::-;;70033:60;;70078:15;;-1:-1:-1;;;70078:15:0;;;;;;;;;;;70033:60;70773:8:::1;::::0;70763;;70201:15:::1;70773:8:::0;70763;70201:15:::1;:::i;:::-;70188:9;:29;70184:63;;;70226:21;;-1:-1:-1::0;;;70226:21:0::1;;;;;;;;;;;70184:63;70804:8:::2;70357:13;;70346:8;70329:14;:12;:14::i;:::-;:25;;;;:::i;:::-;:41;70325:87;;;70392:20;;-1:-1:-1::0;;;70392:20:0::2;;;;;;;;;;;70325:87;70440:7;;70429:8;:18;70425:44;;;70456:13;;-1:-1:-1::0;;;70456:13:0::2;;;;;;;;;;;70425:44;70830:27:::3;70836:10;70848:8;70830:5;:27::i;:::-;70258:1:::2;70104::::1;;70632:233:::0;:::o;68796:103::-;68836:13;68869:11;;;;;;;;;-1:-1:-1;;;;;68869:11:0;-1:-1:-1;;;;;68869:20:0;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;68869:22:0;;;;;;;;;;;;:::i;:::-;68862:29;;68796:103;:::o;42551:193::-;42697:39;42714:4;42720:2;42724:7;42697:39;;;;;;;;;;;;:16;:39::i;:::-;42551:193;;;:::o;69226:128::-;2960:13;:11;:13::i;:::-;69303:43:::1;::::0;-1:-1:-1;;;;;69303:20:0;::::1;::::0;69324:21:::1;69303:43:::0;::::1;;;::::0;::::1;::::0;;;69324:21;69303:20;:43;::::1;;;;;;;;;;;;;::::0;::::1;;;;28219:168:::0;28307:7;28350:27;28369:7;28350:18;:27::i;23570:258::-;23658:7;-1:-1:-1;;;;;23682:19:0;;23678:69;;23703:44;-1:-1:-1;;;23703:7:0;:44::i;:::-;-1:-1:-1;;;;;;23765:25:0;;;;;:18;:25;;;;;;16267:13;23765:55;;23570:258::o;3749:103::-;2960:13;:11;:13::i;:::-;3814:30:::1;3841:1;3814:18;:30::i;:::-;3749:103::o:0;68907:97::-;2960:13;:11;:13::i;:::-;68975:11:::1;:21:::0;;68989:7;;68975:11;-1:-1:-1;;68975:21:0::1;::::0;68989:7;68975:21;;::::1;;;;;;:::i;:::-;;;;;;68907:97:::0;:::o;69118:100::-;2960:13;:11;:13::i;:::-;69192:11:::1;:18;69206:4:::0;69192:11;:18:::1;:::i;26930:104::-:0;26986:13;27019:7;27012:14;;;;;:::i;34885:259::-;65648:10;35005:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;35005:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;35005:60:0;;;;;;;;;;35081:55;;540:41:1;;;35005:49:0;;65648:10;35081:55;;513:18:1;35081:55:0;;;;;;;34885:259;;:::o;69012:98::-;2960:13;:11;:13::i;:::-;69080:8:::1;:22:::0;69012:98::o;43342:416::-;43517:31;43530:4;43536:2;43540:7;43517:12;:31::i;:::-;-1:-1:-1;;;;;43563:14:0;;;:19;43559:192;;43602:56;43633:4;43639:2;43643:7;43652:5;43602:30;:56::i;:::-;43597:154;;43679:56;-1:-1:-1;;;43679:7:0;:56::i;69620:368::-;69709:13;69740:16;69748:7;69740;:16::i;:::-;69735:48;;69765:18;;-1:-1:-1;;;69765:18:0;;;;;;;;;;;69735:48;69794:21;69818:10;:8;:10::i;:::-;69794:34;;69865:7;69859:21;69884:1;69859:26;:121;;;;;;;;;;;;;;;;;69929:7;69938:18;69948:7;69938:9;:18::i;:::-;69912:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;69859:121;69839:141;69620:368;-1:-1:-1;;;69620:368:0:o;69362:138::-;2960:13;:11;:13::i;:::-;69445:11:::1;:47:::0;;-1:-1:-1;;;;;69445:47:0;;::::1;;;::::0;;;::::1;::::0;;;::::1;::::0;;69362:138::o;4007:220::-;2960:13;:11;:13::i;:::-;-1:-1:-1;;;;;4092:22:0;::::1;4088:93;;4138:31;::::0;-1:-1:-1;;;4138:31:0;;4166:1:::1;4138:31;::::0;::::1;1679:74:1::0;1652:18;;4138:31:0::1;;;;;;;;4088:93;4191:28;4210:8;4191:18;:28::i;:::-;4007:220:::0;:::o;35748:508::-;35829:11;36038:13;;36028:7;:23;36024:214;;;36072:14;36105:60;-1:-1:-1;36122:26:0;;;;:17;:26;;;;;;;36112:42;;;36105:60;;36156:9;;;:::i;:::-;;;36105:60;;;-1:-1:-1;;;36193:24:0;:29;;-1:-1:-1;36024:214:0;35748:508;;;:::o;67596:165::-;67697:13;67691:4;67684:27;67738:4;67732;67725:18;58776:474;58905:13;58921:16;58929:7;58921;:16::i;:::-;58905:32;;58954:13;:45;;;;-1:-1:-1;65648:10:0;-1:-1:-1;;;;;58971:28:0;;;;58954:45;58950:201;;;-1:-1:-1;;;;;35447:25:0;;35423:4;35447:25;;;:18;:25;;;;;;;;65648:10;35447:35;;;;;;;;;;59014:137;;59084:51;-1:-1:-1;;;59084:7:0;:51::i;:::-;59163:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;59163:35:0;-1:-1:-1;;;;;59163:35:0;;;;;;;;;59214:28;;59163:24;;59214:28;;;;;;;58894:356;58776:474;;;:::o;29768:2250::-;29934:26;;;;:17;:26;;;;;;30261:6;30271:1;30261:11;30257:1313;;30308:13;;30297:7;:24;30293:98;;30344:47;-1:-1:-1;;;30344:7:0;:47::i;:::-;30948:607;-1:-1:-1;;;31044:9:0;31026:28;;;;:17;:28;;;;;;31100:25;;30948:607;31100:25;-1:-1:-1;;;31152:6:0;:24;31180:1;31152:29;31148:48;;29768:2250;;;:::o;31148:48::-;31488:47;-1:-1:-1;;;31488:7:0;:47::i;:::-;30948:607;;30257:1313;-1:-1:-1;;;31897:6:0;:24;31925:1;31897:29;31893:48;;29768:2250;;;:::o;31893:48::-;31963:47;-1:-1:-1;;;31963:7:0;:47::i;3239:166::-;3147:6;;-1:-1:-1;;;;;3147:6:0;65648:10;3299:23;3295:103;;3346:40;;-1:-1:-1;;;3346:40:0;;65648:10;3346:40;;;1679:74:1;1652:18;;3346:40:0;1533:226:1;22517:385:0;22572:14;22772:13;-1:-1:-1;;22843:17:0;22822;21294:110;47110:2471;47183:20;47206:13;;;47234;;;47230:53;;47249:34;-1:-1:-1;;;47249:7:0;:34::i;:::-;47796:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;32844:28:0;;33053:11;33028:23;33024:41;33527:1;33514:15;;33488:24;33484:46;33021:52;32976:112;;47796:194;;;48208:22;;;:18;:22;;;;;:105;;48280:32;48251:62;;48208:105;;;32844:28;48503:13;;;48499:54;;48518:35;-1:-1:-1;;;48518:7:0;:35::i;:::-;48584:23;;;;48780:676;49199:7;49155:8;49110:1;49044:25;48981:1;48916;48885:358;49451:3;49438:9;;;;;;:16;48780:676;;-1:-1:-1;49472:13:0;:19;-1:-1:-1;42551:193:0;;;:::o;4387:191::-;4480:6;;;-1:-1:-1;;;;;4497:17:0;;;-1:-1:-1;;4497:17:0;;;;;;;4530:40;;4480:6;;;4497:17;4480:6;;4530:40;;4461:16;;4530:40;4450:128;4387:191;:::o;45842:806::-;46039:171;;-1:-1:-1;;;46039:171:0;;46005:4;;-1:-1:-1;;;;;46039:45:0;;;;;:171;;65648:10;;46141:4;;46164:7;;46190:5;;46039:171;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46039:171:0;;;;;;;;-1:-1:-1;;46039:171:0;;;;;;;;;;;;:::i;:::-;;;46022:619;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46424:6;:13;46441:1;46424:18;46420:115;;46463:56;-1:-1:-1;;;46463:7:0;:56::i;:::-;46607:6;46601:13;46592:6;46588:2;46584:15;46577:38;46022:619;-1:-1:-1;;;;;;46283:81:0;-1:-1:-1;;;46283:81:0;;-1:-1:-1;46022:619:0;45842:806;;;;;;:::o;69508:104::-;69560:13;69593:11;69586:18;;;;;:::i;65768:1761::-;65849:17;66283:4;66276;66270:11;66266:22;66375:1;66369:4;66362:15;66450:4;66447:1;66443:12;66436:19;;;66532:1;66527:3;66520:14;66636:3;66875:5;66857:428;66923:1;66918:3;66914:11;66907:18;;67094:2;67088:4;67084:13;67080:2;67076:22;67071:3;67063:36;67188:2;67178:13;;67245:25;66857:428;67245:25;-1:-1:-1;67315:13:0;;;-1:-1:-1;;67430:14:0;;;67492:19;;;67430:14;65768:1761;-1:-1:-1;65768:1761:0:o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1764:154::-;-1:-1:-1;;;;;1843:5:1;1839:54;1832:5;1829:65;1819:93;;1908:1;1905;1898:12;1923:315;1991:6;1999;2052:2;2040:9;2031:7;2027:23;2023:32;2020:52;;;2068:1;2065;2058:12;2020:52;2107:9;2094:23;2126:31;2151:5;2126:31;:::i;:::-;2176:5;2228:2;2213:18;;;;2200:32;;-1:-1:-1;;;1923:315:1:o;2425:456::-;2502:6;2510;2518;2571:2;2559:9;2550:7;2546:23;2542:32;2539:52;;;2587:1;2584;2577:12;2539:52;2626:9;2613:23;2645:31;2670:5;2645:31;:::i;:::-;2695:5;-1:-1:-1;2752:2:1;2737:18;;2724:32;2765:33;2724:32;2765:33;:::i;:::-;2425:456;;2817:7;;-1:-1:-1;;;2871:2:1;2856:18;;;;2843:32;;2425:456::o;2886:255::-;2953:6;3006:2;2994:9;2985:7;2981:23;2977:32;2974:52;;;3022:1;3019;3012:12;2974:52;3061:9;3048:23;3080:31;3105:5;3080:31;:::i;3398:267::-;3468:6;3521:2;3509:9;3500:7;3496:23;3492:32;3489:52;;;3537:1;3534;3527:12;3489:52;3576:9;3563:23;3615:1;3608:5;3605:12;3595:40;;3631:1;3628;3621:12;3670:127;3731:10;3726:3;3722:20;3719:1;3712:31;3762:4;3759:1;3752:15;3786:4;3783:1;3776:15;3802:275;3873:2;3867:9;3938:2;3919:13;;-1:-1:-1;;3915:27:1;3903:40;;3973:18;3958:34;;3994:22;;;3955:62;3952:88;;;4020:18;;:::i;:::-;4056:2;4049:22;3802:275;;-1:-1:-1;3802:275:1:o;4082:187::-;4131:4;4164:18;4156:6;4153:30;4150:56;;;4186:18;;:::i;:::-;-1:-1:-1;4252:2:1;4231:15;-1:-1:-1;;4227:29:1;4258:4;4223:40;;4082:187::o;4274:338::-;4339:5;4368:53;4384:36;4413:6;4384:36;:::i;:::-;4368:53;:::i;:::-;4359:62;;4444:6;4437:5;4430:21;4484:3;4475:6;4470:3;4466:16;4463:25;4460:45;;;4501:1;4498;4491:12;4460:45;4550:6;4545:3;4538:4;4531:5;4527:16;4514:43;4604:1;4597:4;4588:6;4581:5;4577:18;4573:29;4566:40;4274:338;;;;;:::o;4617:451::-;4686:6;4739:2;4727:9;4718:7;4714:23;4710:32;4707:52;;;4755:1;4752;4745:12;4707:52;4795:9;4782:23;4828:18;4820:6;4817:30;4814:50;;;4860:1;4857;4850:12;4814:50;4883:22;;4936:4;4928:13;;4924:27;-1:-1:-1;4914:55:1;;4965:1;4962;4955:12;4914:55;4988:74;5054:7;5049:2;5036:16;5031:2;5027;5023:11;4988:74;:::i;5073:416::-;5138:6;5146;5199:2;5187:9;5178:7;5174:23;5170:32;5167:52;;;5215:1;5212;5205:12;5167:52;5254:9;5241:23;5273:31;5298:5;5273:31;:::i;:::-;5323:5;-1:-1:-1;5380:2:1;5365:18;;5352:32;5422:15;;5415:23;5403:36;;5393:64;;5453:1;5450;5443:12;5393:64;5476:7;5466:17;;;5073:416;;;;;:::o;5494:795::-;5589:6;5597;5605;5613;5666:3;5654:9;5645:7;5641:23;5637:33;5634:53;;;5683:1;5680;5673:12;5634:53;5722:9;5709:23;5741:31;5766:5;5741:31;:::i;:::-;5791:5;-1:-1:-1;5848:2:1;5833:18;;5820:32;5861:33;5820:32;5861:33;:::i;:::-;5913:7;-1:-1:-1;5967:2:1;5952:18;;5939:32;;-1:-1:-1;6022:2:1;6007:18;;5994:32;6049:18;6038:30;;6035:50;;;6081:1;6078;6071:12;6035:50;6104:22;;6157:4;6149:13;;6145:27;-1:-1:-1;6135:55:1;;6186:1;6183;6176:12;6135:55;6209:74;6275:7;6270:2;6257:16;6252:2;6248;6244:11;6209:74;:::i;:::-;6199:84;;;5494:795;;;;;;;:::o;6294:388::-;6362:6;6370;6423:2;6411:9;6402:7;6398:23;6394:32;6391:52;;;6439:1;6436;6429:12;6391:52;6478:9;6465:23;6497:31;6522:5;6497:31;:::i;:::-;6547:5;-1:-1:-1;6604:2:1;6589:18;;6576:32;6617:33;6576:32;6617:33;:::i;6687:127::-;6748:10;6743:3;6739:20;6736:1;6729:31;6779:4;6776:1;6769:15;6803:4;6800:1;6793:15;6819:339;6962:2;6947:18;;6995:1;6984:13;;6974:144;;7040:10;7035:3;7031:20;7028:1;7021:31;7075:4;7072:1;7065:15;7103:4;7100:1;7093:15;6974:144;7127:25;;;6819:339;:::o;7163:380::-;7242:1;7238:12;;;;7285;;;7306:61;;7360:4;7352:6;7348:17;7338:27;;7306:61;7413:2;7405:6;7402:14;7382:18;7379:38;7376:161;;7459:10;7454:3;7450:20;7447:1;7440:31;7494:4;7491:1;7484:15;7522:4;7519:1;7512:15;7376:161;;7163:380;;;:::o;7548:127::-;7609:10;7604:3;7600:20;7597:1;7590:31;7640:4;7637:1;7630:15;7664:4;7661:1;7654:15;7680:125;7745:9;;;7766:10;;;7763:36;;;7779:18;;:::i;7810:168::-;7883:9;;;7914;;7931:15;;;7925:22;;7911:37;7901:71;;7952:18;;:::i;7983:649::-;8063:6;8116:2;8104:9;8095:7;8091:23;8087:32;8084:52;;;8132:1;8129;8122:12;8084:52;8165:9;8159:16;8198:18;8190:6;8187:30;8184:50;;;8230:1;8227;8220:12;8184:50;8253:22;;8306:4;8298:13;;8294:27;-1:-1:-1;8284:55:1;;8335:1;8332;8325:12;8284:55;8364:2;8358:9;8389:49;8405:32;8434:2;8405:32;:::i;8389:49::-;8461:2;8454:5;8447:17;8501:7;8496:2;8491;8487;8483:11;8479:20;8476:33;8473:53;;;8522:1;8519;8512:12;8473:53;8535:67;8599:2;8594;8587:5;8583:14;8578:2;8574;8570:11;8535:67;:::i;:::-;8621:5;7983:649;-1:-1:-1;;;;;7983:649:1:o;8763:518::-;8865:2;8860:3;8857:11;8854:421;;;8901:5;8898:1;8891:16;8945:4;8942:1;8932:18;9015:2;9003:10;8999:19;8996:1;8992:27;8986:4;8982:38;9051:4;9039:10;9036:20;9033:47;;;-1:-1:-1;9074:4:1;9033:47;9129:2;9124:3;9120:12;9117:1;9113:20;9107:4;9103:31;9093:41;;9184:81;9202:2;9195:5;9192:13;9184:81;;;9261:1;9247:16;;9228:1;9217:13;9184:81;;;9188:3;;8763:518;;;:::o;9457:1345::-;9583:3;9577:10;9610:18;9602:6;9599:30;9596:56;;;9632:18;;:::i;:::-;9661:97;9751:6;9711:38;9743:4;9737:11;9711:38;:::i;:::-;9705:4;9661:97;:::i;:::-;9813:4;;9870:2;9859:14;;9887:1;9882:663;;;;10589:1;10606:6;10603:89;;;-1:-1:-1;10658:19:1;;;10652:26;10603:89;-1:-1:-1;;9414:1:1;9410:11;;;9406:24;9402:29;9392:40;9438:1;9434:11;;;9389:57;10705:81;;9852:944;;9882:663;8710:1;8703:14;;;8747:4;8734:18;;-1:-1:-1;;9918:20:1;;;10036:236;10050:7;10047:1;10044:14;10036:236;;;10139:19;;;10133:26;10118:42;;10231:27;;;;10199:1;10187:14;;;;10066:19;;10036:236;;;10040:3;10300:6;10291:7;10288:19;10285:201;;;10361:19;;;10355:26;-1:-1:-1;;10444:1:1;10440:14;;;10456:3;10436:24;10432:37;10428:42;10413:58;10398:74;;10285:201;;;10532:1;10523:6;10520:1;10516:14;10512:22;10506:4;10499:36;9852:944;;;;;9457:1345;;:::o;10807:496::-;10986:3;11024:6;11018:13;11040:66;11099:6;11094:3;11087:4;11079:6;11075:17;11040:66;:::i;:::-;11169:13;;11128:16;;;;11191:70;11169:13;11128:16;11238:4;11226:17;;11191:70;:::i;:::-;11277:20;;10807:496;-1:-1:-1;;;;10807:496:1:o;11308:136::-;11347:3;11375:5;11365:39;;11384:18;;:::i;:::-;-1:-1:-1;;;11420:18:1;;11308:136::o;11449:512::-;11643:4;-1:-1:-1;;;;;11753:2:1;11745:6;11741:15;11730:9;11723:34;11805:2;11797:6;11793:15;11788:2;11777:9;11773:18;11766:43;;11845:6;11840:2;11829:9;11825:18;11818:34;11888:3;11883:2;11872:9;11868:18;11861:31;11909:46;11950:3;11939:9;11935:19;11927:6;11909:46;:::i;:::-;11901:54;11449:512;-1:-1:-1;;;;;;11449:512:1:o;11966:249::-;12035:6;12088:2;12076:9;12067:7;12063:23;12059:32;12056:52;;;12104:1;12101;12094:12;12056:52;12136:9;12130:16;12155:30;12179:5;12155:30;:::i
Swarm Source
ipfs://5e23b50cdf1e20deba1520cba57459e8a1db248c238a952bee2d4bd313212a6f
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.