ETH Price: $3,318.09 (-2.83%)

Token

FoundersToken (FT)
 

Overview

Max Total Supply

420 FT

Holders

232

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
13 FT
0xa81D50239B25B41Ae762F481dA4DFE2F988A9211
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:
FoundersToken

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : FoundersToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract OwnableDelegateProxy {}

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

contract FoundersToken is ERC721, Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using Strings for string;

    string public baseURI;
    
    uint16 MAX_NUTS;
    uint8 dogeMints;
    uint8 nutMints;
    uint16 public totalSupply;

    bytes32 tripleNuts = 0x57cf187930c63df3da848b764bc684984803f6918994ac6331ed91ff79d9b2b9;
    bytes32 doubleDoge = 0xd5f1adbbdb3da0e7acb311c235c2051ea1bc7ffa030336690e1baa62df340147;
    bytes32 singleDoge = 0x5d7edc6c4a0eeb2bb3b4d6f3b825c9b6b09e3b06da8b77b23beb0c8345eee401;

    // After whitelist, single mints
    bytes32 singlesNuts = 0x63131604734e0f9dbcb268b5f330b040020701d72d91bbc82eef7c71b1445e34;



    address proxyRegistryAddress;
    
    mapping(address => uint8) public alreadyMintedNutsWhitelist;
    mapping(address => uint8) public alreadyMintedDogeSingleWhitelist;
    mapping(address => uint8) public alreadyMinteDogeDoubleWhitelist;
    mapping(address => uint8) public alreadyMintedSingleNutsWhitelist;

    uint256 mintPrice = 1 ether;

    bool public whitelistMinting;
    bool public publicMinting;
    bool public lotteryMinting;

    constructor(address _proxyRegistryAddress) ERC721("FoundersToken", "FT") {
        proxyRegistryAddress = _proxyRegistryAddress;
        whitelistMinting = false;
        publicMinting = false;
        lotteryMinting = false;
        baseURI = "https://storage.googleapis.com/founders-token/Founders/Json/";
        MAX_NUTS = 420;
        dogeMints = 0;
        totalSupply = 0;
        nutMints = 0;
    }

    function withdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        address wallet = 0x67bceE2C58bcB26fEEeb7bb084605b508Bb55425;
        payable(wallet).transfer(balance);
    }

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

    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    function nutWhitelistMinting(uint8 amount, bytes32[] calldata _merkleProof) external payable nonReentrant {
        require(whitelistMinting, "Whitelist minting isn't allowed yet");
        require(totalSupply + amount <= 400, "Purchase would exceed max supply");
        require(nutMints + amount <= 200, "Nut whitelist minting has been capped.");

        require(mintPrice.mul(amount) <= msg.value, "Ether value sent is not correct");
        require(alreadyMintedNutsWhitelist[msg.sender] + amount <= 3, "3 mints maximum.");
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, tripleNuts, leaf), "Address not whitelisted");
    

        for (uint256 i = 0; i < amount; i++) {
            _safeMint(msg.sender, totalSupply + 1);
            totalSupply += 1;
            nutMints += 1;
        }
        alreadyMintedNutsWhitelist[msg.sender] += amount;
    }

    function nutLotteryMinting(bytes32[] calldata _merkleProof) external payable nonReentrant {
        require(lotteryMinting, "Whitelist minting isn't allowed yet");
        require(totalSupply + 1 <= 400, "Purchase would exceed max supply");
        require(mintPrice <= msg.value, "Ether value sent is not correct");

        require(alreadyMintedSingleNutsWhitelist[msg.sender] == 0, "Maximum 1 mint");

        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, singlesNuts, leaf), "Address not whitelisted");

        _safeMint(msg.sender, totalSupply + 1);
        totalSupply += 1;

        alreadyMintedSingleNutsWhitelist[msg.sender] += 1;
    }

    function dogeDoubleWhitelist(uint8 amount, bytes32[] calldata _merkleProof) external payable nonReentrant {
        require(whitelistMinting, "Whitelist minting isn't allowed yet");
        require(totalSupply + amount <= 400, "Purchase would exceed max supply");
        require(dogeMints + amount <= 200, "Doge whitelist minting has been capped.");

        require(mintPrice.mul(amount) <= msg.value, "Ether value sent is not correct");
        require(alreadyMinteDogeDoubleWhitelist[msg.sender] + amount <= 2, "2 mints maximum.");
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, doubleDoge, leaf), "Address not whitelisted");

        for (uint256 i = 0; i < amount; i++) {
            _safeMint(msg.sender, totalSupply + 1);
            totalSupply += 1;
            dogeMints += 1;
        }
        alreadyMinteDogeDoubleWhitelist[msg.sender] += amount;
    }

    function dogeSingleWhitelist(uint8 amount, bytes32[] calldata _merkleProof) external payable nonReentrant {
        require(whitelistMinting, "Whitelist minting isn't allowed yet");
        require(totalSupply + amount <= 400, "Purchase would exceed max supply");
        require(dogeMints + amount <= 200, "Doge whitelist minting has been capped.");

        require(mintPrice.mul(amount) <= msg.value, "Ether value sent is not correct");
        require(alreadyMintedDogeSingleWhitelist[msg.sender] + amount <= 1, "3 mints maximum.");
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, singleDoge, leaf), "Address not whitelisted");

        for (uint256 i = 0; i < amount; i++) {
            _safeMint(msg.sender, totalSupply + 1);
            totalSupply += 1;
            dogeMints += 1;
        }
        alreadyMintedDogeSingleWhitelist[msg.sender] += amount;
    }


    function publicMint(uint8 amount) external payable nonReentrant {
        require(publicMinting, "Whitelist minting isn't allowed yet");
        require(totalSupply + amount <= 400, "Purchase would exceed max supply");
        require(mintPrice.mul(amount) <= msg.value, "Ether value sent is not correct");

        for (uint256 i = 0; i < amount; i++) {
            _safeMint(msg.sender, totalSupply + 1);
            totalSupply += 1;
        }
    }


    function mint(address _address, uint256 amount) public onlyOwner {
        require(totalSupply + 1 < MAX_NUTS, "All nuts have already been minted!");

        for (uint256 i = 0; i < amount; i++) {
            _safeMint(_address, totalSupply + 1);
            totalSupply += 1;
        }
    }

    function tokenURI(uint256 tokenId) public view virtual override(ERC721) returns (string memory) {
        return string(abi.encodePacked(_baseURI(), uint2str(tokenId), ".json"));
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function _burn(uint256 tokenId) internal override(ERC721) {
        super._burn(tokenId);
    }

    function supportsInterface(bytes4 interfaceId) public view override(ERC721) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    function setWhitelistMinting(bool enabled) external onlyOwner {
        whitelistMinting = enabled;
    }

    function setPublicMinting(bool enabled) external onlyOwner {
        publicMinting = enabled;
    }

    function setLotteryMinting(bool enabled) external onlyOwner {
        lotteryMinting = enabled;
    }


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

     /**
     * @dev override transfer to prevent transfer of calimed tokens
     */
    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 override transfer to prevent transfer of calimed tokens
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev override transfer to prevent transfer of calimed tokens
     */
    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);
    }
    
    function uint2str(uint _i) internal pure returns (string memory _uintAsString) {
        if (_i == 0) {
            return "0";
        }
        uint j = _i;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len;
        while (_i != 0) {
            k = k-1;
            uint8 temp = (48 + uint8(_i - _i / 10 * 10));
            bytes1 b1 = bytes1(temp);
            bstr[k] = b1;
            _i /= 10;
        }
        return string(bstr);
    }
}

File 2 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

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 {
        _setApprovalForAll(_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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

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 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

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 generally not needed starting with Solidity 0.8, since 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 5 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 6 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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 = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 7 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 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 13 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 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":"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":[{"internalType":"address","name":"","type":"address"}],"name":"alreadyMinteDogeDoubleWhitelist","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"alreadyMintedDogeSingleWhitelist","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"alreadyMintedNutsWhitelist","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"alreadyMintedSingleNutsWhitelist","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"uint8","name":"amount","type":"uint8"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"dogeDoubleWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"dogeSingleWhitelist","outputs":[],"stateMutability":"payable","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":[],"name":"lotteryMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"nutLotteryMinting","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"nutWhitelistMinting","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMinting","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"base","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setLotteryMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setPublicMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setWhitelistMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"whitelistMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040527f57cf187930c63df3da848b764bc684984803f6918994ac6331ed91ff79d9b2b9600a557fd5f1adbbdb3da0e7acb311c235c2051ea1bc7ffa030336690e1baa62df340147600b557f5d7edc6c4a0eeb2bb3b4d6f3b825c9b6b09e3b06da8b77b23beb0c8345eee401600c557f63131604734e0f9dbcb268b5f330b040020701d72d91bbc82eef7c71b1445e34600d55670de0b6b3a7640000601355348015620000ad57600080fd5b506040516200319638038062003196833981016040819052620000d091620002c4565b604080518082018252600d81526c2337bab73232b939aa37b5b2b760991b602080830191825283518085019094526002845261119560f21b9084015281519192916200011f916000916200021e565b508051620001359060019060208401906200021e565b505050620001526200014c620001c860201b60201c565b620001cc565b6001600755600e80546001600160a01b0319166001600160a01b0383161790556014805462ffffff191690556040805160608101909152603c8082526200315a60208301398051620001ad916008916020909101906200021e565b50506009805465ffffffffffff19166101a417905562000333565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200022c90620002f6565b90600052602060002090601f0160209004810192826200025057600085556200029b565b82601f106200026b57805160ff19168380011785556200029b565b828001600101855582156200029b579182015b828111156200029b5782518255916020019190600101906200027e565b50620002a9929150620002ad565b5090565b5b80821115620002a95760008155600101620002ae565b600060208284031215620002d757600080fd5b81516001600160a01b0381168114620002ef57600080fd5b9392505050565b600181811c908216806200030b57607f821691505b602082108114156200032d57634e487b7160e01b600052602260045260246000fd5b50919050565b612e1780620003436000396000f3fe60806040526004361061020f5760003560e01c80636992d22911610118578063a22cb465116100a0578063ca79bee81161006f578063ca79bee814610611578063e985e9c514610641578063eca8851114610661578063f2fde38b14610674578063fdf109b41461069457600080fd5b8063a22cb46514610591578063b88d4fde146105b1578063c40542ec146105d1578063c87b56dd146105f157600080fd5b8063715018a6116100e7578063715018a614610523578063858e83b5146105385780638da5cb5b1461054b57806395d89b41146105695780639c55136c1461057e57600080fd5b80636992d229146104b35780636b449be3146104cd5780636c0360eb146104e057806370a08231146104f557600080fd5b8063254a47371161019b57806353ac010a1161016a57806353ac010a146103e257806355f804b3146104015780635e7d720d146104215780636352211e146104635780636742fa331461048357600080fd5b8063254a47371461036d5780633ccfd60b1461038d57806340c10f19146103a257806342842e0e146103c257600080fd5b80630928e13d116101e25780630928e13d146102c35780630929b59d146102e5578063095ea7b3146102f857806318160ddd1461031857806323b872dd1461034d57600080fd5b806301ffc9a714610214578063023bc2ba1461024957806306fdde0314610269578063081812fc1461028b575b600080fd5b34801561022057600080fd5b5061023461022f3660046127fc565b6106c4565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b506014546102349062010000900460ff1681565b34801561027557600080fd5b5061027e6106d5565b60405161024091906129e8565b34801561029757600080fd5b506102ab6102a636600461289c565b610767565b6040516001600160a01b039091168152602001610240565b3480156102cf57600080fd5b506102e36102de3660046127e1565b610801565b005b6102e36102f336600461279f565b610847565b34801561030457600080fd5b506102e3610313366004612773565b610a7f565b34801561032457600080fd5b5060095461033a90600160201b900461ffff1681565b60405161ffff9091168152602001610240565b34801561035957600080fd5b506102e361036836600461267d565b610b95565b34801561037957600080fd5b506102e36103883660046127e1565b610bc6565b34801561039957600080fd5b506102e3610c0a565b3480156103ae57600080fd5b506102e36103bd366004612773565b610c79565b3480156103ce57600080fd5b506102e36103dd36600461267d565b610d94565b3480156103ee57600080fd5b5060145461023490610100900460ff1681565b34801561040d57600080fd5b506102e361041c366004612853565b610daf565b34801561042d57600080fd5b5061045161043c366004612627565b600f6020526000908152604090205460ff1681565b60405160ff9091168152602001610240565b34801561046f57600080fd5b506102ab61047e36600461289c565b610df0565b34801561048f57600080fd5b5061045161049e366004612627565b60116020526000908152604090205460ff1681565b3480156104bf57600080fd5b506014546102349060ff1681565b6102e36104db3660046128d0565b610e67565b3480156104ec57600080fd5b5061027e611145565b34801561050157600080fd5b50610515610510366004612627565b6111d3565b604051908152602001610240565b34801561052f57600080fd5b506102e361125a565b6102e36105463660046128b5565b611290565b34801561055757600080fd5b506006546001600160a01b03166102ab565b34801561057557600080fd5b5061027e6113d4565b6102e361058c3660046128d0565b6113e3565b34801561059d57600080fd5b506102e36105ac36600461273e565b61169b565b3480156105bd57600080fd5b506102e36105cc3660046126be565b6116a6565b3480156105dd57600080fd5b506102e36105ec3660046127e1565b6116de565b3480156105fd57600080fd5b5061027e61060c36600461289c565b61171b565b34801561061d57600080fd5b5061045161062c366004612627565b60106020526000908152604090205460ff1681565b34801561064d57600080fd5b5061023461065c366004612644565b611755565b6102e361066f3660046128d0565b611825565b34801561068057600080fd5b506102e361068f366004612627565b611b1d565b3480156106a057600080fd5b506104516106af366004612627565b60126020526000908152604090205460ff1681565b60006106cf82611bb8565b92915050565b6060600080546106e490612d1e565b80601f016020809104026020016040519081016040528092919081815260200182805461071090612d1e565b801561075d5780601f106107325761010080835404028352916020019161075d565b820191906000526020600020905b81548152906001019060200180831161074057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107e55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6006546001600160a01b0316331461082b5760405162461bcd60e51b81526004016107dc90612ab9565b60148054911515620100000262ff000019909216919091179055565b6002600754141561086a5760405162461bcd60e51b81526004016107dc90612bb9565b600260075560145462010000900460ff166108975760405162461bcd60e51b81526004016107dc90612b25565b600954610190906108b490600160201b900461ffff166001612c37565b61ffff1611156108d65760405162461bcd60e51b81526004016107dc90612a84565b3460135411156108f85760405162461bcd60e51b81526004016107dc90612a4d565b3360009081526012602052604090205460ff16156109495760405162461bcd60e51b815260206004820152600e60248201526d13585e1a5b5d5b480c481b5a5b9d60921b60448201526064016107dc565b60003360405160200161095c919061294f565b6040516020818303038152906040528051906020012090506109b583838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d549150849050611c08565b6109d15760405162461bcd60e51b81526004016107dc90612aee565b6009546109f99033906109f090600160201b900461ffff166001612c37565b61ffff16611c1e565b6001600960048282829054906101000a900461ffff16610a199190612c37565b825461ffff9182166101009390930a928302919092021990911617905550336000908152601260205260408120805460019290610a5a90849060ff16612c75565b92506101000a81548160ff021916908360ff1602179055505060016007819055505050565b6000610a8a82610df0565b9050806001600160a01b0316836001600160a01b03161415610af85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107dc565b336001600160a01b0382161480610b145750610b148133611755565b610b865760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107dc565b610b908383611c38565b505050565b610b9f3382611ca6565b610bbb5760405162461bcd60e51b81526004016107dc90612b68565b610b90838383611d75565b6006546001600160a01b03163314610bf05760405162461bcd60e51b81526004016107dc90612ab9565b601480549115156101000261ff0019909216919091179055565b6006546001600160a01b03163314610c345760405162461bcd60e51b81526004016107dc90612ab9565b60405147907367bcee2c58bcb26feeeb7bb084605b508bb5542590819083156108fc029084906000818181858888f19350505050158015610b90573d6000803e3d6000fd5b6006546001600160a01b03163314610ca35760405162461bcd60e51b81526004016107dc90612ab9565b60095461ffff80821691610cc191600160201b909104166001612c37565b61ffff1610610d1d5760405162461bcd60e51b815260206004820152602260248201527f416c6c206e757473206861766520616c7265616479206265656e206d696e7465604482015261642160f01b60648201526084016107dc565b60005b81811015610b9057600954610d479084906109f090600160201b900461ffff166001612c37565b6001600960048282829054906101000a900461ffff16610d679190612c37565b92506101000a81548161ffff021916908361ffff1602179055508080610d8c90612d59565b915050610d20565b610b90838383604051806020016040528060008152506116a6565b6006546001600160a01b03163314610dd95760405162461bcd60e51b81526004016107dc90612ab9565b8051610dec9060089060208401906124a6565b5050565b6000818152600260205260408120546001600160a01b0316806106cf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107dc565b60026007541415610e8a5760405162461bcd60e51b81526004016107dc90612bb9565b600260075560145460ff16610eb15760405162461bcd60e51b81526004016107dc90612b25565b60095461019090610ed19060ff861690600160201b900461ffff16612c37565b61ffff161115610ef35760405162461bcd60e51b81526004016107dc90612a84565b60095460c890610f0d90859062010000900460ff16612c75565b60ff161115610f2e5760405162461bcd60e51b81526004016107dc90612bf0565b6013543490610f409060ff8616611f11565b1115610f5e5760405162461bcd60e51b81526004016107dc90612a4d565b33600090815260116020526040902054600290610f7f90859060ff16612c75565b60ff161115610fc35760405162461bcd60e51b815260206004820152601060248201526f191036b4b73a399036b0bc34b6bab69760811b60448201526064016107dc565b600033604051602001610fd6919061294f565b60405160208183030381529060405280519060200120905061102f83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150849050611c08565b61104b5760405162461bcd60e51b81526004016107dc90612aee565b60005b8460ff168110156110fc576009546110789033906109f090600160201b900461ffff166001612c37565b6001600960048282829054906101000a900461ffff166110989190612c37565b92506101000a81548161ffff021916908361ffff1602179055506001600960028282829054906101000a900460ff166110d19190612c75565b92506101000a81548160ff021916908360ff16021790555080806110f490612d59565b91505061104e565b50336000908152601160205260408120805486929061111f90849060ff16612c75565b92506101000a81548160ff021916908360ff160217905550506001600781905550505050565b6008805461115290612d1e565b80601f016020809104026020016040519081016040528092919081815260200182805461117e90612d1e565b80156111cb5780601f106111a0576101008083540402835291602001916111cb565b820191906000526020600020905b8154815290600101906020018083116111ae57829003601f168201915b505050505081565b60006001600160a01b03821661123e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107dc565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146112845760405162461bcd60e51b81526004016107dc90612ab9565b61128e6000611f24565b565b600260075414156112b35760405162461bcd60e51b81526004016107dc90612bb9565b6002600755601454610100900460ff166112df5760405162461bcd60e51b81526004016107dc90612b25565b600954610190906112ff9060ff841690600160201b900461ffff16612c37565b61ffff1611156113215760405162461bcd60e51b81526004016107dc90612a84565b60135434906113339060ff8416611f11565b11156113515760405162461bcd60e51b81526004016107dc90612a4d565b60005b8160ff168110156113cb5760095461137e9033906109f090600160201b900461ffff166001612c37565b6001600960048282829054906101000a900461ffff1661139e9190612c37565b92506101000a81548161ffff021916908361ffff16021790555080806113c390612d59565b915050611354565b50506001600755565b6060600180546106e490612d1e565b600260075414156114065760405162461bcd60e51b81526004016107dc90612bb9565b600260075560145460ff1661142d5760405162461bcd60e51b81526004016107dc90612b25565b6009546101909061144d9060ff861690600160201b900461ffff16612c37565b61ffff16111561146f5760405162461bcd60e51b81526004016107dc90612a84565b60095460c89061148990859062010000900460ff16612c75565b60ff1611156114aa5760405162461bcd60e51b81526004016107dc90612bf0565b60135434906114bc9060ff8616611f11565b11156114da5760405162461bcd60e51b81526004016107dc90612a4d565b336000908152601060205260409020546001906114fb90859060ff16612c75565b60ff16111561153f5760405162461bcd60e51b815260206004820152601060248201526f199036b4b73a399036b0bc34b6bab69760811b60448201526064016107dc565b600033604051602001611552919061294f565b6040516020818303038152906040528051906020012090506115ab83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c549150849050611c08565b6115c75760405162461bcd60e51b81526004016107dc90612aee565b60005b8460ff16811015611678576009546115f49033906109f090600160201b900461ffff166001612c37565b6001600960048282829054906101000a900461ffff166116149190612c37565b92506101000a81548161ffff021916908361ffff1602179055506001600960028282829054906101000a900460ff1661164d9190612c75565b92506101000a81548160ff021916908360ff160217905550808061167090612d59565b9150506115ca565b50336000908152601060205260408120805486929061111f90849060ff16612c75565b610dec338383611f76565b6116b03383611ca6565b6116cc5760405162461bcd60e51b81526004016107dc90612b68565b6116d884848484612045565b50505050565b6006546001600160a01b031633146117085760405162461bcd60e51b81526004016107dc90612ab9565b6014805460ff1916911515919091179055565b6060611725612078565b61172e83612087565b60405160200161173f92919061296c565b6040516020818303038152906040529050919050565b600e5460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b1580156117a257600080fd5b505afa1580156117b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117da9190612836565b6001600160a01b031614156117f35760019150506106cf565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600260075414156118485760405162461bcd60e51b81526004016107dc90612bb9565b600260075560145460ff1661186f5760405162461bcd60e51b81526004016107dc90612b25565b6009546101909061188f9060ff861690600160201b900461ffff16612c37565b61ffff1611156118b15760405162461bcd60e51b81526004016107dc90612a84565b60095460c8906118cc9085906301000000900460ff16612c75565b60ff16111561192c5760405162461bcd60e51b815260206004820152602660248201527f4e75742077686974656c697374206d696e74696e6720686173206265656e206360448201526530b83832b21760d11b60648201526084016107dc565b601354349061193e9060ff8616611f11565b111561195c5760405162461bcd60e51b81526004016107dc90612a4d565b336000908152600f602052604090205460039061197d90859060ff16612c75565b60ff1611156119c15760405162461bcd60e51b815260206004820152601060248201526f199036b4b73a399036b0bc34b6bab69760811b60448201526064016107dc565b6000336040516020016119d4919061294f565b604051602081830303815290604052805190602001209050611a2d83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a549150849050611c08565b611a495760405162461bcd60e51b81526004016107dc90612aee565b60005b8460ff16811015611afa57600954611a769033906109f090600160201b900461ffff166001612c37565b6001600960048282829054906101000a900461ffff16611a969190612c37565b92506101000a81548161ffff021916908361ffff1602179055506001600960038282829054906101000a900460ff16611acf9190612c75565b92506101000a81548160ff021916908360ff1602179055508080611af290612d59565b915050611a4c565b50336000908152600f60205260408120805486929061111f90849060ff16612c75565b6006546001600160a01b03163314611b475760405162461bcd60e51b81526004016107dc90612ab9565b6001600160a01b038116611bac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107dc565b611bb581611f24565b50565b60006001600160e01b031982166380ac58cd60e01b1480611be957506001600160e01b03198216635b5e139f60e01b145b806106cf57506301ffc9a760e01b6001600160e01b03198316146106cf565b600082611c1585846121b0565b14949350505050565b610dec828260405180602001604052806000815250612224565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c6d82610df0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611d1f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107dc565b6000611d2a83610df0565b9050806001600160a01b0316846001600160a01b03161480611d655750836001600160a01b0316611d5a84610767565b6001600160a01b0316145b8061181d575061181d8185611755565b826001600160a01b0316611d8882610df0565b6001600160a01b031614611dec5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016107dc565b6001600160a01b038216611e4e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107dc565b611e59600082611c38565b6001600160a01b0383166000908152600360205260408120805460019290611e82908490612cdb565b90915550506001600160a01b0382166000908152600360205260408120805460019290611eb0908490612c5d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611f1d8284612cbc565b9392505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611fd85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107dc565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612050848484611d75565b61205c84848484612257565b6116d85760405162461bcd60e51b81526004016107dc906129fb565b6060600880546106e490612d1e565b6060816120ab5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156120d557806120bf81612d59565b91506120ce9050600a83612c9a565b91506120af565b60008167ffffffffffffffff8111156120f0576120f0612da0565b6040519080825280601f01601f19166020018201604052801561211a576020820181803683370190505b509050815b85156121a757612130600182612cdb565b9050600061213f600a88612c9a565b61214a90600a612cbc565b6121549088612cdb565b61215f906030612c75565b905060008160f81b90508084848151811061217c5761217c612d8a565b60200101906001600160f81b031916908160001a90535061219e600a89612c9a565b9750505061211f565b50949350505050565b600081815b845181101561221c5760008582815181106121d2576121d2612d8a565b602002602001015190508083116121f85760008381526020829052604090209250612209565b600081815260208490526040902092505b508061221481612d59565b9150506121b5565b509392505050565b61222e8383612364565b61223b6000848484612257565b610b905760405162461bcd60e51b81526004016107dc906129fb565b60006001600160a01b0384163b1561235957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061229b9033908990889088906004016129ab565b602060405180830381600087803b1580156122b557600080fd5b505af19250505080156122e5575060408051601f3d908101601f191682019092526122e291810190612819565b60015b61233f573d808015612313576040519150601f19603f3d011682016040523d82523d6000602084013e612318565b606091505b5080516123375760405162461bcd60e51b81526004016107dc906129fb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061181d565b506001949350505050565b6001600160a01b0382166123ba5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107dc565b6000818152600260205260409020546001600160a01b03161561241f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107dc565b6001600160a01b0382166000908152600360205260408120805460019290612448908490612c5d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546124b290612d1e565b90600052602060002090601f0160209004810192826124d4576000855561251a565b82601f106124ed57805160ff191683800117855561251a565b8280016001018555821561251a579182015b8281111561251a5782518255916020019190600101906124ff565b5061252692915061252a565b5090565b5b80821115612526576000815560010161252b565b600067ffffffffffffffff8084111561255a5761255a612da0565b604051601f8501601f19908116603f0116810190828211818310171561258257612582612da0565b8160405280935085815286868601111561259b57600080fd5b858560208301376000602087830101525050509392505050565b60008083601f8401126125c757600080fd5b50813567ffffffffffffffff8111156125df57600080fd5b6020830191508360208260051b85010111156125fa57600080fd5b9250929050565b8035801515811461261157600080fd5b919050565b803560ff8116811461261157600080fd5b60006020828403121561263957600080fd5b8135611f1d81612db6565b6000806040838503121561265757600080fd5b823561266281612db6565b9150602083013561267281612db6565b809150509250929050565b60008060006060848603121561269257600080fd5b833561269d81612db6565b925060208401356126ad81612db6565b929592945050506040919091013590565b600080600080608085870312156126d457600080fd5b84356126df81612db6565b935060208501356126ef81612db6565b925060408501359150606085013567ffffffffffffffff81111561271257600080fd5b8501601f8101871361272357600080fd5b6127328782356020840161253f565b91505092959194509250565b6000806040838503121561275157600080fd5b823561275c81612db6565b915061276a60208401612601565b90509250929050565b6000806040838503121561278657600080fd5b823561279181612db6565b946020939093013593505050565b600080602083850312156127b257600080fd5b823567ffffffffffffffff8111156127c957600080fd5b6127d5858286016125b5565b90969095509350505050565b6000602082840312156127f357600080fd5b611f1d82612601565b60006020828403121561280e57600080fd5b8135611f1d81612dcb565b60006020828403121561282b57600080fd5b8151611f1d81612dcb565b60006020828403121561284857600080fd5b8151611f1d81612db6565b60006020828403121561286557600080fd5b813567ffffffffffffffff81111561287c57600080fd5b8201601f8101841361288d57600080fd5b61181d8482356020840161253f565b6000602082840312156128ae57600080fd5b5035919050565b6000602082840312156128c757600080fd5b611f1d82612616565b6000806000604084860312156128e557600080fd5b6128ee84612616565b9250602084013567ffffffffffffffff81111561290a57600080fd5b612916868287016125b5565b9497909650939450505050565b6000815180845261293b816020860160208601612cf2565b601f01601f19169290920160200192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b6000835161297e818460208801612cf2565b835190830190612992818360208801612cf2565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129de90830184612923565b9695505050505050565b602081526000611f1d6020830184612923565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252818101527f507572636861736520776f756c6420657863656564206d617820737570706c79604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526017908201527f41646472657373206e6f742077686974656c6973746564000000000000000000604082015260600190565b60208082526023908201527f57686974656c697374206d696e74696e672069736e277420616c6c6f776564206040820152621e595d60ea1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526027908201527f446f67652077686974656c697374206d696e74696e6720686173206265656e2060408201526631b0b83832b21760c91b606082015260800190565b600061ffff808316818516808303821115612c5457612c54612d74565b01949350505050565b60008219821115612c7057612c70612d74565b500190565b600060ff821660ff84168060ff03821115612c9257612c92612d74565b019392505050565b600082612cb757634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612cd657612cd6612d74565b500290565b600082821015612ced57612ced612d74565b500390565b60005b83811015612d0d578181015183820152602001612cf5565b838111156116d85750506000910152565b600181811c90821680612d3257607f821691505b60208210811415612d5357634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612d6d57612d6d612d74565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611bb557600080fd5b6001600160e01b031981168114611bb557600080fdfea264697066735822122062196b662016e68df93ed70d60903261b57d135a89e6943e60bab062b069e18364736f6c6343000807003368747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f666f756e646572732d746f6b656e2f466f756e646572732f4a736f6e2f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

Deployed Bytecode

0x60806040526004361061020f5760003560e01c80636992d22911610118578063a22cb465116100a0578063ca79bee81161006f578063ca79bee814610611578063e985e9c514610641578063eca8851114610661578063f2fde38b14610674578063fdf109b41461069457600080fd5b8063a22cb46514610591578063b88d4fde146105b1578063c40542ec146105d1578063c87b56dd146105f157600080fd5b8063715018a6116100e7578063715018a614610523578063858e83b5146105385780638da5cb5b1461054b57806395d89b41146105695780639c55136c1461057e57600080fd5b80636992d229146104b35780636b449be3146104cd5780636c0360eb146104e057806370a08231146104f557600080fd5b8063254a47371161019b57806353ac010a1161016a57806353ac010a146103e257806355f804b3146104015780635e7d720d146104215780636352211e146104635780636742fa331461048357600080fd5b8063254a47371461036d5780633ccfd60b1461038d57806340c10f19146103a257806342842e0e146103c257600080fd5b80630928e13d116101e25780630928e13d146102c35780630929b59d146102e5578063095ea7b3146102f857806318160ddd1461031857806323b872dd1461034d57600080fd5b806301ffc9a714610214578063023bc2ba1461024957806306fdde0314610269578063081812fc1461028b575b600080fd5b34801561022057600080fd5b5061023461022f3660046127fc565b6106c4565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b506014546102349062010000900460ff1681565b34801561027557600080fd5b5061027e6106d5565b60405161024091906129e8565b34801561029757600080fd5b506102ab6102a636600461289c565b610767565b6040516001600160a01b039091168152602001610240565b3480156102cf57600080fd5b506102e36102de3660046127e1565b610801565b005b6102e36102f336600461279f565b610847565b34801561030457600080fd5b506102e3610313366004612773565b610a7f565b34801561032457600080fd5b5060095461033a90600160201b900461ffff1681565b60405161ffff9091168152602001610240565b34801561035957600080fd5b506102e361036836600461267d565b610b95565b34801561037957600080fd5b506102e36103883660046127e1565b610bc6565b34801561039957600080fd5b506102e3610c0a565b3480156103ae57600080fd5b506102e36103bd366004612773565b610c79565b3480156103ce57600080fd5b506102e36103dd36600461267d565b610d94565b3480156103ee57600080fd5b5060145461023490610100900460ff1681565b34801561040d57600080fd5b506102e361041c366004612853565b610daf565b34801561042d57600080fd5b5061045161043c366004612627565b600f6020526000908152604090205460ff1681565b60405160ff9091168152602001610240565b34801561046f57600080fd5b506102ab61047e36600461289c565b610df0565b34801561048f57600080fd5b5061045161049e366004612627565b60116020526000908152604090205460ff1681565b3480156104bf57600080fd5b506014546102349060ff1681565b6102e36104db3660046128d0565b610e67565b3480156104ec57600080fd5b5061027e611145565b34801561050157600080fd5b50610515610510366004612627565b6111d3565b604051908152602001610240565b34801561052f57600080fd5b506102e361125a565b6102e36105463660046128b5565b611290565b34801561055757600080fd5b506006546001600160a01b03166102ab565b34801561057557600080fd5b5061027e6113d4565b6102e361058c3660046128d0565b6113e3565b34801561059d57600080fd5b506102e36105ac36600461273e565b61169b565b3480156105bd57600080fd5b506102e36105cc3660046126be565b6116a6565b3480156105dd57600080fd5b506102e36105ec3660046127e1565b6116de565b3480156105fd57600080fd5b5061027e61060c36600461289c565b61171b565b34801561061d57600080fd5b5061045161062c366004612627565b60106020526000908152604090205460ff1681565b34801561064d57600080fd5b5061023461065c366004612644565b611755565b6102e361066f3660046128d0565b611825565b34801561068057600080fd5b506102e361068f366004612627565b611b1d565b3480156106a057600080fd5b506104516106af366004612627565b60126020526000908152604090205460ff1681565b60006106cf82611bb8565b92915050565b6060600080546106e490612d1e565b80601f016020809104026020016040519081016040528092919081815260200182805461071090612d1e565b801561075d5780601f106107325761010080835404028352916020019161075d565b820191906000526020600020905b81548152906001019060200180831161074057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107e55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6006546001600160a01b0316331461082b5760405162461bcd60e51b81526004016107dc90612ab9565b60148054911515620100000262ff000019909216919091179055565b6002600754141561086a5760405162461bcd60e51b81526004016107dc90612bb9565b600260075560145462010000900460ff166108975760405162461bcd60e51b81526004016107dc90612b25565b600954610190906108b490600160201b900461ffff166001612c37565b61ffff1611156108d65760405162461bcd60e51b81526004016107dc90612a84565b3460135411156108f85760405162461bcd60e51b81526004016107dc90612a4d565b3360009081526012602052604090205460ff16156109495760405162461bcd60e51b815260206004820152600e60248201526d13585e1a5b5d5b480c481b5a5b9d60921b60448201526064016107dc565b60003360405160200161095c919061294f565b6040516020818303038152906040528051906020012090506109b583838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d549150849050611c08565b6109d15760405162461bcd60e51b81526004016107dc90612aee565b6009546109f99033906109f090600160201b900461ffff166001612c37565b61ffff16611c1e565b6001600960048282829054906101000a900461ffff16610a199190612c37565b825461ffff9182166101009390930a928302919092021990911617905550336000908152601260205260408120805460019290610a5a90849060ff16612c75565b92506101000a81548160ff021916908360ff1602179055505060016007819055505050565b6000610a8a82610df0565b9050806001600160a01b0316836001600160a01b03161415610af85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107dc565b336001600160a01b0382161480610b145750610b148133611755565b610b865760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107dc565b610b908383611c38565b505050565b610b9f3382611ca6565b610bbb5760405162461bcd60e51b81526004016107dc90612b68565b610b90838383611d75565b6006546001600160a01b03163314610bf05760405162461bcd60e51b81526004016107dc90612ab9565b601480549115156101000261ff0019909216919091179055565b6006546001600160a01b03163314610c345760405162461bcd60e51b81526004016107dc90612ab9565b60405147907367bcee2c58bcb26feeeb7bb084605b508bb5542590819083156108fc029084906000818181858888f19350505050158015610b90573d6000803e3d6000fd5b6006546001600160a01b03163314610ca35760405162461bcd60e51b81526004016107dc90612ab9565b60095461ffff80821691610cc191600160201b909104166001612c37565b61ffff1610610d1d5760405162461bcd60e51b815260206004820152602260248201527f416c6c206e757473206861766520616c7265616479206265656e206d696e7465604482015261642160f01b60648201526084016107dc565b60005b81811015610b9057600954610d479084906109f090600160201b900461ffff166001612c37565b6001600960048282829054906101000a900461ffff16610d679190612c37565b92506101000a81548161ffff021916908361ffff1602179055508080610d8c90612d59565b915050610d20565b610b90838383604051806020016040528060008152506116a6565b6006546001600160a01b03163314610dd95760405162461bcd60e51b81526004016107dc90612ab9565b8051610dec9060089060208401906124a6565b5050565b6000818152600260205260408120546001600160a01b0316806106cf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107dc565b60026007541415610e8a5760405162461bcd60e51b81526004016107dc90612bb9565b600260075560145460ff16610eb15760405162461bcd60e51b81526004016107dc90612b25565b60095461019090610ed19060ff861690600160201b900461ffff16612c37565b61ffff161115610ef35760405162461bcd60e51b81526004016107dc90612a84565b60095460c890610f0d90859062010000900460ff16612c75565b60ff161115610f2e5760405162461bcd60e51b81526004016107dc90612bf0565b6013543490610f409060ff8616611f11565b1115610f5e5760405162461bcd60e51b81526004016107dc90612a4d565b33600090815260116020526040902054600290610f7f90859060ff16612c75565b60ff161115610fc35760405162461bcd60e51b815260206004820152601060248201526f191036b4b73a399036b0bc34b6bab69760811b60448201526064016107dc565b600033604051602001610fd6919061294f565b60405160208183030381529060405280519060200120905061102f83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150849050611c08565b61104b5760405162461bcd60e51b81526004016107dc90612aee565b60005b8460ff168110156110fc576009546110789033906109f090600160201b900461ffff166001612c37565b6001600960048282829054906101000a900461ffff166110989190612c37565b92506101000a81548161ffff021916908361ffff1602179055506001600960028282829054906101000a900460ff166110d19190612c75565b92506101000a81548160ff021916908360ff16021790555080806110f490612d59565b91505061104e565b50336000908152601160205260408120805486929061111f90849060ff16612c75565b92506101000a81548160ff021916908360ff160217905550506001600781905550505050565b6008805461115290612d1e565b80601f016020809104026020016040519081016040528092919081815260200182805461117e90612d1e565b80156111cb5780601f106111a0576101008083540402835291602001916111cb565b820191906000526020600020905b8154815290600101906020018083116111ae57829003601f168201915b505050505081565b60006001600160a01b03821661123e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107dc565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146112845760405162461bcd60e51b81526004016107dc90612ab9565b61128e6000611f24565b565b600260075414156112b35760405162461bcd60e51b81526004016107dc90612bb9565b6002600755601454610100900460ff166112df5760405162461bcd60e51b81526004016107dc90612b25565b600954610190906112ff9060ff841690600160201b900461ffff16612c37565b61ffff1611156113215760405162461bcd60e51b81526004016107dc90612a84565b60135434906113339060ff8416611f11565b11156113515760405162461bcd60e51b81526004016107dc90612a4d565b60005b8160ff168110156113cb5760095461137e9033906109f090600160201b900461ffff166001612c37565b6001600960048282829054906101000a900461ffff1661139e9190612c37565b92506101000a81548161ffff021916908361ffff16021790555080806113c390612d59565b915050611354565b50506001600755565b6060600180546106e490612d1e565b600260075414156114065760405162461bcd60e51b81526004016107dc90612bb9565b600260075560145460ff1661142d5760405162461bcd60e51b81526004016107dc90612b25565b6009546101909061144d9060ff861690600160201b900461ffff16612c37565b61ffff16111561146f5760405162461bcd60e51b81526004016107dc90612a84565b60095460c89061148990859062010000900460ff16612c75565b60ff1611156114aa5760405162461bcd60e51b81526004016107dc90612bf0565b60135434906114bc9060ff8616611f11565b11156114da5760405162461bcd60e51b81526004016107dc90612a4d565b336000908152601060205260409020546001906114fb90859060ff16612c75565b60ff16111561153f5760405162461bcd60e51b815260206004820152601060248201526f199036b4b73a399036b0bc34b6bab69760811b60448201526064016107dc565b600033604051602001611552919061294f565b6040516020818303038152906040528051906020012090506115ab83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c549150849050611c08565b6115c75760405162461bcd60e51b81526004016107dc90612aee565b60005b8460ff16811015611678576009546115f49033906109f090600160201b900461ffff166001612c37565b6001600960048282829054906101000a900461ffff166116149190612c37565b92506101000a81548161ffff021916908361ffff1602179055506001600960028282829054906101000a900460ff1661164d9190612c75565b92506101000a81548160ff021916908360ff160217905550808061167090612d59565b9150506115ca565b50336000908152601060205260408120805486929061111f90849060ff16612c75565b610dec338383611f76565b6116b03383611ca6565b6116cc5760405162461bcd60e51b81526004016107dc90612b68565b6116d884848484612045565b50505050565b6006546001600160a01b031633146117085760405162461bcd60e51b81526004016107dc90612ab9565b6014805460ff1916911515919091179055565b6060611725612078565b61172e83612087565b60405160200161173f92919061296c565b6040516020818303038152906040529050919050565b600e5460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b1580156117a257600080fd5b505afa1580156117b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117da9190612836565b6001600160a01b031614156117f35760019150506106cf565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600260075414156118485760405162461bcd60e51b81526004016107dc90612bb9565b600260075560145460ff1661186f5760405162461bcd60e51b81526004016107dc90612b25565b6009546101909061188f9060ff861690600160201b900461ffff16612c37565b61ffff1611156118b15760405162461bcd60e51b81526004016107dc90612a84565b60095460c8906118cc9085906301000000900460ff16612c75565b60ff16111561192c5760405162461bcd60e51b815260206004820152602660248201527f4e75742077686974656c697374206d696e74696e6720686173206265656e206360448201526530b83832b21760d11b60648201526084016107dc565b601354349061193e9060ff8616611f11565b111561195c5760405162461bcd60e51b81526004016107dc90612a4d565b336000908152600f602052604090205460039061197d90859060ff16612c75565b60ff1611156119c15760405162461bcd60e51b815260206004820152601060248201526f199036b4b73a399036b0bc34b6bab69760811b60448201526064016107dc565b6000336040516020016119d4919061294f565b604051602081830303815290604052805190602001209050611a2d83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a549150849050611c08565b611a495760405162461bcd60e51b81526004016107dc90612aee565b60005b8460ff16811015611afa57600954611a769033906109f090600160201b900461ffff166001612c37565b6001600960048282829054906101000a900461ffff16611a969190612c37565b92506101000a81548161ffff021916908361ffff1602179055506001600960038282829054906101000a900460ff16611acf9190612c75565b92506101000a81548160ff021916908360ff1602179055508080611af290612d59565b915050611a4c565b50336000908152600f60205260408120805486929061111f90849060ff16612c75565b6006546001600160a01b03163314611b475760405162461bcd60e51b81526004016107dc90612ab9565b6001600160a01b038116611bac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107dc565b611bb581611f24565b50565b60006001600160e01b031982166380ac58cd60e01b1480611be957506001600160e01b03198216635b5e139f60e01b145b806106cf57506301ffc9a760e01b6001600160e01b03198316146106cf565b600082611c1585846121b0565b14949350505050565b610dec828260405180602001604052806000815250612224565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c6d82610df0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611d1f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107dc565b6000611d2a83610df0565b9050806001600160a01b0316846001600160a01b03161480611d655750836001600160a01b0316611d5a84610767565b6001600160a01b0316145b8061181d575061181d8185611755565b826001600160a01b0316611d8882610df0565b6001600160a01b031614611dec5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016107dc565b6001600160a01b038216611e4e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107dc565b611e59600082611c38565b6001600160a01b0383166000908152600360205260408120805460019290611e82908490612cdb565b90915550506001600160a01b0382166000908152600360205260408120805460019290611eb0908490612c5d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611f1d8284612cbc565b9392505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611fd85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107dc565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612050848484611d75565b61205c84848484612257565b6116d85760405162461bcd60e51b81526004016107dc906129fb565b6060600880546106e490612d1e565b6060816120ab5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156120d557806120bf81612d59565b91506120ce9050600a83612c9a565b91506120af565b60008167ffffffffffffffff8111156120f0576120f0612da0565b6040519080825280601f01601f19166020018201604052801561211a576020820181803683370190505b509050815b85156121a757612130600182612cdb565b9050600061213f600a88612c9a565b61214a90600a612cbc565b6121549088612cdb565b61215f906030612c75565b905060008160f81b90508084848151811061217c5761217c612d8a565b60200101906001600160f81b031916908160001a90535061219e600a89612c9a565b9750505061211f565b50949350505050565b600081815b845181101561221c5760008582815181106121d2576121d2612d8a565b602002602001015190508083116121f85760008381526020829052604090209250612209565b600081815260208490526040902092505b508061221481612d59565b9150506121b5565b509392505050565b61222e8383612364565b61223b6000848484612257565b610b905760405162461bcd60e51b81526004016107dc906129fb565b60006001600160a01b0384163b1561235957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061229b9033908990889088906004016129ab565b602060405180830381600087803b1580156122b557600080fd5b505af19250505080156122e5575060408051601f3d908101601f191682019092526122e291810190612819565b60015b61233f573d808015612313576040519150601f19603f3d011682016040523d82523d6000602084013e612318565b606091505b5080516123375760405162461bcd60e51b81526004016107dc906129fb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061181d565b506001949350505050565b6001600160a01b0382166123ba5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107dc565b6000818152600260205260409020546001600160a01b03161561241f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107dc565b6001600160a01b0382166000908152600360205260408120805460019290612448908490612c5d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546124b290612d1e565b90600052602060002090601f0160209004810192826124d4576000855561251a565b82601f106124ed57805160ff191683800117855561251a565b8280016001018555821561251a579182015b8281111561251a5782518255916020019190600101906124ff565b5061252692915061252a565b5090565b5b80821115612526576000815560010161252b565b600067ffffffffffffffff8084111561255a5761255a612da0565b604051601f8501601f19908116603f0116810190828211818310171561258257612582612da0565b8160405280935085815286868601111561259b57600080fd5b858560208301376000602087830101525050509392505050565b60008083601f8401126125c757600080fd5b50813567ffffffffffffffff8111156125df57600080fd5b6020830191508360208260051b85010111156125fa57600080fd5b9250929050565b8035801515811461261157600080fd5b919050565b803560ff8116811461261157600080fd5b60006020828403121561263957600080fd5b8135611f1d81612db6565b6000806040838503121561265757600080fd5b823561266281612db6565b9150602083013561267281612db6565b809150509250929050565b60008060006060848603121561269257600080fd5b833561269d81612db6565b925060208401356126ad81612db6565b929592945050506040919091013590565b600080600080608085870312156126d457600080fd5b84356126df81612db6565b935060208501356126ef81612db6565b925060408501359150606085013567ffffffffffffffff81111561271257600080fd5b8501601f8101871361272357600080fd5b6127328782356020840161253f565b91505092959194509250565b6000806040838503121561275157600080fd5b823561275c81612db6565b915061276a60208401612601565b90509250929050565b6000806040838503121561278657600080fd5b823561279181612db6565b946020939093013593505050565b600080602083850312156127b257600080fd5b823567ffffffffffffffff8111156127c957600080fd5b6127d5858286016125b5565b90969095509350505050565b6000602082840312156127f357600080fd5b611f1d82612601565b60006020828403121561280e57600080fd5b8135611f1d81612dcb565b60006020828403121561282b57600080fd5b8151611f1d81612dcb565b60006020828403121561284857600080fd5b8151611f1d81612db6565b60006020828403121561286557600080fd5b813567ffffffffffffffff81111561287c57600080fd5b8201601f8101841361288d57600080fd5b61181d8482356020840161253f565b6000602082840312156128ae57600080fd5b5035919050565b6000602082840312156128c757600080fd5b611f1d82612616565b6000806000604084860312156128e557600080fd5b6128ee84612616565b9250602084013567ffffffffffffffff81111561290a57600080fd5b612916868287016125b5565b9497909650939450505050565b6000815180845261293b816020860160208601612cf2565b601f01601f19169290920160200192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b6000835161297e818460208801612cf2565b835190830190612992818360208801612cf2565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129de90830184612923565b9695505050505050565b602081526000611f1d6020830184612923565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252818101527f507572636861736520776f756c6420657863656564206d617820737570706c79604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526017908201527f41646472657373206e6f742077686974656c6973746564000000000000000000604082015260600190565b60208082526023908201527f57686974656c697374206d696e74696e672069736e277420616c6c6f776564206040820152621e595d60ea1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526027908201527f446f67652077686974656c697374206d696e74696e6720686173206265656e2060408201526631b0b83832b21760c91b606082015260800190565b600061ffff808316818516808303821115612c5457612c54612d74565b01949350505050565b60008219821115612c7057612c70612d74565b500190565b600060ff821660ff84168060ff03821115612c9257612c92612d74565b019392505050565b600082612cb757634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612cd657612cd6612d74565b500290565b600082821015612ced57612ced612d74565b500390565b60005b83811015612d0d578181015183820152602001612cf5565b838111156116d85750506000910152565b600181811c90821680612d3257607f821691505b60208210811415612d5357634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612d6d57612d6d612d74565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611bb557600080fd5b6001600160e01b031981168114611bb557600080fdfea264697066735822122062196b662016e68df93ed70d60903261b57d135a89e6943e60bab062b069e18364736f6c63430008070033

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.