ETH Price: $3,386.74 (+1.42%)

Token

Fables (FAB)
 

Overview

Max Total Supply

3,000 FAB

Holders

1,242

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 FAB
0x1DD1727B43B2AD51Cbea572FA44813aF3E4C9C44
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Fables

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : Fables.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "./ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "./modules/Permission.sol";
import "./ERC721A.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
 
interface IFables2 {
    function mintBatch(address recipients,uint256  _amount) external;
    function balanceOf(address owner)external view returns(uint256);
    function addLevel(uint256 tokenId) external;
    function tokenOfOwnerByIndex(address recipients,uint256  _amount) external view returns(uint256);
    function whitelist(uint8 table, address add)external view returns(bool);
    function investor(address add)external view returns(uint256);
    function alreadymint(address add)external view returns(bool);
    function ownerOf(uint256 tokenId)external view returns(address);
}

contract Fables is
    Context,
    Permission,
    ERC721URIStorage,
    Ownable
{
    using Strings for uint256;
    uint private _tokenIdTracker;
    IFables2 private fables2Address = IFables2(0xFD7F90b4746d70281AAb4A4bBd64A6Dd29E5537D);
    mapping(uint8 => string) private _baseTokenURI;
    mapping(address => bool) public alreadymint;
    mapping(uint256 => uint8) public fablesLevel;
    mapping(uint8 => uint) public startTime;
    mapping(uint8 => uint) public endTime;
    mapping(uint8 => mapping(address => bool)) public whitelist;
    mapping(address => uint256) public investor;
    mapping(uint256 => bool) public isAirdrop;

    constructor(
        string memory name,
        string memory symbol,
        uint256 maxBatchSize,
        uint256 collectionSize,
        string memory baseTokenURI
    ) ERC721A(name, symbol,  maxBatchSize, collectionSize) {
        _baseTokenURI[0] = baseTokenURI;
    }

    function getWhitelist(uint8 _table, address add)public view returns(bool) {
        return fables2Address.whitelist(_table, add);
    }

    function getInvestor(address add)public view returns(uint256) {
        return fables2Address.investor(add);
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(
        _exists(tokenId),
        "ERC721Metadata: URI query for nonexistent token"
        );

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

    function setSellTime(uint8 _item, uint _start, uint _end) external onlyRole(MANAGER_ROLE){
        startTime[_item] = _start;
        endTime[_item] = _end;
    }


    function setWhitelist(uint8 _table, address[] memory setAmount )external onlyRole(MANAGER_ROLE){
        for(uint16 i = 0; i < setAmount.length; i ++){
            whitelist[_table][setAmount[i]] = true;
        }
    }

    function mintBatch(
        address recipients,
        uint256  _amount
    ) public onlyRole(MINTER_ROLE){
        require(_tokenIdTracker + _amount <= 3000,"NFT is already limited");
        _tokenIdTracker = _tokenIdTracker + _amount;
        _safeMint(recipients, _amount);
    }

    function mint(address _send) public virtual  onlyRole(MINTER_ROLE){
        require(_tokenIdTracker + 1 <= 3000,"NFT is already limited");
        _tokenIdTracker = _tokenIdTracker + 1;
        _safeMint(_send, 1);
    }

    function airdrop(uint _start, uint _end)external onlyRole(MANAGER_ROLE){
        for(uint256 i = _start; i <= _end; i++){
            require(!isAirdrop[i],"You already airdrop!");
        }
        for(uint256 i = _start; i <= _end; i++){
            isAirdrop[i] = true;
            address ownerAmount = fables2Address.ownerOf(i);
            mint(ownerAmount);
        }
    }

    function isAlreadymint(address add)public view returns(bool){
        return fables2Address.alreadymint(add);
    }

    function mintBatchInvestor() external{
        uint256 _amount = getInvestor(msg.sender);
        require(_amount > 0,"You can not mint!");
        require(_tokenIdTracker + _amount <= 3000,"NFT is already limited");
        require(block.timestamp >= startTime[1] && block.timestamp < endTime[1], "It is not sellTime");
        require(!alreadymint[msg.sender] && !isAlreadymint(msg.sender),"You are already minted");
        _tokenIdTracker = _tokenIdTracker + _amount;
        // investor[msg.sender] = 0;
        alreadymint[msg.sender] = true;
        _safeMint(msg.sender, _amount);
    }

    function mintVIP() public virtual{
        require(!alreadymint[msg.sender] && !isAlreadymint(msg.sender),"You are already minted");
        require(block.timestamp >= startTime[1] && block.timestamp < endTime[1], "It is not sellTime");
        require(getWhitelist(1,msg.sender),"You are not VIP");
        require(_tokenIdTracker + 1 <= 3000,"NFT is already limited");
        alreadymint[msg.sender] = true;
        _tokenIdTracker = _tokenIdTracker + 1;
        _safeMint(msg.sender, 1);
    }

    function mintWhitelist() public virtual{
        require(!alreadymint[msg.sender] && !isAlreadymint(msg.sender),"You are already minted");
        require(block.timestamp >= startTime[2] && block.timestamp < endTime[2], "It is not sellTime");
        require(getWhitelist(2,msg.sender) || getWhitelist(1,msg.sender),"You are not whitelist or VIP");
        require(_tokenIdTracker + 1 <= 3000,"NFT is already limited");
        alreadymint[msg.sender] = true;
        _tokenIdTracker = _tokenIdTracker + 1;
        _safeMint(msg.sender, 1);
    }
    
    function mintPublic() public virtual{
        require(!alreadymint[msg.sender] && !isAlreadymint(msg.sender),"You are already minted");
        require(block.timestamp >= startTime[3] && block.timestamp < endTime[3], "It is not sellTime");
        require(_tokenIdTracker + 1 <= 3000,"NFT is already limited");
        alreadymint[msg.sender] = true;
        _tokenIdTracker = _tokenIdTracker + 1;
        _safeMint(msg.sender, 1);
    }

    function isContract(address addr) internal view returns (bool) {
        uint256 size;
        assembly { size := extcodesize(addr) }
        return size > 0;
    }

    function addLevel(uint256 tokenId) external onlyRole(MINTER_ROLE){
        fablesLevel[tokenId] = fablesLevel[tokenId] + 1;
    }

    function redLevel(uint256 tokenId) external onlyRole(MINTER_ROLE){
        require(fablesLevel[tokenId] >= 1,"Level is lowest!");
        fablesLevel[tokenId] = fablesLevel[tokenId] - 1;
    }

//only manager
    function setInvestor(address _investor, uint256 _amount) external onlyRole(MANAGER_ROLE){
        investor[_investor] = _amount;
    }

    function setBaseURI(string memory baseURI, uint8 _base) external onlyRole(MANAGER_ROLE){
        _baseTokenURI[_base] = baseURI;
    }

    function setTokenURI(uint256 tokenId, string memory _tokenURI) external onlyRole(MANAGER_ROLE){
        _setTokenURI(tokenId, _tokenURI);
    }

//overwrite
    function _baseURI(uint8 _base) internal view virtual returns (string memory) {
        return _baseTokenURI[_base];
    }

//other

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(AccessControl, ERC721A)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
    
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./ERC721A.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721A {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

}

File 4 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 5 of 18 : Permission.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "@openzeppelin/contracts/access/AccessControl.sol";

abstract contract Permission is AccessControl{
    bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE");
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    
    constructor(){
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(MANAGER_ROLE, _msgSender());
        _setupRole(MINTER_ROLE, _msgSender());
    }

    function grantMinter(address account) external onlyRole(MANAGER_ROLE){
        _grantRole(MINTER_ROLE, account);
    }

    function revokeMinter(address account) external onlyRole(MANAGER_ROLE){
        _revokeRole(MINTER_ROLE, account);
    }

    function grantManager(address account) external onlyRole(DEFAULT_ADMIN_ROLE){
        _grantRole(MANAGER_ROLE, account);
    }

    function revokeManager(address account) external onlyRole(DEFAULT_ADMIN_ROLE){
        _revokeRole(MANAGER_ROLE, account);
    }

    function transferAdmin(address account) external onlyRole(DEFAULT_ADMIN_ROLE){
        _revokeRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _grantRole(DEFAULT_ADMIN_ROLE, account);
    }

}

File 6 of 18 : ERC721A.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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/token/ERC721/extensions/IERC721Enumerable.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 and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128.
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721A is
  Context,
  ERC165,
  IERC721,
  IERC721Metadata,
  IERC721Enumerable
{
  using Address for address;
  using Strings for uint256;

  struct TokenOwnership {
    address addr;
    uint64 startTimestamp;
  }

  struct AddressData {
    uint128 balance;
    uint128 numberMinted;
  }

  uint256 private currentIndex = 1;  //  currentIndex = 0  =>  currentIndex = 1

  uint256 internal immutable collectionSize;
  uint256 internal immutable maxBatchSize;

  // Token name
  string private _name;

  // Token symbol
  string private _symbol;

  // Mapping from token ID to ownership details
  // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
  mapping(uint256 => TokenOwnership) private _ownerships;

  // Mapping owner address to address data
  mapping(address => AddressData) private _addressData;

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

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

  /**
   * @dev
   * `maxBatchSize` refers to how much a minter can mint at a time.
   * `collectionSize_` refers to how many tokens are in the collection.
   */
  constructor(
    string memory name_,
    string memory symbol_,
    uint256 maxBatchSize_,
    uint256 collectionSize_
  ) {
    require(
      collectionSize_ > 0,
      "ERC721A: collection must have a nonzero supply"
    );
    require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
    _name = name_;
    _symbol = symbol_;
    maxBatchSize = maxBatchSize_;
    collectionSize = collectionSize_;
  }

  /**
   * @dev See {IERC721Enumerable-totalSupply}.
   */
  function totalSupply() public view override returns (uint256) {
    return currentIndex - 1; // currentIndex  =>  currentIndex - 1
  }

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

  /**
   * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
   * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first.
   * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
   */
  function tokenOfOwnerByIndex(address owner, uint256 index)
    public
    view
    override
    returns (uint256)
  {
    require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
    uint256 numMintedSoFar = totalSupply();
    uint256 tokenIdsIdx = 0;
    address currOwnershipAddr = address(0);
    for (uint256 i = 0; i <= numMintedSoFar; i++) {  //  <  =>  <=
      TokenOwnership memory ownership = _ownerships[i];
      if (ownership.addr != address(0)) {
        currOwnershipAddr = ownership.addr;
      }
      if (currOwnershipAddr == owner) {
        if (tokenIdsIdx == index) {
          return i;
        }
        tokenIdsIdx++;
      }
    }
    revert("ERC721A: unable to get token of owner by index");
  }

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

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

  function _numberMinted(address owner) internal view returns (uint256) {
    require(
      owner != address(0),
      "ERC721A: number minted query for the zero address"
    );
    return uint256(_addressData[owner].numberMinted);
  }

  function ownershipOf(uint256 tokenId)
    internal
    view
    returns (TokenOwnership memory)
  {
    require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

    uint256 lowestTokenToCheck;
    if (tokenId >= maxBatchSize) {
      lowestTokenToCheck = tokenId - maxBatchSize + 1;
    }

    for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
      TokenOwnership memory ownership = _ownerships[curr];
      if (ownership.addr != address(0)) {
        return ownership;
      }
    }

    revert("ERC721A: unable to determine the owner of token");
  }

  /**
   * @dev See {IERC721-ownerOf}.
   */
  function ownerOf(uint256 tokenId) public view override returns (address) {
    return ownershipOf(tokenId).addr;
  }

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

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

    _approve(to, tokenId, owner);
  }

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

    return _tokenApprovals[tokenId];
  }

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

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

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

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

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

  /**
   * @dev See {IERC721-safeTransferFrom}.
   */
  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  ) public override {
    _transfer(from, to, tokenId);
    require(
      _checkOnERC721Received(from, to, tokenId, _data),
      "ERC721A: transfer to non ERC721Receiver implementer"
    );
  }

  /**
   * @dev Returns whether `tokenId` exists.
   *
   * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
   *
   * Tokens start existing when they are minted (`_mint`),
   */
  function _exists(uint256 tokenId) internal view returns (bool) {
    return tokenId < currentIndex;
  }

  function _safeMint(address to, uint256 quantity) internal {
    _safeMint(to, quantity, "");
  }

  /**
   * @dev Mints `quantity` tokens and transfers them to `to`.
   *
   * Requirements:
   *
   * - there must be `quantity` tokens remaining unminted in the total collection.
   * - `to` cannot be the zero address.
   * - `quantity` cannot be larger than the max batch size.
   *
   * Emits a {Transfer} event.
   */
  function _safeMint(
    address to,
    uint256 quantity,
    bytes memory _data
  ) internal {
    uint256 startTokenId = currentIndex;
    require(to != address(0), "ERC721A: mint to the zero address");
    // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
    require(!_exists(startTokenId), "ERC721A: token already minted");
    require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

    _beforeTokenTransfers(address(0), to, startTokenId, quantity);

    AddressData memory addressData = _addressData[to];
    _addressData[to] = AddressData(
      addressData.balance + uint128(quantity),
      addressData.numberMinted + uint128(quantity)
    );
    _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

    uint256 updatedIndex = startTokenId;

    for (uint256 i = 0; i < quantity; i++) {
      emit Transfer(address(0), to, updatedIndex);
      require(
        _checkOnERC721Received(address(0), to, updatedIndex, _data),
        "ERC721A: transfer to non ERC721Receiver implementer"
      );
      updatedIndex++;
    }

    currentIndex = updatedIndex;
    _afterTokenTransfers(address(0), to, startTokenId, quantity);
  }

  /**
   * @dev Transfers `tokenId` from `from` to `to`.
   *
   * 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
  ) private {
    TokenOwnership memory prevOwnership = ownershipOf(tokenId);

    bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
      getApproved(tokenId) == _msgSender() ||
      isApprovedForAll(prevOwnership.addr, _msgSender()));

    require(
      isApprovedOrOwner,
      "ERC721A: transfer caller is not owner nor approved"
    );

    require(
      prevOwnership.addr == from,
      "ERC721A: transfer from incorrect owner"
    );
    require(to != address(0), "ERC721A: transfer to the zero address");

    _beforeTokenTransfers(from, to, tokenId, 1);

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

    _addressData[from].balance -= 1;
    _addressData[to].balance += 1;
    _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

    // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
    // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
    uint256 nextTokenId = tokenId + 1;
    if (_ownerships[nextTokenId].addr == address(0)) {
      if (_exists(nextTokenId)) {
        _ownerships[nextTokenId] = TokenOwnership(
          prevOwnership.addr,
          prevOwnership.startTimestamp
        );
      }
    }

    emit Transfer(from, to, tokenId);
    _afterTokenTransfers(from, to, tokenId, 1);
  }

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

  uint256 public nextOwnerToExplicitlySet = 0;

  /**
   * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
   */
  function _setOwnersExplicit(uint256 quantity) internal {
    uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
    require(quantity > 0, "quantity must be nonzero");
    uint256 endIndex = oldNextOwnerToSet + quantity - 1;
    if (endIndex > collectionSize) {  // endIndex > collectionSize - 1  =>  endIndex > collectionSize
      endIndex = collectionSize;  // endIndex > collectionSize - 1  =>  endIndex > collectionSize
    }
    // We know if the last one in the group exists, all in the group exist, due to serial ordering.
    require(_exists(endIndex), "not enough minted yet for this cleanup");
    for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
      if (_ownerships[i].addr == address(0)) {
        TokenOwnership memory ownership = ownershipOf(i);
        _ownerships[i] = TokenOwnership(
          ownership.addr,
          ownership.startTimestamp
        );
      }
    }
    nextOwnerToExplicitlySet = endIndex + 1;
  }

  /**
   * @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(to).onERC721Received.selector;
      } catch (bytes memory reason) {
        if (reason.length == 0) {
          revert("ERC721A: transfer to non ERC721Receiver implementer");
        } else {
          assembly {
            revert(add(32, reason), mload(reason))
          }
        }
      }
    } else {
      return true;
    }
  }

  /**
   * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
   *
   * startTokenId - the first token id to be transferred
   * quantity - the amount to be transferred
   *
   * 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`.
   */
  function _beforeTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}

  /**
   * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
   * minting.
   *
   * startTokenId - the first token id to be transferred
   * quantity - the amount to be transferred
   *
   * Calling conditions:
   *
   * - when `from` and `to` are both non-zero.
   * - `from` and `to` are never both zero.
   */
  function _afterTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 9 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 10 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 11 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 12 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 13 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 14 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 15 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 16 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 17 of 18 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view 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 Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

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

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

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

        _revokeRole(role, account);
    }

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"maxBatchSize","type":"uint256"},{"internalType":"uint256","name":"collectionSize","type":"uint256"},{"internalType":"string","name":"baseTokenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"addLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"alreadymint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"fablesLevel","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"add","type":"address"}],"name":"getInvestor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_table","type":"uint8"},{"internalType":"address","name":"add","type":"address"}],"name":"getWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"grantManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"grantMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"investor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isAirdrop","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"add","type":"address"}],"name":"isAlreadymint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_send","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipients","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintBatchInvestor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintVIP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"redLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"revokeManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"revokeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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"},{"internalType":"uint8","name":"_base","type":"uint8"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_investor","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setInvestor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_item","type":"uint8"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"setSellTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_table","type":"uint8"},{"internalType":"address[]","name":"setAmount","type":"address[]"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"transferAdmin","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60c0604052600180556000600855600c80546001600160a01b03191673fd7f90b4746d70281aab4a4bbd64a6dd29e5537d1790553480156200004057600080fd5b5060405162003c2138038062003c2183398101604081905262000063916200049d565b848484846200007460003362000228565b620000a07f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b083362000228565b620000cc7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000228565b60008111620001395760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b600082116200019b5760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840162000130565b8351620001b09060029060208701906200032a565b508251620001c69060039060208601906200032a565b5060a09190915260805250620001de90503362000238565b60008052600d602090815281516200021c917f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee91908401906200032a565b5050505050506200057f565b6200023482826200028a565b5050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000234576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002e63390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620003389062000542565b90600052602060002090601f0160209004810192826200035c5760008555620003a7565b82601f106200037757805160ff1916838001178555620003a7565b82800160010185558215620003a7579182015b82811115620003a75782518255916020019190600101906200038a565b50620003b5929150620003b9565b5090565b5b80821115620003b55760008155600101620003ba565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620003f857600080fd5b81516001600160401b0380821115620004155762000415620003d0565b604051601f8301601f19908116603f01168101908282118183101715620004405762000440620003d0565b816040528381526020925086838588010111156200045d57600080fd5b600091505b8382101562000481578582018301518183018401529082019062000462565b83821115620004935760008385830101525b9695505050505050565b600080600080600060a08688031215620004b657600080fd5b85516001600160401b0380821115620004ce57600080fd5b620004dc89838a01620003e6565b96506020880151915080821115620004f357600080fd5b6200050189838a01620003e6565b9550604088015194506060880151935060808801519150808211156200052657600080fd5b506200053588828901620003e6565b9150509295509295909350565b600181811c908216806200055757607f821691505b602082108114156200057957634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051613671620005b060003960008181612378015281816123a20152612a200152600050506136716000f3fe608060405234801561001057600080fd5b50600436106103835760003560e01c80636f243a9c116101de578063b5070e241161010f578063d7224ba0116100ad578063ec87621c1161007c578063ec87621c1461081c578063f135af1e14610831578063f2fde38b14610844578063f8e454221461085757600080fd5b8063d7224ba0146107a1578063d8bfab5b146107aa578063e8222b2c146107cd578063e985e9c5146107e057600080fd5b8063c87b56dd116100e9578063c87b56dd14610753578063cfbd488514610766578063d539139314610779578063d547741f1461078e57600080fd5b8063b5070e241461070d578063b88d4fde1461072d578063c4b95b5c1461074057600080fd5b80638da5cb5b1161017c57806391d148541161015657806391d14854146106d757806395d89b41146106ea578063a217fddf146106f2578063a22cb465146106fa57600080fd5b80638da5cb5b146106a05780638e327dd3146106b15780638f35a75e146106c457600080fd5b806375829def116101b857806375829def146106425780637aa8b58914610655578063898bc9c1146106755780638c874ebd1461069857600080fd5b80636f243a9c1461061457806370a0823114610627578063715018a61461063a57600080fd5b8063248b71fc116102b8578063377e32e61161025657806348539e371161023057806348539e37146105c85780634f6ccce7146105db5780636352211e146105ee5780636a6278421461060157600080fd5b8063377e32e61461058f5780633a1ad046146105a257806342842e0e146105b557600080fd5b80632d3df31f116102925780632d3df31f1461054e5780632f2ff15d146105565780632f745c591461056957806336568abe1461057c57600080fd5b8063248b71fc146104f357806324ecff3e14610506578063261707fa1461053b57600080fd5b80630e801b561161032557806318160ddd116102ff57806318160ddd146104875780631b1cd4ff1461049d57806323b872dd146104bd578063248a9ca3146104d057600080fd5b80630e801b56146104595780631458f8e214610461578063162094c41461047457600080fd5b806306fdde031161036157806306fdde03146103d8578063081812fc146103ed578063095ea7b3146104185780630b635b8c1461042b57600080fd5b806301ffc9a7146103885780630290c937146103b057806305100a6a146103c3575b600080fd5b61039b610396366004612ce3565b61085f565b60405190151581526020015b60405180910390f35b61039b6103be366004612d15565b610870565b6103d66103d1366004612d32565b6108df565b005b6103e0610996565b6040516103a79190612da3565b6104006103fb366004612d32565b610a28565b6040516001600160a01b0390911681526020016103a7565b6103d6610426366004612db6565b610ab3565b61039b610439366004612df8565b601260209081526000928352604080842090915290825290205460ff1681565b6103d6610bcb565b6103d661046f366004612e75565b610d46565b6103d6610482366004612fb0565b610de7565b61048f610e0a565b6040519081526020016103a7565b61048f6104ab366004612d15565b60136020526000908152604090205481565b6103d66104cb366004612ff6565b610e1f565b61048f6104de366004612d32565b60009081526020819052604090206001015490565b6103d6610501366004612db6565b610e2a565b610529610514366004612d32565b600f6020526000908152604090205460ff1681565b60405160ff90911681526020016103a7565b6103d6610549366004612d15565b610e8d565b6103d6610ec2565b6103d6610564366004613037565b611056565b61048f610577366004612db6565b61107c565b6103d661058a366004613037565b6111f2565b6103d661059d366004612d15565b61126c565b6103d66105b0366004612d32565b611290565b6103d66105c3366004612ff6565b6112c6565b6103d66105d636600461305c565b6112e1565b61048f6105e9366004612d32565b61131d565b6104006105fc366004612d32565b611386565b6103d661060f366004612d15565b611398565b6103d66106223660046130a9565b6113fd565b61048f610635366004612d15565b611535565b6103d66115c6565b6103d6610650366004612d15565b61162a565b61048f6106633660046130cb565b60116020526000908152604090205481565b61039b610683366004612d15565b600e6020526000908152604090205460ff1681565b6103d661164c565b600a546001600160a01b0316610400565b6103d66106bf366004612db6565b61170f565b61048f6106d2366004612d15565b611745565b61039b6106e5366004613037565b6117b4565b6103e06117dd565b61048f600081565b6103d66107083660046130f4565b6117ec565b61048f61071b3660046130cb565b60106020526000908152604090205481565b6103d661073b366004613122565b6118b1565b6103d661074e366004612d15565b6118e4565b6103e0610761366004612d32565b611908565b6103d6610774366004612d15565b6119e6565b61048f60008051602061361c83398151915281565b6103d661079c366004613037565b611a17565b61048f60085481565b61039b6107b8366004612d32565b60146020526000908152604090205460ff1681565b61039b6107db366004612df8565b611a3d565b61039b6107ee3660046131a1565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61048f6000805160206135fc83398151915281565b6103d661083f3660046131bf565b611ab5565b6103d6610852366004612d15565b611af1565b6103d6611bb9565b600061086a82611cc5565b92915050565b600c5460405163898bc9c160e01b81526001600160a01b038381166004830152600092169063898bc9c190602401602060405180830381865afa1580156108bb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086a91906131f2565b60008051602061361c8339815191526108f88133611d20565b6000828152600f6020526040902054600160ff90911610156109545760405162461bcd60e51b815260206004820152601060248201526f4c6576656c206973206c6f776573742160801b60448201526064015b60405180910390fd5b6000828152600f60205260409020546109729060019060ff16613225565b6000928352600f6020526040909220805460ff191660ff9093169290921790915550565b6060600280546109a590613248565b80601f01602080910402602001604051908101604052809291908181526020018280546109d190613248565b8015610a1e5780601f106109f357610100808354040283529160200191610a1e565b820191906000526020600020905b815481529060010190602001808311610a0157829003601f168201915b5050505050905090565b6000610a35826001541190565b610a975760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b606482015260840161094b565b506000908152600660205260409020546001600160a01b031690565b6000610abe82611386565b9050806001600160a01b0316836001600160a01b03161415610b2d5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b606482015260840161094b565b336001600160a01b0382161480610b495750610b4981336107ee565b610bbb5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606482015260840161094b565b610bc6838383611d84565b505050565b6000610bd633611745565b905060008111610c1c5760405162461bcd60e51b8152602060048201526011602482015270596f752063616e206e6f74206d696e742160781b604482015260640161094b565b610bb881600b54610c2d9190613283565b1115610c4b5760405162461bcd60e51b815260040161094b9061329b565b600160005260106020527f8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b5f544210801590610cb05750600160005260116020527f17bc176d2408558f6e4111feebc3cab4e16b63e967be91cde721f4c8a488b5525442105b610ccc5760405162461bcd60e51b815260040161094b906132cb565b336000908152600e602052604090205460ff16158015610cf25750610cf033610870565b155b610d0e5760405162461bcd60e51b815260040161094b906132f7565b80600b54610d1c9190613283565b600b55336000818152600e60205260409020805460ff19166001179055610d439082611de0565b50565b6000805160206135fc833981519152610d5f8133611d20565b60005b82518161ffff161015610de15760ff84166000908152601260205260408120845160019290869061ffff8616908110610d9d57610d9d613327565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610dd98161333d565b915050610d62565b50505050565b6000805160206135fc833981519152610e008133611d20565b610bc68383611dfa565b600060018054610e1a919061335f565b905090565b610bc6838383611e87565b60008051602061361c833981519152610e438133611d20565b610bb882600b54610e549190613283565b1115610e725760405162461bcd60e51b815260040161094b9061329b565b81600b54610e809190613283565b600b55610bc68383611de0565b6000805160206135fc833981519152610ea68133611d20565b610ebe60008051602061361c8339815191528361220d565b5050565b336000908152600e602052604090205460ff16158015610ee85750610ee633610870565b155b610f045760405162461bcd60e51b815260040161094b906132f7565b600260005260106020527f853b2fefe141400fef543280f93d98bd49996069f632d0d20236afeeed8e46a2544210801590610f695750600260005260116020527f08037d7b151cc412d25674a4e66b334d9ae9d2e5517a7feaae5cdb828bf1c6285442105b610f855760405162461bcd60e51b815260040161094b906132cb565b610f90600233611a3d565b80610fa15750610fa1600133611a3d565b610fed5760405162461bcd60e51b815260206004820152601c60248201527f596f7520617265206e6f742077686974656c697374206f722056495000000000604482015260640161094b565b610bb8600b546001610fff9190613283565b111561101d5760405162461bcd60e51b815260040161094b9061329b565b336000908152600e60205260409020805460ff19166001908117909155600b5461104691613283565b600b55611054336001611de0565b565b6000828152602081905260409020600101546110728133611d20565b610bc6838361220d565b600061108783611535565b82106110e05760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161094b565b60006110ea610e0a565b905060008060005b838111611192576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561114357805192505b876001600160a01b0316836001600160a01b0316141561117f57868414156111715750935061086a92505050565b8361117b81613376565b9450505b508061118a81613376565b9150506110f2565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b606482015260840161094b565b6001600160a01b03811633146112625760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161094b565b610ebe8282612291565b60006112788133611d20565b610ebe6000805160206135fc83398151915283612291565b60008051602061361c8339815191526112a98133611d20565b6000828152600f60205260409020546109729060ff166001613391565b610bc6838383604051806020016040528060008152506118b1565b6000805160206135fc8339815191526112fa8133611d20565b60ff82166000908152600d602090815260409091208451610de192860190612c3d565b6000611327610e0a565b8211156113825760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b606482015260840161094b565b5090565b6000611391826122f6565b5192915050565b60008051602061361c8339815191526113b18133611d20565b610bb8600b5460016113c39190613283565b11156113e15760405162461bcd60e51b815260040161094b9061329b565b600b546113ef906001613283565b600b55610ebe826001611de0565b6000805160206135fc8339815191526114168133611d20565b825b8281116114875760008181526014602052604090205460ff16156114755760405162461bcd60e51b8152602060048201526014602482015273596f7520616c72656164792061697264726f702160601b604482015260640161094b565b8061147f81613376565b915050611418565b50825b828111610de157600081815260146020526040808220805460ff19166001179055600c5490516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e90602401602060405180830381865afa1580156114f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151791906133b6565b905061152281611398565b508061152d81613376565b91505061148a565b60006001600160a01b0382166115a15760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840161094b565b506001600160a01b03166000908152600560205260409020546001600160801b031690565b600a546001600160a01b031633146116205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094b565b611054600061249f565b60006116368133611d20565b611641600033612291565b610ebe60008361220d565b336000908152600e602052604090205460ff16158015611672575061167033610870565b155b61168e5760405162461bcd60e51b815260040161094b906132f7565b600360005260106020527fb3edd0d534d647cffdae9f1294f11ad21f3fcf2814bea44c92bbb8d384a57d9e5442108015906116f35750600360005260116020527f9bfbaa59f8e10e7868f8b402de9d605a390c45ddaebd8c9de3c6f31e733c87ff5442105b610fed5760405162461bcd60e51b815260040161094b906132cb565b6000805160206135fc8339815191526117288133611d20565b506001600160a01b03909116600090815260136020526040902055565b600c54604051631b1cd4ff60e01b81526001600160a01b0383811660048301526000921690631b1cd4ff90602401602060405180830381865afa158015611790573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086a91906133d3565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600380546109a590613248565b6001600160a01b0382163314156118455760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c6572000000000000604482015260640161094b565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6118bc848484611e87565b6118c8848484846124f1565b610de15760405162461bcd60e51b815260040161094b906133ec565b60006118f08133611d20565b610ebe6000805160206135fc8339815191528361220d565b6060611915826001541190565b6119795760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161094b565b6000828152600f60205260408120546119949060ff166125f0565b905060008151116119b457604051806020016040528060008152506119df565b806119be84612696565b6040516020016119cf92919061343f565b6040516020818303038152906040525b9392505050565b6000805160206135fc8339815191526119ff8133611d20565b610ebe60008051602061361c83398151915283612291565b600082815260208190526040902060010154611a338133611d20565b610bc68383612291565b600c546040516302d8d6e360e21b815260ff841660048201526001600160a01b0383811660248301526000921690630b635b8c90604401602060405180830381865afa158015611a91573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119df91906131f2565b6000805160206135fc833981519152611ace8133611d20565b5060ff909216600090815260106020908152604080832093909355601190522055565b600a546001600160a01b03163314611b4b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094b565b6001600160a01b038116611bb05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161094b565b610d438161249f565b336000908152600e602052604090205460ff16158015611bdf5750611bdd33610870565b155b611bfb5760405162461bcd60e51b815260040161094b906132f7565b600160005260106020527f8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b5f544210801590611c605750600160005260116020527f17bc176d2408558f6e4111feebc3cab4e16b63e967be91cde721f4c8a488b5525442105b611c7c5760405162461bcd60e51b815260040161094b906132cb565b611c87600133611a3d565b610fed5760405162461bcd60e51b815260206004820152600f60248201526e0596f7520617265206e6f742056495608c1b604482015260640161094b565b60006001600160e01b031982166380ac58cd60e01b1480611cf657506001600160e01b03198216635b5e139f60e01b145b80611d1157506001600160e01b0319821663780e9d6360e01b145b8061086a575061086a82612793565b611d2a82826117b4565b610ebe57611d42816001600160a01b031660146127c8565b611d4d8360206127c8565b604051602001611d5e92919061346e565b60408051601f198184030181529082905262461bcd60e51b825261094b91600401612da3565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610ebe828260405180602001604052806000815250612963565b611e05826001541190565b611e685760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161094b565b60008281526009602090815260409091208251610bc692840190612c3d565b6000611e92826122f6565b80519091506000906001600160a01b0316336001600160a01b03161480611ec9575033611ebe84610a28565b6001600160a01b0316145b80611edb57508151611edb90336107ee565b905080611f455760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161094b565b846001600160a01b031682600001516001600160a01b031614611fb95760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b606482015260840161094b565b6001600160a01b03841661201d5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161094b565b61202d6000848460000151611d84565b6001600160a01b038516600090815260056020526040812080546001929061205f9084906001600160801b03166134e3565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260056020526040812080546001945090926120ab9185911661350b565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526004909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612132846001613283565b6000818152600460205260409020549091506001600160a01b03166121c35761215c816001541190565b156121c35760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61221782826117b4565b610ebe576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561224d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61229b82826117b4565b15610ebe576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040805180820190915260008082526020820152612315826001541190565b6123745760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b606482015260840161094b565b60007f000000000000000000000000000000000000000000000000000000000000000083106123d5576123c77f00000000000000000000000000000000000000000000000000000000000000008461335f565b6123d2906001613283565b90505b825b81811061243e576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561242b57949350505050565b50806124368161352d565b9150506123d7565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b606482015260840161094b565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b156125e457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612535903390899088908890600401613544565b6020604051808303816000875af1925050508015612570575060408051601f3d908101601f1916820190925261256d91810190613581565b60015b6125ca573d80801561259e576040519150601f19603f3d011682016040523d82523d6000602084013e6125a3565b606091505b5080516125c25760405162461bcd60e51b815260040161094b906133ec565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125e8565b5060015b949350505050565b60ff81166000908152600d6020526040902080546060919061261190613248565b80601f016020809104026020016040519081016040528092919081815260200182805461263d90613248565b801561268a5780601f1061265f5761010080835404028352916020019161268a565b820191906000526020600020905b81548152906001019060200180831161266d57829003601f168201915b50505050509050919050565b6060816126ba5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126e457806126ce81613376565b91506126dd9050600a836135b4565b91506126be565b6000816001600160401b038111156126fe576126fe612e2f565b6040519080825280601f01601f191660200182016040528015612728576020820181803683370190505b5090505b84156125e85761273d60018361335f565b915061274a600a866135c8565b612755906030613283565b60f81b81838151811061276a5761276a613327565b60200101906001600160f81b031916908160001a90535061278c600a866135b4565b945061272c565b60006001600160e01b03198216637965db0b60e01b148061086a57506301ffc9a760e01b6001600160e01b031983161461086a565b606060006127d78360026135dc565b6127e2906002613283565b6001600160401b038111156127f9576127f9612e2f565b6040519080825280601f01601f191660200182016040528015612823576020820181803683370190505b509050600360fc1b8160008151811061283e5761283e613327565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061286d5761286d613327565b60200101906001600160f81b031916908160001a90535060006128918460026135dc565b61289c906001613283565b90505b6001811115612914576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106128d0576128d0613327565b1a60f81b8282815181106128e6576128e6613327565b60200101906001600160f81b031916908160001a90535060049490941c9361290d8161352d565b905061289f565b5083156119df5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161094b565b6001546001600160a01b0384166129c65760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161094b565b6129d1816001541190565b15612a1e5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604482015260640161094b565b7f0000000000000000000000000000000000000000000000000000000000000000831115612a995760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b606482015260840161094b565b6001600160a01b0384166000908152600560209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190612af590879061350b565b6001600160801b03168152602001858360200151612b13919061350b565b6001600160801b039081169091526001600160a01b0380881660008181526005602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526004909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015612c325760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612bf660008884886124f1565b612c125760405162461bcd60e51b815260040161094b906133ec565b81612c1c81613376565b9250508080612c2a90613376565b915050612ba9565b506001819055612205565b828054612c4990613248565b90600052602060002090601f016020900481019282612c6b5760008555612cb1565b82601f10612c8457805160ff1916838001178555612cb1565b82800160010185558215612cb1579182015b82811115612cb1578251825591602001919060010190612c96565b506113829291505b808211156113825760008155600101612cb9565b6001600160e01b031981168114610d4357600080fd5b600060208284031215612cf557600080fd5b81356119df81612ccd565b6001600160a01b0381168114610d4357600080fd5b600060208284031215612d2757600080fd5b81356119df81612d00565b600060208284031215612d4457600080fd5b5035919050565b60005b83811015612d66578181015183820152602001612d4e565b83811115610de15750506000910152565b60008151808452612d8f816020860160208601612d4b565b601f01601f19169290920160200192915050565b6020815260006119df6020830184612d77565b60008060408385031215612dc957600080fd5b8235612dd481612d00565b946020939093013593505050565b803560ff81168114612df357600080fd5b919050565b60008060408385031215612e0b57600080fd5b612e1483612de2565b91506020830135612e2481612d00565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612e6d57612e6d612e2f565b604052919050565b60008060408385031215612e8857600080fd5b612e9183612de2565b91506020808401356001600160401b0380821115612eae57600080fd5b818601915086601f830112612ec257600080fd5b813581811115612ed457612ed4612e2f565b8060051b9150612ee5848301612e45565b8181529183018401918481019089841115612eff57600080fd5b938501935b83851015612f295784359250612f1983612d00565b8282529385019390850190612f04565b8096505050505050509250929050565b60006001600160401b03831115612f5257612f52612e2f565b612f65601f8401601f1916602001612e45565b9050828152838383011115612f7957600080fd5b828260208301376000602084830101529392505050565b600082601f830112612fa157600080fd5b6119df83833560208501612f39565b60008060408385031215612fc357600080fd5b8235915060208301356001600160401b03811115612fe057600080fd5b612fec85828601612f90565b9150509250929050565b60008060006060848603121561300b57600080fd5b833561301681612d00565b9250602084013561302681612d00565b929592945050506040919091013590565b6000806040838503121561304a57600080fd5b823591506020830135612e2481612d00565b6000806040838503121561306f57600080fd5b82356001600160401b0381111561308557600080fd5b61309185828601612f90565b9250506130a060208401612de2565b90509250929050565b600080604083850312156130bc57600080fd5b50508035926020909101359150565b6000602082840312156130dd57600080fd5b6119df82612de2565b8015158114610d4357600080fd5b6000806040838503121561310757600080fd5b823561311281612d00565b91506020830135612e24816130e6565b6000806000806080858703121561313857600080fd5b843561314381612d00565b9350602085013561315381612d00565b92506040850135915060608501356001600160401b0381111561317557600080fd5b8501601f8101871361318657600080fd5b61319587823560208401612f39565b91505092959194509250565b600080604083850312156131b457600080fd5b8235612e1481612d00565b6000806000606084860312156131d457600080fd5b6131dd84612de2565b95602085013595506040909401359392505050565b60006020828403121561320457600080fd5b81516119df816130e6565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff84168082101561323f5761323f61320f565b90039392505050565b600181811c9082168061325c57607f821691505b6020821081141561327d57634e487b7160e01b600052602260045260246000fd5b50919050565b600082198211156132965761329661320f565b500190565b602080825260169082015275139195081a5cc8185b1c9958591e481b1a5b5a5d195960521b604082015260600190565b6020808252601290820152714974206973206e6f742073656c6c54696d6560701b604082015260600190565b602080825260169082015275165bdd48185c9948185b1c9958591e481b5a5b9d195960521b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600061ffff808316818114156133555761335561320f565b6001019392505050565b6000828210156133715761337161320f565b500390565b600060001982141561338a5761338a61320f565b5060010190565b600060ff821660ff84168060ff038211156133ae576133ae61320f565b019392505050565b6000602082840312156133c857600080fd5b81516119df81612d00565b6000602082840312156133e557600080fd5b5051919050565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60008351613451818460208801612d4b565b835190830190613465818360208801612d4b565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516134a6816017850160208801612d4b565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516134d7816028840160208801612d4b565b01602801949350505050565b60006001600160801b03838116908316818110156135035761350361320f565b039392505050565b60006001600160801b038083168185168083038211156134655761346561320f565b60008161353c5761353c61320f565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061357790830184612d77565b9695505050505050565b60006020828403121561359357600080fd5b81516119df81612ccd565b634e487b7160e01b600052601260045260246000fd5b6000826135c3576135c361359e565b500490565b6000826135d7576135d761359e565b500690565b60008160001904831182151516156135f6576135f661320f565b50029056fe241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b089f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220757fdce261f5333d8137970e853e9d1095cf4063189c270e8aaf2b1b0d5830c164736f6c634300080c003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000c80000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000064661626c6573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034641420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005868747470733a2f2f7472617274676174657761792e6d7970696e6174612e636c6f75642f697066732f516d5358576a5046435535777546334e63696e6d324879656a5950387070516e327366594874745746457878536d2f0000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103835760003560e01c80636f243a9c116101de578063b5070e241161010f578063d7224ba0116100ad578063ec87621c1161007c578063ec87621c1461081c578063f135af1e14610831578063f2fde38b14610844578063f8e454221461085757600080fd5b8063d7224ba0146107a1578063d8bfab5b146107aa578063e8222b2c146107cd578063e985e9c5146107e057600080fd5b8063c87b56dd116100e9578063c87b56dd14610753578063cfbd488514610766578063d539139314610779578063d547741f1461078e57600080fd5b8063b5070e241461070d578063b88d4fde1461072d578063c4b95b5c1461074057600080fd5b80638da5cb5b1161017c57806391d148541161015657806391d14854146106d757806395d89b41146106ea578063a217fddf146106f2578063a22cb465146106fa57600080fd5b80638da5cb5b146106a05780638e327dd3146106b15780638f35a75e146106c457600080fd5b806375829def116101b857806375829def146106425780637aa8b58914610655578063898bc9c1146106755780638c874ebd1461069857600080fd5b80636f243a9c1461061457806370a0823114610627578063715018a61461063a57600080fd5b8063248b71fc116102b8578063377e32e61161025657806348539e371161023057806348539e37146105c85780634f6ccce7146105db5780636352211e146105ee5780636a6278421461060157600080fd5b8063377e32e61461058f5780633a1ad046146105a257806342842e0e146105b557600080fd5b80632d3df31f116102925780632d3df31f1461054e5780632f2ff15d146105565780632f745c591461056957806336568abe1461057c57600080fd5b8063248b71fc146104f357806324ecff3e14610506578063261707fa1461053b57600080fd5b80630e801b561161032557806318160ddd116102ff57806318160ddd146104875780631b1cd4ff1461049d57806323b872dd146104bd578063248a9ca3146104d057600080fd5b80630e801b56146104595780631458f8e214610461578063162094c41461047457600080fd5b806306fdde031161036157806306fdde03146103d8578063081812fc146103ed578063095ea7b3146104185780630b635b8c1461042b57600080fd5b806301ffc9a7146103885780630290c937146103b057806305100a6a146103c3575b600080fd5b61039b610396366004612ce3565b61085f565b60405190151581526020015b60405180910390f35b61039b6103be366004612d15565b610870565b6103d66103d1366004612d32565b6108df565b005b6103e0610996565b6040516103a79190612da3565b6104006103fb366004612d32565b610a28565b6040516001600160a01b0390911681526020016103a7565b6103d6610426366004612db6565b610ab3565b61039b610439366004612df8565b601260209081526000928352604080842090915290825290205460ff1681565b6103d6610bcb565b6103d661046f366004612e75565b610d46565b6103d6610482366004612fb0565b610de7565b61048f610e0a565b6040519081526020016103a7565b61048f6104ab366004612d15565b60136020526000908152604090205481565b6103d66104cb366004612ff6565b610e1f565b61048f6104de366004612d32565b60009081526020819052604090206001015490565b6103d6610501366004612db6565b610e2a565b610529610514366004612d32565b600f6020526000908152604090205460ff1681565b60405160ff90911681526020016103a7565b6103d6610549366004612d15565b610e8d565b6103d6610ec2565b6103d6610564366004613037565b611056565b61048f610577366004612db6565b61107c565b6103d661058a366004613037565b6111f2565b6103d661059d366004612d15565b61126c565b6103d66105b0366004612d32565b611290565b6103d66105c3366004612ff6565b6112c6565b6103d66105d636600461305c565b6112e1565b61048f6105e9366004612d32565b61131d565b6104006105fc366004612d32565b611386565b6103d661060f366004612d15565b611398565b6103d66106223660046130a9565b6113fd565b61048f610635366004612d15565b611535565b6103d66115c6565b6103d6610650366004612d15565b61162a565b61048f6106633660046130cb565b60116020526000908152604090205481565b61039b610683366004612d15565b600e6020526000908152604090205460ff1681565b6103d661164c565b600a546001600160a01b0316610400565b6103d66106bf366004612db6565b61170f565b61048f6106d2366004612d15565b611745565b61039b6106e5366004613037565b6117b4565b6103e06117dd565b61048f600081565b6103d66107083660046130f4565b6117ec565b61048f61071b3660046130cb565b60106020526000908152604090205481565b6103d661073b366004613122565b6118b1565b6103d661074e366004612d15565b6118e4565b6103e0610761366004612d32565b611908565b6103d6610774366004612d15565b6119e6565b61048f60008051602061361c83398151915281565b6103d661079c366004613037565b611a17565b61048f60085481565b61039b6107b8366004612d32565b60146020526000908152604090205460ff1681565b61039b6107db366004612df8565b611a3d565b61039b6107ee3660046131a1565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61048f6000805160206135fc83398151915281565b6103d661083f3660046131bf565b611ab5565b6103d6610852366004612d15565b611af1565b6103d6611bb9565b600061086a82611cc5565b92915050565b600c5460405163898bc9c160e01b81526001600160a01b038381166004830152600092169063898bc9c190602401602060405180830381865afa1580156108bb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086a91906131f2565b60008051602061361c8339815191526108f88133611d20565b6000828152600f6020526040902054600160ff90911610156109545760405162461bcd60e51b815260206004820152601060248201526f4c6576656c206973206c6f776573742160801b60448201526064015b60405180910390fd5b6000828152600f60205260409020546109729060019060ff16613225565b6000928352600f6020526040909220805460ff191660ff9093169290921790915550565b6060600280546109a590613248565b80601f01602080910402602001604051908101604052809291908181526020018280546109d190613248565b8015610a1e5780601f106109f357610100808354040283529160200191610a1e565b820191906000526020600020905b815481529060010190602001808311610a0157829003601f168201915b5050505050905090565b6000610a35826001541190565b610a975760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b606482015260840161094b565b506000908152600660205260409020546001600160a01b031690565b6000610abe82611386565b9050806001600160a01b0316836001600160a01b03161415610b2d5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b606482015260840161094b565b336001600160a01b0382161480610b495750610b4981336107ee565b610bbb5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606482015260840161094b565b610bc6838383611d84565b505050565b6000610bd633611745565b905060008111610c1c5760405162461bcd60e51b8152602060048201526011602482015270596f752063616e206e6f74206d696e742160781b604482015260640161094b565b610bb881600b54610c2d9190613283565b1115610c4b5760405162461bcd60e51b815260040161094b9061329b565b600160005260106020527f8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b5f544210801590610cb05750600160005260116020527f17bc176d2408558f6e4111feebc3cab4e16b63e967be91cde721f4c8a488b5525442105b610ccc5760405162461bcd60e51b815260040161094b906132cb565b336000908152600e602052604090205460ff16158015610cf25750610cf033610870565b155b610d0e5760405162461bcd60e51b815260040161094b906132f7565b80600b54610d1c9190613283565b600b55336000818152600e60205260409020805460ff19166001179055610d439082611de0565b50565b6000805160206135fc833981519152610d5f8133611d20565b60005b82518161ffff161015610de15760ff84166000908152601260205260408120845160019290869061ffff8616908110610d9d57610d9d613327565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610dd98161333d565b915050610d62565b50505050565b6000805160206135fc833981519152610e008133611d20565b610bc68383611dfa565b600060018054610e1a919061335f565b905090565b610bc6838383611e87565b60008051602061361c833981519152610e438133611d20565b610bb882600b54610e549190613283565b1115610e725760405162461bcd60e51b815260040161094b9061329b565b81600b54610e809190613283565b600b55610bc68383611de0565b6000805160206135fc833981519152610ea68133611d20565b610ebe60008051602061361c8339815191528361220d565b5050565b336000908152600e602052604090205460ff16158015610ee85750610ee633610870565b155b610f045760405162461bcd60e51b815260040161094b906132f7565b600260005260106020527f853b2fefe141400fef543280f93d98bd49996069f632d0d20236afeeed8e46a2544210801590610f695750600260005260116020527f08037d7b151cc412d25674a4e66b334d9ae9d2e5517a7feaae5cdb828bf1c6285442105b610f855760405162461bcd60e51b815260040161094b906132cb565b610f90600233611a3d565b80610fa15750610fa1600133611a3d565b610fed5760405162461bcd60e51b815260206004820152601c60248201527f596f7520617265206e6f742077686974656c697374206f722056495000000000604482015260640161094b565b610bb8600b546001610fff9190613283565b111561101d5760405162461bcd60e51b815260040161094b9061329b565b336000908152600e60205260409020805460ff19166001908117909155600b5461104691613283565b600b55611054336001611de0565b565b6000828152602081905260409020600101546110728133611d20565b610bc6838361220d565b600061108783611535565b82106110e05760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161094b565b60006110ea610e0a565b905060008060005b838111611192576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561114357805192505b876001600160a01b0316836001600160a01b0316141561117f57868414156111715750935061086a92505050565b8361117b81613376565b9450505b508061118a81613376565b9150506110f2565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b606482015260840161094b565b6001600160a01b03811633146112625760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161094b565b610ebe8282612291565b60006112788133611d20565b610ebe6000805160206135fc83398151915283612291565b60008051602061361c8339815191526112a98133611d20565b6000828152600f60205260409020546109729060ff166001613391565b610bc6838383604051806020016040528060008152506118b1565b6000805160206135fc8339815191526112fa8133611d20565b60ff82166000908152600d602090815260409091208451610de192860190612c3d565b6000611327610e0a565b8211156113825760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b606482015260840161094b565b5090565b6000611391826122f6565b5192915050565b60008051602061361c8339815191526113b18133611d20565b610bb8600b5460016113c39190613283565b11156113e15760405162461bcd60e51b815260040161094b9061329b565b600b546113ef906001613283565b600b55610ebe826001611de0565b6000805160206135fc8339815191526114168133611d20565b825b8281116114875760008181526014602052604090205460ff16156114755760405162461bcd60e51b8152602060048201526014602482015273596f7520616c72656164792061697264726f702160601b604482015260640161094b565b8061147f81613376565b915050611418565b50825b828111610de157600081815260146020526040808220805460ff19166001179055600c5490516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e90602401602060405180830381865afa1580156114f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151791906133b6565b905061152281611398565b508061152d81613376565b91505061148a565b60006001600160a01b0382166115a15760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840161094b565b506001600160a01b03166000908152600560205260409020546001600160801b031690565b600a546001600160a01b031633146116205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094b565b611054600061249f565b60006116368133611d20565b611641600033612291565b610ebe60008361220d565b336000908152600e602052604090205460ff16158015611672575061167033610870565b155b61168e5760405162461bcd60e51b815260040161094b906132f7565b600360005260106020527fb3edd0d534d647cffdae9f1294f11ad21f3fcf2814bea44c92bbb8d384a57d9e5442108015906116f35750600360005260116020527f9bfbaa59f8e10e7868f8b402de9d605a390c45ddaebd8c9de3c6f31e733c87ff5442105b610fed5760405162461bcd60e51b815260040161094b906132cb565b6000805160206135fc8339815191526117288133611d20565b506001600160a01b03909116600090815260136020526040902055565b600c54604051631b1cd4ff60e01b81526001600160a01b0383811660048301526000921690631b1cd4ff90602401602060405180830381865afa158015611790573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086a91906133d3565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600380546109a590613248565b6001600160a01b0382163314156118455760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c6572000000000000604482015260640161094b565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6118bc848484611e87565b6118c8848484846124f1565b610de15760405162461bcd60e51b815260040161094b906133ec565b60006118f08133611d20565b610ebe6000805160206135fc8339815191528361220d565b6060611915826001541190565b6119795760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161094b565b6000828152600f60205260408120546119949060ff166125f0565b905060008151116119b457604051806020016040528060008152506119df565b806119be84612696565b6040516020016119cf92919061343f565b6040516020818303038152906040525b9392505050565b6000805160206135fc8339815191526119ff8133611d20565b610ebe60008051602061361c83398151915283612291565b600082815260208190526040902060010154611a338133611d20565b610bc68383612291565b600c546040516302d8d6e360e21b815260ff841660048201526001600160a01b0383811660248301526000921690630b635b8c90604401602060405180830381865afa158015611a91573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119df91906131f2565b6000805160206135fc833981519152611ace8133611d20565b5060ff909216600090815260106020908152604080832093909355601190522055565b600a546001600160a01b03163314611b4b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094b565b6001600160a01b038116611bb05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161094b565b610d438161249f565b336000908152600e602052604090205460ff16158015611bdf5750611bdd33610870565b155b611bfb5760405162461bcd60e51b815260040161094b906132f7565b600160005260106020527f8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b5f544210801590611c605750600160005260116020527f17bc176d2408558f6e4111feebc3cab4e16b63e967be91cde721f4c8a488b5525442105b611c7c5760405162461bcd60e51b815260040161094b906132cb565b611c87600133611a3d565b610fed5760405162461bcd60e51b815260206004820152600f60248201526e0596f7520617265206e6f742056495608c1b604482015260640161094b565b60006001600160e01b031982166380ac58cd60e01b1480611cf657506001600160e01b03198216635b5e139f60e01b145b80611d1157506001600160e01b0319821663780e9d6360e01b145b8061086a575061086a82612793565b611d2a82826117b4565b610ebe57611d42816001600160a01b031660146127c8565b611d4d8360206127c8565b604051602001611d5e92919061346e565b60408051601f198184030181529082905262461bcd60e51b825261094b91600401612da3565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610ebe828260405180602001604052806000815250612963565b611e05826001541190565b611e685760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161094b565b60008281526009602090815260409091208251610bc692840190612c3d565b6000611e92826122f6565b80519091506000906001600160a01b0316336001600160a01b03161480611ec9575033611ebe84610a28565b6001600160a01b0316145b80611edb57508151611edb90336107ee565b905080611f455760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161094b565b846001600160a01b031682600001516001600160a01b031614611fb95760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b606482015260840161094b565b6001600160a01b03841661201d5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161094b565b61202d6000848460000151611d84565b6001600160a01b038516600090815260056020526040812080546001929061205f9084906001600160801b03166134e3565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260056020526040812080546001945090926120ab9185911661350b565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526004909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612132846001613283565b6000818152600460205260409020549091506001600160a01b03166121c35761215c816001541190565b156121c35760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61221782826117b4565b610ebe576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561224d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61229b82826117b4565b15610ebe576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040805180820190915260008082526020820152612315826001541190565b6123745760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b606482015260840161094b565b60007f00000000000000000000000000000000000000000000000000000000000000c883106123d5576123c77f00000000000000000000000000000000000000000000000000000000000000c88461335f565b6123d2906001613283565b90505b825b81811061243e576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561242b57949350505050565b50806124368161352d565b9150506123d7565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b606482015260840161094b565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b156125e457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612535903390899088908890600401613544565b6020604051808303816000875af1925050508015612570575060408051601f3d908101601f1916820190925261256d91810190613581565b60015b6125ca573d80801561259e576040519150601f19603f3d011682016040523d82523d6000602084013e6125a3565b606091505b5080516125c25760405162461bcd60e51b815260040161094b906133ec565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125e8565b5060015b949350505050565b60ff81166000908152600d6020526040902080546060919061261190613248565b80601f016020809104026020016040519081016040528092919081815260200182805461263d90613248565b801561268a5780601f1061265f5761010080835404028352916020019161268a565b820191906000526020600020905b81548152906001019060200180831161266d57829003601f168201915b50505050509050919050565b6060816126ba5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126e457806126ce81613376565b91506126dd9050600a836135b4565b91506126be565b6000816001600160401b038111156126fe576126fe612e2f565b6040519080825280601f01601f191660200182016040528015612728576020820181803683370190505b5090505b84156125e85761273d60018361335f565b915061274a600a866135c8565b612755906030613283565b60f81b81838151811061276a5761276a613327565b60200101906001600160f81b031916908160001a90535061278c600a866135b4565b945061272c565b60006001600160e01b03198216637965db0b60e01b148061086a57506301ffc9a760e01b6001600160e01b031983161461086a565b606060006127d78360026135dc565b6127e2906002613283565b6001600160401b038111156127f9576127f9612e2f565b6040519080825280601f01601f191660200182016040528015612823576020820181803683370190505b509050600360fc1b8160008151811061283e5761283e613327565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061286d5761286d613327565b60200101906001600160f81b031916908160001a90535060006128918460026135dc565b61289c906001613283565b90505b6001811115612914576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106128d0576128d0613327565b1a60f81b8282815181106128e6576128e6613327565b60200101906001600160f81b031916908160001a90535060049490941c9361290d8161352d565b905061289f565b5083156119df5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161094b565b6001546001600160a01b0384166129c65760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161094b565b6129d1816001541190565b15612a1e5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604482015260640161094b565b7f00000000000000000000000000000000000000000000000000000000000000c8831115612a995760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b606482015260840161094b565b6001600160a01b0384166000908152600560209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190612af590879061350b565b6001600160801b03168152602001858360200151612b13919061350b565b6001600160801b039081169091526001600160a01b0380881660008181526005602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526004909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015612c325760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612bf660008884886124f1565b612c125760405162461bcd60e51b815260040161094b906133ec565b81612c1c81613376565b9250508080612c2a90613376565b915050612ba9565b506001819055612205565b828054612c4990613248565b90600052602060002090601f016020900481019282612c6b5760008555612cb1565b82601f10612c8457805160ff1916838001178555612cb1565b82800160010185558215612cb1579182015b82811115612cb1578251825591602001919060010190612c96565b506113829291505b808211156113825760008155600101612cb9565b6001600160e01b031981168114610d4357600080fd5b600060208284031215612cf557600080fd5b81356119df81612ccd565b6001600160a01b0381168114610d4357600080fd5b600060208284031215612d2757600080fd5b81356119df81612d00565b600060208284031215612d4457600080fd5b5035919050565b60005b83811015612d66578181015183820152602001612d4e565b83811115610de15750506000910152565b60008151808452612d8f816020860160208601612d4b565b601f01601f19169290920160200192915050565b6020815260006119df6020830184612d77565b60008060408385031215612dc957600080fd5b8235612dd481612d00565b946020939093013593505050565b803560ff81168114612df357600080fd5b919050565b60008060408385031215612e0b57600080fd5b612e1483612de2565b91506020830135612e2481612d00565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612e6d57612e6d612e2f565b604052919050565b60008060408385031215612e8857600080fd5b612e9183612de2565b91506020808401356001600160401b0380821115612eae57600080fd5b818601915086601f830112612ec257600080fd5b813581811115612ed457612ed4612e2f565b8060051b9150612ee5848301612e45565b8181529183018401918481019089841115612eff57600080fd5b938501935b83851015612f295784359250612f1983612d00565b8282529385019390850190612f04565b8096505050505050509250929050565b60006001600160401b03831115612f5257612f52612e2f565b612f65601f8401601f1916602001612e45565b9050828152838383011115612f7957600080fd5b828260208301376000602084830101529392505050565b600082601f830112612fa157600080fd5b6119df83833560208501612f39565b60008060408385031215612fc357600080fd5b8235915060208301356001600160401b03811115612fe057600080fd5b612fec85828601612f90565b9150509250929050565b60008060006060848603121561300b57600080fd5b833561301681612d00565b9250602084013561302681612d00565b929592945050506040919091013590565b6000806040838503121561304a57600080fd5b823591506020830135612e2481612d00565b6000806040838503121561306f57600080fd5b82356001600160401b0381111561308557600080fd5b61309185828601612f90565b9250506130a060208401612de2565b90509250929050565b600080604083850312156130bc57600080fd5b50508035926020909101359150565b6000602082840312156130dd57600080fd5b6119df82612de2565b8015158114610d4357600080fd5b6000806040838503121561310757600080fd5b823561311281612d00565b91506020830135612e24816130e6565b6000806000806080858703121561313857600080fd5b843561314381612d00565b9350602085013561315381612d00565b92506040850135915060608501356001600160401b0381111561317557600080fd5b8501601f8101871361318657600080fd5b61319587823560208401612f39565b91505092959194509250565b600080604083850312156131b457600080fd5b8235612e1481612d00565b6000806000606084860312156131d457600080fd5b6131dd84612de2565b95602085013595506040909401359392505050565b60006020828403121561320457600080fd5b81516119df816130e6565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff84168082101561323f5761323f61320f565b90039392505050565b600181811c9082168061325c57607f821691505b6020821081141561327d57634e487b7160e01b600052602260045260246000fd5b50919050565b600082198211156132965761329661320f565b500190565b602080825260169082015275139195081a5cc8185b1c9958591e481b1a5b5a5d195960521b604082015260600190565b6020808252601290820152714974206973206e6f742073656c6c54696d6560701b604082015260600190565b602080825260169082015275165bdd48185c9948185b1c9958591e481b5a5b9d195960521b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600061ffff808316818114156133555761335561320f565b6001019392505050565b6000828210156133715761337161320f565b500390565b600060001982141561338a5761338a61320f565b5060010190565b600060ff821660ff84168060ff038211156133ae576133ae61320f565b019392505050565b6000602082840312156133c857600080fd5b81516119df81612d00565b6000602082840312156133e557600080fd5b5051919050565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60008351613451818460208801612d4b565b835190830190613465818360208801612d4b565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516134a6816017850160208801612d4b565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516134d7816028840160208801612d4b565b01602801949350505050565b60006001600160801b03838116908316818110156135035761350361320f565b039392505050565b60006001600160801b038083168185168083038211156134655761346561320f565b60008161353c5761353c61320f565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061357790830184612d77565b9695505050505050565b60006020828403121561359357600080fd5b81516119df81612ccd565b634e487b7160e01b600052601260045260246000fd5b6000826135c3576135c361359e565b500490565b6000826135d7576135d761359e565b500690565b60008160001904831182151516156135f6576135f661320f565b50029056fe241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b089f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220757fdce261f5333d8137970e853e9d1095cf4063189c270e8aaf2b1b0d5830c164736f6c634300080c0033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000c80000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000064661626c6573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034641420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005868747470733a2f2f7472617274676174657761792e6d7970696e6174612e636c6f75642f697066732f516d5358576a5046435535777546334e63696e6d324879656a5950387070516e327366594874745746457878536d2f0000000000000000

-----Decoded View---------------
Arg [0] : name (string): Fables
Arg [1] : symbol (string): FAB
Arg [2] : maxBatchSize (uint256): 200
Arg [3] : collectionSize (uint256): 3000
Arg [4] : baseTokenURI (string): https://trartgateway.mypinata.cloud/ipfs/QmSXWjPFCU5wuF3Ncinm2HyejYP8ppQn2sfYHttWFExxSm/

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c8
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000bb8
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 4661626c65730000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 4641420000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000058
Arg [10] : 68747470733a2f2f7472617274676174657761792e6d7970696e6174612e636c
Arg [11] : 6f75642f697066732f516d5358576a5046435535777546334e63696e6d324879
Arg [12] : 656a5950387070516e327366594874745746457878536d2f0000000000000000


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.