ERC-721
Overview
Max Total Supply
885 PSY
Holders
276
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 PSYLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TheTruth
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/utils/Strings.sol"; import "operator-filter-registry/src/OperatorFilterer.sol"; import "../../Common/ERC721/ERC721FQueryable.sol"; import "../../Common/Delegated.sol"; import "../../Common/Royalties.sol"; interface IFelineFiendz{ function burnFrom( address account, uint[] calldata tokenIds ) external; function isOwnerOf( address account, uint[] calldata tokenIds ) external view returns( bool ); } contract TheTruth is ERC721FQueryable, OperatorFilterer, Delegated, Royalties { using Strings for uint256; error WithdrawError(bytes); struct MintConfig{ uint64 ethPrice; uint16 maxMint; uint16 maxOrder; uint16 maxSupply; SaleState saleState; } enum SaleState{ CLOSED, OPEN } MintConfig public config = MintConfig( 0.0069 ether, 3888, 3888, 3888, SaleState.CLOSED ); IFelineFiendz public FIENDZ = IFelineFiendz(0xAcfA101ECE167F1894150e090d9471aeE2dD3041); bool public isOsEnabled = true; string public tokenURIPrefix; string public tokenURISuffix; uint256 public immutable batchSize = 5; constructor() ERC721F("The Truth", "PSY") OperatorFilterer(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6, true) Royalties(owner(), 500, 10000) // solhint-disable-next-line no-empty-blocks {} modifier onlyAllowedOperator(address from) override { if (isOsEnabled && from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) override { if(isOsEnabled){ _checkFilterOperator(operator); } _; } //public function forge(uint256 mergeId, uint256 burnId) external{ require(SaleState.OPEN == config.saleState, "Forging is disabled"); require(totalSupply() < config.maxSupply, "Mint/order exceeds supply"); uint256[] memory allTokens = new uint256[](2); allTokens[0] = mergeId; allTokens[1] = burnId; require(FIENDZ.isOwnerOf(msg.sender, allTokens), "Owner check failed"); uint256[] memory burnTokens = new uint256[](1); burnTokens[0] = burnId; FIENDZ.burnFrom(msg.sender, burnTokens); _mint(msg.sender, 1); } //payable - onlyDelegates function mintTo(uint16[] calldata quantity, address[] calldata recipient) external payable onlyDelegates{ //checks require(quantity.length == recipient.length, "Must provide equal quantities and recipients"); uint256 totalQuantity = 0; unchecked{ for(uint256 i = 0; i < quantity.length; ++i){ totalQuantity += quantity[i]; } } require(totalSupply() + totalQuantity <= config.maxSupply, "Mint/order exceeds supply"); unchecked{ for(uint256 i = 0; i < recipient.length; ++i){ _mintBatch(recipient[i], quantity[i]); } } } //nonpayable - onlyDelegates function setConfig(MintConfig calldata newConfig) external onlyDelegates{ require(newConfig.maxOrder <= newConfig.maxSupply, "max order must be lte max supply" ); require(totalSupply() <= newConfig.maxSupply, "max supply must be gte total supply" ); require(uint8(newConfig.saleState) < 3, "invalid sale state" ); config = newConfig; } function setFiendz(IFelineFiendz newAddress) external onlyDelegates{ FIENDZ = newAddress; } function setOsStatus(bool isEnabled) external onlyDelegates{ isOsEnabled = isEnabled; } function setTokenURI(string calldata prefix, string calldata suffix) external onlyDelegates{ tokenURIPrefix = prefix; tokenURISuffix = suffix; } //nonpayable - onlyOwner function setDefaultRoyalty( address receiver, uint16 feeNumerator, uint16 feeDenominator ) external onlyOwner { _setDefaultRoyalty( receiver, feeNumerator, feeDenominator ); } //view - IERC165 function supportsInterface(bytes4 interfaceId) public view override(ERC721F, IERC721F, Royalties) returns (bool) { return ERC721F.supportsInterface(interfaceId) || Royalties.supportsInterface(interfaceId); } //view - IERC721Metadata function tokenURI(uint256 tokenId) public view override(ERC721F, IERC721F) returns(string memory){ if(!_exists(tokenId)) revert URIQueryForNonexistentToken(); return string(abi.encodePacked(tokenURIPrefix, tokenId.toString(), tokenURISuffix)); } //withdraw function withdraw() external onlyOwner { uint256 balance = address(this).balance; require(balance > 0, "No funds available"); (bool success, bytes memory data) = payable(owner()).call{value: balance }(""); if(!success) revert WithdrawError(data); } //OS overrides function approve(address operator, uint256 tokenId) public payable override(ERC721F, IERC721F) onlyAllowedOperatorApproval(operator) { ERC721F.approve(operator, tokenId); } function setApprovalForAll(address operator, bool approved) public override(ERC721F, IERC721F) onlyAllowedOperatorApproval(operator) { ERC721F.setApprovalForAll(operator, approved); } function transferFrom(address from, address to, uint256 tokenId) public payable override(ERC721F, IERC721F) onlyAllowedOperator(from) { ERC721F.transferFrom(from, to, tokenId); } //internal function _mintBatch(address to, uint256 quantity) internal { while(quantity > 0){ if(quantity > batchSize){ _mint(to, batchSize); quantity -= batchSize; } else{ _mint(to, quantity); break; } } } function _startTokenId() internal pure override returns (uint256) { return 1; } }
// SPDX-License-Identifier: BSD-3 pragma solidity ^0.8.9; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; contract Royalties is IERC2981{ struct Fraction{ uint16 numerator; uint16 denominator; } struct Royalty{ address receiver; Fraction fraction; } Royalty public defaultRoyalty; //mapping(uint => Royalty) public tokenRoyalties; constructor(address receiver, uint16 royaltyNum, uint16 royaltyDenom){ _setDefaultRoyalty(receiver, royaltyNum, royaltyDenom); } //view: IERC2981 /** * @dev See {IERC2981-royaltyInfo}. **/ function royaltyInfo(uint256, uint256 _salePrice) public view virtual returns (address, uint256) { /* Royalty memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } */ uint256 royaltyAmount = (_salePrice * defaultRoyalty.fraction.numerator) / defaultRoyalty.fraction.denominator; return (defaultRoyalty.receiver, royaltyAmount); } //view: IERC165 /** * @dev See {IERC165-supportsInterface}. **/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC2981).interfaceId; } function _setDefaultRoyalty( address receiver, uint16 royaltyNum, uint16 royaltyDenom ) internal { defaultRoyalty.receiver = receiver; defaultRoyalty.fraction = Fraction(royaltyNum, royaltyDenom); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721F.sol'; /** * @dev Interface of ERC721AQueryable. */ interface IERC721FQueryable is IERC721F { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721F { /** * 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(); // ============================================================= // 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; // Whether the next tokenId is initialized. bool nextInitialized; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint16 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); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721FQueryable.sol'; import './ERC721F.sol'; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721FQueryable is ERC721F, IERC721FQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.9; import "./IERC721F.sol"; /** * @dev Interface of ERC721 token receiver. */ interface ERC721F__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()`. * * 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 ERC721F is IERC721F { struct OwnerData{ uint64 balance; uint64 numberMinted; uint64 numberBurned; uint64 aux; } // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // 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 => TokenOwnership) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => OwnerData) internal _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; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal pure virtual returns (uint256) { return 0; } /** * @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) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // 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(); return _packedAddressData[owner].balance; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return _packedAddressData[owner].numberMinted; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return _packedAddressData[owner].numberBurned; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _packedAddressData[owner].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 { _packedAddressData[owner].aux = aux; } // ============================================================= // 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(); 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 _unpackedOwnershipOf(tokenId).addr; } /** * @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 _packedOwnerships[tokenId]; } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _packedOwnerships[index]; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { TokenOwnership memory ownership = _unpackedOwnershipOf(tokenId); return uint256(bytes32(abi.encode(ownership))); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnershipOf(uint256 tokenId) private view returns (TokenOwnership memory ownership) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) { if (curr < _currentIndex) { TokenOwnership memory unpacked = _packedOwnerships[curr]; // If not burned. if (!unpacked.burned) { while (unpacked.addr == address(0)) { unpacked = _packedOwnerships[--curr]; } return unpacked; } } } } revert OwnerQueryForNonexistentToken(); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @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(); 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) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, !_packedOwnerships[tokenId].burned; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { if(msgSender == owner) return true; if(msgSender == approvedAddress) return true; return false; } /** * @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 { TokenOwnership memory prevOwnership = _unpackedOwnershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); (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(); if (to == address(0)) revert TransferToZeroAddress(); _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].balance; // Updates: `balance -= 1`. ++_packedAddressData[to].balance; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = TokenOwnership( to, uint64(block.timestamp), false, true, prevOwnership.extraData ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (!prevOwnership.nextInitialized) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId].startTimestamp == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp, false, false, prevOwnership.extraData ); } } } } emit Transfer(from, to, tokenId); _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 (!_checkOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) internal returns (bool) { try ERC721F__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721F__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { 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(); _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 { _packedAddressData[to].balance += uint64(quantity); _packedAddressData[to].numberMinted += uint64(quantity); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = TokenOwnership( to, uint64(block.timestamp), false, quantity == 1, 0 ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // 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`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _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(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { _packedAddressData[to].balance += uint64(quantity); _packedAddressData[to].numberMinted += uint64(quantity); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = TokenOwnership( to, uint64(block.timestamp), false, quantity == 1, 0 ); 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 (!_checkOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ""); } // ============================================================= // 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 { TokenOwnership memory prevOwnership = _unpackedOwnershipOf(tokenId); address from = prevOwnership.addr; (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(); } _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 { --_packedAddressData[from].balance; ++_packedAddressData[from].numberBurned; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = TokenOwnership( address(0), uint64(block.timestamp), true, true, prevOwnership.extraData ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (!prevOwnership.nextInitialized) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId].startTimestamp == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnership; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint16 extraData) internal virtual { TokenOwnership storage packed = _packedOwnerships[index]; if (packed.startTimestamp == 0) revert OwnershipNotInitializedForExtraData(); _packedOwnerships[index].extraData = extraData; } /** * @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) {} // ============================================================= // 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) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; contract Delegated is Ownable{ mapping(address => bool) internal _delegates; modifier onlyContracts { require(_delegates[msg.sender], "Unauthorized delegate" ); require(msg.sender.code.length > 0, "Non-contract delegate" ); _; } modifier onlyDelegates { require(_delegates[msg.sender], "Unauthorized delegate" ); _; } constructor() Ownable(){ setDelegate(owner(), true); } //onlyOwner function isDelegate(address addr) external view onlyOwner returns(bool) { return _delegates[addr]; } function setDelegate(address addr, bool isDelegate_) public onlyOwner { _delegates[addr] = isDelegate_; } function transferOwnership(address newOwner) public virtual override onlyOwner { setDelegate(newOwner, true); super.transferOwnership(newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @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. * * By default, the owner account will be the one that deploys the contract. 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; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @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 { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing 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 { require(newOwner != address(0), "Ownable: new owner is the zero address"); _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); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"WithdrawError","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":"FIENDZ","outputs":[{"internalType":"contract IFelineFiendz","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":[],"name":"batchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"config","outputs":[{"internalType":"uint64","name":"ethPrice","type":"uint64"},{"internalType":"uint16","name":"maxMint","type":"uint16"},{"internalType":"uint16","name":"maxOrder","type":"uint16"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"enum TheTruth.SaleState","name":"saleState","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyalty","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"components":[{"internalType":"uint16","name":"numerator","type":"uint16"},{"internalType":"uint16","name":"denominator","type":"uint16"}],"internalType":"struct Royalties.Fraction","name":"fraction","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"bool","name":"nextInitialized","type":"bool"},{"internalType":"uint16","name":"extraData","type":"uint16"}],"internalType":"struct IERC721F.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"bool","name":"nextInitialized","type":"bool"},{"internalType":"uint16","name":"extraData","type":"uint16"}],"internalType":"struct IERC721F.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mergeId","type":"uint256"},{"internalType":"uint256","name":"burnId","type":"uint256"}],"name":"forge","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":[{"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":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"quantity","type":"uint16[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"mintTo","outputs":[],"stateMutability":"payable","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","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":"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":[{"components":[{"internalType":"uint64","name":"ethPrice","type":"uint64"},{"internalType":"uint16","name":"maxMint","type":"uint16"},{"internalType":"uint16","name":"maxOrder","type":"uint16"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"enum TheTruth.SaleState","name":"saleState","type":"uint8"}],"internalType":"struct TheTruth.MintConfig","name":"newConfig","type":"tuple"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint16","name":"feeNumerator","type":"uint16"},{"internalType":"uint16","name":"feeDenominator","type":"uint16"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IFelineFiendz","name":"newAddress","type":"address"}],"name":"setFiendz","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"setOsStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix","type":"string"},{"internalType":"string","name":"suffix","type":"string"}],"name":"setTokenURI","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":"tokenURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURISuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101406040526618838370f3400060a052610f3060c081905260e081905261010052600061012052600c80546001600160781b0319166d0f300f300f300018838370f34000179055600d80547401acfa101ece167f1894150e090d9471aee2dd30416001600160a81b031990911617905560056080523480156200008257600080fd5b506008546001600160a01b03166101f4612710733cc6cdda760b79bafa08df41ecfa224f810dceb66001604051806040016040528060098152602001680a8d0ca40a8e4eae8d60bb1b8152506040518060400160405280600381526020016250535960e81b8152508160029081620000fb91906200046e565b5060036200010a82826200046e565b50600160005550506daaeb6d7670e522a718067333cd4e3b1562000257578015620001a557604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200018657600080fd5b505af11580156200019b573d6000803e3d6000fd5b5050505062000257565b6001600160a01b03821615620001f65760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200016b565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200023d57600080fd5b505af115801562000252573d6000803e3d6000fd5b505050505b5062000265905033620002e1565b620002846200027c6008546001600160a01b031690565b600162000333565b600a80546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff8084168083529083166020909201829052600b805463ffffffff1916909117620100009092029190911790555050506200053a565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200033d62000368565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6008546001600160a01b03163314620003c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003f457607f821691505b6020821081036200041557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200046957600081815260208120601f850160051c81016020861015620004445750805b601f850160051c820191505b81811015620004655782815560010162000450565b5050505b505050565b81516001600160401b038111156200048a576200048a620003c9565b620004a2816200049b8454620003df565b846200041b565b602080601f831160018114620004da5760008415620004c15750858301515b600019600386901b1c1916600185901b17855562000465565b600085815260208120601f198616915b828110156200050b57888601518255948401946001909101908401620004ea565b50858210156200052a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516130b16200056b600039600081816107fd01528181611fad01528181611fd9015261200201526130b16000f3fe60806040526004361061023b5760003560e01c8063715018a61161012e578063c0ac9983116100ab578063e985e9c51161006f578063e985e9c514610742578063ef0b87841461078b578063f2fde38b146107ab578063f404597f146107cb578063f4daaba1146107eb57600080fd5b8063c0ac9983146106ab578063c23dc68f146106c0578063c87b56dd146106ed578063d48ede991461070d578063dbbc853b1461072d57600080fd5b806395d89b41116100f257806395d89b411461063057806399a2557a14610645578063a22cb46514610665578063ae7bf4c814610685578063b88d4fde1461069857600080fd5b8063715018a6146104fa5780637885fdc71461050f57806379502c55146105875780638462151c146105e55780638da5cb5b1461061257600080fd5b80632a55205a116101bc57806342842e0e1161018057806342842e0e1461045a5780634a994eef1461046d5780635bbb21771461048d5780636352211e146104ba57806370a08231146104da57600080fd5b80632a55205a146103a45780632b2a40e0146103e35780633ccfd60b1461040357806341acc66a1461041857806341f434341461043857600080fd5b80630ca5336b116102035780630ca5336b14610304578063109e943f1461032457806318160ddd14610345578063211f9e2f1461037157806323b872dd1461039157600080fd5b806301ffc9a71461024057806306fdde03146102755780630777962714610297578063081812fc146102b7578063095ea7b3146102ef575b600080fd5b34801561024c57600080fd5b5061026061025b366004612569565b61081f565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a61084b565b60405161026c91906125d6565b3480156102a357600080fd5b506102606102b23660046125fe565b6108dd565b3480156102c357600080fd5b506102d76102d236600461261b565b610906565b6040516001600160a01b03909116815260200161026c565b6103026102fd366004612634565b61094a565b005b34801561031057600080fd5b5061030261031f366004612660565b610976565b34801561033057600080fd5b50600d5461026090600160a01b900460ff1681565b34801561035157600080fd5b50610363600154600054036000190190565b60405190815260200161026c565b34801561037d57600080fd5b5061030261038c366004612686565b610b18565b61030261039f3660046126a3565b610b65565b3480156103b057600080fd5b506103c46103bf3660046126e4565b610ba8565b604080516001600160a01b03909316835260208301919091520161026c565b3480156103ef57600080fd5b506103026103fe3660046125fe565b610bec565b34801561040f57600080fd5b50610302610c3d565b34801561042457600080fd5b50610302610433366004612716565b610d11565b34801561044457600080fd5b506102d76daaeb6d7670e522a718067333cd4e81565b6103026104683660046126a3565b610d72565b34801561047957600080fd5b50610302610488366004612761565b610d8d565b34801561049957600080fd5b506104ad6104a83660046127de565b610dc0565b60405161026c9190612866565b3480156104c657600080fd5b506102d76104d536600461261b565b610e72565b3480156104e657600080fd5b506103636104f53660046125fe565b610e84565b34801561050657600080fd5b50610302610ed2565b34801561051b57600080fd5b50600a5460408051808201909152600b5461ffff808216835262010000909104166020820152610552916001600160a01b03169082565b604080516001600160a01b039093168352815161ffff908116602080860191909152909201519091169082015260600161026c565b34801561059357600080fd5b50600c546105d4906001600160401b0381169061ffff600160401b8204811691600160501b8104821691600160601b8204169060ff600160701b9091041685565b60405161026c9594939291906128be565b3480156105f157600080fd5b506106056106003660046125fe565b610ee6565b60405161026c9190612951565b34801561061e57600080fd5b506008546001600160a01b03166102d7565b34801561063c57600080fd5b5061028a610fcc565b34801561065157600080fd5b50610605610660366004612964565b610fdb565b34801561067157600080fd5b50610302610680366004612761565b611162565b610302610693366004612999565b611189565b6103026106a6366004612a1a565b61134a565b3480156106b757600080fd5b5061028a61138e565b3480156106cc57600080fd5b506106e06106db36600461261b565b61141c565b60405161026c9190612af9565b3480156106f957600080fd5b5061028a61070836600461261b565b61146c565b34801561071957600080fd5b50610302610728366004612b48565b6114c9565b34801561073957600080fd5b5061028a61151a565b34801561074e57600080fd5b5061026061075d366004612ba7565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561079757600080fd5b506103026107a63660046126e4565b611527565b3480156107b757600080fd5b506103026107c63660046125fe565b6117b6565b3480156107d757600080fd5b50600d546102d7906001600160a01b031681565b3480156107f757600080fd5b506103637f000000000000000000000000000000000000000000000000000000000000000081565b600061082a826117d5565b80610845575063152a902d60e11b6001600160e01b03198316145b92915050565b60606002805461085a90612bd5565b80601f016020809104026020016040519081016040528092919081815260200182805461088690612bd5565b80156108d35780601f106108a8576101008083540402835291602001916108d3565b820191906000526020600020905b8154815290600101906020018083116108b657829003601f168201915b5050505050905090565b60006108e7611823565b506001600160a01b031660009081526009602052604090205460ff1690565b60006109118261187d565b61092e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600d548290600160a01b900460ff161561096757610967816118b6565b610971838361196f565b505050565b3360009081526009602052604090205460ff166109ae5760405162461bcd60e51b81526004016109a590612c09565b60405180910390fd5b6109be6080820160608301612c38565b61ffff166109d26060830160408401612c38565b61ffff161115610a245760405162461bcd60e51b815260206004820181905260248201527f6d6178206f72646572206d757374206265206c7465206d617820737570706c7960448201526064016109a5565b610a346080820160608301612c38565b61ffff16610a49600154600054036000190190565b1115610aa35760405162461bcd60e51b815260206004820152602360248201527f6d617820737570706c79206d7573742062652067746520746f74616c20737570604482015262706c7960e81b60648201526084016109a5565b6003610ab560a0830160808401612c62565b6001811115610ac657610ac66128a8565b60ff1610610b0b5760405162461bcd60e51b8152602060048201526012602482015271696e76616c69642073616c6520737461746560701b60448201526064016109a5565b80600c6109718282612cd4565b3360009081526009602052604090205460ff16610b475760405162461bcd60e51b81526004016109a590612c09565b600d8054911515600160a01b0260ff60a01b19909216919091179055565b600d548390600160a01b900460ff168015610b8957506001600160a01b0381163314155b15610b9757610b97336118b6565b610ba2848484611a0f565b50505050565b600b546000908190819061ffff620100008204811691610bc9911686612dc0565b610bd39190612dd7565b600a546001600160a01b031693509150505b9250929050565b3360009081526009602052604090205460ff16610c1b5760405162461bcd60e51b81526004016109a590612c09565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610c45611823565b4780610c885760405162461bcd60e51b81526020600482015260126024820152714e6f2066756e647320617661696c61626c6560701b60448201526064016109a5565b600080610c9d6008546001600160a01b031690565b6001600160a01b03168360405160006040518083038185875af1925050503d8060008114610ce7576040519150601f19603f3d011682016040523d82523d6000602084013e610cec565b606091505b509150915081610971578060405163764e2d2f60e11b81526004016109a591906125d6565b610d19611823565b600a80546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff8084168083529083166020909201829052600b805463ffffffff191690911762010000909202919091179055505050565b6109718383836040518060200160405280600081525061134a565b610d95611823565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6060816000816001600160401b03811115610ddd57610ddd612a04565b604051908082528060200260200182016040528015610e1657816020015b610e03612525565b815260200190600190039081610dfb5790505b50905060005b828114610e6957610e44868683818110610e3857610e38612df9565b9050602002013561141c565b828281518110610e5657610e56612df9565b6020908102919091010152600101610e1c565b50949350505050565b6000610e7d82611d29565b5192915050565b60006001600160a01b038216610ead576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b610eda611823565b610ee46000611e66565b565b60606000806000610ef685610e84565b90506000816001600160401b03811115610f1257610f12612a04565b604051908082528060200260200182016040528015610f3b578160200160208202803683370190505b509050610f46612525565b60015b838614610fc057610f5981611eb8565b91508160400151610fb85781516001600160a01b031615610f7957815194505b876001600160a01b0316856001600160a01b031603610fb85780838780600101985081518110610fab57610fab612df9565b6020026020010181815250505b600101610f49565b50909695505050505050565b60606003805461085a90612bd5565b6060818310610ffd57604051631960ccad60e11b815260040160405180910390fd5b60008061100960005490565b9050600185101561101957600194505b80841115611025578093505b600061103087610e84565b90508486101561104f5785850381811015611049578091505b50611053565b5060005b6000816001600160401b0381111561106d5761106d612a04565b604051908082528060200260200182016040528015611096578160200160208202803683370190505b509050816000036110ac57935061115b92505050565b60006110b78861141c565b9050600081604001516110c8575080515b885b8881141580156110da5750848714155b1561114f576110e881611eb8565b925082604001516111475782516001600160a01b03161561110857825191505b8a6001600160a01b0316826001600160a01b031603611147578084888060010199508151811061113a5761113a612df9565b6020026020010181815250505b6001016110ca565b50505092835250909150505b9392505050565b600d548290600160a01b900460ff161561117f5761117f816118b6565b6109718383611f39565b3360009081526009602052604090205460ff166111b85760405162461bcd60e51b81526004016109a590612c09565b82811461121c5760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b60648201526084016109a5565b6000805b848110156112605785858281811061123a5761123a612df9565b905060200201602081019061124f9190612c38565b61ffff169190910190600101611220565b50600c54600160601b900461ffff1681611281600154600054036000190190565b61128b9190612e0f565b11156112d55760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b60448201526064016109a5565b60005b828110156113425761133a8484838181106112f5576112f5612df9565b905060200201602081019061130a91906125fe565b87878481811061131c5761131c612df9565b90506020020160208101906113319190612c38565b61ffff16611fa5565b6001016112d8565b505050505050565b611355848484610b65565b6001600160a01b0383163b15610ba2576113718484848461203c565b610ba2576040516368d2bf6b60e11b815260040160405180910390fd5b600e805461139b90612bd5565b80601f01602080910402602001604051908101604052809291908181526020018280546113c790612bd5565b80156114145780601f106113e957610100808354040283529160200191611414565b820191906000526020600020905b8154815290600101906020018083116113f757829003601f168201915b505050505081565b611424612525565b61142c612525565b600183108061143d57506000548310155b156114485792915050565b61145183611eb8565b90508060400151156114635792915050565b61115b83611eb8565b60606114778261187d565b61149457604051630a14c4b560e41b815260040160405180910390fd5b600e61149f83612128565b600f6040516020016114b393929190612e95565b6040516020818303038152906040529050919050565b3360009081526009602052604090205460ff166114f85760405162461bcd60e51b81526004016109a590612c09565b600e611505848683612f0e565b50600f611513828483612f0e565b5050505050565b600f805461139b90612bd5565b600c54600160701b900460ff166001811115611545576115456128a8565b60011461158a5760405162461bcd60e51b8152602060048201526013602482015272119bdc99da5b99c81a5cc8191a5cd8589b1959606a1b60448201526064016109a5565b600c54600160601b900461ffff166115a9600154600054036000190190565b106115f25760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b60448201526064016109a5565b604080516002808252606082018352600092602083019080368337019050509050828160008151811061162757611627612df9565b602002602001018181525050818160018151811061164757611647612df9565b6020908102919091010152600d54604051631351198360e21b81526001600160a01b0390911690634d44660c906116849033908590600401612fcd565b602060405180830381865afa1580156116a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c59190612ff1565b6117065760405162461bcd60e51b815260206004820152601260248201527113dddb995c8818da1958dac819985a5b195960721b60448201526064016109a5565b60408051600180825281830190925260009160208083019080368337019050509050828160008151811061173c5761173c612df9565b6020908102919091010152600d546040516389af610760e01b81526001600160a01b03909116906389af6107906117799033908590600401612fcd565b600060405180830381600087803b15801561179357600080fd5b505af11580156117a7573d6000803e3d6000fd5b50505050610ba23360016121ba565b6117be611823565b6117c9816001610d8d565b6117d281612389565b50565b60006301ffc9a760e01b6001600160e01b03198316148061180657506380ac58cd60e01b6001600160e01b03198316145b806108455750506001600160e01b031916635b5e139f60e01b1490565b6008546001600160a01b03163314610ee45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a5565b600081600111158015611891575060005482105b8015610845575050600090815260046020526040902054600160e01b900460ff161590565b6daaeb6d7670e522a718067333cd4e3b156117d257604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611923573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119479190612ff1565b6117d257604051633b79c77360e21b81526001600160a01b03821660048201526024016109a5565b600061197a82610e72565b9050336001600160a01b038216146119b357611996813361075d565b6119b3576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611a1a82611d29565b9050836001600160a01b031681600001516001600160a01b031614611a515760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054611a6c8187336123ff565b611a9757611a7a863361075d565b611a9757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516611abe57604051633a954ecd60e21b815260040160405180910390fd5b8015611ac957600082555b6001600160a01b03808716600090815260056020908152604080832080546000196001600160401b0380831691909101811667ffffffffffffffff19928316179092558a861680865283862080548085166001908101861691909416179055835160a081018552908152428316818601908152818501878152606080840194855260808d81015161ffff9081169186019182528f8b52600490995296909820925183549251915194519651909716600160f01b026001600160f01b03961515600160e81b0260ff60e81b19951515600160e01b029590951661ffff60e01b1992909616600160a01b026001600160e01b03199093169790991696909617179490941691909117171692909217909155830151611ce35760018401600081815260046020526040812054600160a01b90046001600160401b03169003611ce1576000548114611ce1576040805160a08101825285516001600160a01b0390811682526020808801516001600160401b039081168285019081526000858701818152606087018281526080808e015161ffff908116918a019182528b8552600490975298909220965187549351915192519851909516600160f01b026001600160f01b03981515600160e81b0260ff60e81b19931515600160e01b029390931661ffff60e01b1992909516600160a01b026001600160e01b0319909416959096169490941791909117929092161717929092169190911790555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611342565b611d31612525565b8180600111611e4d57600054811015611e4d57600081815260046020908152604091829020825160a08101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b820460ff9081161515938201849052600160e81b83041615156060820152600160f01b90910461ffff16608082015290611e4b575b80516001600160a01b031661115b575060001901600081815260046020908152604091829020825160a08101845290546001600160a01b03811682526001600160401b03600160a01b8204169282019290925260ff600160e01b83048116151593820193909352600160e81b82049092161515606083015261ffff600160f01b909104166080820152611dbd565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611ec0612525565b50600090815260046020908152604091829020825160a08101845290546001600160a01b03811682526001600160401b03600160a01b8204169282019290925260ff600160e01b83048116151593820193909352600160e81b82049092161515606083015261ffff600160f01b90910416608082015290565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b8015612038577f000000000000000000000000000000000000000000000000000000000000000081111561202e57611ffd827f00000000000000000000000000000000000000000000000000000000000000006121ba565b6120277f00000000000000000000000000000000000000000000000000000000000000008261300e565b9050611fa5565b61203882826121ba565b5050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612071903390899088908890600401613021565b6020604051808303816000875af19250505080156120ac575060408051601f3d908101601f191682019092526120a99181019061305e565b60015b61210a573d8080156120da576040519150601f19603f3d011682016040523d82523d6000602084013e6120df565b606091505b508051600003612102576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060006121358361244d565b60010190506000816001600160401b0381111561215457612154612a04565b6040519080825280601f01601f19166020018201604052801561217e576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461218857509392505050565b60008054908290036121df5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0380841660008181526005602090815260408083208054600160401b6001600160401b038083168b01811667ffffffffffffffff198416811783900482168c0182169092026fffffffffffffffffffffffffffffffff1990931690911791909117909155815160a08101835285815242821681850190815281840186815260018b1460608401908152608084018881528b8952600490975294872092518354925191519551965161ffff16600160f01b026001600160f01b03971515600160e81b0260ff60e81b19971515600160e01b029790971661ffff60e01b1993909616600160a01b026001600160e01b031990941691909a16179190911716919091179190911791909116939093179092559082840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461235f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612327565b508160000361238057604051622e076360e81b815260040160405180910390fd5b60005550505050565b612391611823565b6001600160a01b0381166123f65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a5565b6117d281611e66565b6000826001600160a01b0316826001600160a01b0316036124225750600161115b565b836001600160a01b0316826001600160a01b0316036124435750600161115b565b5060009392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061248c5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106124b8576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106124d657662386f26fc10000830492506010015b6305f5e10083106124ee576305f5e100830492506008015b612710831061250257612710830492506004015b60648310612514576064830492506002015b600a83106108455760010192915050565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915290565b6001600160e01b0319811681146117d257600080fd5b60006020828403121561257b57600080fd5b813561115b81612553565b60005b838110156125a1578181015183820152602001612589565b50506000910152565b600081518084526125c2816020860160208601612586565b601f01601f19169290920160200192915050565b60208152600061115b60208301846125aa565b6001600160a01b03811681146117d257600080fd5b60006020828403121561261057600080fd5b813561115b816125e9565b60006020828403121561262d57600080fd5b5035919050565b6000806040838503121561264757600080fd5b8235612652816125e9565b946020939093013593505050565b600060a0828403121561267257600080fd5b50919050565b80151581146117d257600080fd5b60006020828403121561269857600080fd5b813561115b81612678565b6000806000606084860312156126b857600080fd5b83356126c3816125e9565b925060208401356126d3816125e9565b929592945050506040919091013590565b600080604083850312156126f757600080fd5b50508035926020909101359150565b61ffff811681146117d257600080fd5b60008060006060848603121561272b57600080fd5b8335612736816125e9565b9250602084013561274681612706565b9150604084013561275681612706565b809150509250925092565b6000806040838503121561277457600080fd5b823561277f816125e9565b9150602083013561278f81612678565b809150509250929050565b60008083601f8401126127ac57600080fd5b5081356001600160401b038111156127c357600080fd5b6020830191508360208260051b8501011115610be557600080fd5b600080602083850312156127f157600080fd5b82356001600160401b0381111561280757600080fd5b6128138582860161279a565b90969095509350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260608082015115159083015260809081015161ffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610fc05761289583855161281f565b9284019260a09290920191600101612882565b634e487b7160e01b600052602160045260246000fd5b6001600160401b038616815261ffff858116602083015284811660408301528316606082015260a081016002831061290657634e487b7160e01b600052602160045260246000fd5b8260808301529695505050505050565b600081518084526020808501945080840160005b838110156129465781518752958201959082019060010161292a565b509495945050505050565b60208152600061115b6020830184612916565b60008060006060848603121561297957600080fd5b8335612984816125e9565b95602085013595506040909401359392505050565b600080600080604085870312156129af57600080fd5b84356001600160401b03808211156129c657600080fd5b6129d28883890161279a565b909650945060208701359150808211156129eb57600080fd5b506129f88782880161279a565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612a3057600080fd5b8435612a3b816125e9565b93506020850135612a4b816125e9565b92506040850135915060608501356001600160401b0380821115612a6e57600080fd5b818701915087601f830112612a8257600080fd5b813581811115612a9457612a94612a04565b604051601f8201601f19908116603f01168101908382118183101715612abc57612abc612a04565b816040528281528a6020848701011115612ad557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60a08101610845828461281f565b60008083601f840112612b1957600080fd5b5081356001600160401b03811115612b3057600080fd5b602083019150836020828501011115610be557600080fd5b60008060008060408587031215612b5e57600080fd5b84356001600160401b0380821115612b7557600080fd5b612b8188838901612b07565b90965094506020870135915080821115612b9a57600080fd5b506129f887828801612b07565b60008060408385031215612bba57600080fd5b8235612bc5816125e9565b9150602083013561278f816125e9565b600181811c90821680612be957607f821691505b60208210810361267257634e487b7160e01b600052602260045260246000fd5b602080825260159082015274556e617574686f72697a65642064656c656761746560581b604082015260600190565b600060208284031215612c4a57600080fd5b813561115b81612706565b600281106117d257600080fd5b600060208284031215612c7457600080fd5b813561115b81612c55565b6000813561084581612706565b6000813561084581612c55565b60028210612cb757634e487b7160e01b600052602160045260246000fd5b805460ff60701b191660709290921b60ff60701b16919091179055565b81356001600160401b038116808214612cec57600080fd5b825467ffffffffffffffff1981168217845591506020840135612d0e81612706565b69ffff0000000000000000604091821b1669ffffffffffffffffffff19841683178117855590850135612d4081612706565b6bffffffffffffffffffffffff19939093169091171760509190911b61ffff60501b16178155612d95612d7560608401612c7f565b82805461ffff60601b191660609290921b61ffff60601b16919091179055565b612038612da460808401612c8c565b82612c99565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761084557610845612daa565b600082612df457634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b8082018082111561084557610845612daa565b60008154612e2f81612bd5565b60018281168015612e475760018114612e5c57612e8b565b60ff1984168752821515830287019450612e8b565b8560005260208060002060005b85811015612e825781548a820152908401908201612e69565b50505082870194505b5050505092915050565b6000612ea18286612e22565b8451612eb1818360208901612586565b612ebd81830186612e22565b979650505050505050565b601f82111561097157600081815260208120601f850160051c81016020861015612eef5750805b601f850160051c820191505b8181101561134257828155600101612efb565b6001600160401b03831115612f2557612f25612a04565b612f3983612f338354612bd5565b83612ec8565b6000601f841160018114612f6d5760008515612f555750838201355b600019600387901b1c1916600186901b178355611513565b600083815260209020601f19861690835b82811015612f9e5786850135825560209485019460019092019101612f7e565b5086821015612fbb5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6001600160a01b038316815260406020820181905260009061212090830184612916565b60006020828403121561300357600080fd5b815161115b81612678565b8181038181111561084557610845612daa565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613054908301846125aa565b9695505050505050565b60006020828403121561307057600080fd5b815161115b8161255356fea264697066735822122094b9ae1ba5e959156763dde65fc5689555678f6c7ad1ab0ad37e6598a94296a364736f6c63430008110033
Deployed Bytecode
0x60806040526004361061023b5760003560e01c8063715018a61161012e578063c0ac9983116100ab578063e985e9c51161006f578063e985e9c514610742578063ef0b87841461078b578063f2fde38b146107ab578063f404597f146107cb578063f4daaba1146107eb57600080fd5b8063c0ac9983146106ab578063c23dc68f146106c0578063c87b56dd146106ed578063d48ede991461070d578063dbbc853b1461072d57600080fd5b806395d89b41116100f257806395d89b411461063057806399a2557a14610645578063a22cb46514610665578063ae7bf4c814610685578063b88d4fde1461069857600080fd5b8063715018a6146104fa5780637885fdc71461050f57806379502c55146105875780638462151c146105e55780638da5cb5b1461061257600080fd5b80632a55205a116101bc57806342842e0e1161018057806342842e0e1461045a5780634a994eef1461046d5780635bbb21771461048d5780636352211e146104ba57806370a08231146104da57600080fd5b80632a55205a146103a45780632b2a40e0146103e35780633ccfd60b1461040357806341acc66a1461041857806341f434341461043857600080fd5b80630ca5336b116102035780630ca5336b14610304578063109e943f1461032457806318160ddd14610345578063211f9e2f1461037157806323b872dd1461039157600080fd5b806301ffc9a71461024057806306fdde03146102755780630777962714610297578063081812fc146102b7578063095ea7b3146102ef575b600080fd5b34801561024c57600080fd5b5061026061025b366004612569565b61081f565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a61084b565b60405161026c91906125d6565b3480156102a357600080fd5b506102606102b23660046125fe565b6108dd565b3480156102c357600080fd5b506102d76102d236600461261b565b610906565b6040516001600160a01b03909116815260200161026c565b6103026102fd366004612634565b61094a565b005b34801561031057600080fd5b5061030261031f366004612660565b610976565b34801561033057600080fd5b50600d5461026090600160a01b900460ff1681565b34801561035157600080fd5b50610363600154600054036000190190565b60405190815260200161026c565b34801561037d57600080fd5b5061030261038c366004612686565b610b18565b61030261039f3660046126a3565b610b65565b3480156103b057600080fd5b506103c46103bf3660046126e4565b610ba8565b604080516001600160a01b03909316835260208301919091520161026c565b3480156103ef57600080fd5b506103026103fe3660046125fe565b610bec565b34801561040f57600080fd5b50610302610c3d565b34801561042457600080fd5b50610302610433366004612716565b610d11565b34801561044457600080fd5b506102d76daaeb6d7670e522a718067333cd4e81565b6103026104683660046126a3565b610d72565b34801561047957600080fd5b50610302610488366004612761565b610d8d565b34801561049957600080fd5b506104ad6104a83660046127de565b610dc0565b60405161026c9190612866565b3480156104c657600080fd5b506102d76104d536600461261b565b610e72565b3480156104e657600080fd5b506103636104f53660046125fe565b610e84565b34801561050657600080fd5b50610302610ed2565b34801561051b57600080fd5b50600a5460408051808201909152600b5461ffff808216835262010000909104166020820152610552916001600160a01b03169082565b604080516001600160a01b039093168352815161ffff908116602080860191909152909201519091169082015260600161026c565b34801561059357600080fd5b50600c546105d4906001600160401b0381169061ffff600160401b8204811691600160501b8104821691600160601b8204169060ff600160701b9091041685565b60405161026c9594939291906128be565b3480156105f157600080fd5b506106056106003660046125fe565b610ee6565b60405161026c9190612951565b34801561061e57600080fd5b506008546001600160a01b03166102d7565b34801561063c57600080fd5b5061028a610fcc565b34801561065157600080fd5b50610605610660366004612964565b610fdb565b34801561067157600080fd5b50610302610680366004612761565b611162565b610302610693366004612999565b611189565b6103026106a6366004612a1a565b61134a565b3480156106b757600080fd5b5061028a61138e565b3480156106cc57600080fd5b506106e06106db36600461261b565b61141c565b60405161026c9190612af9565b3480156106f957600080fd5b5061028a61070836600461261b565b61146c565b34801561071957600080fd5b50610302610728366004612b48565b6114c9565b34801561073957600080fd5b5061028a61151a565b34801561074e57600080fd5b5061026061075d366004612ba7565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561079757600080fd5b506103026107a63660046126e4565b611527565b3480156107b757600080fd5b506103026107c63660046125fe565b6117b6565b3480156107d757600080fd5b50600d546102d7906001600160a01b031681565b3480156107f757600080fd5b506103637f000000000000000000000000000000000000000000000000000000000000000581565b600061082a826117d5565b80610845575063152a902d60e11b6001600160e01b03198316145b92915050565b60606002805461085a90612bd5565b80601f016020809104026020016040519081016040528092919081815260200182805461088690612bd5565b80156108d35780601f106108a8576101008083540402835291602001916108d3565b820191906000526020600020905b8154815290600101906020018083116108b657829003601f168201915b5050505050905090565b60006108e7611823565b506001600160a01b031660009081526009602052604090205460ff1690565b60006109118261187d565b61092e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600d548290600160a01b900460ff161561096757610967816118b6565b610971838361196f565b505050565b3360009081526009602052604090205460ff166109ae5760405162461bcd60e51b81526004016109a590612c09565b60405180910390fd5b6109be6080820160608301612c38565b61ffff166109d26060830160408401612c38565b61ffff161115610a245760405162461bcd60e51b815260206004820181905260248201527f6d6178206f72646572206d757374206265206c7465206d617820737570706c7960448201526064016109a5565b610a346080820160608301612c38565b61ffff16610a49600154600054036000190190565b1115610aa35760405162461bcd60e51b815260206004820152602360248201527f6d617820737570706c79206d7573742062652067746520746f74616c20737570604482015262706c7960e81b60648201526084016109a5565b6003610ab560a0830160808401612c62565b6001811115610ac657610ac66128a8565b60ff1610610b0b5760405162461bcd60e51b8152602060048201526012602482015271696e76616c69642073616c6520737461746560701b60448201526064016109a5565b80600c6109718282612cd4565b3360009081526009602052604090205460ff16610b475760405162461bcd60e51b81526004016109a590612c09565b600d8054911515600160a01b0260ff60a01b19909216919091179055565b600d548390600160a01b900460ff168015610b8957506001600160a01b0381163314155b15610b9757610b97336118b6565b610ba2848484611a0f565b50505050565b600b546000908190819061ffff620100008204811691610bc9911686612dc0565b610bd39190612dd7565b600a546001600160a01b031693509150505b9250929050565b3360009081526009602052604090205460ff16610c1b5760405162461bcd60e51b81526004016109a590612c09565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610c45611823565b4780610c885760405162461bcd60e51b81526020600482015260126024820152714e6f2066756e647320617661696c61626c6560701b60448201526064016109a5565b600080610c9d6008546001600160a01b031690565b6001600160a01b03168360405160006040518083038185875af1925050503d8060008114610ce7576040519150601f19603f3d011682016040523d82523d6000602084013e610cec565b606091505b509150915081610971578060405163764e2d2f60e11b81526004016109a591906125d6565b610d19611823565b600a80546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff8084168083529083166020909201829052600b805463ffffffff191690911762010000909202919091179055505050565b6109718383836040518060200160405280600081525061134a565b610d95611823565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b6060816000816001600160401b03811115610ddd57610ddd612a04565b604051908082528060200260200182016040528015610e1657816020015b610e03612525565b815260200190600190039081610dfb5790505b50905060005b828114610e6957610e44868683818110610e3857610e38612df9565b9050602002013561141c565b828281518110610e5657610e56612df9565b6020908102919091010152600101610e1c565b50949350505050565b6000610e7d82611d29565b5192915050565b60006001600160a01b038216610ead576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b610eda611823565b610ee46000611e66565b565b60606000806000610ef685610e84565b90506000816001600160401b03811115610f1257610f12612a04565b604051908082528060200260200182016040528015610f3b578160200160208202803683370190505b509050610f46612525565b60015b838614610fc057610f5981611eb8565b91508160400151610fb85781516001600160a01b031615610f7957815194505b876001600160a01b0316856001600160a01b031603610fb85780838780600101985081518110610fab57610fab612df9565b6020026020010181815250505b600101610f49565b50909695505050505050565b60606003805461085a90612bd5565b6060818310610ffd57604051631960ccad60e11b815260040160405180910390fd5b60008061100960005490565b9050600185101561101957600194505b80841115611025578093505b600061103087610e84565b90508486101561104f5785850381811015611049578091505b50611053565b5060005b6000816001600160401b0381111561106d5761106d612a04565b604051908082528060200260200182016040528015611096578160200160208202803683370190505b509050816000036110ac57935061115b92505050565b60006110b78861141c565b9050600081604001516110c8575080515b885b8881141580156110da5750848714155b1561114f576110e881611eb8565b925082604001516111475782516001600160a01b03161561110857825191505b8a6001600160a01b0316826001600160a01b031603611147578084888060010199508151811061113a5761113a612df9565b6020026020010181815250505b6001016110ca565b50505092835250909150505b9392505050565b600d548290600160a01b900460ff161561117f5761117f816118b6565b6109718383611f39565b3360009081526009602052604090205460ff166111b85760405162461bcd60e51b81526004016109a590612c09565b82811461121c5760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b60648201526084016109a5565b6000805b848110156112605785858281811061123a5761123a612df9565b905060200201602081019061124f9190612c38565b61ffff169190910190600101611220565b50600c54600160601b900461ffff1681611281600154600054036000190190565b61128b9190612e0f565b11156112d55760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b60448201526064016109a5565b60005b828110156113425761133a8484838181106112f5576112f5612df9565b905060200201602081019061130a91906125fe565b87878481811061131c5761131c612df9565b90506020020160208101906113319190612c38565b61ffff16611fa5565b6001016112d8565b505050505050565b611355848484610b65565b6001600160a01b0383163b15610ba2576113718484848461203c565b610ba2576040516368d2bf6b60e11b815260040160405180910390fd5b600e805461139b90612bd5565b80601f01602080910402602001604051908101604052809291908181526020018280546113c790612bd5565b80156114145780601f106113e957610100808354040283529160200191611414565b820191906000526020600020905b8154815290600101906020018083116113f757829003601f168201915b505050505081565b611424612525565b61142c612525565b600183108061143d57506000548310155b156114485792915050565b61145183611eb8565b90508060400151156114635792915050565b61115b83611eb8565b60606114778261187d565b61149457604051630a14c4b560e41b815260040160405180910390fd5b600e61149f83612128565b600f6040516020016114b393929190612e95565b6040516020818303038152906040529050919050565b3360009081526009602052604090205460ff166114f85760405162461bcd60e51b81526004016109a590612c09565b600e611505848683612f0e565b50600f611513828483612f0e565b5050505050565b600f805461139b90612bd5565b600c54600160701b900460ff166001811115611545576115456128a8565b60011461158a5760405162461bcd60e51b8152602060048201526013602482015272119bdc99da5b99c81a5cc8191a5cd8589b1959606a1b60448201526064016109a5565b600c54600160601b900461ffff166115a9600154600054036000190190565b106115f25760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b60448201526064016109a5565b604080516002808252606082018352600092602083019080368337019050509050828160008151811061162757611627612df9565b602002602001018181525050818160018151811061164757611647612df9565b6020908102919091010152600d54604051631351198360e21b81526001600160a01b0390911690634d44660c906116849033908590600401612fcd565b602060405180830381865afa1580156116a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c59190612ff1565b6117065760405162461bcd60e51b815260206004820152601260248201527113dddb995c8818da1958dac819985a5b195960721b60448201526064016109a5565b60408051600180825281830190925260009160208083019080368337019050509050828160008151811061173c5761173c612df9565b6020908102919091010152600d546040516389af610760e01b81526001600160a01b03909116906389af6107906117799033908590600401612fcd565b600060405180830381600087803b15801561179357600080fd5b505af11580156117a7573d6000803e3d6000fd5b50505050610ba23360016121ba565b6117be611823565b6117c9816001610d8d565b6117d281612389565b50565b60006301ffc9a760e01b6001600160e01b03198316148061180657506380ac58cd60e01b6001600160e01b03198316145b806108455750506001600160e01b031916635b5e139f60e01b1490565b6008546001600160a01b03163314610ee45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109a5565b600081600111158015611891575060005482105b8015610845575050600090815260046020526040902054600160e01b900460ff161590565b6daaeb6d7670e522a718067333cd4e3b156117d257604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611923573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119479190612ff1565b6117d257604051633b79c77360e21b81526001600160a01b03821660048201526024016109a5565b600061197a82610e72565b9050336001600160a01b038216146119b357611996813361075d565b6119b3576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611a1a82611d29565b9050836001600160a01b031681600001516001600160a01b031614611a515760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054611a6c8187336123ff565b611a9757611a7a863361075d565b611a9757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516611abe57604051633a954ecd60e21b815260040160405180910390fd5b8015611ac957600082555b6001600160a01b03808716600090815260056020908152604080832080546000196001600160401b0380831691909101811667ffffffffffffffff19928316179092558a861680865283862080548085166001908101861691909416179055835160a081018552908152428316818601908152818501878152606080840194855260808d81015161ffff9081169186019182528f8b52600490995296909820925183549251915194519651909716600160f01b026001600160f01b03961515600160e81b0260ff60e81b19951515600160e01b029590951661ffff60e01b1992909616600160a01b026001600160e01b03199093169790991696909617179490941691909117171692909217909155830151611ce35760018401600081815260046020526040812054600160a01b90046001600160401b03169003611ce1576000548114611ce1576040805160a08101825285516001600160a01b0390811682526020808801516001600160401b039081168285019081526000858701818152606087018281526080808e015161ffff908116918a019182528b8552600490975298909220965187549351915192519851909516600160f01b026001600160f01b03981515600160e81b0260ff60e81b19931515600160e01b029390931661ffff60e01b1992909516600160a01b026001600160e01b0319909416959096169490941791909117929092161717929092169190911790555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611342565b611d31612525565b8180600111611e4d57600054811015611e4d57600081815260046020908152604091829020825160a08101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b820460ff9081161515938201849052600160e81b83041615156060820152600160f01b90910461ffff16608082015290611e4b575b80516001600160a01b031661115b575060001901600081815260046020908152604091829020825160a08101845290546001600160a01b03811682526001600160401b03600160a01b8204169282019290925260ff600160e01b83048116151593820193909352600160e81b82049092161515606083015261ffff600160f01b909104166080820152611dbd565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611ec0612525565b50600090815260046020908152604091829020825160a08101845290546001600160a01b03811682526001600160401b03600160a01b8204169282019290925260ff600160e01b83048116151593820193909352600160e81b82049092161515606083015261ffff600160f01b90910416608082015290565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b8015612038577f000000000000000000000000000000000000000000000000000000000000000581111561202e57611ffd827f00000000000000000000000000000000000000000000000000000000000000056121ba565b6120277f00000000000000000000000000000000000000000000000000000000000000058261300e565b9050611fa5565b61203882826121ba565b5050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612071903390899088908890600401613021565b6020604051808303816000875af19250505080156120ac575060408051601f3d908101601f191682019092526120a99181019061305e565b60015b61210a573d8080156120da576040519150601f19603f3d011682016040523d82523d6000602084013e6120df565b606091505b508051600003612102576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060006121358361244d565b60010190506000816001600160401b0381111561215457612154612a04565b6040519080825280601f01601f19166020018201604052801561217e576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461218857509392505050565b60008054908290036121df5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0380841660008181526005602090815260408083208054600160401b6001600160401b038083168b01811667ffffffffffffffff198416811783900482168c0182169092026fffffffffffffffffffffffffffffffff1990931690911791909117909155815160a08101835285815242821681850190815281840186815260018b1460608401908152608084018881528b8952600490975294872092518354925191519551965161ffff16600160f01b026001600160f01b03971515600160e81b0260ff60e81b19971515600160e01b029790971661ffff60e01b1993909616600160a01b026001600160e01b031990941691909a16179190911716919091179190911791909116939093179092559082840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461235f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612327565b508160000361238057604051622e076360e81b815260040160405180910390fd5b60005550505050565b612391611823565b6001600160a01b0381166123f65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a5565b6117d281611e66565b6000826001600160a01b0316826001600160a01b0316036124225750600161115b565b836001600160a01b0316826001600160a01b0316036124435750600161115b565b5060009392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061248c5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106124b8576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106124d657662386f26fc10000830492506010015b6305f5e10083106124ee576305f5e100830492506008015b612710831061250257612710830492506004015b60648310612514576064830492506002015b600a83106108455760010192915050565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915290565b6001600160e01b0319811681146117d257600080fd5b60006020828403121561257b57600080fd5b813561115b81612553565b60005b838110156125a1578181015183820152602001612589565b50506000910152565b600081518084526125c2816020860160208601612586565b601f01601f19169290920160200192915050565b60208152600061115b60208301846125aa565b6001600160a01b03811681146117d257600080fd5b60006020828403121561261057600080fd5b813561115b816125e9565b60006020828403121561262d57600080fd5b5035919050565b6000806040838503121561264757600080fd5b8235612652816125e9565b946020939093013593505050565b600060a0828403121561267257600080fd5b50919050565b80151581146117d257600080fd5b60006020828403121561269857600080fd5b813561115b81612678565b6000806000606084860312156126b857600080fd5b83356126c3816125e9565b925060208401356126d3816125e9565b929592945050506040919091013590565b600080604083850312156126f757600080fd5b50508035926020909101359150565b61ffff811681146117d257600080fd5b60008060006060848603121561272b57600080fd5b8335612736816125e9565b9250602084013561274681612706565b9150604084013561275681612706565b809150509250925092565b6000806040838503121561277457600080fd5b823561277f816125e9565b9150602083013561278f81612678565b809150509250929050565b60008083601f8401126127ac57600080fd5b5081356001600160401b038111156127c357600080fd5b6020830191508360208260051b8501011115610be557600080fd5b600080602083850312156127f157600080fd5b82356001600160401b0381111561280757600080fd5b6128138582860161279a565b90969095509350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260608082015115159083015260809081015161ffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610fc05761289583855161281f565b9284019260a09290920191600101612882565b634e487b7160e01b600052602160045260246000fd5b6001600160401b038616815261ffff858116602083015284811660408301528316606082015260a081016002831061290657634e487b7160e01b600052602160045260246000fd5b8260808301529695505050505050565b600081518084526020808501945080840160005b838110156129465781518752958201959082019060010161292a565b509495945050505050565b60208152600061115b6020830184612916565b60008060006060848603121561297957600080fd5b8335612984816125e9565b95602085013595506040909401359392505050565b600080600080604085870312156129af57600080fd5b84356001600160401b03808211156129c657600080fd5b6129d28883890161279a565b909650945060208701359150808211156129eb57600080fd5b506129f88782880161279a565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612a3057600080fd5b8435612a3b816125e9565b93506020850135612a4b816125e9565b92506040850135915060608501356001600160401b0380821115612a6e57600080fd5b818701915087601f830112612a8257600080fd5b813581811115612a9457612a94612a04565b604051601f8201601f19908116603f01168101908382118183101715612abc57612abc612a04565b816040528281528a6020848701011115612ad557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60a08101610845828461281f565b60008083601f840112612b1957600080fd5b5081356001600160401b03811115612b3057600080fd5b602083019150836020828501011115610be557600080fd5b60008060008060408587031215612b5e57600080fd5b84356001600160401b0380821115612b7557600080fd5b612b8188838901612b07565b90965094506020870135915080821115612b9a57600080fd5b506129f887828801612b07565b60008060408385031215612bba57600080fd5b8235612bc5816125e9565b9150602083013561278f816125e9565b600181811c90821680612be957607f821691505b60208210810361267257634e487b7160e01b600052602260045260246000fd5b602080825260159082015274556e617574686f72697a65642064656c656761746560581b604082015260600190565b600060208284031215612c4a57600080fd5b813561115b81612706565b600281106117d257600080fd5b600060208284031215612c7457600080fd5b813561115b81612c55565b6000813561084581612706565b6000813561084581612c55565b60028210612cb757634e487b7160e01b600052602160045260246000fd5b805460ff60701b191660709290921b60ff60701b16919091179055565b81356001600160401b038116808214612cec57600080fd5b825467ffffffffffffffff1981168217845591506020840135612d0e81612706565b69ffff0000000000000000604091821b1669ffffffffffffffffffff19841683178117855590850135612d4081612706565b6bffffffffffffffffffffffff19939093169091171760509190911b61ffff60501b16178155612d95612d7560608401612c7f565b82805461ffff60601b191660609290921b61ffff60601b16919091179055565b612038612da460808401612c8c565b82612c99565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761084557610845612daa565b600082612df457634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b8082018082111561084557610845612daa565b60008154612e2f81612bd5565b60018281168015612e475760018114612e5c57612e8b565b60ff1984168752821515830287019450612e8b565b8560005260208060002060005b85811015612e825781548a820152908401908201612e69565b50505082870194505b5050505092915050565b6000612ea18286612e22565b8451612eb1818360208901612586565b612ebd81830186612e22565b979650505050505050565b601f82111561097157600081815260208120601f850160051c81016020861015612eef5750805b601f850160051c820191505b8181101561134257828155600101612efb565b6001600160401b03831115612f2557612f25612a04565b612f3983612f338354612bd5565b83612ec8565b6000601f841160018114612f6d5760008515612f555750838201355b600019600387901b1c1916600186901b178355611513565b600083815260209020601f19861690835b82811015612f9e5786850135825560209485019460019092019101612f7e565b5086821015612fbb5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6001600160a01b038316815260406020820181905260009061212090830184612916565b60006020828403121561300357600080fd5b815161115b81612678565b8181038181111561084557610845612daa565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613054908301846125aa565b9695505050505050565b60006020828403121561307057600080fd5b815161115b8161255356fea264697066735822122094b9ae1ba5e959156763dde65fc5689555678f6c7ad1ab0ad37e6598a94296a364736f6c63430008110033
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.