ETH Price: $2,307.55 (-0.48%)

Token

enclock (CLCK)
 

Overview

Max Total Supply

82 CLCK

Holders

22

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 CLCK
0x6df91F20b877b224885251cac1C8CD47EAF5c0eC
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ClockAuction

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : ClockAuction.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.7;

import "./TradeableERC721Token.sol";

/**
 * @title ClockAuction
 * ClockAuction - a contract for my non-fungible creatures.
 */
contract ClockAuction is ERC721Tradable{
    uint256 public constant maxSupply = 6400;
    uint256 public constant MAX_PREMINT = 64;
    uint256 public constant maxPerAddr = 16;

    uint256 public minPrice = 40000000000000000;
    uint256 public maxPrice = 129000000000000000;

    uint256 public premintCount;
    uint256 public maxPresaleSupply = 2000;
    uint256 public maxPerPresale = 2;
    uint256 public maxPerTxn = 8;

    uint256 public auctionEnds;
    uint256 public reclaimEnds;

    address private constant _adminSigner = 0x7F668e4597B6DA8256C67AB80100b2474266735F;
    address payable public treasury = payable(0x90BB2FBC33600277C5184816D32230d6279daF28);
    address payable public technician = payable(0xeCA7676e3D770B8EFe6BB66f8AbC920Da23A621c);

    bool public yeeYee;
    bool public auctionLive;
    bool public reclaimLive;
    bool public uriFrozen;
    bool public saleNumFrozen;
    bool public limitFrozen;

    struct Bid {
        uint256 numTokens;  // number of desired tokens
        uint256 totalBid;  // total bid price
        bool won;
        bool claimed;  // indicator if the user has claimed against their bid
    }
    mapping(address => Bid) public bids;
    mapping(address => uint256) private addrMintCount;
    mapping(bytes32 => bool) public signatureUsed;

    event Bidder(address user);
    event SaleMode(bool publicOn);
    event SupplyCount(uint256 supplyCount);

    string private metadataURL = "https://sejb7xxndg.execute-api.us-west-1.amazonaws.com/api/metadata/";
    constructor(address _proxyRegistryAddress) ERC721Tradable("enclock", "CLCK", _proxyRegistryAddress) { }

    /**
    * @dev Override the baseTokenURI to return the metadata
    */
    function baseTokenURI() override public view returns (string memory) {
        return metadataURL;
    }

    /**
     * @dev Set new base URL to return the metadata
     * @param _metadataURL str of the new metadataURL
     * @param _freeze boolean whether or not to freeze the baseTokenURI
     */
    function setBaseTokenURI(string calldata _metadataURL, bool _freeze) external onlyOwner {
        require(!uriFrozen, "Metadata URL frozen");
        metadataURL = _metadataURL;
        uriFrozen = _freeze;
    }

    // auction functions
    /**
     * @dev Submit bid
     * @param _numTokens uint256 number of tokens to bid on
     */
    function submitBid(uint256 _numTokens) payable external {
        require(auctionLive, "Not live yet");
        require(block.timestamp <= auctionEnds, "Auction ended");
        require(_numTokens <= maxPerTxn, "Exceeds limit");
        require(0 < _numTokens, "Min. 1 token");

        Bid storage userBid = bids[msg.sender];
        uint256 newTotal = userBid.totalBid + msg.value;
        require(minPrice <= (newTotal / _numTokens), "Below min. bid");
        require((newTotal / _numTokens) <= maxPrice, "Exceeds max bid");
        if (userBid.numTokens == 0){
            emit Bidder(msg.sender);
        }
        userBid.totalBid = newTotal;
        userBid.numTokens = _numTokens;
    }

    /**
     * @dev Assign winners
     * @param _winners address[] winning addresses
     */
    function assignWinners(address[] calldata _winners) external onlyOwner {
        for (uint256 i = 0; i < _winners.length; i++){
            bids[_winners[i]].won = true;
        }
    }

    /**
     * @dev Winners claim their tokens
     */
    function claimTokens() external {
        Bid storage bid = bids[msg.sender];
        require(bid.won, "Not a winner");
        require(!bid.claimed, "Already claimed");
        bid.claimed = true;
        uint256 ts = totalSupply();
        for (uint256 i = 0; i < bid.numTokens; i++){
            _safeMint(msg.sender, ts++);
        }
    }

    /**
     * @dev Reclaim losing bids
     */
    function reclaim() external {
        Bid storage bid = bids[msg.sender];
        require(reclaimLive, "Cannot reclaim yet");
        require(!bid.won, "Winners cannot reclaim");
        require(!bid.claimed, "Already claimed");
        bid.claimed = true;
        payable(msg.sender).transfer(bid.totalBid);
    }


    // minting functions
    /**
     * @dev Creator's preminting function
     * @param _to address of where the premint will go
     */
    function creatorMint(address _to, uint256 amount) external onlyOwner {
        premintCount += amount;
        require(premintCount <= MAX_PREMINT, "No premints left");
        uint256 ts = totalSupply();
        for (uint256 i = 0; i < amount; i++){
            _safeMint(_to, ts++);
        }
    }

    /**
     * @dev whitelist minting
     * @param amount number of tokens to mint
     * @param _hash bytes32 message hash from a signed message
     * @param _r bytes32 from a signed message (first 32 bytes of signature)
     * @param _s bytes32 from a signed message (second 32 bytes of a signature)
     * @param _v uint8 from a signed message (final bytes of signature)
     */
    function whitelistMint(uint256 amount, bytes32 _hash, bytes32 _r, bytes32 _s, uint8 _v) payable external {
        require(0 < amount, "Cannot mint 0");
        require(minPrice * amount <= msg.value, "Not enough ether");
        require(amount <= maxPerPresale, "Minting beyond wallet limit");

        address signer = ecrecover(_hash, _v, _r, _s);
        require(signer == _adminSigner, "Forged signature");
        require(!signatureUsed[_hash], "Signature already used");
        signatureUsed[_hash] = true;

        uint256 ts = totalSupply();
        require(ts + amount <= maxPresaleSupply, "Beyond presale limit");
        for (uint256 i = 0; i < amount; i++){
            _safeMint(msg.sender, ts++);
        }
        emit SupplyCount(totalSupply());
    }
    
    /**
     * @dev YEEYUH
     * must be live
     * cannot exceed txn limits
     * must be within wallet allowance
     * must not exceed max maxSupply
     * @param amount uint256 number of clocks to mint
     */
    function yeeYeeMint(uint256 amount) payable external {
        require(yeeYee, "Not active yet");
        require(amount <= maxPerTxn, "Exceeds limit");
        require(minPrice * amount <= msg.value, "Not enough ether");
        require(addrMintCount[msg.sender] + amount <= maxPerAddr, "Minting beyond wallet limit");
        uint256 ts = totalSupply();
        require(ts + amount <= maxSupply, "Not enough left to mint");
        addrMintCount[msg.sender] += amount;
        for (uint256 i = 0; i < amount; i++){
            _safeMint(msg.sender, ts++);
        }
        emit SupplyCount(totalSupply());
    }


    // --------------------
    // phase toggling:
    // --------------------
    /**
     * @dev public launch
     */
    function setPublicLive() external onlyOwner {
        yeeYee = true;
        emit SaleMode(yeeYee);
    }

    /**
     * @dev Auction launch
     * @param _auctionEnds uint256 timestamp (seconds) of when the auction ends
     */
    function setAuctionLive(uint256 _auctionEnds) external onlyOwner {
        auctionLive = true;
        auctionEnds = _auctionEnds;
    }

    /**
     * @dev Enable reclaim
     * @param _reclaimEnds uint256 timestamp (seconds) of when reclaim is over
     * @param _reclaimLive bool whether or not reclaim is live
     */
    function setReclaimLive(uint256 _reclaimEnds, bool _reclaimLive) external onlyOwner {
        reclaimEnds = _reclaimEnds;
        reclaimLive = _reclaimLive;
    }


    // --------------------
    // sale configuration:
    // --------------------
    /**
     * @dev Set sale numbers
     * @param _minPrice uint256 the minimum price for whitelist, FCFS, or auction
     * @param _maxPrice uint256 the maximumm price for auctions
     * @param _freeze bool whether or not these numbers are changeable afterwards
     */
    function setSaleNumbers(uint256 _minPrice, uint256 _maxPrice, bool _freeze) external onlyOwner {
        require(!saleNumFrozen, "Numbers Frozen");
        minPrice = _minPrice;
        maxPrice = _maxPrice;
        saleNumFrozen = _freeze;
    }

    /**
     * @dev Set limits for minting
     * @param _maxPerPresale uint256 maximum amount of tokens for presale per address
     * @param _maxPerTxn uint256 maximum amount of tokens for FCFS / auction bids
     * @param _maxPresaleSupply uint256 global maximum amount of presale tokens
     * @param _freeze bool whether or not these numbers are changeable afterwards
     */
    function setLimits(uint256 _maxPerPresale, uint256 _maxPerTxn, uint256 _maxPresaleSupply, bool _freeze) external onlyOwner {
        require(!limitFrozen, "Numbers Frozen");
        maxPerPresale = _maxPerPresale;
        maxPerTxn = _maxPerTxn;
        maxPresaleSupply = _maxPresaleSupply;
        limitFrozen = _freeze;
    }


    // --------------------
    // treasury stuff:
    // --------------------
    /**
     * @dev Set the treasury address for withdrawing proceeds
     * @param _treasury address, the treasury
     * @param _technician address, the technician's addrress
     */
    function setWithdrawAddresses(address payable _treasury, address payable _technician) external onlyOwner {
        treasury = _treasury;
        technician = _technician;
    }

    /**
     * @dev Withdraw to the treasury and technician
     */
    function withdraw() external onlyOwner{
        require(reclaimLive, "Reclaim must be enabled");
        require(reclaimEnds <= block.timestamp, "Cannot withdraw before reclaim period");
        require(technician != address(0x0), "technician cannot be 0x0");
        require(treasury != address(0x0), "treasury cannot be 0x0");
        technician.transfer(address(this).balance / 4);
        treasury.transfer(address(this).balance);
    }
}

File 2 of 19 : TradeableERC721Token.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;
//import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "./ClockERC721Enumerable.sol";
import "./ContentMixin.sol";
import "./NativeMetaTransaction.sol";
import "@openzeppelin/contracts/access/Ownable.sol";



contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

/**
 * @title ERC721Tradable
 * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
 */
abstract contract ERC721Tradable is ContextMixin, ClockERC721Enumerable, NativeMetaTransaction, Ownable{
    using SafeMath for uint256;

    address proxyRegistryAddress;

    constructor(
        string memory _name,
        string memory _symbol,
        address _proxyRegistryAddress
    ) ERC721(_name, _symbol) {
        proxyRegistryAddress = _proxyRegistryAddress;
        _initializeEIP712(_name);
    }

    function baseTokenURI() virtual public view returns (string memory);

    function tokenURI(uint256 _tokenId) override public view returns (string memory) {
        return string(abi.encodePacked(baseTokenURI(), Strings.toString(_tokenId)));
    }

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator)
        override
        public
        view
        returns (bool)
    {
        // Whitelist OpenSea proxy contract for easy trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

    /**
     * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
     */
    function _msgSender()
        internal
        override
        view
        returns (address sender)
    {
        return ContextMixin.msgSender();
    }
}

File 3 of 19 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import {SafeMath} from  "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {EIP712Base} from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 4 of 19 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

File 5 of 19 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import {Initializable} from "./Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 6 of 19 : ContentMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 7 of 19 : ClockERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ClockERC721Enumerable is ERC721, IERC721Enumerable {
    uint256 private _total;
    // Mapping from owner to list of owned token IDs
    mapping(address => uint256[]) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _total;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < totalSupply(), "ERC721Enumerable: global index out of bounds");
        return index;
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {

        if (from == address(0)) {
            _total++;
        } else {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        _addTokenToOwnerEnumeration(to, tokenId);
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to].push(tokenId);
        _ownedTokensIndex[tokenId] = length;
    }


    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

        _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }
}

File 8 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 9 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT

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);
}

File 10 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT

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 11 of 19 : Strings.sol
// SPDX-License-Identifier: MIT

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 19 : Context.sol
// SPDX-License-Identifier: MIT

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 13 of 19 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 14 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 15 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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 tokenId);

    /**
     * @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 16 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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 17 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT

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 18 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @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 ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        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 virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _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 {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _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 {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @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`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @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 {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * 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
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), 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.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 19 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"user","type":"address"}],"name":"Bidder","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":false,"internalType":"bool","name":"publicOn","type":"bool"}],"name":"SaleMode","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"supplyCount","type":"uint256"}],"name":"SupplyCount","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":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PREMINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_winners","type":"address[]"}],"name":"assignWinners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"auctionEnds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bids","outputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"},{"internalType":"uint256","name":"totalBid","type":"uint256"},{"internalType":"bool","name":"won","type":"bool"},{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"creatorMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","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":[],"name":"limitFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerAddr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTxn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPresaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"premintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reclaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reclaimEnds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reclaimLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"saleNumFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"_auctionEnds","type":"uint256"}],"name":"setAuctionLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadataURL","type":"string"},{"internalType":"bool","name":"_freeze","type":"bool"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerPresale","type":"uint256"},{"internalType":"uint256","name":"_maxPerTxn","type":"uint256"},{"internalType":"uint256","name":"_maxPresaleSupply","type":"uint256"},{"internalType":"bool","name":"_freeze","type":"bool"}],"name":"setLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublicLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reclaimEnds","type":"uint256"},{"internalType":"bool","name":"_reclaimLive","type":"bool"}],"name":"setReclaimLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minPrice","type":"uint256"},{"internalType":"uint256","name":"_maxPrice","type":"uint256"},{"internalType":"bool","name":"_freeze","type":"bool"}],"name":"setSaleNumbers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_treasury","type":"address"},{"internalType":"address payable","name":"_technician","type":"address"}],"name":"setWithdrawAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"signatureUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numTokens","type":"uint256"}],"name":"submitBid","outputs":[],"stateMutability":"payable","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":[],"name":"technician","outputs":[{"internalType":"address payable","name":"","type":"address"}],"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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"},{"internalType":"uint8","name":"_v","type":"uint8"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yeeYee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"yeeYeeMint","outputs":[],"stateMutability":"payable","type":"function"}]

6009805460ff19169055668e1bc9bf040000600e556701ca4cd108068000600f556107d060115560026012556008601355601680546001600160a01b03199081167390bb2fbc33600277c5184816d32230d6279daf28179091556017805490911673eca7676e3d770b8efe6bb66f8abc920da23a621c179055610100604052604460808181529062003fa960a0398051620000a391601b9160209091019062000362565b50348015620000b157600080fd5b5060405162003fed38038062003fed833981016040819052620000d49162000408565b60405180604001604052806007815260200166656e636c6f636b60c81b81525060405180604001604052806004815260200163434c434b60e01b81525082828281600090805190602001906200012c92919062000362565b5080516200014290600190602084019062000362565b5050506200015f620001596200018f60201b60201c565b620001ab565b600d80546001600160a01b0319166001600160a01b0383161790556200018583620001fd565b5050505062000477565b6000620001a66200026160201b620026851760201c565b905090565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60095460ff1615620002465760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015260640160405180910390fd5b6200025181620002c0565b506009805460ff19166001179055565b600033301415620002ba57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620002bd9050565b50335b90565b6040518060800160405280604f815260200162003f5a604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600a55565b82805462000370906200043a565b90600052602060002090601f016020900481019282620003945760008555620003df565b82601f10620003af57805160ff1916838001178555620003df565b82800160010185558215620003df579182015b82811115620003df578251825591602001919060010190620003c2565b50620003ed929150620003f1565b5090565b5b80821115620003ed5760008155600101620003f2565b6000602082840312156200041b57600080fd5b81516001600160a01b03811681146200043357600080fd5b9392505050565b600181811c908216806200044f57607f821691505b602082108114156200047157634e487b7160e01b600052602260045260246000fd5b50919050565b613ad380620004876000396000f3fe6080604052600436106103a25760003560e01c806367ee9e35116101e7578063b88d4fde1161010d578063e307fb31116100a0578063e985e9c51161006f578063e985e9c514610a8a578063ea99881214610aaa578063f2fde38b14610abf578063f42f981914610adf57600080fd5b8063e307fb3114610a0e578063e38d6b5c14610a3e578063e45be8eb14610a54578063e542693314610a6a57600080fd5b8063d547cfb7116100dc578063d547cfb7146109a2578063d5abeb01146109b7578063e0cf0dd5146109cd578063e11bf0a2146109ed57600080fd5b8063b88d4fde14610921578063c83ab5df14610941578063c87b56dd14610962578063cf6d70cc1461098257600080fd5b80638da5cb5b11610185578063a22cb46511610154578063a22cb465146108ab578063a9e63431146108cb578063b3ccb4ac146108e0578063b57aac051461090057600080fd5b80638da5cb5b1461084f57806395d89b411461086d57806399bea25b146108825780639d9ee6731461089557600080fd5b806374bdda15116101c157806374bdda15146107e75780637ef6f656146107fa57806380e9071b1461081a5780638408662f1461082f57600080fd5b806367ee9e351461079157806370a08231146107b2578063715018a6146107d257600080fd5b80632d0335ab116102cc5780633ccfd60b1161026a5780634f6ccce7116102395780634f6ccce7146106c157806361d027b3146106e157806362ea82db146107015780636352211e1461077157600080fd5b80633ccfd60b1461066157806342842e0e1461067657806348c54b9d146106965780634bb10a73146106ab57600080fd5b80633408e470116102a65780633408e4701461060d578063353a4fb9146106205780633b1cc340146106355780633cb519941461064b57600080fd5b80632d0335ab146105975780632e1b194c146105cd5780632f745c59146105ed57600080fd5b8063182ee4851161034457806321bdb26e1161031357806321bdb26e1461052d57806323905c9d1461054357806323b872dd14610556578063274e4a1d1461057657600080fd5b8063182ee485146104b75780631e6a24cd146104d75780631f8f51a6146104f757806320379ee51461051857600080fd5b8063095ea7b311610380578063095ea7b3146104365780630c53c51c146104585780630f7e59701461046b57806318160ddd1461049857600080fd5b806301ffc9a7146103a757806306fdde03146103dc578063081812fc146103fe575b600080fd5b3480156103b357600080fd5b506103c76103c2366004613531565b610af5565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103f1610b20565b6040516103d391906137f4565b34801561040a57600080fd5b5061041e610419366004613518565b610bb2565b6040516001600160a01b0390911681526020016103d3565b34801561044257600080fd5b50610456610451366004613477565b610c4c565b005b6103f1610466366004613403565b610d74565b34801561047757600080fd5b506103f1604051806040016040528060018152602001603160f81b81525081565b3480156104a457600080fd5b506006545b6040519081526020016103d3565b3480156104c357600080fd5b506104566104d2366004613477565b610f5e565b3480156104e357600080fd5b506104566104f2366004613669565b611049565b34801561050357600080fd5b506017546103c790600160c81b900460ff1681565b34801561052457600080fd5b50600a546104a9565b34801561053957600080fd5b506104a960115481565b610456610551366004613518565b611104565b34801561056257600080fd5b50610456610571366004613321565b611344565b34801561058257600080fd5b506017546103c790600160b81b900460ff1681565b3480156105a357600080fd5b506104a96105b23660046132cb565b6001600160a01b03166000908152600b602052604090205490565b3480156105d957600080fd5b506104566105e83660046134a3565b61137c565b3480156105f957600080fd5b506104a9610608366004613477565b61143a565b34801561061957600080fd5b50466104a9565b34801561062c57600080fd5b506104566114e4565b34801561064157600080fd5b506104a960145481565b34801561065757600080fd5b506104a960135481565b34801561066d57600080fd5b50610456611586565b34801561068257600080fd5b50610456610691366004613321565b6117b0565b3480156106a257600080fd5b506104566117cb565b3480156106b757600080fd5b506104a960125481565b3480156106cd57600080fd5b506104a96106dc366004613518565b6118b3565b3480156106ed57600080fd5b5060165461041e906001600160a01b031681565b34801561070d57600080fd5b5061074961071c3660046132cb565b60186020526000908152604090208054600182015460029092015490919060ff8082169161010090041684565b60408051948552602085019390935290151591830191909152151560608201526080016103d3565b34801561077d57600080fd5b5061041e61078c366004613518565b611925565b34801561079d57600080fd5b506017546103c790600160a01b900460ff1681565b3480156107be57600080fd5b506104a96107cd3660046132cb565b61199c565b3480156107de57600080fd5b50610456611a23565b6104566107f5366004613518565b611a78565b34801561080657600080fd5b506104566108153660046132e8565b611c82565b34801561082657600080fd5b50610456611cf9565b34801561083b57600080fd5b5061045661084a366004613609565b611e35565b34801561085b57600080fd5b50600c546001600160a01b031661041e565b34801561087957600080fd5b506103f1611ea2565b61045661089036600461362c565b611eb1565b3480156108a157600080fd5b506104a960105481565b3480156108b757600080fd5b506104566108c63660046133ce565b612192565b3480156108d757600080fd5b506104a9604081565b3480156108ec57600080fd5b5060175461041e906001600160a01b031681565b34801561090c57600080fd5b506017546103c790600160c01b900460ff1681565b34801561092d57600080fd5b5061045661093c366004613362565b612294565b34801561094d57600080fd5b506017546103c790600160a81b900460ff1681565b34801561096e57600080fd5b506103f161097d366004613518565b6122cd565b34801561098e57600080fd5b5061045661099d366004613518565b612307565b3480156109ae57600080fd5b506103f1612368565b3480156109c357600080fd5b506104a961190081565b3480156109d957600080fd5b506104566109e8366004613695565b612377565b3480156109f957600080fd5b506017546103c790600160b01b900460ff1681565b348015610a1a57600080fd5b506103c7610a29366004613518565b601a6020526000908152604090205460ff1681565b348015610a4a57600080fd5b506104a9600f5481565b348015610a6057600080fd5b506104a9600e5481565b348015610a7657600080fd5b50610456610a85366004613588565b612438565b348015610a9657600080fd5b506103c7610aa53660046132e8565b6124fe565b348015610ab657600080fd5b506104a9601081565b348015610acb57600080fd5b50610456610ada3660046132cb565b6125ce565b348015610aeb57600080fd5b506104a960155481565b60006001600160e01b0319821663780e9d6360e01b1480610b1a5750610b1a826126e2565b92915050565b606060008054610b2f9061396d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5b9061396d565b8015610ba85780601f10610b7d57610100808354040283529160200191610ba8565b820191906000526020600020905b815481529060010190602001808311610b8b57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c305760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c5782611925565b9050806001600160a01b0316836001600160a01b03161415610cc55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c27565b806001600160a01b0316610cd7612732565b6001600160a01b03161480610cf35750610cf381610aa5612732565b610d655760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c27565b610d6f8383612741565b505050565b60408051606081810183526001600160a01b0388166000818152600b602090815290859020548452830152918101869052610db287828787876127af565b610e085760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610c27565b6001600160a01b0387166000908152600b6020526040902054610e2c90600161289f565b6001600160a01b0388166000908152600b60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610e7c90899033908a90613782565b60405180910390a1600080306001600160a01b0316888a604051602001610ea492919061371c565b60408051601f1981840301815290829052610ebe91613700565b6000604051808303816000865af19150503d8060008114610efb576040519150601f19603f3d011682016040523d82523d6000602084013e610f00565b606091505b509150915081610f525760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610c27565b98975050505050505050565b610f66612732565b6001600160a01b0316610f81600c546001600160a01b031690565b6001600160a01b031614610fa75760405162461bcd60e51b8152600401610c2790613859565b8060106000828254610fb991906138df565b9091555050601054604010156110045760405162461bcd60e51b815260206004820152601060248201526f139bc81c1c995b5a5b9d1cc81b19599d60821b6044820152606401610c27565b600061100f60065490565b905060005b8281101561104357611031848361102a816139a8565b94506128b2565b8061103b816139a8565b915050611014565b50505050565b611051612732565b6001600160a01b031661106c600c546001600160a01b031690565b6001600160a01b0316146110925760405162461bcd60e51b8152600401610c2790613859565b601754600160c01b900460ff16156110dd5760405162461bcd60e51b815260206004820152600e60248201526d273ab6b132b93990233937bd32b760911b6044820152606401610c27565b600e92909255600f5560178054911515600160c01b0260ff60c01b19909216919091179055565b601754600160a01b900460ff1661114e5760405162461bcd60e51b815260206004820152600e60248201526d139bdd081858dd1a5d99481e595d60921b6044820152606401610c27565b6013548111156111905760405162461bcd60e51b815260206004820152600d60248201526c115e18d959591cc81b1a5b5a5d609a1b6044820152606401610c27565b3481600e5461119f919061390b565b11156111e05760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41032ba3432b960811b6044820152606401610c27565b336000908152601960205260409020546010906111fe9083906138df565b111561124c5760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e67206265796f6e642077616c6c6574206c696d697400000000006044820152606401610c27565b600061125760065490565b905061190061126683836138df565b11156112b45760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f756768206c65667420746f206d696e740000000000000000006044820152606401610c27565b33600090815260196020526040812080548492906112d39084906138df565b90915550600090505b82811015611304576112f2338361102a816139a8565b806112fc816139a8565b9150506112dc565b507f5a5f9f294599004705c80a700a4caf642428c1b2a097f8c774f977f4c38da50161132f60065490565b60405190815260200160405180910390a15050565b61135561134f612732565b826128cc565b6113715760405162461bcd60e51b8152600401610c279061388e565b610d6f83838361299b565b611384612732565b6001600160a01b031661139f600c546001600160a01b031690565b6001600160a01b0316146113c55760405162461bcd60e51b8152600401610c2790613859565b60005b81811015610d6f576001601860008585858181106113e8576113e8613a03565b90506020020160208101906113fd91906132cb565b6001600160a01b031681526020810191909152604001600020600201805460ff191691151591909117905580611432816139a8565b9150506113c8565b60006114458361199c565b82106114a75760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c27565b6001600160a01b03831660009081526007602052604090208054839081106114d1576114d1613a03565b9060005260206000200154905092915050565b6114ec612732565b6001600160a01b0316611507600c546001600160a01b031690565b6001600160a01b03161461152d5760405162461bcd60e51b8152600401610c2790613859565b6017805460ff60a01b1916600160a01b908117918290556040517f42804d3c283fcd8b29b4a0613aead572ffa65b9357f3ee6445269d7d9b2118719261157c92900460ff161515815260200190565b60405180910390a1565b61158e612732565b6001600160a01b03166115a9600c546001600160a01b031690565b6001600160a01b0316146115cf5760405162461bcd60e51b8152600401610c2790613859565b601754600160b01b900460ff166116285760405162461bcd60e51b815260206004820152601760248201527f5265636c61696d206d75737420626520656e61626c65640000000000000000006044820152606401610c27565b4260155411156116885760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f74207769746864726177206265666f7265207265636c61696d2070604482015264195c9a5bd960da1b6064820152608401610c27565b6017546001600160a01b03166116e05760405162461bcd60e51b815260206004820152601860248201527f746563686e696369616e2063616e6e6f742062652030783000000000000000006044820152606401610c27565b6016546001600160a01b03166117315760405162461bcd60e51b8152602060048201526016602482015275074726561737572792063616e6e6f74206265203078360541b6044820152606401610c27565b6017546001600160a01b03166108fc61174b6004476138f7565b6040518115909202916000818181858888f19350505050158015611773573d6000803e3d6000fd5b506016546040516001600160a01b03909116904780156108fc02916000818181858888f193505050501580156117ad573d6000803e3d6000fd5b50565b610d6f83838360405180602001604052806000815250612294565b336000908152601860205260409020600281015460ff1661181d5760405162461bcd60e51b815260206004820152600c60248201526b2737ba1030903bb4b73732b960a11b6044820152606401610c27565b6002810154610100900460ff16156118695760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610c27565b60028101805461ff001916610100179055600061188560065490565b905060005b8254811015610d6f576118a1338361102a816139a8565b806118ab816139a8565b91505061188a565b60006118be60065490565b82106119215760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c27565b5090565b6000818152600260205260408120546001600160a01b031680610b1a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c27565b60006001600160a01b038216611a075760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c27565b506001600160a01b031660009081526003602052604090205490565b611a2b612732565b6001600160a01b0316611a46600c546001600160a01b031690565b6001600160a01b031614611a6c5760405162461bcd60e51b8152600401610c2790613859565b611a766000612b46565b565b601754600160a81b900460ff16611ac05760405162461bcd60e51b815260206004820152600c60248201526b139bdd081b1a5d99481e595d60a21b6044820152606401610c27565b601454421115611b025760405162461bcd60e51b815260206004820152600d60248201526c105d58dd1a5bdb88195b991959609a1b6044820152606401610c27565b601354811115611b445760405162461bcd60e51b815260206004820152600d60248201526c115e18d959591cc81b1a5b5a5d609a1b6044820152606401610c27565b80600010611b835760405162461bcd60e51b815260206004820152600c60248201526b26b4b7171018903a37b5b2b760a11b6044820152606401610c27565b3360009081526018602052604081206001810154909190611ba59034906138df565b9050611bb183826138f7565b600e541115611bf35760405162461bcd60e51b815260206004820152600e60248201526d10995b1bddc81b5a5b8b88189a5960921b6044820152606401610c27565b600f54611c0084836138f7565b1115611c405760405162461bcd60e51b815260206004820152600f60248201526e115e18d959591cc81b585e08189a59608a1b6044820152606401610c27565b8154611c7a576040513381527f927d25fcb863760fc8a62fc6f299292494104e2464f311537c0e8aa94fb2c56d9060200160405180910390a15b600182015555565b611c8a612732565b6001600160a01b0316611ca5600c546001600160a01b031690565b6001600160a01b031614611ccb5760405162461bcd60e51b8152600401610c2790613859565b601680546001600160a01b039384166001600160a01b03199182161790915560178054929093169116179055565b336000908152601860205260409020601754600160b01b900460ff16611d565760405162461bcd60e51b815260206004820152601260248201527110d85b9b9bdd081c9958db185a5b481e595d60721b6044820152606401610c27565b600281015460ff1615611da45760405162461bcd60e51b815260206004820152601660248201527557696e6e6572732063616e6e6f74207265636c61696d60501b6044820152606401610c27565b6002810154610100900460ff1615611df05760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610c27565b60028101805461ff0019166101001790556001810154604051339180156108fc02916000818181858888f19350505050158015611e31573d6000803e3d6000fd5b5050565b611e3d612732565b6001600160a01b0316611e58600c546001600160a01b031690565b6001600160a01b031614611e7e5760405162461bcd60e51b8152600401610c2790613859565b60159190915560178054911515600160b01b0260ff60b01b19909216919091179055565b606060018054610b2f9061396d565b84600010611ef15760405162461bcd60e51b815260206004820152600d60248201526c043616e6e6f74206d696e74203609c1b6044820152606401610c27565b3485600e54611f00919061390b565b1115611f415760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41032ba3432b960811b6044820152606401610c27565b601254851115611f935760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e67206265796f6e642077616c6c6574206c696d697400000000006044820152606401610c27565b6040805160008082526020820180845287905260ff841692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015611fe7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116737f668e4597b6da8256c67ab80100b2474266735f146120535760405162461bcd60e51b815260206004820152601060248201526f466f72676564207369676e617475726560801b6044820152606401610c27565b6000858152601a602052604090205460ff16156120ab5760405162461bcd60e51b815260206004820152601660248201527514da59db985d1d5c9948185b1c9958591e481d5cd95960521b6044820152606401610c27565b6000858152601a60205260408120805460ff191660011790556120cd60065490565b6011549091506120dd88836138df565b11156121225760405162461bcd60e51b815260206004820152601460248201527310995e5bdb99081c1c995cd85b19481b1a5b5a5d60621b6044820152606401610c27565b60005b8781101561214d5761213b338361102a816139a8565b80612145816139a8565b915050612125565b507f5a5f9f294599004705c80a700a4caf642428c1b2a097f8c774f977f4c38da50161217860065490565b60405190815260200160405180910390a150505050505050565b61219a612732565b6001600160a01b0316826001600160a01b031614156121fb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c27565b8060056000612208612732565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561224c612732565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612288911515815260200190565b60405180910390a35050565b6122a561229f612732565b836128cc565b6122c15760405162461bcd60e51b8152600401610c279061388e565b61104384848484612b98565b60606122d7612368565b6122e083612bcb565b6040516020016122f1929190613753565b6040516020818303038152906040529050919050565b61230f612732565b6001600160a01b031661232a600c546001600160a01b031690565b6001600160a01b0316146123505760405162461bcd60e51b8152600401610c2790613859565b6017805460ff60a81b1916600160a81b179055601455565b6060601b8054610b2f9061396d565b61237f612732565b6001600160a01b031661239a600c546001600160a01b031690565b6001600160a01b0316146123c05760405162461bcd60e51b8152600401610c2790613859565b601754600160c81b900460ff161561240b5760405162461bcd60e51b815260206004820152600e60248201526d273ab6b132b93990233937bd32b760911b6044820152606401610c27565b60129390935560139190915560115560178054911515600160c81b0260ff60c81b19909216919091179055565b612440612732565b6001600160a01b031661245b600c546001600160a01b031690565b6001600160a01b0316146124815760405162461bcd60e51b8152600401610c2790613859565b601754600160b81b900460ff16156124d15760405162461bcd60e51b815260206004820152601360248201527226b2ba30b230ba30902aa92610333937bd32b760691b6044820152606401610c27565b6124dd601b8484613188565b5060178054911515600160b81b0260ff60b81b199092169190911790555050565b600d5460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b15801561254b57600080fd5b505afa15801561255f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612583919061356b565b6001600160a01b0316141561259c576001915050610b1a565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6125d6612732565b6001600160a01b03166125f1600c546001600160a01b031690565b6001600160a01b0316146126175760405162461bcd60e51b8152600401610c2790613859565b6001600160a01b03811661267c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c27565b6117ad81612b46565b6000333014156126dc57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506126df9050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b148061271357506001600160e01b03198216635b5e139f60e01b145b80610b1a57506301ffc9a760e01b6001600160e01b0319831614610b1a565b600061273c612685565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061277682611925565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166128155760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610c27565b600161282861282387612cc9565b612d46565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612876573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006128ab82846138df565b9392505050565b611e31828260405180602001604052806000815250612d76565b6000818152600260205260408120546001600160a01b03166129455760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c27565b600061295083611925565b9050806001600160a01b0316846001600160a01b0316148061298b5750836001600160a01b031661298084610bb2565b6001600160a01b0316145b806125c657506125c681856124fe565b826001600160a01b03166129ae82611925565b6001600160a01b031614612a165760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c27565b6001600160a01b038216612a785760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c27565b612a83838383612da9565b612a8e600082612741565b6001600160a01b0383166000908152600360205260408120805460019290612ab790849061392a565b90915550506001600160a01b0382166000908152600360205260408120805460019290612ae59084906138df565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612ba384848461299b565b612baf84848484612de5565b6110435760405162461bcd60e51b8152600401610c2790613807565b606081612bef5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612c195780612c03816139a8565b9150612c129050600a836138f7565b9150612bf3565b60008167ffffffffffffffff811115612c3457612c34613a19565b6040519080825280601f01601f191660200182016040528015612c5e576020820181803683370190505b5090505b84156125c657612c7360018361392a565b9150612c80600a866139c3565b612c8b9060306138df565b60f81b818381518110612ca057612ca0613a03565b60200101906001600160f81b031916908160001a905350612cc2600a866138f7565b9450612c62565b6000604051806080016040528060438152602001613a5b6043913980516020918201208351848301516040808701518051908601209051612d29950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000612d51600a5490565b60405161190160f01b6020820152602281019190915260428101839052606201612d29565b612d808383612ef9565b612d8d6000848484612de5565b610d6f5760405162461bcd60e51b8152600401610c2790613807565b6001600160a01b038316612dd15760068054906000612dc7836139a8565b9190505550612ddb565b612ddb8382613047565b610d6f828261313d565b60006001600160a01b0384163b15612eee57836001600160a01b031663150b7a02612e0e612732565b8786866040518563ffffffff1660e01b8152600401612e3094939291906137b7565b602060405180830381600087803b158015612e4a57600080fd5b505af1925050508015612e7a575060408051601f3d908101601f19168201909252612e779181019061354e565b60015b612ed4573d808015612ea8576040519150601f19603f3d011682016040523d82523d6000602084013e612ead565b606091505b508051612ecc5760405162461bcd60e51b8152600401610c2790613807565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125c6565b506001949350505050565b6001600160a01b038216612f4f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c27565b6000818152600260205260409020546001600160a01b031615612fb45760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c27565b612fc060008383612da9565b6001600160a01b0382166000908152600360205260408120805460019290612fe99084906138df565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016130548461199c565b61305e919061392a565b6000838152600860209081526040808320546001600160a01b038816845260079092528220805493945090928490811061309a5761309a613a03565b906000526020600020015490508060076000876001600160a01b03166001600160a01b0316815260200190815260200160002083815481106130de576130de613a03565b60009182526020808320909101929092558281526008825260408082208590558682528082208290556001600160a01b038816825260079092522080548490811061312b5761312b613a03565b60009182526020822001555050505050565b60006131488361199c565b6001600160a01b03909316600090815260076020908152604080832080546001810182559084528284200185905593825260089052919091209190915550565b8280546131949061396d565b90600052602060002090601f0160209004810192826131b657600085556131fc565b82601f106131cf5782800160ff198235161785556131fc565b828001600101855582156131fc579182015b828111156131fc5782358255916020019190600101906131e1565b506119219291505b808211156119215760008155600101613204565b8035801515811461322857600080fd5b919050565b600082601f83011261323e57600080fd5b813567ffffffffffffffff8082111561325957613259613a19565b604051601f8301601f19908116603f0116810190828211818310171561328157613281613a19565b8160405283815286602085880101111561329a57600080fd5b836020870160208301376000602085830101528094505050505092915050565b803560ff8116811461322857600080fd5b6000602082840312156132dd57600080fd5b81356128ab81613a2f565b600080604083850312156132fb57600080fd5b823561330681613a2f565b9150602083013561331681613a2f565b809150509250929050565b60008060006060848603121561333657600080fd5b833561334181613a2f565b9250602084013561335181613a2f565b929592945050506040919091013590565b6000806000806080858703121561337857600080fd5b843561338381613a2f565b9350602085013561339381613a2f565b925060408501359150606085013567ffffffffffffffff8111156133b657600080fd5b6133c28782880161322d565b91505092959194509250565b600080604083850312156133e157600080fd5b82356133ec81613a2f565b91506133fa60208401613218565b90509250929050565b600080600080600060a0868803121561341b57600080fd5b853561342681613a2f565b9450602086013567ffffffffffffffff81111561344257600080fd5b61344e8882890161322d565b945050604086013592506060860135915061346b608087016132ba565b90509295509295909350565b6000806040838503121561348a57600080fd5b823561349581613a2f565b946020939093013593505050565b600080602083850312156134b657600080fd5b823567ffffffffffffffff808211156134ce57600080fd5b818501915085601f8301126134e257600080fd5b8135818111156134f157600080fd5b8660208260051b850101111561350657600080fd5b60209290920196919550909350505050565b60006020828403121561352a57600080fd5b5035919050565b60006020828403121561354357600080fd5b81356128ab81613a44565b60006020828403121561356057600080fd5b81516128ab81613a44565b60006020828403121561357d57600080fd5b81516128ab81613a2f565b60008060006040848603121561359d57600080fd5b833567ffffffffffffffff808211156135b557600080fd5b818601915086601f8301126135c957600080fd5b8135818111156135d857600080fd5b8760208285010111156135ea57600080fd5b6020928301955093506136009186019050613218565b90509250925092565b6000806040838503121561361c57600080fd5b823591506133fa60208401613218565b600080600080600060a0868803121561364457600080fd5b8535945060208601359350604086013592506060860135915061346b608087016132ba565b60008060006060848603121561367e57600080fd5b833592506020840135915061360060408501613218565b600080600080608085870312156136ab57600080fd5b8435935060208501359250604085013591506136c960608601613218565b905092959194509250565b600081518084526136ec816020860160208601613941565b601f01601f19169290920160200192915050565b60008251613712818460208701613941565b9190910192915050565b6000835161372e818460208801613941565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008351613765818460208801613941565b835190830190613779818360208801613941565b01949350505050565b6001600160a01b038481168252831660208201526060604082018190526000906137ae908301846136d4565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906137ea908301846136d4565b9695505050505050565b6020815260006128ab60208301846136d4565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156138f2576138f26139d7565b500190565b600082613906576139066139ed565b500490565b6000816000190483118215151615613925576139256139d7565b500290565b60008282101561393c5761393c6139d7565b500390565b60005b8381101561395c578181015183820152602001613944565b838111156110435750506000910152565b600181811c9082168061398157607f821691505b602082108114156139a257634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156139bc576139bc6139d7565b5060010190565b6000826139d2576139d26139ed565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146117ad57600080fd5b6001600160e01b0319811681146117ad57600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212206761b18688c4e8d8205d99d833d1eeecc3da551a7328eeacd57f1a81f402939364736f6c63430008070033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c742968747470733a2f2f73656a623778786e64672e657865637574652d6170692e75732d776573742d312e616d617a6f6e6177732e636f6d2f6170692f6d657461646174612f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

Deployed Bytecode

0x6080604052600436106103a25760003560e01c806367ee9e35116101e7578063b88d4fde1161010d578063e307fb31116100a0578063e985e9c51161006f578063e985e9c514610a8a578063ea99881214610aaa578063f2fde38b14610abf578063f42f981914610adf57600080fd5b8063e307fb3114610a0e578063e38d6b5c14610a3e578063e45be8eb14610a54578063e542693314610a6a57600080fd5b8063d547cfb7116100dc578063d547cfb7146109a2578063d5abeb01146109b7578063e0cf0dd5146109cd578063e11bf0a2146109ed57600080fd5b8063b88d4fde14610921578063c83ab5df14610941578063c87b56dd14610962578063cf6d70cc1461098257600080fd5b80638da5cb5b11610185578063a22cb46511610154578063a22cb465146108ab578063a9e63431146108cb578063b3ccb4ac146108e0578063b57aac051461090057600080fd5b80638da5cb5b1461084f57806395d89b411461086d57806399bea25b146108825780639d9ee6731461089557600080fd5b806374bdda15116101c157806374bdda15146107e75780637ef6f656146107fa57806380e9071b1461081a5780638408662f1461082f57600080fd5b806367ee9e351461079157806370a08231146107b2578063715018a6146107d257600080fd5b80632d0335ab116102cc5780633ccfd60b1161026a5780634f6ccce7116102395780634f6ccce7146106c157806361d027b3146106e157806362ea82db146107015780636352211e1461077157600080fd5b80633ccfd60b1461066157806342842e0e1461067657806348c54b9d146106965780634bb10a73146106ab57600080fd5b80633408e470116102a65780633408e4701461060d578063353a4fb9146106205780633b1cc340146106355780633cb519941461064b57600080fd5b80632d0335ab146105975780632e1b194c146105cd5780632f745c59146105ed57600080fd5b8063182ee4851161034457806321bdb26e1161031357806321bdb26e1461052d57806323905c9d1461054357806323b872dd14610556578063274e4a1d1461057657600080fd5b8063182ee485146104b75780631e6a24cd146104d75780631f8f51a6146104f757806320379ee51461051857600080fd5b8063095ea7b311610380578063095ea7b3146104365780630c53c51c146104585780630f7e59701461046b57806318160ddd1461049857600080fd5b806301ffc9a7146103a757806306fdde03146103dc578063081812fc146103fe575b600080fd5b3480156103b357600080fd5b506103c76103c2366004613531565b610af5565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103f1610b20565b6040516103d391906137f4565b34801561040a57600080fd5b5061041e610419366004613518565b610bb2565b6040516001600160a01b0390911681526020016103d3565b34801561044257600080fd5b50610456610451366004613477565b610c4c565b005b6103f1610466366004613403565b610d74565b34801561047757600080fd5b506103f1604051806040016040528060018152602001603160f81b81525081565b3480156104a457600080fd5b506006545b6040519081526020016103d3565b3480156104c357600080fd5b506104566104d2366004613477565b610f5e565b3480156104e357600080fd5b506104566104f2366004613669565b611049565b34801561050357600080fd5b506017546103c790600160c81b900460ff1681565b34801561052457600080fd5b50600a546104a9565b34801561053957600080fd5b506104a960115481565b610456610551366004613518565b611104565b34801561056257600080fd5b50610456610571366004613321565b611344565b34801561058257600080fd5b506017546103c790600160b81b900460ff1681565b3480156105a357600080fd5b506104a96105b23660046132cb565b6001600160a01b03166000908152600b602052604090205490565b3480156105d957600080fd5b506104566105e83660046134a3565b61137c565b3480156105f957600080fd5b506104a9610608366004613477565b61143a565b34801561061957600080fd5b50466104a9565b34801561062c57600080fd5b506104566114e4565b34801561064157600080fd5b506104a960145481565b34801561065757600080fd5b506104a960135481565b34801561066d57600080fd5b50610456611586565b34801561068257600080fd5b50610456610691366004613321565b6117b0565b3480156106a257600080fd5b506104566117cb565b3480156106b757600080fd5b506104a960125481565b3480156106cd57600080fd5b506104a96106dc366004613518565b6118b3565b3480156106ed57600080fd5b5060165461041e906001600160a01b031681565b34801561070d57600080fd5b5061074961071c3660046132cb565b60186020526000908152604090208054600182015460029092015490919060ff8082169161010090041684565b60408051948552602085019390935290151591830191909152151560608201526080016103d3565b34801561077d57600080fd5b5061041e61078c366004613518565b611925565b34801561079d57600080fd5b506017546103c790600160a01b900460ff1681565b3480156107be57600080fd5b506104a96107cd3660046132cb565b61199c565b3480156107de57600080fd5b50610456611a23565b6104566107f5366004613518565b611a78565b34801561080657600080fd5b506104566108153660046132e8565b611c82565b34801561082657600080fd5b50610456611cf9565b34801561083b57600080fd5b5061045661084a366004613609565b611e35565b34801561085b57600080fd5b50600c546001600160a01b031661041e565b34801561087957600080fd5b506103f1611ea2565b61045661089036600461362c565b611eb1565b3480156108a157600080fd5b506104a960105481565b3480156108b757600080fd5b506104566108c63660046133ce565b612192565b3480156108d757600080fd5b506104a9604081565b3480156108ec57600080fd5b5060175461041e906001600160a01b031681565b34801561090c57600080fd5b506017546103c790600160c01b900460ff1681565b34801561092d57600080fd5b5061045661093c366004613362565b612294565b34801561094d57600080fd5b506017546103c790600160a81b900460ff1681565b34801561096e57600080fd5b506103f161097d366004613518565b6122cd565b34801561098e57600080fd5b5061045661099d366004613518565b612307565b3480156109ae57600080fd5b506103f1612368565b3480156109c357600080fd5b506104a961190081565b3480156109d957600080fd5b506104566109e8366004613695565b612377565b3480156109f957600080fd5b506017546103c790600160b01b900460ff1681565b348015610a1a57600080fd5b506103c7610a29366004613518565b601a6020526000908152604090205460ff1681565b348015610a4a57600080fd5b506104a9600f5481565b348015610a6057600080fd5b506104a9600e5481565b348015610a7657600080fd5b50610456610a85366004613588565b612438565b348015610a9657600080fd5b506103c7610aa53660046132e8565b6124fe565b348015610ab657600080fd5b506104a9601081565b348015610acb57600080fd5b50610456610ada3660046132cb565b6125ce565b348015610aeb57600080fd5b506104a960155481565b60006001600160e01b0319821663780e9d6360e01b1480610b1a5750610b1a826126e2565b92915050565b606060008054610b2f9061396d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5b9061396d565b8015610ba85780601f10610b7d57610100808354040283529160200191610ba8565b820191906000526020600020905b815481529060010190602001808311610b8b57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c305760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c5782611925565b9050806001600160a01b0316836001600160a01b03161415610cc55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c27565b806001600160a01b0316610cd7612732565b6001600160a01b03161480610cf35750610cf381610aa5612732565b610d655760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c27565b610d6f8383612741565b505050565b60408051606081810183526001600160a01b0388166000818152600b602090815290859020548452830152918101869052610db287828787876127af565b610e085760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610c27565b6001600160a01b0387166000908152600b6020526040902054610e2c90600161289f565b6001600160a01b0388166000908152600b60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610e7c90899033908a90613782565b60405180910390a1600080306001600160a01b0316888a604051602001610ea492919061371c565b60408051601f1981840301815290829052610ebe91613700565b6000604051808303816000865af19150503d8060008114610efb576040519150601f19603f3d011682016040523d82523d6000602084013e610f00565b606091505b509150915081610f525760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610c27565b98975050505050505050565b610f66612732565b6001600160a01b0316610f81600c546001600160a01b031690565b6001600160a01b031614610fa75760405162461bcd60e51b8152600401610c2790613859565b8060106000828254610fb991906138df565b9091555050601054604010156110045760405162461bcd60e51b815260206004820152601060248201526f139bc81c1c995b5a5b9d1cc81b19599d60821b6044820152606401610c27565b600061100f60065490565b905060005b8281101561104357611031848361102a816139a8565b94506128b2565b8061103b816139a8565b915050611014565b50505050565b611051612732565b6001600160a01b031661106c600c546001600160a01b031690565b6001600160a01b0316146110925760405162461bcd60e51b8152600401610c2790613859565b601754600160c01b900460ff16156110dd5760405162461bcd60e51b815260206004820152600e60248201526d273ab6b132b93990233937bd32b760911b6044820152606401610c27565b600e92909255600f5560178054911515600160c01b0260ff60c01b19909216919091179055565b601754600160a01b900460ff1661114e5760405162461bcd60e51b815260206004820152600e60248201526d139bdd081858dd1a5d99481e595d60921b6044820152606401610c27565b6013548111156111905760405162461bcd60e51b815260206004820152600d60248201526c115e18d959591cc81b1a5b5a5d609a1b6044820152606401610c27565b3481600e5461119f919061390b565b11156111e05760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41032ba3432b960811b6044820152606401610c27565b336000908152601960205260409020546010906111fe9083906138df565b111561124c5760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e67206265796f6e642077616c6c6574206c696d697400000000006044820152606401610c27565b600061125760065490565b905061190061126683836138df565b11156112b45760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f756768206c65667420746f206d696e740000000000000000006044820152606401610c27565b33600090815260196020526040812080548492906112d39084906138df565b90915550600090505b82811015611304576112f2338361102a816139a8565b806112fc816139a8565b9150506112dc565b507f5a5f9f294599004705c80a700a4caf642428c1b2a097f8c774f977f4c38da50161132f60065490565b60405190815260200160405180910390a15050565b61135561134f612732565b826128cc565b6113715760405162461bcd60e51b8152600401610c279061388e565b610d6f83838361299b565b611384612732565b6001600160a01b031661139f600c546001600160a01b031690565b6001600160a01b0316146113c55760405162461bcd60e51b8152600401610c2790613859565b60005b81811015610d6f576001601860008585858181106113e8576113e8613a03565b90506020020160208101906113fd91906132cb565b6001600160a01b031681526020810191909152604001600020600201805460ff191691151591909117905580611432816139a8565b9150506113c8565b60006114458361199c565b82106114a75760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c27565b6001600160a01b03831660009081526007602052604090208054839081106114d1576114d1613a03565b9060005260206000200154905092915050565b6114ec612732565b6001600160a01b0316611507600c546001600160a01b031690565b6001600160a01b03161461152d5760405162461bcd60e51b8152600401610c2790613859565b6017805460ff60a01b1916600160a01b908117918290556040517f42804d3c283fcd8b29b4a0613aead572ffa65b9357f3ee6445269d7d9b2118719261157c92900460ff161515815260200190565b60405180910390a1565b61158e612732565b6001600160a01b03166115a9600c546001600160a01b031690565b6001600160a01b0316146115cf5760405162461bcd60e51b8152600401610c2790613859565b601754600160b01b900460ff166116285760405162461bcd60e51b815260206004820152601760248201527f5265636c61696d206d75737420626520656e61626c65640000000000000000006044820152606401610c27565b4260155411156116885760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f74207769746864726177206265666f7265207265636c61696d2070604482015264195c9a5bd960da1b6064820152608401610c27565b6017546001600160a01b03166116e05760405162461bcd60e51b815260206004820152601860248201527f746563686e696369616e2063616e6e6f742062652030783000000000000000006044820152606401610c27565b6016546001600160a01b03166117315760405162461bcd60e51b8152602060048201526016602482015275074726561737572792063616e6e6f74206265203078360541b6044820152606401610c27565b6017546001600160a01b03166108fc61174b6004476138f7565b6040518115909202916000818181858888f19350505050158015611773573d6000803e3d6000fd5b506016546040516001600160a01b03909116904780156108fc02916000818181858888f193505050501580156117ad573d6000803e3d6000fd5b50565b610d6f83838360405180602001604052806000815250612294565b336000908152601860205260409020600281015460ff1661181d5760405162461bcd60e51b815260206004820152600c60248201526b2737ba1030903bb4b73732b960a11b6044820152606401610c27565b6002810154610100900460ff16156118695760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610c27565b60028101805461ff001916610100179055600061188560065490565b905060005b8254811015610d6f576118a1338361102a816139a8565b806118ab816139a8565b91505061188a565b60006118be60065490565b82106119215760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c27565b5090565b6000818152600260205260408120546001600160a01b031680610b1a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c27565b60006001600160a01b038216611a075760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c27565b506001600160a01b031660009081526003602052604090205490565b611a2b612732565b6001600160a01b0316611a46600c546001600160a01b031690565b6001600160a01b031614611a6c5760405162461bcd60e51b8152600401610c2790613859565b611a766000612b46565b565b601754600160a81b900460ff16611ac05760405162461bcd60e51b815260206004820152600c60248201526b139bdd081b1a5d99481e595d60a21b6044820152606401610c27565b601454421115611b025760405162461bcd60e51b815260206004820152600d60248201526c105d58dd1a5bdb88195b991959609a1b6044820152606401610c27565b601354811115611b445760405162461bcd60e51b815260206004820152600d60248201526c115e18d959591cc81b1a5b5a5d609a1b6044820152606401610c27565b80600010611b835760405162461bcd60e51b815260206004820152600c60248201526b26b4b7171018903a37b5b2b760a11b6044820152606401610c27565b3360009081526018602052604081206001810154909190611ba59034906138df565b9050611bb183826138f7565b600e541115611bf35760405162461bcd60e51b815260206004820152600e60248201526d10995b1bddc81b5a5b8b88189a5960921b6044820152606401610c27565b600f54611c0084836138f7565b1115611c405760405162461bcd60e51b815260206004820152600f60248201526e115e18d959591cc81b585e08189a59608a1b6044820152606401610c27565b8154611c7a576040513381527f927d25fcb863760fc8a62fc6f299292494104e2464f311537c0e8aa94fb2c56d9060200160405180910390a15b600182015555565b611c8a612732565b6001600160a01b0316611ca5600c546001600160a01b031690565b6001600160a01b031614611ccb5760405162461bcd60e51b8152600401610c2790613859565b601680546001600160a01b039384166001600160a01b03199182161790915560178054929093169116179055565b336000908152601860205260409020601754600160b01b900460ff16611d565760405162461bcd60e51b815260206004820152601260248201527110d85b9b9bdd081c9958db185a5b481e595d60721b6044820152606401610c27565b600281015460ff1615611da45760405162461bcd60e51b815260206004820152601660248201527557696e6e6572732063616e6e6f74207265636c61696d60501b6044820152606401610c27565b6002810154610100900460ff1615611df05760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610c27565b60028101805461ff0019166101001790556001810154604051339180156108fc02916000818181858888f19350505050158015611e31573d6000803e3d6000fd5b5050565b611e3d612732565b6001600160a01b0316611e58600c546001600160a01b031690565b6001600160a01b031614611e7e5760405162461bcd60e51b8152600401610c2790613859565b60159190915560178054911515600160b01b0260ff60b01b19909216919091179055565b606060018054610b2f9061396d565b84600010611ef15760405162461bcd60e51b815260206004820152600d60248201526c043616e6e6f74206d696e74203609c1b6044820152606401610c27565b3485600e54611f00919061390b565b1115611f415760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41032ba3432b960811b6044820152606401610c27565b601254851115611f935760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e67206265796f6e642077616c6c6574206c696d697400000000006044820152606401610c27565b6040805160008082526020820180845287905260ff841692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015611fe7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116737f668e4597b6da8256c67ab80100b2474266735f146120535760405162461bcd60e51b815260206004820152601060248201526f466f72676564207369676e617475726560801b6044820152606401610c27565b6000858152601a602052604090205460ff16156120ab5760405162461bcd60e51b815260206004820152601660248201527514da59db985d1d5c9948185b1c9958591e481d5cd95960521b6044820152606401610c27565b6000858152601a60205260408120805460ff191660011790556120cd60065490565b6011549091506120dd88836138df565b11156121225760405162461bcd60e51b815260206004820152601460248201527310995e5bdb99081c1c995cd85b19481b1a5b5a5d60621b6044820152606401610c27565b60005b8781101561214d5761213b338361102a816139a8565b80612145816139a8565b915050612125565b507f5a5f9f294599004705c80a700a4caf642428c1b2a097f8c774f977f4c38da50161217860065490565b60405190815260200160405180910390a150505050505050565b61219a612732565b6001600160a01b0316826001600160a01b031614156121fb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c27565b8060056000612208612732565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561224c612732565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612288911515815260200190565b60405180910390a35050565b6122a561229f612732565b836128cc565b6122c15760405162461bcd60e51b8152600401610c279061388e565b61104384848484612b98565b60606122d7612368565b6122e083612bcb565b6040516020016122f1929190613753565b6040516020818303038152906040529050919050565b61230f612732565b6001600160a01b031661232a600c546001600160a01b031690565b6001600160a01b0316146123505760405162461bcd60e51b8152600401610c2790613859565b6017805460ff60a81b1916600160a81b179055601455565b6060601b8054610b2f9061396d565b61237f612732565b6001600160a01b031661239a600c546001600160a01b031690565b6001600160a01b0316146123c05760405162461bcd60e51b8152600401610c2790613859565b601754600160c81b900460ff161561240b5760405162461bcd60e51b815260206004820152600e60248201526d273ab6b132b93990233937bd32b760911b6044820152606401610c27565b60129390935560139190915560115560178054911515600160c81b0260ff60c81b19909216919091179055565b612440612732565b6001600160a01b031661245b600c546001600160a01b031690565b6001600160a01b0316146124815760405162461bcd60e51b8152600401610c2790613859565b601754600160b81b900460ff16156124d15760405162461bcd60e51b815260206004820152601360248201527226b2ba30b230ba30902aa92610333937bd32b760691b6044820152606401610c27565b6124dd601b8484613188565b5060178054911515600160b81b0260ff60b81b199092169190911790555050565b600d5460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b15801561254b57600080fd5b505afa15801561255f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612583919061356b565b6001600160a01b0316141561259c576001915050610b1a565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6125d6612732565b6001600160a01b03166125f1600c546001600160a01b031690565b6001600160a01b0316146126175760405162461bcd60e51b8152600401610c2790613859565b6001600160a01b03811661267c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c27565b6117ad81612b46565b6000333014156126dc57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506126df9050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b148061271357506001600160e01b03198216635b5e139f60e01b145b80610b1a57506301ffc9a760e01b6001600160e01b0319831614610b1a565b600061273c612685565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061277682611925565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166128155760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610c27565b600161282861282387612cc9565b612d46565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612876573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006128ab82846138df565b9392505050565b611e31828260405180602001604052806000815250612d76565b6000818152600260205260408120546001600160a01b03166129455760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c27565b600061295083611925565b9050806001600160a01b0316846001600160a01b0316148061298b5750836001600160a01b031661298084610bb2565b6001600160a01b0316145b806125c657506125c681856124fe565b826001600160a01b03166129ae82611925565b6001600160a01b031614612a165760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c27565b6001600160a01b038216612a785760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c27565b612a83838383612da9565b612a8e600082612741565b6001600160a01b0383166000908152600360205260408120805460019290612ab790849061392a565b90915550506001600160a01b0382166000908152600360205260408120805460019290612ae59084906138df565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612ba384848461299b565b612baf84848484612de5565b6110435760405162461bcd60e51b8152600401610c2790613807565b606081612bef5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612c195780612c03816139a8565b9150612c129050600a836138f7565b9150612bf3565b60008167ffffffffffffffff811115612c3457612c34613a19565b6040519080825280601f01601f191660200182016040528015612c5e576020820181803683370190505b5090505b84156125c657612c7360018361392a565b9150612c80600a866139c3565b612c8b9060306138df565b60f81b818381518110612ca057612ca0613a03565b60200101906001600160f81b031916908160001a905350612cc2600a866138f7565b9450612c62565b6000604051806080016040528060438152602001613a5b6043913980516020918201208351848301516040808701518051908601209051612d29950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000612d51600a5490565b60405161190160f01b6020820152602281019190915260428101839052606201612d29565b612d808383612ef9565b612d8d6000848484612de5565b610d6f5760405162461bcd60e51b8152600401610c2790613807565b6001600160a01b038316612dd15760068054906000612dc7836139a8565b9190505550612ddb565b612ddb8382613047565b610d6f828261313d565b60006001600160a01b0384163b15612eee57836001600160a01b031663150b7a02612e0e612732565b8786866040518563ffffffff1660e01b8152600401612e3094939291906137b7565b602060405180830381600087803b158015612e4a57600080fd5b505af1925050508015612e7a575060408051601f3d908101601f19168201909252612e779181019061354e565b60015b612ed4573d808015612ea8576040519150601f19603f3d011682016040523d82523d6000602084013e612ead565b606091505b508051612ecc5760405162461bcd60e51b8152600401610c2790613807565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125c6565b506001949350505050565b6001600160a01b038216612f4f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c27565b6000818152600260205260409020546001600160a01b031615612fb45760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c27565b612fc060008383612da9565b6001600160a01b0382166000908152600360205260408120805460019290612fe99084906138df565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016130548461199c565b61305e919061392a565b6000838152600860209081526040808320546001600160a01b038816845260079092528220805493945090928490811061309a5761309a613a03565b906000526020600020015490508060076000876001600160a01b03166001600160a01b0316815260200190815260200160002083815481106130de576130de613a03565b60009182526020808320909101929092558281526008825260408082208590558682528082208290556001600160a01b038816825260079092522080548490811061312b5761312b613a03565b60009182526020822001555050505050565b60006131488361199c565b6001600160a01b03909316600090815260076020908152604080832080546001810182559084528284200185905593825260089052919091209190915550565b8280546131949061396d565b90600052602060002090601f0160209004810192826131b657600085556131fc565b82601f106131cf5782800160ff198235161785556131fc565b828001600101855582156131fc579182015b828111156131fc5782358255916020019190600101906131e1565b506119219291505b808211156119215760008155600101613204565b8035801515811461322857600080fd5b919050565b600082601f83011261323e57600080fd5b813567ffffffffffffffff8082111561325957613259613a19565b604051601f8301601f19908116603f0116810190828211818310171561328157613281613a19565b8160405283815286602085880101111561329a57600080fd5b836020870160208301376000602085830101528094505050505092915050565b803560ff8116811461322857600080fd5b6000602082840312156132dd57600080fd5b81356128ab81613a2f565b600080604083850312156132fb57600080fd5b823561330681613a2f565b9150602083013561331681613a2f565b809150509250929050565b60008060006060848603121561333657600080fd5b833561334181613a2f565b9250602084013561335181613a2f565b929592945050506040919091013590565b6000806000806080858703121561337857600080fd5b843561338381613a2f565b9350602085013561339381613a2f565b925060408501359150606085013567ffffffffffffffff8111156133b657600080fd5b6133c28782880161322d565b91505092959194509250565b600080604083850312156133e157600080fd5b82356133ec81613a2f565b91506133fa60208401613218565b90509250929050565b600080600080600060a0868803121561341b57600080fd5b853561342681613a2f565b9450602086013567ffffffffffffffff81111561344257600080fd5b61344e8882890161322d565b945050604086013592506060860135915061346b608087016132ba565b90509295509295909350565b6000806040838503121561348a57600080fd5b823561349581613a2f565b946020939093013593505050565b600080602083850312156134b657600080fd5b823567ffffffffffffffff808211156134ce57600080fd5b818501915085601f8301126134e257600080fd5b8135818111156134f157600080fd5b8660208260051b850101111561350657600080fd5b60209290920196919550909350505050565b60006020828403121561352a57600080fd5b5035919050565b60006020828403121561354357600080fd5b81356128ab81613a44565b60006020828403121561356057600080fd5b81516128ab81613a44565b60006020828403121561357d57600080fd5b81516128ab81613a2f565b60008060006040848603121561359d57600080fd5b833567ffffffffffffffff808211156135b557600080fd5b818601915086601f8301126135c957600080fd5b8135818111156135d857600080fd5b8760208285010111156135ea57600080fd5b6020928301955093506136009186019050613218565b90509250925092565b6000806040838503121561361c57600080fd5b823591506133fa60208401613218565b600080600080600060a0868803121561364457600080fd5b8535945060208601359350604086013592506060860135915061346b608087016132ba565b60008060006060848603121561367e57600080fd5b833592506020840135915061360060408501613218565b600080600080608085870312156136ab57600080fd5b8435935060208501359250604085013591506136c960608601613218565b905092959194509250565b600081518084526136ec816020860160208601613941565b601f01601f19169290920160200192915050565b60008251613712818460208701613941565b9190910192915050565b6000835161372e818460208801613941565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008351613765818460208801613941565b835190830190613779818360208801613941565b01949350505050565b6001600160a01b038481168252831660208201526060604082018190526000906137ae908301846136d4565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906137ea908301846136d4565b9695505050505050565b6020815260006128ab60208301846136d4565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156138f2576138f26139d7565b500190565b600082613906576139066139ed565b500490565b6000816000190483118215151615613925576139256139d7565b500290565b60008282101561393c5761393c6139d7565b500390565b60005b8381101561395c578181015183820152602001613944565b838111156110435750506000910152565b600181811c9082168061398157607f821691505b602082108114156139a257634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156139bc576139bc6139d7565b5060010190565b6000826139d2576139d26139ed565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146117ad57600080fd5b6001600160e01b0319811681146117ad57600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212206761b18688c4e8d8205d99d833d1eeecc3da551a7328eeacd57f1a81f402939364736f6c63430008070033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.