ETH Price: $3,145.93 (+0.85%)
Gas: 3 Gwei

Token

Poppables (POP)
 

Overview

Max Total Supply

422 POP

Holders

169

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
lowsleazy.eth
Balance
1 POP
0x38567482053831601c81e0f710cfbd75ca89a1d6
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:
Poppables

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

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

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

contract Poppables is
    ERC721,
    ERC721Enumerable,
    Ownable,
    ReentrancyGuard,
    VRFConsumerBase,
    AccessControl
{
    using Address for address;
    using SafeMath for uint256;

    event ParticipantPresaleListMinted(bool state);
    event PresaleListMinted(bool state);
    event SaleListNFTMinted(bool state);
    event NFTRandomnessRequest(uint256 timestamp);
    event NFTRandomnessFullfill(uint256 timestamp);
    event NFTChainlinkError(uint256 timestamp, bytes32 requestId);
    event PermanentURI(string _value, uint256 indexed _id);

    bool public presaleParticipantIsActive = false;
    bool public presaleIsActive = false;
    bool public saleIsActive = false;

    bytes32 public presaleParticipantRoot;
    bytes32 public presaleRoot;

    uint256 public maxSupply;
    uint256 public maxMintableSupply;
    uint256 public maxAirdropSupply;
    uint256 public price;

    uint256 public saleNFT;
    uint256 public freeNFT;

    address private account1;
    address private account2;
    address private account3;
    address private account4;

    bool private _requestedVRF = false;
    uint256 private _seed = 0;
    bytes32 private _keyHash;
    uint256 private _fee;

    string private _contractURI;
    string private _tokenBaseURI;

    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

    mapping(address => uint256) private presaleParticipantMinted;
    mapping(address => uint256) private presaleMinted;

    uint256 private totalAirDrop = 0;

    mapping(uint256 => string) private tokenURIs;

    constructor(
        address _account1,
        address _account2,
        address _account3,
        address _account4,
        address adminRoleAdress
    )
        ERC721("Poppables", "POP")
        VRFConsumerBase(
            0xf0d54349aDdcf704F77AE15b96510dEA15cb7952,
            0x514910771AF9Ca656af840dff83E8264EcF986CA
        )
    {
        price = 21000000000000000; //0.021 ETH
        maxAirdropSupply = 350;
        maxMintableSupply = 9671;
        maxSupply = 10021;

        account1 = _account1;
        account2 = _account2;
        account3 = _account3;
        account4 = _account4;

        _contractURI = "https://www.poppables.io/opensea.json";
        _tokenBaseURI = "https://poppables.mypinata.cloud/ipfs/bafybeiecgmnencv7lujl5idd52lyymu6ehkd3qxg34lp33xtprqedzbtie/";

        _keyHash = 0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445;
        _fee = 2 * 10**18; // 2 LINK

        //dev admin
        _setupRole(ADMIN_ROLE, adminRoleAdress);

        //contract owner
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);

        saleNFT = 20;
        freeNFT = 1;
    }

    modifier presaleMintable(uint256 quantity) {
        require(
            totalSupply().add(quantity) <= maxMintableSupply,
            "The qty exceeds maximum supply"
        );
        _;
    }

    function mintParticipantNFTs(
        address minter,
        uint256 quantity,
        bytes32[] calldata proof
    ) external payable nonReentrant presaleMintable(quantity) returns (bool) {
        require(presaleParticipantIsActive, "presales not active");
        require(quantity >= 1 && quantity < 4, "Wrong quantity");

        bool presaleParticipanList = minterInThePresaleList(proof, minter, 1);

        require(presaleParticipanList, "Not on the presales list");

        require(
            presaleParticipantMinted[msg.sender].add(quantity) <= 3,
            "Limit exceeded"
        );

        // 1 free + 2 additional
        uint256 payableQty = quantity;
        if (payableQty > 0) {
            payableQty = payableQty.sub(1);
        }

        require(msg.value >= price.mul(payableQty), "Not enough ETH");

        for (uint256 i = 0; i < quantity; i++) {
            uint256 mintIndex = totalSupply();
            if (totalSupply() < maxMintableSupply) {
                presaleParticipantMinted[msg.sender] += 1;
                _safeMint(msg.sender, mintIndex);
            }
        }

        emit ParticipantPresaleListMinted(true);

        return true;
    }

    function mintPresaleNFTs(
        address minter,
        uint256 quantity,
        bytes32[] calldata proof
    ) external payable nonReentrant presaleMintable(quantity) returns (bool) {
        require(presaleIsActive, "presales not active");
        require(quantity >= 1 && quantity < 3, "Wrong quantity");

        bool presaleList = minterInThePresaleList(proof, minter, 2);

        require(presaleList, "Not on the presales list");

        require(presaleMinted[msg.sender].add(quantity) <= 3, "limit exceeded");

        // buy 2 additional and get one free
        uint256 mintQty = quantity;
        if (quantity > 1) {
            mintQty = mintQty.add(1);
        }

        require(msg.value >= price.mul(quantity), "Not enough ETH");

        for (uint256 i = 0; i < mintQty; i++) {
            uint256 mintIndex = totalSupply();
            if (totalSupply() < maxMintableSupply) {
                presaleMinted[msg.sender] += 1;
                _safeMint(msg.sender, mintIndex);
            }
        }
        emit PresaleListMinted(true);

        return true;
    }

    function mintSaleNFTs(uint256 quantity)
        external
        payable
        nonReentrant
        returns (bool)
    {
        require(saleIsActive, "Sales is not active");
        require(quantity >= 1 && quantity < 21, "Wrong quantity");

        return mintNFTs(_msgSender(), quantity, false);
    }

    function mintNFTs(
        address minter,
        uint256 quantity,
        bool airDrop
    ) private returns (bool) {
        uint256 mintQty = quantity;
        if (quantity > saleNFT - 1) {
            mintQty = mintQty.add(freeNFT);
        }

        require(
            totalSupply().add(mintQty) <= maxMintableSupply,
            "maximum supply exceeded"
        );

        uint256 total = maxMintableSupply;

        if (airDrop) {
            require(hasRole(ADMIN_ROLE, msg.sender), "Not admin");
            total = maxAirdropSupply;
        } else {
            require(msg.value >= price.mul(quantity), "Not enough ETH");
        }

        for (uint256 i = 0; i < mintQty; i++) {
            uint256 mintIndex = totalSupply();
            if (totalSupply() < total) {
                _safeMint(minter, mintIndex);
            }
        }

        emit SaleListNFTMinted(true);

        return true;
    }

    function minterInThePresaleList(
        bytes32[] memory proof,
        address minter,
        uint256 presaleList
    ) internal view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(minter));

        if (presaleList == 1) {
            return MerkleProof.verify(proof, presaleParticipantRoot, leaf);
        }

        if (presaleList == 2) {
            return MerkleProof.verify(proof, presaleRoot, leaf);
        }

        return false;
    }

    function updateMerkleParticipantRoot(bytes32 _merklePresaleRoot) external {
        require(hasRole(ADMIN_ROLE, msg.sender), "Not admin");
        presaleRoot = _merklePresaleRoot;
    }

    function updatePresaleRoot(bytes32 _merkleParticipantRoot) external {
        require(hasRole(ADMIN_ROLE, msg.sender), "Not admin");
        presaleParticipantRoot = _merkleParticipantRoot;
    }

    function toggleParticipantPresale() external {
        require(hasRole(ADMIN_ROLE, msg.sender), "Not admin");
        presaleParticipantIsActive = !presaleParticipantIsActive;
    }

    function togglePresale() external {
        require(hasRole(ADMIN_ROLE, msg.sender), "Not admin");
        presaleIsActive = !presaleIsActive;
    }

    function toggleSale() external {
        require(hasRole(ADMIN_ROLE, msg.sender), "Not admin");
        saleIsActive = !saleIsActive;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721)
        returns (string memory)
    {
        require(tokenId <= totalSupply(), "Token does not exist");

        return
            string(
                abi.encodePacked(_tokenBaseURI, metadataOf(tokenId), ".json")
            );
    }

    function metadataOf(uint256 tokenId) public view returns (string memory) {
        require(tokenId <= totalSupply(), "Token id invalid");

        //poped token exists
        if (bytes(tokenURIs[tokenId]).length > 0) {
            return tokenURIs[tokenId];
        } else {
            uint256[] memory metaIds = new uint256[](maxSupply + 1);
            uint256 ss = _seed;

            for (uint256 i = 1; i <= maxSupply; i += 1) {
                metaIds[i] = i;
            }

            for (uint256 i = 1; i <= maxSupply; i += 1) {
                uint256 j = (uint256(keccak256(abi.encode(ss, i))) %
                    (maxSupply));
                (metaIds[i], metaIds[j]) = (metaIds[j], metaIds[i]);
            }
            return Strings.toString(metaIds[tokenId]);
        }
    }

    function updateTokenMetadata(uint256 tokenId, string memory tokenUpdatedURI)
        external
    {
        require(hasRole(ADMIN_ROLE, msg.sender), "Not admin");
        tokenURIs[tokenId] = tokenUpdatedURI;
    }

    function requestChainlinkVRF() public {
        require(hasRole(ADMIN_ROLE, msg.sender), "Not admin");
        require(!_requestedVRF, "Already exec");
        require(LINK.balanceOf(address(this)) >= _fee);
        requestRandomness(_keyHash, _fee);
        _requestedVRF = true;
        emit NFTRandomnessRequest(block.timestamp);
    }

    function setSeed(uint256 randomNumber) public {
        require(hasRole(ADMIN_ROLE, msg.sender), "Not admin");
        _requestedVRF = true;
        _seed = randomNumber;
    }

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

        payable(account1).transfer(balance.mul(15).div(100));
        payable(account2).transfer(balance.mul(15).div(100));
        payable(account3).transfer(balance.mul(20).div(100));
        payable(account4).transfer(balance.mul(50).div(100));
    }

    function fulfillRandomness(bytes32 requestId, uint256 randomNumber)
        internal
        override
    {
        if (randomNumber > 0) {
            _seed = randomNumber;
            emit NFTRandomnessFullfill(block.timestamp);
        } else {
            emit NFTChainlinkError(block.timestamp, requestId);
        }
    }

    //emit event for OpenSea to freeze metadata
    function freezeMetadata() public onlyOwner {
        for (uint256 i = 1; i <= totalSupply(); i += 1) {
            emit PermanentURI(tokenURI(i), i);
        }
    }

    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

    function setContractURI(string memory contract_uri) external {
        require(hasRole(ADMIN_ROLE, msg.sender), "Not admin");
        _contractURI = contract_uri;
    }

    function setBaseURI(string memory baseURI) external {
        require(hasRole(ADMIN_ROLE, msg.sender), "Not admin");
        _tokenBaseURI = baseURI;
    }

    function updateSalesQty(uint256 _saleNFT, uint256 _freeNFT) external {
        require(hasRole(ADMIN_ROLE, msg.sender), "Not admin");
        saleNFT = _saleNFT;
        freeNFT = _freeNFT;
    }

    function airdrop(address[] memory _to, uint256 amount) public {
        require(hasRole(ADMIN_ROLE, msg.sender), "Not admin");
        require(
            totalAirDrop + (_to.length * amount) <= maxAirdropSupply,
            "Airdop limit"
        );
        for (uint256 i = 0; i < _to.length; i += 1) {
            mintNFTs(_to[i], amount, true);
        }
    }

    // The following functions are overrides required by Solidity.

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

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

File 2 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 3 of 21 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

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

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

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

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

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

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

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

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

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

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

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

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

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

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

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 21 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 21 : MerkleProof.sol
// SPDX-License-Identifier: MIT

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) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 7 of 21 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 21 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make 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 9 of 21 : VRFConsumerBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constuctor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.)
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBase expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomness the VRF output
   */
  function fulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    internal
    virtual;

  /**
   * @dev In order to keep backwards compatibility we have kept the user
   * seed field around. We remove the use of it because given that the blockhash
   * enters later, it overrides whatever randomness the used seed provides.
   * Given that it adds no security, and can easily lead to misunderstandings,
   * we have removed it from usage and can now provide a simpler API.
   */
  uint256 constant private USER_SEED_PLACEHOLDER = 0;

  /**
   * @notice requestRandomness initiates a request for VRF output given _seed
   *
   * @dev The fulfillRandomness method receives the output, once it's provided
   * @dev by the Oracle, and verified by the vrfCoordinator.
   *
   * @dev The _keyHash must already be registered with the VRFCoordinator, and
   * @dev the _fee must exceed the fee specified during registration of the
   * @dev _keyHash.
   *
   * @dev The _seed parameter is vestigial, and is kept only for API
   * @dev compatibility with older versions. It can't *hurt* to mix in some of
   * @dev your own randomness, here, but it's not necessary because the VRF
   * @dev oracle will mix the hash of the block containing your request into the
   * @dev VRF seed it ultimately uses.
   *
   * @param _keyHash ID of public key against which randomness is generated
   * @param _fee The amount of LINK to send with the request
   *
   * @return requestId unique ID for this request
   *
   * @dev The returned requestId can be used to distinguish responses to
   * @dev concurrent requests. It is passed as the first argument to
   * @dev fulfillRandomness.
   */
  function requestRandomness(
    bytes32 _keyHash,
    uint256 _fee
  )
    internal
    returns (
      bytes32 requestId
    )
  {
    LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER));
    // This is the seed passed to VRFCoordinator. The oracle will mix this with
    // the hash of the block containing this request to obtain the seed/input
    // which is finally passed to the VRF cryptographic machinery.
    uint256 vRFSeed  = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]);
    // nonces[_keyHash] must stay in sync with
    // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
    // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
    // This provides protection against the user repeating their input seed,
    // which would result in a predictable/duplicate output, if multiple such
    // requests appeared in the same block.
    nonces[_keyHash] = nonces[_keyHash] + 1;
    return makeRequestId(_keyHash, vRFSeed);
  }

  LinkTokenInterface immutable internal LINK;
  address immutable private vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 /* keyHash */ => uint256 /* nonce */) private nonces;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   * @param _link address of LINK token contract
   *
   * @dev https://docs.chain.link/docs/link-token-contracts
   */
  constructor(
    address _vrfCoordinator,
    address _link
  ) {
    vrfCoordinator = _vrfCoordinator;
    LINK = LinkTokenInterface(_link);
  }

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    external
  {
    require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
    fulfillRandomness(requestId, randomness);
  }
}

File 10 of 21 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 11 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 13 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 14 of 21 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 15 of 21 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 16 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 17 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 18 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 19 of 21 : LinkTokenInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface LinkTokenInterface {

  function allowance(
    address owner,
    address spender
  )
    external
    view
    returns (
      uint256 remaining
    );

  function approve(
    address spender,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function balanceOf(
    address owner
  )
    external
    view
    returns (
      uint256 balance
    );

  function decimals()
    external
    view
    returns (
      uint8 decimalPlaces
    );

  function decreaseApproval(
    address spender,
    uint256 addedValue
  )
    external
    returns (
      bool success
    );

  function increaseApproval(
    address spender,
    uint256 subtractedValue
  ) external;

  function name()
    external
    view
    returns (
      string memory tokenName
    );

  function symbol()
    external
    view
    returns (
      string memory tokenSymbol
    );

  function totalSupply()
    external
    view
    returns (
      uint256 totalTokensIssued
    );

  function transfer(
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function transferAndCall(
    address to,
    uint256 value,
    bytes calldata data
  )
    external
    returns (
      bool success
    );

  function transferFrom(
    address from,
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

}

File 20 of 21 : VRFRequestIDBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract VRFRequestIDBase {

  /**
   * @notice returns the seed which is actually input to the VRF coordinator
   *
   * @dev To prevent repetition of VRF output due to repetition of the
   * @dev user-supplied seed, that seed is combined in a hash with the
   * @dev user-specific nonce, and the address of the consuming contract. The
   * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
   * @dev the final seed, but the nonce does protect against repetition in
   * @dev requests which are included in a single block.
   *
   * @param _userSeed VRF seed input provided by user
   * @param _requester Address of the requesting contract
   * @param _nonce User-specific nonce at the time of the request
   */
  function makeVRFInputSeed(
    bytes32 _keyHash,
    uint256 _userSeed,
    address _requester,
    uint256 _nonce
  )
    internal
    pure
    returns (
      uint256
    )
  {
    return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
  }

  /**
   * @notice Returns the id for this request
   * @param _keyHash The serviceAgreement ID to be used for this request
   * @param _vRFInputSeed The seed to be passed directly to the VRF
   * @return The id for this request
   *
   * @dev Note that _vRFInputSeed is not the seed passed by the consuming
   * @dev contract, but the one generated by makeVRFInputSeed
   */
  function makeRequestId(
    bytes32 _keyHash,
    uint256 _vRFInputSeed
  )
    internal
    pure
    returns (
      bytes32
    )
  {
    return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
  }
}

File 21 of 21 : IAccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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":"_account1","type":"address"},{"internalType":"address","name":"_account2","type":"address"},{"internalType":"address","name":"_account3","type":"address"},{"internalType":"address","name":"_account4","type":"address"},{"internalType":"address","name":"adminRoleAdress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"requestId","type":"bytes32"}],"name":"NFTChainlinkError","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"NFTRandomnessFullfill","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"NFTRandomnessRequest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"ParticipantPresaleListMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"PresaleListMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"SaleListNFTMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"maxAirdropSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"metadataOf","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintParticipantNFTs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintPresaleNFTs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintSaleNFTs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleParticipantIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleParticipantRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestChainlinkVRF","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contract_uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"randomNumber","type":"uint256"}],"name":"setSeed","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":[],"name":"toggleParticipantPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merklePresaleRoot","type":"bytes32"}],"name":"updateMerkleParticipantRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleParticipantRoot","type":"bytes32"}],"name":"updatePresaleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleNFT","type":"uint256"},{"internalType":"uint256","name":"_freeNFT","type":"uint256"}],"name":"updateSalesQty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenUpdatedURI","type":"string"}],"name":"updateTokenMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052600e805462ffffff19169055601a805460ff60a01b191690556000601b8190556022553480156200003457600080fd5b506040516200450338038062004503833981016040819052620000579162000422565b6040805180820182526009815268506f707061626c657360b81b6020808301918252835180850190945260038452620504f560ec1b90840152815173f0d54349addcf704f77ae15b96510dea15cb79529373514910771af9ca656af840dff83e8264ecf986ca93929091620000cf916000916200035f565b508051620000e59060019060208401906200035f565b50505062000102620000fc6200025560201b60201c565b62000259565b6001600b556001600160a01b0391821660a0528116608052664a9b638448800060145561015e6013556125c7601255612725601155601780546001600160a01b031990811688841617909155601880548216878416179055601980548216868416179055601a8054909116918416919091179055604080516060810190915260258082526200447c60208301398051620001a591601e916020909101906200035f565b506040518060a0016040528060628152602001620044a1606291398051620001d691601f916020909101906200035f565b507faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445601c55671bc16d674ec80000601d55620002337fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582620002ab565b62000240600033620002ab565b505060146015555050600160165550620004cf565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002b78282620002bb565b5050565b6000828152600d602090815260408083206001600160a01b038516845290915290205460ff16620002b7576000828152600d602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200031b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200036d9062000492565b90600052602060002090601f016020900481019282620003915760008555620003dc565b82601f10620003ac57805160ff1916838001178555620003dc565b82800160010185558215620003dc579182015b82811115620003dc578251825591602001919060010190620003bf565b50620003ea929150620003ee565b5090565b5b80821115620003ea5760008155600101620003ef565b80516001600160a01b03811681146200041d57600080fd5b919050565b600080600080600060a086880312156200043b57600080fd5b620004468662000405565b9450620004566020870162000405565b9350620004666040870162000405565b9250620004766060870162000405565b9150620004866080870162000405565b90509295509295909350565b600181811c90821680620004a757607f821691505b60208210811415620004c957634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051613f7962000503600039600081816116680152612bd1015260008181611fd50152612ba20152613f796000f3fe6080604052600436106103765760003560e01c80638da5cb5b116101d1578063c32a50f911610102578063d5abeb01116100a0578063e8a3d4851161006f578063e8a3d4851461097e578063e985e9c514610993578063eb8d2444146109dc578063f2fde38b146109fc57600080fd5b8063d5abeb0114610919578063da17f82a1461092f578063da9b7f0914610944578063e66b18451461096457600080fd5b8063ccc5d847116100dc578063ccc5d847146108af578063d111515d146108c4578063d4cac0a4146108d9578063d547741f146108f957600080fd5b8063c32a50f91461085c578063c7e1a72c1461087c578063c87b56dd1461088f57600080fd5b8063a035b1fe1161016f578063ad80105a11610149578063ad80105a146107f3578063b7002ab414610806578063b88d4fde1461081c578063c204642c1461083c57600080fd5b8063a035b1fe146107a8578063a217fddf146107be578063a22cb465146107d357600080fd5b806393f2667c116101ab57806393f2667c1461074757806394985ddd1461075d57806395d89b411461077d5780639e2019121461079257600080fd5b80638da5cb5b146106e957806391d1485414610707578063938e3d7b1461072757600080fd5b806336568abe116102ab57806370a08231116102495780637d8966e4116102235780637d8966e4146106955780637dee28d2146106aa57806385449697146106bd5780638b93b0f5146106d357600080fd5b806370a082311461063e578063715018a61461065e57806375b238fc1461067357600080fd5b80634f6ccce7116102855780634f6ccce7146105be57806355f804b3146105de5780635b37ff64146105fe5780636352211e1461061e57600080fd5b806336568abe146105695780633ccfd60b1461058957806342842e0e1461059e57600080fd5b806323b872dd116103185780632f2ff15d116102f25780632f2ff15d146104f55780632f745c591461051557806330f72cd414610535578063343937431461055457600080fd5b806323b872dd14610485578063248a9ca3146104a55780632cb2f52e146104d557600080fd5b8063081812fc11610354578063081812fc146103f6578063095ea7b31461042e5780630ef7cc8e1461045057806318160ddd1461047057600080fd5b806301ffc9a71461037b57806304a6c8c9146103b057806306fdde03146103d4575b600080fd5b34801561038757600080fd5b5061039b610396366004613579565b610a1c565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103c660125481565b6040519081526020016103a7565b3480156103e057600080fd5b506103e9610a2d565b6040516103a791906135ee565b34801561040257600080fd5b50610416610411366004613601565b610abf565b6040516001600160a01b0390911681526020016103a7565b34801561043a57600080fd5b5061044e610449366004613631565b610b59565b005b34801561045c57600080fd5b506103e961046b366004613601565b610c6f565b34801561047c57600080fd5b506008546103c6565b34801561049157600080fd5b5061044e6104a036600461365b565b610f14565b3480156104b157600080fd5b506103c66104c0366004613601565b6000908152600d602052604090206001015490565b3480156104e157600080fd5b5061044e6104f0366004613756565b610f45565b34801561050157600080fd5b5061044e61051036600461379d565b610f98565b34801561052157600080fd5b506103c6610530366004613631565b610fbe565b34801561054157600080fd5b50600e5461039b90610100900460ff1681565b34801561056057600080fd5b5061044e611054565b34801561057557600080fd5b5061044e61058436600461379d565b6110a5565b34801561059557600080fd5b5061044e611123565b3480156105aa57600080fd5b5061044e6105b936600461365b565b611274565b3480156105ca57600080fd5b506103c66105d9366004613601565b61128f565b3480156105ea57600080fd5b5061044e6105f93660046137c9565b611322565b34801561060a57600080fd5b5061044e6106193660046137fe565b611369565b34801561062a57600080fd5b50610416610639366004613601565b6113a8565b34801561064a57600080fd5b506103c6610659366004613820565b61141f565b34801561066a57600080fd5b5061044e6114a6565b34801561067f57600080fd5b506103c6600080516020613f2483398151915281565b3480156106a157600080fd5b5061044e6114dc565b61039b6106b8366004613601565b61152f565b3480156106c957600080fd5b506103c660105481565b3480156106df57600080fd5b506103c660135481565b3480156106f557600080fd5b50600a546001600160a01b0316610416565b34801561071357600080fd5b5061039b61072236600461379d565b6115eb565b34801561073357600080fd5b5061044e6107423660046137c9565b611616565b34801561075357600080fd5b506103c6600f5481565b34801561076957600080fd5b5061044e6107783660046137fe565b61165d565b34801561078957600080fd5b506103e96116df565b34801561079e57600080fd5b506103c660155481565b3480156107b457600080fd5b506103c660145481565b3480156107ca57600080fd5b506103c6600081565b3480156107df57600080fd5b5061044e6107ee366004613849565b6116ee565b61039b610801366004613880565b6117b3565b34801561081257600080fd5b506103c660165481565b34801561082857600080fd5b5061044e61083736600461390a565b611aa1565b34801561084857600080fd5b5061044e610857366004613986565b611ad9565b34801561086857600080fd5b5061044e610877366004613601565b611bab565b61039b61088a366004613880565b611bf7565b34801561089b57600080fd5b506103e96108aa366004613601565b611ebd565b3480156108bb57600080fd5b5061044e611f40565b3480156108d057600080fd5b5061044e6120c0565b3480156108e557600080fd5b5061044e6108f4366004613601565b61214b565b34801561090557600080fd5b5061044e61091436600461379d565b612184565b34801561092557600080fd5b506103c660115481565b34801561093b57600080fd5b5061044e6121aa565b34801561095057600080fd5b5061044e61095f366004613601565b6121f2565b34801561097057600080fd5b50600e5461039b9060ff1681565b34801561098a57600080fd5b506103e961222b565b34801561099f57600080fd5b5061039b6109ae366004613a39565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109e857600080fd5b50600e5461039b9062010000900460ff1681565b348015610a0857600080fd5b5061044e610a17366004613820565b61223a565b6000610a27826122d2565b92915050565b606060008054610a3c90613a63565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6890613a63565b8015610ab55780601f10610a8a57610100808354040283529160200191610ab5565b820191906000526020600020905b815481529060010190602001808311610a9857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b3d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b64826113a8565b9050806001600160a01b0316836001600160a01b03161415610bd25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b34565b336001600160a01b0382161480610bee5750610bee81336109ae565b610c605760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b34565b610c6a83836122f7565b505050565b6060610c7a60085490565b821115610cbc5760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881a59081a5b9d985b1a5960821b6044820152606401610b34565b60008281526023602052604081208054610cd590613a63565b90501115610d7b5760008281526023602052604090208054610cf690613a63565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2290613a63565b8015610d6f5780601f10610d4457610100808354040283529160200191610d6f565b820191906000526020600020905b815481529060010190602001808311610d5257829003601f168201915b50505050509050919050565b60006011546001610d8c9190613ab4565b67ffffffffffffffff811115610da457610da4613697565b604051908082528060200260200182016040528015610dcd578160200160208202803683370190505b50601b5490915060015b6011548111610e105780838281518110610df357610df3613acc565b6020908102919091010152610e09600182613ab4565b9050610dd7565b5060015b6011548111610ee45760006011548383604051602001610e3e929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c610e619190613af8565b9050838181518110610e7557610e75613acc565b6020026020010151848381518110610e8f57610e8f613acc565b6020026020010151858481518110610ea957610ea9613acc565b60200260200101868481518110610ec257610ec2613acc565b60209081029190910101919091525250610edd600182613ab4565b9050610e14565b50610f07828581518110610efa57610efa613acc565b6020026020010151612365565b949350505050565b919050565b610f1e3382612463565b610f3a5760405162461bcd60e51b8152600401610b3490613b0c565b610c6a838383612556565b610f5d600080516020613f24833981519152336115eb565b610f795760405162461bcd60e51b8152600401610b3490613b5d565b60008281526023602090815260409091208251610c6a928401906134ca565b6000828152600d6020526040902060010154610fb48133612701565b610c6a8383612765565b6000610fc98361141f565b821061102b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b34565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61106c600080516020613f24833981519152336115eb565b6110885760405162461bcd60e51b8152600401610b3490613b5d565b600e805461ff001981166101009182900460ff1615909102179055565b6001600160a01b03811633146111155760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b34565b61111f82826127eb565b5050565b600a546001600160a01b0316331461114d5760405162461bcd60e51b8152600401610b3490613b80565b60175447906001600160a01b03166108fc611174606461116e85600f612852565b90612865565b6040518115909202916000818181858888f1935050505015801561119c573d6000803e3d6000fd5b506018546001600160a01b03166108fc6111bc606461116e85600f612852565b6040518115909202916000818181858888f193505050501580156111e4573d6000803e3d6000fd5b506019546001600160a01b03166108fc611204606461116e856014612852565b6040518115909202916000818181858888f1935050505015801561122c573d6000803e3d6000fd5b50601a546001600160a01b03166108fc61124c606461116e856032612852565b6040518115909202916000818181858888f1935050505015801561111f573d6000803e3d6000fd5b610c6a83838360405180602001604052806000815250611aa1565b600061129a60085490565b82106112fd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b34565b6008828154811061131057611310613acc565b90600052602060002001549050919050565b61133a600080516020613f24833981519152336115eb565b6113565760405162461bcd60e51b8152600401610b3490613b5d565b805161111f90601f9060208401906134ca565b611381600080516020613f24833981519152336115eb565b61139d5760405162461bcd60e51b8152600401610b3490613b5d565b601591909155601655565b6000818152600260205260408120546001600160a01b031680610a275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b34565b60006001600160a01b03821661148a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b34565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146114d05760405162461bcd60e51b8152600401610b3490613b80565b6114da6000612871565b565b6114f4600080516020613f24833981519152336115eb565b6115105760405162461bcd60e51b8152600401610b3490613b5d565b600e805462ff0000198116620100009182900460ff1615909102179055565b60006002600b5414156115545760405162461bcd60e51b8152600401610b3490613bb5565b6002600b55600e5462010000900460ff166115a75760405162461bcd60e51b815260206004820152601360248201527253616c6573206973206e6f742061637469766560681b6044820152606401610b34565b600182101580156115b85750601582105b6115d45760405162461bcd60e51b8152600401610b3490613bec565b6115e0338360006128c3565b6001600b5592915050565b6000918252600d602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61162e600080516020613f24833981519152336115eb565b61164a5760405162461bcd60e51b8152600401610b3490613b5d565b805161111f90601e9060208401906134ca565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146116d55760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610b34565b61111f8282612a45565b606060018054610a3c90613a63565b6001600160a01b0382163314156117475760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b34565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006002600b5414156117d85760405162461bcd60e51b8152600401610b3490613bb5565b6002600b5560125484906117f5826117ef60085490565b90612abe565b11156118435760405162461bcd60e51b815260206004820152601e60248201527f546865207174792065786365656473206d6178696d756d20737570706c7900006044820152606401610b34565b600e54610100900460ff166118905760405162461bcd60e51b815260206004820152601360248201527270726573616c6573206e6f742061637469766560681b6044820152606401610b34565b600185101580156118a15750600385105b6118bd5760405162461bcd60e51b8152600401610b3490613bec565b60006119008585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508b925060029150612aca9050565b90508061194a5760405162461bcd60e51b8152602060048201526018602482015277139bdd081bdb881d1a19481c1c995cd85b195cc81b1a5cdd60421b6044820152606401610b34565b336000908152602160205260409020546003906119679088612abe565b11156119a65760405162461bcd60e51b815260206004820152600e60248201526d1b1a5b5a5d08195e18d95959195960921b6044820152606401610b34565b8560018111156119be576119bb816001612abe565b90505b6014546119cb9088612852565b3410156119ea5760405162461bcd60e51b8152600401610b3490613c14565b60005b81811015611a57576000611a0060085490565b9050601254611a0e60085490565b1015611a4457336000908152602160205260408120805460019290611a34908490613ab4565b90915550611a4490503382612b45565b5080611a4f81613c3c565b9150506119ed565b50604051600181527fbf65f250232b02925cfad540ad1099ebc32be7ef8606bf04658b8962586da879906020015b60405180910390a1600193505050506001600b55949350505050565b611aab3383612463565b611ac75760405162461bcd60e51b8152600401610b3490613b0c565b611ad384848484612b5f565b50505050565b611af1600080516020613f24833981519152336115eb565b611b0d5760405162461bcd60e51b8152600401610b3490613b5d565b601354818351611b1d9190613c57565b602254611b2a9190613ab4565b1115611b675760405162461bcd60e51b815260206004820152600c60248201526b105a5c991bdc081b1a5b5a5d60a21b6044820152606401610b34565b60005b8251811015610c6a57611b98838281518110611b8857611b88613acc565b60200260200101518360016128c3565b50611ba4600182613ab4565b9050611b6a565b611bc3600080516020613f24833981519152336115eb565b611bdf5760405162461bcd60e51b8152600401610b3490613b5d565b601a805460ff60a01b1916600160a01b179055601b55565b60006002600b541415611c1c5760405162461bcd60e51b8152600401610b3490613bb5565b6002600b556012548490611c33826117ef60085490565b1115611c815760405162461bcd60e51b815260206004820152601e60248201527f546865207174792065786365656473206d6178696d756d20737570706c7900006044820152606401610b34565b600e5460ff16611cc95760405162461bcd60e51b815260206004820152601360248201527270726573616c6573206e6f742061637469766560681b6044820152606401610b34565b60018510158015611cda5750600485105b611cf65760405162461bcd60e51b8152600401610b3490613bec565b6000611d398585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508b925060019150612aca9050565b905080611d835760405162461bcd60e51b8152602060048201526018602482015277139bdd081bdb881d1a19481c1c995cd85b195cc81b1a5cdd60421b6044820152606401610b34565b336000908152602080526040902054600390611d9f9088612abe565b1115611dde5760405162461bcd60e51b815260206004820152600e60248201526d131a5b5a5d08195e18d95959195960921b6044820152606401610b34565b858015611df357611df0816001612b92565b90505b601454611e009082612852565b341015611e1f5760405162461bcd60e51b8152600401610b3490613c14565b60005b87811015611e8b576000611e3560085490565b9050601254611e4360085490565b1015611e78573360009081526020805260408120805460019290611e68908490613ab4565b90915550611e7890503382612b45565b5080611e8381613c3c565b915050611e22565b50604051600181527f65e6fb9e20b611e5c24725a291a68870dccec60f506e9fece4ae541ce5437d6a90602001611a85565b6060611ec860085490565b821115611f0e5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610b34565b601f611f1983610c6f565b604051602001611f2a929190613c92565b6040516020818303038152906040529050919050565b611f58600080516020613f24833981519152336115eb565b611f745760405162461bcd60e51b8152600401610b3490613b5d565b601a54600160a01b900460ff1615611fbd5760405162461bcd60e51b815260206004820152600c60248201526b416c7265616479206578656360a01b6044820152606401610b34565b601d546040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561201f57600080fd5b505afa158015612033573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120579190613d4d565b101561206257600080fd5b612070601c54601d54612b9e565b50601a805460ff60a01b1916600160a01b1790556040517ffd89e9df5be6b94f35a699b3790a5cdda814585db327d861e29f441adf83462b906120b69042815260200190565b60405180910390a1565b600a546001600160a01b031633146120ea5760405162461bcd60e51b8152600401610b3490613b80565b60015b600854811161214857807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b5565720761212183611ebd565b60405161212e91906135ee565b60405180910390a2612141600182613ab4565b90506120ed565b50565b612163600080516020613f24833981519152336115eb565b61217f5760405162461bcd60e51b8152600401610b3490613b5d565b601055565b6000828152600d60205260409020600101546121a08133612701565b610c6a83836127eb565b6121c2600080516020613f24833981519152336115eb565b6121de5760405162461bcd60e51b8152600401610b3490613b5d565b600e805460ff19811660ff90911615179055565b61220a600080516020613f24833981519152336115eb565b6122265760405162461bcd60e51b8152600401610b3490613b5d565b600f55565b6060601e8054610a3c90613a63565b600a546001600160a01b031633146122645760405162461bcd60e51b8152600401610b3490613b80565b6001600160a01b0381166122c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b34565b61214881612871565b60006001600160e01b03198216637965db0b60e01b1480610a275750610a2782612d29565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061232c826113a8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6060816123895750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123b3578061239d81613c3c565b91506123ac9050600a83613d66565b915061238d565b60008167ffffffffffffffff8111156123ce576123ce613697565b6040519080825280601f01601f1916602001820160405280156123f8576020820181803683370190505b5090505b8415610f075761240d600183613d7a565b915061241a600a86613af8565b612425906030613ab4565b60f81b81838151811061243a5761243a613acc565b60200101906001600160f81b031916908160001a90535061245c600a86613d66565b94506123fc565b6000818152600260205260408120546001600160a01b03166124dc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b34565b60006124e7836113a8565b9050806001600160a01b0316846001600160a01b031614806125225750836001600160a01b031661251784610abf565b6001600160a01b0316145b80610f0757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610f07565b826001600160a01b0316612569826113a8565b6001600160a01b0316146125d15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b34565b6001600160a01b0382166126335760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b34565b61263e838383612d4e565b6126496000826122f7565b6001600160a01b0383166000908152600360205260408120805460019290612672908490613d7a565b90915550506001600160a01b03821660009081526003602052604081208054600192906126a0908490613ab4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61270b82826115eb565b61111f57612723816001600160a01b03166014612d59565b61272e836020612d59565b60405160200161273f929190613d91565b60408051601f198184030181529082905262461bcd60e51b8252610b34916004016135ee565b61276f82826115eb565b61111f576000828152600d602090815260408083206001600160a01b03851684529091529020805460ff191660011790556127a73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6127f582826115eb565b1561111f576000828152600d602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061285e8284613c57565b9392505050565b600061285e8284613d66565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60155460009083906128d790600190613d7a565b8411156128ef576016546128ec908290612abe565b90505b6012546128ff826117ef60085490565b111561294d5760405162461bcd60e51b815260206004820152601760248201527f6d6178696d756d20737570706c792065786365656465640000000000000000006044820152606401610b34565b60125483156129935761296e600080516020613f24833981519152336115eb565b61298a5760405162461bcd60e51b8152600401610b3490613b5d565b506013546129bf565b6014546129a09086612852565b3410156129bf5760405162461bcd60e51b8152600401610b3490613c14565b60005b82811015612a045760006129d560085490565b9050826129e160085490565b10156129f1576129f18882612b45565b50806129fc81613c3c565b9150506129c2565b50604051600181527f520789cd0fac08d83588715752df475c05b6e808f153d742ff4a06b54a5c5ffb9060200160405180910390a150600195945050505050565b8015612a8857601b8190556040514281527f1b1e11bd507adbf6e69145615682798efdd6954fa58489cd8d6ec962f0450331906020015b60405180910390a15050565b60408051428152602081018490527f82a8f7d6d890313c750a25623d508971a09d9b11e43d1efcb1f10e9ff9066c869101612a7c565b600061285e8284613ab4565b6040516bffffffffffffffffffffffff19606084901b16602082015260009081906034016040516020818303038152906040528051906020012090508260011415612b2457612b1c85600f5483612ef5565b91505061285e565b8260021415612b3a57612b1c8560105483612ef5565b506000949350505050565b61111f828260405180602001604052806000815250612fa4565b612b6a848484612556565b612b7684848484612fd7565b611ad35760405162461bcd60e51b8152600401610b3490613e06565b600061285e8284613d7a565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612c0e929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612c3b93929190613e58565b602060405180830381600087803b158015612c5557600080fd5b505af1158015612c69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8d9190613e7f565b506000838152600c6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052612ce9906001613ab4565b6000858152600c6020526040902055610f078482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b60006001600160e01b0319821663780e9d6360e01b1480610a275750610a27826130e4565b610c6a838383613134565b60606000612d68836002613c57565b612d73906002613ab4565b67ffffffffffffffff811115612d8b57612d8b613697565b6040519080825280601f01601f191660200182016040528015612db5576020820181803683370190505b509050600360fc1b81600081518110612dd057612dd0613acc565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612dff57612dff613acc565b60200101906001600160f81b031916908160001a9053506000612e23846002613c57565b612e2e906001613ab4565b90505b6001811115612ea6576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612e6257612e62613acc565b1a60f81b828281518110612e7857612e78613acc565b60200101906001600160f81b031916908160001a90535060049490941c93612e9f81613e9c565b9050612e31565b50831561285e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b34565b600081815b8551811015612f99576000868281518110612f1757612f17613acc565b60200260200101519050808311612f59576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612f86565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612f9181613c3c565b915050612efa565b509092149392505050565b612fae83836131ec565b612fbb6000848484612fd7565b610c6a5760405162461bcd60e51b8152600401610b3490613e06565b60006001600160a01b0384163b156130d957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061301b903390899088908890600401613eb3565b602060405180830381600087803b15801561303557600080fd5b505af1925050508015613065575060408051601f3d908101601f1916820190925261306291810190613ef0565b60015b6130bf573d808015613093576040519150601f19603f3d011682016040523d82523d6000602084013e613098565b606091505b5080516130b75760405162461bcd60e51b8152600401610b3490613e06565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610f07565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061311557506001600160e01b03198216635b5e139f60e01b145b80610a2757506301ffc9a760e01b6001600160e01b0319831614610a27565b6001600160a01b03831661318f5761318a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6131b2565b816001600160a01b0316836001600160a01b0316146131b2576131b2838261333a565b6001600160a01b0382166131c957610c6a816133d7565b826001600160a01b0316826001600160a01b031614610c6a57610c6a8282613486565b6001600160a01b0382166132425760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b34565b6000818152600260205260409020546001600160a01b0316156132a75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b34565b6132b360008383612d4e565b6001600160a01b03821660009081526003602052604081208054600192906132dc908490613ab4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016133478461141f565b6133519190613d7a565b6000838152600760205260409020549091508082146133a4576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906133e990600190613d7a565b6000838152600960205260408120546008805493945090928490811061341157613411613acc565b90600052602060002001549050806008838154811061343257613432613acc565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061346a5761346a613f0d565b6001900381819060005260206000200160009055905550505050565b60006134918361141f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546134d690613a63565b90600052602060002090601f0160209004810192826134f8576000855561353e565b82601f1061351157805160ff191683800117855561353e565b8280016001018555821561353e579182015b8281111561353e578251825591602001919060010190613523565b5061354a92915061354e565b5090565b5b8082111561354a576000815560010161354f565b6001600160e01b03198116811461214857600080fd5b60006020828403121561358b57600080fd5b813561285e81613563565b60005b838110156135b1578181015183820152602001613599565b83811115611ad35750506000910152565b600081518084526135da816020860160208601613596565b601f01601f19169290920160200192915050565b60208152600061285e60208301846135c2565b60006020828403121561361357600080fd5b5035919050565b80356001600160a01b0381168114610f0f57600080fd5b6000806040838503121561364457600080fd5b61364d8361361a565b946020939093013593505050565b60008060006060848603121561367057600080fd5b6136798461361a565b92506136876020850161361a565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156136d6576136d6613697565b604052919050565b600067ffffffffffffffff8311156136f8576136f8613697565b61370b601f8401601f19166020016136ad565b905082815283838301111561371f57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261374757600080fd5b61285e838335602085016136de565b6000806040838503121561376957600080fd5b82359150602083013567ffffffffffffffff81111561378757600080fd5b61379385828601613736565b9150509250929050565b600080604083850312156137b057600080fd5b823591506137c06020840161361a565b90509250929050565b6000602082840312156137db57600080fd5b813567ffffffffffffffff8111156137f257600080fd5b610f0784828501613736565b6000806040838503121561381157600080fd5b50508035926020909101359150565b60006020828403121561383257600080fd5b61285e8261361a565b801515811461214857600080fd5b6000806040838503121561385c57600080fd5b6138658361361a565b915060208301356138758161383b565b809150509250929050565b6000806000806060858703121561389657600080fd5b61389f8561361a565b935060208501359250604085013567ffffffffffffffff808211156138c357600080fd5b818701915087601f8301126138d757600080fd5b8135818111156138e657600080fd5b8860208260051b85010111156138fb57600080fd5b95989497505060200194505050565b6000806000806080858703121561392057600080fd5b6139298561361a565b93506139376020860161361a565b925060408501359150606085013567ffffffffffffffff81111561395a57600080fd5b8501601f8101871361396b57600080fd5b61397a878235602084016136de565b91505092959194509250565b6000806040838503121561399957600080fd5b823567ffffffffffffffff808211156139b157600080fd5b818501915085601f8301126139c557600080fd5b81356020828211156139d9576139d9613697565b8160051b92506139ea8184016136ad565b8281529284018101928181019089851115613a0457600080fd5b948201945b84861015613a2957613a1a8661361a565b82529482019490820190613a09565b9997909101359750505050505050565b60008060408385031215613a4c57600080fd5b613a558361361a565b91506137c06020840161361a565b600181811c90821680613a7757607f821691505b60208210811415613a9857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613ac757613ac7613a9e565b500190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082613b0757613b07613ae2565b500690565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600990820152682737ba1030b236b4b760b91b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600e908201526d57726f6e67207175616e7469747960901b604082015260600190565b6020808252600e908201526d09cdee840cadcdeeaced0408aa8960931b604082015260600190565b6000600019821415613c5057613c50613a9e565b5060010190565b6000816000190483118215151615613c7157613c71613a9e565b500290565b60008151613c88818560208601613596565b9290920192915050565b600080845481600182811c915080831680613cae57607f831692505b6020808410821415613cce57634e487b7160e01b86526022600452602486fd5b818015613ce25760018114613cf357613d20565b60ff19861689528489019650613d20565b60008b81526020902060005b86811015613d185781548b820152908501908301613cff565b505084890196505b505050505050613d44613d338286613c76565b64173539b7b760d91b815260050190565b95945050505050565b600060208284031215613d5f57600080fd5b5051919050565b600082613d7557613d75613ae2565b500490565b600082821015613d8c57613d8c613a9e565b500390565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613dc9816017850160208801613596565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613dfa816028840160208801613596565b01602801949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60018060a01b0384168152826020820152606060408201526000613d4460608301846135c2565b600060208284031215613e9157600080fd5b815161285e8161383b565b600081613eab57613eab613a9e565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613ee6908301846135c2565b9695505050505050565b600060208284031215613f0257600080fd5b815161285e81613563565b634e487b7160e01b600052603160045260246000fdfea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220e7e60a3998e4802c840f3fc6c785066483267541b64cdfb874b627aa728451cf64736f6c6343000809003368747470733a2f2f7777772e706f707061626c65732e696f2f6f70656e7365612e6a736f6e68747470733a2f2f706f707061626c65732e6d7970696e6174612e636c6f75642f697066732f626166796265696563676d6e656e6376376c756a6c3569646435326c79796d753665686b643371786733346c703333787470727165647a627469652f000000000000000000000000507b281e73e03ae440f39b47336cd69a1dfb7eda000000000000000000000000e39859571ede23f21cbcb62be5d4991fb5a1f80f000000000000000000000000589a74945647e5a4dc4a1fe239ba90a8be71c3690000000000000000000000006e87f77d690435598cb0d30434030c59fd912e4b0000000000000000000000006809dddfd52cbe21aa514041c4a0ca0a646e2703

Deployed Bytecode

0x6080604052600436106103765760003560e01c80638da5cb5b116101d1578063c32a50f911610102578063d5abeb01116100a0578063e8a3d4851161006f578063e8a3d4851461097e578063e985e9c514610993578063eb8d2444146109dc578063f2fde38b146109fc57600080fd5b8063d5abeb0114610919578063da17f82a1461092f578063da9b7f0914610944578063e66b18451461096457600080fd5b8063ccc5d847116100dc578063ccc5d847146108af578063d111515d146108c4578063d4cac0a4146108d9578063d547741f146108f957600080fd5b8063c32a50f91461085c578063c7e1a72c1461087c578063c87b56dd1461088f57600080fd5b8063a035b1fe1161016f578063ad80105a11610149578063ad80105a146107f3578063b7002ab414610806578063b88d4fde1461081c578063c204642c1461083c57600080fd5b8063a035b1fe146107a8578063a217fddf146107be578063a22cb465146107d357600080fd5b806393f2667c116101ab57806393f2667c1461074757806394985ddd1461075d57806395d89b411461077d5780639e2019121461079257600080fd5b80638da5cb5b146106e957806391d1485414610707578063938e3d7b1461072757600080fd5b806336568abe116102ab57806370a08231116102495780637d8966e4116102235780637d8966e4146106955780637dee28d2146106aa57806385449697146106bd5780638b93b0f5146106d357600080fd5b806370a082311461063e578063715018a61461065e57806375b238fc1461067357600080fd5b80634f6ccce7116102855780634f6ccce7146105be57806355f804b3146105de5780635b37ff64146105fe5780636352211e1461061e57600080fd5b806336568abe146105695780633ccfd60b1461058957806342842e0e1461059e57600080fd5b806323b872dd116103185780632f2ff15d116102f25780632f2ff15d146104f55780632f745c591461051557806330f72cd414610535578063343937431461055457600080fd5b806323b872dd14610485578063248a9ca3146104a55780632cb2f52e146104d557600080fd5b8063081812fc11610354578063081812fc146103f6578063095ea7b31461042e5780630ef7cc8e1461045057806318160ddd1461047057600080fd5b806301ffc9a71461037b57806304a6c8c9146103b057806306fdde03146103d4575b600080fd5b34801561038757600080fd5b5061039b610396366004613579565b610a1c565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103c660125481565b6040519081526020016103a7565b3480156103e057600080fd5b506103e9610a2d565b6040516103a791906135ee565b34801561040257600080fd5b50610416610411366004613601565b610abf565b6040516001600160a01b0390911681526020016103a7565b34801561043a57600080fd5b5061044e610449366004613631565b610b59565b005b34801561045c57600080fd5b506103e961046b366004613601565b610c6f565b34801561047c57600080fd5b506008546103c6565b34801561049157600080fd5b5061044e6104a036600461365b565b610f14565b3480156104b157600080fd5b506103c66104c0366004613601565b6000908152600d602052604090206001015490565b3480156104e157600080fd5b5061044e6104f0366004613756565b610f45565b34801561050157600080fd5b5061044e61051036600461379d565b610f98565b34801561052157600080fd5b506103c6610530366004613631565b610fbe565b34801561054157600080fd5b50600e5461039b90610100900460ff1681565b34801561056057600080fd5b5061044e611054565b34801561057557600080fd5b5061044e61058436600461379d565b6110a5565b34801561059557600080fd5b5061044e611123565b3480156105aa57600080fd5b5061044e6105b936600461365b565b611274565b3480156105ca57600080fd5b506103c66105d9366004613601565b61128f565b3480156105ea57600080fd5b5061044e6105f93660046137c9565b611322565b34801561060a57600080fd5b5061044e6106193660046137fe565b611369565b34801561062a57600080fd5b50610416610639366004613601565b6113a8565b34801561064a57600080fd5b506103c6610659366004613820565b61141f565b34801561066a57600080fd5b5061044e6114a6565b34801561067f57600080fd5b506103c6600080516020613f2483398151915281565b3480156106a157600080fd5b5061044e6114dc565b61039b6106b8366004613601565b61152f565b3480156106c957600080fd5b506103c660105481565b3480156106df57600080fd5b506103c660135481565b3480156106f557600080fd5b50600a546001600160a01b0316610416565b34801561071357600080fd5b5061039b61072236600461379d565b6115eb565b34801561073357600080fd5b5061044e6107423660046137c9565b611616565b34801561075357600080fd5b506103c6600f5481565b34801561076957600080fd5b5061044e6107783660046137fe565b61165d565b34801561078957600080fd5b506103e96116df565b34801561079e57600080fd5b506103c660155481565b3480156107b457600080fd5b506103c660145481565b3480156107ca57600080fd5b506103c6600081565b3480156107df57600080fd5b5061044e6107ee366004613849565b6116ee565b61039b610801366004613880565b6117b3565b34801561081257600080fd5b506103c660165481565b34801561082857600080fd5b5061044e61083736600461390a565b611aa1565b34801561084857600080fd5b5061044e610857366004613986565b611ad9565b34801561086857600080fd5b5061044e610877366004613601565b611bab565b61039b61088a366004613880565b611bf7565b34801561089b57600080fd5b506103e96108aa366004613601565b611ebd565b3480156108bb57600080fd5b5061044e611f40565b3480156108d057600080fd5b5061044e6120c0565b3480156108e557600080fd5b5061044e6108f4366004613601565b61214b565b34801561090557600080fd5b5061044e61091436600461379d565b612184565b34801561092557600080fd5b506103c660115481565b34801561093b57600080fd5b5061044e6121aa565b34801561095057600080fd5b5061044e61095f366004613601565b6121f2565b34801561097057600080fd5b50600e5461039b9060ff1681565b34801561098a57600080fd5b506103e961222b565b34801561099f57600080fd5b5061039b6109ae366004613a39565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109e857600080fd5b50600e5461039b9062010000900460ff1681565b348015610a0857600080fd5b5061044e610a17366004613820565b61223a565b6000610a27826122d2565b92915050565b606060008054610a3c90613a63565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6890613a63565b8015610ab55780601f10610a8a57610100808354040283529160200191610ab5565b820191906000526020600020905b815481529060010190602001808311610a9857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b3d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b64826113a8565b9050806001600160a01b0316836001600160a01b03161415610bd25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b34565b336001600160a01b0382161480610bee5750610bee81336109ae565b610c605760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b34565b610c6a83836122f7565b505050565b6060610c7a60085490565b821115610cbc5760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881a59081a5b9d985b1a5960821b6044820152606401610b34565b60008281526023602052604081208054610cd590613a63565b90501115610d7b5760008281526023602052604090208054610cf690613a63565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2290613a63565b8015610d6f5780601f10610d4457610100808354040283529160200191610d6f565b820191906000526020600020905b815481529060010190602001808311610d5257829003601f168201915b50505050509050919050565b60006011546001610d8c9190613ab4565b67ffffffffffffffff811115610da457610da4613697565b604051908082528060200260200182016040528015610dcd578160200160208202803683370190505b50601b5490915060015b6011548111610e105780838281518110610df357610df3613acc565b6020908102919091010152610e09600182613ab4565b9050610dd7565b5060015b6011548111610ee45760006011548383604051602001610e3e929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c610e619190613af8565b9050838181518110610e7557610e75613acc565b6020026020010151848381518110610e8f57610e8f613acc565b6020026020010151858481518110610ea957610ea9613acc565b60200260200101868481518110610ec257610ec2613acc565b60209081029190910101919091525250610edd600182613ab4565b9050610e14565b50610f07828581518110610efa57610efa613acc565b6020026020010151612365565b949350505050565b919050565b610f1e3382612463565b610f3a5760405162461bcd60e51b8152600401610b3490613b0c565b610c6a838383612556565b610f5d600080516020613f24833981519152336115eb565b610f795760405162461bcd60e51b8152600401610b3490613b5d565b60008281526023602090815260409091208251610c6a928401906134ca565b6000828152600d6020526040902060010154610fb48133612701565b610c6a8383612765565b6000610fc98361141f565b821061102b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b34565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61106c600080516020613f24833981519152336115eb565b6110885760405162461bcd60e51b8152600401610b3490613b5d565b600e805461ff001981166101009182900460ff1615909102179055565b6001600160a01b03811633146111155760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b34565b61111f82826127eb565b5050565b600a546001600160a01b0316331461114d5760405162461bcd60e51b8152600401610b3490613b80565b60175447906001600160a01b03166108fc611174606461116e85600f612852565b90612865565b6040518115909202916000818181858888f1935050505015801561119c573d6000803e3d6000fd5b506018546001600160a01b03166108fc6111bc606461116e85600f612852565b6040518115909202916000818181858888f193505050501580156111e4573d6000803e3d6000fd5b506019546001600160a01b03166108fc611204606461116e856014612852565b6040518115909202916000818181858888f1935050505015801561122c573d6000803e3d6000fd5b50601a546001600160a01b03166108fc61124c606461116e856032612852565b6040518115909202916000818181858888f1935050505015801561111f573d6000803e3d6000fd5b610c6a83838360405180602001604052806000815250611aa1565b600061129a60085490565b82106112fd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b34565b6008828154811061131057611310613acc565b90600052602060002001549050919050565b61133a600080516020613f24833981519152336115eb565b6113565760405162461bcd60e51b8152600401610b3490613b5d565b805161111f90601f9060208401906134ca565b611381600080516020613f24833981519152336115eb565b61139d5760405162461bcd60e51b8152600401610b3490613b5d565b601591909155601655565b6000818152600260205260408120546001600160a01b031680610a275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b34565b60006001600160a01b03821661148a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b34565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146114d05760405162461bcd60e51b8152600401610b3490613b80565b6114da6000612871565b565b6114f4600080516020613f24833981519152336115eb565b6115105760405162461bcd60e51b8152600401610b3490613b5d565b600e805462ff0000198116620100009182900460ff1615909102179055565b60006002600b5414156115545760405162461bcd60e51b8152600401610b3490613bb5565b6002600b55600e5462010000900460ff166115a75760405162461bcd60e51b815260206004820152601360248201527253616c6573206973206e6f742061637469766560681b6044820152606401610b34565b600182101580156115b85750601582105b6115d45760405162461bcd60e51b8152600401610b3490613bec565b6115e0338360006128c3565b6001600b5592915050565b6000918252600d602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61162e600080516020613f24833981519152336115eb565b61164a5760405162461bcd60e51b8152600401610b3490613b5d565b805161111f90601e9060208401906134ca565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146116d55760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610b34565b61111f8282612a45565b606060018054610a3c90613a63565b6001600160a01b0382163314156117475760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b34565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006002600b5414156117d85760405162461bcd60e51b8152600401610b3490613bb5565b6002600b5560125484906117f5826117ef60085490565b90612abe565b11156118435760405162461bcd60e51b815260206004820152601e60248201527f546865207174792065786365656473206d6178696d756d20737570706c7900006044820152606401610b34565b600e54610100900460ff166118905760405162461bcd60e51b815260206004820152601360248201527270726573616c6573206e6f742061637469766560681b6044820152606401610b34565b600185101580156118a15750600385105b6118bd5760405162461bcd60e51b8152600401610b3490613bec565b60006119008585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508b925060029150612aca9050565b90508061194a5760405162461bcd60e51b8152602060048201526018602482015277139bdd081bdb881d1a19481c1c995cd85b195cc81b1a5cdd60421b6044820152606401610b34565b336000908152602160205260409020546003906119679088612abe565b11156119a65760405162461bcd60e51b815260206004820152600e60248201526d1b1a5b5a5d08195e18d95959195960921b6044820152606401610b34565b8560018111156119be576119bb816001612abe565b90505b6014546119cb9088612852565b3410156119ea5760405162461bcd60e51b8152600401610b3490613c14565b60005b81811015611a57576000611a0060085490565b9050601254611a0e60085490565b1015611a4457336000908152602160205260408120805460019290611a34908490613ab4565b90915550611a4490503382612b45565b5080611a4f81613c3c565b9150506119ed565b50604051600181527fbf65f250232b02925cfad540ad1099ebc32be7ef8606bf04658b8962586da879906020015b60405180910390a1600193505050506001600b55949350505050565b611aab3383612463565b611ac75760405162461bcd60e51b8152600401610b3490613b0c565b611ad384848484612b5f565b50505050565b611af1600080516020613f24833981519152336115eb565b611b0d5760405162461bcd60e51b8152600401610b3490613b5d565b601354818351611b1d9190613c57565b602254611b2a9190613ab4565b1115611b675760405162461bcd60e51b815260206004820152600c60248201526b105a5c991bdc081b1a5b5a5d60a21b6044820152606401610b34565b60005b8251811015610c6a57611b98838281518110611b8857611b88613acc565b60200260200101518360016128c3565b50611ba4600182613ab4565b9050611b6a565b611bc3600080516020613f24833981519152336115eb565b611bdf5760405162461bcd60e51b8152600401610b3490613b5d565b601a805460ff60a01b1916600160a01b179055601b55565b60006002600b541415611c1c5760405162461bcd60e51b8152600401610b3490613bb5565b6002600b556012548490611c33826117ef60085490565b1115611c815760405162461bcd60e51b815260206004820152601e60248201527f546865207174792065786365656473206d6178696d756d20737570706c7900006044820152606401610b34565b600e5460ff16611cc95760405162461bcd60e51b815260206004820152601360248201527270726573616c6573206e6f742061637469766560681b6044820152606401610b34565b60018510158015611cda5750600485105b611cf65760405162461bcd60e51b8152600401610b3490613bec565b6000611d398585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508b925060019150612aca9050565b905080611d835760405162461bcd60e51b8152602060048201526018602482015277139bdd081bdb881d1a19481c1c995cd85b195cc81b1a5cdd60421b6044820152606401610b34565b336000908152602080526040902054600390611d9f9088612abe565b1115611dde5760405162461bcd60e51b815260206004820152600e60248201526d131a5b5a5d08195e18d95959195960921b6044820152606401610b34565b858015611df357611df0816001612b92565b90505b601454611e009082612852565b341015611e1f5760405162461bcd60e51b8152600401610b3490613c14565b60005b87811015611e8b576000611e3560085490565b9050601254611e4360085490565b1015611e78573360009081526020805260408120805460019290611e68908490613ab4565b90915550611e7890503382612b45565b5080611e8381613c3c565b915050611e22565b50604051600181527f65e6fb9e20b611e5c24725a291a68870dccec60f506e9fece4ae541ce5437d6a90602001611a85565b6060611ec860085490565b821115611f0e5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610b34565b601f611f1983610c6f565b604051602001611f2a929190613c92565b6040516020818303038152906040529050919050565b611f58600080516020613f24833981519152336115eb565b611f745760405162461bcd60e51b8152600401610b3490613b5d565b601a54600160a01b900460ff1615611fbd5760405162461bcd60e51b815260206004820152600c60248201526b416c7265616479206578656360a01b6044820152606401610b34565b601d546040516370a0823160e01b81523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b15801561201f57600080fd5b505afa158015612033573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120579190613d4d565b101561206257600080fd5b612070601c54601d54612b9e565b50601a805460ff60a01b1916600160a01b1790556040517ffd89e9df5be6b94f35a699b3790a5cdda814585db327d861e29f441adf83462b906120b69042815260200190565b60405180910390a1565b600a546001600160a01b031633146120ea5760405162461bcd60e51b8152600401610b3490613b80565b60015b600854811161214857807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b5565720761212183611ebd565b60405161212e91906135ee565b60405180910390a2612141600182613ab4565b90506120ed565b50565b612163600080516020613f24833981519152336115eb565b61217f5760405162461bcd60e51b8152600401610b3490613b5d565b601055565b6000828152600d60205260409020600101546121a08133612701565b610c6a83836127eb565b6121c2600080516020613f24833981519152336115eb565b6121de5760405162461bcd60e51b8152600401610b3490613b5d565b600e805460ff19811660ff90911615179055565b61220a600080516020613f24833981519152336115eb565b6122265760405162461bcd60e51b8152600401610b3490613b5d565b600f55565b6060601e8054610a3c90613a63565b600a546001600160a01b031633146122645760405162461bcd60e51b8152600401610b3490613b80565b6001600160a01b0381166122c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b34565b61214881612871565b60006001600160e01b03198216637965db0b60e01b1480610a275750610a2782612d29565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061232c826113a8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6060816123895750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123b3578061239d81613c3c565b91506123ac9050600a83613d66565b915061238d565b60008167ffffffffffffffff8111156123ce576123ce613697565b6040519080825280601f01601f1916602001820160405280156123f8576020820181803683370190505b5090505b8415610f075761240d600183613d7a565b915061241a600a86613af8565b612425906030613ab4565b60f81b81838151811061243a5761243a613acc565b60200101906001600160f81b031916908160001a90535061245c600a86613d66565b94506123fc565b6000818152600260205260408120546001600160a01b03166124dc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b34565b60006124e7836113a8565b9050806001600160a01b0316846001600160a01b031614806125225750836001600160a01b031661251784610abf565b6001600160a01b0316145b80610f0757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610f07565b826001600160a01b0316612569826113a8565b6001600160a01b0316146125d15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b34565b6001600160a01b0382166126335760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b34565b61263e838383612d4e565b6126496000826122f7565b6001600160a01b0383166000908152600360205260408120805460019290612672908490613d7a565b90915550506001600160a01b03821660009081526003602052604081208054600192906126a0908490613ab4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61270b82826115eb565b61111f57612723816001600160a01b03166014612d59565b61272e836020612d59565b60405160200161273f929190613d91565b60408051601f198184030181529082905262461bcd60e51b8252610b34916004016135ee565b61276f82826115eb565b61111f576000828152600d602090815260408083206001600160a01b03851684529091529020805460ff191660011790556127a73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6127f582826115eb565b1561111f576000828152600d602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061285e8284613c57565b9392505050565b600061285e8284613d66565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60155460009083906128d790600190613d7a565b8411156128ef576016546128ec908290612abe565b90505b6012546128ff826117ef60085490565b111561294d5760405162461bcd60e51b815260206004820152601760248201527f6d6178696d756d20737570706c792065786365656465640000000000000000006044820152606401610b34565b60125483156129935761296e600080516020613f24833981519152336115eb565b61298a5760405162461bcd60e51b8152600401610b3490613b5d565b506013546129bf565b6014546129a09086612852565b3410156129bf5760405162461bcd60e51b8152600401610b3490613c14565b60005b82811015612a045760006129d560085490565b9050826129e160085490565b10156129f1576129f18882612b45565b50806129fc81613c3c565b9150506129c2565b50604051600181527f520789cd0fac08d83588715752df475c05b6e808f153d742ff4a06b54a5c5ffb9060200160405180910390a150600195945050505050565b8015612a8857601b8190556040514281527f1b1e11bd507adbf6e69145615682798efdd6954fa58489cd8d6ec962f0450331906020015b60405180910390a15050565b60408051428152602081018490527f82a8f7d6d890313c750a25623d508971a09d9b11e43d1efcb1f10e9ff9066c869101612a7c565b600061285e8284613ab4565b6040516bffffffffffffffffffffffff19606084901b16602082015260009081906034016040516020818303038152906040528051906020012090508260011415612b2457612b1c85600f5483612ef5565b91505061285e565b8260021415612b3a57612b1c8560105483612ef5565b506000949350505050565b61111f828260405180602001604052806000815250612fa4565b612b6a848484612556565b612b7684848484612fd7565b611ad35760405162461bcd60e51b8152600401610b3490613e06565b600061285e8284613d7a565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001612c0e929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612c3b93929190613e58565b602060405180830381600087803b158015612c5557600080fd5b505af1158015612c69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8d9190613e7f565b506000838152600c6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052612ce9906001613ab4565b6000858152600c6020526040902055610f078482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b60006001600160e01b0319821663780e9d6360e01b1480610a275750610a27826130e4565b610c6a838383613134565b60606000612d68836002613c57565b612d73906002613ab4565b67ffffffffffffffff811115612d8b57612d8b613697565b6040519080825280601f01601f191660200182016040528015612db5576020820181803683370190505b509050600360fc1b81600081518110612dd057612dd0613acc565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612dff57612dff613acc565b60200101906001600160f81b031916908160001a9053506000612e23846002613c57565b612e2e906001613ab4565b90505b6001811115612ea6576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612e6257612e62613acc565b1a60f81b828281518110612e7857612e78613acc565b60200101906001600160f81b031916908160001a90535060049490941c93612e9f81613e9c565b9050612e31565b50831561285e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b34565b600081815b8551811015612f99576000868281518110612f1757612f17613acc565b60200260200101519050808311612f59576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612f86565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612f9181613c3c565b915050612efa565b509092149392505050565b612fae83836131ec565b612fbb6000848484612fd7565b610c6a5760405162461bcd60e51b8152600401610b3490613e06565b60006001600160a01b0384163b156130d957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061301b903390899088908890600401613eb3565b602060405180830381600087803b15801561303557600080fd5b505af1925050508015613065575060408051601f3d908101601f1916820190925261306291810190613ef0565b60015b6130bf573d808015613093576040519150601f19603f3d011682016040523d82523d6000602084013e613098565b606091505b5080516130b75760405162461bcd60e51b8152600401610b3490613e06565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610f07565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061311557506001600160e01b03198216635b5e139f60e01b145b80610a2757506301ffc9a760e01b6001600160e01b0319831614610a27565b6001600160a01b03831661318f5761318a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6131b2565b816001600160a01b0316836001600160a01b0316146131b2576131b2838261333a565b6001600160a01b0382166131c957610c6a816133d7565b826001600160a01b0316826001600160a01b031614610c6a57610c6a8282613486565b6001600160a01b0382166132425760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b34565b6000818152600260205260409020546001600160a01b0316156132a75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b34565b6132b360008383612d4e565b6001600160a01b03821660009081526003602052604081208054600192906132dc908490613ab4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016133478461141f565b6133519190613d7a565b6000838152600760205260409020549091508082146133a4576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906133e990600190613d7a565b6000838152600960205260408120546008805493945090928490811061341157613411613acc565b90600052602060002001549050806008838154811061343257613432613acc565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061346a5761346a613f0d565b6001900381819060005260206000200160009055905550505050565b60006134918361141f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546134d690613a63565b90600052602060002090601f0160209004810192826134f8576000855561353e565b82601f1061351157805160ff191683800117855561353e565b8280016001018555821561353e579182015b8281111561353e578251825591602001919060010190613523565b5061354a92915061354e565b5090565b5b8082111561354a576000815560010161354f565b6001600160e01b03198116811461214857600080fd5b60006020828403121561358b57600080fd5b813561285e81613563565b60005b838110156135b1578181015183820152602001613599565b83811115611ad35750506000910152565b600081518084526135da816020860160208601613596565b601f01601f19169290920160200192915050565b60208152600061285e60208301846135c2565b60006020828403121561361357600080fd5b5035919050565b80356001600160a01b0381168114610f0f57600080fd5b6000806040838503121561364457600080fd5b61364d8361361a565b946020939093013593505050565b60008060006060848603121561367057600080fd5b6136798461361a565b92506136876020850161361a565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156136d6576136d6613697565b604052919050565b600067ffffffffffffffff8311156136f8576136f8613697565b61370b601f8401601f19166020016136ad565b905082815283838301111561371f57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261374757600080fd5b61285e838335602085016136de565b6000806040838503121561376957600080fd5b82359150602083013567ffffffffffffffff81111561378757600080fd5b61379385828601613736565b9150509250929050565b600080604083850312156137b057600080fd5b823591506137c06020840161361a565b90509250929050565b6000602082840312156137db57600080fd5b813567ffffffffffffffff8111156137f257600080fd5b610f0784828501613736565b6000806040838503121561381157600080fd5b50508035926020909101359150565b60006020828403121561383257600080fd5b61285e8261361a565b801515811461214857600080fd5b6000806040838503121561385c57600080fd5b6138658361361a565b915060208301356138758161383b565b809150509250929050565b6000806000806060858703121561389657600080fd5b61389f8561361a565b935060208501359250604085013567ffffffffffffffff808211156138c357600080fd5b818701915087601f8301126138d757600080fd5b8135818111156138e657600080fd5b8860208260051b85010111156138fb57600080fd5b95989497505060200194505050565b6000806000806080858703121561392057600080fd5b6139298561361a565b93506139376020860161361a565b925060408501359150606085013567ffffffffffffffff81111561395a57600080fd5b8501601f8101871361396b57600080fd5b61397a878235602084016136de565b91505092959194509250565b6000806040838503121561399957600080fd5b823567ffffffffffffffff808211156139b157600080fd5b818501915085601f8301126139c557600080fd5b81356020828211156139d9576139d9613697565b8160051b92506139ea8184016136ad565b8281529284018101928181019089851115613a0457600080fd5b948201945b84861015613a2957613a1a8661361a565b82529482019490820190613a09565b9997909101359750505050505050565b60008060408385031215613a4c57600080fd5b613a558361361a565b91506137c06020840161361a565b600181811c90821680613a7757607f821691505b60208210811415613a9857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613ac757613ac7613a9e565b500190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082613b0757613b07613ae2565b500690565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600990820152682737ba1030b236b4b760b91b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600e908201526d57726f6e67207175616e7469747960901b604082015260600190565b6020808252600e908201526d09cdee840cadcdeeaced0408aa8960931b604082015260600190565b6000600019821415613c5057613c50613a9e565b5060010190565b6000816000190483118215151615613c7157613c71613a9e565b500290565b60008151613c88818560208601613596565b9290920192915050565b600080845481600182811c915080831680613cae57607f831692505b6020808410821415613cce57634e487b7160e01b86526022600452602486fd5b818015613ce25760018114613cf357613d20565b60ff19861689528489019650613d20565b60008b81526020902060005b86811015613d185781548b820152908501908301613cff565b505084890196505b505050505050613d44613d338286613c76565b64173539b7b760d91b815260050190565b95945050505050565b600060208284031215613d5f57600080fd5b5051919050565b600082613d7557613d75613ae2565b500490565b600082821015613d8c57613d8c613a9e565b500390565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613dc9816017850160208801613596565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613dfa816028840160208801613596565b01602801949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60018060a01b0384168152826020820152606060408201526000613d4460608301846135c2565b600060208284031215613e9157600080fd5b815161285e8161383b565b600081613eab57613eab613a9e565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613ee6908301846135c2565b9695505050505050565b600060208284031215613f0257600080fd5b815161285e81613563565b634e487b7160e01b600052603160045260246000fdfea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220e7e60a3998e4802c840f3fc6c785066483267541b64cdfb874b627aa728451cf64736f6c63430008090033

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

000000000000000000000000507b281e73e03ae440f39b47336cd69a1dfb7eda000000000000000000000000e39859571ede23f21cbcb62be5d4991fb5a1f80f000000000000000000000000589a74945647e5a4dc4a1fe239ba90a8be71c3690000000000000000000000006e87f77d690435598cb0d30434030c59fd912e4b0000000000000000000000006809dddfd52cbe21aa514041c4a0ca0a646e2703

-----Decoded View---------------
Arg [0] : _account1 (address): 0x507b281e73E03ae440F39B47336cD69a1DFB7edA
Arg [1] : _account2 (address): 0xe39859571EDe23f21CbcB62bE5d4991fB5a1F80f
Arg [2] : _account3 (address): 0x589a74945647e5A4Dc4A1fe239BA90A8Be71C369
Arg [3] : _account4 (address): 0x6E87f77d690435598Cb0d30434030C59fD912E4b
Arg [4] : adminRoleAdress (address): 0x6809DdDfD52cBE21AA514041C4a0CA0a646e2703

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000507b281e73e03ae440f39b47336cd69a1dfb7eda
Arg [1] : 000000000000000000000000e39859571ede23f21cbcb62be5d4991fb5a1f80f
Arg [2] : 000000000000000000000000589a74945647e5a4dc4a1fe239ba90a8be71c369
Arg [3] : 0000000000000000000000006e87f77d690435598cb0d30434030c59fd912e4b
Arg [4] : 0000000000000000000000006809dddfd52cbe21aa514041c4a0ca0a646e2703


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.