ETH Price: $3,423.95 (-1.48%)
Gas: 5 Gwei

Token

Comics by Cookie (COOKE)
 

Overview

Max Total Supply

72 COOKE

Holders

21

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
3122y342e.eth
0x4b02025dc9f43fa0aa52b7e5dfb8f695f4705c25
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:
ComicsByCookie

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^ 0.8.7;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC1155/ERC1155.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol";

/*
🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪                                                                       
 ________  ________  _____ ______   ___  ________  ________              
|\   ____\|\   __  \|\   _ \  _   \|\  \|\   ____\|\   ____\             
\ \  \___|\ \  \|\  \ \  \\\__\ \  \ \  \ \  \___|\ \  \___|_            
 \ \  \    \ \  \\\  \ \  \\|__| \  \ \  \ \  \    \ \_____  \           
  \ \  \____\ \  \\\  \ \  \    \ \  \ \  \ \  \____\|____|\  \          
   \ \_______\ \_______\ \__\    \ \__\ \__\ \_______\____\_\  \         
    \|_______|\|_______|\|__|     \|__|\|__|\|_______|\_________\        
                                                     \|_________|        
                                                                         
                                                                         
                    ________      ___    ___                             
                   |\   __  \    |\  \  /  /|                            
                   \ \  \|\ /_   \ \  \/  / /                            
                    \ \   __  \   \ \    / /                             
                     \ \  \|\  \   \/  /  /                              
                      \ \_______\__/  / /                                
                       \|_______|\___/ /                                 
                                \|___|/                                  
                                                                         
                                                                         
              ________  ________  ________  ___  __    ___  _______      
             |\   ____\|\   __  \|\   __  \|\  \|\  \ |\  \|\  ___ \     
             \ \  \___|\ \  \|\  \ \  \|\  \ \  \/  /|\ \  \ \   __/|    
              \ \  \    \ \  \\\  \ \  \\\  \ \   ___  \ \  \ \  \_|/__  
               \ \  \____\ \  \\\  \ \  \\\  \ \  \\ \  \ \  \ \  \_|\ \ 
                \ \_______\ \_______\ \_______\ \__\\ \__\ \__\ \_______\
                 \|_______|\|_______|\|_______|\|__| \|__|\|__|\|_______|

🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪
*/

contract ComicsByCookie is ERC1155, Ownable {
    string public name = "Comics by Cookie";
    string public symbol = "COOKE";
    string private ipfsCID = "QmYRj6hCPgJCGBjj4wXay1qJAedRXYBFpWePZdC5d2tR4a";
    string private hiddenCIDorURI = "";
    uint256 public collectionTotal = 1;
    uint256 public cost = 0.01 ether;
    uint256 public maxMintAmount = 2;
    uint256 public maxBatchMintAmount = 2;
    uint256 public whitelisterLimit = 2;

    bool public paused = true;
    bool public revealed = true;
    bool public mintInOrder = false;

    bool private useMintOnDate = false;
    uint public mintDateStart;

    uint256 public tokenNextToMint;
    mapping(uint => string) private tokenToURI;
    mapping(uint256 => uint256) private currentSupply;
    mapping(uint256 => bool) private hasMaxSupply;
    mapping(uint256 => uint256) public maxSupply;
    mapping(uint256 => bool) private hasMaxSupplyForBatch;
    mapping(uint256 => uint256) public maxSupplyForBatch;
    mapping(uint256 => bool) private createdToken;

    bool public roleInUse = false;
    mapping(uint256 => string) public role;
    uint256 public roleLimitMin;
    uint256 public roleLimitMax;

    mapping(uint256 => uint256[]) public requirementTokens;
    mapping(uint256 => uint256[]) public batchRequirementTokens;

    mapping(uint256 => bool) public flagged;
    mapping(address => bool) public restricted;

    uint256[] public collectionBatchEndID;
    string[] public ipfsCIDBatch;
    string[] public uriBatch;

    mapping(address => uint256) public holdersAmount;
    mapping(address => uint256) public claimBalance;

    bool public onlyWhitelisted = false;
    address[] public whitelistedAddresses;
    mapping(address => mapping(uint256 => uint256)) public whitelisterMintedPhaseBalance;
    uint256 public phaseForMint = 1;
    uint256 public costForWhitelisters = 0.01 ether;
    mapping(address => uint256) public whitelistTier;
    uint256[] public costTiers;
    uint256[] public whitelisterTierLimits;

    address payable public payments;
    address public projectLeader;
    address[] public admins;
    uint256 public devpayCount = 1;
    uint256 private devpayCountMax = 0;

    constructor() ERC1155(""){
        collectionBatchEndID.push(collectionTotal);
        ipfsCIDBatch.push(ipfsCID);
        uriBatch.push("");
        maxSupply[1] = 1000;
        hasMaxSupply[1] = true;
        createdToken[1] = true;
        currentSupply[1] = 1;
        tokenNextToMint = 2;
        _mint(msg.sender, 1, 1, "");

        costTiers.push(costForWhitelisters);
        whitelisterTierLimits.push(whitelisterLimit);
    }

    /**
     * @dev The contract developer's website.
     */
    function contractDev() public pure returns(string memory){
        string memory dev = unicode"🐸 https://www.halfsupershop.com/ 🐸";
        return dev;
    }

    /**
     * @dev Admin can set the PAUSE state.
     * true = closed to Admin Only
     * false = open for Presale or Public
     */
    function pause(bool _state) public onlyAdmins {
        paused = _state;
    }

    /**
     * @dev Admin can set the DATE to mint.
     * true = use date
     * false = don't use date
     * _unixDate = unix date used if true
     */
    function setMintDate(bool _state, uint _unixDate) public onlyAdmins {
        useMintOnDate = _state;
        if(_state){
            //future start date
            mintDateStart = _unixDate;
        }
    }

    /**
     * @dev Admin can set the roleInUse state allowing Mints to pick a role randomly.
     */
    function setRoleInUse(bool _state) public onlyAdmins {
        roleInUse = _state;
    }

    /**
     * @dev Admin can set the minting phase.
     * Note: new phases resets the minted balance for all addresses
     */
    function setMintPhase(uint _phase) public onlyAdmins {
        phaseForMint = _phase;
    }

    /**
     * @dev Admin can set the mintInOrder state.
     */
    function setMintInOrder(bool _state) public onlyAdmins {
        mintInOrder = _state;
    }

    /**
     * @dev Admin can set the tokenNextToMint.
     */
    function setTokenNextToMint(uint _id) public onlyAdmins {
        tokenNextToMint = _id;
    }

    function _cost(address _user) public view returns(uint256){
        if (!checkIfAdmin()) {
            if (onlyWhitelisted && isWhitelisted(_user)) {
                if(whitelistTier[_user] == 0){
                    return costForWhitelisters;
                } 
                else{
                    return costTiers[whitelistTier[_user]];
                }
            }
            else{
                return cost;
            }
        }
        else{
            return 0;
        }
    }

    function checkOut(uint _amount) private {
        uint256 _freeAmount = (holdersAmount[msg.sender] - claimBalance[msg.sender]);
        if(_freeAmount >= _amount){
            _freeAmount = _amount;
        }
        if (!checkIfAdmin()) {
            if(useMintOnDate){
                require(block.timestamp >= mintDateStart, "Not Mint Date Yet");
            }
            
            if (onlyWhitelisted) {
                //Whitelisted Only Phase
                require(isWhitelisted(msg.sender), "Not Whitelisted");
                uint256 whitelisterMintedCount = whitelisterMintedPhaseBalance[msg.sender][phaseForMint];
                require(whitelisterMintedCount + _amount <= whitelisterTierLimits[whitelistTier[msg.sender]], "Exceeded Max Whitelist Mint Limit");
                require(msg.value >= ((_amount - _freeAmount) * _cost(msg.sender)), "Insufficient Funds");
                whitelisterMintedPhaseBalance[msg.sender][phaseForMint] += _amount;
            }
            else{
                //Public Phase
                require(msg.value >= (_amount * _cost(msg.sender)), "Insufficient Funds");
            }
            if(msg.value > 0 && devpayCount <= devpayCountMax){
                devpayCount += msg.value;
            }
        }
    }

    function checkOutScan(uint _id) private{
        if (!exists(_id)) {
            createdToken[_id] = true;
            flagged[_id] = false;
            if(mintInOrder){
                maxSupply[_id] = 1;
                hasMaxSupply[_id] = true;
                currentSupply[_id] = 1;
            }
        }

        if(roleInUse){
            role[_id] = randomRole();
        }
    }

    /**
     * @dev Allows Admins, Whitelisters, and Public to Mint NFTs in Order from 1-collectionTotal.
     */
    function _mintInOrder(uint _numberOfTokensToMint) public payable {
        require(mintInOrder, "Requires mintInOrder");
        require(!paused, "Paused");
        require(!exists(collectionTotal), "Sold Out");
        require(_numberOfTokensToMint + tokenNextToMint - 1 <= collectionTotal, "Please Lower Amount");

        checkOut(_numberOfTokensToMint);
        _mintBatchTo(msg.sender, _numberOfTokensToMint);
    }

    /**
     * @dev Allows Admins to Mint NFTs in Order from 1-collectionTotal to an address.
     * Can only be called by Admins even while paused.
     */
    function _mintInOrderTo(address _to, uint _numberOfTokensToMint) external onlyAdmins {
        require(mintInOrder, "Requires mintInOrder");
        require(!exists(collectionTotal), "Sold Out");
        require(_numberOfTokensToMint + tokenNextToMint -1 <= collectionTotal, "Please Lower Amount");

        _mintBatchTo(_to, _numberOfTokensToMint);
    }

    function _mintBatchTo(address _to, uint _numberOfTokensToMint)private {
        uint256[] memory _ids = new uint256[](_numberOfTokensToMint);
        uint256[] memory _amounts = new uint256[](_numberOfTokensToMint);
        for (uint256 i = 0; i < _numberOfTokensToMint; i++) {
            uint256 _id = tokenNextToMint;
            
            checkOutScan(_id);

            _ids[i] = tokenNextToMint;
            _amounts[i] = 1;
            tokenNextToMint++;
        }

        if(holdersAmount[msg.sender] != 0){
            if(claimBalance[msg.sender] < holdersAmount[msg.sender]){
                claimBalance[msg.sender] += _numberOfTokensToMint;
            }

            if(claimBalance[msg.sender] >= holdersAmount[msg.sender]){
                claimBalance[msg.sender] = 0;
                holdersAmount[msg.sender] = 0;
            }
        }

        _mintBatch(_to, _ids, _amounts, "");
    }

    /**
    * @dev Allows Owner, Whitelisters, and Public to Mint a single NFT.
    */
    function mint(address _to, uint _id, uint _amount) public payable {
        require(!mintInOrder, "Requires mintInOrder False");
        require(!paused, "Paused");
        require(canMintChecker(_id, _amount), "CANNOT MINT");

        checkOut(_amount);
        checkOutScan(_id);
        currentSupply[_id] += _amount;
        
        _mint(_to, _id, _amount, "");
    }

    function canMintChecker(uint _id, uint _amount) private view returns(bool){
        if (hasMaxSupply[_id]) {
            if (_amount > 0 && _amount <= maxMintAmount && _id > 0 && _id <= collectionTotal && currentSupply[_id] + _amount <= maxSupply[_id]) {
                // CAN MINT
            }
            else {
                // CANNOT MINT 
                return false;
            }
        }
        else {
            if (_amount > 0 && _amount <= maxMintAmount && _id > 0 && _id <= collectionTotal) {
                // CAN MINT
            }
            else {
                // CANNOT MINT 
                return false;
            }
        }

        // checks if the id needs requirement token(s)
        if(requirementTokens[_id].length > 0) {
            for (uint256 i = 0; i < requirementTokens[_id].length; i++) {
                if(balanceOf(msg.sender, requirementTokens[_id][i]) <= 0){
                    //CANNOT MINT: DOES NOT HAVE REQUIREMENT TOKEN(S)
                    return false;
                }
                else{
                    continue;
                }
            }
        }

        // checks if the batch (other than the original) that the id resides in needs requirement token(s)
        for (uint256 i = 0; i < collectionBatchEndID.length; i++) {
            if(i != 0 && _id <= collectionBatchEndID[i] && _id > collectionBatchEndID[i - 1]){
                uint256 batchToCheck = collectionBatchEndID[i];
                if(batchRequirementTokens[batchToCheck].length > 0){
                    for (uint256 j = 0; j < batchRequirementTokens[batchToCheck].length; j++) {
                        if(balanceOf(msg.sender, batchRequirementTokens[batchToCheck][j]) <= 0){
                            //CANNOT MINT: DOES NOT HAVE REQUIREMENT TOKEN(S)
                            return false;
                        }
                        else{
                            continue;
                        }
                    }
                }
                // checks if the batch the id resides in has a supply limit for each id in the batch
                if(hasMaxSupplyForBatch[batchToCheck]){
                    if (_amount > 0 && _amount <= maxMintAmount && _id > 0 && _id <= collectionTotal && currentSupply[_id] + _amount <= maxSupplyForBatch[batchToCheck]) {
                        // CAN MINT
                    }
                    else {
                        // CANNOT MINT 
                        return false;
                    }
                }
                else {
                    continue;
                }
            }
        }

        return true;
    }

    /**
    * @dev Allows Owner, Whitelisters, and Public to Mint multiple NFTs.
    */
    function mintBatch(address _to, uint[] memory _ids, uint[] memory _amounts) public payable {
        require(!mintInOrder, "Requires mintInOrder False");
        require(!paused, "Paused");
        require(_ids.length <= maxMintAmount, "Too Many IDs");
        require(_ids.length == _amounts.length, "IDs and Amounts Not Equal");
        require(canMintBatchChecker(_ids, _amounts), "CANNOT MINT BATCH");

        uint256 _totalBatchAmount;
        for (uint256 i = 0; i < _amounts.length; i++) {
            _totalBatchAmount += _amounts[i];
        }
        require(_totalBatchAmount <= maxBatchMintAmount, "Batch Amount Limit Exceeded");

        checkOut(_totalBatchAmount);
        
        for (uint256 k = 0; k < _ids.length; k++) {
            uint256 _id = _ids[k];
            checkOutScan(_id);
            currentSupply[_ids[k]] += _amounts[k];
        }

        _mintBatch(_to, _ids, _amounts, "");
    }

    function canMintBatchChecker(uint[] memory _ids, uint[] memory _amounts)private view returns(bool){
        for (uint256 i = 0; i < _ids.length; i++) {
            uint256 _id = _ids[i];
            uint256 _amount = _amounts[i];
            if(canMintChecker(_id, _amount)){
                //CAN MINT
            }
            else{
                // CANNOT MINT
                return false;
            }
        }

        return true;
    }

    /**
     * @dev Allows Admin to Mint a single NEW NFT.
     */
    function adminMint(address _to, uint _id, uint _amount) external onlyAdmins {
        require(!mintInOrder, "Requires mintInOrder False");
        checkOutScan(_id);
        currentSupply[_id] += _amount;
        _mint(_to, _id, _amount, "");
    }

    /**
     * @dev Allows Admin to Mint multiple NEW NFTs.
     */
    function adminMintBatch(address _to, uint[] memory _ids, uint[] memory _amounts) external onlyAdmins {
        require(!mintInOrder, "Requires mintInOrder False");
        for (uint256 i = 0; i < _ids.length; ++i) {
            uint256 _id = _ids[i];
            checkOutScan(_id);
            currentSupply[_id] += _amounts[i];
        }
        _mintBatch(_to, _ids, _amounts, "");
    }

    /**
    * @dev Allows User to DESTROY a single token they own.
    */
    function burn(uint _id, uint _amount) external {
        currentSupply[_id] -= _amount;
        _burn(msg.sender, _id, _amount);
    }

    /**
    * @dev Allows User to DESTROY multiple tokens they own.
    */
    function burnBatch(uint[] memory _ids, uint[] memory _amounts) external {
        for (uint256 i = 0; i < _ids.length; ++i) {
            uint256 _id = _ids[i];
            currentSupply[_id] -= _amounts[i];
        }
        _burnBatch(msg.sender, _ids, _amounts);
    }

    /**
     * @dev Allows Admin to set the requirementTokens for a specified token ID or Batch end ID
     */
    function setRequirementTokens(uint _endID, bool _isBatch, uint[] memory _requiredIDS) external onlyAdmins {
        if(_isBatch){
            for (uint256 i = 0; i < collectionBatchEndID.length; i++) {
                if(collectionBatchEndID[i] == _endID){
                    // is confirmed a Batch
                    break;
                }
                if(collectionBatchEndID[i] == collectionBatchEndID[collectionBatchEndID.length - 1] && _endID != collectionBatchEndID[i]){
                    // is not a Batch
                    revert("_endID is not a Batch");
                }
            }
            batchRequirementTokens[_endID] = _requiredIDS;
        }
        else{
            requirementTokens[_endID] = _requiredIDS;
        }
    }

    /**
    * @dev Allows Admin to REVEAL the original collection.
    * Can only be called by the current owner once.
    * WARNING: Please ensure the CID is 100% correct before execution.
    */
    function reveal(string memory _CID) external onlyAdmins {
        require(!revealed, "Already Revealed");
        ipfsCID = _CID;
        ipfsCIDBatch[0] = _CID;
        revealed = true;
    }

    /**
    * @dev Allows Admin to set the hidden URI or CID.
    * Note: _URIorCID must end with /
    */
    function setHiddenURIorCID(string memory _URIorCID) external onlyAdmins {
        hiddenCIDorURI = _URIorCID;
    }

    /**
    * @dev Allows Admin to modify the URI or CID of a Batch.
    */
    function modifyURICID(uint _batchIndex, string memory _uri, bool _isIpfsCID) external onlyAdmins {
        if (_isIpfsCID) {
            //modify IPFS CID
            ipfsCIDBatch[_batchIndex] = _uri;
        }
        else{
            //modify URI
            uriBatch[_batchIndex] = _uri;
        }
    }

    /**
    * @dev Allows Admin to set the URI of a single token.
    *      Set _isIpfsCID to true if using only IPFS CID for the _uri.    
    */
    function setURI(uint _id, string memory _uri, bool _isIpfsCID) external onlyAdmins {
        if (_isIpfsCID) {
            string memory _uriIPFS = string(abi.encodePacked(
                "ipfs://",
                _uri,
                "/",
                Strings.toString(_id),
                ".json"
            ));

            tokenToURI[_id] = _uriIPFS;
            emit URI(_uriIPFS, _id);
        }
        else {
            tokenToURI[_id] = _uri;
            emit URI(_uri, _id);
        }
    }

    /**
    * @dev Allows Admin to create a new Batch and set the URI or CID of a single or batch of tokens.
    * Note: Previous Token URIs and or CIDs cannot be changed.
    *       Set _isIpfsCID to true if using only IPFS CID for the _uri.
    *       Example URI structure if _endBatchID = 55 and if _isIpfsCID = false and if _uri = BASEURI.EXTENSION
    *       will output: BASEURI.EXTENSION/55.json for IDs 55 and below until it hits another batch end ID
    */
    function createBatchAndSetURI(uint _endBatchID, string memory _uri, bool _isIpfsCID) external onlyAdmins {
        require(_endBatchID > collectionBatchEndID[collectionBatchEndID.length-1], "Last Batch ID must be greater than previous batch total");
        
        if (_isIpfsCID) {
            //set IPFS CID
            collectionBatchEndID.push(_endBatchID);
            ipfsCIDBatch.push(_uri);
            uriBatch.push("");
        }
        else{
            //set URI
            collectionBatchEndID.push(_endBatchID);
            uriBatch.push(_uri);
            ipfsCIDBatch.push("");
        }
        
    }

    function uri(uint256 _id) override public view returns(string memory){
        bool _batched = true;
        string memory _CIDorURI = string(abi.encodePacked(
            "ipfs://",
            ipfsCID,
            "/"
        ));
        string memory _HIDDEN = string(abi.encodePacked(
            hiddenCIDorURI,
            "hidden",
            ".json"
        ));

        if(createdToken[_id]){
            if (_id > 0 && _id <= collectionTotal) {
                if(!revealed){
                    //hidden
                    return _HIDDEN;
                }
                else{
                    if(keccak256(abi.encodePacked((tokenToURI[_id]))) != keccak256(abi.encodePacked(("")))){
                        return tokenToURI[_id];
                    }

                    for (uint256 i = 0; i < collectionBatchEndID.length; ++i) {
                        if(_id <= collectionBatchEndID[i]){
                            if(keccak256(abi.encodePacked((ipfsCIDBatch[i]))) != keccak256(abi.encodePacked(("")))){
                                _CIDorURI = string(abi.encodePacked(
                                    "ipfs://",
                                    ipfsCIDBatch[i],
                                    "/"
                                ));
                                break;
                            }
                            if(keccak256(abi.encodePacked((uriBatch[i]))) != keccak256(abi.encodePacked(("")))){
                                _CIDorURI = string(abi.encodePacked(
                                    uriBatch[i],
                                    "/"
                                ));
                                break;
                            }
                            continue;
                        }
                        else{
                            //_id was not found in a batch
                            continue;
                        }
                    }

                    if(_id > collectionBatchEndID[collectionBatchEndID.length - 1]){
                        _batched = false;
                    }

                    if(_batched){
                        if(keccak256(abi.encodePacked((role[_id]))) == keccak256(abi.encodePacked(("")))){
                            //no role
                            return (
                            string(abi.encodePacked(
                                _CIDorURI,
                                Strings.toString(_id),
                                ".json"
                            )));
                        }
                        else{
                            //has role
                            return (
                            string(abi.encodePacked(
                                _CIDorURI,
                                role[_id],
                                ".json"
                            )));
                        }
                    }
                    else{
                        //no URI set default to hidden
                        return _HIDDEN;
                    }
                    
                }
            }
            //no URI set default to hidden
            return _HIDDEN;
        }
        else{
            //hidden
            return _HIDDEN;
        }
    }

    //"Randomly" returns a number >= roleLimitMin and <= roleLimitMax.
    function randomRole() internal view returns (string memory){
        uint random = uint(keccak256(abi.encodePacked(
            block.timestamp,
            block.difficulty,
            msg.sender,
            tokenNextToMint,
            role[tokenNextToMint - 1])
            )) % roleLimitMax;
        //return random;
        if(random < roleLimitMin){
            return Strings.toString(roleLimitMax - (random + 1));
        }
        else{
            return Strings.toString(random + 1);
        }
    }

    function randomPick() public view returns (string memory _role){
        return randomRole();
    }

    function roleLimitSet(uint _min, uint _max) external onlyAdmins {
        roleLimitMin = _min;
        roleLimitMax = _max;
    }

    /**
    * @dev Total amount of tokens in with a given id.
    */
    function totalSupply(uint256 _id) public view returns(uint256) {
        return currentSupply[_id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 _id) public view returns(bool) {
        return createdToken[_id];
    }

    /**
    * @dev Checks max supply of token with the given id.
    * Note: If 0 then supply is limitless.
    */
    function checkMaxSupply(uint256 _id) public view returns(uint256) {
        if(maxSupply[_id] != 0){
            return maxSupply[_id];
        }
        
        for (uint256 i = 0; i < collectionBatchEndID.length; i++) {
            if(_id != 0 && _id <= collectionBatchEndID[i] && _id > collectionBatchEndID[i - 1]){
                uint256 batchToCheck = collectionBatchEndID[i];
                if(maxSupplyForBatch[batchToCheck] != 0){
                    return maxSupplyForBatch[batchToCheck];
                }
                else{
                    break;
                }
            }
        }
        
        // no Max Supply found ID has infinite supply
        return 0;
    }

    /**
     * @dev Admin can set a supply limit.
     * Note: If 0 then supply is limitless.
     */
    function setMaxSupplies(uint[] memory _ids, uint[] memory _supplies, bool _isBatchAllSameSupply) external onlyAdmins {
        if(_isBatchAllSameSupply){
            uint256 _endBatchID = _ids[_ids.length - 1];
            for (uint256 i = 0; i < collectionBatchEndID.length; ++i) {
                if(_endBatchID == collectionBatchEndID[i]){
                    maxSupplyForBatch[_endBatchID] = _supplies[_supplies.length - 1];
                    if(_supplies[_supplies.length - 1] > 0){
                        // has a max limit
                        hasMaxSupplyForBatch[_endBatchID] = true;
                    }
                    else {
                        // infinite supply
                        hasMaxSupplyForBatch[_endBatchID] = false;
                    }                 
                }
            }
        }
        else{
            for (uint256 i = 0; i < _ids.length; i++) {
                uint256 _id = _ids[i];
                maxSupply[_id] += _supplies[i];
                if (_supplies[i] > 0) {
                    // has a max limit
                    hasMaxSupply[_id] = true;
                }
                else {
                    // infinite supply
                    hasMaxSupply[_id] = false;
                }
            }
        }
        
    }

    /**
     * @dev Admin can update the collection total to allow minting the newly added NFTs.
     */
    function updateCollectionTotal(uint _newCollectionTotal) external onlyAdmins {
        collectionTotal = _newCollectionTotal;
    }

    /**
     * @dev Check if address is whitelisted.
     */
    function isWhitelisted(address _user) public view returns(bool) {
        for (uint256 i = 0; i < whitelistedAddresses.length; i++) {
            if (whitelistedAddresses[i] == _user) {
                return true;
            }
        }
        if(holdersAmount[_user] != 0){
            return true;
        }
        return false;
    }

    /**
     * @dev Admin can set the amount of NFTs a user can mint in one session.
     */
    function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyAdmins {
        maxMintAmount = _newmaxMintAmount;
    }

    /**
     * @dev Admin can set the max amount of NFTs a whitelister can mint during presale.
     */
    function setNftPerWhitelisterLimit(uint256 _limit) public onlyAdmins {
        whitelisterLimit = _limit;
    }

    /**
     * @dev Admin can set the PRESALE state.
     * true = presale ongoing for whitelisters only
     * false = sale open to public
     */
    function setOnlyWhitelisted(bool _state) public onlyAdmins {
        onlyWhitelisted = _state;
    }

    /**
     * @dev Admin can set the addresses as whitelisters and assign an optional tier.
     * Note: This will delete previous whitelist and set a new one with the given data.
     *       All addresses have their tier set to 0 by default.
     *       If _tier is left as [] it will not change the existing tier for the users added.
     *       If only 1 number is in _tier it will assign all to that tier number.
     * Example: _users = ["0xADDRESS1", "0xADDRESS2", "0xADDRESS3"] _tier = [1,2,3]
     */
    function whitelistUsers(address[] calldata _users, uint[] memory _tier) public onlyAdmins {
        delete whitelistedAddresses;
        whitelistedAddresses = _users;

        if(_tier.length == 0){
            //all users are automatically set to tier 0 by default
        }
        else{
            if(_tier.length == 1){
                for (uint256 i = 0; i < _users.length; i++) {
                    whitelistTier[_users[i]] = _tier[0];
                }
            }
            else{
                whitelisterSetTier(_users, _tier);
            }
        }
    }

    /**
     * @dev Admin can set the tier number for the addresses of whitelisters.
     * Example: _users = ["0xADDRESS1", "0xADDRESS2", "0xADDRESS3"] _tier = [1,2,3]
     */
    function whitelisterSetTier(address[] calldata _users, uint[] memory _tier) public onlyAdmins {
        require(_users.length == _tier.length, "Users Array Not Equal To Tier Array");

        for (uint256 i = 0; i < _users.length; i++) {
            whitelistTier[_users[i]] = _tier[i];
        }
    }

    /**
     * @dev Admin can set the new cost in WEI.
     * 1 ETH = 10^18 WEI
     * Use http://etherscan.io/unitconverter for conversions.
     */
    function setCost(uint256 _newCost) public onlyAdmins {
        cost = _newCost;
    }

    /**
     * @dev Admin can set the new cost in WEI for whitelist users.
     * Note: this cost is only in effect during whitelist only phase
     */
    function setCostForWhitelisted(uint256 _newCost) public onlyAdmins {
        costForWhitelisters = _newCost;
        costTiers[0] = _newCost;
    }

    /**
     * @dev Admin can set the new cost tiers in WEI for whitelist users.
     * Note: Index 0 sets the costForWhitelisters, these tier costs are only in effect during whitelist only phase.
     */
    function setCostTiers(uint[] memory _tierCost) public onlyAdmins {
        delete costTiers;
        costTiers = _tierCost;
        costForWhitelisters = _tierCost[0];
    }

    /**
     * @dev Admin can set the new limit tiers for whitelist users.
     * Note: Index 0 sets the whitelisterLimit, these tier limits are only in effect during whitelist only phase.
     */
    function setwhitelisterTierLimits(uint[] memory _tierLimit) public onlyAdmins {
        delete whitelisterTierLimits;
        whitelisterTierLimits = _tierLimit;
        whitelisterLimit = _tierLimit[0];
    }

    function whitelisterLimitGet(address _user) private view returns(uint256){
        if(holdersAmount[_user] != 0){
            return holdersAmount[_user] + whitelisterLimit;
        }
        if(whitelistTier[_user] == 0){
            return whitelisterLimit;
        } 
        else{
            return whitelisterTierLimits[whitelistTier[_user]];
        }
    }

    /**
     * @dev Admin can set the payout address.
     */
    function setPayoutAddress(address _address) external onlyOwner{
        payments = payable(_address);
    }

    /**
     * @dev Admin can pull funds to the payout address.
     */
    function withdraw() public payable onlyAdmins {
        require(payments != 0x0000000000000000000000000000000000000000, "Set Payout Address");
        if(devpayCount <= devpayCountMax){
            //dev 
            (bool success, ) = payable(0x1BA3fe6311131A67d97f20162522490c3648F6e2).call{ value: address(this).balance } ("");
            require(success);
        }
        else{
            //splitter
            (bool success, ) = payable(payments).call{ value: address(this).balance } ("");
            require(success);
        }
    }

    /**
     * @dev Auto send funds to the payout address.
        Triggers only if funds were sent directly to this address.
     */
    receive() payable external {
        require(payments != 0x0000000000000000000000000000000000000000, "Set Payout Address");
        uint256 payout = msg.value;
        payments.transfer(payout);
    }

     /**
     * @dev Throws if called by any account other than the owner or admin.
     */
    modifier onlyAdmins() {
        _checkAdmins();
        _;
    }

    /**
     * @dev Throws if the sender is not the owner or admin.
     */
    function _checkAdmins() internal view virtual {
        require(checkIfAdmin(), "Not an admin");
    }

    function checkIfAdmin() public view returns(bool) {
        if (msg.sender == owner() || msg.sender == projectLeader){
            return true;
        }
        if(admins.length > 0){
            for (uint256 i = 0; i < admins.length; i++) {
                if(msg.sender == admins[i]){
                    return true;
                }
            }
        }
        
        // Not an Admin
        return false;
    }

    /**
     * @dev Owner and Project Leader can set the addresses as approved Admins.
     * Example: ["0xADDRESS1", "0xADDRESS2", "0xADDRESS3"]
     */
    function setAdmins(address[] calldata _users) public onlyAdmins {
        require(msg.sender == owner() || msg.sender == projectLeader, "Not Owner or Project Leader");
        delete admins;
        admins = _users;
    }

    /**
     * @dev Owner or Project Leader can set the address as new Project Leader.
     */
    function setProjectLeader(address _user) external {
        require(msg.sender == owner() || msg.sender == projectLeader, "Not Owner or Project Leader");
        projectLeader = _user;
    }

    /**
     * @dev Throws if the sender is not the dev.
     * Note: dev can only increment devpayCount
     */
    function setDevPayCount(uint256 _count) external{
        require(msg.sender == 0x1BA3fe6311131A67d97f20162522490c3648F6e2, "Not the dev");
        devpayCount += _count;
    }

    /**
     * @dev Throws if the sender is not the dev.
     * Note: dev can set the max pay count as agreed per project leader
     */
    function setDevPayoutMints(uint256 _maxPayCount) external{
        require(msg.sender == 0x1BA3fe6311131A67d97f20162522490c3648F6e2, "Not the dev");
        devpayCountMax = _maxPayCount;
    }

    /**
     * @dev Owner or Project Leader can set the restricted state of an address.
     * Note: Restricted addresses are banned from moving tokens.
     */
    function restrictAddress(address _user, bool _state) external {
        require(msg.sender == owner() || msg.sender == projectLeader, "Not Owner or Project Leader");
        restricted[_user] = _state;
    }

    /**
     * @dev Owner or Project Leader can set the flag state of a token ID.
     * Note: Flagged tokens are locked and untransferable.
     */
    function flagID(uint256 _id, bool _state) external {
        require(msg.sender == owner() || msg.sender == projectLeader, "Not Owner or Project Leader");
        flagged[_id] = _state;
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     */
    function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual override{
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data); // Call parent hook
        require(restricted[operator] == false && restricted[from] == false && restricted[to] == false, "Operator, From, or To Address is RESTRICTED"); //checks if the any address in use is restricted

        for (uint256 i = 0; i < ids.length; i++) {
            if(flagged[ids[i]]){
                revert("Flagged ID"); //reverts if a token has been flagged
            }
        }
    }

}

File 2 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 3 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 4 of 12 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: address zero is not a valid owner");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `ids` and `amounts` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 5 of 12 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 6 of 12 : 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 7 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 8 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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://consensys.net/diligence/blog/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 9 of 12 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 10 of 12 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 12 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"_cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokensToMint","type":"uint256"}],"name":"_mintInOrder","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_numberOfTokensToMint","type":"uint256"}],"name":"_mintInOrderTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"adminMintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"admins","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"batchRequirementTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkIfAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"checkMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"collectionBatchEndID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractDev","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costForWhitelisters","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"costTiers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_endBatchID","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bool","name":"_isIpfsCID","type":"bool"}],"name":"createBatchAndSetURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devpayCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"flagID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"flagged","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"holdersAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ipfsCIDBatch","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBatchMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxSupplyForBatch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintDateStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintInOrder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_batchIndex","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bool","name":"_isIpfsCID","type":"bool"}],"name":"modifyURICID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payments","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phaseForMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"projectLeader","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomPick","outputs":[{"internalType":"string","name":"_role","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"requirementTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"restrictAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"restricted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_CID","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"role","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roleInUse","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roleLimitMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roleLimitMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_min","type":"uint256"},{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"roleLimitSet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"setAdmins","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":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCostForWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tierCost","type":"uint256[]"}],"name":"setCostTiers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"setDevPayCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPayCount","type":"uint256"}],"name":"setDevPayoutMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URIorCID","type":"string"}],"name":"setHiddenURIorCID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_supplies","type":"uint256[]"},{"internalType":"bool","name":"_isBatchAllSameSupply","type":"bool"}],"name":"setMaxSupplies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"},{"internalType":"uint256","name":"_unixDate","type":"uint256"}],"name":"setMintDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setMintInOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_phase","type":"uint256"}],"name":"setMintPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setNftPerWhitelisterLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOnlyWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"setProjectLeader","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_endID","type":"uint256"},{"internalType":"bool","name":"_isBatch","type":"bool"},{"internalType":"uint256[]","name":"_requiredIDS","type":"uint256[]"}],"name":"setRequirementTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRoleInUse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setTokenNextToMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bool","name":"_isIpfsCID","type":"bool"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setmaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tierLimit","type":"uint256[]"}],"name":"setwhitelisterTierLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenNextToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCollectionTotal","type":"uint256"}],"name":"updateCollectionTotal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uriBatch","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"},{"internalType":"uint256[]","name":"_tier","type":"uint256[]"}],"name":"whitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelistedAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelisterLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelisterMintedPhaseBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"},{"internalType":"uint256[]","name":"_tier","type":"uint256[]"}],"name":"whitelisterSetTier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelisterTierLimits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c0604052601060808190526f436f6d69637320627920436f6f6b696560801b60a0908152620000339160049190620008ac565b5060408051808201909152600580825264434f4f4b4560d81b6020909201918252620000609181620008ac565b506040518060600160405280602e815260200162006a4d602e913980516200009191600691602090910190620008ac565b50604080516020810191829052600090819052620000b291600791620008ac565b5060016008819055662386f26fc1000060098190556002600a819055600b819055600c55600d805463ffffffff19166101011790556017805460ff199081169091556024805490911690556027829055602855602f5560006030553480156200011a57600080fd5b50604080516020810190915260008152620001358162000351565b5062000141336200036a565b600854601f805460018181019092557fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d8070191909155602080549182018155600052600680547fc97bfaf2f8ee708c303a06d134f5ecd8389ae0432af62dc132a24118292866bb90920191620001b69062000ad0565b620001c39291906200093b565b5060218054600181018255600091825260408051602081019182905283905262000212927f3a6357012c1a3ae0a17d304c9920310382d968ebcc4b1771f41c6b304205b57090920191620008ac565b50600160008181526103e87f4155c2f711f2cdd34f8262ab8fb9b7020a700fe7b6948222152f7670d1fdf34d557f71a67924699a20698523213e55fe499d539379d7769cd5567e2c45d583f815a3805460ff1990811684179091557f4c4dc693d7db52f85fe052106f4b4b920e78e8ef37dee82878a60ab8585faf49805490911683179055601160209081527f17bc176d2408558f6e4111feebc3cab4e16b63e967be91cde721f4c8a488b5528390556002600f55604080519182019052908152620002e29133918190620003bc565b602854602a805460018181019092557fbeced09521047d05b8960b7e7bcc1d1292cf3e4b2a6b63f48335cbde5f7545d20191909155600c54602b805492830181556000527f11c44e4875b74d31ff9fd779bf2566af7bd15b87fc985d01f5094b89e3669e4f9091015562000c3e565b805162000366906002906020840190620008ac565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416620004225760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084015b60405180910390fd5b3360006200043085620004ef565b905060006200043f85620004ef565b905062000452836000898585896200053d565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906200048490849062000ab5565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4620004e683600089898989620006c0565b50505050505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106200052c576200052c62000b7c565b602090810291909101015292915050565b62000558868686868686620006b860201b620034031760201c565b6001600160a01b0386166000908152601e602052604090205460ff161580156200059b57506001600160a01b0385166000908152601e602052604090205460ff16155b8015620005c157506001600160a01b0384166000908152601e602052604090205460ff16155b620006235760405162461bcd60e51b815260206004820152602b60248201527f4f70657261746f722c2046726f6d2c206f7220546f204164647265737320697360448201526a08149154d5149250d5115160aa1b606482015260840162000419565b60005b8351811015620004e657601d600085838151811062000649576200064962000b7c565b60209081029190910181015182528101919091526040016000205460ff1615620006a35760405162461bcd60e51b815260206004820152600a602482015269119b1859d9d95908125160b21b604482015260640162000419565b80620006af8162000b48565b91505062000626565b505050505050565b620006df846001600160a01b03166200089d60201b6200340b1760201c565b15620006b85760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906200071b908990899088908890889060040162000a59565b602060405180830381600087803b1580156200073657600080fd5b505af192505050801562000769575060408051601f3d908101601f191682019092526200076691810190620009d6565b60015b6200082a576200077862000b92565b806308c379a01415620007b957506200079062000baf565b806200079d5750620007bb565b8060405162461bcd60e51b815260040162000419919062000aa0565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840162000419565b6001600160e01b0319811663f23a6e6160e01b14620004e65760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840162000419565b6001600160a01b03163b151590565b828054620008ba9062000ad0565b90600052602060002090601f016020900481019282620008de576000855562000929565b82601f10620008f957805160ff191683800117855562000929565b8280016001018555821562000929579182015b82811115620009295782518255916020019190600101906200090c565b5062000937929150620009bf565b5090565b828054620009499062000ad0565b90600052602060002090601f0160209004810192826200096d576000855562000929565b82601f1062000980578054855562000929565b828001600101855582156200092957600052602060002091601f016020900482015b8281111562000929578254825591600101919060010190620009a2565b5b80821115620009375760008155600101620009c0565b600060208284031215620009e957600080fd5b81516001600160e01b03198116811462000a0257600080fd5b9392505050565b6000815180845260005b8181101562000a315760208185018101518683018201520162000a13565b8181111562000a44576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009062000a959083018462000a09565b979650505050505050565b60208152600062000a02602083018462000a09565b6000821982111562000acb5762000acb62000b66565b500190565b600181811c9082168062000ae557607f821691505b6020821081141562000b0757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b038111828210171562000b4157634e487b7160e01b600052604160045260246000fd5b6040525050565b600060001982141562000b5f5762000b5f62000b66565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060033d111562000bac5760046000803e5060005160e01c5b90565b600060443d101562000bbe5790565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171562000bee57505050505090565b828501915081518181111562000c075750505050505090565b843d870101602082850101111562000c225750505050505090565b62000c336020828601018762000b0d565b509095945050505050565b615dff8062000c4e6000396000f3fe60806040526004361061055b5760003560e01c80637724bad8116102bd578063b633e4cd11610180578063d85ed0f4116100e7578063f242432a116100a0578063f5ce5dcb1161007a578063f5ce5dcb146111a2578063f8f3a1ca146111b8578063fa0fda35146111d8578063ff0814811461121057600080fd5b8063f242432a14611142578063f2fde38b14611162578063f384031e1461118257600080fd5b8063d85ed0f414611069578063d8d9d6bc1461107e578063e5211d8b146110ae578063e985e9c5146110ce578063ea7aef5c14611117578063ed00e6531461112d57600080fd5b8063c6b1fe5811610139578063c6b1fe5814610fb6578063cc979f2714610fd6578063d261b6e414610ff6578063d3c8efdb14611016578063d6199f8d14611036578063d81d0a151461105657600080fd5b8063b633e4cd14610ee6578063b6906eca14610f13578063b82741a014610f29578063ba4e5c4914610f49578063bd85b03914610f69578063bff67e9b14610f9657600080fd5b8063a22cb46511610224578063a684c471116101dd578063a684c47114610e26578063a6d23e1014610e46578063accc1d5e14610e66578063b390c0ab14610e86578063b5b13abc14610ea6578063b5e0e87b14610ec657600080fd5b8063a22cb46514610d56578063a2c4c60214610d76578063a370c66814610d96578063a48fc3a914610dc6578063a4c2f65114610de6578063a5492f4414610e0657600080fd5b80638da5cb5b116102765780638da5cb5b14610ca9578063943431bf14610cc757806394357c2514610ce757806395d89b4114610d075780639c70b51214610d1c578063a1fc693714610d3657600080fd5b80637724bad814610bed5780637d929b4f14610c025780637f00c7a614610c2257806383ca4b6f14610c4257806384c6ef2f14610c62578063869f759414610c7c57600080fd5b806339ba02d0116104205780634e1273f4116103875780635c78222f11610340578063644e54ab1161031a578063644e54ab14610b8c578063650e926f14610ba257806366f3fd6414610bb8578063715018a614610bd857600080fd5b80635c78222f14610b325780635c975abb14610b5257806362e6031b14610b6c57600080fd5b80634e1273f414610a565780634f558e7914610a835780635183022714610ab357806351ede79114610ad257806352addee514610af2578063533c7cfa14610b1257600080fd5b80634271c5fd116103d95780634271c5fd146109aa5780634378dfa5146109c057806344166417146109e057806344a0d68a14610a005780634c26124714610a205780634cafdb6d14610a4057600080fd5b806339ba02d01461090f5780633af32abf146109225780633c952764146109425780633ccfd60b146109625780633e4a4e771461096a57806341c63b851461098a57600080fd5b80631c60094b116104c45780632eb2c2d61161047d5780632eb2c2d6146108565780632ed6cd46146108765780632fad845c146108a35780632fd72393146108b957806330182278146108d957806333ea51a8146108ef57600080fd5b80631c60094b1461079d5780631ee33ca9146107ca57806321d0a2a0146107e0578063239c70ae14610800578063293d8bb5146108165780632a9abcb91461083657600080fd5b80630ec7359f116105165780630ec7359f146106dc57806313faede6146106fc57806314bfd6d014610712578063156e29f61461074a5780631973ea061461075d5780631b1004501461077d57600080fd5b80624a84cb146105f5578062fdd58e1461061757806301ffc9a71461064a57806302329a291461067a57806306fdde031461069a5780630e89341c146106bc57600080fd5b366105f057602c546001600160a01b03166105b25760405162461bcd60e51b8152602060048201526012602482015271536574205061796f7574204164647265737360701b60448201526064015b60405180910390fd5b602c5460405134916001600160a01b03169082156108fc029083906000818181858888f193505050501580156105ec573d6000803e3d6000fd5b5050005b600080fd5b34801561060157600080fd5b50610615610610366004615113565b61123d565b005b34801561062357600080fd5b506106376106323660046150e9565b6112bc565b6040519081526020015b60405180910390f35b34801561065657600080fd5b5061066a6106653660046153d2565b611350565b6040519015158152602001610641565b34801561068657600080fd5b5061061561069536600461539b565b6113a0565b3480156106a657600080fd5b506106af6113bb565b604051610641919061588d565b3480156106c857600080fd5b506106af6106d7366004615440565b611449565b3480156106e857600080fd5b506106156106f73660046152a8565b611821565b34801561070857600080fd5b5061063760095481565b34801561071e57600080fd5b5061073261072d366004615440565b61186d565b6040516001600160a01b039091168152602001610641565b610615610758366004615113565b611897565b34801561076957600080fd5b50610615610778366004615187565b611930565b34801561078957600080fd5b50610615610798366004615440565b6119f4565b3480156107a957600080fd5b506106376107b8366004614eea565b60296020526000908152604090205481565b3480156107d657600080fd5b5061063760285481565b3480156107ec57600080fd5b506106af6107fb366004615440565b611a5f565b34801561080c57600080fd5b50610637600a5481565b34801561082257600080fd5b50610615610831366004615440565b611a78565b34801561084257600080fd5b506106156108513660046154c8565b611aab565b34801561086257600080fd5b50610615610871366004614f3f565b611ba4565b34801561088257600080fd5b50610637610891366004615440565b60156020526000908152604090205481565b3480156108af57600080fd5b5061063760195481565b3480156108c557600080fd5b506106156108d4366004615440565b611bf0565b3480156108e557600080fd5b50610637600e5481565b3480156108fb57600080fd5b5061061561090a366004614eea565b611bfd565b61061561091d366004615440565b611c27565b34801561092e57600080fd5b5061066a61093d366004614eea565b611d5d565b34801561094e57600080fd5b5061061561095d36600461539b565b611ded565b610615611e08565b34801561097657600080fd5b50610615610985366004615328565b611f20565b34801561099657600080fd5b506106156109a536600461547c565b61210f565b3480156109b657600080fd5b50610637602f5481565b3480156109cc57600080fd5b506106156109db3660046152a8565b61225d565b3480156109ec57600080fd5b506106156109fb3660046154c8565b6122a9565b348015610a0c57600080fd5b50610615610a1b366004615440565b6124d1565b348015610a2c57600080fd5b50610615610a3b36600461540c565b6124de565b348015610a4c57600080fd5b5061063760085481565b348015610a6257600080fd5b50610a76610a713660046151d8565b61258a565b604051610641919061584c565b348015610a8f57600080fd5b5061066a610a9e366004615440565b60009081526016602052604090205460ff1690565b348015610abf57600080fd5b50600d5461066a90610100900460ff1681565b348015610ade57600080fd5b50610615610aed366004615440565b6126b3565b348015610afe57600080fd5b50610637610b0d366004615440565b6126c0565b348015610b1e57600080fd5b50610637610b2d366004614eea565b6126e1565b348015610b3e57600080fd5b50610615610b4d36600461539b565b61277c565b348015610b5e57600080fd5b50600d5461066a9060ff1681565b348015610b7857600080fd5b50610615610b873660046150e9565b612797565b348015610b9857600080fd5b50610637600b5481565b348015610bae57600080fd5b50610637600f5481565b348015610bc457600080fd5b50610615610bd33660046153b6565b6128aa565b348015610be457600080fd5b506106156128da565b348015610bf957600080fd5b506106af6128ec565b348015610c0e57600080fd5b50610637610c1d366004615506565b61290f565b348015610c2e57600080fd5b50610615610c3d366004615440565b612940565b348015610c4e57600080fd5b50610615610c5d3660046152dc565b61294d565b348015610c6e57600080fd5b5060175461066a9060ff1681565b348015610c8857600080fd5b50610637610c97366004615440565b60136020526000908152604090205481565b348015610cb557600080fd5b506003546001600160a01b0316610732565b348015610cd357600080fd5b50610615610ce2366004615440565b6129d7565b348015610cf357600080fd5b50610637610d02366004615506565b6129e4565b348015610d1357600080fd5b506106af612a00565b348015610d2857600080fd5b5060245461066a9060ff1681565b348015610d4257600080fd5b50610637610d51366004615440565b612a0d565b348015610d6257600080fd5b50610615610d713660046150bf565b612a1d565b348015610d8257600080fd5b50610615610d9136600461539b565b612a28565b348015610da257600080fd5b5061066a610db1366004615440565b601d6020526000908152604090205460ff1681565b348015610dd257600080fd5b50600d5461066a9062010000900460ff1681565b348015610df257600080fd5b50610615610e01366004614eea565b612a4c565b348015610e1257600080fd5b50610615610e213660046150bf565b612aad565b348015610e3257600080fd5b50602d54610732906001600160a01b031681565b348015610e5257600080fd5b50602c54610732906001600160a01b031681565b348015610e7257600080fd5b50610615610e81366004615146565b612b17565b348015610e9257600080fd5b50610615610ea1366004615506565b612b76565b348015610eb257600080fd5b50610615610ec1366004615440565b612ba5565b348015610ed257600080fd5b50610615610ee1366004615187565b612bfb565b348015610ef257600080fd5b50610637610f01366004614eea565b60236020526000908152604090205481565b348015610f1f57600080fd5b5061063760275481565b348015610f3557600080fd5b50610615610f443660046154c8565b612cdb565b348015610f5557600080fd5b50610732610f64366004615440565b612d2e565b348015610f7557600080fd5b50610637610f84366004615440565b60009081526011602052604090205490565b348015610fa257600080fd5b506106af610fb1366004615440565b612d3e565b348015610fc257600080fd5b50610637610fd1366004615440565b612d69565b348015610fe257600080fd5b50610615610ff136600461504c565b612e74565b34801561100257600080fd5b50610615611011366004615440565b612f48565b34801561102257600080fd5b50610615611031366004615506565b612f55565b34801561104257600080fd5b506106af611051366004615440565b612f68565b61061561106436600461504c565b612f78565b34801561107557600080fd5b506106af613201565b34801561108a57600080fd5b5061066a611099366004614eea565b601e6020526000908152604090205460ff1681565b3480156110ba57600080fd5b506106156110c9366004615459565b613210565b3480156110da57600080fd5b5061066a6110e9366004614f0c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561112357600080fd5b50610637600c5481565b34801561113957600080fd5b5061066a61326f565b34801561114e57600080fd5b5061061561115d366004614fe8565b61331d565b34801561116e57600080fd5b5061061561117d366004614eea565b613362565b34801561118e57600080fd5b5061061561119d36600461540c565b6133d8565b3480156111ae57600080fd5b50610637601a5481565b3480156111c457600080fd5b506106376111d3366004615440565b6133f3565b3480156111e457600080fd5b506106376111f33660046150e9565b602660209081526000928352604080842090915290825290205481565b34801561121c57600080fd5b5061063761122b366004614eea565b60226020526000908152604090205481565b61124561341a565b600d5462010000900460ff161561126e5760405162461bcd60e51b81526004016105a99061594c565b6112778261345d565b60008281526011602052604081208054839290611295908490615b86565b925050819055506112b78383836040518060200160405280600081525061351a565b505050565b60006001600160a01b0383166113275760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084016105a9565b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061138157506001600160e01b031982166303a24d0760e21b145b8061134a57506301ffc9a760e01b6001600160e01b031983161461134a565b6113a861341a565b600d805460ff1916911515919091179055565b600480546113c890615c00565b80601f01602080910402602001604051908101604052809291908181526020018280546113f490615c00565b80156114415780601f1061141657610100808354040283529160200191611441565b820191906000526020600020905b81548152906001019060200180831161142457829003601f168201915b505050505081565b6060600060019050600060066040516020016114659190615757565b60405160208183030381529060405290506000600760405160200161148a91906156a9565b60408051601f1981840301815291815260008781526016602052205490915060ff1615611819576000851180156114c357506008548511155b1561181957600d54610100900460ff166114df57949350505050565b604080516000808252602080830180855283519020898352601090915290839020909261150c920161569d565b60405160208183030381529060405280519060200120146115c8576000858152601060205260409020805461154090615c00565b80601f016020809104026020016040519081016040528092919081815260200182805461156c90615c00565b80156115b95780601f1061158e576101008083540402835291602001916115b9565b820191906000526020600020905b81548152906001019060200180831161159c57829003601f168201915b50505050509350505050919050565b60005b601f5481101561173957601f81815481106115e8576115e8615cba565b9060005260206000200154861161172957604051602001604051602081830303815290604052805190602001206020828154811061162857611628615cba565b90600052602060002001604051602001611642919061569d565b60405160208183030381529060405280519060200120146116a0576020818154811061167057611670615cba565b9060005260206000200160405160200161168a9190615757565b6040516020818303038152906040529250611739565b6040805160008152602081019182905251902060218054839081106116c7576116c7615cba565b906000526020600020016040516020016116e1919061569d565b6040516020818303038152906040528051906020012014611729576021818154811061170f5761170f615cba565b9060005260206000200160405160200161168a91906156d9565b61173281615c67565b90506115cb565b50601f805461174a90600190615bbd565b8154811061175a5761175a615cba565b906000526020600020015485111561177157600092505b82156118195760408051600080825260208083018085528351902089835260189091529083902090926117a4920161569d565b6040516020818303038152906040528051906020012014156117f457816117ca86613603565b6040516020016117db929190615629565b6040516020818303038152906040529350505050919050565b81601860008781526020019081526020016000206040516020016117db929190615668565b949350505050565b61182961341a565b611835602a6000614c4e565b805161184890602a906020840190614c6c565b508060008151811061185c5761185c615cba565b602002602001015160288190555050565b602e818154811061187d57600080fd5b6000918252602090912001546001600160a01b0316905081565b600d5462010000900460ff16156118c05760405162461bcd60e51b81526004016105a99061594c565b600d5460ff16156118e35760405162461bcd60e51b81526004016105a9906158e8565b6118ed8282613697565b6119275760405162461bcd60e51b815260206004820152600b60248201526a10d0539393d5081352539560aa1b60448201526064016105a9565b61126e8161398d565b61193861341a565b61194460256000614c4e565b61195060258484614cb3565b50805161195c57505050565b8051600114156119e95760005b828110156119e3578160008151811061198457611984615cba565b6020026020010151602960008686858181106119a2576119a2615cba565b90506020020160208101906119b79190614eea565b6001600160a01b03168152602081019190915260400160002055806119db81615c67565b915050611969565b50505050565b6112b7838383612bfb565b731ba3fe6311131a67d97f20162522490c3648f6e23314611a455760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b60448201526064016105a9565b80602f6000828254611a579190615b86565b909155505050565b601860205260009081526040902080546113c890615c00565b611a8061341a565b8060288190555080602a600081548110611a9c57611a9c615cba565b60009182526020909120015550565b611ab361341a565b8015611b4757600082611ac585613603565b604051602001611ad69291906156f6565b60408051601f198184030181529181526000868152601060209081529190208251929350611b08929091840190614d06565b50837f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b82604051611b39919061588d565b60405180910390a250505050565b60008381526010602090815260409091208351611b6692850190614d06565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b83604051611b97919061588d565b60405180910390a2505050565b6001600160a01b038516331480611bc05750611bc085336110e9565b611bdc5760405162461bcd60e51b81526004016105a990615983565b611be98585858585613c44565b5050505050565b611bf861341a565b600f55565b611c05613de6565b602c80546001600160a01b0319166001600160a01b0392909216919091179055565b600d5462010000900460ff16611c765760405162461bcd60e51b81526020600482015260146024820152732932b8bab4b932b99036b4b73a24b727b93232b960611b60448201526064016105a9565b600d5460ff1615611c995760405162461bcd60e51b81526004016105a9906158e8565b60085460009081526016602052604090205460ff1615611ce65760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b60448201526064016105a9565b6008546001600f5483611cf99190615b86565b611d039190615bbd565b1115611d475760405162461bcd60e51b8152602060048201526013602482015272141b19585cd948131bddd95c88105b5bdd5b9d606a1b60448201526064016105a9565b611d508161398d565b611d5a3382613e40565b50565b6000805b602554811015611dbe57826001600160a01b031660258281548110611d8857611d88615cba565b6000918252602090912001546001600160a01b03161415611dac5750600192915050565b80611db681615c67565b915050611d61565b506001600160a01b03821660009081526022602052604090205415611de557506001919050565b506000919050565b611df561341a565b6024805460ff1916911515919091179055565b611e1061341a565b602c546001600160a01b0316611e5d5760405162461bcd60e51b8152602060048201526012602482015271536574205061796f7574204164647265737360701b60448201526064016105a9565b603054602f5411611ed157604051600090731ba3fe6311131a67d97f20162522490c3648f6e29047908381818185875af1925050503d8060008114611ebe576040519150601f19603f3d011682016040523d82523d6000602084013e611ec3565b606091505b5050905080611d5a57600080fd5b602c546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611ebe576040519150601f19603f3d011682016040523d82523d6000602084013e611ec3565b565b611f2861341a565b80156120385760008360018551611f3f9190615bbd565b81518110611f4f57611f4f615cba565b6020026020010151905060005b601f54811015611be957601f8181548110611f7957611f79615cba565b9060005260206000200154821415612028578360018551611f9a9190615bbd565b81518110611faa57611faa615cba565b60209081029190910181015160008481526015909252604082205584518590611fd590600190615bbd565b81518110611fe557611fe5615cba565b60200260200101511115612011576000828152601460205260409020805460ff19166001179055612028565b6000828152601460205260409020805460ff191690555b61203181615c67565b9050611f5c565b60005b83518110156119e357600084828151811061205857612058615cba565b6020026020010151905083828151811061207457612074615cba565b602002602001015160136000838152602001908152602001600020600082825461209e9190615b86565b9250508190555060008483815181106120b9576120b9615cba565b602002602001015111156120e5576000818152601260205260409020805460ff191660011790556120fc565b6000818152601260205260409020805460ff191690555b508061210781615c67565b91505061203b565b61211761341a565b811561223e5760005b601f5481101561221e5783601f828154811061213e5761213e615cba565b906000526020600020015414156121545761221e565b601f805461216490600190615bbd565b8154811061217457612174615cba565b9060005260206000200154601f828154811061219257612192615cba565b90600052602060002001541480156121c75750601f81815481106121b8576121b8615cba565b90600052602060002001548414155b1561220c5760405162461bcd60e51b81526020600482015260156024820152740becadcc8928840d2e640dcdee840c24084c2e8c6d605b1b60448201526064016105a9565b8061221681615c67565b915050612120565b506000838152601c6020908152604090912082516119e392840190614c6c565b6000838152601b6020908152604090912082516119e392840190614c6c565b61226561341a565b612271602b6000614c4e565b805161228490602b906020840190614c6c565b508060008151811061229857612298615cba565b6020026020010151600c8190555050565b6122b161341a565b601f80546122c190600190615bbd565b815481106122d1576122d1615cba565b906000526020600020015483116123505760405162461bcd60e51b815260206004820152603760248201527f4c617374204261746368204944206d757374206265206772656174657220746860448201527f616e2070726576696f757320626174636820746f74616c00000000000000000060648201526084016105a9565b801561241357601f805460018181019092557fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d80701849055602080549182018155600081905283516123c6927fc97bfaf2f8ee708c303a06d134f5ecd8389ae0432af62dc132a24118292866bb0191850190614d06565b506021805460018101825560009182526040805160208101918290528390526119e3927f3a6357012c1a3ae0a17d304c9920310382d968ebcc4b1771f41c6b304205b57090920191614d06565b601f805460018181019092557fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d807018490556021805491820181556000528251612483917f3a6357012c1a3ae0a17d304c9920310382d968ebcc4b1771f41c6b304205b57001906020850190614d06565b506020805460018101825560008281526040805193840190819052928190526119e3927fc97bfaf2f8ee708c303a06d134f5ecd8389ae0432af62dc132a24118292866bb9092019190614d06565b6124d961341a565b600955565b6124e661341a565b600d54610100900460ff16156125315760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e4814995d99585b195960821b60448201526064016105a9565b8051612544906006906020840190614d06565b5080602060008154811061255a5761255a615cba565b906000526020600020019080519060200190612577929190614d06565b5050600d805461ff001916610100179055565b606081518351146125ef5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016105a9565b600083516001600160401b0381111561260a5761260a615cd0565b604051908082528060200260200182016040528015612633578160200160208202803683370190505b50905060005b84518110156126ab5761267e85828151811061265757612657615cba565b602002602001015185838151811061267157612671615cba565b60200260200101516112bc565b82828151811061269057612690615cba565b60209081029190910101526126a481615c67565b9050612639565b509392505050565b6126bb61341a565b600c55565b601f81815481106126d057600080fd5b600091825260209091200154905081565b60006126eb61326f565b611de55760245460ff168015612705575061270582611d5d565b1561276f576001600160a01b03821660009081526029602052604090205461272f57505060285490565b6001600160a01b038216600090815260296020526040902054602a8054909190811061275d5761275d615cba565b90600052602060002001549050919050565b505060095490565b919050565b61278461341a565b6017805460ff1916911515919091179055565b61279f61341a565b600d5462010000900460ff166127ee5760405162461bcd60e51b81526020600482015260146024820152732932b8bab4b932b99036b4b73a24b727b93232b960611b60448201526064016105a9565b60085460009081526016602052604090205460ff161561283b5760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b60448201526064016105a9565b6008546001600f548361284e9190615b86565b6128589190615bbd565b111561289c5760405162461bcd60e51b8152602060048201526013602482015272141b19585cd948131bddd95c88105b5bdd5b9d606a1b60448201526064016105a9565b6128a68282613e40565b5050565b6128b261341a565b600d80548315801563010000000263ff00000019909216919091179091556128a657600e5550565b6128e2613de6565b611f1e6000614003565b60606000604051806060016040528060288152602001615da26028913992915050565b601c602052816000526040600020818154811061292b57600080fd5b90600052602060002001600091509150505481565b61294861341a565b600a55565b60005b82518110156129cb57600083828151811061296d5761296d615cba565b6020026020010151905082828151811061298957612989615cba565b60200260200101516011600083815260200190815260200160002060008282546129b39190615bbd565b909155506129c49150829050615c67565b9050612950565b506128a6338383614055565b6129df61341a565b602755565b601b602052816000526040600020818154811061292b57600080fd5b600580546113c890615c00565b602a81815481106126d057600080fd5b6128a63383836141f1565b612a3061341a565b600d8054911515620100000262ff000019909216919091179055565b6003546001600160a01b0316331480612a6f5750602d546001600160a01b031633145b612a8b5760405162461bcd60e51b81526004016105a990615aa3565b602d80546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b0316331480612ad05750602d546001600160a01b031633145b612aec5760405162461bcd60e51b81526004016105a990615aa3565b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b612b1f61341a565b6003546001600160a01b0316331480612b425750602d546001600160a01b031633145b612b5e5760405162461bcd60e51b81526004016105a990615aa3565b612b6a602e6000614c4e565b6112b7602e8383614cb3565b60008281526011602052604081208054839290612b94908490615bbd565b909155506128a690503383836142d2565b731ba3fe6311131a67d97f20162522490c3648f6e23314612bf65760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b60448201526064016105a9565b603055565b612c0361341a565b80518214612c5f5760405162461bcd60e51b815260206004820152602360248201527f5573657273204172726179204e6f7420457175616c20546f205469657220417260448201526272617960e81b60648201526084016105a9565b60005b828110156119e357818181518110612c7c57612c7c615cba565b602002602001015160296000868685818110612c9a57612c9a615cba565b9050602002016020810190612caf9190614eea565b6001600160a01b0316815260208101919091526040016000205580612cd381615c67565b915050612c62565b612ce361341a565b8015612d1a578160208481548110612cfd57612cfd615cba565b9060005260206000200190805190602001906119e3929190614d06565b8160218481548110612cfd57612cfd615cba565b6025818154811061187d57600080fd5b60218181548110612d4e57600080fd5b9060005260206000200160009150905080546113c890615c00565b60008181526013602052604081205415612d90575060009081526013602052604090205490565b60005b601f54811015612e6b578215801590612dc95750601f8181548110612dba57612dba615cba565b90600052602060002001548311155b8015612dfb5750601f612ddd600183615bbd565b81548110612ded57612ded615cba565b906000526020600020015483115b15612e59576000601f8281548110612e1557612e15615cba565b906000526020600020015490506015600082815260200190815260200160002054600014612e53576000908152601560205260409020549392505050565b50612e6b565b80612e6381615c67565b915050612d93565b50600092915050565b612e7c61341a565b600d5462010000900460ff1615612ea55760405162461bcd60e51b81526004016105a99061594c565b60005b8251811015612f2c576000838281518110612ec557612ec5615cba565b60200260200101519050612ed88161345d565b828281518110612eea57612eea615cba565b6020026020010151601160008381526020019081526020016000206000828254612f149190615b86565b90915550612f259150829050615c67565b9050612ea8565b506112b7838383604051806020016040528060008152506143ea565b612f5061341a565b600855565b612f5d61341a565b601991909155601a55565b60208181548110612d4e57600080fd5b600d5462010000900460ff1615612fa15760405162461bcd60e51b81526004016105a99061594c565b600d5460ff1615612fc45760405162461bcd60e51b81526004016105a9906158e8565b600a54825111156130065760405162461bcd60e51b815260206004820152600c60248201526b546f6f204d616e792049447360a01b60448201526064016105a9565b80518251146130575760405162461bcd60e51b815260206004820152601960248201527f49447320616e6420416d6f756e7473204e6f7420457175616c0000000000000060448201526064016105a9565b6130618282614544565b6130a15760405162461bcd60e51b8152602060048201526011602482015270086829c9c9ea8409a929ca8408482a8869607b1b60448201526064016105a9565b6000805b82518110156130e7578281815181106130c0576130c0615cba565b6020026020010151826130d39190615b86565b9150806130df81615c67565b9150506130a5565b50600b5481111561313a5760405162461bcd60e51b815260206004820152601b60248201527f426174636820416d6f756e74204c696d6974204578636565646564000000000060448201526064016105a9565b6131438161398d565b60005b83518110156131e557600084828151811061316357613163615cba565b602002602001015190506131768161345d565b83828151811061318857613188615cba565b6020026020010151601160008785815181106131a6576131a6615cba565b6020026020010151815260200190815260200160002060008282546131cb9190615b86565b909155508291506131dd905081615c67565b915050613146565b506119e3848484604051806020016040528060008152506143ea565b606061320b6145c2565b905090565b6003546001600160a01b03163314806132335750602d546001600160a01b031633145b61324f5760405162461bcd60e51b81526004016105a990615aa3565b6000918252601d6020526040909120805460ff1916911515919091179055565b60006132836003546001600160a01b031690565b6001600160a01b0316336001600160a01b031614806132ac5750602d546001600160a01b031633145b156132b75750600190565b602e54156133175760005b602e5481101561331557602e81815481106132df576132df615cba565b6000918252602090912001546001600160a01b031633141561330357600191505090565b8061330d81615c67565b9150506132c2565b505b50600090565b6001600160a01b038516331480613339575061333985336110e9565b6133555760405162461bcd60e51b81526004016105a990615983565b611be9858585858561466b565b61336a613de6565b6001600160a01b0381166133cf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105a9565b611d5a81614003565b6133e061341a565b80516128a6906007906020840190614d06565b602b81815481106126d057600080fd5b505050505050565b6001600160a01b03163b151590565b61342261326f565b611f1e5760405162461bcd60e51b815260206004820152600c60248201526b2737ba1030b71030b236b4b760a11b60448201526064016105a9565b60008181526016602052604090205460ff166134e4576000818152601660209081526040808320805460ff19908116600117909155601d90925290912080549091169055600d5462010000900460ff16156134e457600081815260136020908152604080832060019081905560128352818420805460ff1916821790556011909252909120555b60175460ff1615611d5a576134f76145c2565b600082815260186020908152604090912082516128a69391929190910190614d06565b6001600160a01b0384166135405760405162461bcd60e51b81526004016105a990615b22565b33600061354c856147a3565b90506000613559856147a3565b905061356a836000898585896147ee565b6000868152602081815260408083206001600160a01b038b1684529091528120805487929061359a908490615b86565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46135fa83600089898989614941565b50505050505050565b6060600061361083614aac565b60010190506000816001600160401b0381111561362f5761362f615cd0565b6040519080825280601f01601f191660200182016040528015613659576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084613692576126ab565b613663565b60008281526012602052604081205460ff161561371c576000821180156136c05750600a548211155b80156136cc5750600083115b80156136da57506008548311155b801561370a5750600083815260136020908152604080832054601190925290912054613707908490615b86565b11155b156137145761374b565b50600061134a565b60008211801561372e5750600a548211155b801561373a5750600083115b801561370a57506008548311613714575b6000838152601b6020526040902054156137d15760005b6000848152601b60205260409020548110156137cf576000848152601b6020526040812080546137ae9133918590811061379e5761379e615cba565b90600052602060002001546112bc565b116137bd57600091505061134a565b806137c781615c67565b915050613762565b505b60005b601f5481101561398357801580159061380a5750601f81815481106137fb576137fb615cba565b90600052602060002001548411155b801561383c5750601f61381e600183615bbd565b8154811061382e5761382e615cba565b906000526020600020015484115b15613971576000601f828154811061385657613856615cba565b6000918252602080832090910154808352601c909152604090912054909150156138de5760005b6000828152601c60205260409020548110156138dc576000828152601c6020526040812080546138b99133918590811061379e5761379e615cba565b116138ca576000935050505061134a565b806138d481615c67565b91505061387d565b505b60008181526014602052604090205460ff1615613969576000841180156139075750600a548411155b80156139135750600085115b801561392157506008548511155b80156139545750600081815260156020908152604080832054888452601190925290912054613951908690615b86565b11155b1561395e5761396f565b60009250505061134a565b50613971565b505b8061397b81615c67565b9150506137d4565b5060019392505050565b3360009081526023602090815260408083205460229092528220546139b29190615bbd565b90508181106139be5750805b6139c661326f565b6128a657600d546301000000900460ff1615613a2257600e54421015613a225760405162461bcd60e51b8152602060048201526011602482015270139bdd08135a5b9d0811185d194816595d607a1b60448201526064016105a9565b60245460ff1615613bb957613a3633611d5d565b613a745760405162461bcd60e51b815260206004820152600f60248201526e139bdd0815da1a5d195b1a5cdd1959608a1b60448201526064016105a9565b33600081815260266020908152604080832060275484528252808320549383526029909152902054602b80549091908110613ab157613ab1615cba565b90600052602060002001548382613ac89190615b86565b1115613b205760405162461bcd60e51b815260206004820152602160248201527f4578636565646564204d61782057686974656c697374204d696e74204c696d696044820152601d60fa1b60648201526084016105a9565b613b29336126e1565b613b338385615bbd565b613b3d9190615b9e565b341015613b815760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b60448201526064016105a9565b336000908152602660209081526040808320602754845290915281208054859290613bad908490615b86565b90915550613c10915050565b613bc2336126e1565b613bcc9083615b9e565b341015613c105760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b60448201526064016105a9565b600034118015613c245750603054602f5411155b156128a65734602f6000828254613c3b9190615b86565b90915550505050565b8151835114613c655760405162461bcd60e51b81526004016105a990615ada565b6001600160a01b038416613c8b5760405162461bcd60e51b81526004016105a9906159d1565b33613c9a8187878787876147ee565b60005b8451811015613d80576000858281518110613cba57613cba615cba565b602002602001015190506000858381518110613cd857613cd8615cba565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015613d285760405162461bcd60e51b81526004016105a990615a59565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290613d65908490615b86565b9250508190555050505080613d7990615c67565b9050613c9d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613dd092919061585f565b60405180910390a4613403818787878787614b84565b6003546001600160a01b03163314611f1e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105a9565b6000816001600160401b03811115613e5a57613e5a615cd0565b604051908082528060200260200182016040528015613e83578160200160208202803683370190505b5090506000826001600160401b03811115613ea057613ea0615cd0565b604051908082528060200260200182016040528015613ec9578160200160208202803683370190505b50905060005b83811015613f4c57600f54613ee38161345d565b600f54848381518110613ef857613ef8615cba565b6020026020010181815250506001838381518110613f1857613f18615cba565b6020908102919091010152600f8054906000613f3383615c67565b9190505550508080613f4490615c67565b915050613ecf565b503360009081526022602052604090205415613fe857336000908152602260209081526040808320546023909252909120541015613fa9573360009081526023602052604081208054859290613fa3908490615b86565b90915550505b3360009081526022602090815260408083205460239092529091205410613fe85733600090815260236020908152604080832083905560229091528120555b6119e3848383604051806020016040528060008152506143ea565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831661407b5760405162461bcd60e51b81526004016105a990615a16565b805182511461409c5760405162461bcd60e51b81526004016105a990615ada565b60003390506140bf818560008686604051806020016040528060008152506147ee565b60005b83518110156141845760008482815181106140df576140df615cba565b6020026020010151905060008483815181106140fd576140fd615cba565b602090810291909101810151600084815280835260408082206001600160a01b038c16835290935291909120549091508181101561414d5760405162461bcd60e51b81526004016105a990615908565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061417c81615c67565b9150506140c2565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516141d592919061585f565b60405180910390a46040805160208101909152600090526119e3565b816001600160a01b0316836001600160a01b031614156142655760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105a9565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383166142f85760405162461bcd60e51b81526004016105a990615a16565b336000614304846147a3565b90506000614311846147a3565b9050614331838760008585604051806020016040528060008152506147ee565b6000858152602081815260408083206001600160a01b038a168452909152902054848110156143725760405162461bcd60e51b81526004016105a990615908565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090526135fa565b6001600160a01b0384166144105760405162461bcd60e51b81526004016105a990615b22565b81518351146144315760405162461bcd60e51b81526004016105a990615ada565b33614441816000878787876147ee565b60005b84518110156144dc5783818151811061445f5761445f615cba565b602002602001015160008087848151811061447c5761447c615cba565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546144c49190615b86565b909155508190506144d481615c67565b915050614444565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161452d92919061585f565b60405180910390a4611be981600087878787614b84565b6000805b835181101561398357600084828151811061456557614565615cba565b60200260200101519050600084838151811061458357614583615cba565b602002602001015190506145978282613697565b156145a1576145ad565b6000935050505061134a565b505080806145ba90615c67565b915050614548565b60606000601a54424433600f54601860006001600f546145e29190615bbd565b8152602001908152602001600020604051602001614604959493929190615773565b6040516020818303038152906040528051906020012060001c6146279190615c82565b905060195481101561465957614653614641826001615b86565b601a5461464e9190615bbd565b613603565b91505090565b61465361464e826001615b86565b5090565b6001600160a01b0384166146915760405162461bcd60e51b81526004016105a9906159d1565b33600061469d856147a3565b905060006146aa856147a3565b90506146ba8389898585896147ee565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156146fb5760405162461bcd60e51b81526004016105a990615a59565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290614738908490615b86565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4614798848a8a8a8a8a614941565b505050505050505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106147dd576147dd615cba565b602090810291909101015292915050565b6001600160a01b0386166000908152601e602052604090205460ff1615801561483057506001600160a01b0385166000908152601e602052604090205460ff16155b801561485557506001600160a01b0384166000908152601e602052604090205460ff16155b6148b55760405162461bcd60e51b815260206004820152602b60248201527f4f70657261746f722c2046726f6d2c206f7220546f204164647265737320697360448201526a08149154d5149250d5115160aa1b60648201526084016105a9565b60005b83518110156135fa57601d60008583815181106148d7576148d7615cba565b60209081029190910181015182528101919091526040016000205460ff161561492f5760405162461bcd60e51b815260206004820152600a602482015269119b1859d9d95908125160b21b60448201526064016105a9565b8061493981615c67565b9150506148b8565b6001600160a01b0384163b156134035760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906149859089908990889088908890600401615812565b602060405180830381600087803b15801561499f57600080fd5b505af19250505080156149cf575060408051601f3d908101601f191682019092526149cc918101906153ef565b60015b614a7c576149db615ce6565b806308c379a01415614a1557506149f0615d02565b806149fb5750614a17565b8060405162461bcd60e51b81526004016105a9919061588d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016105a9565b6001600160e01b0319811663f23a6e6160e01b146135fa5760405162461bcd60e51b81526004016105a9906158a0565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310614aeb5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310614b17576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310614b3557662386f26fc10000830492506010015b6305f5e1008310614b4d576305f5e100830492506008015b6127108310614b6157612710830492506004015b60648310614b73576064830492506002015b600a831061134a5760010192915050565b6001600160a01b0384163b156134035760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190614bc890899089908890889088906004016157b4565b602060405180830381600087803b158015614be257600080fd5b505af1925050508015614c12575060408051601f3d908101601f19168201909252614c0f918101906153ef565b60015b614c1e576149db615ce6565b6001600160e01b0319811663bc197c8160e01b146135fa5760405162461bcd60e51b81526004016105a9906158a0565b5080546000825590600052602060002090810190611d5a9190614d79565b828054828255906000526020600020908101928215614ca7579160200282015b82811115614ca7578251825591602001919060010190614c8c565b50614667929150614d79565b828054828255906000526020600020908101928215614ca7579160200282015b82811115614ca75781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190614cd3565b828054614d1290615c00565b90600052602060002090601f016020900481019282614d345760008555614ca7565b82601f10614d4d57805160ff1916838001178555614ca7565b82800160010185558215614ca75791820182811115614ca7578251825591602001919060010190614c8c565b5b808211156146675760008155600101614d7a565b80356001600160a01b038116811461277757600080fd5b60008083601f840112614db757600080fd5b5081356001600160401b03811115614dce57600080fd5b6020830191508360208260051b8501011115614de957600080fd5b9250929050565b600082601f830112614e0157600080fd5b81356020614e0e82615b63565b604051614e1b8282615c3b565b8381528281019150858301600585901b87018401881015614e3b57600080fd5b60005b85811015614e5a57813584529284019290840190600101614e3e565b5090979650505050505050565b8035801515811461277757600080fd5b600082601f830112614e8857600080fd5b81356001600160401b03811115614ea157614ea1615cd0565b604051614eb8601f8301601f191660200182615c3b565b818152846020838601011115614ecd57600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215614efc57600080fd5b614f0582614d8e565b9392505050565b60008060408385031215614f1f57600080fd5b614f2883614d8e565b9150614f3660208401614d8e565b90509250929050565b600080600080600060a08688031215614f5757600080fd5b614f6086614d8e565b9450614f6e60208701614d8e565b935060408601356001600160401b0380821115614f8a57600080fd5b614f9689838a01614df0565b94506060880135915080821115614fac57600080fd5b614fb889838a01614df0565b93506080880135915080821115614fce57600080fd5b50614fdb88828901614e77565b9150509295509295909350565b600080600080600060a0868803121561500057600080fd5b61500986614d8e565b945061501760208701614d8e565b9350604086013592506060860135915060808601356001600160401b0381111561504057600080fd5b614fdb88828901614e77565b60008060006060848603121561506157600080fd5b61506a84614d8e565b925060208401356001600160401b038082111561508657600080fd5b61509287838801614df0565b935060408601359150808211156150a857600080fd5b506150b586828701614df0565b9150509250925092565b600080604083850312156150d257600080fd5b6150db83614d8e565b9150614f3660208401614e67565b600080604083850312156150fc57600080fd5b61510583614d8e565b946020939093013593505050565b60008060006060848603121561512857600080fd5b61513184614d8e565b95602085013595506040909401359392505050565b6000806020838503121561515957600080fd5b82356001600160401b0381111561516f57600080fd5b61517b85828601614da5565b90969095509350505050565b60008060006040848603121561519c57600080fd5b83356001600160401b03808211156151b357600080fd5b6151bf87838801614da5565b909550935060208601359150808211156150a857600080fd5b600080604083850312156151eb57600080fd5b82356001600160401b038082111561520257600080fd5b818501915085601f83011261521657600080fd5b8135602061522382615b63565b6040516152308282615c3b565b8381528281019150858301600585901b870184018b101561525057600080fd5b600096505b8487101561527a5761526681614d8e565b835260019690960195918301918301615255565b509650508601359250508082111561529157600080fd5b5061529e85828601614df0565b9150509250929050565b6000602082840312156152ba57600080fd5b81356001600160401b038111156152d057600080fd5b61181984828501614df0565b600080604083850312156152ef57600080fd5b82356001600160401b038082111561530657600080fd5b61531286838701614df0565b9350602085013591508082111561529157600080fd5b60008060006060848603121561533d57600080fd5b83356001600160401b038082111561535457600080fd5b61536087838801614df0565b9450602086013591508082111561537657600080fd5b5061538386828701614df0565b92505061539260408501614e67565b90509250925092565b6000602082840312156153ad57600080fd5b614f0582614e67565b600080604083850312156153c957600080fd5b61510583614e67565b6000602082840312156153e457600080fd5b8135614f0581615d8b565b60006020828403121561540157600080fd5b8151614f0581615d8b565b60006020828403121561541e57600080fd5b81356001600160401b0381111561543457600080fd5b61181984828501614e77565b60006020828403121561545257600080fd5b5035919050565b6000806040838503121561546c57600080fd5b82359150614f3660208401614e67565b60008060006060848603121561549157600080fd5b833592506154a160208501614e67565b915060408401356001600160401b038111156154bc57600080fd5b6150b586828701614df0565b6000806000606084860312156154dd57600080fd5b8335925060208401356001600160401b038111156154fa57600080fd5b61538386828701614e77565b6000806040838503121561551957600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b838110156155585781518752958201959082019060010161553c565b509495945050505050565b6000815180845261557b816020860160208601615bd4565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806155a957607f831692505b60208084108214156155cb57634e487b7160e01b600052602260045260246000fd5b8180156155df57600181146155f05761561d565b60ff1986168952848901965061561d565b60008881526020902060005b868110156156155781548b8201529085019083016155fc565b505084890196505b50505050505092915050565b6000835161563b818460208801615bd4565b83519083019061564f818360208801615bd4565b64173539b7b760d91b9101908152600501949350505050565b6000835161567a818460208801615bd4565b6156868184018561558f565b64173539b7b760d91b815260050195945050505050565b6000614f05828461558f565b60006156b5828461558f565b653434b23232b760d11b815264173539b7b760d91b6006820152600b019392505050565b60006156e5828461558f565b602f60f81b81526001019392505050565b66697066733a2f2f60c81b815260008351615718816007850160208801615bd4565b602f60f81b6007918401918201528351615739816008840160208801615bd4565b64173539b7b760d91b60089290910191820152600d01949350505050565b66697066733a2f2f60c81b815260006156e5600783018461558f565b8581528460208201526bffffffffffffffffffffffff198460601b16604082015282605482015260006157a9607483018461558f565b979650505050505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906157e090830186615528565b82810360608401526157f28186615528565b905082810360808401526158068185615563565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906157a990830184615563565b602081526000614f056020830184615528565b6040815260006158726040830185615528565b82810360208401526158848185615528565b95945050505050565b602081526000614f056020830184615563565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526006908201526514185d5cd95960d21b604082015260600190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6020808252601a908201527f5265717569726573206d696e74496e4f726465722046616c7365000000000000604082015260600190565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252601b908201527f4e6f74204f776e6572206f722050726f6a656374204c65616465720000000000604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b03821115615b7c57615b7c615cd0565b5060051b60200190565b60008219821115615b9957615b99615ca4565b500190565b6000816000190483118215151615615bb857615bb8615ca4565b500290565b600082821015615bcf57615bcf615ca4565b500390565b60005b83811015615bef578181015183820152602001615bd7565b838111156119e35750506000910152565b600181811c90821680615c1457607f821691505b60208210811415615c3557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715615c6057615c60615cd0565b6040525050565b6000600019821415615c7b57615c7b615ca4565b5060010190565b600082615c9f57634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115615cff5760046000803e5060005160e01c5b90565b600060443d1015615d105790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715615d3f57505050505090565b8285019150815181811115615d575750505050505090565b843d8701016020828501011115615d715750505050505090565b615d8060208286010187615c3b565b509095945050505050565b6001600160e01b031981168114611d5a57600080fdfef09f90b82068747470733a2f2f7777772e68616c66737570657273686f702e636f6d2f20f09f90b8a26469706673582212201205a9e123f4917f8ac25047a02576f2465ea88233aa3de5f52210c6228e2c3364736f6c63430008070033516d59526a36684350674a4347426a6a347758617931714a4165645258594246705765505a644335643274523461

Deployed Bytecode

0x60806040526004361061055b5760003560e01c80637724bad8116102bd578063b633e4cd11610180578063d85ed0f4116100e7578063f242432a116100a0578063f5ce5dcb1161007a578063f5ce5dcb146111a2578063f8f3a1ca146111b8578063fa0fda35146111d8578063ff0814811461121057600080fd5b8063f242432a14611142578063f2fde38b14611162578063f384031e1461118257600080fd5b8063d85ed0f414611069578063d8d9d6bc1461107e578063e5211d8b146110ae578063e985e9c5146110ce578063ea7aef5c14611117578063ed00e6531461112d57600080fd5b8063c6b1fe5811610139578063c6b1fe5814610fb6578063cc979f2714610fd6578063d261b6e414610ff6578063d3c8efdb14611016578063d6199f8d14611036578063d81d0a151461105657600080fd5b8063b633e4cd14610ee6578063b6906eca14610f13578063b82741a014610f29578063ba4e5c4914610f49578063bd85b03914610f69578063bff67e9b14610f9657600080fd5b8063a22cb46511610224578063a684c471116101dd578063a684c47114610e26578063a6d23e1014610e46578063accc1d5e14610e66578063b390c0ab14610e86578063b5b13abc14610ea6578063b5e0e87b14610ec657600080fd5b8063a22cb46514610d56578063a2c4c60214610d76578063a370c66814610d96578063a48fc3a914610dc6578063a4c2f65114610de6578063a5492f4414610e0657600080fd5b80638da5cb5b116102765780638da5cb5b14610ca9578063943431bf14610cc757806394357c2514610ce757806395d89b4114610d075780639c70b51214610d1c578063a1fc693714610d3657600080fd5b80637724bad814610bed5780637d929b4f14610c025780637f00c7a614610c2257806383ca4b6f14610c4257806384c6ef2f14610c62578063869f759414610c7c57600080fd5b806339ba02d0116104205780634e1273f4116103875780635c78222f11610340578063644e54ab1161031a578063644e54ab14610b8c578063650e926f14610ba257806366f3fd6414610bb8578063715018a614610bd857600080fd5b80635c78222f14610b325780635c975abb14610b5257806362e6031b14610b6c57600080fd5b80634e1273f414610a565780634f558e7914610a835780635183022714610ab357806351ede79114610ad257806352addee514610af2578063533c7cfa14610b1257600080fd5b80634271c5fd116103d95780634271c5fd146109aa5780634378dfa5146109c057806344166417146109e057806344a0d68a14610a005780634c26124714610a205780634cafdb6d14610a4057600080fd5b806339ba02d01461090f5780633af32abf146109225780633c952764146109425780633ccfd60b146109625780633e4a4e771461096a57806341c63b851461098a57600080fd5b80631c60094b116104c45780632eb2c2d61161047d5780632eb2c2d6146108565780632ed6cd46146108765780632fad845c146108a35780632fd72393146108b957806330182278146108d957806333ea51a8146108ef57600080fd5b80631c60094b1461079d5780631ee33ca9146107ca57806321d0a2a0146107e0578063239c70ae14610800578063293d8bb5146108165780632a9abcb91461083657600080fd5b80630ec7359f116105165780630ec7359f146106dc57806313faede6146106fc57806314bfd6d014610712578063156e29f61461074a5780631973ea061461075d5780631b1004501461077d57600080fd5b80624a84cb146105f5578062fdd58e1461061757806301ffc9a71461064a57806302329a291461067a57806306fdde031461069a5780630e89341c146106bc57600080fd5b366105f057602c546001600160a01b03166105b25760405162461bcd60e51b8152602060048201526012602482015271536574205061796f7574204164647265737360701b60448201526064015b60405180910390fd5b602c5460405134916001600160a01b03169082156108fc029083906000818181858888f193505050501580156105ec573d6000803e3d6000fd5b5050005b600080fd5b34801561060157600080fd5b50610615610610366004615113565b61123d565b005b34801561062357600080fd5b506106376106323660046150e9565b6112bc565b6040519081526020015b60405180910390f35b34801561065657600080fd5b5061066a6106653660046153d2565b611350565b6040519015158152602001610641565b34801561068657600080fd5b5061061561069536600461539b565b6113a0565b3480156106a657600080fd5b506106af6113bb565b604051610641919061588d565b3480156106c857600080fd5b506106af6106d7366004615440565b611449565b3480156106e857600080fd5b506106156106f73660046152a8565b611821565b34801561070857600080fd5b5061063760095481565b34801561071e57600080fd5b5061073261072d366004615440565b61186d565b6040516001600160a01b039091168152602001610641565b610615610758366004615113565b611897565b34801561076957600080fd5b50610615610778366004615187565b611930565b34801561078957600080fd5b50610615610798366004615440565b6119f4565b3480156107a957600080fd5b506106376107b8366004614eea565b60296020526000908152604090205481565b3480156107d657600080fd5b5061063760285481565b3480156107ec57600080fd5b506106af6107fb366004615440565b611a5f565b34801561080c57600080fd5b50610637600a5481565b34801561082257600080fd5b50610615610831366004615440565b611a78565b34801561084257600080fd5b506106156108513660046154c8565b611aab565b34801561086257600080fd5b50610615610871366004614f3f565b611ba4565b34801561088257600080fd5b50610637610891366004615440565b60156020526000908152604090205481565b3480156108af57600080fd5b5061063760195481565b3480156108c557600080fd5b506106156108d4366004615440565b611bf0565b3480156108e557600080fd5b50610637600e5481565b3480156108fb57600080fd5b5061061561090a366004614eea565b611bfd565b61061561091d366004615440565b611c27565b34801561092e57600080fd5b5061066a61093d366004614eea565b611d5d565b34801561094e57600080fd5b5061061561095d36600461539b565b611ded565b610615611e08565b34801561097657600080fd5b50610615610985366004615328565b611f20565b34801561099657600080fd5b506106156109a536600461547c565b61210f565b3480156109b657600080fd5b50610637602f5481565b3480156109cc57600080fd5b506106156109db3660046152a8565b61225d565b3480156109ec57600080fd5b506106156109fb3660046154c8565b6122a9565b348015610a0c57600080fd5b50610615610a1b366004615440565b6124d1565b348015610a2c57600080fd5b50610615610a3b36600461540c565b6124de565b348015610a4c57600080fd5b5061063760085481565b348015610a6257600080fd5b50610a76610a713660046151d8565b61258a565b604051610641919061584c565b348015610a8f57600080fd5b5061066a610a9e366004615440565b60009081526016602052604090205460ff1690565b348015610abf57600080fd5b50600d5461066a90610100900460ff1681565b348015610ade57600080fd5b50610615610aed366004615440565b6126b3565b348015610afe57600080fd5b50610637610b0d366004615440565b6126c0565b348015610b1e57600080fd5b50610637610b2d366004614eea565b6126e1565b348015610b3e57600080fd5b50610615610b4d36600461539b565b61277c565b348015610b5e57600080fd5b50600d5461066a9060ff1681565b348015610b7857600080fd5b50610615610b873660046150e9565b612797565b348015610b9857600080fd5b50610637600b5481565b348015610bae57600080fd5b50610637600f5481565b348015610bc457600080fd5b50610615610bd33660046153b6565b6128aa565b348015610be457600080fd5b506106156128da565b348015610bf957600080fd5b506106af6128ec565b348015610c0e57600080fd5b50610637610c1d366004615506565b61290f565b348015610c2e57600080fd5b50610615610c3d366004615440565b612940565b348015610c4e57600080fd5b50610615610c5d3660046152dc565b61294d565b348015610c6e57600080fd5b5060175461066a9060ff1681565b348015610c8857600080fd5b50610637610c97366004615440565b60136020526000908152604090205481565b348015610cb557600080fd5b506003546001600160a01b0316610732565b348015610cd357600080fd5b50610615610ce2366004615440565b6129d7565b348015610cf357600080fd5b50610637610d02366004615506565b6129e4565b348015610d1357600080fd5b506106af612a00565b348015610d2857600080fd5b5060245461066a9060ff1681565b348015610d4257600080fd5b50610637610d51366004615440565b612a0d565b348015610d6257600080fd5b50610615610d713660046150bf565b612a1d565b348015610d8257600080fd5b50610615610d9136600461539b565b612a28565b348015610da257600080fd5b5061066a610db1366004615440565b601d6020526000908152604090205460ff1681565b348015610dd257600080fd5b50600d5461066a9062010000900460ff1681565b348015610df257600080fd5b50610615610e01366004614eea565b612a4c565b348015610e1257600080fd5b50610615610e213660046150bf565b612aad565b348015610e3257600080fd5b50602d54610732906001600160a01b031681565b348015610e5257600080fd5b50602c54610732906001600160a01b031681565b348015610e7257600080fd5b50610615610e81366004615146565b612b17565b348015610e9257600080fd5b50610615610ea1366004615506565b612b76565b348015610eb257600080fd5b50610615610ec1366004615440565b612ba5565b348015610ed257600080fd5b50610615610ee1366004615187565b612bfb565b348015610ef257600080fd5b50610637610f01366004614eea565b60236020526000908152604090205481565b348015610f1f57600080fd5b5061063760275481565b348015610f3557600080fd5b50610615610f443660046154c8565b612cdb565b348015610f5557600080fd5b50610732610f64366004615440565b612d2e565b348015610f7557600080fd5b50610637610f84366004615440565b60009081526011602052604090205490565b348015610fa257600080fd5b506106af610fb1366004615440565b612d3e565b348015610fc257600080fd5b50610637610fd1366004615440565b612d69565b348015610fe257600080fd5b50610615610ff136600461504c565b612e74565b34801561100257600080fd5b50610615611011366004615440565b612f48565b34801561102257600080fd5b50610615611031366004615506565b612f55565b34801561104257600080fd5b506106af611051366004615440565b612f68565b61061561106436600461504c565b612f78565b34801561107557600080fd5b506106af613201565b34801561108a57600080fd5b5061066a611099366004614eea565b601e6020526000908152604090205460ff1681565b3480156110ba57600080fd5b506106156110c9366004615459565b613210565b3480156110da57600080fd5b5061066a6110e9366004614f0c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561112357600080fd5b50610637600c5481565b34801561113957600080fd5b5061066a61326f565b34801561114e57600080fd5b5061061561115d366004614fe8565b61331d565b34801561116e57600080fd5b5061061561117d366004614eea565b613362565b34801561118e57600080fd5b5061061561119d36600461540c565b6133d8565b3480156111ae57600080fd5b50610637601a5481565b3480156111c457600080fd5b506106376111d3366004615440565b6133f3565b3480156111e457600080fd5b506106376111f33660046150e9565b602660209081526000928352604080842090915290825290205481565b34801561121c57600080fd5b5061063761122b366004614eea565b60226020526000908152604090205481565b61124561341a565b600d5462010000900460ff161561126e5760405162461bcd60e51b81526004016105a99061594c565b6112778261345d565b60008281526011602052604081208054839290611295908490615b86565b925050819055506112b78383836040518060200160405280600081525061351a565b505050565b60006001600160a01b0383166113275760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084016105a9565b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061138157506001600160e01b031982166303a24d0760e21b145b8061134a57506301ffc9a760e01b6001600160e01b031983161461134a565b6113a861341a565b600d805460ff1916911515919091179055565b600480546113c890615c00565b80601f01602080910402602001604051908101604052809291908181526020018280546113f490615c00565b80156114415780601f1061141657610100808354040283529160200191611441565b820191906000526020600020905b81548152906001019060200180831161142457829003601f168201915b505050505081565b6060600060019050600060066040516020016114659190615757565b60405160208183030381529060405290506000600760405160200161148a91906156a9565b60408051601f1981840301815291815260008781526016602052205490915060ff1615611819576000851180156114c357506008548511155b1561181957600d54610100900460ff166114df57949350505050565b604080516000808252602080830180855283519020898352601090915290839020909261150c920161569d565b60405160208183030381529060405280519060200120146115c8576000858152601060205260409020805461154090615c00565b80601f016020809104026020016040519081016040528092919081815260200182805461156c90615c00565b80156115b95780601f1061158e576101008083540402835291602001916115b9565b820191906000526020600020905b81548152906001019060200180831161159c57829003601f168201915b50505050509350505050919050565b60005b601f5481101561173957601f81815481106115e8576115e8615cba565b9060005260206000200154861161172957604051602001604051602081830303815290604052805190602001206020828154811061162857611628615cba565b90600052602060002001604051602001611642919061569d565b60405160208183030381529060405280519060200120146116a0576020818154811061167057611670615cba565b9060005260206000200160405160200161168a9190615757565b6040516020818303038152906040529250611739565b6040805160008152602081019182905251902060218054839081106116c7576116c7615cba565b906000526020600020016040516020016116e1919061569d565b6040516020818303038152906040528051906020012014611729576021818154811061170f5761170f615cba565b9060005260206000200160405160200161168a91906156d9565b61173281615c67565b90506115cb565b50601f805461174a90600190615bbd565b8154811061175a5761175a615cba565b906000526020600020015485111561177157600092505b82156118195760408051600080825260208083018085528351902089835260189091529083902090926117a4920161569d565b6040516020818303038152906040528051906020012014156117f457816117ca86613603565b6040516020016117db929190615629565b6040516020818303038152906040529350505050919050565b81601860008781526020019081526020016000206040516020016117db929190615668565b949350505050565b61182961341a565b611835602a6000614c4e565b805161184890602a906020840190614c6c565b508060008151811061185c5761185c615cba565b602002602001015160288190555050565b602e818154811061187d57600080fd5b6000918252602090912001546001600160a01b0316905081565b600d5462010000900460ff16156118c05760405162461bcd60e51b81526004016105a99061594c565b600d5460ff16156118e35760405162461bcd60e51b81526004016105a9906158e8565b6118ed8282613697565b6119275760405162461bcd60e51b815260206004820152600b60248201526a10d0539393d5081352539560aa1b60448201526064016105a9565b61126e8161398d565b61193861341a565b61194460256000614c4e565b61195060258484614cb3565b50805161195c57505050565b8051600114156119e95760005b828110156119e3578160008151811061198457611984615cba565b6020026020010151602960008686858181106119a2576119a2615cba565b90506020020160208101906119b79190614eea565b6001600160a01b03168152602081019190915260400160002055806119db81615c67565b915050611969565b50505050565b6112b7838383612bfb565b731ba3fe6311131a67d97f20162522490c3648f6e23314611a455760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b60448201526064016105a9565b80602f6000828254611a579190615b86565b909155505050565b601860205260009081526040902080546113c890615c00565b611a8061341a565b8060288190555080602a600081548110611a9c57611a9c615cba565b60009182526020909120015550565b611ab361341a565b8015611b4757600082611ac585613603565b604051602001611ad69291906156f6565b60408051601f198184030181529181526000868152601060209081529190208251929350611b08929091840190614d06565b50837f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b82604051611b39919061588d565b60405180910390a250505050565b60008381526010602090815260409091208351611b6692850190614d06565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b83604051611b97919061588d565b60405180910390a2505050565b6001600160a01b038516331480611bc05750611bc085336110e9565b611bdc5760405162461bcd60e51b81526004016105a990615983565b611be98585858585613c44565b5050505050565b611bf861341a565b600f55565b611c05613de6565b602c80546001600160a01b0319166001600160a01b0392909216919091179055565b600d5462010000900460ff16611c765760405162461bcd60e51b81526020600482015260146024820152732932b8bab4b932b99036b4b73a24b727b93232b960611b60448201526064016105a9565b600d5460ff1615611c995760405162461bcd60e51b81526004016105a9906158e8565b60085460009081526016602052604090205460ff1615611ce65760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b60448201526064016105a9565b6008546001600f5483611cf99190615b86565b611d039190615bbd565b1115611d475760405162461bcd60e51b8152602060048201526013602482015272141b19585cd948131bddd95c88105b5bdd5b9d606a1b60448201526064016105a9565b611d508161398d565b611d5a3382613e40565b50565b6000805b602554811015611dbe57826001600160a01b031660258281548110611d8857611d88615cba565b6000918252602090912001546001600160a01b03161415611dac5750600192915050565b80611db681615c67565b915050611d61565b506001600160a01b03821660009081526022602052604090205415611de557506001919050565b506000919050565b611df561341a565b6024805460ff1916911515919091179055565b611e1061341a565b602c546001600160a01b0316611e5d5760405162461bcd60e51b8152602060048201526012602482015271536574205061796f7574204164647265737360701b60448201526064016105a9565b603054602f5411611ed157604051600090731ba3fe6311131a67d97f20162522490c3648f6e29047908381818185875af1925050503d8060008114611ebe576040519150601f19603f3d011682016040523d82523d6000602084013e611ec3565b606091505b5050905080611d5a57600080fd5b602c546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611ebe576040519150601f19603f3d011682016040523d82523d6000602084013e611ec3565b565b611f2861341a565b80156120385760008360018551611f3f9190615bbd565b81518110611f4f57611f4f615cba565b6020026020010151905060005b601f54811015611be957601f8181548110611f7957611f79615cba565b9060005260206000200154821415612028578360018551611f9a9190615bbd565b81518110611faa57611faa615cba565b60209081029190910181015160008481526015909252604082205584518590611fd590600190615bbd565b81518110611fe557611fe5615cba565b60200260200101511115612011576000828152601460205260409020805460ff19166001179055612028565b6000828152601460205260409020805460ff191690555b61203181615c67565b9050611f5c565b60005b83518110156119e357600084828151811061205857612058615cba565b6020026020010151905083828151811061207457612074615cba565b602002602001015160136000838152602001908152602001600020600082825461209e9190615b86565b9250508190555060008483815181106120b9576120b9615cba565b602002602001015111156120e5576000818152601260205260409020805460ff191660011790556120fc565b6000818152601260205260409020805460ff191690555b508061210781615c67565b91505061203b565b61211761341a565b811561223e5760005b601f5481101561221e5783601f828154811061213e5761213e615cba565b906000526020600020015414156121545761221e565b601f805461216490600190615bbd565b8154811061217457612174615cba565b9060005260206000200154601f828154811061219257612192615cba565b90600052602060002001541480156121c75750601f81815481106121b8576121b8615cba565b90600052602060002001548414155b1561220c5760405162461bcd60e51b81526020600482015260156024820152740becadcc8928840d2e640dcdee840c24084c2e8c6d605b1b60448201526064016105a9565b8061221681615c67565b915050612120565b506000838152601c6020908152604090912082516119e392840190614c6c565b6000838152601b6020908152604090912082516119e392840190614c6c565b61226561341a565b612271602b6000614c4e565b805161228490602b906020840190614c6c565b508060008151811061229857612298615cba565b6020026020010151600c8190555050565b6122b161341a565b601f80546122c190600190615bbd565b815481106122d1576122d1615cba565b906000526020600020015483116123505760405162461bcd60e51b815260206004820152603760248201527f4c617374204261746368204944206d757374206265206772656174657220746860448201527f616e2070726576696f757320626174636820746f74616c00000000000000000060648201526084016105a9565b801561241357601f805460018181019092557fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d80701849055602080549182018155600081905283516123c6927fc97bfaf2f8ee708c303a06d134f5ecd8389ae0432af62dc132a24118292866bb0191850190614d06565b506021805460018101825560009182526040805160208101918290528390526119e3927f3a6357012c1a3ae0a17d304c9920310382d968ebcc4b1771f41c6b304205b57090920191614d06565b601f805460018181019092557fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d807018490556021805491820181556000528251612483917f3a6357012c1a3ae0a17d304c9920310382d968ebcc4b1771f41c6b304205b57001906020850190614d06565b506020805460018101825560008281526040805193840190819052928190526119e3927fc97bfaf2f8ee708c303a06d134f5ecd8389ae0432af62dc132a24118292866bb9092019190614d06565b6124d961341a565b600955565b6124e661341a565b600d54610100900460ff16156125315760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e4814995d99585b195960821b60448201526064016105a9565b8051612544906006906020840190614d06565b5080602060008154811061255a5761255a615cba565b906000526020600020019080519060200190612577929190614d06565b5050600d805461ff001916610100179055565b606081518351146125ef5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016105a9565b600083516001600160401b0381111561260a5761260a615cd0565b604051908082528060200260200182016040528015612633578160200160208202803683370190505b50905060005b84518110156126ab5761267e85828151811061265757612657615cba565b602002602001015185838151811061267157612671615cba565b60200260200101516112bc565b82828151811061269057612690615cba565b60209081029190910101526126a481615c67565b9050612639565b509392505050565b6126bb61341a565b600c55565b601f81815481106126d057600080fd5b600091825260209091200154905081565b60006126eb61326f565b611de55760245460ff168015612705575061270582611d5d565b1561276f576001600160a01b03821660009081526029602052604090205461272f57505060285490565b6001600160a01b038216600090815260296020526040902054602a8054909190811061275d5761275d615cba565b90600052602060002001549050919050565b505060095490565b919050565b61278461341a565b6017805460ff1916911515919091179055565b61279f61341a565b600d5462010000900460ff166127ee5760405162461bcd60e51b81526020600482015260146024820152732932b8bab4b932b99036b4b73a24b727b93232b960611b60448201526064016105a9565b60085460009081526016602052604090205460ff161561283b5760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b60448201526064016105a9565b6008546001600f548361284e9190615b86565b6128589190615bbd565b111561289c5760405162461bcd60e51b8152602060048201526013602482015272141b19585cd948131bddd95c88105b5bdd5b9d606a1b60448201526064016105a9565b6128a68282613e40565b5050565b6128b261341a565b600d80548315801563010000000263ff00000019909216919091179091556128a657600e5550565b6128e2613de6565b611f1e6000614003565b60606000604051806060016040528060288152602001615da26028913992915050565b601c602052816000526040600020818154811061292b57600080fd5b90600052602060002001600091509150505481565b61294861341a565b600a55565b60005b82518110156129cb57600083828151811061296d5761296d615cba565b6020026020010151905082828151811061298957612989615cba565b60200260200101516011600083815260200190815260200160002060008282546129b39190615bbd565b909155506129c49150829050615c67565b9050612950565b506128a6338383614055565b6129df61341a565b602755565b601b602052816000526040600020818154811061292b57600080fd5b600580546113c890615c00565b602a81815481106126d057600080fd5b6128a63383836141f1565b612a3061341a565b600d8054911515620100000262ff000019909216919091179055565b6003546001600160a01b0316331480612a6f5750602d546001600160a01b031633145b612a8b5760405162461bcd60e51b81526004016105a990615aa3565b602d80546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b0316331480612ad05750602d546001600160a01b031633145b612aec5760405162461bcd60e51b81526004016105a990615aa3565b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b612b1f61341a565b6003546001600160a01b0316331480612b425750602d546001600160a01b031633145b612b5e5760405162461bcd60e51b81526004016105a990615aa3565b612b6a602e6000614c4e565b6112b7602e8383614cb3565b60008281526011602052604081208054839290612b94908490615bbd565b909155506128a690503383836142d2565b731ba3fe6311131a67d97f20162522490c3648f6e23314612bf65760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b60448201526064016105a9565b603055565b612c0361341a565b80518214612c5f5760405162461bcd60e51b815260206004820152602360248201527f5573657273204172726179204e6f7420457175616c20546f205469657220417260448201526272617960e81b60648201526084016105a9565b60005b828110156119e357818181518110612c7c57612c7c615cba565b602002602001015160296000868685818110612c9a57612c9a615cba565b9050602002016020810190612caf9190614eea565b6001600160a01b0316815260208101919091526040016000205580612cd381615c67565b915050612c62565b612ce361341a565b8015612d1a578160208481548110612cfd57612cfd615cba565b9060005260206000200190805190602001906119e3929190614d06565b8160218481548110612cfd57612cfd615cba565b6025818154811061187d57600080fd5b60218181548110612d4e57600080fd5b9060005260206000200160009150905080546113c890615c00565b60008181526013602052604081205415612d90575060009081526013602052604090205490565b60005b601f54811015612e6b578215801590612dc95750601f8181548110612dba57612dba615cba565b90600052602060002001548311155b8015612dfb5750601f612ddd600183615bbd565b81548110612ded57612ded615cba565b906000526020600020015483115b15612e59576000601f8281548110612e1557612e15615cba565b906000526020600020015490506015600082815260200190815260200160002054600014612e53576000908152601560205260409020549392505050565b50612e6b565b80612e6381615c67565b915050612d93565b50600092915050565b612e7c61341a565b600d5462010000900460ff1615612ea55760405162461bcd60e51b81526004016105a99061594c565b60005b8251811015612f2c576000838281518110612ec557612ec5615cba565b60200260200101519050612ed88161345d565b828281518110612eea57612eea615cba565b6020026020010151601160008381526020019081526020016000206000828254612f149190615b86565b90915550612f259150829050615c67565b9050612ea8565b506112b7838383604051806020016040528060008152506143ea565b612f5061341a565b600855565b612f5d61341a565b601991909155601a55565b60208181548110612d4e57600080fd5b600d5462010000900460ff1615612fa15760405162461bcd60e51b81526004016105a99061594c565b600d5460ff1615612fc45760405162461bcd60e51b81526004016105a9906158e8565b600a54825111156130065760405162461bcd60e51b815260206004820152600c60248201526b546f6f204d616e792049447360a01b60448201526064016105a9565b80518251146130575760405162461bcd60e51b815260206004820152601960248201527f49447320616e6420416d6f756e7473204e6f7420457175616c0000000000000060448201526064016105a9565b6130618282614544565b6130a15760405162461bcd60e51b8152602060048201526011602482015270086829c9c9ea8409a929ca8408482a8869607b1b60448201526064016105a9565b6000805b82518110156130e7578281815181106130c0576130c0615cba565b6020026020010151826130d39190615b86565b9150806130df81615c67565b9150506130a5565b50600b5481111561313a5760405162461bcd60e51b815260206004820152601b60248201527f426174636820416d6f756e74204c696d6974204578636565646564000000000060448201526064016105a9565b6131438161398d565b60005b83518110156131e557600084828151811061316357613163615cba565b602002602001015190506131768161345d565b83828151811061318857613188615cba565b6020026020010151601160008785815181106131a6576131a6615cba565b6020026020010151815260200190815260200160002060008282546131cb9190615b86565b909155508291506131dd905081615c67565b915050613146565b506119e3848484604051806020016040528060008152506143ea565b606061320b6145c2565b905090565b6003546001600160a01b03163314806132335750602d546001600160a01b031633145b61324f5760405162461bcd60e51b81526004016105a990615aa3565b6000918252601d6020526040909120805460ff1916911515919091179055565b60006132836003546001600160a01b031690565b6001600160a01b0316336001600160a01b031614806132ac5750602d546001600160a01b031633145b156132b75750600190565b602e54156133175760005b602e5481101561331557602e81815481106132df576132df615cba565b6000918252602090912001546001600160a01b031633141561330357600191505090565b8061330d81615c67565b9150506132c2565b505b50600090565b6001600160a01b038516331480613339575061333985336110e9565b6133555760405162461bcd60e51b81526004016105a990615983565b611be9858585858561466b565b61336a613de6565b6001600160a01b0381166133cf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105a9565b611d5a81614003565b6133e061341a565b80516128a6906007906020840190614d06565b602b81815481106126d057600080fd5b505050505050565b6001600160a01b03163b151590565b61342261326f565b611f1e5760405162461bcd60e51b815260206004820152600c60248201526b2737ba1030b71030b236b4b760a11b60448201526064016105a9565b60008181526016602052604090205460ff166134e4576000818152601660209081526040808320805460ff19908116600117909155601d90925290912080549091169055600d5462010000900460ff16156134e457600081815260136020908152604080832060019081905560128352818420805460ff1916821790556011909252909120555b60175460ff1615611d5a576134f76145c2565b600082815260186020908152604090912082516128a69391929190910190614d06565b6001600160a01b0384166135405760405162461bcd60e51b81526004016105a990615b22565b33600061354c856147a3565b90506000613559856147a3565b905061356a836000898585896147ee565b6000868152602081815260408083206001600160a01b038b1684529091528120805487929061359a908490615b86565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46135fa83600089898989614941565b50505050505050565b6060600061361083614aac565b60010190506000816001600160401b0381111561362f5761362f615cd0565b6040519080825280601f01601f191660200182016040528015613659576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084613692576126ab565b613663565b60008281526012602052604081205460ff161561371c576000821180156136c05750600a548211155b80156136cc5750600083115b80156136da57506008548311155b801561370a5750600083815260136020908152604080832054601190925290912054613707908490615b86565b11155b156137145761374b565b50600061134a565b60008211801561372e5750600a548211155b801561373a5750600083115b801561370a57506008548311613714575b6000838152601b6020526040902054156137d15760005b6000848152601b60205260409020548110156137cf576000848152601b6020526040812080546137ae9133918590811061379e5761379e615cba565b90600052602060002001546112bc565b116137bd57600091505061134a565b806137c781615c67565b915050613762565b505b60005b601f5481101561398357801580159061380a5750601f81815481106137fb576137fb615cba565b90600052602060002001548411155b801561383c5750601f61381e600183615bbd565b8154811061382e5761382e615cba565b906000526020600020015484115b15613971576000601f828154811061385657613856615cba565b6000918252602080832090910154808352601c909152604090912054909150156138de5760005b6000828152601c60205260409020548110156138dc576000828152601c6020526040812080546138b99133918590811061379e5761379e615cba565b116138ca576000935050505061134a565b806138d481615c67565b91505061387d565b505b60008181526014602052604090205460ff1615613969576000841180156139075750600a548411155b80156139135750600085115b801561392157506008548511155b80156139545750600081815260156020908152604080832054888452601190925290912054613951908690615b86565b11155b1561395e5761396f565b60009250505061134a565b50613971565b505b8061397b81615c67565b9150506137d4565b5060019392505050565b3360009081526023602090815260408083205460229092528220546139b29190615bbd565b90508181106139be5750805b6139c661326f565b6128a657600d546301000000900460ff1615613a2257600e54421015613a225760405162461bcd60e51b8152602060048201526011602482015270139bdd08135a5b9d0811185d194816595d607a1b60448201526064016105a9565b60245460ff1615613bb957613a3633611d5d565b613a745760405162461bcd60e51b815260206004820152600f60248201526e139bdd0815da1a5d195b1a5cdd1959608a1b60448201526064016105a9565b33600081815260266020908152604080832060275484528252808320549383526029909152902054602b80549091908110613ab157613ab1615cba565b90600052602060002001548382613ac89190615b86565b1115613b205760405162461bcd60e51b815260206004820152602160248201527f4578636565646564204d61782057686974656c697374204d696e74204c696d696044820152601d60fa1b60648201526084016105a9565b613b29336126e1565b613b338385615bbd565b613b3d9190615b9e565b341015613b815760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b60448201526064016105a9565b336000908152602660209081526040808320602754845290915281208054859290613bad908490615b86565b90915550613c10915050565b613bc2336126e1565b613bcc9083615b9e565b341015613c105760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b60448201526064016105a9565b600034118015613c245750603054602f5411155b156128a65734602f6000828254613c3b9190615b86565b90915550505050565b8151835114613c655760405162461bcd60e51b81526004016105a990615ada565b6001600160a01b038416613c8b5760405162461bcd60e51b81526004016105a9906159d1565b33613c9a8187878787876147ee565b60005b8451811015613d80576000858281518110613cba57613cba615cba565b602002602001015190506000858381518110613cd857613cd8615cba565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015613d285760405162461bcd60e51b81526004016105a990615a59565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290613d65908490615b86565b9250508190555050505080613d7990615c67565b9050613c9d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613dd092919061585f565b60405180910390a4613403818787878787614b84565b6003546001600160a01b03163314611f1e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105a9565b6000816001600160401b03811115613e5a57613e5a615cd0565b604051908082528060200260200182016040528015613e83578160200160208202803683370190505b5090506000826001600160401b03811115613ea057613ea0615cd0565b604051908082528060200260200182016040528015613ec9578160200160208202803683370190505b50905060005b83811015613f4c57600f54613ee38161345d565b600f54848381518110613ef857613ef8615cba565b6020026020010181815250506001838381518110613f1857613f18615cba565b6020908102919091010152600f8054906000613f3383615c67565b9190505550508080613f4490615c67565b915050613ecf565b503360009081526022602052604090205415613fe857336000908152602260209081526040808320546023909252909120541015613fa9573360009081526023602052604081208054859290613fa3908490615b86565b90915550505b3360009081526022602090815260408083205460239092529091205410613fe85733600090815260236020908152604080832083905560229091528120555b6119e3848383604051806020016040528060008152506143ea565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831661407b5760405162461bcd60e51b81526004016105a990615a16565b805182511461409c5760405162461bcd60e51b81526004016105a990615ada565b60003390506140bf818560008686604051806020016040528060008152506147ee565b60005b83518110156141845760008482815181106140df576140df615cba565b6020026020010151905060008483815181106140fd576140fd615cba565b602090810291909101810151600084815280835260408082206001600160a01b038c16835290935291909120549091508181101561414d5760405162461bcd60e51b81526004016105a990615908565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061417c81615c67565b9150506140c2565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516141d592919061585f565b60405180910390a46040805160208101909152600090526119e3565b816001600160a01b0316836001600160a01b031614156142655760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105a9565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383166142f85760405162461bcd60e51b81526004016105a990615a16565b336000614304846147a3565b90506000614311846147a3565b9050614331838760008585604051806020016040528060008152506147ee565b6000858152602081815260408083206001600160a01b038a168452909152902054848110156143725760405162461bcd60e51b81526004016105a990615908565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090526135fa565b6001600160a01b0384166144105760405162461bcd60e51b81526004016105a990615b22565b81518351146144315760405162461bcd60e51b81526004016105a990615ada565b33614441816000878787876147ee565b60005b84518110156144dc5783818151811061445f5761445f615cba565b602002602001015160008087848151811061447c5761447c615cba565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546144c49190615b86565b909155508190506144d481615c67565b915050614444565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161452d92919061585f565b60405180910390a4611be981600087878787614b84565b6000805b835181101561398357600084828151811061456557614565615cba565b60200260200101519050600084838151811061458357614583615cba565b602002602001015190506145978282613697565b156145a1576145ad565b6000935050505061134a565b505080806145ba90615c67565b915050614548565b60606000601a54424433600f54601860006001600f546145e29190615bbd565b8152602001908152602001600020604051602001614604959493929190615773565b6040516020818303038152906040528051906020012060001c6146279190615c82565b905060195481101561465957614653614641826001615b86565b601a5461464e9190615bbd565b613603565b91505090565b61465361464e826001615b86565b5090565b6001600160a01b0384166146915760405162461bcd60e51b81526004016105a9906159d1565b33600061469d856147a3565b905060006146aa856147a3565b90506146ba8389898585896147ee565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156146fb5760405162461bcd60e51b81526004016105a990615a59565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290614738908490615b86565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4614798848a8a8a8a8a614941565b505050505050505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106147dd576147dd615cba565b602090810291909101015292915050565b6001600160a01b0386166000908152601e602052604090205460ff1615801561483057506001600160a01b0385166000908152601e602052604090205460ff16155b801561485557506001600160a01b0384166000908152601e602052604090205460ff16155b6148b55760405162461bcd60e51b815260206004820152602b60248201527f4f70657261746f722c2046726f6d2c206f7220546f204164647265737320697360448201526a08149154d5149250d5115160aa1b60648201526084016105a9565b60005b83518110156135fa57601d60008583815181106148d7576148d7615cba565b60209081029190910181015182528101919091526040016000205460ff161561492f5760405162461bcd60e51b815260206004820152600a602482015269119b1859d9d95908125160b21b60448201526064016105a9565b8061493981615c67565b9150506148b8565b6001600160a01b0384163b156134035760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906149859089908990889088908890600401615812565b602060405180830381600087803b15801561499f57600080fd5b505af19250505080156149cf575060408051601f3d908101601f191682019092526149cc918101906153ef565b60015b614a7c576149db615ce6565b806308c379a01415614a1557506149f0615d02565b806149fb5750614a17565b8060405162461bcd60e51b81526004016105a9919061588d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016105a9565b6001600160e01b0319811663f23a6e6160e01b146135fa5760405162461bcd60e51b81526004016105a9906158a0565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310614aeb5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310614b17576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310614b3557662386f26fc10000830492506010015b6305f5e1008310614b4d576305f5e100830492506008015b6127108310614b6157612710830492506004015b60648310614b73576064830492506002015b600a831061134a5760010192915050565b6001600160a01b0384163b156134035760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190614bc890899089908890889088906004016157b4565b602060405180830381600087803b158015614be257600080fd5b505af1925050508015614c12575060408051601f3d908101601f19168201909252614c0f918101906153ef565b60015b614c1e576149db615ce6565b6001600160e01b0319811663bc197c8160e01b146135fa5760405162461bcd60e51b81526004016105a9906158a0565b5080546000825590600052602060002090810190611d5a9190614d79565b828054828255906000526020600020908101928215614ca7579160200282015b82811115614ca7578251825591602001919060010190614c8c565b50614667929150614d79565b828054828255906000526020600020908101928215614ca7579160200282015b82811115614ca75781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190614cd3565b828054614d1290615c00565b90600052602060002090601f016020900481019282614d345760008555614ca7565b82601f10614d4d57805160ff1916838001178555614ca7565b82800160010185558215614ca75791820182811115614ca7578251825591602001919060010190614c8c565b5b808211156146675760008155600101614d7a565b80356001600160a01b038116811461277757600080fd5b60008083601f840112614db757600080fd5b5081356001600160401b03811115614dce57600080fd5b6020830191508360208260051b8501011115614de957600080fd5b9250929050565b600082601f830112614e0157600080fd5b81356020614e0e82615b63565b604051614e1b8282615c3b565b8381528281019150858301600585901b87018401881015614e3b57600080fd5b60005b85811015614e5a57813584529284019290840190600101614e3e565b5090979650505050505050565b8035801515811461277757600080fd5b600082601f830112614e8857600080fd5b81356001600160401b03811115614ea157614ea1615cd0565b604051614eb8601f8301601f191660200182615c3b565b818152846020838601011115614ecd57600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215614efc57600080fd5b614f0582614d8e565b9392505050565b60008060408385031215614f1f57600080fd5b614f2883614d8e565b9150614f3660208401614d8e565b90509250929050565b600080600080600060a08688031215614f5757600080fd5b614f6086614d8e565b9450614f6e60208701614d8e565b935060408601356001600160401b0380821115614f8a57600080fd5b614f9689838a01614df0565b94506060880135915080821115614fac57600080fd5b614fb889838a01614df0565b93506080880135915080821115614fce57600080fd5b50614fdb88828901614e77565b9150509295509295909350565b600080600080600060a0868803121561500057600080fd5b61500986614d8e565b945061501760208701614d8e565b9350604086013592506060860135915060808601356001600160401b0381111561504057600080fd5b614fdb88828901614e77565b60008060006060848603121561506157600080fd5b61506a84614d8e565b925060208401356001600160401b038082111561508657600080fd5b61509287838801614df0565b935060408601359150808211156150a857600080fd5b506150b586828701614df0565b9150509250925092565b600080604083850312156150d257600080fd5b6150db83614d8e565b9150614f3660208401614e67565b600080604083850312156150fc57600080fd5b61510583614d8e565b946020939093013593505050565b60008060006060848603121561512857600080fd5b61513184614d8e565b95602085013595506040909401359392505050565b6000806020838503121561515957600080fd5b82356001600160401b0381111561516f57600080fd5b61517b85828601614da5565b90969095509350505050565b60008060006040848603121561519c57600080fd5b83356001600160401b03808211156151b357600080fd5b6151bf87838801614da5565b909550935060208601359150808211156150a857600080fd5b600080604083850312156151eb57600080fd5b82356001600160401b038082111561520257600080fd5b818501915085601f83011261521657600080fd5b8135602061522382615b63565b6040516152308282615c3b565b8381528281019150858301600585901b870184018b101561525057600080fd5b600096505b8487101561527a5761526681614d8e565b835260019690960195918301918301615255565b509650508601359250508082111561529157600080fd5b5061529e85828601614df0565b9150509250929050565b6000602082840312156152ba57600080fd5b81356001600160401b038111156152d057600080fd5b61181984828501614df0565b600080604083850312156152ef57600080fd5b82356001600160401b038082111561530657600080fd5b61531286838701614df0565b9350602085013591508082111561529157600080fd5b60008060006060848603121561533d57600080fd5b83356001600160401b038082111561535457600080fd5b61536087838801614df0565b9450602086013591508082111561537657600080fd5b5061538386828701614df0565b92505061539260408501614e67565b90509250925092565b6000602082840312156153ad57600080fd5b614f0582614e67565b600080604083850312156153c957600080fd5b61510583614e67565b6000602082840312156153e457600080fd5b8135614f0581615d8b565b60006020828403121561540157600080fd5b8151614f0581615d8b565b60006020828403121561541e57600080fd5b81356001600160401b0381111561543457600080fd5b61181984828501614e77565b60006020828403121561545257600080fd5b5035919050565b6000806040838503121561546c57600080fd5b82359150614f3660208401614e67565b60008060006060848603121561549157600080fd5b833592506154a160208501614e67565b915060408401356001600160401b038111156154bc57600080fd5b6150b586828701614df0565b6000806000606084860312156154dd57600080fd5b8335925060208401356001600160401b038111156154fa57600080fd5b61538386828701614e77565b6000806040838503121561551957600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b838110156155585781518752958201959082019060010161553c565b509495945050505050565b6000815180845261557b816020860160208601615bd4565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806155a957607f831692505b60208084108214156155cb57634e487b7160e01b600052602260045260246000fd5b8180156155df57600181146155f05761561d565b60ff1986168952848901965061561d565b60008881526020902060005b868110156156155781548b8201529085019083016155fc565b505084890196505b50505050505092915050565b6000835161563b818460208801615bd4565b83519083019061564f818360208801615bd4565b64173539b7b760d91b9101908152600501949350505050565b6000835161567a818460208801615bd4565b6156868184018561558f565b64173539b7b760d91b815260050195945050505050565b6000614f05828461558f565b60006156b5828461558f565b653434b23232b760d11b815264173539b7b760d91b6006820152600b019392505050565b60006156e5828461558f565b602f60f81b81526001019392505050565b66697066733a2f2f60c81b815260008351615718816007850160208801615bd4565b602f60f81b6007918401918201528351615739816008840160208801615bd4565b64173539b7b760d91b60089290910191820152600d01949350505050565b66697066733a2f2f60c81b815260006156e5600783018461558f565b8581528460208201526bffffffffffffffffffffffff198460601b16604082015282605482015260006157a9607483018461558f565b979650505050505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906157e090830186615528565b82810360608401526157f28186615528565b905082810360808401526158068185615563565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906157a990830184615563565b602081526000614f056020830184615528565b6040815260006158726040830185615528565b82810360208401526158848185615528565b95945050505050565b602081526000614f056020830184615563565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526006908201526514185d5cd95960d21b604082015260600190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6020808252601a908201527f5265717569726573206d696e74496e4f726465722046616c7365000000000000604082015260600190565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252601b908201527f4e6f74204f776e6572206f722050726f6a656374204c65616465720000000000604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b03821115615b7c57615b7c615cd0565b5060051b60200190565b60008219821115615b9957615b99615ca4565b500190565b6000816000190483118215151615615bb857615bb8615ca4565b500290565b600082821015615bcf57615bcf615ca4565b500390565b60005b83811015615bef578181015183820152602001615bd7565b838111156119e35750506000910152565b600181811c90821680615c1457607f821691505b60208210811415615c3557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715615c6057615c60615cd0565b6040525050565b6000600019821415615c7b57615c7b615ca4565b5060010190565b600082615c9f57634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115615cff5760046000803e5060005160e01c5b90565b600060443d1015615d105790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715615d3f57505050505090565b8285019150815181811115615d575750505050505090565b843d8701016020828501011115615d715750505050505090565b615d8060208286010187615c3b565b509095945050505050565b6001600160e01b031981168114611d5a57600080fdfef09f90b82068747470733a2f2f7777772e68616c66737570657273686f702e636f6d2f20f09f90b8a26469706673582212201205a9e123f4917f8ac25047a02576f2465ea88233aa3de5f52210c6228e2c3364736f6c63430008070033

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.