ETH Price: $3,128.14 (+0.87%)

Token

VeeFriends Mini Drops 2 (VFMD2)
 

Overview

Max Total Supply

2,243 VFMD2

Holders

1,609

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
poisonx.eth
Balance
3 VFMD2
0xfe35E70599578eFef562E1f1cdc9Ef693B865E9D
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Welcome to VeeFriends Mini Drops - Official Surprise Drops for the VeeFriends Community.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
VFToken

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.4;

import "./erc721vf/contracts/ERC721VF.sol";
import "./VFAccessControl.sol";
import "./IVFAccessControl.sol";
import "./VFRoyalties.sol";
import "./IVFRoyalties.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";

contract VFToken is ERC721VF, IERC2981 {
    //Token base URI
    string private _baseUri;

    //Flag to permanently lock minting
    bool public mintingPermanentlyLocked = false;
    //Flag to activate or disable minting
    bool public isMintActive = false;
    //Flag to activate or disable burning
    bool public isBurnActive = false;

    //Contract for function access control
    VFAccessControl private _controlContract;

    //Contract for royalties
    VFRoyalties private _royaltiesContract;

    /**
     * @dev Initializes the contract by setting a `initialBaseUri`, `name`, `symbol`,
     * and a `controlContractAddress` to the token collection.
     */
    constructor(
        string memory initialBaseUri,
        string memory name,
        string memory symbol,
        address controlContractAddress
    ) ERC721VF(name, symbol) {
        _controlContract = VFAccessControl(controlContractAddress);
        setBaseURI(initialBaseUri);
    }

    modifier onlyRole(bytes32 role) {
        _controlContract.checkRole(role, _msgSender());
        _;
    }

    modifier onlyRoles(bytes32[] memory roles) {
        bool hasRequiredRole = false;
        for (uint256 i; i < roles.length; i++) {
            bytes32 role = roles[i];
            if (_controlContract.hasRole(role, _msgSender())) {
                hasRequiredRole = true;
                break;
            }
        }
        require(hasRequiredRole, "Missing required role");
        _;
    }

    modifier notLocked() {
        require(!mintingPermanentlyLocked, "Minting permanently locked");
        _;
    }

    modifier mintActive() {
        require(isMintActive, "Mint is not active");
        _;
    }

    modifier burnActive() {
        require(isBurnActive, "Burn is not active");
        _;
    }

    /**
     * @dev Get the base token URI
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return _baseUri;
    }

    /**
     * @dev Update the base token URI
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function setBaseURI(string memory baseUri)
        public
        onlyRole(_controlContract.getAdminRole())
    {
        _baseUri = baseUri;
    }

    /**
     * @dev Update the access control contract
     *
     * Requirements:
     *
     * - the caller must be an admin role
     * - `controlContractAddress` must support the IVFAccesControl interface
     */
    function setControlContract(address controlContractAddress)
        external
        onlyRole(_controlContract.getAdminRole())
    {
        require(
            IERC165(controlContractAddress).supportsInterface(
                type(IVFAccessControl).interfaceId
            ),
            "Contract does not support required interface"
        );
        _controlContract = VFAccessControl(controlContractAddress);
    }

    /**
     * @dev Update the royalties contract
     *
     * Requirements:
     *
     * - the caller must be an admin role
     * - `royaltiesContractAddress` must support the IVFRoyalties interface
     */
    function setRoyaltiesContract(address royaltiesContractAddress)
        external
        onlyRole(_controlContract.getAdminRole())
    {
        require(
            IERC165(royaltiesContractAddress).supportsInterface(
                type(IVFRoyalties).interfaceId
            ),
            "Contract does not support required interface"
        );
        _royaltiesContract = VFRoyalties(royaltiesContractAddress);
    }

    /**
     * @dev Permanently lock minting
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function lockMintingPermanently()
        external
        onlyRole(_controlContract.getAdminRole())
    {
        mintingPermanentlyLocked = true;
    }

    /**
     * @dev Set the active/inactive state of minting
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function toggleMintActive()
        external
        onlyRole(_controlContract.getAdminRole())
    {
        isMintActive = !isMintActive;
    }

    /**
     * @dev Set the active/inactive state of burning
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function toggleBurnActive()
        external
        onlyRole(_controlContract.getAdminRole())
    {
        isBurnActive = !isBurnActive;
    }

    /**
     * @dev Airdrop `addresses` for `quantity` starting at `startTokenId`
     *
     * Requirements:
     *
     * - the caller must be a minter role
     * - minting must not be locked and must be active
     * - `addresses` and `quantities` must have the same length
     */
    function airdrop(
        address[] memory addresses,
        uint16[] memory quantities,
        uint256 startTokenId
    )
        external
        onlyRoles(_controlContract.getMinterRoles())
        notLocked
        mintActive
    {
        require(
            addresses.length == quantities.length,
            "Address and quantities need to be equal length"
        );

        for (uint256 i; i < addresses.length; i++) {
            startTokenId = _mintBatch(
                addresses[i],
                quantities[i],
                startTokenId
            );
        }
    }

    /**
     * @dev Airdrop `addresses` for `quantity` starting at `startTokenId`
     *
     * Requirements:
     *
     * - the caller must be a minter role
     * - minting must not be locked and must be active
     * - `addresses` and `quantities` must have the same length
     */
    function safeAirdrop(
        address[] memory addresses,
        uint16[] memory quantities,
        uint256 startTokenId
    )
        external
        onlyRoles(_controlContract.getMinterRoles())
        notLocked
        mintActive
    {
        require(
            addresses.length == quantities.length,
            "Address and quantities need to be equal length"
        );

        for (uint256 i; i < addresses.length; i++) {
            startTokenId = _safeMintBatch(
                addresses[i],
                quantities[i],
                startTokenId
            );
        }
    }

    /**
     * @dev mint batch `to` for `quantity` starting at `startTokenId`
     *
     * Requirements:
     *
     * - the caller must be a minter role
     * - minting must not be locked and must be active
     */
    function mintBatch(
        address to,
        uint8 quantity,
        uint256 startTokenId
    )
        external
        onlyRoles(_controlContract.getMinterRoles())
        notLocked
        mintActive
    {
        _mintBatch(to, quantity, startTokenId);
    }

    /**
     * @dev mint batch `to` for `quantity` starting at `startTokenId`
     *
     * Requirements:
     *
     * - the caller must be a minter role
     * - minting must not be locked and must be active
     */
    function safeMintBatch(
        address to,
        uint8 quantity,
        uint256 startTokenId
    )
        external
        onlyRoles(_controlContract.getMinterRoles())
        notLocked
        mintActive
    {
        _safeMintBatch(to, quantity, startTokenId);
    }

    /**
     * @dev mint `to` token `tokenId`
     *
     * Requirements:
     *
     * - the caller must be a minter role
     * - minting must not be locked and must be active
     */
    function mint(address to, uint256 tokenId)
        external
        onlyRoles(_controlContract.getMinterRoles())
        notLocked
        mintActive
    {
        _mint(to, tokenId);
    }

    /**
     * @dev mint `to` token `tokenId`
     *
     * Requirements:
     *
     * - the caller must be a minter role
     * - minting must not be locked and must be active
     */
    function safeMint(address to, uint256 tokenId)
        external
        onlyRoles(_controlContract.getMinterRoles())
        notLocked
        mintActive
    {
        _safeMint(to, tokenId);
    }

    /**
     * @dev burn `from` token `tokenId`
     *
     * Requirements:
     *
     * - the caller must be a burner role
     * - burning must be active
     */
    function burn(address from, uint256 tokenId)
        external
        onlyRole(_controlContract.getBurnerRole())
        burnActive
    {
        _burn(from, tokenId);
    }

    /**
     * @dev Get royalty information for a token based on the `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount)
    {
        return
            _royaltiesContract.royaltyInfo(tokenId, address(this), salePrice);
    }

    /**
     * @dev Widthraw balance on contact to msg sender
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function withdrawMoney()
        external
        onlyRole(_controlContract.getAdminRole())
    {
        address payable to = payable(_msgSender());
        to.transfer(address(this).balance);
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, and a queryable extenstion defined in {IERC721VF}.
 */
contract ERC721VF is Context, ERC165, IERC721, IERC721Metadata, IERC721VF {
    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;

    // The number of tokens minted
    uint256 private _mintCounter;

    // The number of tokens burned
    uint256 private _burnCounter;

    /**
     * @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 ||
            interfaceId == type(IERC721VF).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 = ERC721VF.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev See {IERC721VF-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        unchecked {
            return _mintCounter - _burnCounter;
        }
    }

    /**
     * @dev See {IERC721VF-totalMinted}.
     */
    function totalMinted() public view returns (uint256) {
        unchecked {
            return _mintCounter;
        }
    }

    /**
     * @dev See {IERC721VF-totalBurned}.
     */
    function totalBurned() public view returns (uint256) {
        unchecked {
            return _burnCounter;
        }
    }

    /**
     * @dev See {IERC721VF-tokensOfOwner}.
     */
    function tokensOfOwner(address owner)
        public
        view
        returns (uint256[] memory ownerTokens)
    {
        address currentOwnerAddress;
        uint256 tokenCount = balanceOf(owner);

        if (tokenCount == 0) {
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 resultIndex = 0;

            uint256 index;
            for (index = 0; resultIndex != tokenCount; index++) {
                currentOwnerAddress = _owners[index];
                if (currentOwnerAddress == owner) {
                    result[resultIndex++] = index;
                }
            }

            return result;
        }
    }

    /**
     * @dev See {IERC721VF-tokensOfOwnerIn}.
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 startIndex,
        uint256 endIndex
    ) public view returns (uint256[] memory ownerTokens) {
        address currentOwnerAddress;
        uint256 tokenCount = balanceOf(owner);

        if (tokenCount == 0) {
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 resultIndex = 0;

            uint256 index = startIndex;
            for (index; index <= endIndex; index++) {
                currentOwnerAddress = _owners[index];
                if (currentOwnerAddress == owner) {
                    result[resultIndex++] = index;
                }
            }

            // Downsize the array to fit.
            assembly {
                mstore(result, resultIndex)
            }

            return result;
        }
    }

    /**
     * @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 = ERC721VF.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 Safely batch mints tokens starting at `startTokenId` until `quantity` is met and transfers them 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.
     * - Transfer to only ERC721Reciever implementers
     *
     * Emits a {Transfer} event.
     */
    function _safeMintBatch(
        address to,
        uint256 quantity,
        uint256 startTokenId
    ) internal returns (uint256 endToken) {
        uint256 tokenId = startTokenId;
        for (uint256 i; i < quantity; i++) {
            require(to != address(0), "ERC721: mint to the zero address");
            require(!_exists(tokenId), "ERC721: token already minted");

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

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

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

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

            require(
                _checkOnERC721Received(address(0), to, tokenId, ""),
                "ERC721: transfer to non ERC721Receiver implementer"
            );

            tokenId++;
        }

        unchecked {
            _mintCounter += quantity;
        }

        return tokenId;
    }

    /**
     * @dev Batch mints tokens starting at `startTokenId` until `quantity` is met and transfers them 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 _mintBatch(
        address to,
        uint256 quantity,
        uint256 startTokenId
    ) internal returns (uint256 endToken) {
        uint256 tokenId = startTokenId;
        for (uint256 i; i < quantity; i++) {
            require(to != address(0), "ERC721: mint to the zero address");
            require(!_exists(tokenId), "ERC721: token already minted");

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

            _owners[tokenId] = to;

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

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

            tokenId++;
        }

        unchecked {
            _balances[to] += quantity;
            _mintCounter += quantity;
        }

        return tokenId;
    }

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

        unchecked {
            _mintCounter++;
        }

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

    function _burn(address from, uint256 tokenId) internal virtual {
        require(
            _isApprovedOrOwner(from, tokenId),
            "ERC721: transfer caller is not owner nor approved"
        );
        _burn(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 = ERC721VF.ownerOf(tokenId);

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

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

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

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

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

        unchecked {
            _burnCounter++;
        }
    }

    /**
     * @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(
            ERC721VF.ownerOf(tokenId) == from,
            "ERC721VF: transfer from incorrect owner"
        );
        require(to != address(0), "ERC721VF: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

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

File 3 of 18 : VFAccessControl.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "./IVFAccessControl.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract VFAccessControl is IVFAccessControl, Context, ERC165, ReentrancyGuard {
    //Struct for maintaining role information
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    //Role information
    mapping(bytes32 => RoleData) private _roles;

    //Admin role
    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
    //Token contract role
    bytes32 public constant TOKEN_CONTRACT_ROLE =
        keccak256("TOKEN_CONTRACT_ROLE");
    //Sales contract role
    bytes32 public constant SALES_CONTRACT_ROLE =
        keccak256("SALES_CONTRACT_ROLE");
    //Burner role
    bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");

    //Minter role
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    //Array of addresses that can mint
    address[] public minterAddresses;
    //Index of next minter in minterAddresses
    uint8 private _currentMinterIndex = 0;

    //Array of roles that can mint
    bytes32[] public minterRoles;

    /**
     * @dev Initializes the contract by assigning the msg sender the admin, minter,
     * and burner role. Along with adding the minter role and sales contract role
     * to the minter roles array.
     */
    constructor() {
        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _grantRole(MINTER_ROLE, _msgSender());
        _grantRole(BURNER_ROLE, _msgSender());
        minterRoles.push(MINTER_ROLE);
        minterRoles.push(SALES_CONTRACT_ROLE);
    }

    /**
     * @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(ERC165)
        returns (bool)
    {
        return
            interfaceId == type(IVFAccessControl).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IVFAccessControl-hasRole}.
     */
    function hasRole(bytes32 role, address account)
        public
        view
        virtual
        returns (bool)
    {
        return _roles[role].members[account];
    }

    /**
     * @dev See {IVFAccessControl-checkRole}.
     */
    function checkRole(bytes32 role, address account) public view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev See {IVFAccessControl-getAdminRole}.
     */
    function getAdminRole() external view virtual returns (bytes32) {
        return DEFAULT_ADMIN_ROLE;
    }

    /**
     * @dev See {IVFAccessControl-getTokenContractRole}.
     */
    function getTokenContractRole() external view virtual returns (bytes32) {
        return TOKEN_CONTRACT_ROLE;
    }

    /**
     * @dev See {IVFAccessControl-getSalesContractRole}.
     */
    function getSalesContractRole() external view virtual returns (bytes32) {
        return SALES_CONTRACT_ROLE;
    }

    /**
     * @dev See {IVFAccessControl-getBurnerRole}.
     */
    function getBurnerRole() external view virtual returns (bytes32) {
        return BURNER_ROLE;
    }

    /**
     * @dev See {IVFAccessControl-getMinterRole}.
     */
    function getMinterRole() external view virtual returns (bytes32) {
        return MINTER_ROLE;
    }

    /**
     * @dev See {IVFAccessControl-getMinterRoles}.
     */
    function getMinterRoles() external view virtual returns (bytes32[] memory) {
        return minterRoles;
    }

    /**
     * @dev See {IVFAccessControl-getRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev See {IVFAccessControl-grantRole}.
     */
    function grantRole(bytes32 role, address account)
        public
        virtual
        onlyRole(getRoleAdmin(role))
    {
        _grantRole(role, account);
    }

    /**
     * @dev See {IVFAccessControl-revokeRole}.
     */
    function revokeRole(bytes32 role, address account)
        external
        virtual
        onlyRole(getRoleAdmin(role))
    {
        _revokeRole(role, account);
    }

    /**
     * @dev See {IVFAccessControl-renounceRole}.
     */
    function renounceRole(bytes32 role, address account) external virtual {
        require(
            account == _msgSender(),
            "AccessControl: can only renounce roles for self"
        );

        _revokeRole(role, account);
    }

    /**
     * @dev See {IVFAccessControl-selectNextMinter}.
     */
    function selectNextMinter()
        external
        onlyRole(SALES_CONTRACT_ROLE)
        returns (address payable)
    {
        address nextMinter = minterAddresses[_currentMinterIndex];
        if (_currentMinterIndex + 1 < minterAddresses.length) {
            _currentMinterIndex++;
        } else {
            _currentMinterIndex = 0;
        }
        return payable(nextMinter);
    }

    /**
     * @dev See {IVFAccessControl-grantMinterRole}.
     */
    function grantMinterRole(address minter)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _grantRole(MINTER_ROLE, minter);
        minterAddresses.push(minter);
        _currentMinterIndex = 0;
    }

    /**
     * @dev See {IVFAccessControl-revokeMinterRole}.
     */
    function revokeMinterRole(address minter)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _revokeRole(MINTER_ROLE, minter);
        uint256 index;
        for (index = 0; index < minterAddresses.length; index++) {
            if (minter == minterAddresses[index]) {
                minterAddresses[index] = minterAddresses[
                    minterAddresses.length - 1
                ];
                break;
            }
        }
        minterAddresses.pop();
        _currentMinterIndex = 0;
    }

    /**
     * @dev See {IVFAccessControl-fundMinters}.
     */
    function fundMinters() external payable nonReentrant {
        uint256 totalMinters = minterAddresses.length;
        uint256 amount = msg.value / totalMinters;
        for (uint256 index = 0; index < totalMinters; index++) {
            payable(minterAddresses[index]).transfer(amount);
        }
    }

    /**
     * @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}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    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);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }

    /**
     * @dev Widthraw balance on contact to msg sender
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function withdrawMoney() external onlyRole(DEFAULT_ADMIN_ROLE) {
        address payable to = payable(_msgSender());
        to.transfer(address(this).balance);
    }
}

File 4 of 18 : IVFAccessControl.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IVFAccessControl {
    /**
     * @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 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) external view;

    /**
     * @dev Returns bytes of default admin role
     */
    function getAdminRole() external view returns (bytes32);

    /**
     * @dev Returns bytes of token contract role
     */
    function getTokenContractRole() external view returns (bytes32);

    /**
     * @dev Returns bytes of sales contract role
     */
    function getSalesContractRole() external view returns (bytes32);

    /**
     * @dev Returns bytes of burner role
     */
    function getBurnerRole() external view returns (bytes32);

    /**
     * @dev Returns bytes of minter role
     */
    function getMinterRole() external view returns (bytes32);

    /**
     * @dev Returns a bytes array of roles that can be minters
     */
    function getMinterRoles() external view returns (bytes32[] memory);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_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 revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;

    /**
     * @dev Selects the next minter from the minters array using the current minter index.
     * The current minter index should be incremented after each selection.  If the
     * current minter index + 1 is equal to the minters array length then the current
     * minter index should be set back to 0
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function selectNextMinter() external returns (address payable);

    /**
     * @dev Grants `minter` minter role and adds `minter` to minters array
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function grantMinterRole(address minter) external;

    /**
     * @dev Revokes minter role from `minter` and removes `minter` from minters array
     *
     * Requirements:
     *
     * - the caller must be an admin role
     */
    function revokeMinterRole(address minter) external;

    /**
     * @dev Distributes ETH evenly to all addresses in minters array
     */
    function fundMinters() external payable;
}

File 5 of 18 : VFRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "./IVFRoyalties.sol";
import "./VFAccessControl.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

contract VFRoyalties is IVFRoyalties, Context, ERC165 {
    //Struct for maintaining royalty information
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    //Default royalty informations
    RoyaltyInfo private _defaultRoyaltyInfo;

    //Contract address to royalty information map
    mapping(address => RoyaltyInfo) private _contractRoyalInfo;

    //Contract for function access control
    VFAccessControl private _controlContract;

    /**
     * @dev Initializes the contract by setting a `controlContractAddress`, `defaultReceiver`,
     * and `defaultFeeNumerator` for the royalties contract.
     */
    constructor(
        address controlContractAddress,
        address defaultReceiver,
        uint96 defaultFeeNumerator
    ) {
        _controlContract = VFAccessControl(controlContractAddress);
        setDefaultRoyalty(defaultReceiver, defaultFeeNumerator);
    }

    modifier onlyRole(bytes32 role) {
        _controlContract.checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev See {IVFRoyalties-setControlContract}.
     */
    function setControlContract(address controlContractAddress)
        external
        onlyRole(_controlContract.getAdminRole())
    {
        require(
            IERC165(controlContractAddress).supportsInterface(
                type(IVFAccessControl).interfaceId
            ),
            "Contract does not support required interface"
        );
        _controlContract = VFAccessControl(controlContractAddress);
    }

    /**
     * @dev See {IVFRoyalties-royaltyInfo}.
     */
    function royaltyInfo(
        uint256,
        address contractAddress,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount) {
        RoyaltyInfo memory contractRoyaltyInfo = _contractRoyalInfo[
            contractAddress
        ];

        if (contractRoyaltyInfo.receiver == address(0)) {
            contractRoyaltyInfo = _defaultRoyaltyInfo;
        }

        royaltyAmount =
            (salePrice * contractRoyaltyInfo.royaltyFraction) /
            _feeDenominator();

        return (contractRoyaltyInfo.receiver, royaltyAmount);
    }

    /**
     * @dev See {IVFRoyalties-setDefaultRoyalty}.
     */
    function setDefaultRoyalty(address receiver, uint96 feeNumerator)
        public
        virtual
        onlyRole(_controlContract.getAdminRole())
    {
        require(
            feeNumerator <= _feeDenominator(),
            "ERC2981: royalty fee will exceed salePrice"
        );
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev See {IVFRoyalties-deleteDefaultRoyalty}.
     */
    function deleteDefaultRoyalty()
        external
        virtual
        onlyRole(_controlContract.getAdminRole())
    {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev See {IVFRoyalties-setContractRoyalties}.
     */
    function setContractRoyalties(
        address contractAddress,
        address receiver,
        uint96 feeNumerator
    ) external onlyRole(_controlContract.getAdminRole()) {
        require(
            feeNumerator <= _feeDenominator(),
            "ERC2981: royalty fee will exceed salePrice"
        );
        require(receiver != address(0), "ERC2981: invalid receiver");

        _contractRoyalInfo[contractAddress] = RoyaltyInfo(
            receiver,
            feeNumerator
        );
    }

    /**
     * @dev See {IVFRoyalties-resetContractRoyalty}.
     */
    function resetContractRoyalty(address contractAddress)
        external
        virtual
        onlyRole(_controlContract.getAdminRole())
    {
        delete _contractRoyalInfo[contractAddress];
    }

    /**
     * @dev Get the fee denominator
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }
}

File 6 of 18 : IVFRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IVFRoyalties {
    /**
     * @dev Update the access control contract
     *
     * Requirements:
     *
     * - the caller must be an admin role
     * - `controlContractAddress` must support the IVFAccesControl interface
     */
    function setControlContract(address controlContractAddress) external;

    /**
     * @dev Get royalty information for a contract based on the `salePrice` of a token
     */
    function royaltyInfo(
        uint256,
        address contractAddress,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount);

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function setDefaultRoyalty(address receiver, uint96 feeNumerator) external;

    /**
     * @dev Removes default royalty information.
     */
    function deleteDefaultRoyalty() external;

    /**
     * @dev Sets the royalty information for `contractAddress`.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function setContractRoyalties(
        address contractAddress,
        address receiver,
        uint96 feeNumerator
    ) external;

    /**
     * @dev Removes royalty information for `contractAddress`.
     */
    function resetContractRoyalty(address contractAddress) external;
}

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

pragma solidity ^0.8.0;

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

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

File 8 of 18 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 9 of 18 : IERC721VF.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IERC721VF {
    /**
     * @dev Burned tokens are calculated here, use totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function totalMinted() external view returns (uint256);

    /**
     * Returns the total amount of tokens burned in the contract.
     */
    function totalBurned() external view returns (uint256);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner)
        external
        view
        returns (uint256[] memory ownerTokens);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 startIndex,
        uint256 endIndex
    ) external view returns (uint256[] memory ownerTokens);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 18 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"initialBaseUri","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"controlContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint16[]","name":"quantities","type":"uint16[]"},{"internalType":"uint256","name":"startTokenId","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","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":"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":"isBurnActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMintingPermanently","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"quantity","type":"uint8"},{"internalType":"uint256","name":"startTokenId","type":"uint256"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintingPermanentlyLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint16[]","name":"quantities","type":"uint16[]"},{"internalType":"uint256","name":"startTokenId","type":"uint256"}],"name":"safeAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"quantity","type":"uint8"},{"internalType":"uint256","name":"startTokenId","type":"uint256"}],"name":"safeMintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"controlContractAddress","type":"address"}],"name":"setControlContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltiesContractAddress","type":"address"}],"name":"setRoyaltiesContract","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":"toggleBurnActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"ownerTokens","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"endIndex","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"ownerTokens","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600960006101000a81548160ff0219169083151502179055506000600960016101000a81548160ff0219169083151502179055506000600960026101000a81548160ff0219169083151502179055503480156200006257600080fd5b50604051620066f5380380620066f5833981810160405281019062000088919062000535565b82828160009080519060200190620000a292919062000283565b508060019080519060200190620000bb92919062000283565b50505080600960036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000110846200011a60201b60201c565b5050505062000725565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b1580156200018357600080fd5b505afa15801562000198573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001be91906200063f565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad826200020d6200027b60201b60201c565b6040518363ffffffff1660e01b81526004016200022c92919062000693565b60006040518083038186803b1580156200024557600080fd5b505afa1580156200025a573d6000803e3d6000fd5b5050505081600890805190602001906200027692919062000283565b505050565b600033905090565b8280546200029190620006ef565b90600052602060002090601f016020900481019282620002b5576000855562000301565b82601f10620002d057805160ff191683800117855562000301565b8280016001018555821562000301579182015b8281111562000300578251825591602001919060010190620002e3565b5b50905062000310919062000314565b5090565b5b808211156200032f57600081600090555060010162000315565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200039c8262000351565b810181811067ffffffffffffffff82111715620003be57620003bd62000362565b5b80604052505050565b6000620003d362000333565b9050620003e1828262000391565b919050565b600067ffffffffffffffff82111562000404576200040362000362565b5b6200040f8262000351565b9050602081019050919050565b60005b838110156200043c5780820151818401526020810190506200041f565b838111156200044c576000848401525b50505050565b6000620004696200046384620003e6565b620003c7565b9050828152602081018484840111156200048857620004876200034c565b5b620004958482856200041c565b509392505050565b600082601f830112620004b557620004b462000347565b5b8151620004c784826020860162000452565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004fd82620004d0565b9050919050565b6200050f81620004f0565b81146200051b57600080fd5b50565b6000815190506200052f8162000504565b92915050565b600080600080608085870312156200055257620005516200033d565b5b600085015167ffffffffffffffff81111562000573576200057262000342565b5b62000581878288016200049d565b945050602085015167ffffffffffffffff811115620005a557620005a462000342565b5b620005b3878288016200049d565b935050604085015167ffffffffffffffff811115620005d757620005d662000342565b5b620005e5878288016200049d565b9250506060620005f8878288016200051e565b91505092959194509250565b6000819050919050565b620006198162000604565b81146200062557600080fd5b50565b60008151905062000639816200060e565b92915050565b6000602082840312156200065857620006576200033d565b5b6000620006688482850162000628565b91505092915050565b6200067c8162000604565b82525050565b6200068d81620004f0565b82525050565b6000604082019050620006aa600083018562000671565b620006b9602083018462000682565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200070857607f821691505b602082108114156200071f576200071e620006c0565b5b50919050565b615fc080620007356000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c80638462151c11610125578063b1a6676e116100ad578063ca35e8a01161007c578063ca35e8a0146105fc578063d02c2bf214610618578063d89135cd14610622578063e985e9c514610640578063f5e92b95146106705761021c565b8063b1a6676e14610588578063b88d4fde146105a6578063bb7648b6146105c2578063c87b56dd146105cc5761021c565b8063a1448194116100f4578063a14481941461050c578063a22cb46514610528578063a2309ff814610544578063ac44600214610562578063b166da421461056c5761021c565b80638462151c1461047257806395d89b41146104a257806399a2557a146104c05780639dc29fac146104f05761021c565b806340c10f19116101a857806355f804b31161017757806355f804b3146103ce5780635b92ac0d146103ea5780635bc0997c146104085780636352211e1461041257806370a08231146104425761021c565b806340c10f191461035e57806342842e0e1461037a578063454490be1461039657806349324be1146103b25761021c565b806318160ddd116101ef57806318160ddd146102bb57806323b872dd146102d957806324e8b6fc146102f55780632a55205a146103115780633c96aef5146103425761021c565b806301ffc9a71461022157806306fdde0314610251578063081812fc1461026f578063095ea7b31461029f575b600080fd5b61023b60048036038101906102369190614459565b61068e565b60405161024891906144a1565b60405180910390f35b6102596107d8565b6040516102669190614555565b60405180910390f35b610289600480360381019061028491906145ad565b61086a565b604051610296919061461b565b60405180910390f35b6102b960048036038101906102b49190614662565b6108ef565b005b6102c3610a07565b6040516102d091906146b1565b60405180910390f35b6102f360048036038101906102ee91906146cc565b610a15565b005b61030f600480360381019061030a9190614964565b610a75565b005b61032b600480360381019061032691906149ef565b610dad565b604051610339929190614a2f565b60405180910390f35b61035c60048036038101906103579190614a91565b610e69565b005b61037860048036038101906103739190614662565b611107565b005b610394600480360381019061038f91906146cc565b61139f565b005b6103b060048036038101906103ab9190614964565b6113bf565b005b6103cc60048036038101906103c79190614a91565b6116f7565b005b6103e860048036038101906103e39190614b99565b611995565b005b6103f2611ae4565b6040516103ff91906144a1565b60405180910390f35b610410611af7565b005b61042c600480360381019061042791906145ad565b611c58565b604051610439919061461b565b60405180910390f35b61045c60048036038101906104579190614be2565b611d0a565b60405161046991906146b1565b60405180910390f35b61048c60048036038101906104879190614be2565b611dc2565b6040516104999190614ccd565b60405180910390f35b6104aa611f3e565b6040516104b79190614555565b60405180910390f35b6104da60048036038101906104d59190614cef565b611fd0565b6040516104e79190614ccd565b60405180910390f35b61050a60048036038101906105059190614662565b612154565b005b61052660048036038101906105219190614662565b6122e6565b005b610542600480360381019061053d9190614d6e565b61257e565b005b61054c612594565b60405161055991906146b1565b60405180910390f35b61056a61259e565b005b61058660048036038101906105819190614be2565b612729565b005b61059061298a565b60405161059d91906144a1565b60405180910390f35b6105c060048036038101906105bb9190614e4f565b61299d565b005b6105ca6129ff565b005b6105e660048036038101906105e191906145ad565b612b51565b6040516105f39190614555565b60405180910390f35b61061660048036038101906106119190614be2565b612bf8565b005b610620612e59565b005b61062a612fba565b60405161063791906146b1565b60405180910390f35b61065a60048036038101906106559190614ed2565b612fc4565b60405161066791906144a1565b60405180910390f35b610678613058565b60405161068591906144a1565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061075957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107c157507f7f77e78e000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107d157506107d08261306b565b5b9050919050565b6060600080546107e790614f41565b80601f016020809104026020016040519081016040528092919081815260200182805461081390614f41565b80156108605780601f1061083557610100808354040283529160200191610860565b820191906000526020600020905b81548152906001019060200180831161084357829003601f168201915b5050505050905090565b6000610875826130d5565b6108b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ab90614fe5565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108fa82611c58565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561096b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096290615077565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661098a613141565b73ffffffffffffffffffffffffffffffffffffffff1614806109b957506109b8816109b3613141565b612fc4565b5b6109f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ef90615109565b60405180910390fd5b610a028383613149565b505050565b600060075460065403905090565b610a26610a20613141565b82613202565b610a65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5c9061519b565b60405180910390fd5b610a708383836132e0565b505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd5adf0c6040518163ffffffff1660e01b815260040160006040518083038186803b158015610add57600080fd5b505afa158015610af1573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610b1a91906152b4565b6000805b8251811015610c1d576000838281518110610b3c57610b3b6152fd565b5b60200260200101519050600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d1485482610b8d613141565b6040518363ffffffff1660e01b8152600401610baa92919061533b565b60206040518083038186803b158015610bc257600080fd5b505afa158015610bd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfa9190615379565b15610c09576001925050610c1d565b508080610c15906153d5565b915050610b1e565b5080610c5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c559061546a565b60405180910390fd5b600960009054906101000a900460ff1615610cae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca5906154d6565b60405180910390fd5b600960019054906101000a900460ff16610cfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf490615542565b60405180910390fd5b8351855114610d41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d38906155d4565b60405180910390fd5b60005b8551811015610da557610d90868281518110610d6357610d626152fd565b5b6020026020010151868381518110610d7e57610d7d6152fd565b5b602002602001015161ffff1686613547565b93508080610d9d906153d5565b915050610d44565b505050505050565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b8ca29d58530866040518463ffffffff1660e01b8152600401610e0f939291906155f4565b604080518083038186803b158015610e2657600080fd5b505afa158015610e3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5e9190615655565b915091509250929050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd5adf0c6040518163ffffffff1660e01b815260040160006040518083038186803b158015610ed157600080fd5b505afa158015610ee5573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610f0e91906152b4565b6000805b8251811015611011576000838281518110610f3057610f2f6152fd565b5b60200260200101519050600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d1485482610f81613141565b6040518363ffffffff1660e01b8152600401610f9e92919061533b565b60206040518083038186803b158015610fb657600080fd5b505afa158015610fca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fee9190615379565b15610ffd576001925050611011565b508080611009906153d5565b915050610f12565b5080611052576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110499061546a565b60405180910390fd5b600960009054906101000a900460ff16156110a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611099906154d6565b60405180910390fd5b600960019054906101000a900460ff166110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e890615542565b60405180910390fd5b6110ff858560ff1685613761565b505050505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd5adf0c6040518163ffffffff1660e01b815260040160006040518083038186803b15801561116f57600080fd5b505afa158015611183573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906111ac91906152b4565b6000805b82518110156112af5760008382815181106111ce576111cd6152fd565b5b60200260200101519050600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148548261121f613141565b6040518363ffffffff1660e01b815260040161123c92919061533b565b60206040518083038186803b15801561125457600080fd5b505afa158015611268573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128c9190615379565b1561129b5760019250506112af565b5080806112a7906153d5565b9150506111b0565b50806112f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e79061546a565b60405180910390fd5b600960009054906101000a900460ff1615611340576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611337906154d6565b60405180910390fd5b600960019054906101000a900460ff1661138f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138690615542565b60405180910390fd5b61139984846139e0565b50505050565b6113ba8383836040518060200160405280600081525061299d565b505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd5adf0c6040518163ffffffff1660e01b815260040160006040518083038186803b15801561142757600080fd5b505afa15801561143b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061146491906152b4565b6000805b8251811015611567576000838281518110611486576114856152fd565b5b60200260200101519050600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d14854826114d7613141565b6040518363ffffffff1660e01b81526004016114f492919061533b565b60206040518083038186803b15801561150c57600080fd5b505afa158015611520573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115449190615379565b15611553576001925050611567565b50808061155f906153d5565b915050611468565b50806115a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159f9061546a565b60405180910390fd5b600960009054906101000a900460ff16156115f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ef906154d6565b60405180910390fd5b600960019054906101000a900460ff16611647576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163e90615542565b60405180910390fd5b835185511461168b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611682906155d4565b60405180910390fd5b60005b85518110156116ef576116da8682815181106116ad576116ac6152fd565b5b60200260200101518683815181106116c8576116c76152fd565b5b602002602001015161ffff1686613761565b935080806116e7906153d5565b91505061168e565b505050505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd5adf0c6040518163ffffffff1660e01b815260040160006040518083038186803b15801561175f57600080fd5b505afa158015611773573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061179c91906152b4565b6000805b825181101561189f5760008382815181106117be576117bd6152fd565b5b60200260200101519050600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148548261180f613141565b6040518363ffffffff1660e01b815260040161182c92919061533b565b60206040518083038186803b15801561184457600080fd5b505afa158015611858573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061187c9190615379565b1561188b57600192505061189f565b508080611897906153d5565b9150506117a0565b50806118e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d79061546a565b60405180910390fd5b600960009054906101000a900460ff1615611930576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611927906154d6565b60405180910390fd5b600960019054906101000a900460ff1661197f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197690615542565b60405180910390fd5b61198d858560ff1685613547565b505050505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b1580156119fd57600080fd5b505afa158015611a11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a359190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82611a7c613141565b6040518363ffffffff1660e01b8152600401611a9992919061533b565b60006040518083038186803b158015611ab157600080fd5b505afa158015611ac5573d6000803e3d6000fd5b505050508160089080519060200190611adf92919061434a565b505050565b600960019054906101000a900460ff1681565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b158015611b5f57600080fd5b505afa158015611b73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b979190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82611bde613141565b6040518363ffffffff1660e01b8152600401611bfb92919061533b565b60006040518083038186803b158015611c1357600080fd5b505afa158015611c27573d6000803e3d6000fd5b50505050600960029054906101000a900460ff1615600960026101000a81548160ff02191690831515021790555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf890615734565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d72906157c6565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600080611dd084611d0a565b90506000811415611e2e57600067ffffffffffffffff811115611df657611df5614724565b5b604051908082528060200260200182016040528015611e245781602001602082028036833780820191505090505b5092505050611f39565b60008167ffffffffffffffff811115611e4a57611e49614724565b5b604051908082528060200260200182016040528015611e785781602001602082028036833780820191505090505b5090506000805b838214611f30576002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1694508673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611f1d5780838380611efd906153d5565b945081518110611f1057611f0f6152fd565b5b6020026020010181815250505b8080611f28906153d5565b915050611e7f565b82955050505050505b919050565b606060018054611f4d90614f41565b80601f0160208091040260200160405190810160405280929190818152602001828054611f7990614f41565b8015611fc65780601f10611f9b57610100808354040283529160200191611fc6565b820191906000526020600020905b815481529060010190602001808311611fa957829003601f168201915b5050505050905090565b6060600080611fde86611d0a565b9050600081141561203c57600067ffffffffffffffff81111561200457612003614724565b5b6040519080825280602002602001820160405280156120325781602001602082028036833780820191505090505b509250505061214d565b60008167ffffffffffffffff81111561205857612057614724565b5b6040519080825280602002602001820160405280156120865781602001602082028036833780820191505090505b5090506000808790505b868111612141576002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1694508873ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561212e578083838061210e906153d5565b945081518110612121576121206152fd565b5b6020026020010181815250505b8080612139906153d5565b915050612090565b81835282955050505050505b9392505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c5b66dc96040518163ffffffff1660e01b815260040160206040518083038186803b1580156121bc57600080fd5b505afa1580156121d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f49190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad8261223b613141565b6040518363ffffffff1660e01b815260040161225892919061533b565b60006040518083038186803b15801561227057600080fd5b505afa158015612284573d6000803e3d6000fd5b50505050600960029054906101000a900460ff166122d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ce90615832565b60405180910390fd5b6122e18383613bcc565b505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd5adf0c6040518163ffffffff1660e01b815260040160006040518083038186803b15801561234e57600080fd5b505afa158015612362573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061238b91906152b4565b6000805b825181101561248e5760008382815181106123ad576123ac6152fd565b5b60200260200101519050600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d14854826123fe613141565b6040518363ffffffff1660e01b815260040161241b92919061533b565b60206040518083038186803b15801561243357600080fd5b505afa158015612447573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061246b9190615379565b1561247a57600192505061248e565b508080612486906153d5565b91505061238f565b50806124cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c69061546a565b60405180910390fd5b600960009054906101000a900460ff161561251f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612516906154d6565b60405180910390fd5b600960019054906101000a900460ff1661256e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256590615542565b60405180910390fd5b6125788484613c22565b50505050565b612590612589613141565b8383613c40565b5050565b6000600654905090565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b15801561260657600080fd5b505afa15801561261a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061263e9190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82612685613141565b6040518363ffffffff1660e01b81526004016126a292919061533b565b60006040518083038186803b1580156126ba57600080fd5b505afa1580156126ce573d6000803e3d6000fd5b5050505060006126dc613141565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015612724573d6000803e3d6000fd5b505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b15801561279157600080fd5b505afa1580156127a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127c99190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82612810613141565b6040518363ffffffff1660e01b815260040161282d92919061533b565b60006040518083038186803b15801561284557600080fd5b505afa158015612859573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f84648494000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004016128b69190615861565b60206040518083038186803b1580156128ce57600080fd5b505afa1580156128e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129069190615379565b612945576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293c906158ee565b60405180910390fd5b81600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600960029054906101000a900460ff1681565b6129ae6129a8613141565b83613202565b6129ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129e49061519b565b60405180910390fd5b6129f984848484613dad565b50505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b158015612a6757600080fd5b505afa158015612a7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a9f9190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82612ae6613141565b6040518363ffffffff1660e01b8152600401612b0392919061533b565b60006040518083038186803b158015612b1b57600080fd5b505afa158015612b2f573d6000803e3d6000fd5b505050506001600960006101000a81548160ff02191690831515021790555050565b6060612b5c826130d5565b612b9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9290615980565b60405180910390fd5b6000612ba5613e09565b90506000815111612bc55760405180602001604052806000815250612bf0565b80612bcf84613e9b565b604051602001612be09291906159dc565b6040516020818303038152906040525b915050919050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b158015612c6057600080fd5b505afa158015612c74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c989190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82612cdf613141565b6040518363ffffffff1660e01b8152600401612cfc92919061533b565b60006040518083038186803b158015612d1457600080fd5b505afa158015612d28573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f0b7162d4000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401612d859190615861565b60206040518083038186803b158015612d9d57600080fd5b505afa158015612db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dd59190615379565b612e14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e0b906158ee565b60405180910390fd5b81600960036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b158015612ec157600080fd5b505afa158015612ed5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ef99190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82612f40613141565b6040518363ffffffff1660e01b8152600401612f5d92919061533b565b60006040518083038186803b158015612f7557600080fd5b505afa158015612f89573d6000803e3d6000fd5b50505050600960019054906101000a900460ff1615600960016101000a81548160ff02191690831515021790555050565b6000600754905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600960009054906101000a900460ff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166131bc83611c58565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061320d826130d5565b61324c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324390615a72565b60405180910390fd5b600061325783611c58565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806132c657508373ffffffffffffffffffffffffffffffffffffffff166132ae8461086a565b73ffffffffffffffffffffffffffffffffffffffff16145b806132d757506132d68185612fc4565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661330082611c58565b73ffffffffffffffffffffffffffffffffffffffff1614613356576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161334d90615b04565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133bd90615b96565b60405180910390fd5b6133d1838383613ffc565b6133dc600082613149565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461342c9190615bb6565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134839190615bea565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613542838383614001565b505050565b60008082905060005b848110156136f857600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156135c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135bf90615c8c565b60405180910390fd5b6135d1826130d5565b15613611576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161360890615cf8565b60405180910390fd5b61361d60008784613ffc565b856002600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46136d760008784614001565b81806136e2906153d5565b92505080806136f0906153d5565b915050613550565b5083600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555083600660008282540192505081905550809150509392505050565b60008082905060005b848110156139c457600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156137e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137d990615c8c565b60405180910390fd5b6137eb826130d5565b1561382b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161382290615cf8565b60405180910390fd5b61383760008784613ffc565b6001600360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546138879190615bea565b92505081905550856002600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461394860008784614001565b6139646000878460405180602001604052806000815250614006565b6139a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161399a90615d8a565b60405180910390fd5b81806139ae906153d5565b92505080806139bc906153d5565b91505061376a565b5083600660008282540192505081905550809150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a4790615c8c565b60405180910390fd5b613a59816130d5565b15613a99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a9090615cf8565b60405180910390fd5b613aa560008383613ffc565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613af59190615bea565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600660008154809291906001019190505550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613bc860008383614001565b5050565b613bd68282613202565b613c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c0c9061519b565b60405180910390fd5b613c1e8161419d565b5050565b613c3c8282604051806020016040528060008152506142cc565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613caf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ca690615df6565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051613da091906144a1565b60405180910390a3505050565b613db88484846132e0565b613dc484848484614006565b613e03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dfa90615d8a565b60405180910390fd5b50505050565b606060088054613e1890614f41565b80601f0160208091040260200160405190810160405280929190818152602001828054613e4490614f41565b8015613e915780601f10613e6657610100808354040283529160200191613e91565b820191906000526020600020905b815481529060010190602001808311613e7457829003601f168201915b5050505050905090565b60606000821415613ee3576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613ff7565b600082905060005b60008214613f15578080613efe906153d5565b915050600a82613f0e9190615e45565b9150613eeb565b60008167ffffffffffffffff811115613f3157613f30614724565b5b6040519080825280601f01601f191660200182016040528015613f635781602001600182028036833780820191505090505b5090505b60008514613ff057600182613f7c9190615bb6565b9150600a85613f8b9190615e76565b6030613f979190615bea565b60f81b818381518110613fad57613fac6152fd565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613fe99190615e45565b9450613f67565b8093505050505b919050565b505050565b505050565b60006140278473ffffffffffffffffffffffffffffffffffffffff16614327565b15614190578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02614050613141565b8786866040518563ffffffff1660e01b81526004016140729493929190615efc565b602060405180830381600087803b15801561408c57600080fd5b505af19250505080156140bd57506040513d601f19601f820116820180604052508101906140ba9190615f5d565b60015b614140573d80600081146140ed576040519150601f19603f3d011682016040523d82523d6000602084013e6140f2565b606091505b50600081511415614138576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161412f90615d8a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050614195565b600190505b949350505050565b60006141a882611c58565b90506141b681600084613ffc565b6141c1600083613149565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546142119190615bb6565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46142b681600084614001565b6007600081548092919060010191905055505050565b6142d683836139e0565b6142e36000848484614006565b614322576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161431990615d8a565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b82805461435690614f41565b90600052602060002090601f01602090048101928261437857600085556143bf565b82601f1061439157805160ff19168380011785556143bf565b828001600101855582156143bf579182015b828111156143be5782518255916020019190600101906143a3565b5b5090506143cc91906143d0565b5090565b5b808211156143e95760008160009055506001016143d1565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61443681614401565b811461444157600080fd5b50565b6000813590506144538161442d565b92915050565b60006020828403121561446f5761446e6143f7565b5b600061447d84828501614444565b91505092915050565b60008115159050919050565b61449b81614486565b82525050565b60006020820190506144b66000830184614492565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156144f65780820151818401526020810190506144db565b83811115614505576000848401525b50505050565b6000601f19601f8301169050919050565b6000614527826144bc565b61453181856144c7565b93506145418185602086016144d8565b61454a8161450b565b840191505092915050565b6000602082019050818103600083015261456f818461451c565b905092915050565b6000819050919050565b61458a81614577565b811461459557600080fd5b50565b6000813590506145a781614581565b92915050565b6000602082840312156145c3576145c26143f7565b5b60006145d184828501614598565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614605826145da565b9050919050565b614615816145fa565b82525050565b6000602082019050614630600083018461460c565b92915050565b61463f816145fa565b811461464a57600080fd5b50565b60008135905061465c81614636565b92915050565b60008060408385031215614679576146786143f7565b5b60006146878582860161464d565b925050602061469885828601614598565b9150509250929050565b6146ab81614577565b82525050565b60006020820190506146c660008301846146a2565b92915050565b6000806000606084860312156146e5576146e46143f7565b5b60006146f38682870161464d565b93505060206147048682870161464d565b925050604061471586828701614598565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61475c8261450b565b810181811067ffffffffffffffff8211171561477b5761477a614724565b5b80604052505050565b600061478e6143ed565b905061479a8282614753565b919050565b600067ffffffffffffffff8211156147ba576147b9614724565b5b602082029050602081019050919050565b600080fd5b60006147e36147de8461479f565b614784565b90508083825260208201905060208402830185811115614806576148056147cb565b5b835b8181101561482f578061481b888261464d565b845260208401935050602081019050614808565b5050509392505050565b600082601f83011261484e5761484d61471f565b5b813561485e8482602086016147d0565b91505092915050565b600067ffffffffffffffff82111561488257614881614724565b5b602082029050602081019050919050565b600061ffff82169050919050565b6148aa81614893565b81146148b557600080fd5b50565b6000813590506148c7816148a1565b92915050565b60006148e06148db84614867565b614784565b90508083825260208201905060208402830185811115614903576149026147cb565b5b835b8181101561492c578061491888826148b8565b845260208401935050602081019050614905565b5050509392505050565b600082601f83011261494b5761494a61471f565b5b813561495b8482602086016148cd565b91505092915050565b60008060006060848603121561497d5761497c6143f7565b5b600084013567ffffffffffffffff81111561499b5761499a6143fc565b5b6149a786828701614839565b935050602084013567ffffffffffffffff8111156149c8576149c76143fc565b5b6149d486828701614936565b92505060406149e586828701614598565b9150509250925092565b60008060408385031215614a0657614a056143f7565b5b6000614a1485828601614598565b9250506020614a2585828601614598565b9150509250929050565b6000604082019050614a44600083018561460c565b614a5160208301846146a2565b9392505050565b600060ff82169050919050565b614a6e81614a58565b8114614a7957600080fd5b50565b600081359050614a8b81614a65565b92915050565b600080600060608486031215614aaa57614aa96143f7565b5b6000614ab88682870161464d565b9350506020614ac986828701614a7c565b9250506040614ada86828701614598565b9150509250925092565b600080fd5b600067ffffffffffffffff821115614b0457614b03614724565b5b614b0d8261450b565b9050602081019050919050565b82818337600083830152505050565b6000614b3c614b3784614ae9565b614784565b905082815260208101848484011115614b5857614b57614ae4565b5b614b63848285614b1a565b509392505050565b600082601f830112614b8057614b7f61471f565b5b8135614b90848260208601614b29565b91505092915050565b600060208284031215614baf57614bae6143f7565b5b600082013567ffffffffffffffff811115614bcd57614bcc6143fc565b5b614bd984828501614b6b565b91505092915050565b600060208284031215614bf857614bf76143f7565b5b6000614c068482850161464d565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614c4481614577565b82525050565b6000614c568383614c3b565b60208301905092915050565b6000602082019050919050565b6000614c7a82614c0f565b614c848185614c1a565b9350614c8f83614c2b565b8060005b83811015614cc0578151614ca78882614c4a565b9750614cb283614c62565b925050600181019050614c93565b5085935050505092915050565b60006020820190508181036000830152614ce78184614c6f565b905092915050565b600080600060608486031215614d0857614d076143f7565b5b6000614d168682870161464d565b9350506020614d2786828701614598565b9250506040614d3886828701614598565b9150509250925092565b614d4b81614486565b8114614d5657600080fd5b50565b600081359050614d6881614d42565b92915050565b60008060408385031215614d8557614d846143f7565b5b6000614d938582860161464d565b9250506020614da485828601614d59565b9150509250929050565b600067ffffffffffffffff821115614dc957614dc8614724565b5b614dd28261450b565b9050602081019050919050565b6000614df2614ded84614dae565b614784565b905082815260208101848484011115614e0e57614e0d614ae4565b5b614e19848285614b1a565b509392505050565b600082601f830112614e3657614e3561471f565b5b8135614e46848260208601614ddf565b91505092915050565b60008060008060808587031215614e6957614e686143f7565b5b6000614e778782880161464d565b9450506020614e888782880161464d565b9350506040614e9987828801614598565b925050606085013567ffffffffffffffff811115614eba57614eb96143fc565b5b614ec687828801614e21565b91505092959194509250565b60008060408385031215614ee957614ee86143f7565b5b6000614ef78582860161464d565b9250506020614f088582860161464d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614f5957607f821691505b60208210811415614f6d57614f6c614f12565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614fcf602c836144c7565b9150614fda82614f73565b604082019050919050565b60006020820190508181036000830152614ffe81614fc2565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006150616021836144c7565b915061506c82615005565b604082019050919050565b6000602082019050818103600083015261509081615054565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006150f36038836144c7565b91506150fe82615097565b604082019050919050565b60006020820190508181036000830152615122816150e6565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006151856031836144c7565b915061519082615129565b604082019050919050565b600060208201905081810360008301526151b481615178565b9050919050565b600067ffffffffffffffff8211156151d6576151d5614724565b5b602082029050602081019050919050565b6000819050919050565b6151fa816151e7565b811461520557600080fd5b50565b600081519050615217816151f1565b92915050565b600061523061522b846151bb565b614784565b90508083825260208201905060208402830185811115615253576152526147cb565b5b835b8181101561527c57806152688882615208565b845260208401935050602081019050615255565b5050509392505050565b600082601f83011261529b5761529a61471f565b5b81516152ab84826020860161521d565b91505092915050565b6000602082840312156152ca576152c96143f7565b5b600082015167ffffffffffffffff8111156152e8576152e76143fc565b5b6152f484828501615286565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b615335816151e7565b82525050565b6000604082019050615350600083018561532c565b61535d602083018461460c565b9392505050565b60008151905061537381614d42565b92915050565b60006020828403121561538f5761538e6143f7565b5b600061539d84828501615364565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006153e082614577565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615413576154126153a6565b5b600182019050919050565b7f4d697373696e6720726571756972656420726f6c650000000000000000000000600082015250565b60006154546015836144c7565b915061545f8261541e565b602082019050919050565b6000602082019050818103600083015261548381615447565b9050919050565b7f4d696e74696e67207065726d616e656e746c79206c6f636b6564000000000000600082015250565b60006154c0601a836144c7565b91506154cb8261548a565b602082019050919050565b600060208201905081810360008301526154ef816154b3565b9050919050565b7f4d696e74206973206e6f74206163746976650000000000000000000000000000600082015250565b600061552c6012836144c7565b9150615537826154f6565b602082019050919050565b6000602082019050818103600083015261555b8161551f565b9050919050565b7f4164647265737320616e64207175616e746974696573206e65656420746f206260008201527f6520657175616c206c656e677468000000000000000000000000000000000000602082015250565b60006155be602e836144c7565b91506155c982615562565b604082019050919050565b600060208201905081810360008301526155ed816155b1565b9050919050565b600060608201905061560960008301866146a2565b615616602083018561460c565b61562360408301846146a2565b949350505050565b60008151905061563a81614636565b92915050565b60008151905061564f81614581565b92915050565b6000806040838503121561566c5761566b6143f7565b5b600061567a8582860161562b565b925050602061568b85828601615640565b9150509250929050565b6000602082840312156156ab576156aa6143f7565b5b60006156b984828501615208565b91505092915050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b600061571e6029836144c7565b9150615729826156c2565b604082019050919050565b6000602082019050818103600083015261574d81615711565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006157b0602a836144c7565b91506157bb82615754565b604082019050919050565b600060208201905081810360008301526157df816157a3565b9050919050565b7f4275726e206973206e6f74206163746976650000000000000000000000000000600082015250565b600061581c6012836144c7565b9150615827826157e6565b602082019050919050565b6000602082019050818103600083015261584b8161580f565b9050919050565b61585b81614401565b82525050565b60006020820190506158766000830184615852565b92915050565b7f436f6e747261637420646f6573206e6f7420737570706f72742072657175697260008201527f656420696e746572666163650000000000000000000000000000000000000000602082015250565b60006158d8602c836144c7565b91506158e38261587c565b604082019050919050565b60006020820190508181036000830152615907816158cb565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061596a602f836144c7565b91506159758261590e565b604082019050919050565b600060208201905081810360008301526159998161595d565b9050919050565b600081905092915050565b60006159b6826144bc565b6159c081856159a0565b93506159d08185602086016144d8565b80840191505092915050565b60006159e882856159ab565b91506159f482846159ab565b91508190509392505050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000615a5c602c836144c7565b9150615a6782615a00565b604082019050919050565b60006020820190508181036000830152615a8b81615a4f565b9050919050565b7f45524337323156463a207472616e736665722066726f6d20696e636f7272656360008201527f74206f776e657200000000000000000000000000000000000000000000000000602082015250565b6000615aee6027836144c7565b9150615af982615a92565b604082019050919050565b60006020820190508181036000830152615b1d81615ae1565b9050919050565b7f45524337323156463a207472616e7366657220746f20746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615b806026836144c7565b9150615b8b82615b24565b604082019050919050565b60006020820190508181036000830152615baf81615b73565b9050919050565b6000615bc182614577565b9150615bcc83614577565b925082821015615bdf57615bde6153a6565b5b828203905092915050565b6000615bf582614577565b9150615c0083614577565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615c3557615c346153a6565b5b828201905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615c766020836144c7565b9150615c8182615c40565b602082019050919050565b60006020820190508181036000830152615ca581615c69565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615ce2601c836144c7565b9150615ced82615cac565b602082019050919050565b60006020820190508181036000830152615d1181615cd5565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615d746032836144c7565b9150615d7f82615d18565b604082019050919050565b60006020820190508181036000830152615da381615d67565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615de06019836144c7565b9150615deb82615daa565b602082019050919050565b60006020820190508181036000830152615e0f81615dd3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000615e5082614577565b9150615e5b83614577565b925082615e6b57615e6a615e16565b5b828204905092915050565b6000615e8182614577565b9150615e8c83614577565b925082615e9c57615e9b615e16565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b6000615ece82615ea7565b615ed88185615eb2565b9350615ee88185602086016144d8565b615ef18161450b565b840191505092915050565b6000608082019050615f11600083018761460c565b615f1e602083018661460c565b615f2b60408301856146a2565b8181036060830152615f3d8184615ec3565b905095945050505050565b600081519050615f578161442d565b92915050565b600060208284031215615f7357615f726143f7565b5b6000615f8184828501615f48565b9150509291505056fea2646970667358221220675079bdb4b90aec0b0ed13a96a0a41046ba9aef1284b660cb759608c8ac86c664736f6c63430008090033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000cdf831868185c4e92433b2f66a88123523011ecf000000000000000000000000000000000000000000000000000000000000003a68747470733a2f2f6d657461646174612e766565667269656e64732e636f6d2f76322f636f6c6c656374696f6e732f3132332f746f6b656e732f0000000000000000000000000000000000000000000000000000000000000000000000000017566565467269656e6473204d696e692044726f70732032000000000000000000000000000000000000000000000000000000000000000000000000000000000556464d4432000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061021c5760003560e01c80638462151c11610125578063b1a6676e116100ad578063ca35e8a01161007c578063ca35e8a0146105fc578063d02c2bf214610618578063d89135cd14610622578063e985e9c514610640578063f5e92b95146106705761021c565b8063b1a6676e14610588578063b88d4fde146105a6578063bb7648b6146105c2578063c87b56dd146105cc5761021c565b8063a1448194116100f4578063a14481941461050c578063a22cb46514610528578063a2309ff814610544578063ac44600214610562578063b166da421461056c5761021c565b80638462151c1461047257806395d89b41146104a257806399a2557a146104c05780639dc29fac146104f05761021c565b806340c10f19116101a857806355f804b31161017757806355f804b3146103ce5780635b92ac0d146103ea5780635bc0997c146104085780636352211e1461041257806370a08231146104425761021c565b806340c10f191461035e57806342842e0e1461037a578063454490be1461039657806349324be1146103b25761021c565b806318160ddd116101ef57806318160ddd146102bb57806323b872dd146102d957806324e8b6fc146102f55780632a55205a146103115780633c96aef5146103425761021c565b806301ffc9a71461022157806306fdde0314610251578063081812fc1461026f578063095ea7b31461029f575b600080fd5b61023b60048036038101906102369190614459565b61068e565b60405161024891906144a1565b60405180910390f35b6102596107d8565b6040516102669190614555565b60405180910390f35b610289600480360381019061028491906145ad565b61086a565b604051610296919061461b565b60405180910390f35b6102b960048036038101906102b49190614662565b6108ef565b005b6102c3610a07565b6040516102d091906146b1565b60405180910390f35b6102f360048036038101906102ee91906146cc565b610a15565b005b61030f600480360381019061030a9190614964565b610a75565b005b61032b600480360381019061032691906149ef565b610dad565b604051610339929190614a2f565b60405180910390f35b61035c60048036038101906103579190614a91565b610e69565b005b61037860048036038101906103739190614662565b611107565b005b610394600480360381019061038f91906146cc565b61139f565b005b6103b060048036038101906103ab9190614964565b6113bf565b005b6103cc60048036038101906103c79190614a91565b6116f7565b005b6103e860048036038101906103e39190614b99565b611995565b005b6103f2611ae4565b6040516103ff91906144a1565b60405180910390f35b610410611af7565b005b61042c600480360381019061042791906145ad565b611c58565b604051610439919061461b565b60405180910390f35b61045c60048036038101906104579190614be2565b611d0a565b60405161046991906146b1565b60405180910390f35b61048c60048036038101906104879190614be2565b611dc2565b6040516104999190614ccd565b60405180910390f35b6104aa611f3e565b6040516104b79190614555565b60405180910390f35b6104da60048036038101906104d59190614cef565b611fd0565b6040516104e79190614ccd565b60405180910390f35b61050a60048036038101906105059190614662565b612154565b005b61052660048036038101906105219190614662565b6122e6565b005b610542600480360381019061053d9190614d6e565b61257e565b005b61054c612594565b60405161055991906146b1565b60405180910390f35b61056a61259e565b005b61058660048036038101906105819190614be2565b612729565b005b61059061298a565b60405161059d91906144a1565b60405180910390f35b6105c060048036038101906105bb9190614e4f565b61299d565b005b6105ca6129ff565b005b6105e660048036038101906105e191906145ad565b612b51565b6040516105f39190614555565b60405180910390f35b61061660048036038101906106119190614be2565b612bf8565b005b610620612e59565b005b61062a612fba565b60405161063791906146b1565b60405180910390f35b61065a60048036038101906106559190614ed2565b612fc4565b60405161066791906144a1565b60405180910390f35b610678613058565b60405161068591906144a1565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061075957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107c157507f7f77e78e000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107d157506107d08261306b565b5b9050919050565b6060600080546107e790614f41565b80601f016020809104026020016040519081016040528092919081815260200182805461081390614f41565b80156108605780601f1061083557610100808354040283529160200191610860565b820191906000526020600020905b81548152906001019060200180831161084357829003601f168201915b5050505050905090565b6000610875826130d5565b6108b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ab90614fe5565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108fa82611c58565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561096b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096290615077565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661098a613141565b73ffffffffffffffffffffffffffffffffffffffff1614806109b957506109b8816109b3613141565b612fc4565b5b6109f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ef90615109565b60405180910390fd5b610a028383613149565b505050565b600060075460065403905090565b610a26610a20613141565b82613202565b610a65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5c9061519b565b60405180910390fd5b610a708383836132e0565b505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd5adf0c6040518163ffffffff1660e01b815260040160006040518083038186803b158015610add57600080fd5b505afa158015610af1573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610b1a91906152b4565b6000805b8251811015610c1d576000838281518110610b3c57610b3b6152fd565b5b60200260200101519050600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d1485482610b8d613141565b6040518363ffffffff1660e01b8152600401610baa92919061533b565b60206040518083038186803b158015610bc257600080fd5b505afa158015610bd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfa9190615379565b15610c09576001925050610c1d565b508080610c15906153d5565b915050610b1e565b5080610c5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c559061546a565b60405180910390fd5b600960009054906101000a900460ff1615610cae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca5906154d6565b60405180910390fd5b600960019054906101000a900460ff16610cfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf490615542565b60405180910390fd5b8351855114610d41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d38906155d4565b60405180910390fd5b60005b8551811015610da557610d90868281518110610d6357610d626152fd565b5b6020026020010151868381518110610d7e57610d7d6152fd565b5b602002602001015161ffff1686613547565b93508080610d9d906153d5565b915050610d44565b505050505050565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b8ca29d58530866040518463ffffffff1660e01b8152600401610e0f939291906155f4565b604080518083038186803b158015610e2657600080fd5b505afa158015610e3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5e9190615655565b915091509250929050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd5adf0c6040518163ffffffff1660e01b815260040160006040518083038186803b158015610ed157600080fd5b505afa158015610ee5573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610f0e91906152b4565b6000805b8251811015611011576000838281518110610f3057610f2f6152fd565b5b60200260200101519050600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d1485482610f81613141565b6040518363ffffffff1660e01b8152600401610f9e92919061533b565b60206040518083038186803b158015610fb657600080fd5b505afa158015610fca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fee9190615379565b15610ffd576001925050611011565b508080611009906153d5565b915050610f12565b5080611052576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110499061546a565b60405180910390fd5b600960009054906101000a900460ff16156110a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611099906154d6565b60405180910390fd5b600960019054906101000a900460ff166110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e890615542565b60405180910390fd5b6110ff858560ff1685613761565b505050505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd5adf0c6040518163ffffffff1660e01b815260040160006040518083038186803b15801561116f57600080fd5b505afa158015611183573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906111ac91906152b4565b6000805b82518110156112af5760008382815181106111ce576111cd6152fd565b5b60200260200101519050600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148548261121f613141565b6040518363ffffffff1660e01b815260040161123c92919061533b565b60206040518083038186803b15801561125457600080fd5b505afa158015611268573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128c9190615379565b1561129b5760019250506112af565b5080806112a7906153d5565b9150506111b0565b50806112f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e79061546a565b60405180910390fd5b600960009054906101000a900460ff1615611340576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611337906154d6565b60405180910390fd5b600960019054906101000a900460ff1661138f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138690615542565b60405180910390fd5b61139984846139e0565b50505050565b6113ba8383836040518060200160405280600081525061299d565b505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd5adf0c6040518163ffffffff1660e01b815260040160006040518083038186803b15801561142757600080fd5b505afa15801561143b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061146491906152b4565b6000805b8251811015611567576000838281518110611486576114856152fd565b5b60200260200101519050600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d14854826114d7613141565b6040518363ffffffff1660e01b81526004016114f492919061533b565b60206040518083038186803b15801561150c57600080fd5b505afa158015611520573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115449190615379565b15611553576001925050611567565b50808061155f906153d5565b915050611468565b50806115a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159f9061546a565b60405180910390fd5b600960009054906101000a900460ff16156115f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ef906154d6565b60405180910390fd5b600960019054906101000a900460ff16611647576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163e90615542565b60405180910390fd5b835185511461168b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611682906155d4565b60405180910390fd5b60005b85518110156116ef576116da8682815181106116ad576116ac6152fd565b5b60200260200101518683815181106116c8576116c76152fd565b5b602002602001015161ffff1686613761565b935080806116e7906153d5565b91505061168e565b505050505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd5adf0c6040518163ffffffff1660e01b815260040160006040518083038186803b15801561175f57600080fd5b505afa158015611773573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061179c91906152b4565b6000805b825181101561189f5760008382815181106117be576117bd6152fd565b5b60200260200101519050600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148548261180f613141565b6040518363ffffffff1660e01b815260040161182c92919061533b565b60206040518083038186803b15801561184457600080fd5b505afa158015611858573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061187c9190615379565b1561188b57600192505061189f565b508080611897906153d5565b9150506117a0565b50806118e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d79061546a565b60405180910390fd5b600960009054906101000a900460ff1615611930576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611927906154d6565b60405180910390fd5b600960019054906101000a900460ff1661197f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197690615542565b60405180910390fd5b61198d858560ff1685613547565b505050505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b1580156119fd57600080fd5b505afa158015611a11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a359190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82611a7c613141565b6040518363ffffffff1660e01b8152600401611a9992919061533b565b60006040518083038186803b158015611ab157600080fd5b505afa158015611ac5573d6000803e3d6000fd5b505050508160089080519060200190611adf92919061434a565b505050565b600960019054906101000a900460ff1681565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b158015611b5f57600080fd5b505afa158015611b73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b979190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82611bde613141565b6040518363ffffffff1660e01b8152600401611bfb92919061533b565b60006040518083038186803b158015611c1357600080fd5b505afa158015611c27573d6000803e3d6000fd5b50505050600960029054906101000a900460ff1615600960026101000a81548160ff02191690831515021790555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf890615734565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d72906157c6565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600080611dd084611d0a565b90506000811415611e2e57600067ffffffffffffffff811115611df657611df5614724565b5b604051908082528060200260200182016040528015611e245781602001602082028036833780820191505090505b5092505050611f39565b60008167ffffffffffffffff811115611e4a57611e49614724565b5b604051908082528060200260200182016040528015611e785781602001602082028036833780820191505090505b5090506000805b838214611f30576002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1694508673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611f1d5780838380611efd906153d5565b945081518110611f1057611f0f6152fd565b5b6020026020010181815250505b8080611f28906153d5565b915050611e7f565b82955050505050505b919050565b606060018054611f4d90614f41565b80601f0160208091040260200160405190810160405280929190818152602001828054611f7990614f41565b8015611fc65780601f10611f9b57610100808354040283529160200191611fc6565b820191906000526020600020905b815481529060010190602001808311611fa957829003601f168201915b5050505050905090565b6060600080611fde86611d0a565b9050600081141561203c57600067ffffffffffffffff81111561200457612003614724565b5b6040519080825280602002602001820160405280156120325781602001602082028036833780820191505090505b509250505061214d565b60008167ffffffffffffffff81111561205857612057614724565b5b6040519080825280602002602001820160405280156120865781602001602082028036833780820191505090505b5090506000808790505b868111612141576002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1694508873ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561212e578083838061210e906153d5565b945081518110612121576121206152fd565b5b6020026020010181815250505b8080612139906153d5565b915050612090565b81835282955050505050505b9392505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c5b66dc96040518163ffffffff1660e01b815260040160206040518083038186803b1580156121bc57600080fd5b505afa1580156121d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f49190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad8261223b613141565b6040518363ffffffff1660e01b815260040161225892919061533b565b60006040518083038186803b15801561227057600080fd5b505afa158015612284573d6000803e3d6000fd5b50505050600960029054906101000a900460ff166122d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ce90615832565b60405180910390fd5b6122e18383613bcc565b505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd5adf0c6040518163ffffffff1660e01b815260040160006040518083038186803b15801561234e57600080fd5b505afa158015612362573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061238b91906152b4565b6000805b825181101561248e5760008382815181106123ad576123ac6152fd565b5b60200260200101519050600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d14854826123fe613141565b6040518363ffffffff1660e01b815260040161241b92919061533b565b60206040518083038186803b15801561243357600080fd5b505afa158015612447573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061246b9190615379565b1561247a57600192505061248e565b508080612486906153d5565b91505061238f565b50806124cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c69061546a565b60405180910390fd5b600960009054906101000a900460ff161561251f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612516906154d6565b60405180910390fd5b600960019054906101000a900460ff1661256e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256590615542565b60405180910390fd5b6125788484613c22565b50505050565b612590612589613141565b8383613c40565b5050565b6000600654905090565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b15801561260657600080fd5b505afa15801561261a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061263e9190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82612685613141565b6040518363ffffffff1660e01b81526004016126a292919061533b565b60006040518083038186803b1580156126ba57600080fd5b505afa1580156126ce573d6000803e3d6000fd5b5050505060006126dc613141565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015612724573d6000803e3d6000fd5b505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b15801561279157600080fd5b505afa1580156127a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127c99190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82612810613141565b6040518363ffffffff1660e01b815260040161282d92919061533b565b60006040518083038186803b15801561284557600080fd5b505afa158015612859573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f84648494000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004016128b69190615861565b60206040518083038186803b1580156128ce57600080fd5b505afa1580156128e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129069190615379565b612945576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293c906158ee565b60405180910390fd5b81600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600960029054906101000a900460ff1681565b6129ae6129a8613141565b83613202565b6129ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129e49061519b565b60405180910390fd5b6129f984848484613dad565b50505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b158015612a6757600080fd5b505afa158015612a7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a9f9190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82612ae6613141565b6040518363ffffffff1660e01b8152600401612b0392919061533b565b60006040518083038186803b158015612b1b57600080fd5b505afa158015612b2f573d6000803e3d6000fd5b505050506001600960006101000a81548160ff02191690831515021790555050565b6060612b5c826130d5565b612b9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9290615980565b60405180910390fd5b6000612ba5613e09565b90506000815111612bc55760405180602001604052806000815250612bf0565b80612bcf84613e9b565b604051602001612be09291906159dc565b6040516020818303038152906040525b915050919050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b158015612c6057600080fd5b505afa158015612c74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c989190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82612cdf613141565b6040518363ffffffff1660e01b8152600401612cfc92919061533b565b60006040518083038186803b158015612d1457600080fd5b505afa158015612d28573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f0b7162d4000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401612d859190615861565b60206040518083038186803b158015612d9d57600080fd5b505afa158015612db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dd59190615379565b612e14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e0b906158ee565b60405180910390fd5b81600960036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b3ecf2366040518163ffffffff1660e01b815260040160206040518083038186803b158015612ec157600080fd5b505afa158015612ed5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ef99190615695565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166312d9a6ad82612f40613141565b6040518363ffffffff1660e01b8152600401612f5d92919061533b565b60006040518083038186803b158015612f7557600080fd5b505afa158015612f89573d6000803e3d6000fd5b50505050600960019054906101000a900460ff1615600960016101000a81548160ff02191690831515021790555050565b6000600754905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600960009054906101000a900460ff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166131bc83611c58565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061320d826130d5565b61324c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324390615a72565b60405180910390fd5b600061325783611c58565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806132c657508373ffffffffffffffffffffffffffffffffffffffff166132ae8461086a565b73ffffffffffffffffffffffffffffffffffffffff16145b806132d757506132d68185612fc4565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661330082611c58565b73ffffffffffffffffffffffffffffffffffffffff1614613356576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161334d90615b04565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133bd90615b96565b60405180910390fd5b6133d1838383613ffc565b6133dc600082613149565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461342c9190615bb6565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134839190615bea565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613542838383614001565b505050565b60008082905060005b848110156136f857600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156135c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135bf90615c8c565b60405180910390fd5b6135d1826130d5565b15613611576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161360890615cf8565b60405180910390fd5b61361d60008784613ffc565b856002600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46136d760008784614001565b81806136e2906153d5565b92505080806136f0906153d5565b915050613550565b5083600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555083600660008282540192505081905550809150509392505050565b60008082905060005b848110156139c457600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156137e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137d990615c8c565b60405180910390fd5b6137eb826130d5565b1561382b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161382290615cf8565b60405180910390fd5b61383760008784613ffc565b6001600360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546138879190615bea565b92505081905550856002600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461394860008784614001565b6139646000878460405180602001604052806000815250614006565b6139a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161399a90615d8a565b60405180910390fd5b81806139ae906153d5565b92505080806139bc906153d5565b91505061376a565b5083600660008282540192505081905550809150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a4790615c8c565b60405180910390fd5b613a59816130d5565b15613a99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a9090615cf8565b60405180910390fd5b613aa560008383613ffc565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613af59190615bea565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600660008154809291906001019190505550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613bc860008383614001565b5050565b613bd68282613202565b613c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c0c9061519b565b60405180910390fd5b613c1e8161419d565b5050565b613c3c8282604051806020016040528060008152506142cc565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613caf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ca690615df6565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051613da091906144a1565b60405180910390a3505050565b613db88484846132e0565b613dc484848484614006565b613e03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dfa90615d8a565b60405180910390fd5b50505050565b606060088054613e1890614f41565b80601f0160208091040260200160405190810160405280929190818152602001828054613e4490614f41565b8015613e915780601f10613e6657610100808354040283529160200191613e91565b820191906000526020600020905b815481529060010190602001808311613e7457829003601f168201915b5050505050905090565b60606000821415613ee3576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613ff7565b600082905060005b60008214613f15578080613efe906153d5565b915050600a82613f0e9190615e45565b9150613eeb565b60008167ffffffffffffffff811115613f3157613f30614724565b5b6040519080825280601f01601f191660200182016040528015613f635781602001600182028036833780820191505090505b5090505b60008514613ff057600182613f7c9190615bb6565b9150600a85613f8b9190615e76565b6030613f979190615bea565b60f81b818381518110613fad57613fac6152fd565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613fe99190615e45565b9450613f67565b8093505050505b919050565b505050565b505050565b60006140278473ffffffffffffffffffffffffffffffffffffffff16614327565b15614190578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02614050613141565b8786866040518563ffffffff1660e01b81526004016140729493929190615efc565b602060405180830381600087803b15801561408c57600080fd5b505af19250505080156140bd57506040513d601f19601f820116820180604052508101906140ba9190615f5d565b60015b614140573d80600081146140ed576040519150601f19603f3d011682016040523d82523d6000602084013e6140f2565b606091505b50600081511415614138576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161412f90615d8a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050614195565b600190505b949350505050565b60006141a882611c58565b90506141b681600084613ffc565b6141c1600083613149565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546142119190615bb6565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46142b681600084614001565b6007600081548092919060010191905055505050565b6142d683836139e0565b6142e36000848484614006565b614322576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161431990615d8a565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b82805461435690614f41565b90600052602060002090601f01602090048101928261437857600085556143bf565b82601f1061439157805160ff19168380011785556143bf565b828001600101855582156143bf579182015b828111156143be5782518255916020019190600101906143a3565b5b5090506143cc91906143d0565b5090565b5b808211156143e95760008160009055506001016143d1565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61443681614401565b811461444157600080fd5b50565b6000813590506144538161442d565b92915050565b60006020828403121561446f5761446e6143f7565b5b600061447d84828501614444565b91505092915050565b60008115159050919050565b61449b81614486565b82525050565b60006020820190506144b66000830184614492565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156144f65780820151818401526020810190506144db565b83811115614505576000848401525b50505050565b6000601f19601f8301169050919050565b6000614527826144bc565b61453181856144c7565b93506145418185602086016144d8565b61454a8161450b565b840191505092915050565b6000602082019050818103600083015261456f818461451c565b905092915050565b6000819050919050565b61458a81614577565b811461459557600080fd5b50565b6000813590506145a781614581565b92915050565b6000602082840312156145c3576145c26143f7565b5b60006145d184828501614598565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614605826145da565b9050919050565b614615816145fa565b82525050565b6000602082019050614630600083018461460c565b92915050565b61463f816145fa565b811461464a57600080fd5b50565b60008135905061465c81614636565b92915050565b60008060408385031215614679576146786143f7565b5b60006146878582860161464d565b925050602061469885828601614598565b9150509250929050565b6146ab81614577565b82525050565b60006020820190506146c660008301846146a2565b92915050565b6000806000606084860312156146e5576146e46143f7565b5b60006146f38682870161464d565b93505060206147048682870161464d565b925050604061471586828701614598565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61475c8261450b565b810181811067ffffffffffffffff8211171561477b5761477a614724565b5b80604052505050565b600061478e6143ed565b905061479a8282614753565b919050565b600067ffffffffffffffff8211156147ba576147b9614724565b5b602082029050602081019050919050565b600080fd5b60006147e36147de8461479f565b614784565b90508083825260208201905060208402830185811115614806576148056147cb565b5b835b8181101561482f578061481b888261464d565b845260208401935050602081019050614808565b5050509392505050565b600082601f83011261484e5761484d61471f565b5b813561485e8482602086016147d0565b91505092915050565b600067ffffffffffffffff82111561488257614881614724565b5b602082029050602081019050919050565b600061ffff82169050919050565b6148aa81614893565b81146148b557600080fd5b50565b6000813590506148c7816148a1565b92915050565b60006148e06148db84614867565b614784565b90508083825260208201905060208402830185811115614903576149026147cb565b5b835b8181101561492c578061491888826148b8565b845260208401935050602081019050614905565b5050509392505050565b600082601f83011261494b5761494a61471f565b5b813561495b8482602086016148cd565b91505092915050565b60008060006060848603121561497d5761497c6143f7565b5b600084013567ffffffffffffffff81111561499b5761499a6143fc565b5b6149a786828701614839565b935050602084013567ffffffffffffffff8111156149c8576149c76143fc565b5b6149d486828701614936565b92505060406149e586828701614598565b9150509250925092565b60008060408385031215614a0657614a056143f7565b5b6000614a1485828601614598565b9250506020614a2585828601614598565b9150509250929050565b6000604082019050614a44600083018561460c565b614a5160208301846146a2565b9392505050565b600060ff82169050919050565b614a6e81614a58565b8114614a7957600080fd5b50565b600081359050614a8b81614a65565b92915050565b600080600060608486031215614aaa57614aa96143f7565b5b6000614ab88682870161464d565b9350506020614ac986828701614a7c565b9250506040614ada86828701614598565b9150509250925092565b600080fd5b600067ffffffffffffffff821115614b0457614b03614724565b5b614b0d8261450b565b9050602081019050919050565b82818337600083830152505050565b6000614b3c614b3784614ae9565b614784565b905082815260208101848484011115614b5857614b57614ae4565b5b614b63848285614b1a565b509392505050565b600082601f830112614b8057614b7f61471f565b5b8135614b90848260208601614b29565b91505092915050565b600060208284031215614baf57614bae6143f7565b5b600082013567ffffffffffffffff811115614bcd57614bcc6143fc565b5b614bd984828501614b6b565b91505092915050565b600060208284031215614bf857614bf76143f7565b5b6000614c068482850161464d565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614c4481614577565b82525050565b6000614c568383614c3b565b60208301905092915050565b6000602082019050919050565b6000614c7a82614c0f565b614c848185614c1a565b9350614c8f83614c2b565b8060005b83811015614cc0578151614ca78882614c4a565b9750614cb283614c62565b925050600181019050614c93565b5085935050505092915050565b60006020820190508181036000830152614ce78184614c6f565b905092915050565b600080600060608486031215614d0857614d076143f7565b5b6000614d168682870161464d565b9350506020614d2786828701614598565b9250506040614d3886828701614598565b9150509250925092565b614d4b81614486565b8114614d5657600080fd5b50565b600081359050614d6881614d42565b92915050565b60008060408385031215614d8557614d846143f7565b5b6000614d938582860161464d565b9250506020614da485828601614d59565b9150509250929050565b600067ffffffffffffffff821115614dc957614dc8614724565b5b614dd28261450b565b9050602081019050919050565b6000614df2614ded84614dae565b614784565b905082815260208101848484011115614e0e57614e0d614ae4565b5b614e19848285614b1a565b509392505050565b600082601f830112614e3657614e3561471f565b5b8135614e46848260208601614ddf565b91505092915050565b60008060008060808587031215614e6957614e686143f7565b5b6000614e778782880161464d565b9450506020614e888782880161464d565b9350506040614e9987828801614598565b925050606085013567ffffffffffffffff811115614eba57614eb96143fc565b5b614ec687828801614e21565b91505092959194509250565b60008060408385031215614ee957614ee86143f7565b5b6000614ef78582860161464d565b9250506020614f088582860161464d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614f5957607f821691505b60208210811415614f6d57614f6c614f12565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614fcf602c836144c7565b9150614fda82614f73565b604082019050919050565b60006020820190508181036000830152614ffe81614fc2565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006150616021836144c7565b915061506c82615005565b604082019050919050565b6000602082019050818103600083015261509081615054565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006150f36038836144c7565b91506150fe82615097565b604082019050919050565b60006020820190508181036000830152615122816150e6565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006151856031836144c7565b915061519082615129565b604082019050919050565b600060208201905081810360008301526151b481615178565b9050919050565b600067ffffffffffffffff8211156151d6576151d5614724565b5b602082029050602081019050919050565b6000819050919050565b6151fa816151e7565b811461520557600080fd5b50565b600081519050615217816151f1565b92915050565b600061523061522b846151bb565b614784565b90508083825260208201905060208402830185811115615253576152526147cb565b5b835b8181101561527c57806152688882615208565b845260208401935050602081019050615255565b5050509392505050565b600082601f83011261529b5761529a61471f565b5b81516152ab84826020860161521d565b91505092915050565b6000602082840312156152ca576152c96143f7565b5b600082015167ffffffffffffffff8111156152e8576152e76143fc565b5b6152f484828501615286565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b615335816151e7565b82525050565b6000604082019050615350600083018561532c565b61535d602083018461460c565b9392505050565b60008151905061537381614d42565b92915050565b60006020828403121561538f5761538e6143f7565b5b600061539d84828501615364565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006153e082614577565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615413576154126153a6565b5b600182019050919050565b7f4d697373696e6720726571756972656420726f6c650000000000000000000000600082015250565b60006154546015836144c7565b915061545f8261541e565b602082019050919050565b6000602082019050818103600083015261548381615447565b9050919050565b7f4d696e74696e67207065726d616e656e746c79206c6f636b6564000000000000600082015250565b60006154c0601a836144c7565b91506154cb8261548a565b602082019050919050565b600060208201905081810360008301526154ef816154b3565b9050919050565b7f4d696e74206973206e6f74206163746976650000000000000000000000000000600082015250565b600061552c6012836144c7565b9150615537826154f6565b602082019050919050565b6000602082019050818103600083015261555b8161551f565b9050919050565b7f4164647265737320616e64207175616e746974696573206e65656420746f206260008201527f6520657175616c206c656e677468000000000000000000000000000000000000602082015250565b60006155be602e836144c7565b91506155c982615562565b604082019050919050565b600060208201905081810360008301526155ed816155b1565b9050919050565b600060608201905061560960008301866146a2565b615616602083018561460c565b61562360408301846146a2565b949350505050565b60008151905061563a81614636565b92915050565b60008151905061564f81614581565b92915050565b6000806040838503121561566c5761566b6143f7565b5b600061567a8582860161562b565b925050602061568b85828601615640565b9150509250929050565b6000602082840312156156ab576156aa6143f7565b5b60006156b984828501615208565b91505092915050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b600061571e6029836144c7565b9150615729826156c2565b604082019050919050565b6000602082019050818103600083015261574d81615711565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006157b0602a836144c7565b91506157bb82615754565b604082019050919050565b600060208201905081810360008301526157df816157a3565b9050919050565b7f4275726e206973206e6f74206163746976650000000000000000000000000000600082015250565b600061581c6012836144c7565b9150615827826157e6565b602082019050919050565b6000602082019050818103600083015261584b8161580f565b9050919050565b61585b81614401565b82525050565b60006020820190506158766000830184615852565b92915050565b7f436f6e747261637420646f6573206e6f7420737570706f72742072657175697260008201527f656420696e746572666163650000000000000000000000000000000000000000602082015250565b60006158d8602c836144c7565b91506158e38261587c565b604082019050919050565b60006020820190508181036000830152615907816158cb565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061596a602f836144c7565b91506159758261590e565b604082019050919050565b600060208201905081810360008301526159998161595d565b9050919050565b600081905092915050565b60006159b6826144bc565b6159c081856159a0565b93506159d08185602086016144d8565b80840191505092915050565b60006159e882856159ab565b91506159f482846159ab565b91508190509392505050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000615a5c602c836144c7565b9150615a6782615a00565b604082019050919050565b60006020820190508181036000830152615a8b81615a4f565b9050919050565b7f45524337323156463a207472616e736665722066726f6d20696e636f7272656360008201527f74206f776e657200000000000000000000000000000000000000000000000000602082015250565b6000615aee6027836144c7565b9150615af982615a92565b604082019050919050565b60006020820190508181036000830152615b1d81615ae1565b9050919050565b7f45524337323156463a207472616e7366657220746f20746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615b806026836144c7565b9150615b8b82615b24565b604082019050919050565b60006020820190508181036000830152615baf81615b73565b9050919050565b6000615bc182614577565b9150615bcc83614577565b925082821015615bdf57615bde6153a6565b5b828203905092915050565b6000615bf582614577565b9150615c0083614577565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615c3557615c346153a6565b5b828201905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615c766020836144c7565b9150615c8182615c40565b602082019050919050565b60006020820190508181036000830152615ca581615c69565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615ce2601c836144c7565b9150615ced82615cac565b602082019050919050565b60006020820190508181036000830152615d1181615cd5565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615d746032836144c7565b9150615d7f82615d18565b604082019050919050565b60006020820190508181036000830152615da381615d67565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615de06019836144c7565b9150615deb82615daa565b602082019050919050565b60006020820190508181036000830152615e0f81615dd3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000615e5082614577565b9150615e5b83614577565b925082615e6b57615e6a615e16565b5b828204905092915050565b6000615e8182614577565b9150615e8c83614577565b925082615e9c57615e9b615e16565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b6000615ece82615ea7565b615ed88185615eb2565b9350615ee88185602086016144d8565b615ef18161450b565b840191505092915050565b6000608082019050615f11600083018761460c565b615f1e602083018661460c565b615f2b60408301856146a2565b8181036060830152615f3d8184615ec3565b905095945050505050565b600081519050615f578161442d565b92915050565b600060208284031215615f7357615f726143f7565b5b6000615f8184828501615f48565b9150509291505056fea2646970667358221220675079bdb4b90aec0b0ed13a96a0a41046ba9aef1284b660cb759608c8ac86c664736f6c63430008090033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000cdf831868185c4e92433b2f66a88123523011ecf000000000000000000000000000000000000000000000000000000000000003a68747470733a2f2f6d657461646174612e766565667269656e64732e636f6d2f76322f636f6c6c656374696f6e732f3132332f746f6b656e732f0000000000000000000000000000000000000000000000000000000000000000000000000017566565467269656e6473204d696e692044726f70732032000000000000000000000000000000000000000000000000000000000000000000000000000000000556464d4432000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : initialBaseUri (string): https://metadata.veefriends.com/v2/collections/123/tokens/
Arg [1] : name (string): VeeFriends Mini Drops 2
Arg [2] : symbol (string): VFMD2
Arg [3] : controlContractAddress (address): 0xcDf831868185C4e92433B2f66a88123523011ecf

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 000000000000000000000000cdf831868185c4e92433b2f66a88123523011ecf
Arg [4] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [5] : 68747470733a2f2f6d657461646174612e766565667269656e64732e636f6d2f
Arg [6] : 76322f636f6c6c656374696f6e732f3132332f746f6b656e732f000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [8] : 566565467269656e6473204d696e692044726f70732032000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [10] : 56464d4432000000000000000000000000000000000000000000000000000000


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.