ETH Price: $3,730.42 (+0.48%)
Gas: 7 Gwei

Contract

0x7e3Ef31186D1BEc0D3f35aD701D065743B84C790
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Approval For...199414522024-05-24 18:12:5917 hrs ago1716574379IN
Antonym: ANTONYM Token
0 ETH0.0002785311.4648747
Set Approval For...199017342024-05-19 4:54:596 days ago1716094499IN
Antonym: ANTONYM Token
0 ETH0.000082843.40827966
Set Approval For...198981892024-05-18 17:02:236 days ago1716051743IN
Antonym: ANTONYM Token
0 ETH0.000218814.74283149
Set Approval For...198935392024-05-18 1:24:117 days ago1715995451IN
Antonym: ANTONYM Token
0 ETH0.000139333.02021579
Transfer From198506702024-05-12 1:28:4713 days ago1715477327IN
Antonym: ANTONYM Token
0 ETH0.000212533.45338884
Set Approval For...198487342024-05-11 18:59:3513 days ago1715453975IN
Antonym: ANTONYM Token
0 ETH0.000190654.13258591
Set Approval For...198469812024-05-11 13:06:5913 days ago1715432819IN
Antonym: ANTONYM Token
0 ETH0.000290576.29844907
Set Approval For...198212612024-05-07 22:46:5917 days ago1715122019IN
Antonym: ANTONYM Token
0 ETH0.000186514.04283104
Set Approval For...197305622024-04-25 6:22:1130 days ago1714026131IN
Antonym: ANTONYM Token
0 ETH0.000149726.16290409
Set Approval For...197208832024-04-23 21:49:4731 days ago1713908987IN
Antonym: ANTONYM Token
0 ETH0.0005413811.73481767
Set Approval For...197055672024-04-21 18:27:3533 days ago1713724055IN
Antonym: ANTONYM Token
0 ETH0.000189997.81645564
Set Approval For...197030012024-04-21 9:51:4734 days ago1713693107IN
Antonym: ANTONYM Token
0 ETH0.000189597.8
Set Approval For...196558572024-04-14 19:27:5940 days ago1713122879IN
Antonym: ANTONYM Token
0 ETH0.0002813211.57376891
Set Approval For...196080062024-04-08 2:34:1147 days ago1712543651IN
Antonym: ANTONYM Token
0 ETH0.0004791210.36906554
Set Approval For...195988882024-04-06 19:53:2348 days ago1712433203IN
Antonym: ANTONYM Token
0 ETH0.000304312.51942658
Set Approval For...195422032024-03-29 21:03:3556 days ago1711746215IN
Antonym: ANTONYM Token
0 ETH0.0012018926.00424958
Safe Transfer Fr...195293072024-03-28 1:20:5958 days ago1711588859IN
Antonym: ANTONYM Token
0 ETH0.0019249329.87498822
Set Approval For...195031932024-03-24 8:22:3562 days ago1711268555IN
Antonym: ANTONYM Token
0 ETH0.000407816.78550105
Set Approval For...194298412024-03-14 0:57:3572 days ago1710377855IN
Antonym: ANTONYM Token
0 ETH0.0012330447
Set Approval For...194298352024-03-14 0:56:2372 days ago1710377783IN
Antonym: ANTONYM Token
0 ETH0.0021222146
Set Approval For...194052942024-03-10 14:28:5975 days ago1710080939IN
Antonym: ANTONYM Token
0 ETH0.003074666.64355422
Set Approval For...193854102024-03-07 19:33:5978 days ago1709840039IN
Antonym: ANTONYM Token
0 ETH0.001952380.31859598
Set Approval For...193326362024-02-29 10:40:4786 days ago1709203247IN
Antonym: ANTONYM Token
0 ETH0.0021629888.98619618
Set Approval For...193207902024-02-27 18:51:1187 days ago1709059871IN
Antonym: ANTONYM Token
0 ETH0.0013181954.23124217
Set Approval For...193081422024-02-26 0:22:4789 days ago1708906967IN
Antonym: ANTONYM Token
0 ETH0.0006607627.18430219
View all transactions

Latest 24 internal transactions

Advanced mode:
Parent Transaction Hash Block From To Value
143193412022-03-04 8:24:37813 days ago1646382277
Antonym: ANTONYM Token
2,198.71 ETH
143111172022-03-03 1:43:45814 days ago1646271825
Antonym: ANTONYM Token
0.03 ETH
143111172022-03-03 1:43:45814 days ago1646271825
Antonym: ANTONYM Token
0.3 ETH
143111162022-03-03 1:43:38814 days ago1646271818
Antonym: ANTONYM Token
2.4 ETH
143111162022-03-03 1:43:38814 days ago1646271818
Antonym: ANTONYM Token
2.4 ETH
143111162022-03-03 1:43:38814 days ago1646271818
Antonym: ANTONYM Token
2.4 ETH
143111162022-03-03 1:43:38814 days ago1646271818
Antonym: ANTONYM Token
2.4 ETH
143111142022-03-03 1:43:23814 days ago1646271803
Antonym: ANTONYM Token
0.3 ETH
143111112022-03-03 1:42:48814 days ago1646271768
Antonym: ANTONYM Token
0.1 ETH
143111072022-03-03 1:41:44814 days ago1646271704
Antonym: ANTONYM Token
0.1 ETH
143111072022-03-03 1:41:44814 days ago1646271704
Antonym: ANTONYM Token
0.3 ETH
143110882022-03-03 1:36:32814 days ago1646271392
Antonym: ANTONYM Token
0.1 ETH
143110732022-03-03 1:31:42814 days ago1646271102
Antonym: ANTONYM Token
0.1 ETH
143110732022-03-03 1:31:42814 days ago1646271102
Antonym: ANTONYM Token
0.1 ETH
143110332022-03-03 1:21:40814 days ago1646270500
Antonym: ANTONYM Token
0.2 ETH
143108092022-03-03 0:31:44814 days ago1646267504
Antonym: ANTONYM Token
0.2 ETH
143108092022-03-03 0:31:44814 days ago1646267504
Antonym: ANTONYM Token
0.2 ETH
143108092022-03-03 0:31:44814 days ago1646267504
Antonym: ANTONYM Token
0.2 ETH
143108092022-03-03 0:31:44814 days ago1646267504
Antonym: ANTONYM Token
0.2 ETH
143108092022-03-03 0:31:44814 days ago1646267504
Antonym: ANTONYM Token
0.2 ETH
143108092022-03-03 0:31:44814 days ago1646267504
Antonym: ANTONYM Token
0.2 ETH
143108092022-03-03 0:31:44814 days ago1646267504
Antonym: ANTONYM Token
0.2 ETH
143108092022-03-03 0:31:44814 days ago1646267504
Antonym: ANTONYM Token
0.2 ETH
143107182022-03-03 0:12:41814 days ago1646266361
Antonym: ANTONYM Token
0.1 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Antonym

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion
File 1 of 12 : FashionNFT.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "./ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract Antonym is ERC721A, Ownable {
    using Strings for uint256;

    uint256 public constant WHITELIST_MAX = 4400;
    uint256 public constant RESERVE_MAX = 88; 
    uint256 public constant TOTAL_MAX = 8888; 
    uint256 public constant MAX_SALE_QUANTITY = 3; 
    uint256 public whitelistPrice = 0.185 ether; 
    uint256 public whitelistCount;
    uint256 public reserveCount;

    uint32 public startTime;
    bool public saleActive;
    bool public whitelistActive;
    bool private whitelistEnded;

    struct DAVariables {
        uint64 saleStartPrice;
        uint64 duration;
        uint64 interval;
        uint64 decreaseRate;
    }

    DAVariables public daVariables;

    mapping(address => uint256) public whitelists;

    string private baseURI;
    bool public revealed;

    address private paymentAddress;
    address private royaltyAddress;
    uint96 private royaltyBasisPoints = 810;
    bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;

    constructor() ERC721A("Antonym", "ANTONYM") {}

    /**
     * @notice not locked modifier
     */
    modifier notEnded() {
        require(!whitelistEnded, "WHITELIST_ENDED");
        _;
    }

    /**
     * @notice mint from whitelist
     * @dev must occur before public sale
     */
    function mintWhitelist(uint256 _quantity) external payable notEnded {
        require(whitelistActive, "WHITELIST_INACTIVE");
        uint256 remaining = whitelists[msg.sender];
        require(whitelistCount + _quantity <= WHITELIST_MAX, "WHITELIST_MAXED");
        require(remaining != 0 && _quantity <= remaining, "UNAUTHORIZED");
        require(msg.value == whitelistPrice * _quantity, "INCORRECT_ETH");
        if (_quantity == remaining) {
            delete whitelists[msg.sender];
        } else {
            whitelists[msg.sender] = whitelists[msg.sender] - _quantity;
        }
        whitelistCount = whitelistCount + _quantity;
        _safeMint(msg.sender, _quantity);
    }

    /**
     * @notice buy from sale (dutch auction)
     * @dev must occur after whitelist sale
     */
    function buy(uint256 _quantity) external payable {
        require(saleActive, "SALE_INACTIVE");
        require(tx.origin == msg.sender, "NOT_EOA");
        require(
            _numberMinted(msg.sender) + _quantity <= MAX_SALE_QUANTITY,
            "QUANTITY_MAXED"
        );
        require(
            (totalSupply() - reserveCount) + _quantity <=
                TOTAL_MAX - RESERVE_MAX,
            "SALE_MAXED"
        );
        uint256 mintCost;
        DAVariables memory _daVariables = daVariables;
        if (block.timestamp - startTime >= _daVariables.duration) {
            mintCost = whitelistPrice * _quantity;
        } else {
            uint256 steps = (block.timestamp - startTime) /
                _daVariables.interval;
            mintCost =
                (daVariables.saleStartPrice -
                    (steps * _daVariables.decreaseRate)) *
                _quantity;
        }
        require(msg.value >= mintCost, "INSUFFICIENT_ETH");
        _mint(msg.sender, _quantity, "", true);
        if (msg.value > mintCost) {
            payable(msg.sender).transfer(msg.value - mintCost);
        }
    }

    /**
     * @notice release reserve
     */
    function releaseReserve(address _account, uint256 _quantity)
        external
        onlyOwner
    {
        require(_quantity > 0, "INVALID_QUANTITY");
        require(reserveCount + _quantity <= RESERVE_MAX, "RESERVE_MAXED");
        reserveCount = reserveCount + _quantity;
        _safeMint(_account, _quantity);
    }

    /**
     * @notice return number of tokens minted by owner
     */
    function saleMax() external view returns (uint256) {
        if (!whitelistEnded) {
            return TOTAL_MAX - RESERVE_MAX - WHITELIST_MAX;
        }
        return TOTAL_MAX - RESERVE_MAX - whitelistCount;
    }

    /**
     * @notice return number of tokens minted by owner
     */
    function numberMinted(address owner) external view returns (uint256) {
        return _numberMinted(owner);
    }

    /**
     * @notice return current sale price
     */
    function getCurrentPrice() external view returns (uint256) {
        if (!saleActive) {
            return daVariables.saleStartPrice;
        }
        DAVariables memory _daVariables = daVariables;
        if (block.timestamp - startTime >= _daVariables.duration) {
            return whitelistPrice;
        } else {
            uint256 steps = (block.timestamp - startTime) /
                _daVariables.interval;
            return
                daVariables.saleStartPrice -
                (steps * _daVariables.decreaseRate);
        }
    }

    /**
     * @notice active whitelist
     */
    function activateWhitelist() external onlyOwner {
        !whitelistActive ? whitelistActive = true : whitelistActive = false;
    }

    /**
     * @notice active sale
     */
    function activateSale() external onlyOwner {
        require(daVariables.saleStartPrice != 0, "SALE_VARIABLES_NOT_SET");
        if (!whitelistEnded) whitelistEnded = true;
        if (whitelistActive) whitelistActive = false;
        if (startTime == 0) {
            startTime = uint32(block.timestamp);
        }
        !saleActive ? saleActive = true : saleActive = false;
    }

    /**
     * @notice set sale startTime
     */
    function setSaleVariables(
        uint32 _startTime,
        uint64 _saleStartPrice,
        uint64 _duration,
        uint64 _interval,
        uint64 _decreaseRate
    ) external onlyOwner {
        require(!saleActive);
        startTime = _startTime;
        daVariables = DAVariables({
            saleStartPrice: _saleStartPrice,
            duration: _duration,
            interval: _interval,
            decreaseRate: _decreaseRate
        });
    }

    /**
     * @notice set base URI
     */
    function setBaseURI(string calldata _baseURI, bool reveal) external onlyOwner {
        if (!revealed && reveal) revealed = reveal; 
        baseURI = _baseURI;
    }

    /**
     * @notice set payment address
     */
    function setPaymentAddress(address _paymentAddress) external onlyOwner {
        paymentAddress = _paymentAddress;
    }

    /**
     * @notice set royalty address
     */
    function setRoyaltyAddress(address _royaltyAddress) external onlyOwner {
        royaltyAddress = _royaltyAddress;
    }

    /**
     * @notice set royalty rate
     */
    function setRoyalty(uint96 _royaltyBasisPoints) external onlyOwner {
        royaltyBasisPoints = _royaltyBasisPoints;
    }

    /**
     * @notice set whitelist price
     */
    function setWhitelistPrice(uint256 _newPrice) external onlyOwner {
        whitelistPrice = _newPrice;
    }

    /**
     * @notice add addresses to whitelist
     */
    function setWhitelist(address[] calldata whitelisters, bool ogStatus)
        external
        onlyOwner
    {
        uint256 quantity = ogStatus ? 2 : 1;
        for (uint256 i; i < whitelisters.length; i++) {
            whitelists[whitelisters[i]] = quantity;
        }
    }

    /**
     * @notice token URI
     */
    function tokenURI(uint256 _tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(_tokenId), "Cannot query non-existent token");
        if (revealed) {
        return string(abi.encodePacked(baseURI, _tokenId.toString()));
        } else{
            return baseURI;
        }
    }

    /**
     * @notice royalty information
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount)
    {
        require(_exists(_tokenId), "Cannot query non-existent token");
        return (royaltyAddress, (_salePrice * royaltyBasisPoints) / 10000);
    }

    /**
     * @notice supports interface
     * @dev overridden for EIP2981 royalties
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721A)
        returns (bool)
    {
        if (interfaceId == _INTERFACE_ID_ERC2981) {
            return true;
        }
        return super.supportsInterface(interfaceId);
    }

    /**
     * @notice transfer funds
     */
    function transferFunds() external onlyOwner {
        (bool success, ) = payable(paymentAddress).call{
            value: address(this).balance
        }("");
        require(success, "TRANSFER_FAILED");
    }
}

File 3 of 12 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**128 - 1 (max value of uint128).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
    }

    // Compiler will pack the following 
    // _currentIndex and _burnCounter into a single 256bit word.
    
    // The tokenId of the next token to be minted.
    uint128 internal _currentIndex;

    // The number of tokens burned.
    uint128 internal _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 ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex times
        unchecked {
            return _currentIndex - _burnCounter;    
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (!ownership.burned) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }
        revert TokenIndexOutOfBounds();
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }

        // Execution should never reach this point.
        revert();
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant: 
                    // There will always be an ownership that has an address and is not burned 
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    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, tokenId.toString())) : '';
    }

    /**
     * @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, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (!_checkOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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 (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, 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.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @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.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1
        // updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }
                updatedIndex++;
            }

            _currentIndex = uint128(updatedIndex);
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership.addr);

        // 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**128.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership.addr);

        // 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**128.
        unchecked {
            _addressData[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked { 
            _burnCounter++;
        }
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert TransferToNonERC721ReceiverImplementer();
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @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 {}
}

File 4 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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);
    }
}

File 5 of 12 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @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
    ) external;

    /**
     * @dev Transfers `tokenId` token 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;

    /**
     * @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;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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 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);

    /**
     * @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 calldata data
    ) external;
}

File 6 of 12 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 7 of 12 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @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);
}

File 8 of 12 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 9 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 12 : Context.sol
// 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;
    }
}

File 11 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @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] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 12 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 13 of 12 : IERC165.sol
// 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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 500
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","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":"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":"MAX_SALE_QUANTITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVE_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activateSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"activateWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"daVariables","outputs":[{"internalType":"uint64","name":"saleStartPrice","type":"uint64"},{"internalType":"uint64","name":"duration","type":"uint64"},{"internalType":"uint64","name":"interval","type":"uint64"},{"internalType":"uint64","name":"decreaseRate","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"_quantity","type":"uint256"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"releaseReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"nonpayable","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":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"bool","name":"reveal","type":"bool"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_paymentAddress","type":"address"}],"name":"setPaymentAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"_royaltyBasisPoints","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyAddress","type":"address"}],"name":"setRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_startTime","type":"uint32"},{"internalType":"uint64","name":"_saleStartPrice","type":"uint64"},{"internalType":"uint64","name":"_duration","type":"uint64"},{"internalType":"uint64","name":"_interval","type":"uint64"},{"internalType":"uint64","name":"_decreaseRate","type":"uint64"}],"name":"setSaleVariables","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"whitelisters","type":"address[]"},{"internalType":"bool","name":"ogStatus","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setWhitelistPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","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":"nonpayable","type":"function"},{"inputs":[],"name":"transferFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelists","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052670291408513728000600855601080546001600160a01b031661019560a11b1790553480156200003357600080fd5b5060405180604001604052806007815260200166416e746f6e796d60c81b81525060405180604001604052806007815260200166414e544f4e594d60c81b81525081600190805190602001906200008c9291906200011b565b508051620000a29060029060208401906200011b565b505050620000bf620000b9620000c560201b60201c565b620000c9565b620001fe565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012990620001c1565b90600052602060002090601f0160209004810192826200014d576000855562000198565b82601f106200016857805160ff191683800117855562000198565b8280016001018555821562000198579182015b82811115620001985782518255916020019190600101906200017b565b50620001a6929150620001aa565b5090565b5b80821115620001a65760008155600101620001ab565b600181811c90821680620001d657607f821691505b60208210811415620001f857634e487b7160e01b600052602260045260246000fd5b50919050565b612f99806200020e6000396000f3fe60806040526004361061031e5760003560e01c806368428a1b116101a5578063b64b21ca116100ec578063d96a094a11610095578063eb91d37e1161006f578063eb91d37e14610939578063f2624b5d1461094e578063f2fde38b14610964578063fc1a1c361461098457600080fd5b8063d96a094a146108bd578063dc33e681146108d0578063e985e9c5146108f057600080fd5b8063c721f08d116100c6578063c721f08d14610868578063c87b56dd1461087d578063cac926691461089d57600080fd5b8063b64b21ca14610813578063b88d4fde14610833578063c3dc6ecf1461085357600080fd5b806389e877a31161014e578063a08a81d711610128578063a08a81d7146107bd578063a22cb465146107d3578063accb1639146107f357600080fd5b806389e877a3146107755780638da5cb5b1461078a57806395d89b41146107a857600080fd5b8063717d57d31161017f578063717d57d31461070357806378e97925146107235780637c7b2ff01461075557600080fd5b806368428a1b146106ac57806370a08231146106ce578063715018a6146106ee57600080fd5b80632ec7be0b116102695780634618163e116102125780635e1e1004116101ec5780635e1e1004146106565780636352211e1461067657806365db29c31461069657600080fd5b80634618163e146106095780634f6ccce71461061c578063518302271461063c57600080fd5b80633c68eb81116102435780633c68eb81146105bf578063414fb760146105d457806342842e0e146105e957600080fd5b80632ec7be0b1461056a5780632f745c591461057f5780633c271a051461059f57600080fd5b806316317c21116102cb5780631e7be210116102a55780631e7be210146104de57806323b872dd1461050b5780632a55205a1461052b57600080fd5b806316317c2114610417578063166bfa041461043b57806318160ddd146104af57600080fd5b806306fdde03116102fc57806306fdde031461039d578063081812fc146103bf578063095ea7b3146103f757600080fd5b806301ffc9a71461032357806302ce58131461035857806306d254da1461037b575b600080fd5b34801561032f57600080fd5b5061034361033e3660046128bc565b61099a565b60405190151581526020015b60405180910390f35b34801561036457600080fd5b50600b546103439065010000000000900460ff1681565b34801561038757600080fd5b5061039b6103963660046128f7565b6109cc565b005b3480156103a957600080fd5b506103b2610a3b565b60405161034f919061296a565b3480156103cb57600080fd5b506103df6103da36600461297d565b610acd565b6040516001600160a01b03909116815260200161034f565b34801561040357600080fd5b5061039b610412366004612996565b610b11565b34801561042357600080fd5b5061042d600a5481565b60405190815260200161034f565b34801561044757600080fd5b50600c5461047b9067ffffffffffffffff80821691600160401b8104821691600160801b8204811691600160c01b90041684565b6040805167ffffffffffffffff9586168152938516602085015291841691830191909152909116606082015260800161034f565b3480156104bb57600080fd5b5061042d6000546001600160801b03600160801b82048116918116919091031690565b3480156104ea57600080fd5b5061042d6104f93660046128f7565b600d6020526000908152604090205481565b34801561051757600080fd5b5061039b6105263660046129c0565b610b9f565b34801561053757600080fd5b5061054b6105463660046129fc565b610baa565b604080516001600160a01b03909316835260208301919091520161034f565b34801561057657600080fd5b5061042d610c48565b34801561058b57600080fd5b5061042d61059a366004612996565b610c8e565b3480156105ab57600080fd5b5061039b6105ba366004612a2e565b610d8b565b3480156105cb57600080fd5b5061039b610e53565b3480156105e057600080fd5b5061042d605881565b3480156105f557600080fd5b5061039b6106043660046129c0565b610f46565b61039b61061736600461297d565b610f61565b34801561062857600080fd5b5061042d61063736600461297d565b611187565b34801561064857600080fd5b50600f546103439060ff1681565b34801561066257600080fd5b5061039b6106713660046128f7565b611232565b34801561068257600080fd5b506103df61069136600461297d565b6112af565b3480156106a257600080fd5b5061042d61113081565b3480156106b857600080fd5b50600b5461034390640100000000900460ff1681565b3480156106da57600080fd5b5061042d6106e93660046128f7565b6112c1565b3480156106fa57600080fd5b5061039b611310565b34801561070f57600080fd5b5061039b61071e36600461297d565b611364565b34801561072f57600080fd5b50600b546107409063ffffffff1681565b60405163ffffffff909116815260200161034f565b34801561076157600080fd5b5061039b610770366004612aca565b6113b1565b34801561078157600080fd5b5061039b6114c3565b34801561079657600080fd5b506007546001600160a01b03166103df565b3480156107b457600080fd5b506103b2611549565b3480156107c957600080fd5b5061042d6122b881565b3480156107df57600080fd5b5061039b6107ee366004612b3a565b611558565b3480156107ff57600080fd5b5061039b61080e366004612996565b6115ee565b34801561081f57600080fd5b5061039b61082e366004612b6d565b6116ef565b34801561083f57600080fd5b5061039b61084e366004612be5565b61176d565b34801561085f57600080fd5b5061042d600381565b34801561087457600080fd5b5061039b6117a1565b34801561088957600080fd5b506103b261089836600461297d565b6118f1565b3480156108a957600080fd5b5061039b6108b8366004612cc1565b611a1c565b61039b6108cb36600461297d565b611a91565b3480156108dc57600080fd5b5061042d6108eb3660046128f7565b611d90565b3480156108fc57600080fd5b5061034361090b366004612cef565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561094557600080fd5b5061042d611d9b565b34801561095a57600080fd5b5061042d60095481565b34801561097057600080fd5b5061039b61097f3660046128f7565b611e9b565b34801561099057600080fd5b5061042d60085481565b60006001600160e01b0319821663152a902d60e11b14156109bd57506001919050565b6109c682611f51565b92915050565b6007546001600160a01b03163314610a195760405162461bcd60e51b81526020600482018190526024820152600080516020612f4483398151915260448201526064015b60405180910390fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b606060018054610a4a90612d19565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7690612d19565b8015610ac35780601f10610a9857610100808354040283529160200191610ac3565b820191906000526020600020905b815481529060010190602001808311610aa657829003601f168201915b5050505050905090565b6000610ad882611fbc565b610af5576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b1c826112af565b9050806001600160a01b0316836001600160a01b03161415610b515760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b715750610b6f813361090b565b155b15610b8f576040516367d9dca160e11b815260040160405180910390fd5b610b9a838383611ff0565b505050565b610b9a83838361204c565b600080610bb684611fbc565b610c025760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610a10565b6010546001600160a01b0381169061271090610c3390600160a01b90046bffffffffffffffffffffffff1686612d6a565b610c3d9190612d9f565b915091509250929050565b600b546000906601000000000000900460ff16610c7e57611130610c6f60586122b8612db3565b610c799190612db3565b905090565b600954610c6f60586122b8612db3565b6000610c99836112c1565b8210610cb8576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b83811015610d8557600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161580159282019290925290610d315750610d7d565b80516001600160a01b031615610d4657805192505b876001600160a01b0316836001600160a01b03161415610d7b5786841415610d74575093506109c692505050565b6001909301925b505b600101610cc9565b50600080fd5b6007546001600160a01b03163314610dd35760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600081610de1576001610de4565b60025b60ff16905060005b83811015610e4c5781600d6000878785818110610e0b57610e0b612dca565b9050602002016020810190610e2091906128f7565b6001600160a01b0316815260208101919091526040016000205580610e4481612de0565b915050610dec565b5050505050565b6007546001600160a01b03163314610e9b5760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600f5460405160009161010090046001600160a01b03169047908381818185875af1925050503d8060008114610eed576040519150601f19603f3d011682016040523d82523d6000602084013e610ef2565b606091505b5050905080610f435760405162461bcd60e51b815260206004820152600f60248201527f5452414e534645525f4641494c454400000000000000000000000000000000006044820152606401610a10565b50565b610b9a8383836040518060200160405280600081525061176d565b600b546601000000000000900460ff1615610fbe5760405162461bcd60e51b815260206004820152600f60248201527f57484954454c4953545f454e44454400000000000000000000000000000000006044820152606401610a10565b600b5465010000000000900460ff166110195760405162461bcd60e51b815260206004820152601260248201527f57484954454c4953545f494e41435449564500000000000000000000000000006044820152606401610a10565b336000908152600d60205260409020546009546111309061103b908490612dfb565b11156110895760405162461bcd60e51b815260206004820152600f60248201527f57484954454c4953545f4d4158454400000000000000000000000000000000006044820152606401610a10565b80158015906110985750808211155b6110d35760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b6044820152606401610a10565b816008546110e19190612d6a565b341461111f5760405162461bcd60e51b815260206004820152600d60248201526c0929c869ea4a48a86a8be8aa89609b1b6044820152606401610a10565b8082141561113c57336000908152600d6020526040812055611168565b336000908152600d6020526040902054611157908390612db3565b336000908152600d60205260409020555b816009546111769190612dfb565b6009556111833383612268565b5050565b600080546001600160801b031681805b8281101561121857600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061120f57858314156112085750949350505050565b6001909201915b50600101611197565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b0316331461127a5760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600f80546001600160a01b039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b60006112ba82612282565b5192915050565b60006001600160a01b0382166112ea576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526004602052604090205467ffffffffffffffff1690565b6007546001600160a01b031633146113585760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b61136260006123a6565b565b6007546001600160a01b031633146113ac5760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600855565b6007546001600160a01b031633146113f95760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600b54640100000000900460ff161561141157600080fd5b600b805463ffffffff191663ffffffff96909616959095179094556040805160808101825267ffffffffffffffff94851680825293851660208201819052928516918101829052939094166060909301839052600c80546fffffffffffffffffffffffffffffffff1916909217600160401b909102176001600160801b0316600160801b90930277ffffffffffffffffffffffffffffffffffffffffffffffff1692909217600160c01b909102179055565b6007546001600160a01b0316331461150b5760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600b5465010000000000900460ff161561153057600b805465ff000000000019169055565b600b805465ff0000000000191665010000000000179055565b606060028054610a4a90612d19565b6001600160a01b0382163314156115825760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546001600160a01b031633146116365760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600081116116865760405162461bcd60e51b815260206004820152601060248201527f494e56414c49445f5155414e54495459000000000000000000000000000000006044820152606401610a10565b605881600a546116969190612dfb565b11156116d45760405162461bcd60e51b815260206004820152600d60248201526c149154d154959157d350561151609a1b6044820152606401610a10565b80600a546116e29190612dfb565b600a556111838282612268565b6007546001600160a01b031633146117375760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600f5460ff161580156117475750805b1561175b57600f805460ff19168215151790555b611767600e8484612816565b50505050565b61177884848461204c565b611784848484846123f8565b611767576040516368d2bf6b60e11b815260040160405180910390fd5b6007546001600160a01b031633146117e95760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600c5467ffffffffffffffff166118425760405162461bcd60e51b815260206004820152601660248201527f53414c455f5641524941424c45535f4e4f545f534554000000000000000000006044820152606401610a10565b600b546601000000000000900460ff1661187057600b805466ff000000000000191666010000000000001790555b600b5465010000000000900460ff161561189457600b805465ff0000000000191690555b600b5463ffffffff166118b757600b805463ffffffff19164263ffffffff161790555b600b54640100000000900460ff16156118da57600b805464ff0000000019169055565b600b805464ff000000001916640100000000179055565b60606118fc82611fbc565b6119485760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610a10565b600f5460ff161561198557600e61195e83612507565b60405160200161196f929190612e2f565b6040516020818303038152906040529050919050565b600e805461199290612d19565b80601f01602080910402602001604051908101604052809291908181526020018280546119be90612d19565b8015611a0b5780601f106119e057610100808354040283529160200191611a0b565b820191906000526020600020905b8154815290600101906020018083116119ee57829003601f168201915b50505050509050919050565b919050565b6007546001600160a01b03163314611a645760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b601080546bffffffffffffffffffffffff909216600160a01b026001600160a01b03909216919091179055565b600b54640100000000900460ff16611adb5760405162461bcd60e51b815260206004820152600d60248201526c53414c455f494e41435449564560981b6044820152606401610a10565b323314611b145760405162461bcd60e51b81526020600482015260076024820152664e4f545f454f4160c81b6044820152606401610a10565b600381611b203361261d565b611b2a9190612dfb565b1115611b785760405162461bcd60e51b815260206004820152600e60248201527f5155414e544954595f4d415845440000000000000000000000000000000000006044820152606401610a10565b611b8560586122b8612db3565b81600a54611bab6000546001600160801b03600160801b82048116918116919091031690565b611bb59190612db3565b611bbf9190612dfb565b1115611bfa5760405162461bcd60e51b815260206004820152600a60248201526914d0531157d35056115160b21b6044820152606401610a10565b60408051608081018252600c5467ffffffffffffffff8082168352600160401b8204811660208401819052600160801b8304821694840194909452600160c01b909104166060820152600b5460009290611c5a9063ffffffff1642612db3565b10611c745782600854611c6d9190612d6a565b9150611ce6565b6040810151600b5460009167ffffffffffffffff1690611c9a9063ffffffff1642612db3565b611ca49190612d9f565b905083826060015167ffffffffffffffff1682611cc19190612d6a565b600c54611cd8919067ffffffffffffffff16612db3565b611ce29190612d6a565b9250505b81341015611d365760405162461bcd60e51b815260206004820152601060248201527f494e53554646494349454e545f455448000000000000000000000000000000006044820152606401610a10565b611d523384604051806020016040528060008152506001612673565b81341115610b9a57336108fc611d688434612db3565b6040518115909202916000818181858888f19350505050158015611767573d6000803e3d6000fd5b60006109c68261261d565b600b54600090640100000000900460ff16611dc15750600c5467ffffffffffffffff1690565b60408051608081018252600c5467ffffffffffffffff8082168352600160401b8204811660208401819052600160801b8304821694840194909452600160c01b909104166060820152600b54909190611e209063ffffffff1642612db3565b10611e2d57505060085490565b6040810151600b5460009167ffffffffffffffff1690611e539063ffffffff1642612db3565b611e5d9190612d9f565b9050816060015167ffffffffffffffff1681611e799190612d6a565b600c54611e90919067ffffffffffffffff16612db3565b9250505090565b5090565b6007546001600160a01b03163314611ee35760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b6001600160a01b038116611f485760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a10565b610f43816123a6565b60006001600160e01b031982166380ac58cd60e01b1480611f8257506001600160e01b03198216635b5e139f60e01b145b80611f9d57506001600160e01b0319821663780e9d6360e01b145b806109c657506301ffc9a760e01b6001600160e01b03198316146109c6565b600080546001600160801b0316821080156109c6575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061205782612282565b80519091506000906001600160a01b0316336001600160a01b0316148061208557508151612085903361090b565b806120a057503361209584610acd565b6001600160a01b0316145b9050806120c057604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146120f55760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661211c57604051633a954ecd60e21b815260040160405180910390fd5b61212c6000848460000151611ff0565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612221576000546001600160801b0316811015612221578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e4c565b611183828260405180602001604052806000815250612809565b60408051606081018252600080825260208201819052918101829052905482906001600160801b031681101561238d57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061238b5780516001600160a01b031615612321579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612386579392505050565b612321565b505b604051636f96cda160e11b815260040160405180910390fd5b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b156124fb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061243c903390899088908890600401612ed6565b602060405180830381600087803b15801561245657600080fd5b505af1925050508015612486575060408051601f3d908101601f1916820190925261248391810190612f12565b60015b6124e1573d8080156124b4576040519150601f19603f3d011682016040523d82523d6000602084013e6124b9565b606091505b5080516124d9576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124ff565b5060015b949350505050565b60608161252b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612555578061253f81612de0565b915061254e9050600a83612d9f565b915061252f565b60008167ffffffffffffffff81111561257057612570612bcf565b6040519080825280601f01601f19166020018201604052801561259a576020820181803683370190505b5090505b84156124ff576125af600183612db3565b91506125bc600a86612f2f565b6125c7906030612dfb565b60f81b8183815181106125dc576125dc612dca565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612616600a86612d9f565b945061259e565b60006001600160a01b038216612646576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260046020526040902054600160401b900467ffffffffffffffff1690565b6000546001600160801b03166001600160a01b0385166126a557604051622e076360e81b815260040160405180910390fd5b836126c35760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156127da5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48380156127b057506127ae60008884886123f8565b155b156127ce576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101612759565b50600080546fffffffffffffffffffffffffffffffff19166001600160801b0392909216919091179055610e4c565b610b9a8383836001612673565b82805461282290612d19565b90600052602060002090601f016020900481019282612844576000855561288a565b82601f1061285d5782800160ff1982351617855561288a565b8280016001018555821561288a579182015b8281111561288a57823582559160200191906001019061286f565b50611e979291505b80821115611e975760008155600101612892565b6001600160e01b031981168114610f4357600080fd5b6000602082840312156128ce57600080fd5b81356128d9816128a6565b9392505050565b80356001600160a01b0381168114611a1757600080fd5b60006020828403121561290957600080fd5b6128d9826128e0565b60005b8381101561292d578181015183820152602001612915565b838111156117675750506000910152565b60008151808452612956816020860160208601612912565b601f01601f19169290920160200192915050565b6020815260006128d9602083018461293e565b60006020828403121561298f57600080fd5b5035919050565b600080604083850312156129a957600080fd5b6129b2836128e0565b946020939093013593505050565b6000806000606084860312156129d557600080fd5b6129de846128e0565b92506129ec602085016128e0565b9150604084013590509250925092565b60008060408385031215612a0f57600080fd5b50508035926020909101359150565b80358015158114611a1757600080fd5b600080600060408486031215612a4357600080fd5b833567ffffffffffffffff80821115612a5b57600080fd5b818601915086601f830112612a6f57600080fd5b813581811115612a7e57600080fd5b8760208260051b8501011115612a9357600080fd5b602092830195509350612aa99186019050612a1e565b90509250925092565b803567ffffffffffffffff81168114611a1757600080fd5b600080600080600060a08688031215612ae257600080fd5b853563ffffffff81168114612af657600080fd5b9450612b0460208701612ab2565b9350612b1260408701612ab2565b9250612b2060608701612ab2565b9150612b2e60808701612ab2565b90509295509295909350565b60008060408385031215612b4d57600080fd5b612b56836128e0565b9150612b6460208401612a1e565b90509250929050565b600080600060408486031215612b8257600080fd5b833567ffffffffffffffff80821115612b9a57600080fd5b818601915086601f830112612bae57600080fd5b813581811115612bbd57600080fd5b876020828501011115612a9357600080fd5b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612bfb57600080fd5b612c04856128e0565b9350612c12602086016128e0565b925060408501359150606085013567ffffffffffffffff80821115612c3657600080fd5b818701915087601f830112612c4a57600080fd5b813581811115612c5c57612c5c612bcf565b604051601f8201601f19908116603f01168101908382118183101715612c8457612c84612bcf565b816040528281528a6020848701011115612c9d57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208284031215612cd357600080fd5b81356bffffffffffffffffffffffff811681146128d957600080fd5b60008060408385031215612d0257600080fd5b612d0b836128e0565b9150612b64602084016128e0565b600181811c90821680612d2d57607f821691505b60208210811415612d4e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612d8457612d84612d54565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612dae57612dae612d89565b500490565b600082821015612dc557612dc5612d54565b500390565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612df457612df4612d54565b5060010190565b60008219821115612e0e57612e0e612d54565b500190565b60008151612e25818560208601612912565b9290920192915050565b600080845481600182811c915080831680612e4b57607f831692505b6020808410821415612e6b57634e487b7160e01b86526022600452602486fd5b818015612e7f5760018114612e9057612ebd565b60ff19861689528489019650612ebd565b60008b81526020902060005b86811015612eb55781548b820152908501908301612e9c565b505084890196505b505050505050612ecd8185612e13565b95945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f08608083018461293e565b9695505050505050565b600060208284031215612f2457600080fd5b81516128d9816128a6565b600082612f3e57612f3e612d89565b50069056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122016592ea74d11c94823be682f53308a6414c80e81c91ed3331aa46fc526aea22364736f6c63430008090033

Deployed Bytecode

0x60806040526004361061031e5760003560e01c806368428a1b116101a5578063b64b21ca116100ec578063d96a094a11610095578063eb91d37e1161006f578063eb91d37e14610939578063f2624b5d1461094e578063f2fde38b14610964578063fc1a1c361461098457600080fd5b8063d96a094a146108bd578063dc33e681146108d0578063e985e9c5146108f057600080fd5b8063c721f08d116100c6578063c721f08d14610868578063c87b56dd1461087d578063cac926691461089d57600080fd5b8063b64b21ca14610813578063b88d4fde14610833578063c3dc6ecf1461085357600080fd5b806389e877a31161014e578063a08a81d711610128578063a08a81d7146107bd578063a22cb465146107d3578063accb1639146107f357600080fd5b806389e877a3146107755780638da5cb5b1461078a57806395d89b41146107a857600080fd5b8063717d57d31161017f578063717d57d31461070357806378e97925146107235780637c7b2ff01461075557600080fd5b806368428a1b146106ac57806370a08231146106ce578063715018a6146106ee57600080fd5b80632ec7be0b116102695780634618163e116102125780635e1e1004116101ec5780635e1e1004146106565780636352211e1461067657806365db29c31461069657600080fd5b80634618163e146106095780634f6ccce71461061c578063518302271461063c57600080fd5b80633c68eb81116102435780633c68eb81146105bf578063414fb760146105d457806342842e0e146105e957600080fd5b80632ec7be0b1461056a5780632f745c591461057f5780633c271a051461059f57600080fd5b806316317c21116102cb5780631e7be210116102a55780631e7be210146104de57806323b872dd1461050b5780632a55205a1461052b57600080fd5b806316317c2114610417578063166bfa041461043b57806318160ddd146104af57600080fd5b806306fdde03116102fc57806306fdde031461039d578063081812fc146103bf578063095ea7b3146103f757600080fd5b806301ffc9a71461032357806302ce58131461035857806306d254da1461037b575b600080fd5b34801561032f57600080fd5b5061034361033e3660046128bc565b61099a565b60405190151581526020015b60405180910390f35b34801561036457600080fd5b50600b546103439065010000000000900460ff1681565b34801561038757600080fd5b5061039b6103963660046128f7565b6109cc565b005b3480156103a957600080fd5b506103b2610a3b565b60405161034f919061296a565b3480156103cb57600080fd5b506103df6103da36600461297d565b610acd565b6040516001600160a01b03909116815260200161034f565b34801561040357600080fd5b5061039b610412366004612996565b610b11565b34801561042357600080fd5b5061042d600a5481565b60405190815260200161034f565b34801561044757600080fd5b50600c5461047b9067ffffffffffffffff80821691600160401b8104821691600160801b8204811691600160c01b90041684565b6040805167ffffffffffffffff9586168152938516602085015291841691830191909152909116606082015260800161034f565b3480156104bb57600080fd5b5061042d6000546001600160801b03600160801b82048116918116919091031690565b3480156104ea57600080fd5b5061042d6104f93660046128f7565b600d6020526000908152604090205481565b34801561051757600080fd5b5061039b6105263660046129c0565b610b9f565b34801561053757600080fd5b5061054b6105463660046129fc565b610baa565b604080516001600160a01b03909316835260208301919091520161034f565b34801561057657600080fd5b5061042d610c48565b34801561058b57600080fd5b5061042d61059a366004612996565b610c8e565b3480156105ab57600080fd5b5061039b6105ba366004612a2e565b610d8b565b3480156105cb57600080fd5b5061039b610e53565b3480156105e057600080fd5b5061042d605881565b3480156105f557600080fd5b5061039b6106043660046129c0565b610f46565b61039b61061736600461297d565b610f61565b34801561062857600080fd5b5061042d61063736600461297d565b611187565b34801561064857600080fd5b50600f546103439060ff1681565b34801561066257600080fd5b5061039b6106713660046128f7565b611232565b34801561068257600080fd5b506103df61069136600461297d565b6112af565b3480156106a257600080fd5b5061042d61113081565b3480156106b857600080fd5b50600b5461034390640100000000900460ff1681565b3480156106da57600080fd5b5061042d6106e93660046128f7565b6112c1565b3480156106fa57600080fd5b5061039b611310565b34801561070f57600080fd5b5061039b61071e36600461297d565b611364565b34801561072f57600080fd5b50600b546107409063ffffffff1681565b60405163ffffffff909116815260200161034f565b34801561076157600080fd5b5061039b610770366004612aca565b6113b1565b34801561078157600080fd5b5061039b6114c3565b34801561079657600080fd5b506007546001600160a01b03166103df565b3480156107b457600080fd5b506103b2611549565b3480156107c957600080fd5b5061042d6122b881565b3480156107df57600080fd5b5061039b6107ee366004612b3a565b611558565b3480156107ff57600080fd5b5061039b61080e366004612996565b6115ee565b34801561081f57600080fd5b5061039b61082e366004612b6d565b6116ef565b34801561083f57600080fd5b5061039b61084e366004612be5565b61176d565b34801561085f57600080fd5b5061042d600381565b34801561087457600080fd5b5061039b6117a1565b34801561088957600080fd5b506103b261089836600461297d565b6118f1565b3480156108a957600080fd5b5061039b6108b8366004612cc1565b611a1c565b61039b6108cb36600461297d565b611a91565b3480156108dc57600080fd5b5061042d6108eb3660046128f7565b611d90565b3480156108fc57600080fd5b5061034361090b366004612cef565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561094557600080fd5b5061042d611d9b565b34801561095a57600080fd5b5061042d60095481565b34801561097057600080fd5b5061039b61097f3660046128f7565b611e9b565b34801561099057600080fd5b5061042d60085481565b60006001600160e01b0319821663152a902d60e11b14156109bd57506001919050565b6109c682611f51565b92915050565b6007546001600160a01b03163314610a195760405162461bcd60e51b81526020600482018190526024820152600080516020612f4483398151915260448201526064015b60405180910390fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b606060018054610a4a90612d19565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7690612d19565b8015610ac35780601f10610a9857610100808354040283529160200191610ac3565b820191906000526020600020905b815481529060010190602001808311610aa657829003601f168201915b5050505050905090565b6000610ad882611fbc565b610af5576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b1c826112af565b9050806001600160a01b0316836001600160a01b03161415610b515760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b715750610b6f813361090b565b155b15610b8f576040516367d9dca160e11b815260040160405180910390fd5b610b9a838383611ff0565b505050565b610b9a83838361204c565b600080610bb684611fbc565b610c025760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610a10565b6010546001600160a01b0381169061271090610c3390600160a01b90046bffffffffffffffffffffffff1686612d6a565b610c3d9190612d9f565b915091509250929050565b600b546000906601000000000000900460ff16610c7e57611130610c6f60586122b8612db3565b610c799190612db3565b905090565b600954610c6f60586122b8612db3565b6000610c99836112c1565b8210610cb8576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b83811015610d8557600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161580159282019290925290610d315750610d7d565b80516001600160a01b031615610d4657805192505b876001600160a01b0316836001600160a01b03161415610d7b5786841415610d74575093506109c692505050565b6001909301925b505b600101610cc9565b50600080fd5b6007546001600160a01b03163314610dd35760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600081610de1576001610de4565b60025b60ff16905060005b83811015610e4c5781600d6000878785818110610e0b57610e0b612dca565b9050602002016020810190610e2091906128f7565b6001600160a01b0316815260208101919091526040016000205580610e4481612de0565b915050610dec565b5050505050565b6007546001600160a01b03163314610e9b5760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600f5460405160009161010090046001600160a01b03169047908381818185875af1925050503d8060008114610eed576040519150601f19603f3d011682016040523d82523d6000602084013e610ef2565b606091505b5050905080610f435760405162461bcd60e51b815260206004820152600f60248201527f5452414e534645525f4641494c454400000000000000000000000000000000006044820152606401610a10565b50565b610b9a8383836040518060200160405280600081525061176d565b600b546601000000000000900460ff1615610fbe5760405162461bcd60e51b815260206004820152600f60248201527f57484954454c4953545f454e44454400000000000000000000000000000000006044820152606401610a10565b600b5465010000000000900460ff166110195760405162461bcd60e51b815260206004820152601260248201527f57484954454c4953545f494e41435449564500000000000000000000000000006044820152606401610a10565b336000908152600d60205260409020546009546111309061103b908490612dfb565b11156110895760405162461bcd60e51b815260206004820152600f60248201527f57484954454c4953545f4d4158454400000000000000000000000000000000006044820152606401610a10565b80158015906110985750808211155b6110d35760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b6044820152606401610a10565b816008546110e19190612d6a565b341461111f5760405162461bcd60e51b815260206004820152600d60248201526c0929c869ea4a48a86a8be8aa89609b1b6044820152606401610a10565b8082141561113c57336000908152600d6020526040812055611168565b336000908152600d6020526040902054611157908390612db3565b336000908152600d60205260409020555b816009546111769190612dfb565b6009556111833383612268565b5050565b600080546001600160801b031681805b8281101561121857600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061120f57858314156112085750949350505050565b6001909201915b50600101611197565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b0316331461127a5760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600f80546001600160a01b039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b60006112ba82612282565b5192915050565b60006001600160a01b0382166112ea576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526004602052604090205467ffffffffffffffff1690565b6007546001600160a01b031633146113585760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b61136260006123a6565b565b6007546001600160a01b031633146113ac5760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600855565b6007546001600160a01b031633146113f95760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600b54640100000000900460ff161561141157600080fd5b600b805463ffffffff191663ffffffff96909616959095179094556040805160808101825267ffffffffffffffff94851680825293851660208201819052928516918101829052939094166060909301839052600c80546fffffffffffffffffffffffffffffffff1916909217600160401b909102176001600160801b0316600160801b90930277ffffffffffffffffffffffffffffffffffffffffffffffff1692909217600160c01b909102179055565b6007546001600160a01b0316331461150b5760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600b5465010000000000900460ff161561153057600b805465ff000000000019169055565b600b805465ff0000000000191665010000000000179055565b606060028054610a4a90612d19565b6001600160a01b0382163314156115825760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546001600160a01b031633146116365760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600081116116865760405162461bcd60e51b815260206004820152601060248201527f494e56414c49445f5155414e54495459000000000000000000000000000000006044820152606401610a10565b605881600a546116969190612dfb565b11156116d45760405162461bcd60e51b815260206004820152600d60248201526c149154d154959157d350561151609a1b6044820152606401610a10565b80600a546116e29190612dfb565b600a556111838282612268565b6007546001600160a01b031633146117375760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600f5460ff161580156117475750805b1561175b57600f805460ff19168215151790555b611767600e8484612816565b50505050565b61177884848461204c565b611784848484846123f8565b611767576040516368d2bf6b60e11b815260040160405180910390fd5b6007546001600160a01b031633146117e95760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b600c5467ffffffffffffffff166118425760405162461bcd60e51b815260206004820152601660248201527f53414c455f5641524941424c45535f4e4f545f534554000000000000000000006044820152606401610a10565b600b546601000000000000900460ff1661187057600b805466ff000000000000191666010000000000001790555b600b5465010000000000900460ff161561189457600b805465ff0000000000191690555b600b5463ffffffff166118b757600b805463ffffffff19164263ffffffff161790555b600b54640100000000900460ff16156118da57600b805464ff0000000019169055565b600b805464ff000000001916640100000000179055565b60606118fc82611fbc565b6119485760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610a10565b600f5460ff161561198557600e61195e83612507565b60405160200161196f929190612e2f565b6040516020818303038152906040529050919050565b600e805461199290612d19565b80601f01602080910402602001604051908101604052809291908181526020018280546119be90612d19565b8015611a0b5780601f106119e057610100808354040283529160200191611a0b565b820191906000526020600020905b8154815290600101906020018083116119ee57829003601f168201915b50505050509050919050565b919050565b6007546001600160a01b03163314611a645760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b601080546bffffffffffffffffffffffff909216600160a01b026001600160a01b03909216919091179055565b600b54640100000000900460ff16611adb5760405162461bcd60e51b815260206004820152600d60248201526c53414c455f494e41435449564560981b6044820152606401610a10565b323314611b145760405162461bcd60e51b81526020600482015260076024820152664e4f545f454f4160c81b6044820152606401610a10565b600381611b203361261d565b611b2a9190612dfb565b1115611b785760405162461bcd60e51b815260206004820152600e60248201527f5155414e544954595f4d415845440000000000000000000000000000000000006044820152606401610a10565b611b8560586122b8612db3565b81600a54611bab6000546001600160801b03600160801b82048116918116919091031690565b611bb59190612db3565b611bbf9190612dfb565b1115611bfa5760405162461bcd60e51b815260206004820152600a60248201526914d0531157d35056115160b21b6044820152606401610a10565b60408051608081018252600c5467ffffffffffffffff8082168352600160401b8204811660208401819052600160801b8304821694840194909452600160c01b909104166060820152600b5460009290611c5a9063ffffffff1642612db3565b10611c745782600854611c6d9190612d6a565b9150611ce6565b6040810151600b5460009167ffffffffffffffff1690611c9a9063ffffffff1642612db3565b611ca49190612d9f565b905083826060015167ffffffffffffffff1682611cc19190612d6a565b600c54611cd8919067ffffffffffffffff16612db3565b611ce29190612d6a565b9250505b81341015611d365760405162461bcd60e51b815260206004820152601060248201527f494e53554646494349454e545f455448000000000000000000000000000000006044820152606401610a10565b611d523384604051806020016040528060008152506001612673565b81341115610b9a57336108fc611d688434612db3565b6040518115909202916000818181858888f19350505050158015611767573d6000803e3d6000fd5b60006109c68261261d565b600b54600090640100000000900460ff16611dc15750600c5467ffffffffffffffff1690565b60408051608081018252600c5467ffffffffffffffff8082168352600160401b8204811660208401819052600160801b8304821694840194909452600160c01b909104166060820152600b54909190611e209063ffffffff1642612db3565b10611e2d57505060085490565b6040810151600b5460009167ffffffffffffffff1690611e539063ffffffff1642612db3565b611e5d9190612d9f565b9050816060015167ffffffffffffffff1681611e799190612d6a565b600c54611e90919067ffffffffffffffff16612db3565b9250505090565b5090565b6007546001600160a01b03163314611ee35760405162461bcd60e51b81526020600482018190526024820152600080516020612f448339815191526044820152606401610a10565b6001600160a01b038116611f485760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a10565b610f43816123a6565b60006001600160e01b031982166380ac58cd60e01b1480611f8257506001600160e01b03198216635b5e139f60e01b145b80611f9d57506001600160e01b0319821663780e9d6360e01b145b806109c657506301ffc9a760e01b6001600160e01b03198316146109c6565b600080546001600160801b0316821080156109c6575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061205782612282565b80519091506000906001600160a01b0316336001600160a01b0316148061208557508151612085903361090b565b806120a057503361209584610acd565b6001600160a01b0316145b9050806120c057604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146120f55760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661211c57604051633a954ecd60e21b815260040160405180910390fd5b61212c6000848460000151611ff0565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612221576000546001600160801b0316811015612221578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e4c565b611183828260405180602001604052806000815250612809565b60408051606081018252600080825260208201819052918101829052905482906001600160801b031681101561238d57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061238b5780516001600160a01b031615612321579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612386579392505050565b612321565b505b604051636f96cda160e11b815260040160405180910390fd5b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b156124fb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061243c903390899088908890600401612ed6565b602060405180830381600087803b15801561245657600080fd5b505af1925050508015612486575060408051601f3d908101601f1916820190925261248391810190612f12565b60015b6124e1573d8080156124b4576040519150601f19603f3d011682016040523d82523d6000602084013e6124b9565b606091505b5080516124d9576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124ff565b5060015b949350505050565b60608161252b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612555578061253f81612de0565b915061254e9050600a83612d9f565b915061252f565b60008167ffffffffffffffff81111561257057612570612bcf565b6040519080825280601f01601f19166020018201604052801561259a576020820181803683370190505b5090505b84156124ff576125af600183612db3565b91506125bc600a86612f2f565b6125c7906030612dfb565b60f81b8183815181106125dc576125dc612dca565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612616600a86612d9f565b945061259e565b60006001600160a01b038216612646576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260046020526040902054600160401b900467ffffffffffffffff1690565b6000546001600160801b03166001600160a01b0385166126a557604051622e076360e81b815260040160405180910390fd5b836126c35760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156127da5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48380156127b057506127ae60008884886123f8565b155b156127ce576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101612759565b50600080546fffffffffffffffffffffffffffffffff19166001600160801b0392909216919091179055610e4c565b610b9a8383836001612673565b82805461282290612d19565b90600052602060002090601f016020900481019282612844576000855561288a565b82601f1061285d5782800160ff1982351617855561288a565b8280016001018555821561288a579182015b8281111561288a57823582559160200191906001019061286f565b50611e979291505b80821115611e975760008155600101612892565b6001600160e01b031981168114610f4357600080fd5b6000602082840312156128ce57600080fd5b81356128d9816128a6565b9392505050565b80356001600160a01b0381168114611a1757600080fd5b60006020828403121561290957600080fd5b6128d9826128e0565b60005b8381101561292d578181015183820152602001612915565b838111156117675750506000910152565b60008151808452612956816020860160208601612912565b601f01601f19169290920160200192915050565b6020815260006128d9602083018461293e565b60006020828403121561298f57600080fd5b5035919050565b600080604083850312156129a957600080fd5b6129b2836128e0565b946020939093013593505050565b6000806000606084860312156129d557600080fd5b6129de846128e0565b92506129ec602085016128e0565b9150604084013590509250925092565b60008060408385031215612a0f57600080fd5b50508035926020909101359150565b80358015158114611a1757600080fd5b600080600060408486031215612a4357600080fd5b833567ffffffffffffffff80821115612a5b57600080fd5b818601915086601f830112612a6f57600080fd5b813581811115612a7e57600080fd5b8760208260051b8501011115612a9357600080fd5b602092830195509350612aa99186019050612a1e565b90509250925092565b803567ffffffffffffffff81168114611a1757600080fd5b600080600080600060a08688031215612ae257600080fd5b853563ffffffff81168114612af657600080fd5b9450612b0460208701612ab2565b9350612b1260408701612ab2565b9250612b2060608701612ab2565b9150612b2e60808701612ab2565b90509295509295909350565b60008060408385031215612b4d57600080fd5b612b56836128e0565b9150612b6460208401612a1e565b90509250929050565b600080600060408486031215612b8257600080fd5b833567ffffffffffffffff80821115612b9a57600080fd5b818601915086601f830112612bae57600080fd5b813581811115612bbd57600080fd5b876020828501011115612a9357600080fd5b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612bfb57600080fd5b612c04856128e0565b9350612c12602086016128e0565b925060408501359150606085013567ffffffffffffffff80821115612c3657600080fd5b818701915087601f830112612c4a57600080fd5b813581811115612c5c57612c5c612bcf565b604051601f8201601f19908116603f01168101908382118183101715612c8457612c84612bcf565b816040528281528a6020848701011115612c9d57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208284031215612cd357600080fd5b81356bffffffffffffffffffffffff811681146128d957600080fd5b60008060408385031215612d0257600080fd5b612d0b836128e0565b9150612b64602084016128e0565b600181811c90821680612d2d57607f821691505b60208210811415612d4e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612d8457612d84612d54565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612dae57612dae612d89565b500490565b600082821015612dc557612dc5612d54565b500390565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612df457612df4612d54565b5060010190565b60008219821115612e0e57612e0e612d54565b500190565b60008151612e25818560208601612912565b9290920192915050565b600080845481600182811c915080831680612e4b57607f831692505b6020808410821415612e6b57634e487b7160e01b86526022600452602486fd5b818015612e7f5760018114612e9057612ebd565b60ff19861689528489019650612ebd565b60008b81526020902060005b86811015612eb55781548b820152908501908301612e9c565b505084890196505b505050505050612ecd8185612e13565b95945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f08608083018461293e565b9695505050505050565b600060208284031215612f2457600080fd5b81516128d9816128a6565b600082612f3e57612f3e612d89565b50069056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122016592ea74d11c94823be682f53308a6414c80e81c91ed3331aa46fc526aea22364736f6c63430008090033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

Antonym is a phygital lifestyle brand bridging the gap between digital collectibles and physical designer goods. Antonym: Genesis is a Phygital collection of 8,888 NFTs. Each holder is eligible to redeem a limited-edition, designer art toy.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.