ETH Price: $2,748.71 (+4.26%)

Token

From The Roster - NFT Jingles (FRNJ)
 

Overview

Max Total Supply

55 FRNJ

Holders

20

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
kaandiid.eth
0xC3e821f2fb28435330783c5b72b875163D386b15
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:
NFTJingles

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : NFTJingles.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 NFTJingles is ERC1155, Ownable {
    string public name = "From The Roster - NFT Jingles";
    string public symbol = "FRNJ";
    string private ipfsCID = "QmYR1FwHJjMqy5TQ3rpQ24mHw82d4aGF3b6zg5JSWRSiiV";
    uint256 public collectionTotal = 1;
    uint256 public cost = 0.06 ether;
    uint256 public maxMintAmount = 20;
    uint256 public maxBatchMintAmount = 20;
    uint256 public whitelisterLimit = 5;

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

    uint256 public ogCollectionTotal;
    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 roleLimit;

    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;

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

    struct UserDetails{
        address userAddress;
        string contact;
        uint256 amountMinted;
        string selectionID;
    }

    UserDetails[] public userDetails;

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

    constructor() ERC1155(""){
        ogCollectionTotal = collectionTotal;
        collectionBatchEndID.push(collectionTotal);
        ipfsCIDBatch.push(ipfsCID);
        uriBatch.push("");
        maxSupply[1] = 1000;
        hasMaxSupply[1] = true;
        createdToken[1] = true;
        currentSupply[1] = 7;
        tokenNextToMint = 2;
        _mint(msg.sender, 1, 1, "");
        _mint(0xd244774ba6e149cA97f6D82e409AF493c8cA61d2, 1, 1, "");
        _mint(0x5628D9a08a952D6F247Ef8Ae41407a6fC778c45a, 1, 1, "");
        _mint(0x18b8676fBdf5220CfFa64828503C720C34BE4FdC, 1, 1, "");
        _mint(0x480266D4A84808e61cfb3E97D1692BcF5b30aF96, 1, 1, "");
        _mint(0xF64C586f90C3eC423C1f980970925488c7aE63d3, 1, 1, "");
        _mint(0xfaeDa3e9E4d03930f4Baf7fc625186E94102731c, 1, 1, "");

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

        projectLeader = 0x5628D9a08a952D6F247Ef8Ae41407a6fC778c45a;
    }

    /**
     * @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 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) {
                if(whitelistTier[_user] == 0){
                    return costForWhitelisters;
                } 
                else{
                    return costTiers[whitelistTier[_user]];
                }
            }
            else{
                return cost;
            }
        }
        else{
            return 0;
        }
    }

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

    function checkOut(uint _amount) private {
        if (!checkIfAdmin()) {
            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 * _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++;
        }

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

    function selectOptionsMint(uint _id, uint _amount, string memory _contact, string memory _selection) public payable{
        userDetails.push(UserDetails(msg.sender, _contact, _amount, _selection));
        mint(msg.sender, _id, _amount);
    }

    /**
     * @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(_id > ogCollectionTotal, "ID Must Be New");
        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(!checkIfOriginal(_ids), "ID Must Be New");
        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 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 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 modify the URI or CID of a Batch.
    * Note: Original Collection Batch URIs and or CIDs cannot be modified.
    */
    function modifyURICID(uint _batchIndex, string memory _uri, bool _isIpfsCID) external onlyAdmins {
        require(_batchIndex != 0, "Batch Index Cannot Be Original Collection");
        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.
    * Note: Original Token URIs cannot be changed.
    *       Set _isIpfsCID to true if using only IPFS CID for the _uri.
    */
    function setURI(uint _id, string memory _uri, bool _isIpfsCID) external onlyAdmins {
        require(_id > ogCollectionTotal, "ID Must Not Be From Original Collection");
        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){
       string memory _CIDorURI = string(abi.encodePacked(
            "ipfs://",
            ipfsCID,
            "/"
        ));
        if(createdToken[_id]){
            if (_id > 0 && _id <= ogCollectionTotal) {
                //hidden
                if(!revealed){
                    return (
                    string(abi.encodePacked(
                        _CIDorURI,
                        "hidden",
                        ".json"
                    )));
                }
                else{
                    if(keccak256(abi.encodePacked((tokenToURI[_id]))) != keccak256(abi.encodePacked(("")))){
                        return tokenToURI[_id];
                    }
                    for (uint256 i = 0; i < collectionBatchEndID.length; ++i) {
                        if(i == 0){
                            //first iteration is for OG collection
                            continue;
                        }
                        else{
                            if(_id <= collectionBatchEndID[i]){
                                if(keccak256(abi.encodePacked((ipfsCIDBatch[i]))) != keccak256(abi.encodePacked(("")))){
                                    _CIDorURI = string(abi.encodePacked(
                                        "ipfs://",
                                        ipfsCIDBatch[i],
                                        "/"
                                    ));
                                }
                                if(keccak256(abi.encodePacked((uriBatch[i]))) != keccak256(abi.encodePacked(("")))){
                                    _CIDorURI = string(abi.encodePacked(
                                        uriBatch[i],
                                        "/"
                                    ));
                                }
                                
                                continue;
                            }
                            else{
                                //_id was not found in a batch
                                continue;
                            }
                        }
                    
                    }
                    //no role
                    if(keccak256(abi.encodePacked((role[_id]))) == keccak256(abi.encodePacked(("")))){
                        return (
                        string(abi.encodePacked(
                            _CIDorURI,
                            Strings.toString(_id),
                            ".json"
                        )));
                    }
                    else{
                        //has role
                        return (
                        string(abi.encodePacked(
                            _CIDorURI,
                            role[_id],
                            ".json"
                        )));
                    }
                }
            }
            //no URI
            return "URI Does Not Exist";
        }
        else{
            return "Token Does Not Exist";
        }
    }

    function checkIfOriginal(uint[] memory _ids) private view returns(bool){
        for (uint256 i = 0; i < _ids.length; ++i) {
            uint256 _id = _ids[i];
            if (_id <= ogCollectionTotal) {
                // original
            }
            else {
                // new
                return false;
            }
        }
        return true;
    }

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

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

    function roleLimitSet(uint _limit) external onlyAdmins {
        roleLimit = _limit;
    }

    function oneOfOneOnly (uint _id, uint _amount) private view returns (bool){
        if (_id <= ogCollectionTotal && _amount == 1){
            return true;
        }
        else{
            return false;
        }
    }

    /**
    * @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.
     * Note: This only adds to the current collections total
     */
    function updateCollectionTotal(uint _amountToAdd) external onlyAdmins {
        collectionTotal += _amountToAdd;
    }

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

    /**
     * @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 * 8) < 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://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return 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":"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":"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":"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":"ogCollectionTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"roleLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","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":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"string","name":"_contact","type":"string"},{"internalType":"string","name":"_selection","type":"string"}],"name":"selectOptionsMint","outputs":[],"stateMutability":"payable","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":"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"}],"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":"_amountToAdd","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":"uint256","name":"","type":"uint256"}],"name":"userDetails","outputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"string","name":"contact","type":"string"},{"internalType":"uint256","name":"amountMinted","type":"uint256"},{"internalType":"string","name":"selectionID","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"}]

60c0604052601d60808190527f46726f6d2054686520526f73746572202d204e4654204a696e676c657300000060a090815262000040916004919062000a35565b50604080518082019091526004808252632329272560e11b60209092019182526200006e9160059162000a35565b506040518060600160405280602e815260200162006db8602e913980516200009f9160069160209091019062000a35565b506001600781905566d529ae9e86000060085560146009819055600a556005600b55600c805462ffffff19166101011790556016805460ff199081169091556020805490911682179055602381905560006024819055602c91909155602d553480156200010b57600080fd5b506040805160208101909152600081526200012681620004da565b506200013233620004f3565b600754600d819055601d805460018181019092557f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f0191909155601e80549182018155600052600680547f50bb669a95c7b50b7e8a6f09454034b2b14cf2b85c730dca9a539ca82cb6e35090920191620001ac9062000c59565b620001b992919062000ac4565b50601f8054600181018255600091825260408051602081019182905283905262000208927fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d8079092019162000a35565b50600160008181526103e87f71a67924699a20698523213e55fe499d539379d7769cd5567e2c45d583f815a3557f17bc176d2408558f6e4111feebc3cab4e16b63e967be91cde721f4c8a488b552805460ff1990811684179091557f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d8054909116831790556010602090815260077f8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b5f556002600e55604080519182019052908152620002d8913391819062000545565b6200031073d244774ba6e149ca97f6d82e409af493c8ca61d2600180604051806020016040528060008152506200054560201b60201c565b62000348735628d9a08a952d6f247ef8ae41407a6fc778c45a600180604051806020016040528060008152506200054560201b60201c565b620003807318b8676fbdf5220cffa64828503c720c34be4fdc600180604051806020016040528060008152506200054560201b60201c565b620003b873480266d4a84808e61cfb3e97d1692bcf5b30af96600180604051806020016040528060008152506200054560201b60201c565b620003f073f64c586f90c3ec423c1f980970925488c7ae63d3600180604051806020016040528060008152506200054560201b60201c565b6200042873faeda3e9e4d03930f4baf7fc625186e94102731c600180604051806020016040528060008152506200054560201b60201c565b60245460268054600181810183557f744a2cf8fd7008e3d53b67916e73460df9fa5214e3ef23dd4259ca09493a35949182018490558254808201909355910191909155600b5460278054808401825560008290527f98a476f1687bc3d60a2da2adbcba2c46958e61fa2fb4042cd7bc5816a710195b9081019290925580548084019091550155602a80546001600160a01b031916735628d9a08a952d6f247ef8ae41407a6fc778c45a17905562000dc7565b8051620004ef90600290602084019062000a35565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416620005ab5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084015b60405180910390fd5b336000620005b98562000678565b90506000620005c88562000678565b9050620005db83600089858589620006c6565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906200060d90849062000c3e565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46200066f8360008989898962000849565b50505050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110620006b557620006b562000d05565b602090810291909101015292915050565b620006e18686868686866200084160201b6200367b1760201c565b6001600160a01b0386166000908152601c602052604090205460ff161580156200072457506001600160a01b0385166000908152601c602052604090205460ff16155b80156200074a57506001600160a01b0384166000908152601c602052604090205460ff16155b620007ac5760405162461bcd60e51b815260206004820152602b60248201527f4f70657261746f722c2046726f6d2c206f7220546f204164647265737320697360448201526a08149154d5149250d5115160aa1b6064820152608401620005a2565b60005b83518110156200066f57601b6000858381518110620007d257620007d262000d05565b60209081029190910181015182528101919091526040016000205460ff16156200082c5760405162461bcd60e51b815260206004820152600a602482015269119b1859d9d95908125160b21b6044820152606401620005a2565b80620008388162000cd1565b915050620007af565b505050505050565b62000868846001600160a01b031662000a2660201b620036831760201c565b15620008415760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190620008a4908990899088908890889060040162000be2565b602060405180830381600087803b158015620008bf57600080fd5b505af1925050508015620008f2575060408051601f3d908101601f19168201909252620008ef9181019062000b5f565b60015b620009b3576200090162000d1b565b806308c379a014156200094257506200091962000d38565b8062000926575062000944565b8060405162461bcd60e51b8152600401620005a2919062000c29565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401620005a2565b6001600160e01b0319811663f23a6e6160e01b146200066f5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401620005a2565b6001600160a01b03163b151590565b82805462000a439062000c59565b90600052602060002090601f01602090048101928262000a67576000855562000ab2565b82601f1062000a8257805160ff191683800117855562000ab2565b8280016001018555821562000ab2579182015b8281111562000ab257825182559160200191906001019062000a95565b5062000ac092915062000b48565b5090565b82805462000ad29062000c59565b90600052602060002090601f01602090048101928262000af6576000855562000ab2565b82601f1062000b09578054855562000ab2565b8280016001018555821562000ab257600052602060002091601f016020900482015b8281111562000ab257825482559160010191906001019062000b2b565b5b8082111562000ac0576000815560010162000b49565b60006020828403121562000b7257600080fd5b81516001600160e01b03198116811462000b8b57600080fd5b9392505050565b6000815180845260005b8181101562000bba5760208185018101518683018201520162000b9c565b8181111562000bcd576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009062000c1e9083018462000b92565b979650505050505050565b60208152600062000b8b602083018462000b92565b6000821982111562000c545762000c5462000cef565b500190565b600181811c9082168062000c6e57607f821691505b6020821081141562000c9057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b038111828210171562000cca57634e487b7160e01b600052604160045260246000fd5b6040525050565b600060001982141562000ce85762000ce862000cef565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060033d111562000d355760046000803e5060005160e01c5b90565b600060443d101562000d475790565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171562000d7757505050505090565b828501915081518181111562000d905750505050505090565b843d870101602082850101111562000dab5750505050505090565b62000dbc6020828601018762000c96565b509095945050505050565b615fe18062000dd76000396000f3fe60806040526004361061051a5760003560e01c8063650e926f116102a2578063accc1d5e11610165578063d6199f8d116100cc578063ea7aef5c11610085578063ea7aef5c146110cc578063ed00e653146110e2578063f242432a146110f7578063f2fde38b14611117578063f8f3a1ca14611137578063fa0fda351461115757600080fd5b8063d6199f8d14610feb578063d81d0a151461100b578063d85ed0f41461101e578063d8d9d6bc14611033578063e5211d8b14611063578063e985e9c51461108357600080fd5b8063ba4e5c491161011e578063ba4e5c4914610f1e578063bd85b03914610f3e578063bff67e9b14610f6b578063c6b1fe5814610f8b578063cc979f2714610fab578063d261b6e414610fcb57600080fd5b8063accc1d5e14610e68578063b390c0ab14610e88578063b5b13abc14610ea8578063b5e0e87b14610ec8578063b6906eca14610ee8578063b82741a014610efe57600080fd5b80639c70b51211610209578063a4c2f651116101c2578063a4c2f65114610da2578063a5492f4414610dc2578063a684c47114610de2578063a6d23e1014610e02578063a9cad37b14610e22578063ab80573e14610e5257600080fd5b80639c70b51214610cd8578063a1fc693714610cf2578063a22cb46514610d12578063a2c4c60214610d32578063a370c66814610d52578063a48fc3a914610d8257600080fd5b806384c6ef2f1161025b57806384c6ef2f14610c1e578063869f759414610c385780638da5cb5b14610c65578063943431bf14610c8357806394357c2514610ca357806395d89b4114610cc357600080fd5b8063650e926f14610b7e578063715018a614610b945780637724bad814610ba95780637d929b4f14610bbe5780637f00c7a614610bde57806383ca4b6f14610bfe57600080fd5b8063359cf687116103ea5780634c2612471161035157806352addee51161030a57806352addee514610ace578063533c7cfa14610aee5780635c78222f14610b0e5780635c975abb14610b2e57806362e6031b14610b48578063644e54ab14610b6857600080fd5b80634c261247146109fc5780634cafdb6d14610a1c5780634e1273f414610a325780634f558e7914610a5f5780635183022714610a8f57806351ede79114610aae57600080fd5b806341c63b85116103a357806341c63b85146109465780634271c5fd146109665780634378dfa51461097c578063441664171461099c57806344a0d68a146109bc5780634bef82be146109dc57600080fd5b8063359cf687146108b557806339ba02d0146108cb5780633af32abf146108de5780633c952764146108fe5780633ccfd60b1461091e5780633e4a4e771461092657600080fd5b80631b1004501161048e5780632a9abcb9116104475780632a9abcb9146107f55780632c945f6f146108155780632eb2c2d6146108285780632ed6cd46146108485780632fd723931461087557806333ea51a81461089557600080fd5b80631b1004501461073c5780631c60094b1461075c5780631ee33ca91461078957806321d0a2a01461079f578063239c70ae146107bf578063293d8bb5146107d557600080fd5b80630e89341c116104e05780630e89341c1461067b5780630ec7359f1461069b57806313faede6146106bb57806314bfd6d0146106d1578063156e29f6146107095780631973ea061461071c57600080fd5b80624a84cb146105b4578062fdd58e146105d657806301ffc9a71461060957806302329a291461063957806306fdde031461065957600080fd5b366105af576029546001600160a01b03166105715760405162461bcd60e51b8152602060048201526012602482015271536574205061796f7574204164647265737360701b60448201526064015b60405180910390fd5b60295460405134916001600160a01b03169082156108fc029083906000818181858888f193505050501580156105ab573d6000803e3d6000fd5b5050005b600080fd5b3480156105c057600080fd5b506105d46105cf36600461528c565b61118f565b005b3480156105e257600080fd5b506105f66105f1366004615262565b611227565b6040519081526020015b60405180910390f35b34801561061557600080fd5b50610629610624366004615537565b6112bb565b6040519015158152602001610600565b34801561064557600080fd5b506105d461065436600461551c565b61130b565b34801561066557600080fd5b5061066e611326565b6040516106009190615aac565b34801561068757600080fd5b5061066e6106963660046155a5565b6113b4565b3480156106a757600080fd5b506105d46106b6366004615421565b611799565b3480156106c757600080fd5b506105f660085481565b3480156106dd57600080fd5b506106f16106ec3660046155a5565b6117e5565b6040516001600160a01b039091168152602001610600565b6105d461071736600461528c565b61180f565b34801561072857600080fd5b506105d4610737366004615300565b6118d8565b34801561074857600080fd5b506105d46107573660046155a5565b61199c565b34801561076857600080fd5b506105f6610777366004615063565b60256020526000908152604090205481565b34801561079557600080fd5b506105f660245481565b3480156107ab57600080fd5b5061066e6107ba3660046155a5565b611a07565b3480156107cb57600080fd5b506105f660095481565b3480156107e157600080fd5b506105d46107f03660046155a5565b611a20565b34801561080157600080fd5b506105d461081036600461562d565b611a53565b6105d461082336600461568d565b611bad565b34801561083457600080fd5b506105d46108433660046150b8565b611c95565b34801561085457600080fd5b506105f66108633660046155a5565b60146020526000908152604090205481565b34801561088157600080fd5b506105d46108903660046155a5565b611ce1565b3480156108a157600080fd5b506105d46108b0366004615063565b611cee565b3480156108c157600080fd5b506105f6600d5481565b6105d46108d93660046155a5565b611d18565b3480156108ea57600080fd5b506106296108f9366004615063565b611e4e565b34801561090a57600080fd5b506105d461091936600461551c565b611eb8565b6105d4611ed3565b34801561093257600080fd5b506105d46109413660046154a9565b611feb565b34801561095257600080fd5b506105d46109613660046155e1565b6121da565b34801561097257600080fd5b506105f6602c5481565b34801561098857600080fd5b506105d4610997366004615421565b612328565b3480156109a857600080fd5b506105d46109b736600461562d565b612374565b3480156109c857600080fd5b506105d46109d73660046155a5565b61259b565b3480156109e857600080fd5b506105d46109f73660046155a5565b6125a8565b348015610a0857600080fd5b506105d4610a17366004615571565b6125b5565b348015610a2857600080fd5b506105f660075481565b348015610a3e57600080fd5b50610a52610a4d366004615351565b612661565b6040516106009190615a6b565b348015610a6b57600080fd5b50610629610a7a3660046155a5565b60009081526015602052604090205460ff1690565b348015610a9b57600080fd5b50600c5461062990610100900460ff1681565b348015610aba57600080fd5b506105d4610ac93660046155a5565b61278a565b348015610ada57600080fd5b506105f6610ae93660046155a5565b612797565b348015610afa57600080fd5b506105f6610b09366004615063565b6127b8565b348015610b1a57600080fd5b506105d4610b2936600461551c565b61284b565b348015610b3a57600080fd5b50600c546106299060ff1681565b348015610b5457600080fd5b506105d4610b63366004615262565b612866565b348015610b7457600080fd5b506105f6600a5481565b348015610b8a57600080fd5b506105f6600e5481565b348015610ba057600080fd5b506105d4612979565b348015610bb557600080fd5b5061066e61298b565b348015610bca57600080fd5b506105f6610bd936600461566b565b6129ae565b348015610bea57600080fd5b506105d4610bf93660046155a5565b6129df565b348015610c0a57600080fd5b506105d4610c1936600461545d565b6129ec565b348015610c2a57600080fd5b506016546106299060ff1681565b348015610c4457600080fd5b506105f6610c533660046155a5565b60126020526000908152604090205481565b348015610c7157600080fd5b506003546001600160a01b03166106f1565b348015610c8f57600080fd5b506105d4610c9e3660046155a5565b612a76565b348015610caf57600080fd5b506105f6610cbe36600461566b565b612a83565b348015610ccf57600080fd5b5061066e612a9f565b348015610ce457600080fd5b506020546106299060ff1681565b348015610cfe57600080fd5b506105f6610d0d3660046155a5565b612aac565b348015610d1e57600080fd5b506105d4610d2d366004615238565b612abc565b348015610d3e57600080fd5b506105d4610d4d36600461551c565b612ac7565b348015610d5e57600080fd5b50610629610d6d3660046155a5565b601b6020526000908152604090205460ff1681565b348015610d8e57600080fd5b50600c546106299062010000900460ff1681565b348015610dae57600080fd5b506105d4610dbd366004615063565b612aeb565b348015610dce57600080fd5b506105d4610ddd366004615238565b612b4c565b348015610dee57600080fd5b50602a546106f1906001600160a01b031681565b348015610e0e57600080fd5b506029546106f1906001600160a01b031681565b348015610e2e57600080fd5b50610e42610e3d3660046155a5565b612bb6565b6040516106009493929190615a2f565b348015610e5e57600080fd5b506105f660185481565b348015610e7457600080fd5b506105d4610e833660046152bf565b612d0c565b348015610e9457600080fd5b506105d4610ea336600461566b565b612d6b565b348015610eb457600080fd5b506105d4610ec33660046155a5565b612d9a565b348015610ed457600080fd5b506105d4610ee3366004615300565b612df0565b348015610ef457600080fd5b506105f660235481565b348015610f0a57600080fd5b506105d4610f1936600461562d565b612ed0565b348015610f2a57600080fd5b506106f1610f393660046155a5565b612f82565b348015610f4a57600080fd5b506105f6610f593660046155a5565b60009081526010602052604090205490565b348015610f7757600080fd5b5061066e610f863660046155a5565b612f92565b348015610f9757600080fd5b506105f6610fa63660046155a5565b612fbd565b348015610fb757600080fd5b506105d4610fc63660046151c5565b6130bf565b348015610fd757600080fd5b506105d4610fe63660046155a5565b6131b1565b348015610ff757600080fd5b5061066e6110063660046155a5565b6131cb565b6105d46110193660046151c5565b6131db565b34801561102a57600080fd5b5061066e613494565b34801561103f57600080fd5b5061062961104e366004615063565b601c6020526000908152604090205460ff1681565b34801561106f57600080fd5b506105d461107e3660046155be565b6134a3565b34801561108f57600080fd5b5061062961109e366004615085565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156110d857600080fd5b506105f6600b5481565b3480156110ee57600080fd5b50610629613502565b34801561110357600080fd5b506105d4611112366004615161565b6135b0565b34801561112357600080fd5b506105d4611132366004615063565b6135f5565b34801561114357600080fd5b506105f66111523660046155a5565b61366b565b34801561116357600080fd5b506105f6611172366004615262565b602260209081526000928352604080842090915290825290205481565b611197613692565b600d5482116111d95760405162461bcd60e51b815260206004820152600e60248201526d4944204d757374204265204e657760901b6044820152606401610568565b6111e2826136d5565b60008281526010602052604081208054839290611200908490615d6e565b9250508190555061122283838360405180602001604052806000815250613792565b505050565b60006001600160a01b0383166112925760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608401610568565b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b14806112ec57506001600160e01b031982166303a24d0760e21b145b806112b557506301ffc9a760e01b6001600160e01b03198316146112b5565b611313613692565b600c805460ff1916911515919091179055565b6004805461133390615de8565b80601f016020809104026020016040519081016040528092919081815260200182805461135f90615de8565b80156113ac5780601f10611381576101008083540402835291602001916113ac565b820191906000526020600020905b81548152906001019060200180831161138f57829003601f168201915b505050505081565b6060600060066040516020016113ca919061593a565b60408051601f1981840301815291815260008581526015602052205490915060ff1615611761576000831180156114035750600d548311155b1561173157600c54610100900460ff1661143f57806040516020016114289190615878565b604051602081830303815290604052915050919050565b604080516000808252602080830180855283519020878352600f90915290839020909261146c92016158b0565b6040516020818303038152906040528051906020012014611526576000838152600f6020526040902080546114a090615de8565b80601f01602080910402602001604051908101604052809291908181526020018280546114cc90615de8565b80156115195780601f106114ee57610100808354040283529160200191611519565b820191906000526020600020905b8154815290600101906020018083116114fc57829003601f168201915b5050505050915050919050565b60005b601d548110156116a7578061153d57611697565b601d818154811061155057611550615e9c565b906000526020600020015484116116975760408051600081526020810191829052519020601e80548390811061158857611588615e9c565b906000526020600020016040516020016115a291906158b0565b60405160208183030381529060405280519060200120146115fc57601e81815481106115d0576115d0615e9c565b906000526020600020016040516020016115ea919061593a565b60405160208183030381529060405291505b60408051600081526020810191829052519020601f80548390811061162357611623615e9c565b9060005260206000200160405160200161163d91906158b0565b604051602081830303815290604052805190602001201461169757601f818154811061166b5761166b615e9c565b9060005260206000200160405160200161168591906158bc565b60405160208183030381529060405291505b6116a081615e49565b9050611529565b5060408051600080825260208083018085528351902087835260179091529083902090926116d592016158b0565b60405160208183030381529060405280519060200120141561170c57806116fb8461387b565b604051602001611428929190615804565b8060176000858152602001908152602001600020604051602001611428929190615843565b505060408051808201909152601281527115549248111bd95cc8139bdd08115e1a5cdd60721b6020820152919050565b5050604080518082019091526014815273151bdad95b88111bd95cc8139bdd08115e1a5cdd60621b6020820152919050565b50919050565b6117a1613692565b6117ad60266000614dc3565b80516117c0906026906020840190614de1565b50806000815181106117d4576117d4615e9c565b602002602001015160248190555050565b602b81815481106117f557600080fd5b6000918252602090912001546001600160a01b0316905081565b600c5462010000900460ff16156118685760405162461bcd60e51b815260206004820152601a60248201527f5265717569726573206d696e74496e4f726465722046616c73650000000000006044820152606401610568565b600c5460ff161561188b5760405162461bcd60e51b815260040161056890615b07565b611895828261390f565b6118cf5760405162461bcd60e51b815260206004820152600b60248201526a10d0539393d5081352539560aa1b6044820152606401610568565b6111d981613c05565b6118e0613692565b6118ec60216000614dc3565b6118f860218484614e2c565b50805161190457505050565b8051600114156119915760005b8281101561198b578160008151811061192c5761192c615e9c565b60200260200101516025600086868581811061194a5761194a615e9c565b905060200201602081019061195f9190615063565b6001600160a01b031681526020810191909152604001600020558061198381615e49565b915050611911565b50505050565b611222838383612df0565b731ba3fe6311131a67d97f20162522490c3648f6e233146119ed5760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b6044820152606401610568565b80602c60008282546119ff9190615d6e565b909155505050565b6017602052600090815260409020805461133390615de8565b611a28613692565b80602481905550806026600081548110611a4457611a44615e9c565b60009182526020909120015550565b611a5b613692565b600d548311611abc5760405162461bcd60e51b815260206004820152602760248201527f4944204d757374204e6f742042652046726f6d204f726967696e616c20436f6c6044820152663632b1ba34b7b760c91b6064820152608401610568565b8015611b5057600082611ace8561387b565b604051602001611adf9291906158d9565b60408051601f198184030181529181526000868152600f60209081529190208251929350611b11929091840190614e7f565b50837f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b82604051611b429190615aac565b60405180910390a250505050565b6000838152600f602090815260409091208351611b6f92850190614e7f565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b83604051611ba09190615aac565b60405180910390a2505050565b604080516080810182523381526020808201858152928201869052606082018490526028805460018101825560009190915282517fe16da923a2d88192e5070f37b4571d58682c0d66212ec634d495f33de3f77ab5600490920291820180546001600160a01b0319166001600160a01b0390921691909117815593518051939493611c61937fe16da923a2d88192e5070f37b4571d58682c0d66212ec634d495f33de3f77ab6909301929190910190614e7f565b506040820151600282015560608201518051611c87916003840191602090910190614e7f565b50505061198b33858561180f565b6001600160a01b038516331480611cb15750611cb1853361109e565b611ccd5760405162461bcd60e51b815260040161056890615b6b565b611cda8585858585613e20565b5050505050565b611ce9613692565b600e55565b611cf6613fc2565b602980546001600160a01b0319166001600160a01b0392909216919091179055565b600c5462010000900460ff16611d675760405162461bcd60e51b81526020600482015260146024820152732932b8bab4b932b99036b4b73a24b727b93232b960611b6044820152606401610568565b600c5460ff1615611d8a5760405162461bcd60e51b815260040161056890615b07565b60075460009081526015602052604090205460ff1615611dd75760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b6044820152606401610568565b6007546001600e5483611dea9190615d6e565b611df49190615da5565b1115611e385760405162461bcd60e51b8152602060048201526013602482015272141b19585cd948131bddd95c88105b5bdd5b9d606a1b6044820152606401610568565b611e4181613c05565b611e4b338261401c565b50565b6000805b602154811015611eaf57826001600160a01b031660218281548110611e7957611e79615e9c565b6000918252602090912001546001600160a01b03161415611e9d5750600192915050565b80611ea781615e49565b915050611e52565b50600092915050565b611ec0613692565b6020805460ff1916911515919091179055565b611edb613692565b6029546001600160a01b0316611f285760405162461bcd60e51b8152602060048201526012602482015271536574205061796f7574204164647265737360701b6044820152606401610568565b602d54602c5411611f9c57604051600090731ba3fe6311131a67d97f20162522490c3648f6e29047908381818185875af1925050503d8060008114611f89576040519150601f19603f3d011682016040523d82523d6000602084013e611f8e565b606091505b5050905080611e4b57600080fd5b6029546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611f89576040519150601f19603f3d011682016040523d82523d6000602084013e611f8e565b565b611ff3613692565b8015612103576000836001855161200a9190615da5565b8151811061201a5761201a615e9c565b6020026020010151905060005b601d54811015611cda57601d818154811061204457612044615e9c565b90600052602060002001548214156120f35783600185516120659190615da5565b8151811061207557612075615e9c565b602090810291909101810151600084815260149092526040822055845185906120a090600190615da5565b815181106120b0576120b0615e9c565b602002602001015111156120dc576000828152601360205260409020805460ff191660011790556120f3565b6000828152601360205260409020805460ff191690555b6120fc81615e49565b9050612027565b60005b835181101561198b57600084828151811061212357612123615e9c565b6020026020010151905083828151811061213f5761213f615e9c565b60200260200101516012600083815260200190815260200160002060008282546121699190615d6e565b92505081905550600084838151811061218457612184615e9c565b602002602001015111156121b0576000818152601160205260409020805460ff191660011790556121c7565b6000818152601160205260409020805460ff191690555b50806121d281615e49565b915050612106565b6121e2613692565b81156123095760005b601d548110156122e95783601d828154811061220957612209615e9c565b9060005260206000200154141561221f576122e9565b601d805461222f90600190615da5565b8154811061223f5761223f615e9c565b9060005260206000200154601d828154811061225d5761225d615e9c565b90600052602060002001541480156122925750601d818154811061228357612283615e9c565b90600052602060002001548414155b156122d75760405162461bcd60e51b81526020600482015260156024820152740becadcc8928840d2e640dcdee840c24084c2e8c6d605b1b6044820152606401610568565b806122e181615e49565b9150506121eb565b506000838152601a60209081526040909120825161198b92840190614de1565b6000838152601960209081526040909120825161198b92840190614de1565b612330613692565b61233c60276000614dc3565b805161234f906027906020840190614de1565b508060008151811061236357612363615e9c565b6020026020010151600b8190555050565b61237c613692565b601d805461238c90600190615da5565b8154811061239c5761239c615e9c565b9060005260206000200154831161241b5760405162461bcd60e51b815260206004820152603760248201527f4c617374204261746368204944206d757374206265206772656174657220746860448201527f616e2070726576696f757320626174636820746f74616c0000000000000000006064820152608401610568565b80156124de57601d805460018181019092557f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f01849055601e805491820181556000528251612491917f50bb669a95c7b50b7e8a6f09454034b2b14cf2b85c730dca9a539ca82cb6e35001906020850190614e7f565b50601f8054600181018255600091825260408051602081019182905283905261198b927fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d80790920191614e7f565b601d805460018181019092557f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f01849055601f80549182018155600052825161254e917fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d80701906020850190614e7f565b50601e8054600181018255600091825260408051602081019182905283905261198b927f50bb669a95c7b50b7e8a6f09454034b2b14cf2b85c730dca9a539ca82cb6e35090920191614e7f565b6125a3613692565b600855565b6125b0613692565b601855565b6125bd613692565b600c54610100900460ff16156126085760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e4814995d99585b195960821b6044820152606401610568565b805161261b906006906020840190614e7f565b5080601e60008154811061263157612631615e9c565b90600052602060002001908051906020019061264e929190614e7f565b5050600c805461ff001916610100179055565b606081518351146126c65760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610568565b600083516001600160401b038111156126e1576126e1615eb2565b60405190808252806020026020018201604052801561270a578160200160208202803683370190505b50905060005b84518110156127825761275585828151811061272e5761272e615e9c565b602002602001015185838151811061274857612748615e9c565b6020026020010151611227565b82828151811061276757612767615e9c565b602090810291909101015261277b81615e49565b9050612710565b509392505050565b612792613692565b600b55565b601d81815481106127a757600080fd5b600091825260209091200154905081565b60006127c2613502565b61283e5760205460ff1615612836576001600160a01b0382166000908152602560205260409020546127f657505060245490565b6001600160a01b03821660009081526025602052604090205460268054909190811061282457612824615e9c565b90600052602060002001549050919050565b505060085490565b506000919050565b919050565b612853613692565b6016805460ff1916911515919091179055565b61286e613692565b600c5462010000900460ff166128bd5760405162461bcd60e51b81526020600482015260146024820152732932b8bab4b932b99036b4b73a24b727b93232b960611b6044820152606401610568565b60075460009081526015602052604090205460ff161561290a5760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b6044820152606401610568565b6007546001600e548361291d9190615d6e565b6129279190615da5565b111561296b5760405162461bcd60e51b8152602060048201526013602482015272141b19585cd948131bddd95c88105b5bdd5b9d606a1b6044820152606401610568565b612975828261401c565b5050565b612981613fc2565b611fe96000614144565b60606000604051806060016040528060288152602001615f846028913992915050565b601a60205281600052604060002081815481106129ca57600080fd5b90600052602060002001600091509150505481565b6129e7613692565b600955565b60005b8251811015612a6a576000838281518110612a0c57612a0c615e9c565b60200260200101519050828281518110612a2857612a28615e9c565b6020026020010151601060008381526020019081526020016000206000828254612a529190615da5565b90915550612a639150829050615e49565b90506129ef565b50612975338383614196565b612a7e613692565b602355565b601960205281600052604060002081815481106129ca57600080fd5b6005805461133390615de8565b602681815481106127a757600080fd5b612975338383614332565b612acf613692565b600c8054911515620100000262ff000019909216919091179055565b6003546001600160a01b0316331480612b0e5750602a546001600160a01b031633145b612b2a5760405162461bcd60e51b815260040161056890615c8b565b602a80546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b0316331480612b6f5750602a546001600160a01b031633145b612b8b5760405162461bcd60e51b815260040161056890615c8b565b6001600160a01b03919091166000908152601c60205260409020805460ff1916911515919091179055565b60288181548110612bc657600080fd5b6000918252602090912060049091020180546001820180546001600160a01b03909216935090612bf590615de8565b80601f0160208091040260200160405190810160405280929190818152602001828054612c2190615de8565b8015612c6e5780601f10612c4357610100808354040283529160200191612c6e565b820191906000526020600020905b815481529060010190602001808311612c5157829003601f168201915b505050505090806002015490806003018054612c8990615de8565b80601f0160208091040260200160405190810160405280929190818152602001828054612cb590615de8565b8015612d025780601f10612cd757610100808354040283529160200191612d02565b820191906000526020600020905b815481529060010190602001808311612ce557829003601f168201915b5050505050905084565b612d14613692565b6003546001600160a01b0316331480612d375750602a546001600160a01b031633145b612d535760405162461bcd60e51b815260040161056890615c8b565b612d5f602b6000614dc3565b611222602b8383614e2c565b60008281526010602052604081208054839290612d89908490615da5565b909155506129759050338383614413565b731ba3fe6311131a67d97f20162522490c3648f6e23314612deb5760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b6044820152606401610568565b602d55565b612df8613692565b80518214612e545760405162461bcd60e51b815260206004820152602360248201527f5573657273204172726179204e6f7420457175616c20546f205469657220417260448201526272617960e81b6064820152608401610568565b60005b8281101561198b57818181518110612e7157612e71615e9c565b602002602001015160256000868685818110612e8f57612e8f615e9c565b9050602002016020810190612ea49190615063565b6001600160a01b0316815260208101919091526040016000205580612ec881615e49565b915050612e57565b612ed8613692565b82612f375760405162461bcd60e51b815260206004820152602960248201527f426174636820496e6465782043616e6e6f74204265204f726967696e616c204360448201526837b63632b1ba34b7b760b91b6064820152608401610568565b8015612f6e5781601e8481548110612f5157612f51615e9c565b90600052602060002001908051906020019061198b929190614e7f565b81601f8481548110612f5157612f51615e9c565b602181815481106117f557600080fd5b601f8181548110612fa257600080fd5b90600052602060002001600091509050805461133390615de8565b60008181526012602052604081205415612fe4575060009081526012602052604090205490565b60005b601d54811015611eaf57821580159061301d5750601d818154811061300e5761300e615e9c565b90600052602060002001548311155b801561304f5750601d613031600183615da5565b8154811061304157613041615e9c565b906000526020600020015483115b156130ad576000601d828154811061306957613069615e9c565b9060005260206000200154905060146000828152602001908152602001600020546000146130a7576000908152601460205260409020549392505050565b50611eaf565b806130b781615e49565b915050612fe7565b6130c7613692565b6130d08261452b565b1561310e5760405162461bcd60e51b815260206004820152600e60248201526d4944204d757374204265204e657760901b6044820152606401610568565b60005b825181101561319557600083828151811061312e5761312e615e9c565b60200260200101519050613141816136d5565b82828151811061315357613153615e9c565b602002602001015160106000838152602001908152602001600020600082825461317d9190615d6e565b9091555061318e9150829050615e49565b9050613111565b5061122283838360405180602001604052806000815250614588565b6131b9613692565b80600760008282546119ff9190615d6e565b601e8181548110612fa257600080fd5b600c5462010000900460ff16156132345760405162461bcd60e51b815260206004820152601a60248201527f5265717569726573206d696e74496e4f726465722046616c73650000000000006044820152606401610568565b600c5460ff16156132575760405162461bcd60e51b815260040161056890615b07565b600954825111156132995760405162461bcd60e51b815260206004820152600c60248201526b546f6f204d616e792049447360a01b6044820152606401610568565b80518251146132ea5760405162461bcd60e51b815260206004820152601960248201527f49447320616e6420416d6f756e7473204e6f7420457175616c000000000000006044820152606401610568565b6132f482826146e2565b6133345760405162461bcd60e51b8152602060048201526011602482015270086829c9c9ea8409a929ca8408482a8869607b1b6044820152606401610568565b6000805b825181101561337a5782818151811061335357613353615e9c565b6020026020010151826133669190615d6e565b91508061337281615e49565b915050613338565b50600a548111156133cd5760405162461bcd60e51b815260206004820152601b60248201527f426174636820416d6f756e74204c696d697420457863656564656400000000006044820152606401610568565b6133d681613c05565b60005b83518110156134785760008482815181106133f6576133f6615e9c565b60200260200101519050613409816136d5565b83828151811061341b5761341b615e9c565b60200260200101516010600087858151811061343957613439615e9c565b60200260200101518152602001908152602001600020600082825461345e9190615d6e565b90915550829150613470905081615e49565b9150506133d9565b5061198b84848460405180602001604052806000815250614588565b606061349e614760565b905090565b6003546001600160a01b03163314806134c65750602a546001600160a01b031633145b6134e25760405162461bcd60e51b815260040161056890615c8b565b6000918252601b6020526040909120805460ff1916911515919091179055565b60006135166003546001600160a01b031690565b6001600160a01b0316336001600160a01b0316148061353f5750602a546001600160a01b031633145b1561354a5750600190565b602b54156135aa5760005b602b548110156135a857602b818154811061357257613572615e9c565b6000918252602090912001546001600160a01b031633141561359657600191505090565b806135a081615e49565b915050613555565b505b50600090565b6001600160a01b0385163314806135cc57506135cc853361109e565b6135e85760405162461bcd60e51b815260040161056890615b6b565b611cda85858585856147e0565b6135fd613fc2565b6001600160a01b0381166136625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610568565b611e4b81614144565b602781815481106127a757600080fd5b505050505050565b6001600160a01b03163b151590565b61369a613502565b611fe95760405162461bcd60e51b815260206004820152600c60248201526b2737ba1030b71030b236b4b760a11b6044820152606401610568565b60008181526015602052604090205460ff1661375c576000818152601560209081526040808320805460ff19908116600117909155601b90925290912080549091169055600c5462010000900460ff161561375c57600081815260126020908152604080832060019081905560118352818420805460ff1916821790556010909252909120555b60165460ff1615611e4b5761376f614760565b600082815260176020908152604090912082516129759391929190910190614e7f565b6001600160a01b0384166137b85760405162461bcd60e51b815260040161056890615d0a565b3360006137c485614918565b905060006137d185614918565b90506137e283600089858589614963565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290613812908490615d6e565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461387283600089898989614ab6565b50505050505050565b6060600061388883614c21565b60010190506000816001600160401b038111156138a7576138a7615eb2565b6040519080825280601f01601f1916602001820160405280156138d1576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461390a57612782565b6138db565b60008281526011602052604081205460ff16156139945760008211801561393857506009548211155b80156139445750600083115b801561395257506007548311155b8015613982575060008381526012602090815260408083205460109092529091205461397f908490615d6e565b11155b1561398c576139c3565b5060006112b5565b6000821180156139a657506009548211155b80156139b25750600083115b80156139825750600754831161398c575b60008381526019602052604090205415613a495760005b600084815260196020526040902054811015613a475760008481526019602052604081208054613a2691339185908110613a1657613a16615e9c565b9060005260206000200154611227565b11613a355760009150506112b5565b80613a3f81615e49565b9150506139da565b505b60005b601d54811015613bfb578015801590613a825750601d8181548110613a7357613a73615e9c565b90600052602060002001548411155b8015613ab45750601d613a96600183615da5565b81548110613aa657613aa6615e9c565b906000526020600020015484115b15613be9576000601d8281548110613ace57613ace615e9c565b6000918252602080832090910154808352601a90915260409091205490915015613b565760005b6000828152601a6020526040902054811015613b54576000828152601a602052604081208054613b3191339185908110613a1657613a16615e9c565b11613b4257600093505050506112b5565b80613b4c81615e49565b915050613af5565b505b60008181526013602052604090205460ff1615613be157600084118015613b7f57506009548411155b8015613b8b5750600085115b8015613b9957506007548511155b8015613bcc5750600081815260146020908152604080832054888452601090925290912054613bc9908690615d6e565b11155b15613bd657613be7565b6000925050506112b5565b50613be9565b505b80613bf381615e49565b915050613a4c565b5060019392505050565b613c0d613502565b611e4b5760205460ff1615613d9e57613c2533611e4e565b613c635760405162461bcd60e51b815260206004820152600f60248201526e139bdd0815da1a5d195b1a5cdd1959608a1b6044820152606401610568565b33600081815260226020908152604080832060235484528252808320549383526025909152902054602780549091908110613ca057613ca0615e9c565b90600052602060002001548282613cb79190615d6e565b1115613d0f5760405162461bcd60e51b815260206004820152602160248201527f4578636565646564204d61782057686974656c697374204d696e74204c696d696044820152601d60fa1b6064820152608401610568565b613d18336127b8565b613d229083615d86565b341015613d665760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b6044820152606401610568565b336000908152602260209081526040808320602354845290915281208054849290613d92908490615d6e565b90915550613df5915050565b613da7336127b8565b613db19082615d86565b341015613df55760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b6044820152606401610568565b600034118015613e095750602d54602c5411155b15611e4b5734602c60008282546119ff9190615d6e565b8151835114613e415760405162461bcd60e51b815260040161056890615cc2565b6001600160a01b038416613e675760405162461bcd60e51b815260040161056890615bb9565b33613e76818787878787614963565b60005b8451811015613f5c576000858281518110613e9657613e96615e9c565b602002602001015190506000858381518110613eb457613eb4615e9c565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015613f045760405162461bcd60e51b815260040161056890615c41565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290613f41908490615d6e565b9250508190555050505080613f5590615e49565b9050613e79565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613fac929190615a7e565b60405180910390a461367b818787878787614cf9565b6003546001600160a01b03163314611fe95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610568565b6000816001600160401b0381111561403657614036615eb2565b60405190808252806020026020018201604052801561405f578160200160208202803683370190505b5090506000826001600160401b0381111561407c5761407c615eb2565b6040519080825280602002602001820160405280156140a5578160200160208202803683370190505b50905060005b8381101561412857600e546140bf816136d5565b600e548483815181106140d4576140d4615e9c565b60200260200101818152505060018383815181106140f4576140f4615e9c565b6020908102919091010152600e805490600061410f83615e49565b919050555050808061412090615e49565b9150506140ab565b5061198b84838360405180602001604052806000815250614588565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166141bc5760405162461bcd60e51b815260040161056890615bfe565b80518251146141dd5760405162461bcd60e51b815260040161056890615cc2565b600033905061420081856000868660405180602001604052806000815250614963565b60005b83518110156142c557600084828151811061422057614220615e9c565b60200260200101519050600084838151811061423e5761423e615e9c565b602090810291909101810151600084815280835260408082206001600160a01b038c16835290935291909120549091508181101561428e5760405162461bcd60e51b815260040161056890615b27565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806142bd81615e49565b915050614203565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051614316929190615a7e565b60405180910390a460408051602081019091526000905261198b565b816001600160a01b0316836001600160a01b031614156143a65760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610568565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383166144395760405162461bcd60e51b815260040161056890615bfe565b33600061444584614918565b9050600061445284614918565b905061447283876000858560405180602001604052806000815250614963565b6000858152602081815260408083206001600160a01b038a168452909152902054848110156144b35760405162461bcd60e51b815260040161056890615b27565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4604080516020810190915260009052613872565b6000805b825181101561457f57600083828151811061454c5761454c615e9c565b60200260200101519050600d5481116145645761456e565b5060009392505050565b5061457881615e49565b905061452f565b50600192915050565b6001600160a01b0384166145ae5760405162461bcd60e51b815260040161056890615d0a565b81518351146145cf5760405162461bcd60e51b815260040161056890615cc2565b336145df81600087878787614963565b60005b845181101561467a578381815181106145fd576145fd615e9c565b602002602001015160008087848151811061461a5761461a615e9c565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546146629190615d6e565b9091555081905061467281615e49565b9150506145e2565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516146cb929190615a7e565b60405180910390a4611cda81600087878787614cf9565b6000805b8351811015613bfb57600084828151811061470357614703615e9c565b60200260200101519050600084838151811061472157614721615e9c565b60200260200101519050614735828261390f565b1561473f5761474b565b600093505050506112b5565b5050808061475890615e49565b9150506146e6565b60606000601854424433600e54601760006001600e546147809190615da5565b81526020019081526020016000206040516020016147a2959493929190615956565b6040516020818303038152906040528051906020012060001c6147c59190615e64565b90506147da6147d5826001615d6e565b61387b565b91505090565b6001600160a01b0384166148065760405162461bcd60e51b815260040161056890615bb9565b33600061481285614918565b9050600061481f85614918565b905061482f838989858589614963565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156148705760405162461bcd60e51b815260040161056890615c41565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906148ad908490615d6e565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461490d848a8a8a8a8a614ab6565b505050505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061495257614952615e9c565b602090810291909101015292915050565b6001600160a01b0386166000908152601c602052604090205460ff161580156149a557506001600160a01b0385166000908152601c602052604090205460ff16155b80156149ca57506001600160a01b0384166000908152601c602052604090205460ff16155b614a2a5760405162461bcd60e51b815260206004820152602b60248201527f4f70657261746f722c2046726f6d2c206f7220546f204164647265737320697360448201526a08149154d5149250d5115160aa1b6064820152608401610568565b60005b835181101561387257601b6000858381518110614a4c57614a4c615e9c565b60209081029190910181015182528101919091526040016000205460ff1615614aa45760405162461bcd60e51b815260206004820152600a602482015269119b1859d9d95908125160b21b6044820152606401610568565b80614aae81615e49565b915050614a2d565b6001600160a01b0384163b1561367b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190614afa90899089908890889088906004016159f5565b602060405180830381600087803b158015614b1457600080fd5b505af1925050508015614b44575060408051601f3d908101601f19168201909252614b4191810190615554565b60015b614bf157614b50615ec8565b806308c379a01415614b8a5750614b65615ee4565b80614b705750614b8c565b8060405162461bcd60e51b81526004016105689190615aac565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610568565b6001600160e01b0319811663f23a6e6160e01b146138725760405162461bcd60e51b815260040161056890615abf565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310614c605772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310614c8c576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310614caa57662386f26fc10000830492506010015b6305f5e1008310614cc2576305f5e100830492506008015b6127108310614cd657612710830492506004015b60648310614ce8576064830492506002015b600a83106112b55760010192915050565b6001600160a01b0384163b1561367b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190614d3d9089908990889088908890600401615997565b602060405180830381600087803b158015614d5757600080fd5b505af1925050508015614d87575060408051601f3d908101601f19168201909252614d8491810190615554565b60015b614d9357614b50615ec8565b6001600160e01b0319811663bc197c8160e01b146138725760405162461bcd60e51b815260040161056890615abf565b5080546000825590600052602060002090810190611e4b9190614ef2565b828054828255906000526020600020908101928215614e1c579160200282015b82811115614e1c578251825591602001919060010190614e01565b50614e28929150614ef2565b5090565b828054828255906000526020600020908101928215614e1c579160200282015b82811115614e1c5781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190614e4c565b828054614e8b90615de8565b90600052602060002090601f016020900481019282614ead5760008555614e1c565b82601f10614ec657805160ff1916838001178555614e1c565b82800160010185558215614e1c5791820182811115614e1c578251825591602001919060010190614e01565b5b80821115614e285760008155600101614ef3565b80356001600160a01b038116811461284657600080fd5b60008083601f840112614f3057600080fd5b5081356001600160401b03811115614f4757600080fd5b6020830191508360208260051b8501011115614f6257600080fd5b9250929050565b600082601f830112614f7a57600080fd5b81356020614f8782615d4b565b604051614f948282615e1d565b8381528281019150858301600585901b87018401881015614fb457600080fd5b60005b85811015614fd357813584529284019290840190600101614fb7565b5090979650505050505050565b8035801515811461284657600080fd5b600082601f83011261500157600080fd5b81356001600160401b0381111561501a5761501a615eb2565b604051615031601f8301601f191660200182615e1d565b81815284602083860101111561504657600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561507557600080fd5b61507e82614f07565b9392505050565b6000806040838503121561509857600080fd5b6150a183614f07565b91506150af60208401614f07565b90509250929050565b600080600080600060a086880312156150d057600080fd5b6150d986614f07565b94506150e760208701614f07565b935060408601356001600160401b038082111561510357600080fd5b61510f89838a01614f69565b9450606088013591508082111561512557600080fd5b61513189838a01614f69565b9350608088013591508082111561514757600080fd5b5061515488828901614ff0565b9150509295509295909350565b600080600080600060a0868803121561517957600080fd5b61518286614f07565b945061519060208701614f07565b9350604086013592506060860135915060808601356001600160401b038111156151b957600080fd5b61515488828901614ff0565b6000806000606084860312156151da57600080fd5b6151e384614f07565b925060208401356001600160401b03808211156151ff57600080fd5b61520b87838801614f69565b9350604086013591508082111561522157600080fd5b5061522e86828701614f69565b9150509250925092565b6000806040838503121561524b57600080fd5b61525483614f07565b91506150af60208401614fe0565b6000806040838503121561527557600080fd5b61527e83614f07565b946020939093013593505050565b6000806000606084860312156152a157600080fd5b6152aa84614f07565b95602085013595506040909401359392505050565b600080602083850312156152d257600080fd5b82356001600160401b038111156152e857600080fd5b6152f485828601614f1e565b90969095509350505050565b60008060006040848603121561531557600080fd5b83356001600160401b038082111561532c57600080fd5b61533887838801614f1e565b9095509350602086013591508082111561522157600080fd5b6000806040838503121561536457600080fd5b82356001600160401b038082111561537b57600080fd5b818501915085601f83011261538f57600080fd5b8135602061539c82615d4b565b6040516153a98282615e1d565b8381528281019150858301600585901b870184018b10156153c957600080fd5b600096505b848710156153f3576153df81614f07565b8352600196909601959183019183016153ce565b509650508601359250508082111561540a57600080fd5b5061541785828601614f69565b9150509250929050565b60006020828403121561543357600080fd5b81356001600160401b0381111561544957600080fd5b61545584828501614f69565b949350505050565b6000806040838503121561547057600080fd5b82356001600160401b038082111561548757600080fd5b61549386838701614f69565b9350602085013591508082111561540a57600080fd5b6000806000606084860312156154be57600080fd5b83356001600160401b03808211156154d557600080fd5b6154e187838801614f69565b945060208601359150808211156154f757600080fd5b5061550486828701614f69565b92505061551360408501614fe0565b90509250925092565b60006020828403121561552e57600080fd5b61507e82614fe0565b60006020828403121561554957600080fd5b813561507e81615f6d565b60006020828403121561556657600080fd5b815161507e81615f6d565b60006020828403121561558357600080fd5b81356001600160401b0381111561559957600080fd5b61545584828501614ff0565b6000602082840312156155b757600080fd5b5035919050565b600080604083850312156155d157600080fd5b823591506150af60208401614fe0565b6000806000606084860312156155f657600080fd5b8335925061560660208501614fe0565b915060408401356001600160401b0381111561562157600080fd5b61522e86828701614f69565b60008060006060848603121561564257600080fd5b8335925060208401356001600160401b0381111561565f57600080fd5b61550486828701614ff0565b6000806040838503121561567e57600080fd5b50508035926020909101359150565b600080600080608085870312156156a357600080fd5b843593506020850135925060408501356001600160401b03808211156156c857600080fd5b6156d488838901614ff0565b935060608701359150808211156156ea57600080fd5b506156f787828801614ff0565b91505092959194509250565b600081518084526020808501945080840160005b8381101561573357815187529582019590820190600101615717565b509495945050505050565b60008151808452615756816020860160208601615dbc565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061578457607f831692505b60208084108214156157a657634e487b7160e01b600052602260045260246000fd5b8180156157ba57600181146157cb576157f8565b60ff198616895284890196506157f8565b60008881526020902060005b868110156157f05781548b8201529085019083016157d7565b505084890196505b50505050505092915050565b60008351615816818460208801615dbc565b83519083019061582a818360208801615dbc565b64173539b7b760d91b9101908152600501949350505050565b60008351615855818460208801615dbc565b6158618184018561576a565b64173539b7b760d91b815260050195945050505050565b6000825161588a818460208701615dbc565b653434b23232b760d11b92019182525064173539b7b760d91b6006820152600b01919050565b600061507e828461576a565b60006158c8828461576a565b602f60f81b81526001019392505050565b66697066733a2f2f60c81b8152600083516158fb816007850160208801615dbc565b602f60f81b600791840191820152835161591c816008840160208801615dbc565b64173539b7b760d91b60089290910191820152600d01949350505050565b66697066733a2f2f60c81b815260006158c8600783018461576a565b8581528460208201526bffffffffffffffffffffffff198460601b166040820152826054820152600061598c607483018461576a565b979650505050505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906159c390830186615703565b82810360608401526159d58186615703565b905082810360808401526159e9818561573e565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061598c9083018461573e565b6001600160a01b0385168152608060208201819052600090615a539083018661573e565b846040840152828103606084015261598c818561573e565b60208152600061507e6020830184615703565b604081526000615a916040830185615703565b8281036020840152615aa38185615703565b95945050505050565b60208152600061507e602083018461573e565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526006908201526514185d5cd95960d21b604082015260600190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252601b908201527f4e6f74204f776e6572206f722050726f6a656374204c65616465720000000000604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b03821115615d6457615d64615eb2565b5060051b60200190565b60008219821115615d8157615d81615e86565b500190565b6000816000190483118215151615615da057615da0615e86565b500290565b600082821015615db757615db7615e86565b500390565b60005b83811015615dd7578181015183820152602001615dbf565b8381111561198b5750506000910152565b600181811c90821680615dfc57607f821691505b6020821081141561179357634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b0381118282101715615e4257615e42615eb2565b6040525050565b6000600019821415615e5d57615e5d615e86565b5060010190565b600082615e8157634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115615ee15760046000803e5060005160e01c5b90565b600060443d1015615ef25790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715615f2157505050505090565b8285019150815181811115615f395750505050505090565b843d8701016020828501011115615f535750505050505090565b615f6260208286010187615e1d565b509095945050505050565b6001600160e01b031981168114611e4b57600080fdfef09f90b82068747470733a2f2f7777772e68616c66737570657273686f702e636f6d2f20f09f90b8a26469706673582212200ff9763a6e3118ad9181576536c7dd4d7f3c3a42f899ad0659c644edd9b0c99b64736f6c63430008070033516d5952314677484a6a4d71793554513372705132346d4877383264346147463362367a67354a53575253696956

Deployed Bytecode

0x60806040526004361061051a5760003560e01c8063650e926f116102a2578063accc1d5e11610165578063d6199f8d116100cc578063ea7aef5c11610085578063ea7aef5c146110cc578063ed00e653146110e2578063f242432a146110f7578063f2fde38b14611117578063f8f3a1ca14611137578063fa0fda351461115757600080fd5b8063d6199f8d14610feb578063d81d0a151461100b578063d85ed0f41461101e578063d8d9d6bc14611033578063e5211d8b14611063578063e985e9c51461108357600080fd5b8063ba4e5c491161011e578063ba4e5c4914610f1e578063bd85b03914610f3e578063bff67e9b14610f6b578063c6b1fe5814610f8b578063cc979f2714610fab578063d261b6e414610fcb57600080fd5b8063accc1d5e14610e68578063b390c0ab14610e88578063b5b13abc14610ea8578063b5e0e87b14610ec8578063b6906eca14610ee8578063b82741a014610efe57600080fd5b80639c70b51211610209578063a4c2f651116101c2578063a4c2f65114610da2578063a5492f4414610dc2578063a684c47114610de2578063a6d23e1014610e02578063a9cad37b14610e22578063ab80573e14610e5257600080fd5b80639c70b51214610cd8578063a1fc693714610cf2578063a22cb46514610d12578063a2c4c60214610d32578063a370c66814610d52578063a48fc3a914610d8257600080fd5b806384c6ef2f1161025b57806384c6ef2f14610c1e578063869f759414610c385780638da5cb5b14610c65578063943431bf14610c8357806394357c2514610ca357806395d89b4114610cc357600080fd5b8063650e926f14610b7e578063715018a614610b945780637724bad814610ba95780637d929b4f14610bbe5780637f00c7a614610bde57806383ca4b6f14610bfe57600080fd5b8063359cf687116103ea5780634c2612471161035157806352addee51161030a57806352addee514610ace578063533c7cfa14610aee5780635c78222f14610b0e5780635c975abb14610b2e57806362e6031b14610b48578063644e54ab14610b6857600080fd5b80634c261247146109fc5780634cafdb6d14610a1c5780634e1273f414610a325780634f558e7914610a5f5780635183022714610a8f57806351ede79114610aae57600080fd5b806341c63b85116103a357806341c63b85146109465780634271c5fd146109665780634378dfa51461097c578063441664171461099c57806344a0d68a146109bc5780634bef82be146109dc57600080fd5b8063359cf687146108b557806339ba02d0146108cb5780633af32abf146108de5780633c952764146108fe5780633ccfd60b1461091e5780633e4a4e771461092657600080fd5b80631b1004501161048e5780632a9abcb9116104475780632a9abcb9146107f55780632c945f6f146108155780632eb2c2d6146108285780632ed6cd46146108485780632fd723931461087557806333ea51a81461089557600080fd5b80631b1004501461073c5780631c60094b1461075c5780631ee33ca91461078957806321d0a2a01461079f578063239c70ae146107bf578063293d8bb5146107d557600080fd5b80630e89341c116104e05780630e89341c1461067b5780630ec7359f1461069b57806313faede6146106bb57806314bfd6d0146106d1578063156e29f6146107095780631973ea061461071c57600080fd5b80624a84cb146105b4578062fdd58e146105d657806301ffc9a71461060957806302329a291461063957806306fdde031461065957600080fd5b366105af576029546001600160a01b03166105715760405162461bcd60e51b8152602060048201526012602482015271536574205061796f7574204164647265737360701b60448201526064015b60405180910390fd5b60295460405134916001600160a01b03169082156108fc029083906000818181858888f193505050501580156105ab573d6000803e3d6000fd5b5050005b600080fd5b3480156105c057600080fd5b506105d46105cf36600461528c565b61118f565b005b3480156105e257600080fd5b506105f66105f1366004615262565b611227565b6040519081526020015b60405180910390f35b34801561061557600080fd5b50610629610624366004615537565b6112bb565b6040519015158152602001610600565b34801561064557600080fd5b506105d461065436600461551c565b61130b565b34801561066557600080fd5b5061066e611326565b6040516106009190615aac565b34801561068757600080fd5b5061066e6106963660046155a5565b6113b4565b3480156106a757600080fd5b506105d46106b6366004615421565b611799565b3480156106c757600080fd5b506105f660085481565b3480156106dd57600080fd5b506106f16106ec3660046155a5565b6117e5565b6040516001600160a01b039091168152602001610600565b6105d461071736600461528c565b61180f565b34801561072857600080fd5b506105d4610737366004615300565b6118d8565b34801561074857600080fd5b506105d46107573660046155a5565b61199c565b34801561076857600080fd5b506105f6610777366004615063565b60256020526000908152604090205481565b34801561079557600080fd5b506105f660245481565b3480156107ab57600080fd5b5061066e6107ba3660046155a5565b611a07565b3480156107cb57600080fd5b506105f660095481565b3480156107e157600080fd5b506105d46107f03660046155a5565b611a20565b34801561080157600080fd5b506105d461081036600461562d565b611a53565b6105d461082336600461568d565b611bad565b34801561083457600080fd5b506105d46108433660046150b8565b611c95565b34801561085457600080fd5b506105f66108633660046155a5565b60146020526000908152604090205481565b34801561088157600080fd5b506105d46108903660046155a5565b611ce1565b3480156108a157600080fd5b506105d46108b0366004615063565b611cee565b3480156108c157600080fd5b506105f6600d5481565b6105d46108d93660046155a5565b611d18565b3480156108ea57600080fd5b506106296108f9366004615063565b611e4e565b34801561090a57600080fd5b506105d461091936600461551c565b611eb8565b6105d4611ed3565b34801561093257600080fd5b506105d46109413660046154a9565b611feb565b34801561095257600080fd5b506105d46109613660046155e1565b6121da565b34801561097257600080fd5b506105f6602c5481565b34801561098857600080fd5b506105d4610997366004615421565b612328565b3480156109a857600080fd5b506105d46109b736600461562d565b612374565b3480156109c857600080fd5b506105d46109d73660046155a5565b61259b565b3480156109e857600080fd5b506105d46109f73660046155a5565b6125a8565b348015610a0857600080fd5b506105d4610a17366004615571565b6125b5565b348015610a2857600080fd5b506105f660075481565b348015610a3e57600080fd5b50610a52610a4d366004615351565b612661565b6040516106009190615a6b565b348015610a6b57600080fd5b50610629610a7a3660046155a5565b60009081526015602052604090205460ff1690565b348015610a9b57600080fd5b50600c5461062990610100900460ff1681565b348015610aba57600080fd5b506105d4610ac93660046155a5565b61278a565b348015610ada57600080fd5b506105f6610ae93660046155a5565b612797565b348015610afa57600080fd5b506105f6610b09366004615063565b6127b8565b348015610b1a57600080fd5b506105d4610b2936600461551c565b61284b565b348015610b3a57600080fd5b50600c546106299060ff1681565b348015610b5457600080fd5b506105d4610b63366004615262565b612866565b348015610b7457600080fd5b506105f6600a5481565b348015610b8a57600080fd5b506105f6600e5481565b348015610ba057600080fd5b506105d4612979565b348015610bb557600080fd5b5061066e61298b565b348015610bca57600080fd5b506105f6610bd936600461566b565b6129ae565b348015610bea57600080fd5b506105d4610bf93660046155a5565b6129df565b348015610c0a57600080fd5b506105d4610c1936600461545d565b6129ec565b348015610c2a57600080fd5b506016546106299060ff1681565b348015610c4457600080fd5b506105f6610c533660046155a5565b60126020526000908152604090205481565b348015610c7157600080fd5b506003546001600160a01b03166106f1565b348015610c8f57600080fd5b506105d4610c9e3660046155a5565b612a76565b348015610caf57600080fd5b506105f6610cbe36600461566b565b612a83565b348015610ccf57600080fd5b5061066e612a9f565b348015610ce457600080fd5b506020546106299060ff1681565b348015610cfe57600080fd5b506105f6610d0d3660046155a5565b612aac565b348015610d1e57600080fd5b506105d4610d2d366004615238565b612abc565b348015610d3e57600080fd5b506105d4610d4d36600461551c565b612ac7565b348015610d5e57600080fd5b50610629610d6d3660046155a5565b601b6020526000908152604090205460ff1681565b348015610d8e57600080fd5b50600c546106299062010000900460ff1681565b348015610dae57600080fd5b506105d4610dbd366004615063565b612aeb565b348015610dce57600080fd5b506105d4610ddd366004615238565b612b4c565b348015610dee57600080fd5b50602a546106f1906001600160a01b031681565b348015610e0e57600080fd5b506029546106f1906001600160a01b031681565b348015610e2e57600080fd5b50610e42610e3d3660046155a5565b612bb6565b6040516106009493929190615a2f565b348015610e5e57600080fd5b506105f660185481565b348015610e7457600080fd5b506105d4610e833660046152bf565b612d0c565b348015610e9457600080fd5b506105d4610ea336600461566b565b612d6b565b348015610eb457600080fd5b506105d4610ec33660046155a5565b612d9a565b348015610ed457600080fd5b506105d4610ee3366004615300565b612df0565b348015610ef457600080fd5b506105f660235481565b348015610f0a57600080fd5b506105d4610f1936600461562d565b612ed0565b348015610f2a57600080fd5b506106f1610f393660046155a5565b612f82565b348015610f4a57600080fd5b506105f6610f593660046155a5565b60009081526010602052604090205490565b348015610f7757600080fd5b5061066e610f863660046155a5565b612f92565b348015610f9757600080fd5b506105f6610fa63660046155a5565b612fbd565b348015610fb757600080fd5b506105d4610fc63660046151c5565b6130bf565b348015610fd757600080fd5b506105d4610fe63660046155a5565b6131b1565b348015610ff757600080fd5b5061066e6110063660046155a5565b6131cb565b6105d46110193660046151c5565b6131db565b34801561102a57600080fd5b5061066e613494565b34801561103f57600080fd5b5061062961104e366004615063565b601c6020526000908152604090205460ff1681565b34801561106f57600080fd5b506105d461107e3660046155be565b6134a3565b34801561108f57600080fd5b5061062961109e366004615085565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156110d857600080fd5b506105f6600b5481565b3480156110ee57600080fd5b50610629613502565b34801561110357600080fd5b506105d4611112366004615161565b6135b0565b34801561112357600080fd5b506105d4611132366004615063565b6135f5565b34801561114357600080fd5b506105f66111523660046155a5565b61366b565b34801561116357600080fd5b506105f6611172366004615262565b602260209081526000928352604080842090915290825290205481565b611197613692565b600d5482116111d95760405162461bcd60e51b815260206004820152600e60248201526d4944204d757374204265204e657760901b6044820152606401610568565b6111e2826136d5565b60008281526010602052604081208054839290611200908490615d6e565b9250508190555061122283838360405180602001604052806000815250613792565b505050565b60006001600160a01b0383166112925760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b6064820152608401610568565b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b14806112ec57506001600160e01b031982166303a24d0760e21b145b806112b557506301ffc9a760e01b6001600160e01b03198316146112b5565b611313613692565b600c805460ff1916911515919091179055565b6004805461133390615de8565b80601f016020809104026020016040519081016040528092919081815260200182805461135f90615de8565b80156113ac5780601f10611381576101008083540402835291602001916113ac565b820191906000526020600020905b81548152906001019060200180831161138f57829003601f168201915b505050505081565b6060600060066040516020016113ca919061593a565b60408051601f1981840301815291815260008581526015602052205490915060ff1615611761576000831180156114035750600d548311155b1561173157600c54610100900460ff1661143f57806040516020016114289190615878565b604051602081830303815290604052915050919050565b604080516000808252602080830180855283519020878352600f90915290839020909261146c92016158b0565b6040516020818303038152906040528051906020012014611526576000838152600f6020526040902080546114a090615de8565b80601f01602080910402602001604051908101604052809291908181526020018280546114cc90615de8565b80156115195780601f106114ee57610100808354040283529160200191611519565b820191906000526020600020905b8154815290600101906020018083116114fc57829003601f168201915b5050505050915050919050565b60005b601d548110156116a7578061153d57611697565b601d818154811061155057611550615e9c565b906000526020600020015484116116975760408051600081526020810191829052519020601e80548390811061158857611588615e9c565b906000526020600020016040516020016115a291906158b0565b60405160208183030381529060405280519060200120146115fc57601e81815481106115d0576115d0615e9c565b906000526020600020016040516020016115ea919061593a565b60405160208183030381529060405291505b60408051600081526020810191829052519020601f80548390811061162357611623615e9c565b9060005260206000200160405160200161163d91906158b0565b604051602081830303815290604052805190602001201461169757601f818154811061166b5761166b615e9c565b9060005260206000200160405160200161168591906158bc565b60405160208183030381529060405291505b6116a081615e49565b9050611529565b5060408051600080825260208083018085528351902087835260179091529083902090926116d592016158b0565b60405160208183030381529060405280519060200120141561170c57806116fb8461387b565b604051602001611428929190615804565b8060176000858152602001908152602001600020604051602001611428929190615843565b505060408051808201909152601281527115549248111bd95cc8139bdd08115e1a5cdd60721b6020820152919050565b5050604080518082019091526014815273151bdad95b88111bd95cc8139bdd08115e1a5cdd60621b6020820152919050565b50919050565b6117a1613692565b6117ad60266000614dc3565b80516117c0906026906020840190614de1565b50806000815181106117d4576117d4615e9c565b602002602001015160248190555050565b602b81815481106117f557600080fd5b6000918252602090912001546001600160a01b0316905081565b600c5462010000900460ff16156118685760405162461bcd60e51b815260206004820152601a60248201527f5265717569726573206d696e74496e4f726465722046616c73650000000000006044820152606401610568565b600c5460ff161561188b5760405162461bcd60e51b815260040161056890615b07565b611895828261390f565b6118cf5760405162461bcd60e51b815260206004820152600b60248201526a10d0539393d5081352539560aa1b6044820152606401610568565b6111d981613c05565b6118e0613692565b6118ec60216000614dc3565b6118f860218484614e2c565b50805161190457505050565b8051600114156119915760005b8281101561198b578160008151811061192c5761192c615e9c565b60200260200101516025600086868581811061194a5761194a615e9c565b905060200201602081019061195f9190615063565b6001600160a01b031681526020810191909152604001600020558061198381615e49565b915050611911565b50505050565b611222838383612df0565b731ba3fe6311131a67d97f20162522490c3648f6e233146119ed5760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b6044820152606401610568565b80602c60008282546119ff9190615d6e565b909155505050565b6017602052600090815260409020805461133390615de8565b611a28613692565b80602481905550806026600081548110611a4457611a44615e9c565b60009182526020909120015550565b611a5b613692565b600d548311611abc5760405162461bcd60e51b815260206004820152602760248201527f4944204d757374204e6f742042652046726f6d204f726967696e616c20436f6c6044820152663632b1ba34b7b760c91b6064820152608401610568565b8015611b5057600082611ace8561387b565b604051602001611adf9291906158d9565b60408051601f198184030181529181526000868152600f60209081529190208251929350611b11929091840190614e7f565b50837f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b82604051611b429190615aac565b60405180910390a250505050565b6000838152600f602090815260409091208351611b6f92850190614e7f565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b83604051611ba09190615aac565b60405180910390a2505050565b604080516080810182523381526020808201858152928201869052606082018490526028805460018101825560009190915282517fe16da923a2d88192e5070f37b4571d58682c0d66212ec634d495f33de3f77ab5600490920291820180546001600160a01b0319166001600160a01b0390921691909117815593518051939493611c61937fe16da923a2d88192e5070f37b4571d58682c0d66212ec634d495f33de3f77ab6909301929190910190614e7f565b506040820151600282015560608201518051611c87916003840191602090910190614e7f565b50505061198b33858561180f565b6001600160a01b038516331480611cb15750611cb1853361109e565b611ccd5760405162461bcd60e51b815260040161056890615b6b565b611cda8585858585613e20565b5050505050565b611ce9613692565b600e55565b611cf6613fc2565b602980546001600160a01b0319166001600160a01b0392909216919091179055565b600c5462010000900460ff16611d675760405162461bcd60e51b81526020600482015260146024820152732932b8bab4b932b99036b4b73a24b727b93232b960611b6044820152606401610568565b600c5460ff1615611d8a5760405162461bcd60e51b815260040161056890615b07565b60075460009081526015602052604090205460ff1615611dd75760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b6044820152606401610568565b6007546001600e5483611dea9190615d6e565b611df49190615da5565b1115611e385760405162461bcd60e51b8152602060048201526013602482015272141b19585cd948131bddd95c88105b5bdd5b9d606a1b6044820152606401610568565b611e4181613c05565b611e4b338261401c565b50565b6000805b602154811015611eaf57826001600160a01b031660218281548110611e7957611e79615e9c565b6000918252602090912001546001600160a01b03161415611e9d5750600192915050565b80611ea781615e49565b915050611e52565b50600092915050565b611ec0613692565b6020805460ff1916911515919091179055565b611edb613692565b6029546001600160a01b0316611f285760405162461bcd60e51b8152602060048201526012602482015271536574205061796f7574204164647265737360701b6044820152606401610568565b602d54602c5411611f9c57604051600090731ba3fe6311131a67d97f20162522490c3648f6e29047908381818185875af1925050503d8060008114611f89576040519150601f19603f3d011682016040523d82523d6000602084013e611f8e565b606091505b5050905080611e4b57600080fd5b6029546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611f89576040519150601f19603f3d011682016040523d82523d6000602084013e611f8e565b565b611ff3613692565b8015612103576000836001855161200a9190615da5565b8151811061201a5761201a615e9c565b6020026020010151905060005b601d54811015611cda57601d818154811061204457612044615e9c565b90600052602060002001548214156120f35783600185516120659190615da5565b8151811061207557612075615e9c565b602090810291909101810151600084815260149092526040822055845185906120a090600190615da5565b815181106120b0576120b0615e9c565b602002602001015111156120dc576000828152601360205260409020805460ff191660011790556120f3565b6000828152601360205260409020805460ff191690555b6120fc81615e49565b9050612027565b60005b835181101561198b57600084828151811061212357612123615e9c565b6020026020010151905083828151811061213f5761213f615e9c565b60200260200101516012600083815260200190815260200160002060008282546121699190615d6e565b92505081905550600084838151811061218457612184615e9c565b602002602001015111156121b0576000818152601160205260409020805460ff191660011790556121c7565b6000818152601160205260409020805460ff191690555b50806121d281615e49565b915050612106565b6121e2613692565b81156123095760005b601d548110156122e95783601d828154811061220957612209615e9c565b9060005260206000200154141561221f576122e9565b601d805461222f90600190615da5565b8154811061223f5761223f615e9c565b9060005260206000200154601d828154811061225d5761225d615e9c565b90600052602060002001541480156122925750601d818154811061228357612283615e9c565b90600052602060002001548414155b156122d75760405162461bcd60e51b81526020600482015260156024820152740becadcc8928840d2e640dcdee840c24084c2e8c6d605b1b6044820152606401610568565b806122e181615e49565b9150506121eb565b506000838152601a60209081526040909120825161198b92840190614de1565b6000838152601960209081526040909120825161198b92840190614de1565b612330613692565b61233c60276000614dc3565b805161234f906027906020840190614de1565b508060008151811061236357612363615e9c565b6020026020010151600b8190555050565b61237c613692565b601d805461238c90600190615da5565b8154811061239c5761239c615e9c565b9060005260206000200154831161241b5760405162461bcd60e51b815260206004820152603760248201527f4c617374204261746368204944206d757374206265206772656174657220746860448201527f616e2070726576696f757320626174636820746f74616c0000000000000000006064820152608401610568565b80156124de57601d805460018181019092557f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f01849055601e805491820181556000528251612491917f50bb669a95c7b50b7e8a6f09454034b2b14cf2b85c730dca9a539ca82cb6e35001906020850190614e7f565b50601f8054600181018255600091825260408051602081019182905283905261198b927fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d80790920191614e7f565b601d805460018181019092557f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f01849055601f80549182018155600052825161254e917fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d80701906020850190614e7f565b50601e8054600181018255600091825260408051602081019182905283905261198b927f50bb669a95c7b50b7e8a6f09454034b2b14cf2b85c730dca9a539ca82cb6e35090920191614e7f565b6125a3613692565b600855565b6125b0613692565b601855565b6125bd613692565b600c54610100900460ff16156126085760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e4814995d99585b195960821b6044820152606401610568565b805161261b906006906020840190614e7f565b5080601e60008154811061263157612631615e9c565b90600052602060002001908051906020019061264e929190614e7f565b5050600c805461ff001916610100179055565b606081518351146126c65760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610568565b600083516001600160401b038111156126e1576126e1615eb2565b60405190808252806020026020018201604052801561270a578160200160208202803683370190505b50905060005b84518110156127825761275585828151811061272e5761272e615e9c565b602002602001015185838151811061274857612748615e9c565b6020026020010151611227565b82828151811061276757612767615e9c565b602090810291909101015261277b81615e49565b9050612710565b509392505050565b612792613692565b600b55565b601d81815481106127a757600080fd5b600091825260209091200154905081565b60006127c2613502565b61283e5760205460ff1615612836576001600160a01b0382166000908152602560205260409020546127f657505060245490565b6001600160a01b03821660009081526025602052604090205460268054909190811061282457612824615e9c565b90600052602060002001549050919050565b505060085490565b506000919050565b919050565b612853613692565b6016805460ff1916911515919091179055565b61286e613692565b600c5462010000900460ff166128bd5760405162461bcd60e51b81526020600482015260146024820152732932b8bab4b932b99036b4b73a24b727b93232b960611b6044820152606401610568565b60075460009081526015602052604090205460ff161561290a5760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b6044820152606401610568565b6007546001600e548361291d9190615d6e565b6129279190615da5565b111561296b5760405162461bcd60e51b8152602060048201526013602482015272141b19585cd948131bddd95c88105b5bdd5b9d606a1b6044820152606401610568565b612975828261401c565b5050565b612981613fc2565b611fe96000614144565b60606000604051806060016040528060288152602001615f846028913992915050565b601a60205281600052604060002081815481106129ca57600080fd5b90600052602060002001600091509150505481565b6129e7613692565b600955565b60005b8251811015612a6a576000838281518110612a0c57612a0c615e9c565b60200260200101519050828281518110612a2857612a28615e9c565b6020026020010151601060008381526020019081526020016000206000828254612a529190615da5565b90915550612a639150829050615e49565b90506129ef565b50612975338383614196565b612a7e613692565b602355565b601960205281600052604060002081815481106129ca57600080fd5b6005805461133390615de8565b602681815481106127a757600080fd5b612975338383614332565b612acf613692565b600c8054911515620100000262ff000019909216919091179055565b6003546001600160a01b0316331480612b0e5750602a546001600160a01b031633145b612b2a5760405162461bcd60e51b815260040161056890615c8b565b602a80546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b0316331480612b6f5750602a546001600160a01b031633145b612b8b5760405162461bcd60e51b815260040161056890615c8b565b6001600160a01b03919091166000908152601c60205260409020805460ff1916911515919091179055565b60288181548110612bc657600080fd5b6000918252602090912060049091020180546001820180546001600160a01b03909216935090612bf590615de8565b80601f0160208091040260200160405190810160405280929190818152602001828054612c2190615de8565b8015612c6e5780601f10612c4357610100808354040283529160200191612c6e565b820191906000526020600020905b815481529060010190602001808311612c5157829003601f168201915b505050505090806002015490806003018054612c8990615de8565b80601f0160208091040260200160405190810160405280929190818152602001828054612cb590615de8565b8015612d025780601f10612cd757610100808354040283529160200191612d02565b820191906000526020600020905b815481529060010190602001808311612ce557829003601f168201915b5050505050905084565b612d14613692565b6003546001600160a01b0316331480612d375750602a546001600160a01b031633145b612d535760405162461bcd60e51b815260040161056890615c8b565b612d5f602b6000614dc3565b611222602b8383614e2c565b60008281526010602052604081208054839290612d89908490615da5565b909155506129759050338383614413565b731ba3fe6311131a67d97f20162522490c3648f6e23314612deb5760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b6044820152606401610568565b602d55565b612df8613692565b80518214612e545760405162461bcd60e51b815260206004820152602360248201527f5573657273204172726179204e6f7420457175616c20546f205469657220417260448201526272617960e81b6064820152608401610568565b60005b8281101561198b57818181518110612e7157612e71615e9c565b602002602001015160256000868685818110612e8f57612e8f615e9c565b9050602002016020810190612ea49190615063565b6001600160a01b0316815260208101919091526040016000205580612ec881615e49565b915050612e57565b612ed8613692565b82612f375760405162461bcd60e51b815260206004820152602960248201527f426174636820496e6465782043616e6e6f74204265204f726967696e616c204360448201526837b63632b1ba34b7b760b91b6064820152608401610568565b8015612f6e5781601e8481548110612f5157612f51615e9c565b90600052602060002001908051906020019061198b929190614e7f565b81601f8481548110612f5157612f51615e9c565b602181815481106117f557600080fd5b601f8181548110612fa257600080fd5b90600052602060002001600091509050805461133390615de8565b60008181526012602052604081205415612fe4575060009081526012602052604090205490565b60005b601d54811015611eaf57821580159061301d5750601d818154811061300e5761300e615e9c565b90600052602060002001548311155b801561304f5750601d613031600183615da5565b8154811061304157613041615e9c565b906000526020600020015483115b156130ad576000601d828154811061306957613069615e9c565b9060005260206000200154905060146000828152602001908152602001600020546000146130a7576000908152601460205260409020549392505050565b50611eaf565b806130b781615e49565b915050612fe7565b6130c7613692565b6130d08261452b565b1561310e5760405162461bcd60e51b815260206004820152600e60248201526d4944204d757374204265204e657760901b6044820152606401610568565b60005b825181101561319557600083828151811061312e5761312e615e9c565b60200260200101519050613141816136d5565b82828151811061315357613153615e9c565b602002602001015160106000838152602001908152602001600020600082825461317d9190615d6e565b9091555061318e9150829050615e49565b9050613111565b5061122283838360405180602001604052806000815250614588565b6131b9613692565b80600760008282546119ff9190615d6e565b601e8181548110612fa257600080fd5b600c5462010000900460ff16156132345760405162461bcd60e51b815260206004820152601a60248201527f5265717569726573206d696e74496e4f726465722046616c73650000000000006044820152606401610568565b600c5460ff16156132575760405162461bcd60e51b815260040161056890615b07565b600954825111156132995760405162461bcd60e51b815260206004820152600c60248201526b546f6f204d616e792049447360a01b6044820152606401610568565b80518251146132ea5760405162461bcd60e51b815260206004820152601960248201527f49447320616e6420416d6f756e7473204e6f7420457175616c000000000000006044820152606401610568565b6132f482826146e2565b6133345760405162461bcd60e51b8152602060048201526011602482015270086829c9c9ea8409a929ca8408482a8869607b1b6044820152606401610568565b6000805b825181101561337a5782818151811061335357613353615e9c565b6020026020010151826133669190615d6e565b91508061337281615e49565b915050613338565b50600a548111156133cd5760405162461bcd60e51b815260206004820152601b60248201527f426174636820416d6f756e74204c696d697420457863656564656400000000006044820152606401610568565b6133d681613c05565b60005b83518110156134785760008482815181106133f6576133f6615e9c565b60200260200101519050613409816136d5565b83828151811061341b5761341b615e9c565b60200260200101516010600087858151811061343957613439615e9c565b60200260200101518152602001908152602001600020600082825461345e9190615d6e565b90915550829150613470905081615e49565b9150506133d9565b5061198b84848460405180602001604052806000815250614588565b606061349e614760565b905090565b6003546001600160a01b03163314806134c65750602a546001600160a01b031633145b6134e25760405162461bcd60e51b815260040161056890615c8b565b6000918252601b6020526040909120805460ff1916911515919091179055565b60006135166003546001600160a01b031690565b6001600160a01b0316336001600160a01b0316148061353f5750602a546001600160a01b031633145b1561354a5750600190565b602b54156135aa5760005b602b548110156135a857602b818154811061357257613572615e9c565b6000918252602090912001546001600160a01b031633141561359657600191505090565b806135a081615e49565b915050613555565b505b50600090565b6001600160a01b0385163314806135cc57506135cc853361109e565b6135e85760405162461bcd60e51b815260040161056890615b6b565b611cda85858585856147e0565b6135fd613fc2565b6001600160a01b0381166136625760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610568565b611e4b81614144565b602781815481106127a757600080fd5b505050505050565b6001600160a01b03163b151590565b61369a613502565b611fe95760405162461bcd60e51b815260206004820152600c60248201526b2737ba1030b71030b236b4b760a11b6044820152606401610568565b60008181526015602052604090205460ff1661375c576000818152601560209081526040808320805460ff19908116600117909155601b90925290912080549091169055600c5462010000900460ff161561375c57600081815260126020908152604080832060019081905560118352818420805460ff1916821790556010909252909120555b60165460ff1615611e4b5761376f614760565b600082815260176020908152604090912082516129759391929190910190614e7f565b6001600160a01b0384166137b85760405162461bcd60e51b815260040161056890615d0a565b3360006137c485614918565b905060006137d185614918565b90506137e283600089858589614963565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290613812908490615d6e565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461387283600089898989614ab6565b50505050505050565b6060600061388883614c21565b60010190506000816001600160401b038111156138a7576138a7615eb2565b6040519080825280601f01601f1916602001820160405280156138d1576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461390a57612782565b6138db565b60008281526011602052604081205460ff16156139945760008211801561393857506009548211155b80156139445750600083115b801561395257506007548311155b8015613982575060008381526012602090815260408083205460109092529091205461397f908490615d6e565b11155b1561398c576139c3565b5060006112b5565b6000821180156139a657506009548211155b80156139b25750600083115b80156139825750600754831161398c575b60008381526019602052604090205415613a495760005b600084815260196020526040902054811015613a475760008481526019602052604081208054613a2691339185908110613a1657613a16615e9c565b9060005260206000200154611227565b11613a355760009150506112b5565b80613a3f81615e49565b9150506139da565b505b60005b601d54811015613bfb578015801590613a825750601d8181548110613a7357613a73615e9c565b90600052602060002001548411155b8015613ab45750601d613a96600183615da5565b81548110613aa657613aa6615e9c565b906000526020600020015484115b15613be9576000601d8281548110613ace57613ace615e9c565b6000918252602080832090910154808352601a90915260409091205490915015613b565760005b6000828152601a6020526040902054811015613b54576000828152601a602052604081208054613b3191339185908110613a1657613a16615e9c565b11613b4257600093505050506112b5565b80613b4c81615e49565b915050613af5565b505b60008181526013602052604090205460ff1615613be157600084118015613b7f57506009548411155b8015613b8b5750600085115b8015613b9957506007548511155b8015613bcc5750600081815260146020908152604080832054888452601090925290912054613bc9908690615d6e565b11155b15613bd657613be7565b6000925050506112b5565b50613be9565b505b80613bf381615e49565b915050613a4c565b5060019392505050565b613c0d613502565b611e4b5760205460ff1615613d9e57613c2533611e4e565b613c635760405162461bcd60e51b815260206004820152600f60248201526e139bdd0815da1a5d195b1a5cdd1959608a1b6044820152606401610568565b33600081815260226020908152604080832060235484528252808320549383526025909152902054602780549091908110613ca057613ca0615e9c565b90600052602060002001548282613cb79190615d6e565b1115613d0f5760405162461bcd60e51b815260206004820152602160248201527f4578636565646564204d61782057686974656c697374204d696e74204c696d696044820152601d60fa1b6064820152608401610568565b613d18336127b8565b613d229083615d86565b341015613d665760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b6044820152606401610568565b336000908152602260209081526040808320602354845290915281208054849290613d92908490615d6e565b90915550613df5915050565b613da7336127b8565b613db19082615d86565b341015613df55760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e647360701b6044820152606401610568565b600034118015613e095750602d54602c5411155b15611e4b5734602c60008282546119ff9190615d6e565b8151835114613e415760405162461bcd60e51b815260040161056890615cc2565b6001600160a01b038416613e675760405162461bcd60e51b815260040161056890615bb9565b33613e76818787878787614963565b60005b8451811015613f5c576000858281518110613e9657613e96615e9c565b602002602001015190506000858381518110613eb457613eb4615e9c565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015613f045760405162461bcd60e51b815260040161056890615c41565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290613f41908490615d6e565b9250508190555050505080613f5590615e49565b9050613e79565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613fac929190615a7e565b60405180910390a461367b818787878787614cf9565b6003546001600160a01b03163314611fe95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610568565b6000816001600160401b0381111561403657614036615eb2565b60405190808252806020026020018201604052801561405f578160200160208202803683370190505b5090506000826001600160401b0381111561407c5761407c615eb2565b6040519080825280602002602001820160405280156140a5578160200160208202803683370190505b50905060005b8381101561412857600e546140bf816136d5565b600e548483815181106140d4576140d4615e9c565b60200260200101818152505060018383815181106140f4576140f4615e9c565b6020908102919091010152600e805490600061410f83615e49565b919050555050808061412090615e49565b9150506140ab565b5061198b84838360405180602001604052806000815250614588565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166141bc5760405162461bcd60e51b815260040161056890615bfe565b80518251146141dd5760405162461bcd60e51b815260040161056890615cc2565b600033905061420081856000868660405180602001604052806000815250614963565b60005b83518110156142c557600084828151811061422057614220615e9c565b60200260200101519050600084838151811061423e5761423e615e9c565b602090810291909101810151600084815280835260408082206001600160a01b038c16835290935291909120549091508181101561428e5760405162461bcd60e51b815260040161056890615b27565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806142bd81615e49565b915050614203565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051614316929190615a7e565b60405180910390a460408051602081019091526000905261198b565b816001600160a01b0316836001600160a01b031614156143a65760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610568565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383166144395760405162461bcd60e51b815260040161056890615bfe565b33600061444584614918565b9050600061445284614918565b905061447283876000858560405180602001604052806000815250614963565b6000858152602081815260408083206001600160a01b038a168452909152902054848110156144b35760405162461bcd60e51b815260040161056890615b27565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4604080516020810190915260009052613872565b6000805b825181101561457f57600083828151811061454c5761454c615e9c565b60200260200101519050600d5481116145645761456e565b5060009392505050565b5061457881615e49565b905061452f565b50600192915050565b6001600160a01b0384166145ae5760405162461bcd60e51b815260040161056890615d0a565b81518351146145cf5760405162461bcd60e51b815260040161056890615cc2565b336145df81600087878787614963565b60005b845181101561467a578381815181106145fd576145fd615e9c565b602002602001015160008087848151811061461a5761461a615e9c565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546146629190615d6e565b9091555081905061467281615e49565b9150506145e2565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516146cb929190615a7e565b60405180910390a4611cda81600087878787614cf9565b6000805b8351811015613bfb57600084828151811061470357614703615e9c565b60200260200101519050600084838151811061472157614721615e9c565b60200260200101519050614735828261390f565b1561473f5761474b565b600093505050506112b5565b5050808061475890615e49565b9150506146e6565b60606000601854424433600e54601760006001600e546147809190615da5565b81526020019081526020016000206040516020016147a2959493929190615956565b6040516020818303038152906040528051906020012060001c6147c59190615e64565b90506147da6147d5826001615d6e565b61387b565b91505090565b6001600160a01b0384166148065760405162461bcd60e51b815260040161056890615bb9565b33600061481285614918565b9050600061481f85614918565b905061482f838989858589614963565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156148705760405162461bcd60e51b815260040161056890615c41565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906148ad908490615d6e565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461490d848a8a8a8a8a614ab6565b505050505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061495257614952615e9c565b602090810291909101015292915050565b6001600160a01b0386166000908152601c602052604090205460ff161580156149a557506001600160a01b0385166000908152601c602052604090205460ff16155b80156149ca57506001600160a01b0384166000908152601c602052604090205460ff16155b614a2a5760405162461bcd60e51b815260206004820152602b60248201527f4f70657261746f722c2046726f6d2c206f7220546f204164647265737320697360448201526a08149154d5149250d5115160aa1b6064820152608401610568565b60005b835181101561387257601b6000858381518110614a4c57614a4c615e9c565b60209081029190910181015182528101919091526040016000205460ff1615614aa45760405162461bcd60e51b815260206004820152600a602482015269119b1859d9d95908125160b21b6044820152606401610568565b80614aae81615e49565b915050614a2d565b6001600160a01b0384163b1561367b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190614afa90899089908890889088906004016159f5565b602060405180830381600087803b158015614b1457600080fd5b505af1925050508015614b44575060408051601f3d908101601f19168201909252614b4191810190615554565b60015b614bf157614b50615ec8565b806308c379a01415614b8a5750614b65615ee4565b80614b705750614b8c565b8060405162461bcd60e51b81526004016105689190615aac565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610568565b6001600160e01b0319811663f23a6e6160e01b146138725760405162461bcd60e51b815260040161056890615abf565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310614c605772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310614c8c576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310614caa57662386f26fc10000830492506010015b6305f5e1008310614cc2576305f5e100830492506008015b6127108310614cd657612710830492506004015b60648310614ce8576064830492506002015b600a83106112b55760010192915050565b6001600160a01b0384163b1561367b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190614d3d9089908990889088908890600401615997565b602060405180830381600087803b158015614d5757600080fd5b505af1925050508015614d87575060408051601f3d908101601f19168201909252614d8491810190615554565b60015b614d9357614b50615ec8565b6001600160e01b0319811663bc197c8160e01b146138725760405162461bcd60e51b815260040161056890615abf565b5080546000825590600052602060002090810190611e4b9190614ef2565b828054828255906000526020600020908101928215614e1c579160200282015b82811115614e1c578251825591602001919060010190614e01565b50614e28929150614ef2565b5090565b828054828255906000526020600020908101928215614e1c579160200282015b82811115614e1c5781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190614e4c565b828054614e8b90615de8565b90600052602060002090601f016020900481019282614ead5760008555614e1c565b82601f10614ec657805160ff1916838001178555614e1c565b82800160010185558215614e1c5791820182811115614e1c578251825591602001919060010190614e01565b5b80821115614e285760008155600101614ef3565b80356001600160a01b038116811461284657600080fd5b60008083601f840112614f3057600080fd5b5081356001600160401b03811115614f4757600080fd5b6020830191508360208260051b8501011115614f6257600080fd5b9250929050565b600082601f830112614f7a57600080fd5b81356020614f8782615d4b565b604051614f948282615e1d565b8381528281019150858301600585901b87018401881015614fb457600080fd5b60005b85811015614fd357813584529284019290840190600101614fb7565b5090979650505050505050565b8035801515811461284657600080fd5b600082601f83011261500157600080fd5b81356001600160401b0381111561501a5761501a615eb2565b604051615031601f8301601f191660200182615e1d565b81815284602083860101111561504657600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561507557600080fd5b61507e82614f07565b9392505050565b6000806040838503121561509857600080fd5b6150a183614f07565b91506150af60208401614f07565b90509250929050565b600080600080600060a086880312156150d057600080fd5b6150d986614f07565b94506150e760208701614f07565b935060408601356001600160401b038082111561510357600080fd5b61510f89838a01614f69565b9450606088013591508082111561512557600080fd5b61513189838a01614f69565b9350608088013591508082111561514757600080fd5b5061515488828901614ff0565b9150509295509295909350565b600080600080600060a0868803121561517957600080fd5b61518286614f07565b945061519060208701614f07565b9350604086013592506060860135915060808601356001600160401b038111156151b957600080fd5b61515488828901614ff0565b6000806000606084860312156151da57600080fd5b6151e384614f07565b925060208401356001600160401b03808211156151ff57600080fd5b61520b87838801614f69565b9350604086013591508082111561522157600080fd5b5061522e86828701614f69565b9150509250925092565b6000806040838503121561524b57600080fd5b61525483614f07565b91506150af60208401614fe0565b6000806040838503121561527557600080fd5b61527e83614f07565b946020939093013593505050565b6000806000606084860312156152a157600080fd5b6152aa84614f07565b95602085013595506040909401359392505050565b600080602083850312156152d257600080fd5b82356001600160401b038111156152e857600080fd5b6152f485828601614f1e565b90969095509350505050565b60008060006040848603121561531557600080fd5b83356001600160401b038082111561532c57600080fd5b61533887838801614f1e565b9095509350602086013591508082111561522157600080fd5b6000806040838503121561536457600080fd5b82356001600160401b038082111561537b57600080fd5b818501915085601f83011261538f57600080fd5b8135602061539c82615d4b565b6040516153a98282615e1d565b8381528281019150858301600585901b870184018b10156153c957600080fd5b600096505b848710156153f3576153df81614f07565b8352600196909601959183019183016153ce565b509650508601359250508082111561540a57600080fd5b5061541785828601614f69565b9150509250929050565b60006020828403121561543357600080fd5b81356001600160401b0381111561544957600080fd5b61545584828501614f69565b949350505050565b6000806040838503121561547057600080fd5b82356001600160401b038082111561548757600080fd5b61549386838701614f69565b9350602085013591508082111561540a57600080fd5b6000806000606084860312156154be57600080fd5b83356001600160401b03808211156154d557600080fd5b6154e187838801614f69565b945060208601359150808211156154f757600080fd5b5061550486828701614f69565b92505061551360408501614fe0565b90509250925092565b60006020828403121561552e57600080fd5b61507e82614fe0565b60006020828403121561554957600080fd5b813561507e81615f6d565b60006020828403121561556657600080fd5b815161507e81615f6d565b60006020828403121561558357600080fd5b81356001600160401b0381111561559957600080fd5b61545584828501614ff0565b6000602082840312156155b757600080fd5b5035919050565b600080604083850312156155d157600080fd5b823591506150af60208401614fe0565b6000806000606084860312156155f657600080fd5b8335925061560660208501614fe0565b915060408401356001600160401b0381111561562157600080fd5b61522e86828701614f69565b60008060006060848603121561564257600080fd5b8335925060208401356001600160401b0381111561565f57600080fd5b61550486828701614ff0565b6000806040838503121561567e57600080fd5b50508035926020909101359150565b600080600080608085870312156156a357600080fd5b843593506020850135925060408501356001600160401b03808211156156c857600080fd5b6156d488838901614ff0565b935060608701359150808211156156ea57600080fd5b506156f787828801614ff0565b91505092959194509250565b600081518084526020808501945080840160005b8381101561573357815187529582019590820190600101615717565b509495945050505050565b60008151808452615756816020860160208601615dbc565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061578457607f831692505b60208084108214156157a657634e487b7160e01b600052602260045260246000fd5b8180156157ba57600181146157cb576157f8565b60ff198616895284890196506157f8565b60008881526020902060005b868110156157f05781548b8201529085019083016157d7565b505084890196505b50505050505092915050565b60008351615816818460208801615dbc565b83519083019061582a818360208801615dbc565b64173539b7b760d91b9101908152600501949350505050565b60008351615855818460208801615dbc565b6158618184018561576a565b64173539b7b760d91b815260050195945050505050565b6000825161588a818460208701615dbc565b653434b23232b760d11b92019182525064173539b7b760d91b6006820152600b01919050565b600061507e828461576a565b60006158c8828461576a565b602f60f81b81526001019392505050565b66697066733a2f2f60c81b8152600083516158fb816007850160208801615dbc565b602f60f81b600791840191820152835161591c816008840160208801615dbc565b64173539b7b760d91b60089290910191820152600d01949350505050565b66697066733a2f2f60c81b815260006158c8600783018461576a565b8581528460208201526bffffffffffffffffffffffff198460601b166040820152826054820152600061598c607483018461576a565b979650505050505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906159c390830186615703565b82810360608401526159d58186615703565b905082810360808401526159e9818561573e565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061598c9083018461573e565b6001600160a01b0385168152608060208201819052600090615a539083018661573e565b846040840152828103606084015261598c818561573e565b60208152600061507e6020830184615703565b604081526000615a916040830185615703565b8281036020840152615aa38185615703565b95945050505050565b60208152600061507e602083018461573e565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526006908201526514185d5cd95960d21b604082015260600190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252601b908201527f4e6f74204f776e6572206f722050726f6a656374204c65616465720000000000604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b03821115615d6457615d64615eb2565b5060051b60200190565b60008219821115615d8157615d81615e86565b500190565b6000816000190483118215151615615da057615da0615e86565b500290565b600082821015615db757615db7615e86565b500390565b60005b83811015615dd7578181015183820152602001615dbf565b8381111561198b5750506000910152565b600181811c90821680615dfc57607f821691505b6020821081141561179357634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b0381118282101715615e4257615e42615eb2565b6040525050565b6000600019821415615e5d57615e5d615e86565b5060010190565b600082615e8157634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115615ee15760046000803e5060005160e01c5b90565b600060443d1015615ef25790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715615f2157505050505090565b8285019150815181811115615f395750505050505090565b843d8701016020828501011115615f535750505050505090565b615f6260208286010187615e1d565b509095945050505050565b6001600160e01b031981168114611e4b57600080fdfef09f90b82068747470733a2f2f7777772e68616c66737570657273686f702e636f6d2f20f09f90b8a26469706673582212200ff9763a6e3118ad9181576536c7dd4d7f3c3a42f899ad0659c644edd9b0c99b64736f6c63430008070033

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.