ETH Price: $3,456.25 (+2.61%)

Token

TeenageApeNightClub (TANC)
 

Overview

Max Total Supply

1,609 TANC

Holders

362

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
cryptopacman.eth
Balance
1 TANC
0xd5019f75889fc91118fd23e0e2f3c8d8481e8725
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:
TeenageApeNightClub

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : TeenageApeNightClub.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.7;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./ERC721Enumerable.sol";

contract TeenageApeNightClub is ERC721Enumerable, Ownable {
    string  public  baseURI;
    
    address private  constant  wallet = 0x2914D175A5a3763CC1AaC1a7B8BF67557A42b002;
    address public  proxyRegistryAddress;

    uint256 public  MAX_SUPPLY = 6000;
    uint256 public  MAX_TX = 6;
    uint256 public  reserved = 51;
    uint256 public  free = 600;
    uint256 public  price = 0.042 ether;
    
    bool public saleState = false;
    
    mapping(address => bool) public projectProxy;

    constructor(string memory _baseURI,address _proxyRegistryAddress) ERC721("TeenageApeNightClub", "TANC") {
        baseURI = _baseURI;
        proxyRegistryAddress = _proxyRegistryAddress;
    }

    function setBaseURI(string memory _baseURI) public onlyOwner {
        baseURI = _baseURI;
    }

    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        require(_exists(_tokenId), "Token does not exist.");
        return string(abi.encodePacked(baseURI, Strings.toString(_tokenId)));
    }

    function setProxyRegistryAddress(address _proxyRegistryAddress) external onlyOwner {
        proxyRegistryAddress = _proxyRegistryAddress;
    }

    function toggleProxyState(address proxyAddress) public onlyOwner {
        projectProxy[proxyAddress] = !projectProxy[proxyAddress];
    }

    function flipSaleState() public onlyOwner {
        saleState = !saleState;
    }

    function mint (uint256 count) public payable {
        require(saleState == true, "Sale not stated");
        uint256 totalSupply = _owners.length;
        // max tx check
        require(count < MAX_TX, "Exceeds max transaction.");
        // max supply check
        require(totalSupply + count <= MAX_SUPPLY, "Exceeds max supply.");
        if (totalSupply >= free)
        {
            require(count * price == msg.value, "Invalid funds provided.");            
        }
        else if (totalSupply + count >= free)
        {
            require((count - (free - totalSupply)) * price == msg.value, "Invalid funds provided.");
        }

        for(uint i; i < count; i++)
        {
            _mint(_msgSender(), totalSupply + i);
        }

    }

    function burn(uint256 tokenId) public {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "Not approved to burn.");
        _burn(tokenId);
    }

    function withdraw() public onlyOwner {
        uint256 totalBalance = address(this).balance;

        (bool successA, ) = wallet.call{value: totalBalance}("");
        require(successA, "Failed to send to wallet");
    }
    
    function walletOfOwner(address _owner) public view returns (uint256[] memory) {
        uint256 tokenCount = balanceOf(_owner);
        if (tokenCount == 0) return new uint256[](0);

        uint256[] memory tokensId = new uint256[](tokenCount);
        for (uint256 i; i < tokenCount; i++) {
            tokensId[i] = tokenOfOwnerByIndex(_owner, i);
        }
        return tokensId;
    }

    function batchTransferFrom(address _from, address _to, uint256[] memory _tokenIds) public {
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            transferFrom(_from, _to, _tokenIds[i]);
        }
    }

    function batchSafeTransferFrom(address _from, address _to, uint256[] memory _tokenIds, bytes memory data_) public {
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            safeTransferFrom(_from, _to, _tokenIds[i], data_);
        }
    }

    function isOwnerOf(address account, uint256[] calldata _tokenIds) external view returns (bool){
        for(uint256 i; i < _tokenIds.length; ++i ){
            if(_owners[_tokenIds[i]] != account)
                return false;
        }

        return true;
    }

    function isApprovedForAll(address _owner, address operator) public view override returns (bool) {
        OpenSeaProxyRegistry proxyRegistry = OpenSeaProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(_owner)) == operator || projectProxy[operator]) return true;
        return super.isApprovedForAll(_owner, operator);
    }

    function _mint(address to, uint256 tokenId) internal virtual override {
        _owners.push(to);
        emit Transfer(address(0), to, tokenId);
    }

    function setPrice(uint256 newPrice) external onlyOwner {
        price = newPrice;
    }

    function reserveForTeam(uint256 amount) public onlyOwner {
        uint256 totalSupply = _owners.length;
        require(totalSupply + amount <= MAX_SUPPLY, "Exceeds max supply");
        require(amount < reserved, "You can not get more reserved supply");

        for(uint i; i < amount; i++)
        {
            _mint(wallet, totalSupply + i);
        }
        reserved = reserved - amount;
    }

}

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

File 2 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

File 3 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 14 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.7;

import "./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 but rips out the core of the gas-wasting processing that comes from OpenZeppelin.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    /**
     * @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-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _owners.length;
    }

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

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

        uint count;
        for(uint i; i < _owners.length; i++){
            if(owner == _owners[i]){
                if(count == index) return i;
                else count++;
            }
        }

        revert("ERC721Enumerable: owner index out of bounds");
    }
}

File 5 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 6 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.7;

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

abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    string private _name;
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

    mapping(uint256 => address) private _tokenApprovals;
    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 (uint)
    {
        require(owner != address(0), "ERC721: balance query for the zero address");

        uint count;
        for( uint i; i < _owners.length; ++i ){
            if( owner == _owners[i] )
                ++count;
        }
        return count;
    }

    /**
     * @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 {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 tokenId < _owners.length && _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);
        _owners.push(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);
        _owners[tokenId] = address(0);

        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);
        _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 7 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 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 8 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

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

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

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

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 14 : Address.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

library Address {
    function isContract(address account) internal view returns (bool) {
        uint size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TX","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":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"batchSafeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"batchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"free","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"projectProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reserveForTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserved","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":"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":"saleState","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":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"toggleProxyState","outputs":[],"stateMutability":"nonpayable","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":"tokenId","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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405261177060085560066009556033600a55610258600b55669536c708910000600c55600d805460ff191690553480156200003c57600080fd5b5060405162002b9938038062002b998339810160408190526200005f9162000249565b604080518082018252601381527f5465656e6167654170654e69676874436c75620000000000000000000000000060208083019182528351808501909452600484526354414e4360e01b908401528151919291620000c09160009162000186565b508051620000d690600190602084019062000186565b505050620000f3620000ed6200013060201b60201c565b62000134565b81516200010890600690602085019062000186565b50600780546001600160a01b0319166001600160a01b0392909216919091179055506200038d565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000194906200033a565b90600052602060002090601f016020900481019282620001b8576000855562000203565b82601f10620001d357805160ff191683800117855562000203565b8280016001018555821562000203579182015b8281111562000203578251825591602001919060010190620001e6565b506200021192915062000215565b5090565b5b8082111562000211576000815560010162000216565b80516001600160a01b03811681146200024457600080fd5b919050565b600080604083850312156200025d57600080fd5b82516001600160401b03808211156200027557600080fd5b818501915085601f8301126200028a57600080fd5b8151818111156200029f576200029f62000377565b604051601f8201601f19908116603f01168101908382118183101715620002ca57620002ca62000377565b81604052828152602093508884848701011115620002e757600080fd5b600091505b828210156200030b5784820184015181830185015290830190620002ec565b828211156200031d5760008484830101525b95506200032f9150508582016200022c565b925050509250929050565b600181811c908216806200034f57607f821691505b602082108114156200037157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6127fc806200039d6000396000f3fe6080604052600436106102465760003560e01c80636352211e11610139578063b88d4fde116100b6578063d26ea6c01161007a578063d26ea6c014610692578063e985e9c5146106b2578063f2fde38b146106d2578063f3993d11146106f2578063f3b2db3f14610712578063fe60d12c1461072857600080fd5b8063b88d4fde146105f2578063bbd2dc1114610612578063c87b56dd14610632578063ccaf1a8214610652578063cd7c03261461067257600080fd5b806391b7f5ed116100fd57806391b7f5ed1461057457806395d89b4114610594578063a035b1fe146105a9578063a0712d68146105bf578063a22cb465146105d257600080fd5b80636352211e146104ec5780636c0360eb1461050c57806370a0823114610521578063715018a6146105415780638da5cb5b1461055657600080fd5b80633ccfd60b116101c75780634f6ccce71161018b5780634f6ccce71461044257806355f804b3146104625780635a4fee30146104825780635bab26e2146104a2578063603f4d52146104d257600080fd5b80633ccfd60b146103a057806342842e0e146103b557806342966c68146103d5578063438b6300146103f55780634d44660c1461042257600080fd5b806318160ddd1161020e57806318160ddd1461032057806323b872dd146103355780632f745c591461035557806332cb6b0c1461037557806334918dfd1461038b57600080fd5b806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2578063095ea7b3146102da5780631370128e146102fc575b600080fd5b34801561025757600080fd5b5061026b6102663660046122bb565b61073e565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b50610295610769565b60405161027791906124e4565b3480156102ae57600080fd5b506102c26102bd36600461235b565b6107fb565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102fa6102f536600461228f565b610888565b005b34801561030857600080fd5b50610312600b5481565b604051908152602001610277565b34801561032c57600080fd5b50600254610312565b34801561034157600080fd5b506102fa610350366004612133565b61099e565b34801561036157600080fd5b5061031261037036600461228f565b6109d0565b34801561038157600080fd5b5061031260085481565b34801561039757600080fd5b506102fa610a83565b3480156103ac57600080fd5b506102fa610ac1565b3480156103c157600080fd5b506102fa6103d0366004612133565b610b9d565b3480156103e157600080fd5b506102fa6103f036600461235b565b610bb8565b34801561040157600080fd5b50610415610410366004611ff2565b610c11565b60405161027791906124a0565b34801561042e57600080fd5b5061026b61043d3660046121d4565b610cca565b34801561044e57600080fd5b5061031261045d36600461235b565b610d4c565b34801561046e57600080fd5b506102fa61047d366004612312565b610db9565b34801561048e57600080fd5b506102fa61049d3660046120aa565b610df6565b3480156104ae57600080fd5b5061026b6104bd366004611ff2565b600e6020526000908152604090205460ff1681565b3480156104de57600080fd5b50600d5461026b9060ff1681565b3480156104f857600080fd5b506102c261050736600461235b565b610e40565b34801561051857600080fd5b50610295610ecc565b34801561052d57600080fd5b5061031261053c366004611ff2565b610f5a565b34801561054d57600080fd5b506102fa611028565b34801561056257600080fd5b506005546001600160a01b03166102c2565b34801561058057600080fd5b506102fa61058f36600461235b565b61105e565b3480156105a057600080fd5b5061029561108d565b3480156105b557600080fd5b50610312600c5481565b6102fa6105cd36600461235b565b61109c565b3480156105de57600080fd5b506102fa6105ed36600461225c565b61129d565b3480156105fe57600080fd5b506102fa61060d366004612174565b611362565b34801561061e57600080fd5b506102fa61062d366004611ff2565b61139a565b34801561063e57600080fd5b5061029561064d36600461235b565b6113ed565b34801561065e57600080fd5b506102fa61066d36600461235b565b61146e565b34801561067e57600080fd5b506007546102c2906001600160a01b031681565b34801561069e57600080fd5b506102fa6106ad366004611ff2565b61159d565b3480156106be57600080fd5b5061026b6106cd36600461200f565b6115e9565b3480156106de57600080fd5b506102fa6106ed366004611ff2565b6116dc565b3480156106fe57600080fd5b506102fa61070d366004612048565b611774565b34801561071e57600080fd5b5061031260095481565b34801561073457600080fd5b50610312600a5481565b60006001600160e01b0319821663780e9d6360e01b14806107635750610763826117b6565b92915050565b606060008054610778906126d9565b80601f01602080910402602001604051908101604052809291908181526020018280546107a4906126d9565b80156107f15780601f106107c6576101008083540402835291602001916107f1565b820191906000526020600020905b8154815290600101906020018083116107d457829003601f168201915b5050505050905090565b600061080682611806565b61086c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061089382610e40565b9050806001600160a01b0316836001600160a01b031614156109015760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610863565b336001600160a01b038216148061091d575061091d81336115e9565b61098f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610863565b6109998383611850565b505050565b6109a9335b826118be565b6109c55760405162461bcd60e51b8152600401610863906125c9565b610999838383611980565b60006109db83610f5a565b82106109f95760405162461bcd60e51b8152600401610863906124f7565b6000805b600254811015610a6a5760028181548110610a1a57610a1a61276f565b6000918252602090912001546001600160a01b0386811691161415610a585783821415610a4a5791506107639050565b81610a5481612714565b9250505b80610a6281612714565b9150506109fd565b5060405162461bcd60e51b8152600401610863906124f7565b6005546001600160a01b03163314610aad5760405162461bcd60e51b815260040161086390612594565b600d805460ff19811660ff90911615179055565b6005546001600160a01b03163314610aeb5760405162461bcd60e51b815260040161086390612594565b6040514790600090732914d175a5a3763cc1aac1a7b8bf67557a42b0029083908381818185875af1925050503d8060008114610b43576040519150601f19603f3d011682016040523d82523d6000602084013e610b48565b606091505b5050905080610b995760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2073656e6420746f2077616c6c657400000000000000006044820152606401610863565b5050565b61099983838360405180602001604052806000815250611362565b610bc1336109a3565b610c055760405162461bcd60e51b81526020600482015260156024820152742737ba1030b8383937bb32b2103a3790313ab9371760591b6044820152606401610863565b610c0e81611ad6565b50565b60606000610c1e83610f5a565b905080610c3f5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115610c5a57610c5a612785565b604051908082528060200260200182016040528015610c83578160200160208202803683370190505b50905060005b82811015610c3757610c9b85826109d0565b828281518110610cad57610cad61276f565b602090810291909101015280610cc281612714565b915050610c89565b6000805b82811015610d3f57846001600160a01b03166002858584818110610cf457610cf461276f565b9050602002013581548110610d0b57610d0b61276f565b6000918252602090912001546001600160a01b031614610d2f576000915050610d45565b610d3881612714565b9050610cce565b50600190505b9392505050565b6002546000908210610db55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610863565b5090565b6005546001600160a01b03163314610de35760405162461bcd60e51b815260040161086390612594565b8051610b99906006906020840190611e64565b60005b8251811015610e3957610e278585858481518110610e1957610e1961276f565b602002602001015185611362565b80610e3181612714565b915050610df9565b5050505050565b60008060028381548110610e5657610e5661276f565b6000918252602090912001546001600160a01b03169050806107635760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610863565b60068054610ed9906126d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610f05906126d9565b8015610f525780601f10610f2757610100808354040283529160200191610f52565b820191906000526020600020905b815481529060010190602001808311610f3557829003601f168201915b505050505081565b60006001600160a01b038216610fc55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610863565b6000805b6002548110156110215760028181548110610fe657610fe661276f565b6000918252602090912001546001600160a01b03858116911614156110115761100e82612714565b91505b61101a81612714565b9050610fc9565b5092915050565b6005546001600160a01b031633146110525760405162461bcd60e51b815260040161086390612594565b61105c6000611b58565b565b6005546001600160a01b031633146110885760405162461bcd60e51b815260040161086390612594565b600c55565b606060018054610778906126d9565b600d5460ff1615156001146110e55760405162461bcd60e51b815260206004820152600f60248201526e14d85b19481b9bdd081cdd185d1959608a1b6044820152606401610863565b60025460095482106111395760405162461bcd60e51b815260206004820152601860248201527f45786365656473206d6178207472616e73616374696f6e2e00000000000000006044820152606401610863565b600854611146838361264b565b111561118a5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b6044820152606401610863565b600b5481106111ee5734600c54836111a29190612677565b146111e95760405162461bcd60e51b815260206004820152601760248201527624b73b30b634b210333ab7323990383937bb34b232b21760491b6044820152606401610863565b61126d565b600b546111fb838361264b565b1061126d5734600c5482600b546112129190612696565b61121c9085612696565b6112269190612677565b1461126d5760405162461bcd60e51b815260206004820152601760248201527624b73b30b634b210333ab7323990383937bb34b232b21760491b6044820152606401610863565b60005b828110156109995761128b33611286838561264b565b611baa565b8061129581612714565b915050611270565b6001600160a01b0382163314156112f65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610863565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61136c33836118be565b6113885760405162461bcd60e51b8152600401610863906125c9565b61139484848484611c26565b50505050565b6005546001600160a01b031633146113c45760405162461bcd60e51b815260040161086390612594565b6001600160a01b03166000908152600e60205260409020805460ff19811660ff90911615179055565b60606113f882611806565b61143c5760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b6044820152606401610863565b600661144783611c59565b6040516020016114589291906123bc565b6040516020818303038152906040529050919050565b6005546001600160a01b031633146114985760405162461bcd60e51b815260040161086390612594565b6002546008546114a8838361264b565b11156114eb5760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b6044820152606401610863565b600a5482106115485760405162461bcd60e51b8152602060048201526024808201527f596f752063616e206e6f7420676574206d6f726520726573657276656420737560448201526370706c7960e01b6064820152608401610863565b60005b8281101561158757611575732914d175a5a3763cc1aac1a7b8bf67557a42b002611286838561264b565b8061157f81612714565b91505061154b565b5081600a546115969190612696565b600a555050565b6005546001600160a01b031633146115c75760405162461bcd60e51b815260040161086390612594565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60075460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b15801561163657600080fd5b505afa15801561164a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166e91906122f5565b6001600160a01b0316148061169b57506001600160a01b0383166000908152600e602052604090205460ff165b156116aa576001915050610763565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b6005546001600160a01b031633146117065760405162461bcd60e51b815260040161086390612594565b6001600160a01b03811661176b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610863565b610c0e81611b58565b60005b8151811015611394576117a484848484815181106117975761179761276f565b602002602001015161099e565b806117ae81612714565b915050611777565b60006001600160e01b031982166380ac58cd60e01b14806117e757506001600160e01b03198216635b5e139f60e01b145b8061076357506301ffc9a760e01b6001600160e01b0319831614610763565b60025460009082108015610763575060006001600160a01b0316600283815481106118335761183361276f565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061188582610e40565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006118c982611806565b61192a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610863565b600061193583610e40565b9050806001600160a01b0316846001600160a01b031614806119705750836001600160a01b0316611965846107fb565b6001600160a01b0316145b806116d457506116d481856115e9565b826001600160a01b031661199382610e40565b6001600160a01b0316146119fb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610863565b6001600160a01b038216611a5d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610863565b611a68600082611850565b8160028281548110611a7c57611a7c61276f565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6000611ae182610e40565b9050611aee600083611850565b600060028381548110611b0357611b0361276f565b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405184928416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b611c31848484611980565b611c3d84848484611d57565b6113945760405162461bcd60e51b815260040161086390612542565b606081611c7d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ca75780611c9181612714565b9150611ca09050600a83612663565b9150611c81565b60008167ffffffffffffffff811115611cc257611cc2612785565b6040519080825280601f01601f191660200182016040528015611cec576020820181803683370190505b5090505b84156116d457611d01600183612696565b9150611d0e600a8661272f565b611d1990603061264b565b60f81b818381518110611d2e57611d2e61276f565b60200101906001600160f81b031916908160001a905350611d50600a86612663565b9450611cf0565b60006001600160a01b0384163b15611e5957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d9b903390899088908890600401612463565b602060405180830381600087803b158015611db557600080fd5b505af1925050508015611de5575060408051601f3d908101601f19168201909252611de2918101906122d8565b60015b611e3f573d808015611e13576040519150601f19603f3d011682016040523d82523d6000602084013e611e18565b606091505b508051611e375760405162461bcd60e51b815260040161086390612542565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116d4565b506001949350505050565b828054611e70906126d9565b90600052602060002090601f016020900481019282611e925760008555611ed8565b82601f10611eab57805160ff1916838001178555611ed8565b82800160010185558215611ed8579182015b82811115611ed8578251825591602001919060010190611ebd565b50610db59291505b80821115610db55760008155600101611ee0565b600067ffffffffffffffff831115611f0e57611f0e612785565b611f21601f8401601f191660200161261a565b9050828152838383011115611f3557600080fd5b828260208301376000602084830101529392505050565b600082601f830112611f5d57600080fd5b8135602067ffffffffffffffff821115611f7957611f79612785565b8160051b611f8882820161261a565b838152828101908684018388018501891015611fa357600080fd5b600093505b85841015611fc6578035835260019390930192918401918401611fa8565b50979650505050505050565b600082601f830112611fe357600080fd5b610d4583833560208501611ef4565b60006020828403121561200457600080fd5b8135610d458161279b565b6000806040838503121561202257600080fd5b823561202d8161279b565b9150602083013561203d8161279b565b809150509250929050565b60008060006060848603121561205d57600080fd5b83356120688161279b565b925060208401356120788161279b565b9150604084013567ffffffffffffffff81111561209457600080fd5b6120a086828701611f4c565b9150509250925092565b600080600080608085870312156120c057600080fd5b84356120cb8161279b565b935060208501356120db8161279b565b9250604085013567ffffffffffffffff808211156120f857600080fd5b61210488838901611f4c565b9350606087013591508082111561211a57600080fd5b5061212787828801611fd2565b91505092959194509250565b60008060006060848603121561214857600080fd5b83356121538161279b565b925060208401356121638161279b565b929592945050506040919091013590565b6000806000806080858703121561218a57600080fd5b84356121958161279b565b935060208501356121a58161279b565b925060408501359150606085013567ffffffffffffffff8111156121c857600080fd5b61212787828801611fd2565b6000806000604084860312156121e957600080fd5b83356121f48161279b565b9250602084013567ffffffffffffffff8082111561221157600080fd5b818601915086601f83011261222557600080fd5b81358181111561223457600080fd5b8760208260051b850101111561224957600080fd5b6020830194508093505050509250925092565b6000806040838503121561226f57600080fd5b823561227a8161279b565b91506020830135801515811461203d57600080fd5b600080604083850312156122a257600080fd5b82356122ad8161279b565b946020939093013593505050565b6000602082840312156122cd57600080fd5b8135610d45816127b0565b6000602082840312156122ea57600080fd5b8151610d45816127b0565b60006020828403121561230757600080fd5b8151610d458161279b565b60006020828403121561232457600080fd5b813567ffffffffffffffff81111561233b57600080fd5b8201601f8101841361234c57600080fd5b6116d484823560208401611ef4565b60006020828403121561236d57600080fd5b5035919050565b6000815180845261238c8160208601602086016126ad565b601f01601f19169290920160200192915050565b600081516123b28185602086016126ad565b9290920192915050565b600080845481600182811c9150808316806123d857607f831692505b60208084108214156123f857634e487b7160e01b86526022600452602486fd5b81801561240c576001811461241d5761244a565b60ff1986168952848901965061244a565b60008b81526020902060005b868110156124425781548b820152908501908301612429565b505084890196505b50505050505061245a81856123a0565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061249690830184612374565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156124d8578351835292840192918401916001016124bc565b50909695505050505050565b602081526000610d456020830184612374565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561264357612643612785565b604052919050565b6000821982111561265e5761265e612743565b500190565b60008261267257612672612759565b500490565b600081600019048311821515161561269157612691612743565b500290565b6000828210156126a8576126a8612743565b500390565b60005b838110156126c85781810151838201526020016126b0565b838111156113945750506000910152565b600181811c908216806126ed57607f821691505b6020821081141561270e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561272857612728612743565b5060010190565b60008261273e5761273e612759565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c0e57600080fd5b6001600160e01b031981168114610c0e57600080fdfea264697066735822122091c506bef0e0ec4adee04f607576b8a6a29c74bb7240325f7be5a74caf1d694d64736f6c634300080700330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000002968747470733a2f2f6d696e742e7465656e6167656170656e69676874636c75622e636f6d2f6170692f0000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102465760003560e01c80636352211e11610139578063b88d4fde116100b6578063d26ea6c01161007a578063d26ea6c014610692578063e985e9c5146106b2578063f2fde38b146106d2578063f3993d11146106f2578063f3b2db3f14610712578063fe60d12c1461072857600080fd5b8063b88d4fde146105f2578063bbd2dc1114610612578063c87b56dd14610632578063ccaf1a8214610652578063cd7c03261461067257600080fd5b806391b7f5ed116100fd57806391b7f5ed1461057457806395d89b4114610594578063a035b1fe146105a9578063a0712d68146105bf578063a22cb465146105d257600080fd5b80636352211e146104ec5780636c0360eb1461050c57806370a0823114610521578063715018a6146105415780638da5cb5b1461055657600080fd5b80633ccfd60b116101c75780634f6ccce71161018b5780634f6ccce71461044257806355f804b3146104625780635a4fee30146104825780635bab26e2146104a2578063603f4d52146104d257600080fd5b80633ccfd60b146103a057806342842e0e146103b557806342966c68146103d5578063438b6300146103f55780634d44660c1461042257600080fd5b806318160ddd1161020e57806318160ddd1461032057806323b872dd146103355780632f745c591461035557806332cb6b0c1461037557806334918dfd1461038b57600080fd5b806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2578063095ea7b3146102da5780631370128e146102fc575b600080fd5b34801561025757600080fd5b5061026b6102663660046122bb565b61073e565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b50610295610769565b60405161027791906124e4565b3480156102ae57600080fd5b506102c26102bd36600461235b565b6107fb565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102fa6102f536600461228f565b610888565b005b34801561030857600080fd5b50610312600b5481565b604051908152602001610277565b34801561032c57600080fd5b50600254610312565b34801561034157600080fd5b506102fa610350366004612133565b61099e565b34801561036157600080fd5b5061031261037036600461228f565b6109d0565b34801561038157600080fd5b5061031260085481565b34801561039757600080fd5b506102fa610a83565b3480156103ac57600080fd5b506102fa610ac1565b3480156103c157600080fd5b506102fa6103d0366004612133565b610b9d565b3480156103e157600080fd5b506102fa6103f036600461235b565b610bb8565b34801561040157600080fd5b50610415610410366004611ff2565b610c11565b60405161027791906124a0565b34801561042e57600080fd5b5061026b61043d3660046121d4565b610cca565b34801561044e57600080fd5b5061031261045d36600461235b565b610d4c565b34801561046e57600080fd5b506102fa61047d366004612312565b610db9565b34801561048e57600080fd5b506102fa61049d3660046120aa565b610df6565b3480156104ae57600080fd5b5061026b6104bd366004611ff2565b600e6020526000908152604090205460ff1681565b3480156104de57600080fd5b50600d5461026b9060ff1681565b3480156104f857600080fd5b506102c261050736600461235b565b610e40565b34801561051857600080fd5b50610295610ecc565b34801561052d57600080fd5b5061031261053c366004611ff2565b610f5a565b34801561054d57600080fd5b506102fa611028565b34801561056257600080fd5b506005546001600160a01b03166102c2565b34801561058057600080fd5b506102fa61058f36600461235b565b61105e565b3480156105a057600080fd5b5061029561108d565b3480156105b557600080fd5b50610312600c5481565b6102fa6105cd36600461235b565b61109c565b3480156105de57600080fd5b506102fa6105ed36600461225c565b61129d565b3480156105fe57600080fd5b506102fa61060d366004612174565b611362565b34801561061e57600080fd5b506102fa61062d366004611ff2565b61139a565b34801561063e57600080fd5b5061029561064d36600461235b565b6113ed565b34801561065e57600080fd5b506102fa61066d36600461235b565b61146e565b34801561067e57600080fd5b506007546102c2906001600160a01b031681565b34801561069e57600080fd5b506102fa6106ad366004611ff2565b61159d565b3480156106be57600080fd5b5061026b6106cd36600461200f565b6115e9565b3480156106de57600080fd5b506102fa6106ed366004611ff2565b6116dc565b3480156106fe57600080fd5b506102fa61070d366004612048565b611774565b34801561071e57600080fd5b5061031260095481565b34801561073457600080fd5b50610312600a5481565b60006001600160e01b0319821663780e9d6360e01b14806107635750610763826117b6565b92915050565b606060008054610778906126d9565b80601f01602080910402602001604051908101604052809291908181526020018280546107a4906126d9565b80156107f15780601f106107c6576101008083540402835291602001916107f1565b820191906000526020600020905b8154815290600101906020018083116107d457829003601f168201915b5050505050905090565b600061080682611806565b61086c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061089382610e40565b9050806001600160a01b0316836001600160a01b031614156109015760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610863565b336001600160a01b038216148061091d575061091d81336115e9565b61098f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610863565b6109998383611850565b505050565b6109a9335b826118be565b6109c55760405162461bcd60e51b8152600401610863906125c9565b610999838383611980565b60006109db83610f5a565b82106109f95760405162461bcd60e51b8152600401610863906124f7565b6000805b600254811015610a6a5760028181548110610a1a57610a1a61276f565b6000918252602090912001546001600160a01b0386811691161415610a585783821415610a4a5791506107639050565b81610a5481612714565b9250505b80610a6281612714565b9150506109fd565b5060405162461bcd60e51b8152600401610863906124f7565b6005546001600160a01b03163314610aad5760405162461bcd60e51b815260040161086390612594565b600d805460ff19811660ff90911615179055565b6005546001600160a01b03163314610aeb5760405162461bcd60e51b815260040161086390612594565b6040514790600090732914d175a5a3763cc1aac1a7b8bf67557a42b0029083908381818185875af1925050503d8060008114610b43576040519150601f19603f3d011682016040523d82523d6000602084013e610b48565b606091505b5050905080610b995760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2073656e6420746f2077616c6c657400000000000000006044820152606401610863565b5050565b61099983838360405180602001604052806000815250611362565b610bc1336109a3565b610c055760405162461bcd60e51b81526020600482015260156024820152742737ba1030b8383937bb32b2103a3790313ab9371760591b6044820152606401610863565b610c0e81611ad6565b50565b60606000610c1e83610f5a565b905080610c3f5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115610c5a57610c5a612785565b604051908082528060200260200182016040528015610c83578160200160208202803683370190505b50905060005b82811015610c3757610c9b85826109d0565b828281518110610cad57610cad61276f565b602090810291909101015280610cc281612714565b915050610c89565b6000805b82811015610d3f57846001600160a01b03166002858584818110610cf457610cf461276f565b9050602002013581548110610d0b57610d0b61276f565b6000918252602090912001546001600160a01b031614610d2f576000915050610d45565b610d3881612714565b9050610cce565b50600190505b9392505050565b6002546000908210610db55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610863565b5090565b6005546001600160a01b03163314610de35760405162461bcd60e51b815260040161086390612594565b8051610b99906006906020840190611e64565b60005b8251811015610e3957610e278585858481518110610e1957610e1961276f565b602002602001015185611362565b80610e3181612714565b915050610df9565b5050505050565b60008060028381548110610e5657610e5661276f565b6000918252602090912001546001600160a01b03169050806107635760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610863565b60068054610ed9906126d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610f05906126d9565b8015610f525780601f10610f2757610100808354040283529160200191610f52565b820191906000526020600020905b815481529060010190602001808311610f3557829003601f168201915b505050505081565b60006001600160a01b038216610fc55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610863565b6000805b6002548110156110215760028181548110610fe657610fe661276f565b6000918252602090912001546001600160a01b03858116911614156110115761100e82612714565b91505b61101a81612714565b9050610fc9565b5092915050565b6005546001600160a01b031633146110525760405162461bcd60e51b815260040161086390612594565b61105c6000611b58565b565b6005546001600160a01b031633146110885760405162461bcd60e51b815260040161086390612594565b600c55565b606060018054610778906126d9565b600d5460ff1615156001146110e55760405162461bcd60e51b815260206004820152600f60248201526e14d85b19481b9bdd081cdd185d1959608a1b6044820152606401610863565b60025460095482106111395760405162461bcd60e51b815260206004820152601860248201527f45786365656473206d6178207472616e73616374696f6e2e00000000000000006044820152606401610863565b600854611146838361264b565b111561118a5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b6044820152606401610863565b600b5481106111ee5734600c54836111a29190612677565b146111e95760405162461bcd60e51b815260206004820152601760248201527624b73b30b634b210333ab7323990383937bb34b232b21760491b6044820152606401610863565b61126d565b600b546111fb838361264b565b1061126d5734600c5482600b546112129190612696565b61121c9085612696565b6112269190612677565b1461126d5760405162461bcd60e51b815260206004820152601760248201527624b73b30b634b210333ab7323990383937bb34b232b21760491b6044820152606401610863565b60005b828110156109995761128b33611286838561264b565b611baa565b8061129581612714565b915050611270565b6001600160a01b0382163314156112f65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610863565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61136c33836118be565b6113885760405162461bcd60e51b8152600401610863906125c9565b61139484848484611c26565b50505050565b6005546001600160a01b031633146113c45760405162461bcd60e51b815260040161086390612594565b6001600160a01b03166000908152600e60205260409020805460ff19811660ff90911615179055565b60606113f882611806565b61143c5760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b6044820152606401610863565b600661144783611c59565b6040516020016114589291906123bc565b6040516020818303038152906040529050919050565b6005546001600160a01b031633146114985760405162461bcd60e51b815260040161086390612594565b6002546008546114a8838361264b565b11156114eb5760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b6044820152606401610863565b600a5482106115485760405162461bcd60e51b8152602060048201526024808201527f596f752063616e206e6f7420676574206d6f726520726573657276656420737560448201526370706c7960e01b6064820152608401610863565b60005b8281101561158757611575732914d175a5a3763cc1aac1a7b8bf67557a42b002611286838561264b565b8061157f81612714565b91505061154b565b5081600a546115969190612696565b600a555050565b6005546001600160a01b031633146115c75760405162461bcd60e51b815260040161086390612594565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60075460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b15801561163657600080fd5b505afa15801561164a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166e91906122f5565b6001600160a01b0316148061169b57506001600160a01b0383166000908152600e602052604090205460ff165b156116aa576001915050610763565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b6005546001600160a01b031633146117065760405162461bcd60e51b815260040161086390612594565b6001600160a01b03811661176b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610863565b610c0e81611b58565b60005b8151811015611394576117a484848484815181106117975761179761276f565b602002602001015161099e565b806117ae81612714565b915050611777565b60006001600160e01b031982166380ac58cd60e01b14806117e757506001600160e01b03198216635b5e139f60e01b145b8061076357506301ffc9a760e01b6001600160e01b0319831614610763565b60025460009082108015610763575060006001600160a01b0316600283815481106118335761183361276f565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061188582610e40565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006118c982611806565b61192a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610863565b600061193583610e40565b9050806001600160a01b0316846001600160a01b031614806119705750836001600160a01b0316611965846107fb565b6001600160a01b0316145b806116d457506116d481856115e9565b826001600160a01b031661199382610e40565b6001600160a01b0316146119fb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610863565b6001600160a01b038216611a5d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610863565b611a68600082611850565b8160028281548110611a7c57611a7c61276f565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6000611ae182610e40565b9050611aee600083611850565b600060028381548110611b0357611b0361276f565b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405184928416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b611c31848484611980565b611c3d84848484611d57565b6113945760405162461bcd60e51b815260040161086390612542565b606081611c7d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ca75780611c9181612714565b9150611ca09050600a83612663565b9150611c81565b60008167ffffffffffffffff811115611cc257611cc2612785565b6040519080825280601f01601f191660200182016040528015611cec576020820181803683370190505b5090505b84156116d457611d01600183612696565b9150611d0e600a8661272f565b611d1990603061264b565b60f81b818381518110611d2e57611d2e61276f565b60200101906001600160f81b031916908160001a905350611d50600a86612663565b9450611cf0565b60006001600160a01b0384163b15611e5957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d9b903390899088908890600401612463565b602060405180830381600087803b158015611db557600080fd5b505af1925050508015611de5575060408051601f3d908101601f19168201909252611de2918101906122d8565b60015b611e3f573d808015611e13576040519150601f19603f3d011682016040523d82523d6000602084013e611e18565b606091505b508051611e375760405162461bcd60e51b815260040161086390612542565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116d4565b506001949350505050565b828054611e70906126d9565b90600052602060002090601f016020900481019282611e925760008555611ed8565b82601f10611eab57805160ff1916838001178555611ed8565b82800160010185558215611ed8579182015b82811115611ed8578251825591602001919060010190611ebd565b50610db59291505b80821115610db55760008155600101611ee0565b600067ffffffffffffffff831115611f0e57611f0e612785565b611f21601f8401601f191660200161261a565b9050828152838383011115611f3557600080fd5b828260208301376000602084830101529392505050565b600082601f830112611f5d57600080fd5b8135602067ffffffffffffffff821115611f7957611f79612785565b8160051b611f8882820161261a565b838152828101908684018388018501891015611fa357600080fd5b600093505b85841015611fc6578035835260019390930192918401918401611fa8565b50979650505050505050565b600082601f830112611fe357600080fd5b610d4583833560208501611ef4565b60006020828403121561200457600080fd5b8135610d458161279b565b6000806040838503121561202257600080fd5b823561202d8161279b565b9150602083013561203d8161279b565b809150509250929050565b60008060006060848603121561205d57600080fd5b83356120688161279b565b925060208401356120788161279b565b9150604084013567ffffffffffffffff81111561209457600080fd5b6120a086828701611f4c565b9150509250925092565b600080600080608085870312156120c057600080fd5b84356120cb8161279b565b935060208501356120db8161279b565b9250604085013567ffffffffffffffff808211156120f857600080fd5b61210488838901611f4c565b9350606087013591508082111561211a57600080fd5b5061212787828801611fd2565b91505092959194509250565b60008060006060848603121561214857600080fd5b83356121538161279b565b925060208401356121638161279b565b929592945050506040919091013590565b6000806000806080858703121561218a57600080fd5b84356121958161279b565b935060208501356121a58161279b565b925060408501359150606085013567ffffffffffffffff8111156121c857600080fd5b61212787828801611fd2565b6000806000604084860312156121e957600080fd5b83356121f48161279b565b9250602084013567ffffffffffffffff8082111561221157600080fd5b818601915086601f83011261222557600080fd5b81358181111561223457600080fd5b8760208260051b850101111561224957600080fd5b6020830194508093505050509250925092565b6000806040838503121561226f57600080fd5b823561227a8161279b565b91506020830135801515811461203d57600080fd5b600080604083850312156122a257600080fd5b82356122ad8161279b565b946020939093013593505050565b6000602082840312156122cd57600080fd5b8135610d45816127b0565b6000602082840312156122ea57600080fd5b8151610d45816127b0565b60006020828403121561230757600080fd5b8151610d458161279b565b60006020828403121561232457600080fd5b813567ffffffffffffffff81111561233b57600080fd5b8201601f8101841361234c57600080fd5b6116d484823560208401611ef4565b60006020828403121561236d57600080fd5b5035919050565b6000815180845261238c8160208601602086016126ad565b601f01601f19169290920160200192915050565b600081516123b28185602086016126ad565b9290920192915050565b600080845481600182811c9150808316806123d857607f831692505b60208084108214156123f857634e487b7160e01b86526022600452602486fd5b81801561240c576001811461241d5761244a565b60ff1986168952848901965061244a565b60008b81526020902060005b868110156124425781548b820152908501908301612429565b505084890196505b50505050505061245a81856123a0565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061249690830184612374565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156124d8578351835292840192918401916001016124bc565b50909695505050505050565b602081526000610d456020830184612374565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561264357612643612785565b604052919050565b6000821982111561265e5761265e612743565b500190565b60008261267257612672612759565b500490565b600081600019048311821515161561269157612691612743565b500290565b6000828210156126a8576126a8612743565b500390565b60005b838110156126c85781810151838201526020016126b0565b838111156113945750506000910152565b600181811c908216806126ed57607f821691505b6020821081141561270e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561272857612728612743565b5060010190565b60008261273e5761273e612759565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c0e57600080fd5b6001600160e01b031981168114610c0e57600080fdfea264697066735822122091c506bef0e0ec4adee04f607576b8a6a29c74bb7240325f7be5a74caf1d694d64736f6c63430008070033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000002968747470733a2f2f6d696e742e7465656e6167656170656e69676874636c75622e636f6d2f6170692f0000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _baseURI (string): https://mint.teenageapenightclub.com/api/
Arg [1] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000029
Arg [3] : 68747470733a2f2f6d696e742e7465656e6167656170656e69676874636c7562
Arg [4] : 2e636f6d2f6170692f0000000000000000000000000000000000000000000000


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.