ETH Price: $2,992.41 (+3.80%)
Gas: 3 Gwei

LeprechaunTown_WTF_v2 (LTWTF2)
 

Overview

TokenID

641

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
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:
LeprechaunTown_WTF_v2

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : LeprechaunTown_WTF_v2.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";

/*
     .-. .-.
    (   |   )
  .-.:  |  ;,-.
 (_ __`.|.'_ __)
 (    ./Y\.    )
  `-.-' | `-.-'
        \ 🌈 ☘️ 2️⃣
*/

contract LeprechaunTown_WTF_v2 is ERC1155, Ownable {
    string public name = "LeprechaunTown_WTF_v2";
    string public symbol = "LTWTF2";
    string private ipfsCID = "QmUGH1et5D6aa67r4XUVuD2eVoVQZQCfBqDZsm1fh6SfKU";
    uint256 public collectionTotal = 7608;
    uint256 public cost = 0.03 ether;
    uint256 public maxMintAmount = 10;
    uint256 public maxBatchMintAmount = 10;

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

    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 = 20;

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

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

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

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

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

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

        projectLeader = 0x522ee4130B819355e10218E40d6Ab0c495219690;
    }

    /**
     * @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 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() public view returns(uint256){
        if (!checkIfAdmin()) {
            return cost;
        }
        else{
            return 0;
        }
    }

    function checkOut(uint _amount) private {
        uint256 _freeAmount = holdersAmount[msg.sender] - claimBalance[msg.sender];
        if(_freeAmount >= _amount){
            _freeAmount = _amount;
        }

        if (!checkIfAdmin()) {
            //Public Phase
            require(msg.value >= ((_amount - _freeAmount) * _cost()), "!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, "mintInOrder");
        require(!paused, "P");
        require(!exists(collectionTotal), "S/O");
        require(_numberOfTokensToMint + tokenNextToMint - 1 <= collectionTotal, ">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, "mintInOrder");
        require(!exists(collectionTotal), "S/O");
        require(_numberOfTokensToMint + tokenNextToMint -1 <= collectionTotal, ">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++;
        }
        claimBalance[msg.sender] += _numberOfTokensToMint;

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

    /**
     * @dev Allows Owner, Whitelisters, and Public to Mint a single NFT.
     */
    function mint(address _to, uint _id, uint _amount) public payable {
        require(!mintInOrder, "!mintInOrder");
        require(!paused, "P");
        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, "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 > 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 randomNumber() internal view returns (uint256){
        uint random = uint(keccak256(abi.encodePacked(
            block.timestamp,
            block.difficulty,
            msg.sender,
            tokenNextToMint,
            role[tokenNextToMint - 1])
            )) % roleLimit;
        //return random;
        return (random + 1);
    }

    //"Randomly" returns a number string >= 0 and <= roleLimit.
    function randomRole() internal view returns (string memory){
        uint random = randomNumber();
        //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;
    }

    /**
    * @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 Admin can set the amount of NFTs a user can mint in one session.
     */
    function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyAdmins {
        maxMintAmount = _newmaxMintAmount;
    }

    function setHolderAmount(address[] calldata _holders, uint[] memory _heldAmount) public onlyAdmins {
        if(_heldAmount.length == 0){
            //all users are automatically set to tier 0 by default
        }
        else{
            if(_heldAmount.length == 1){
                for (uint256 i = 0; i < _holders.length; i++) {
                    holdersAmount[_holders[i]] = _heldAmount[0];
                }
            }
            else{
                require(_holders.length == _heldAmount.length, "Holders Array Not Equal To Held Array");

                for (uint256 g = 0; g < _holders.length; g++) {
                    holdersAmount[_holders[g]] = _heldAmount[g];
                }
            }
        }
    }


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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"LeprechaunTown_WTF","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokensToMint","type":"uint256"}],"name":"_mintInOrder","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_numberOfTokensToMint","type":"uint256"}],"name":"_mintInOrderTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"adminMintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"admins","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"batchRequirementTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkIfAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"checkMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"collectionBatchEndID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractDev","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_endBatchID","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bool","name":"_isIpfsCID","type":"bool"}],"name":"createBatchAndSetURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devpayCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"flagID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"flagged","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"holdersAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ipfsCIDBatch","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"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":"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":"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":"_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":"address[]","name":"_holders","type":"address[]"},{"internalType":"uint256[]","name":"_heldAmount","type":"uint256[]"}],"name":"setHolderAmount","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":"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":"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":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c0604052601560808190527f4c65707265636861756e546f776e5f5754465f7632000000000000000000000060a09081526200004091600491906200086e565b5060408051808201909152600680825265262a2baa231960d11b602090920191825262000070916005916200086e565b506040518060600160405280602e8152602001620062a2602e91398051620000a1916006916020909101906200086e565b50611db8600755666a94d74f430000600855600a60098190558055600b80546201010162ffffff199091161790556015805460ff19169055601460175560016024556000602555602680546001600160a01b03191673da0bab807633f07f013f94dd0e6a4f96f8742b531790553480156200011b57600080fd5b50604080516020810190915260008152620001368162000313565b5062000142336200032c565b600754600c819055601c805460018181019092557f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a2110191909155601d80549182018155600052600680547f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f90920191620001bc9062000a92565b620001c9929190620008fd565b50601e8054600181018255600091825260408051602081019182905283905262000218927f50bb669a95c7b50b7e8a6f09454034b2b14cf2b85c730dca9a539ca82cb6e350909201916200086e565b50600160008181527f17bc176d2408558f6e4111feebc3cab4e16b63e967be91cde721f4c8a488b5528290557f8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b5f805460ff1990811684179091557fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2c805490911683179055600f60209081527f169f97de0d9a84d840042b17d3c6b9638b3d6fd9024c9eb0c7a306a17b49f88f8390556002600d55604080519182019052908152620002e791339181906200037e565b602280546001600160a01b03191673522ee4130b819355e10218e40d6ab0c49521969017905562000c00565b8051620003289060029060208401906200086e565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416620003e45760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084015b60405180910390fd5b336000620003f285620004b1565b905060006200040185620004b1565b90506200041483600089858589620004ff565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906200044690849062000a77565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4620004a88360008989898962000682565b50505050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110620004ee57620004ee62000b3e565b602090810291909101015292915050565b6200051a8686868686866200067a60201b62002f491760201c565b6001600160a01b0386166000908152601b602052604090205460ff161580156200055d57506001600160a01b0385166000908152601b602052604090205460ff16155b80156200058357506001600160a01b0384166000908152601b602052604090205460ff16155b620005e55760405162461bcd60e51b815260206004820152602b60248201527f4f70657261746f722c2046726f6d2c206f7220546f204164647265737320697360448201526a08149154d5149250d5115160aa1b6064820152608401620003db565b60005b8351811015620004a857601a60008583815181106200060b576200060b62000b3e565b60209081029190910181015182528101919091526040016000205460ff1615620006655760405162461bcd60e51b815260206004820152600a602482015269119b1859d9d95908125160b21b6044820152606401620003db565b80620006718162000b0a565b915050620005e8565b505050505050565b620006a1846001600160a01b03166200085f60201b62002f511760201c565b156200067a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190620006dd908990899088908890889060040162000a1b565b602060405180830381600087803b158015620006f857600080fd5b505af19250505080156200072b575060408051601f3d908101601f19168201909252620007289181019062000998565b60015b620007ec576200073a62000b54565b806308c379a014156200077b57506200075262000b71565b806200075f57506200077d565b8060405162461bcd60e51b8152600401620003db919062000a62565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401620003db565b6001600160e01b0319811663f23a6e6160e01b14620004a85760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401620003db565b6001600160a01b03163b151590565b8280546200087c9062000a92565b90600052602060002090601f016020900481019282620008a05760008555620008eb565b82601f10620008bb57805160ff1916838001178555620008eb565b82800160010185558215620008eb579182015b82811115620008eb578251825591602001919060010190620008ce565b50620008f992915062000981565b5090565b8280546200090b9062000a92565b90600052602060002090601f0160209004810192826200092f5760008555620008eb565b82601f10620009425780548555620008eb565b82800160010185558215620008eb57600052602060002091601f016020900482015b82811115620008eb57825482559160010191906001019062000964565b5b80821115620008f9576000815560010162000982565b600060208284031215620009ab57600080fd5b81516001600160e01b031981168114620009c457600080fd5b9392505050565b6000815180845260005b81811015620009f357602081850181015186830182015201620009d5565b8181111562000a06576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009062000a5790830184620009cb565b979650505050505050565b602081526000620009c46020830184620009cb565b6000821982111562000a8d5762000a8d62000b28565b500190565b600181811c9082168062000aa757607f821691505b6020821081141562000ac957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b038111828210171562000b0357634e487b7160e01b600052604160045260246000fd5b6040525050565b600060001982141562000b215762000b2162000b28565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060033d111562000b6e5760046000803e5060005160e01c5b90565b600060443d101562000b805790565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171562000bb057505050505090565b828501915081518181111562000bc95750505050505090565b843d870101602082850101111562000be45750505050505090565b62000bf56020828601018762000acf565b509095945050505050565b6156928062000c106000396000f3fe60806040526004361061046a5760003560e01c8063682db8651161024a578063accc1d5e11610139578063d6199f8d116100b6578063e985e9c51161007a578063e985e9c514610e1e578063ed00e65314610e67578063f242432a14610e7c578063f2fde38b14610e9c578063ff08148114610ebc57600080fd5b8063d6199f8d14610d86578063d81d0a1514610da6578063d85ed0f414610db9578063d8d9d6bc14610dce578063e5211d8b14610dfe57600080fd5b8063bd85b039116100fd578063bd85b03914610cd9578063bff67e9b14610d06578063c6b1fe5814610d26578063cc979f2714610d46578063d261b6e414610d6657600080fd5b8063accc1d5e14610c2d578063b390c0ab14610c4d578063b5b13abc14610c6d578063b633e4cd14610c8d578063b82741a014610cb957600080fd5b806395d89b41116101c7578063a4c2f6511161018b578063a4c2f65114610b97578063a5492f4414610bb7578063a684c47114610bd7578063a6d23e1014610bf7578063ab80573e14610c1757600080fd5b806395d89b4114610af2578063a22cb46514610b07578063a2c4c60214610b27578063a370c66814610b47578063a48fc3a914610b7757600080fd5b806383ca4b6f1161020e57806383ca4b6f14610a4d57806384c6ef2f14610a6d578063869f759414610a875780638da5cb5b14610ab457806394357c2514610ad257600080fd5b8063682db865146109c3578063715018a6146109e35780637724bad8146109f85780637d929b4f14610a0d5780637f00c7a614610a2d57600080fd5b8063359cf687116103665780634cafdb6d116102e35780635c78222f116102a75780635c78222f1461093d5780635c975abb1461095d57806362e6031b14610977578063644e54ab14610997578063650e926f146109ad57600080fd5b80634cafdb6d1461088b5780634e1273f4146108a15780634f558e79146108ce57806351830227146108fe57806352addee51461091d57600080fd5b80634271c5fd1161032a5780634271c5fd146107f5578063441664171461080b57806344a0d68a1461082b5780634bef82be1461084b5780634c2612471461086b57600080fd5b8063359cf6871461078457806339ba02d01461079a5780633ccfd60b146107ad5780633e4a4e77146107b557806341c63b85146107d557600080fd5b8063156e29f6116103f45780632eb2c2d6116103b85780632eb2c2d6146106d75780632ed6cd46146106f75780632fd7239314610724578063314f200f1461074457806333ea51a81461076457600080fd5b8063156e29f61461064e5780631b1004501461066157806321d0a2a014610681578063239c70ae146106a15780632a9abcb9146106b757600080fd5b806304305f421161043b57806304305f42146105a957806306fdde03146105be5780630e89341c146105e057806313faede61461060057806314bfd6d01461061657600080fd5b80624a84cb14610504578062fdd58e1461052657806301ffc9a71461055957806302329a291461058957600080fd5b366104ff576021546001600160a01b03166104c15760405162461bcd60e51b8152602060048201526012602482015271536574205061796f7574204164647265737360701b60448201526064015b60405180910390fd5b60215460405134916001600160a01b03169082156108fc029083906000818181858888f193505050501580156104fb573d6000803e3d6000fd5b5050005b600080fd5b34801561051057600080fd5b5061052461051f366004614a44565b610ee9565b005b34801561053257600080fd5b50610546610541366004614a1a565b610f81565b6040519081526020015b60405180910390f35b34801561056557600080fd5b50610579610574366004614cb3565b611015565b6040519015158152602001610550565b34801561059557600080fd5b506105246105a4366004614c98565b611065565b3480156105b557600080fd5b50610546611080565b3480156105ca57600080fd5b506105d361109e565b604051610550919061517e565b3480156105ec57600080fd5b506105d36105fb366004614d29565b61112c565b34801561060c57600080fd5b5061054660085481565b34801561062257600080fd5b50610636610631366004614d29565b611511565b6040516001600160a01b039091168152602001610550565b61052461065c366004614a44565b61153b565b34801561066d57600080fd5b5061052461067c366004614d29565b611607565b34801561068d57600080fd5b506105d361069c366004614d29565b611672565b3480156106ad57600080fd5b5061054660095481565b3480156106c357600080fd5b506105246106d2366004614db1565b61168b565b3480156106e357600080fd5b506105246106f2366004614870565b6117e5565b34801561070357600080fd5b50610546610712366004614d29565b60136020526000908152604090205481565b34801561073057600080fd5b5061052461073f366004614d29565b611831565b34801561075057600080fd5b5061052461075f366004614ab8565b61183e565b34801561077057600080fd5b5061052461077f36600461481b565b6119b8565b34801561079057600080fd5b50610546600c5481565b6105246107a8366004614d29565b6119e2565b610524611b12565b3480156107c157600080fd5b506105246107d0366004614c25565b611c2a565b3480156107e157600080fd5b506105246107f0366004614d65565b611e19565b34801561080157600080fd5b5061054660245481565b34801561081757600080fd5b50610524610826366004614db1565b611f67565b34801561083757600080fd5b50610524610846366004614d29565b61217d565b34801561085757600080fd5b50610524610866366004614d29565b61218a565b34801561087757600080fd5b50610524610886366004614ced565b612197565b34801561089757600080fd5b5061054660075481565b3480156108ad57600080fd5b506108c16108bc366004614b09565b61223b565b604051610550919061513d565b3480156108da57600080fd5b506105796108e9366004614d29565b60009081526014602052604090205460ff1690565b34801561090a57600080fd5b50600b5461057990610100900460ff1681565b34801561092957600080fd5b50610546610938366004614d29565b612364565b34801561094957600080fd5b50610524610958366004614c98565b612385565b34801561096957600080fd5b50600b546105799060ff1681565b34801561098357600080fd5b50610524610992366004614a1a565b6123a0565b3480156109a357600080fd5b50610546600a5481565b3480156109b957600080fd5b50610546600d5481565b3480156109cf57600080fd5b50602654610636906001600160a01b031681565b3480156109ef57600080fd5b50610524612499565b348015610a0457600080fd5b506105d36124ab565b348015610a1957600080fd5b50610546610a28366004614def565b6124ce565b348015610a3957600080fd5b50610524610a48366004614d29565b6124ff565b348015610a5957600080fd5b50610524610a68366004614bd9565b61250c565b348015610a7957600080fd5b506015546105799060ff1681565b348015610a9357600080fd5b50610546610aa2366004614d29565b60116020526000908152604090205481565b348015610ac057600080fd5b506003546001600160a01b0316610636565b348015610ade57600080fd5b50610546610aed366004614def565b612596565b348015610afe57600080fd5b506105d36125b2565b348015610b1357600080fd5b50610524610b223660046149f0565b6125bf565b348015610b3357600080fd5b50610524610b42366004614c98565b6125ca565b348015610b5357600080fd5b50610579610b62366004614d29565b601a6020526000908152604090205460ff1681565b348015610b8357600080fd5b50600b546105799062010000900460ff1681565b348015610ba357600080fd5b50610524610bb236600461481b565b6125ee565b348015610bc357600080fd5b50610524610bd23660046149f0565b61264f565b348015610be357600080fd5b50602254610636906001600160a01b031681565b348015610c0357600080fd5b50602154610636906001600160a01b031681565b348015610c2357600080fd5b5061054660175481565b348015610c3957600080fd5b50610524610c48366004614a77565b6126b9565b348015610c5957600080fd5b50610524610c68366004614def565b612718565b348015610c7957600080fd5b50610524610c88366004614d29565b612747565b348015610c9957600080fd5b50610546610ca836600461481b565b602080526000908152604090205481565b348015610cc557600080fd5b50610524610cd4366004614db1565b61279d565b348015610ce557600080fd5b50610546610cf4366004614d29565b6000908152600f602052604090205490565b348015610d1257600080fd5b506105d3610d21366004614d29565b61284f565b348015610d3257600080fd5b50610546610d41366004614d29565b61287a565b348015610d5257600080fd5b50610524610d6136600461497d565b612985565b348015610d7257600080fd5b50610524610d81366004614d29565b612a77565b348015610d9257600080fd5b506105d3610da1366004614d29565b612a91565b610524610db436600461497d565b612aa1565b348015610dc557600080fd5b506105d3612d73565b348015610dda57600080fd5b50610579610de936600461481b565b601b6020526000908152604090205460ff1681565b348015610e0a57600080fd5b50610524610e19366004614d42565b612d82565b348015610e2a57600080fd5b50610579610e3936600461483d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610e7357600080fd5b50610579612de1565b348015610e8857600080fd5b50610524610e97366004614919565b612e8e565b348015610ea857600080fd5b50610524610eb736600461481b565b612ed3565b348015610ec857600080fd5b50610546610ed736600461481b565b601f6020526000908152604090205481565b610ef1612f60565b600c548211610f335760405162461bcd60e51b815260206004820152600e60248201526d4944204d757374204265204e657760901b60448201526064016104b8565b610f3c82612fa3565b6000828152600f602052604081208054839290610f5a908490615420565b92505081905550610f7c83838360405180602001604052806000815250613060565b505050565b60006001600160a01b038316610fec5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084016104b8565b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061104657506001600160e01b031982166303a24d0760e21b145b8061100f57506301ffc9a760e01b6001600160e01b031983161461100f565b61106d612f60565b600b805460ff1916911515919091179055565b600061108a612de1565b611095575060085490565b50600090565b90565b600480546110ab9061549a565b80601f01602080910402602001604051908101604052809291908181526020018280546110d79061549a565b80156111245780601f106110f957610100808354040283529160200191611124565b820191906000526020600020905b81548152906001019060200180831161110757829003601f168201915b505050505081565b6060600060066040516020016111429190615048565b60408051601f1981840301815291815260008581526014602052205490915060ff16156114d95760008311801561117b5750600c548311155b156114a957600b54610100900460ff166111b757806040516020016111a09190614f86565b604051602081830303815290604052915050919050565b604080516000808252602080830180855283519020878352600e9091529083902090926111e49201614fbe565b604051602081830303815290604052805190602001201461129e576000838152600e6020526040902080546112189061549a565b80601f01602080910402602001604051908101604052809291908181526020018280546112449061549a565b80156112915780601f1061126657610100808354040283529160200191611291565b820191906000526020600020905b81548152906001019060200180831161127457829003601f168201915b5050505050915050919050565b60005b601c5481101561141f57806112b55761140f565b601c81815481106112c8576112c861554e565b9060005260206000200154841161140f5760408051600081526020810191829052519020601d8054839081106113005761130061554e565b9060005260206000200160405160200161131a9190614fbe565b604051602081830303815290604052805190602001201461137457601d81815481106113485761134861554e565b906000526020600020016040516020016113629190615048565b60405160208183030381529060405291505b60408051600081526020810191829052519020601e80548390811061139b5761139b61554e565b906000526020600020016040516020016113b59190614fbe565b604051602081830303815290604052805190602001201461140f57601e81815481106113e3576113e361554e565b906000526020600020016040516020016113fd9190614fca565b60405160208183030381529060405291505b611418816154fb565b90506112a1565b50604080516000808252602080830180855283519020878352601690915290839020909261144d9201614fbe565b604051602081830303815290604052805190602001201415611484578061147384613149565b6040516020016111a0929190614f12565b80601660008581526020019081526020016000206040516020016111a0929190614f51565b505060408051808201909152601281527115549248111bd95cc8139bdd08115e1a5cdd60721b6020820152919050565b5050604080518082019091526014815273151bdad95b88111bd95cc8139bdd08115e1a5cdd60621b6020820152919050565b50919050565b6023818154811061152157600080fd5b6000918252602090912001546001600160a01b0316905081565b600b5462010000900460ff16156115835760405162461bcd60e51b815260206004820152600c60248201526b10b6b4b73a24b727b93232b960a11b60448201526064016104b8565b600b5460ff16156115ba5760405162461bcd60e51b81526020600482015260016024820152600560fc1b60448201526064016104b8565b6115c482826131dd565b6115fe5760405162461bcd60e51b815260206004820152600b60248201526a10d0539393d5081352539560aa1b60448201526064016104b8565b610f33816134d3565b731ba3fe6311131a67d97f20162522490c3648f6e233146116585760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b60448201526064016104b8565b806024600082825461166a9190615420565b909155505050565b601660205260009081526040902080546110ab9061549a565b611693612f60565b600c5483116116f45760405162461bcd60e51b815260206004820152602760248201527f4944204d757374204e6f742042652046726f6d204f726967696e616c20436f6c6044820152663632b1ba34b7b760c91b60648201526084016104b8565b80156117885760008261170685613149565b604051602001611717929190614fe7565b60408051601f198184030181529181526000868152600e60209081529190208251929350611749929091840190614576565b50837f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b8260405161177a919061517e565b60405180910390a250505050565b6000838152600e6020908152604090912083516117a792850190614576565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b836040516117d8919061517e565b60405180910390a2505050565b6001600160a01b03851633148061180157506118018533610e39565b61181d5760405162461bcd60e51b81526004016104b89061521d565b61182a8585858585613596565b5050505050565b611839612f60565b600d55565b611846612f60565b805161185157505050565b8051600114156118de5760005b828110156118d857816000815181106118795761187961554e565b6020026020010151601f60008686858181106118975761189761554e565b90506020020160208101906118ac919061481b565b6001600160a01b03168152602081019190915260400160002055806118d0816154fb565b91505061185e565b50505050565b8051821461193c5760405162461bcd60e51b815260206004820152602560248201527f486f6c64657273204172726179204e6f7420457175616c20546f2048656c6420604482015264417272617960d81b60648201526084016104b8565b60005b828110156118d8578181815181106119595761195961554e565b6020026020010151601f60008686858181106119775761197761554e565b905060200201602081019061198c919061481b565b6001600160a01b03168152602081019190915260400160002055806119b0816154fb565b91505061193f565b6119c0613738565b602180546001600160a01b0319166001600160a01b0392909216919091179055565b600b5462010000900460ff16611a285760405162461bcd60e51b815260206004820152600b60248201526a36b4b73a24b727b93232b960a91b60448201526064016104b8565b600b5460ff1615611a5f5760405162461bcd60e51b81526020600482015260016024820152600560fc1b60448201526064016104b8565b60075460009081526014602052604090205460ff1615611aa75760405162461bcd60e51b8152602060048201526003602482015262532f4f60e81b60448201526064016104b8565b6007546001600d5483611aba9190615420565b611ac49190615457565b1115611afc5760405162461bcd60e51b81526020600482015260076024820152660f905b5bdd5b9d60ca1b60448201526064016104b8565b611b05816134d3565b611b0f3382613792565b50565b611b1a612f60565b6021546001600160a01b0316611b675760405162461bcd60e51b8152602060048201526012602482015271536574205061796f7574204164647265737360701b60448201526064016104b8565b60255460245411611bdb57604051600090731ba3fe6311131a67d97f20162522490c3648f6e29047908381818185875af1925050503d8060008114611bc8576040519150601f19603f3d011682016040523d82523d6000602084013e611bcd565b606091505b5050905080611b0f57600080fd5b6021546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611bc8576040519150601f19603f3d011682016040523d82523d6000602084013e611bcd565b565b611c32612f60565b8015611d425760008360018551611c499190615457565b81518110611c5957611c5961554e565b6020026020010151905060005b601c5481101561182a57601c8181548110611c8357611c8361554e565b9060005260206000200154821415611d32578360018551611ca49190615457565b81518110611cb457611cb461554e565b60209081029190910181015160008481526013909252604082205584518590611cdf90600190615457565b81518110611cef57611cef61554e565b60200260200101511115611d1b576000828152601260205260409020805460ff19166001179055611d32565b6000828152601260205260409020805460ff191690555b611d3b816154fb565b9050611c66565b60005b83518110156118d8576000848281518110611d6257611d6261554e565b60200260200101519050838281518110611d7e57611d7e61554e565b6020026020010151601160008381526020019081526020016000206000828254611da89190615420565b925050819055506000848381518110611dc357611dc361554e565b60200260200101511115611def576000818152601060205260409020805460ff19166001179055611e06565b6000818152601060205260409020805460ff191690555b5080611e11816154fb565b915050611d45565b611e21612f60565b8115611f485760005b601c54811015611f285783601c8281548110611e4857611e4861554e565b90600052602060002001541415611e5e57611f28565b601c8054611e6e90600190615457565b81548110611e7e57611e7e61554e565b9060005260206000200154601c8281548110611e9c57611e9c61554e565b9060005260206000200154148015611ed15750601c8181548110611ec257611ec261554e565b90600052602060002001548414155b15611f165760405162461bcd60e51b81526020600482015260156024820152740becadcc8928840d2e640dcdee840c24084c2e8c6d605b1b60448201526064016104b8565b80611f20816154fb565b915050611e2a565b50600083815260196020908152604090912082516118d8928401906145fa565b600083815260186020908152604090912082516118d8928401906145fa565b611f6f612f60565b601c8054611f7f90600190615457565b81548110611f8f57611f8f61554e565b90600052602060002001548311611ffd5760405162461bcd60e51b815260206004820152602c60248201527f4c617374204261746368204944206d757374206265203e2070726576696f757360448201526b0818985d18da081d1bdd185b60a21b60648201526084016104b8565b80156120c057601c805460018181019092557f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a21101849055601d805491820181556000528251612073917f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f01906020850190614576565b50601e805460018101825560009182526040805160208101918290528390526118d8927f50bb669a95c7b50b7e8a6f09454034b2b14cf2b85c730dca9a539ca82cb6e35090920191614576565b601c805460018181019092557f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a21101849055601e805491820181556000528251612130917f50bb669a95c7b50b7e8a6f09454034b2b14cf2b85c730dca9a539ca82cb6e35001906020850190614576565b50601d805460018101825560009182526040805160208101918290528390526118d8927f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f90920191614576565b612185612f60565b600855565b612192612f60565b601755565b61219f612f60565b600b54610100900460ff16156121e25760405162461bcd60e51b815260206004820152600860248201526714995d99585b195960c21b60448201526064016104b8565b80516121f5906006906020840190614576565b5080601d60008154811061220b5761220b61554e565b906000526020600020019080519060200190612228929190614576565b5050600b805461ff001916610100179055565b606081518351146122a05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016104b8565b600083516001600160401b038111156122bb576122bb615564565b6040519080825280602002602001820160405280156122e4578160200160208202803683370190505b50905060005b845181101561235c5761232f8582815181106123085761230861554e565b60200260200101518583815181106123225761232261554e565b6020026020010151610f81565b8282815181106123415761234161554e565b6020908102919091010152612355816154fb565b90506122ea565b509392505050565b601c818154811061237457600080fd5b600091825260209091200154905081565b61238d612f60565b6015805460ff1916911515919091179055565b6123a8612f60565b600b5462010000900460ff166123ee5760405162461bcd60e51b815260206004820152600b60248201526a36b4b73a24b727b93232b960a91b60448201526064016104b8565b60075460009081526014602052604090205460ff16156124365760405162461bcd60e51b8152602060048201526003602482015262532f4f60e81b60448201526064016104b8565b6007546001600d54836124499190615420565b6124539190615457565b111561248b5760405162461bcd60e51b81526020600482015260076024820152660f905b5bdd5b9d60ca1b60448201526064016104b8565b6124958282613792565b5050565b6124a1613738565b611c2860006138df565b606060006040518060600160405280602881526020016156356028913992915050565b601960205281600052604060002081815481106124ea57600080fd5b90600052602060002001600091509150505481565b612507612f60565b600955565b60005b825181101561258a57600083828151811061252c5761252c61554e565b602002602001015190508282815181106125485761254861554e565b6020026020010151600f600083815260200190815260200160002060008282546125729190615457565b9091555061258391508290506154fb565b905061250f565b50612495338383613931565b601860205281600052604060002081815481106124ea57600080fd5b600580546110ab9061549a565b612495338383613acd565b6125d2612f60565b600b8054911515620100000262ff000019909216919091179055565b6003546001600160a01b031633148061261157506022546001600160a01b031633145b61262d5760405162461bcd60e51b81526004016104b89061533d565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031633148061267257506022546001600160a01b031633145b61268e5760405162461bcd60e51b81526004016104b89061533d565b6001600160a01b03919091166000908152601b60205260409020805460ff1916911515919091179055565b6126c1612f60565b6003546001600160a01b03163314806126e457506022546001600160a01b031633145b6127005760405162461bcd60e51b81526004016104b89061533d565b61270c60236000614634565b610f7c60238383614652565b6000828152600f602052604081208054839290612736908490615457565b909155506124959050338383613bae565b731ba3fe6311131a67d97f20162522490c3648f6e233146127985760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b60448201526064016104b8565b602555565b6127a5612f60565b826128045760405162461bcd60e51b815260206004820152602960248201527f426174636820496e6465782043616e6e6f74204265204f726967696e616c204360448201526837b63632b1ba34b7b760b91b60648201526084016104b8565b801561283b5781601d848154811061281e5761281e61554e565b9060005260206000200190805190602001906118d8929190614576565b81601e848154811061281e5761281e61554e565b601e818154811061285f57600080fd5b9060005260206000200160009150905080546110ab9061549a565b600081815260116020526040812054156128a1575060009081526011602052604090205490565b60005b601c5481101561297c5782158015906128da5750601c81815481106128cb576128cb61554e565b90600052602060002001548311155b801561290c5750601c6128ee600183615457565b815481106128fe576128fe61554e565b906000526020600020015483115b1561296a576000601c82815481106129265761292661554e565b906000526020600020015490506013600082815260200190815260200160002054600014612964576000908152601360205260409020549392505050565b5061297c565b80612974816154fb565b9150506128a4565b50600092915050565b61298d612f60565b61299682613cc6565b156129d45760405162461bcd60e51b815260206004820152600e60248201526d4944204d757374204265204e657760901b60448201526064016104b8565b60005b8251811015612a5b5760008382815181106129f4576129f461554e565b60200260200101519050612a0781612fa3565b828281518110612a1957612a1961554e565b6020026020010151600f60008381526020019081526020016000206000828254612a439190615420565b90915550612a5491508290506154fb565b90506129d7565b50610f7c83838360405180602001604052806000815250613d23565b612a7f612f60565b806007600082825461166a9190615420565b601d818154811061285f57600080fd5b600b5462010000900460ff1615612afa5760405162461bcd60e51b815260206004820152601a60248201527f5265717569726573206d696e74496e4f726465722046616c736500000000000060448201526064016104b8565b600b5460ff1615612b365760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b60448201526064016104b8565b60095482511115612b785760405162461bcd60e51b815260206004820152600c60248201526b546f6f204d616e792049447360a01b60448201526064016104b8565b8051825114612bc95760405162461bcd60e51b815260206004820152601960248201527f49447320616e6420416d6f756e7473204e6f7420457175616c0000000000000060448201526064016104b8565b612bd38282613e7d565b612c135760405162461bcd60e51b8152602060048201526011602482015270086829c9c9ea8409a929ca8408482a8869607b1b60448201526064016104b8565b6000805b8251811015612c5957828181518110612c3257612c3261554e565b602002602001015182612c459190615420565b915080612c51816154fb565b915050612c17565b50600a54811115612cac5760405162461bcd60e51b815260206004820152601b60248201527f426174636820416d6f756e74204c696d6974204578636565646564000000000060448201526064016104b8565b612cb5816134d3565b60005b8351811015612d57576000848281518110612cd557612cd561554e565b60200260200101519050612ce881612fa3565b838281518110612cfa57612cfa61554e565b6020026020010151600f6000878581518110612d1857612d1861554e565b602002602001015181526020019081526020016000206000828254612d3d9190615420565b90915550829150612d4f9050816154fb565b915050612cb8565b506118d884848460405180602001604052806000815250613d23565b6060612d7d613efb565b905090565b6003546001600160a01b0316331480612da557506022546001600160a01b031633145b612dc15760405162461bcd60e51b81526004016104b89061533d565b6000918252601a6020526040909120805460ff1916911515919091179055565b6000612df56003546001600160a01b031690565b6001600160a01b0316336001600160a01b03161480612e1e57506022546001600160a01b031633145b15612e295750600190565b602354156110955760005b602354811015612e875760238181548110612e5157612e5161554e565b6000918252602090912001546001600160a01b0316331415612e7557600191505090565b80612e7f816154fb565b915050612e34565b5050600090565b6001600160a01b038516331480612eaa5750612eaa8533610e39565b612ec65760405162461bcd60e51b81526004016104b89061521d565b61182a8585858585613f22565b612edb613738565b6001600160a01b038116612f405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104b8565b611b0f816138df565b505050505050565b6001600160a01b03163b151590565b612f68612de1565b611c285760405162461bcd60e51b815260206004820152600c60248201526b2737ba1030b71030b236b4b760a11b60448201526064016104b8565b60008181526014602052604090205460ff1661302a576000818152601460209081526040808320805460ff19908116600117909155601a90925290912080549091169055600b5462010000900460ff161561302a57600081815260116020908152604080832060019081905560108352818420805460ff191682179055600f909252909120555b60155460ff1615611b0f5761303d613efb565b600082815260166020908152604090912082516124959391929190910190614576565b6001600160a01b0384166130865760405162461bcd60e51b81526004016104b8906153bc565b3360006130928561405a565b9050600061309f8561405a565b90506130b0836000898585896140a5565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906130e0908490615420565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613140836000898989896141f8565b50505050505050565b6060600061315683614363565b60010190506000816001600160401b0381111561317557613175615564565b6040519080825280601f01601f19166020018201604052801561319f576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846131d85761235c565b6131a9565b60008281526010602052604081205460ff16156132625760008211801561320657506009548211155b80156132125750600083115b801561322057506007548311155b80156132505750600083815260116020908152604080832054600f9092529091205461324d908490615420565b11155b1561325a57613291565b50600061100f565b60008211801561327457506009548211155b80156132805750600083115b80156132505750600754831161325a575b600083815260186020526040902054156133175760005b60008481526018602052604090205481101561331557600084815260186020526040812080546132f4913391859081106132e4576132e461554e565b9060005260206000200154610f81565b1161330357600091505061100f565b8061330d816154fb565b9150506132a8565b505b60005b601c548110156134c95780158015906133505750601c81815481106133415761334161554e565b90600052602060002001548411155b80156133825750601c613364600183615457565b815481106133745761337461554e565b906000526020600020015484115b156134b7576000601c828154811061339c5761339c61554e565b60009182526020808320909101548083526019909152604090912054909150156134245760005b60008281526019602052604090205481101561342257600082815260196020526040812080546133ff913391859081106132e4576132e461554e565b11613410576000935050505061100f565b8061341a816154fb565b9150506133c3565b505b60008181526012602052604090205460ff16156134af5760008411801561344d57506009548411155b80156134595750600085115b801561346757506007548511155b801561349a5750600081815260136020908152604080832054888452600f90925290912054613497908690615420565b11155b156134a4576134b5565b60009250505061100f565b506134b7565b505b806134c1816154fb565b91505061331a565b5060019392505050565b3360009081526020808052604080832054601f9092528220546134f69190615457565b90508181106135025750805b61350a612de1565b61249557613516611080565b6135208284615457565b61352a9190615438565b3410156135625760405162461bcd60e51b81526020600482015260066024820152652146756e647360d01b60448201526064016104b8565b600034118015613576575060255460245411155b1561249557346024600082825461358d9190615420565b90915550505050565b81518351146135b75760405162461bcd60e51b81526004016104b890615374565b6001600160a01b0384166135dd5760405162461bcd60e51b81526004016104b89061526b565b336135ec8187878787876140a5565b60005b84518110156136d257600085828151811061360c5761360c61554e565b60200260200101519050600085838151811061362a5761362a61554e565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561367a5760405162461bcd60e51b81526004016104b8906152f3565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906136b7908490615420565b92505081905550505050806136cb906154fb565b90506135ef565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613722929190615150565b60405180910390a4612f4981878787878761443b565b6003546001600160a01b03163314611c285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104b8565b6000816001600160401b038111156137ac576137ac615564565b6040519080825280602002602001820160405280156137d5578160200160208202803683370190505b5090506000826001600160401b038111156137f2576137f2615564565b60405190808252806020026020018201604052801561381b578160200160208202803683370190505b50905060005b8381101561389e57600d5461383581612fa3565b600d5484838151811061384a5761384a61554e565b602002602001018181525050600183838151811061386a5761386a61554e565b6020908102919091010152600d8054906000613885836154fb565b9190505550508080613896906154fb565b915050613821565b50336000908152602080526040812080548592906138bd908490615420565b925050819055506118d884838360405180602001604052806000815250613d23565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166139575760405162461bcd60e51b81526004016104b8906152b0565b80518251146139785760405162461bcd60e51b81526004016104b890615374565b600033905061399b818560008686604051806020016040528060008152506140a5565b60005b8351811015613a605760008482815181106139bb576139bb61554e565b6020026020010151905060008483815181106139d9576139d961554e565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015613a295760405162461bcd60e51b81526004016104b8906151d9565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580613a58816154fb565b91505061399e565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051613ab1929190615150565b60405180910390a46040805160208101909152600090526118d8565b816001600160a01b0316836001600160a01b03161415613b415760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016104b8565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038316613bd45760405162461bcd60e51b81526004016104b8906152b0565b336000613be08461405a565b90506000613bed8461405a565b9050613c0d838760008585604051806020016040528060008152506140a5565b6000858152602081815260408083206001600160a01b038a16845290915290205484811015613c4e5760405162461bcd60e51b81526004016104b8906151d9565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4604080516020810190915260009052613140565b6000805b8251811015613d1a576000838281518110613ce757613ce761554e565b60200260200101519050600c548111613cff57613d09565b5060009392505050565b50613d13816154fb565b9050613cca565b50600192915050565b6001600160a01b038416613d495760405162461bcd60e51b81526004016104b8906153bc565b8151835114613d6a5760405162461bcd60e51b81526004016104b890615374565b33613d7a816000878787876140a5565b60005b8451811015613e1557838181518110613d9857613d9861554e565b6020026020010151600080878481518110613db557613db561554e565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254613dfd9190615420565b90915550819050613e0d816154fb565b915050613d7d565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613e66929190615150565b60405180910390a461182a8160008787878761443b565b6000805b83518110156134c9576000848281518110613e9e57613e9e61554e565b602002602001015190506000848381518110613ebc57613ebc61554e565b60200260200101519050613ed082826131dd565b15613eda57613ee6565b6000935050505061100f565b50508080613ef3906154fb565b915050613e81565b60606000613f07614505565b9050613f1c613f17826001615420565b613149565b91505090565b6001600160a01b038416613f485760405162461bcd60e51b81526004016104b89061526b565b336000613f548561405a565b90506000613f618561405a565b9050613f718389898585896140a5565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015613fb25760405162461bcd60e51b81526004016104b8906152f3565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290613fef908490615420565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461404f848a8a8a8a8a6141f8565b505050505050505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106140945761409461554e565b602090810291909101015292915050565b6001600160a01b0386166000908152601b602052604090205460ff161580156140e757506001600160a01b0385166000908152601b602052604090205460ff16155b801561410c57506001600160a01b0384166000908152601b602052604090205460ff16155b61416c5760405162461bcd60e51b815260206004820152602b60248201527f4f70657261746f722c2046726f6d2c206f7220546f204164647265737320697360448201526a08149154d5149250d5115160aa1b60648201526084016104b8565b60005b835181101561314057601a600085838151811061418e5761418e61554e565b60209081029190910181015182528101919091526040016000205460ff16156141e65760405162461bcd60e51b815260206004820152600a602482015269119b1859d9d95908125160b21b60448201526064016104b8565b806141f0816154fb565b91505061416f565b6001600160a01b0384163b15612f495760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061423c9089908990889088908890600401615103565b602060405180830381600087803b15801561425657600080fd5b505af1925050508015614286575060408051601f3d908101601f1916820190925261428391810190614cd0565b60015b6143335761429261557a565b806308c379a014156142cc57506142a7615595565b806142b257506142ce565b8060405162461bcd60e51b81526004016104b8919061517e565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016104b8565b6001600160e01b0319811663f23a6e6160e01b146131405760405162461bcd60e51b81526004016104b890615191565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106143a25772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106143ce576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106143ec57662386f26fc10000830492506010015b6305f5e1008310614404576305f5e100830492506008015b612710831061441857612710830492506004015b6064831061442a576064830492506002015b600a831061100f5760010192915050565b6001600160a01b0384163b15612f495760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061447f90899089908890889088906004016150a5565b602060405180830381600087803b15801561449957600080fd5b505af19250505080156144c9575060408051601f3d908101601f191682019092526144c691810190614cd0565b60015b6144d55761429261557a565b6001600160e01b0319811663bc197c8160e01b146131405760405162461bcd60e51b81526004016104b890615191565b600080601754424433600d54601660006001600d546145249190615457565b8152602001908152602001600020604051602001614546959493929190615064565b6040516020818303038152906040528051906020012060001c6145699190615516565b9050613f1c816001615420565b8280546145829061549a565b90600052602060002090601f0160209004810192826145a457600085556145ea565b82601f106145bd57805160ff19168380011785556145ea565b828001600101855582156145ea579182015b828111156145ea5782518255916020019190600101906145cf565b506145f69291506146a5565b5090565b8280548282559060005260206000209081019282156145ea57916020028201828111156145ea5782518255916020019190600101906145cf565b5080546000825590600052602060002090810190611b0f91906146a5565b8280548282559060005260206000209081019282156145ea579160200282015b828111156145ea5781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190614672565b5b808211156145f657600081556001016146a6565b80356001600160a01b03811681146146d157600080fd5b919050565b60008083601f8401126146e857600080fd5b5081356001600160401b038111156146ff57600080fd5b6020830191508360208260051b850101111561471a57600080fd5b9250929050565b600082601f83011261473257600080fd5b8135602061473f826153fd565b60405161474c82826154cf565b8381528281019150858301600585901b8701840188101561476c57600080fd5b60005b8581101561478b5781358452928401929084019060010161476f565b5090979650505050505050565b803580151581146146d157600080fd5b600082601f8301126147b957600080fd5b81356001600160401b038111156147d2576147d2615564565b6040516147e9601f8301601f1916602001826154cf565b8181528460208386010111156147fe57600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561482d57600080fd5b614836826146ba565b9392505050565b6000806040838503121561485057600080fd5b614859836146ba565b9150614867602084016146ba565b90509250929050565b600080600080600060a0868803121561488857600080fd5b614891866146ba565b945061489f602087016146ba565b935060408601356001600160401b03808211156148bb57600080fd5b6148c789838a01614721565b945060608801359150808211156148dd57600080fd5b6148e989838a01614721565b935060808801359150808211156148ff57600080fd5b5061490c888289016147a8565b9150509295509295909350565b600080600080600060a0868803121561493157600080fd5b61493a866146ba565b9450614948602087016146ba565b9350604086013592506060860135915060808601356001600160401b0381111561497157600080fd5b61490c888289016147a8565b60008060006060848603121561499257600080fd5b61499b846146ba565b925060208401356001600160401b03808211156149b757600080fd5b6149c387838801614721565b935060408601359150808211156149d957600080fd5b506149e686828701614721565b9150509250925092565b60008060408385031215614a0357600080fd5b614a0c836146ba565b915061486760208401614798565b60008060408385031215614a2d57600080fd5b614a36836146ba565b946020939093013593505050565b600080600060608486031215614a5957600080fd5b614a62846146ba565b95602085013595506040909401359392505050565b60008060208385031215614a8a57600080fd5b82356001600160401b03811115614aa057600080fd5b614aac858286016146d6565b90969095509350505050565b600080600060408486031215614acd57600080fd5b83356001600160401b0380821115614ae457600080fd5b614af0878388016146d6565b909550935060208601359150808211156149d957600080fd5b60008060408385031215614b1c57600080fd5b82356001600160401b0380821115614b3357600080fd5b818501915085601f830112614b4757600080fd5b81356020614b54826153fd565b604051614b6182826154cf565b8381528281019150858301600585901b870184018b1015614b8157600080fd5b600096505b84871015614bab57614b97816146ba565b835260019690960195918301918301614b86565b5096505086013592505080821115614bc257600080fd5b50614bcf85828601614721565b9150509250929050565b60008060408385031215614bec57600080fd5b82356001600160401b0380821115614c0357600080fd5b614c0f86838701614721565b93506020850135915080821115614bc257600080fd5b600080600060608486031215614c3a57600080fd5b83356001600160401b0380821115614c5157600080fd5b614c5d87838801614721565b94506020860135915080821115614c7357600080fd5b50614c8086828701614721565b925050614c8f60408501614798565b90509250925092565b600060208284031215614caa57600080fd5b61483682614798565b600060208284031215614cc557600080fd5b81356148368161561e565b600060208284031215614ce257600080fd5b81516148368161561e565b600060208284031215614cff57600080fd5b81356001600160401b03811115614d1557600080fd5b614d21848285016147a8565b949350505050565b600060208284031215614d3b57600080fd5b5035919050565b60008060408385031215614d5557600080fd5b8235915061486760208401614798565b600080600060608486031215614d7a57600080fd5b83359250614d8a60208501614798565b915060408401356001600160401b03811115614da557600080fd5b6149e686828701614721565b600080600060608486031215614dc657600080fd5b8335925060208401356001600160401b03811115614de357600080fd5b614c80868287016147a8565b60008060408385031215614e0257600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b83811015614e4157815187529582019590820190600101614e25565b509495945050505050565b60008151808452614e6481602086016020860161546e565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680614e9257607f831692505b6020808410821415614eb457634e487b7160e01b600052602260045260246000fd5b818015614ec85760018114614ed957614f06565b60ff19861689528489019650614f06565b60008881526020902060005b86811015614efe5781548b820152908501908301614ee5565b505084890196505b50505050505092915050565b60008351614f2481846020880161546e565b835190830190614f3881836020880161546e565b64173539b7b760d91b9101908152600501949350505050565b60008351614f6381846020880161546e565b614f6f81840185614e78565b64173539b7b760d91b815260050195945050505050565b60008251614f9881846020870161546e565b653434b23232b760d11b92019182525064173539b7b760d91b6006820152600b01919050565b60006148368284614e78565b6000614fd68284614e78565b602f60f81b81526001019392505050565b66697066733a2f2f60c81b81526000835161500981600785016020880161546e565b602f60f81b600791840191820152835161502a81600884016020880161546e565b64173539b7b760d91b60089290910191820152600d01949350505050565b66697066733a2f2f60c81b81526000614fd66007830184614e78565b8581528460208201526bffffffffffffffffffffffff198460601b166040820152826054820152600061509a6074830184614e78565b979650505050505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906150d190830186614e11565b82810360608401526150e38186614e11565b905082810360808401526150f78185614e4c565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061509a90830184614e4c565b6020815260006148366020830184614e11565b6040815260006151636040830185614e11565b82810360208401526151758185614e11565b95945050505050565b6020815260006148366020830184614e4c565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252601b908201527f4e6f74204f776e6572206f722050726f6a656374204c65616465720000000000604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b0382111561541657615416615564565b5060051b60200190565b6000821982111561543357615433615538565b500190565b600081600019048311821515161561545257615452615538565b500290565b60008282101561546957615469615538565b500390565b60005b83811015615489578181015183820152602001615471565b838111156118d85750506000910152565b600181811c908216806154ae57607f821691505b6020821081141561150b57634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b03811182821017156154f4576154f4615564565b6040525050565b600060001982141561550f5761550f615538565b5060010190565b60008261553357634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561109b5760046000803e5060005160e01c90565b600060443d10156155a35790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156155d257505050505090565b82850191508151818111156155ea5750505050505090565b843d87010160208285010111156156045750505050505090565b615613602082860101876154cf565b509095945050505050565b6001600160e01b031981168114611b0f57600080fdfef09f90b82068747470733a2f2f7777772e68616c66737570657273686f702e636f6d2f20f09f90b8a26469706673582212205ad74f0578ed1287c2605aab4b9656f4a397350b9bfcb67784cd77ac8dd608a464736f6c63430008070033516d55474831657435443661613637723458555675443265566f56515a5143664271445a736d3166683653664b55

Deployed Bytecode

0x60806040526004361061046a5760003560e01c8063682db8651161024a578063accc1d5e11610139578063d6199f8d116100b6578063e985e9c51161007a578063e985e9c514610e1e578063ed00e65314610e67578063f242432a14610e7c578063f2fde38b14610e9c578063ff08148114610ebc57600080fd5b8063d6199f8d14610d86578063d81d0a1514610da6578063d85ed0f414610db9578063d8d9d6bc14610dce578063e5211d8b14610dfe57600080fd5b8063bd85b039116100fd578063bd85b03914610cd9578063bff67e9b14610d06578063c6b1fe5814610d26578063cc979f2714610d46578063d261b6e414610d6657600080fd5b8063accc1d5e14610c2d578063b390c0ab14610c4d578063b5b13abc14610c6d578063b633e4cd14610c8d578063b82741a014610cb957600080fd5b806395d89b41116101c7578063a4c2f6511161018b578063a4c2f65114610b97578063a5492f4414610bb7578063a684c47114610bd7578063a6d23e1014610bf7578063ab80573e14610c1757600080fd5b806395d89b4114610af2578063a22cb46514610b07578063a2c4c60214610b27578063a370c66814610b47578063a48fc3a914610b7757600080fd5b806383ca4b6f1161020e57806383ca4b6f14610a4d57806384c6ef2f14610a6d578063869f759414610a875780638da5cb5b14610ab457806394357c2514610ad257600080fd5b8063682db865146109c3578063715018a6146109e35780637724bad8146109f85780637d929b4f14610a0d5780637f00c7a614610a2d57600080fd5b8063359cf687116103665780634cafdb6d116102e35780635c78222f116102a75780635c78222f1461093d5780635c975abb1461095d57806362e6031b14610977578063644e54ab14610997578063650e926f146109ad57600080fd5b80634cafdb6d1461088b5780634e1273f4146108a15780634f558e79146108ce57806351830227146108fe57806352addee51461091d57600080fd5b80634271c5fd1161032a5780634271c5fd146107f5578063441664171461080b57806344a0d68a1461082b5780634bef82be1461084b5780634c2612471461086b57600080fd5b8063359cf6871461078457806339ba02d01461079a5780633ccfd60b146107ad5780633e4a4e77146107b557806341c63b85146107d557600080fd5b8063156e29f6116103f45780632eb2c2d6116103b85780632eb2c2d6146106d75780632ed6cd46146106f75780632fd7239314610724578063314f200f1461074457806333ea51a81461076457600080fd5b8063156e29f61461064e5780631b1004501461066157806321d0a2a014610681578063239c70ae146106a15780632a9abcb9146106b757600080fd5b806304305f421161043b57806304305f42146105a957806306fdde03146105be5780630e89341c146105e057806313faede61461060057806314bfd6d01461061657600080fd5b80624a84cb14610504578062fdd58e1461052657806301ffc9a71461055957806302329a291461058957600080fd5b366104ff576021546001600160a01b03166104c15760405162461bcd60e51b8152602060048201526012602482015271536574205061796f7574204164647265737360701b60448201526064015b60405180910390fd5b60215460405134916001600160a01b03169082156108fc029083906000818181858888f193505050501580156104fb573d6000803e3d6000fd5b5050005b600080fd5b34801561051057600080fd5b5061052461051f366004614a44565b610ee9565b005b34801561053257600080fd5b50610546610541366004614a1a565b610f81565b6040519081526020015b60405180910390f35b34801561056557600080fd5b50610579610574366004614cb3565b611015565b6040519015158152602001610550565b34801561059557600080fd5b506105246105a4366004614c98565b611065565b3480156105b557600080fd5b50610546611080565b3480156105ca57600080fd5b506105d361109e565b604051610550919061517e565b3480156105ec57600080fd5b506105d36105fb366004614d29565b61112c565b34801561060c57600080fd5b5061054660085481565b34801561062257600080fd5b50610636610631366004614d29565b611511565b6040516001600160a01b039091168152602001610550565b61052461065c366004614a44565b61153b565b34801561066d57600080fd5b5061052461067c366004614d29565b611607565b34801561068d57600080fd5b506105d361069c366004614d29565b611672565b3480156106ad57600080fd5b5061054660095481565b3480156106c357600080fd5b506105246106d2366004614db1565b61168b565b3480156106e357600080fd5b506105246106f2366004614870565b6117e5565b34801561070357600080fd5b50610546610712366004614d29565b60136020526000908152604090205481565b34801561073057600080fd5b5061052461073f366004614d29565b611831565b34801561075057600080fd5b5061052461075f366004614ab8565b61183e565b34801561077057600080fd5b5061052461077f36600461481b565b6119b8565b34801561079057600080fd5b50610546600c5481565b6105246107a8366004614d29565b6119e2565b610524611b12565b3480156107c157600080fd5b506105246107d0366004614c25565b611c2a565b3480156107e157600080fd5b506105246107f0366004614d65565b611e19565b34801561080157600080fd5b5061054660245481565b34801561081757600080fd5b50610524610826366004614db1565b611f67565b34801561083757600080fd5b50610524610846366004614d29565b61217d565b34801561085757600080fd5b50610524610866366004614d29565b61218a565b34801561087757600080fd5b50610524610886366004614ced565b612197565b34801561089757600080fd5b5061054660075481565b3480156108ad57600080fd5b506108c16108bc366004614b09565b61223b565b604051610550919061513d565b3480156108da57600080fd5b506105796108e9366004614d29565b60009081526014602052604090205460ff1690565b34801561090a57600080fd5b50600b5461057990610100900460ff1681565b34801561092957600080fd5b50610546610938366004614d29565b612364565b34801561094957600080fd5b50610524610958366004614c98565b612385565b34801561096957600080fd5b50600b546105799060ff1681565b34801561098357600080fd5b50610524610992366004614a1a565b6123a0565b3480156109a357600080fd5b50610546600a5481565b3480156109b957600080fd5b50610546600d5481565b3480156109cf57600080fd5b50602654610636906001600160a01b031681565b3480156109ef57600080fd5b50610524612499565b348015610a0457600080fd5b506105d36124ab565b348015610a1957600080fd5b50610546610a28366004614def565b6124ce565b348015610a3957600080fd5b50610524610a48366004614d29565b6124ff565b348015610a5957600080fd5b50610524610a68366004614bd9565b61250c565b348015610a7957600080fd5b506015546105799060ff1681565b348015610a9357600080fd5b50610546610aa2366004614d29565b60116020526000908152604090205481565b348015610ac057600080fd5b506003546001600160a01b0316610636565b348015610ade57600080fd5b50610546610aed366004614def565b612596565b348015610afe57600080fd5b506105d36125b2565b348015610b1357600080fd5b50610524610b223660046149f0565b6125bf565b348015610b3357600080fd5b50610524610b42366004614c98565b6125ca565b348015610b5357600080fd5b50610579610b62366004614d29565b601a6020526000908152604090205460ff1681565b348015610b8357600080fd5b50600b546105799062010000900460ff1681565b348015610ba357600080fd5b50610524610bb236600461481b565b6125ee565b348015610bc357600080fd5b50610524610bd23660046149f0565b61264f565b348015610be357600080fd5b50602254610636906001600160a01b031681565b348015610c0357600080fd5b50602154610636906001600160a01b031681565b348015610c2357600080fd5b5061054660175481565b348015610c3957600080fd5b50610524610c48366004614a77565b6126b9565b348015610c5957600080fd5b50610524610c68366004614def565b612718565b348015610c7957600080fd5b50610524610c88366004614d29565b612747565b348015610c9957600080fd5b50610546610ca836600461481b565b602080526000908152604090205481565b348015610cc557600080fd5b50610524610cd4366004614db1565b61279d565b348015610ce557600080fd5b50610546610cf4366004614d29565b6000908152600f602052604090205490565b348015610d1257600080fd5b506105d3610d21366004614d29565b61284f565b348015610d3257600080fd5b50610546610d41366004614d29565b61287a565b348015610d5257600080fd5b50610524610d6136600461497d565b612985565b348015610d7257600080fd5b50610524610d81366004614d29565b612a77565b348015610d9257600080fd5b506105d3610da1366004614d29565b612a91565b610524610db436600461497d565b612aa1565b348015610dc557600080fd5b506105d3612d73565b348015610dda57600080fd5b50610579610de936600461481b565b601b6020526000908152604090205460ff1681565b348015610e0a57600080fd5b50610524610e19366004614d42565b612d82565b348015610e2a57600080fd5b50610579610e3936600461483d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610e7357600080fd5b50610579612de1565b348015610e8857600080fd5b50610524610e97366004614919565b612e8e565b348015610ea857600080fd5b50610524610eb736600461481b565b612ed3565b348015610ec857600080fd5b50610546610ed736600461481b565b601f6020526000908152604090205481565b610ef1612f60565b600c548211610f335760405162461bcd60e51b815260206004820152600e60248201526d4944204d757374204265204e657760901b60448201526064016104b8565b610f3c82612fa3565b6000828152600f602052604081208054839290610f5a908490615420565b92505081905550610f7c83838360405180602001604052806000815250613060565b505050565b60006001600160a01b038316610fec5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084016104b8565b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061104657506001600160e01b031982166303a24d0760e21b145b8061100f57506301ffc9a760e01b6001600160e01b031983161461100f565b61106d612f60565b600b805460ff1916911515919091179055565b600061108a612de1565b611095575060085490565b50600090565b90565b600480546110ab9061549a565b80601f01602080910402602001604051908101604052809291908181526020018280546110d79061549a565b80156111245780601f106110f957610100808354040283529160200191611124565b820191906000526020600020905b81548152906001019060200180831161110757829003601f168201915b505050505081565b6060600060066040516020016111429190615048565b60408051601f1981840301815291815260008581526014602052205490915060ff16156114d95760008311801561117b5750600c548311155b156114a957600b54610100900460ff166111b757806040516020016111a09190614f86565b604051602081830303815290604052915050919050565b604080516000808252602080830180855283519020878352600e9091529083902090926111e49201614fbe565b604051602081830303815290604052805190602001201461129e576000838152600e6020526040902080546112189061549a565b80601f01602080910402602001604051908101604052809291908181526020018280546112449061549a565b80156112915780601f1061126657610100808354040283529160200191611291565b820191906000526020600020905b81548152906001019060200180831161127457829003601f168201915b5050505050915050919050565b60005b601c5481101561141f57806112b55761140f565b601c81815481106112c8576112c861554e565b9060005260206000200154841161140f5760408051600081526020810191829052519020601d8054839081106113005761130061554e565b9060005260206000200160405160200161131a9190614fbe565b604051602081830303815290604052805190602001201461137457601d81815481106113485761134861554e565b906000526020600020016040516020016113629190615048565b60405160208183030381529060405291505b60408051600081526020810191829052519020601e80548390811061139b5761139b61554e565b906000526020600020016040516020016113b59190614fbe565b604051602081830303815290604052805190602001201461140f57601e81815481106113e3576113e361554e565b906000526020600020016040516020016113fd9190614fca565b60405160208183030381529060405291505b611418816154fb565b90506112a1565b50604080516000808252602080830180855283519020878352601690915290839020909261144d9201614fbe565b604051602081830303815290604052805190602001201415611484578061147384613149565b6040516020016111a0929190614f12565b80601660008581526020019081526020016000206040516020016111a0929190614f51565b505060408051808201909152601281527115549248111bd95cc8139bdd08115e1a5cdd60721b6020820152919050565b5050604080518082019091526014815273151bdad95b88111bd95cc8139bdd08115e1a5cdd60621b6020820152919050565b50919050565b6023818154811061152157600080fd5b6000918252602090912001546001600160a01b0316905081565b600b5462010000900460ff16156115835760405162461bcd60e51b815260206004820152600c60248201526b10b6b4b73a24b727b93232b960a11b60448201526064016104b8565b600b5460ff16156115ba5760405162461bcd60e51b81526020600482015260016024820152600560fc1b60448201526064016104b8565b6115c482826131dd565b6115fe5760405162461bcd60e51b815260206004820152600b60248201526a10d0539393d5081352539560aa1b60448201526064016104b8565b610f33816134d3565b731ba3fe6311131a67d97f20162522490c3648f6e233146116585760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b60448201526064016104b8565b806024600082825461166a9190615420565b909155505050565b601660205260009081526040902080546110ab9061549a565b611693612f60565b600c5483116116f45760405162461bcd60e51b815260206004820152602760248201527f4944204d757374204e6f742042652046726f6d204f726967696e616c20436f6c6044820152663632b1ba34b7b760c91b60648201526084016104b8565b80156117885760008261170685613149565b604051602001611717929190614fe7565b60408051601f198184030181529181526000868152600e60209081529190208251929350611749929091840190614576565b50837f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b8260405161177a919061517e565b60405180910390a250505050565b6000838152600e6020908152604090912083516117a792850190614576565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b836040516117d8919061517e565b60405180910390a2505050565b6001600160a01b03851633148061180157506118018533610e39565b61181d5760405162461bcd60e51b81526004016104b89061521d565b61182a8585858585613596565b5050505050565b611839612f60565b600d55565b611846612f60565b805161185157505050565b8051600114156118de5760005b828110156118d857816000815181106118795761187961554e565b6020026020010151601f60008686858181106118975761189761554e565b90506020020160208101906118ac919061481b565b6001600160a01b03168152602081019190915260400160002055806118d0816154fb565b91505061185e565b50505050565b8051821461193c5760405162461bcd60e51b815260206004820152602560248201527f486f6c64657273204172726179204e6f7420457175616c20546f2048656c6420604482015264417272617960d81b60648201526084016104b8565b60005b828110156118d8578181815181106119595761195961554e565b6020026020010151601f60008686858181106119775761197761554e565b905060200201602081019061198c919061481b565b6001600160a01b03168152602081019190915260400160002055806119b0816154fb565b91505061193f565b6119c0613738565b602180546001600160a01b0319166001600160a01b0392909216919091179055565b600b5462010000900460ff16611a285760405162461bcd60e51b815260206004820152600b60248201526a36b4b73a24b727b93232b960a91b60448201526064016104b8565b600b5460ff1615611a5f5760405162461bcd60e51b81526020600482015260016024820152600560fc1b60448201526064016104b8565b60075460009081526014602052604090205460ff1615611aa75760405162461bcd60e51b8152602060048201526003602482015262532f4f60e81b60448201526064016104b8565b6007546001600d5483611aba9190615420565b611ac49190615457565b1115611afc5760405162461bcd60e51b81526020600482015260076024820152660f905b5bdd5b9d60ca1b60448201526064016104b8565b611b05816134d3565b611b0f3382613792565b50565b611b1a612f60565b6021546001600160a01b0316611b675760405162461bcd60e51b8152602060048201526012602482015271536574205061796f7574204164647265737360701b60448201526064016104b8565b60255460245411611bdb57604051600090731ba3fe6311131a67d97f20162522490c3648f6e29047908381818185875af1925050503d8060008114611bc8576040519150601f19603f3d011682016040523d82523d6000602084013e611bcd565b606091505b5050905080611b0f57600080fd5b6021546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611bc8576040519150601f19603f3d011682016040523d82523d6000602084013e611bcd565b565b611c32612f60565b8015611d425760008360018551611c499190615457565b81518110611c5957611c5961554e565b6020026020010151905060005b601c5481101561182a57601c8181548110611c8357611c8361554e565b9060005260206000200154821415611d32578360018551611ca49190615457565b81518110611cb457611cb461554e565b60209081029190910181015160008481526013909252604082205584518590611cdf90600190615457565b81518110611cef57611cef61554e565b60200260200101511115611d1b576000828152601260205260409020805460ff19166001179055611d32565b6000828152601260205260409020805460ff191690555b611d3b816154fb565b9050611c66565b60005b83518110156118d8576000848281518110611d6257611d6261554e565b60200260200101519050838281518110611d7e57611d7e61554e565b6020026020010151601160008381526020019081526020016000206000828254611da89190615420565b925050819055506000848381518110611dc357611dc361554e565b60200260200101511115611def576000818152601060205260409020805460ff19166001179055611e06565b6000818152601060205260409020805460ff191690555b5080611e11816154fb565b915050611d45565b611e21612f60565b8115611f485760005b601c54811015611f285783601c8281548110611e4857611e4861554e565b90600052602060002001541415611e5e57611f28565b601c8054611e6e90600190615457565b81548110611e7e57611e7e61554e565b9060005260206000200154601c8281548110611e9c57611e9c61554e565b9060005260206000200154148015611ed15750601c8181548110611ec257611ec261554e565b90600052602060002001548414155b15611f165760405162461bcd60e51b81526020600482015260156024820152740becadcc8928840d2e640dcdee840c24084c2e8c6d605b1b60448201526064016104b8565b80611f20816154fb565b915050611e2a565b50600083815260196020908152604090912082516118d8928401906145fa565b600083815260186020908152604090912082516118d8928401906145fa565b611f6f612f60565b601c8054611f7f90600190615457565b81548110611f8f57611f8f61554e565b90600052602060002001548311611ffd5760405162461bcd60e51b815260206004820152602c60248201527f4c617374204261746368204944206d757374206265203e2070726576696f757360448201526b0818985d18da081d1bdd185b60a21b60648201526084016104b8565b80156120c057601c805460018181019092557f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a21101849055601d805491820181556000528251612073917f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f01906020850190614576565b50601e805460018101825560009182526040805160208101918290528390526118d8927f50bb669a95c7b50b7e8a6f09454034b2b14cf2b85c730dca9a539ca82cb6e35090920191614576565b601c805460018181019092557f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a21101849055601e805491820181556000528251612130917f50bb669a95c7b50b7e8a6f09454034b2b14cf2b85c730dca9a539ca82cb6e35001906020850190614576565b50601d805460018101825560009182526040805160208101918290528390526118d8927f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f90920191614576565b612185612f60565b600855565b612192612f60565b601755565b61219f612f60565b600b54610100900460ff16156121e25760405162461bcd60e51b815260206004820152600860248201526714995d99585b195960c21b60448201526064016104b8565b80516121f5906006906020840190614576565b5080601d60008154811061220b5761220b61554e565b906000526020600020019080519060200190612228929190614576565b5050600b805461ff001916610100179055565b606081518351146122a05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016104b8565b600083516001600160401b038111156122bb576122bb615564565b6040519080825280602002602001820160405280156122e4578160200160208202803683370190505b50905060005b845181101561235c5761232f8582815181106123085761230861554e565b60200260200101518583815181106123225761232261554e565b6020026020010151610f81565b8282815181106123415761234161554e565b6020908102919091010152612355816154fb565b90506122ea565b509392505050565b601c818154811061237457600080fd5b600091825260209091200154905081565b61238d612f60565b6015805460ff1916911515919091179055565b6123a8612f60565b600b5462010000900460ff166123ee5760405162461bcd60e51b815260206004820152600b60248201526a36b4b73a24b727b93232b960a91b60448201526064016104b8565b60075460009081526014602052604090205460ff16156124365760405162461bcd60e51b8152602060048201526003602482015262532f4f60e81b60448201526064016104b8565b6007546001600d54836124499190615420565b6124539190615457565b111561248b5760405162461bcd60e51b81526020600482015260076024820152660f905b5bdd5b9d60ca1b60448201526064016104b8565b6124958282613792565b5050565b6124a1613738565b611c2860006138df565b606060006040518060600160405280602881526020016156356028913992915050565b601960205281600052604060002081815481106124ea57600080fd5b90600052602060002001600091509150505481565b612507612f60565b600955565b60005b825181101561258a57600083828151811061252c5761252c61554e565b602002602001015190508282815181106125485761254861554e565b6020026020010151600f600083815260200190815260200160002060008282546125729190615457565b9091555061258391508290506154fb565b905061250f565b50612495338383613931565b601860205281600052604060002081815481106124ea57600080fd5b600580546110ab9061549a565b612495338383613acd565b6125d2612f60565b600b8054911515620100000262ff000019909216919091179055565b6003546001600160a01b031633148061261157506022546001600160a01b031633145b61262d5760405162461bcd60e51b81526004016104b89061533d565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031633148061267257506022546001600160a01b031633145b61268e5760405162461bcd60e51b81526004016104b89061533d565b6001600160a01b03919091166000908152601b60205260409020805460ff1916911515919091179055565b6126c1612f60565b6003546001600160a01b03163314806126e457506022546001600160a01b031633145b6127005760405162461bcd60e51b81526004016104b89061533d565b61270c60236000614634565b610f7c60238383614652565b6000828152600f602052604081208054839290612736908490615457565b909155506124959050338383613bae565b731ba3fe6311131a67d97f20162522490c3648f6e233146127985760405162461bcd60e51b815260206004820152600b60248201526a2737ba103a3432903232bb60a91b60448201526064016104b8565b602555565b6127a5612f60565b826128045760405162461bcd60e51b815260206004820152602960248201527f426174636820496e6465782043616e6e6f74204265204f726967696e616c204360448201526837b63632b1ba34b7b760b91b60648201526084016104b8565b801561283b5781601d848154811061281e5761281e61554e565b9060005260206000200190805190602001906118d8929190614576565b81601e848154811061281e5761281e61554e565b601e818154811061285f57600080fd5b9060005260206000200160009150905080546110ab9061549a565b600081815260116020526040812054156128a1575060009081526011602052604090205490565b60005b601c5481101561297c5782158015906128da5750601c81815481106128cb576128cb61554e565b90600052602060002001548311155b801561290c5750601c6128ee600183615457565b815481106128fe576128fe61554e565b906000526020600020015483115b1561296a576000601c82815481106129265761292661554e565b906000526020600020015490506013600082815260200190815260200160002054600014612964576000908152601360205260409020549392505050565b5061297c565b80612974816154fb565b9150506128a4565b50600092915050565b61298d612f60565b61299682613cc6565b156129d45760405162461bcd60e51b815260206004820152600e60248201526d4944204d757374204265204e657760901b60448201526064016104b8565b60005b8251811015612a5b5760008382815181106129f4576129f461554e565b60200260200101519050612a0781612fa3565b828281518110612a1957612a1961554e565b6020026020010151600f60008381526020019081526020016000206000828254612a439190615420565b90915550612a5491508290506154fb565b90506129d7565b50610f7c83838360405180602001604052806000815250613d23565b612a7f612f60565b806007600082825461166a9190615420565b601d818154811061285f57600080fd5b600b5462010000900460ff1615612afa5760405162461bcd60e51b815260206004820152601a60248201527f5265717569726573206d696e74496e4f726465722046616c736500000000000060448201526064016104b8565b600b5460ff1615612b365760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b60448201526064016104b8565b60095482511115612b785760405162461bcd60e51b815260206004820152600c60248201526b546f6f204d616e792049447360a01b60448201526064016104b8565b8051825114612bc95760405162461bcd60e51b815260206004820152601960248201527f49447320616e6420416d6f756e7473204e6f7420457175616c0000000000000060448201526064016104b8565b612bd38282613e7d565b612c135760405162461bcd60e51b8152602060048201526011602482015270086829c9c9ea8409a929ca8408482a8869607b1b60448201526064016104b8565b6000805b8251811015612c5957828181518110612c3257612c3261554e565b602002602001015182612c459190615420565b915080612c51816154fb565b915050612c17565b50600a54811115612cac5760405162461bcd60e51b815260206004820152601b60248201527f426174636820416d6f756e74204c696d6974204578636565646564000000000060448201526064016104b8565b612cb5816134d3565b60005b8351811015612d57576000848281518110612cd557612cd561554e565b60200260200101519050612ce881612fa3565b838281518110612cfa57612cfa61554e565b6020026020010151600f6000878581518110612d1857612d1861554e565b602002602001015181526020019081526020016000206000828254612d3d9190615420565b90915550829150612d4f9050816154fb565b915050612cb8565b506118d884848460405180602001604052806000815250613d23565b6060612d7d613efb565b905090565b6003546001600160a01b0316331480612da557506022546001600160a01b031633145b612dc15760405162461bcd60e51b81526004016104b89061533d565b6000918252601a6020526040909120805460ff1916911515919091179055565b6000612df56003546001600160a01b031690565b6001600160a01b0316336001600160a01b03161480612e1e57506022546001600160a01b031633145b15612e295750600190565b602354156110955760005b602354811015612e875760238181548110612e5157612e5161554e565b6000918252602090912001546001600160a01b0316331415612e7557600191505090565b80612e7f816154fb565b915050612e34565b5050600090565b6001600160a01b038516331480612eaa5750612eaa8533610e39565b612ec65760405162461bcd60e51b81526004016104b89061521d565b61182a8585858585613f22565b612edb613738565b6001600160a01b038116612f405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104b8565b611b0f816138df565b505050505050565b6001600160a01b03163b151590565b612f68612de1565b611c285760405162461bcd60e51b815260206004820152600c60248201526b2737ba1030b71030b236b4b760a11b60448201526064016104b8565b60008181526014602052604090205460ff1661302a576000818152601460209081526040808320805460ff19908116600117909155601a90925290912080549091169055600b5462010000900460ff161561302a57600081815260116020908152604080832060019081905560108352818420805460ff191682179055600f909252909120555b60155460ff1615611b0f5761303d613efb565b600082815260166020908152604090912082516124959391929190910190614576565b6001600160a01b0384166130865760405162461bcd60e51b81526004016104b8906153bc565b3360006130928561405a565b9050600061309f8561405a565b90506130b0836000898585896140a5565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906130e0908490615420565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613140836000898989896141f8565b50505050505050565b6060600061315683614363565b60010190506000816001600160401b0381111561317557613175615564565b6040519080825280601f01601f19166020018201604052801561319f576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846131d85761235c565b6131a9565b60008281526010602052604081205460ff16156132625760008211801561320657506009548211155b80156132125750600083115b801561322057506007548311155b80156132505750600083815260116020908152604080832054600f9092529091205461324d908490615420565b11155b1561325a57613291565b50600061100f565b60008211801561327457506009548211155b80156132805750600083115b80156132505750600754831161325a575b600083815260186020526040902054156133175760005b60008481526018602052604090205481101561331557600084815260186020526040812080546132f4913391859081106132e4576132e461554e565b9060005260206000200154610f81565b1161330357600091505061100f565b8061330d816154fb565b9150506132a8565b505b60005b601c548110156134c95780158015906133505750601c81815481106133415761334161554e565b90600052602060002001548411155b80156133825750601c613364600183615457565b815481106133745761337461554e565b906000526020600020015484115b156134b7576000601c828154811061339c5761339c61554e565b60009182526020808320909101548083526019909152604090912054909150156134245760005b60008281526019602052604090205481101561342257600082815260196020526040812080546133ff913391859081106132e4576132e461554e565b11613410576000935050505061100f565b8061341a816154fb565b9150506133c3565b505b60008181526012602052604090205460ff16156134af5760008411801561344d57506009548411155b80156134595750600085115b801561346757506007548511155b801561349a5750600081815260136020908152604080832054888452600f90925290912054613497908690615420565b11155b156134a4576134b5565b60009250505061100f565b506134b7565b505b806134c1816154fb565b91505061331a565b5060019392505050565b3360009081526020808052604080832054601f9092528220546134f69190615457565b90508181106135025750805b61350a612de1565b61249557613516611080565b6135208284615457565b61352a9190615438565b3410156135625760405162461bcd60e51b81526020600482015260066024820152652146756e647360d01b60448201526064016104b8565b600034118015613576575060255460245411155b1561249557346024600082825461358d9190615420565b90915550505050565b81518351146135b75760405162461bcd60e51b81526004016104b890615374565b6001600160a01b0384166135dd5760405162461bcd60e51b81526004016104b89061526b565b336135ec8187878787876140a5565b60005b84518110156136d257600085828151811061360c5761360c61554e565b60200260200101519050600085838151811061362a5761362a61554e565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561367a5760405162461bcd60e51b81526004016104b8906152f3565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906136b7908490615420565b92505081905550505050806136cb906154fb565b90506135ef565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613722929190615150565b60405180910390a4612f4981878787878761443b565b6003546001600160a01b03163314611c285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104b8565b6000816001600160401b038111156137ac576137ac615564565b6040519080825280602002602001820160405280156137d5578160200160208202803683370190505b5090506000826001600160401b038111156137f2576137f2615564565b60405190808252806020026020018201604052801561381b578160200160208202803683370190505b50905060005b8381101561389e57600d5461383581612fa3565b600d5484838151811061384a5761384a61554e565b602002602001018181525050600183838151811061386a5761386a61554e565b6020908102919091010152600d8054906000613885836154fb565b9190505550508080613896906154fb565b915050613821565b50336000908152602080526040812080548592906138bd908490615420565b925050819055506118d884838360405180602001604052806000815250613d23565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166139575760405162461bcd60e51b81526004016104b8906152b0565b80518251146139785760405162461bcd60e51b81526004016104b890615374565b600033905061399b818560008686604051806020016040528060008152506140a5565b60005b8351811015613a605760008482815181106139bb576139bb61554e565b6020026020010151905060008483815181106139d9576139d961554e565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015613a295760405162461bcd60e51b81526004016104b8906151d9565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580613a58816154fb565b91505061399e565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051613ab1929190615150565b60405180910390a46040805160208101909152600090526118d8565b816001600160a01b0316836001600160a01b03161415613b415760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016104b8565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038316613bd45760405162461bcd60e51b81526004016104b8906152b0565b336000613be08461405a565b90506000613bed8461405a565b9050613c0d838760008585604051806020016040528060008152506140a5565b6000858152602081815260408083206001600160a01b038a16845290915290205484811015613c4e5760405162461bcd60e51b81526004016104b8906151d9565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4604080516020810190915260009052613140565b6000805b8251811015613d1a576000838281518110613ce757613ce761554e565b60200260200101519050600c548111613cff57613d09565b5060009392505050565b50613d13816154fb565b9050613cca565b50600192915050565b6001600160a01b038416613d495760405162461bcd60e51b81526004016104b8906153bc565b8151835114613d6a5760405162461bcd60e51b81526004016104b890615374565b33613d7a816000878787876140a5565b60005b8451811015613e1557838181518110613d9857613d9861554e565b6020026020010151600080878481518110613db557613db561554e565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254613dfd9190615420565b90915550819050613e0d816154fb565b915050613d7d565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613e66929190615150565b60405180910390a461182a8160008787878761443b565b6000805b83518110156134c9576000848281518110613e9e57613e9e61554e565b602002602001015190506000848381518110613ebc57613ebc61554e565b60200260200101519050613ed082826131dd565b15613eda57613ee6565b6000935050505061100f565b50508080613ef3906154fb565b915050613e81565b60606000613f07614505565b9050613f1c613f17826001615420565b613149565b91505090565b6001600160a01b038416613f485760405162461bcd60e51b81526004016104b89061526b565b336000613f548561405a565b90506000613f618561405a565b9050613f718389898585896140a5565b6000868152602081815260408083206001600160a01b038c16845290915290205485811015613fb25760405162461bcd60e51b81526004016104b8906152f3565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290613fef908490615420565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461404f848a8a8a8a8a6141f8565b505050505050505050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106140945761409461554e565b602090810291909101015292915050565b6001600160a01b0386166000908152601b602052604090205460ff161580156140e757506001600160a01b0385166000908152601b602052604090205460ff16155b801561410c57506001600160a01b0384166000908152601b602052604090205460ff16155b61416c5760405162461bcd60e51b815260206004820152602b60248201527f4f70657261746f722c2046726f6d2c206f7220546f204164647265737320697360448201526a08149154d5149250d5115160aa1b60648201526084016104b8565b60005b835181101561314057601a600085838151811061418e5761418e61554e565b60209081029190910181015182528101919091526040016000205460ff16156141e65760405162461bcd60e51b815260206004820152600a602482015269119b1859d9d95908125160b21b60448201526064016104b8565b806141f0816154fb565b91505061416f565b6001600160a01b0384163b15612f495760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061423c9089908990889088908890600401615103565b602060405180830381600087803b15801561425657600080fd5b505af1925050508015614286575060408051601f3d908101601f1916820190925261428391810190614cd0565b60015b6143335761429261557a565b806308c379a014156142cc57506142a7615595565b806142b257506142ce565b8060405162461bcd60e51b81526004016104b8919061517e565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016104b8565b6001600160e01b0319811663f23a6e6160e01b146131405760405162461bcd60e51b81526004016104b890615191565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106143a25772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106143ce576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106143ec57662386f26fc10000830492506010015b6305f5e1008310614404576305f5e100830492506008015b612710831061441857612710830492506004015b6064831061442a576064830492506002015b600a831061100f5760010192915050565b6001600160a01b0384163b15612f495760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061447f90899089908890889088906004016150a5565b602060405180830381600087803b15801561449957600080fd5b505af19250505080156144c9575060408051601f3d908101601f191682019092526144c691810190614cd0565b60015b6144d55761429261557a565b6001600160e01b0319811663bc197c8160e01b146131405760405162461bcd60e51b81526004016104b890615191565b600080601754424433600d54601660006001600d546145249190615457565b8152602001908152602001600020604051602001614546959493929190615064565b6040516020818303038152906040528051906020012060001c6145699190615516565b9050613f1c816001615420565b8280546145829061549a565b90600052602060002090601f0160209004810192826145a457600085556145ea565b82601f106145bd57805160ff19168380011785556145ea565b828001600101855582156145ea579182015b828111156145ea5782518255916020019190600101906145cf565b506145f69291506146a5565b5090565b8280548282559060005260206000209081019282156145ea57916020028201828111156145ea5782518255916020019190600101906145cf565b5080546000825590600052602060002090810190611b0f91906146a5565b8280548282559060005260206000209081019282156145ea579160200282015b828111156145ea5781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190614672565b5b808211156145f657600081556001016146a6565b80356001600160a01b03811681146146d157600080fd5b919050565b60008083601f8401126146e857600080fd5b5081356001600160401b038111156146ff57600080fd5b6020830191508360208260051b850101111561471a57600080fd5b9250929050565b600082601f83011261473257600080fd5b8135602061473f826153fd565b60405161474c82826154cf565b8381528281019150858301600585901b8701840188101561476c57600080fd5b60005b8581101561478b5781358452928401929084019060010161476f565b5090979650505050505050565b803580151581146146d157600080fd5b600082601f8301126147b957600080fd5b81356001600160401b038111156147d2576147d2615564565b6040516147e9601f8301601f1916602001826154cf565b8181528460208386010111156147fe57600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561482d57600080fd5b614836826146ba565b9392505050565b6000806040838503121561485057600080fd5b614859836146ba565b9150614867602084016146ba565b90509250929050565b600080600080600060a0868803121561488857600080fd5b614891866146ba565b945061489f602087016146ba565b935060408601356001600160401b03808211156148bb57600080fd5b6148c789838a01614721565b945060608801359150808211156148dd57600080fd5b6148e989838a01614721565b935060808801359150808211156148ff57600080fd5b5061490c888289016147a8565b9150509295509295909350565b600080600080600060a0868803121561493157600080fd5b61493a866146ba565b9450614948602087016146ba565b9350604086013592506060860135915060808601356001600160401b0381111561497157600080fd5b61490c888289016147a8565b60008060006060848603121561499257600080fd5b61499b846146ba565b925060208401356001600160401b03808211156149b757600080fd5b6149c387838801614721565b935060408601359150808211156149d957600080fd5b506149e686828701614721565b9150509250925092565b60008060408385031215614a0357600080fd5b614a0c836146ba565b915061486760208401614798565b60008060408385031215614a2d57600080fd5b614a36836146ba565b946020939093013593505050565b600080600060608486031215614a5957600080fd5b614a62846146ba565b95602085013595506040909401359392505050565b60008060208385031215614a8a57600080fd5b82356001600160401b03811115614aa057600080fd5b614aac858286016146d6565b90969095509350505050565b600080600060408486031215614acd57600080fd5b83356001600160401b0380821115614ae457600080fd5b614af0878388016146d6565b909550935060208601359150808211156149d957600080fd5b60008060408385031215614b1c57600080fd5b82356001600160401b0380821115614b3357600080fd5b818501915085601f830112614b4757600080fd5b81356020614b54826153fd565b604051614b6182826154cf565b8381528281019150858301600585901b870184018b1015614b8157600080fd5b600096505b84871015614bab57614b97816146ba565b835260019690960195918301918301614b86565b5096505086013592505080821115614bc257600080fd5b50614bcf85828601614721565b9150509250929050565b60008060408385031215614bec57600080fd5b82356001600160401b0380821115614c0357600080fd5b614c0f86838701614721565b93506020850135915080821115614bc257600080fd5b600080600060608486031215614c3a57600080fd5b83356001600160401b0380821115614c5157600080fd5b614c5d87838801614721565b94506020860135915080821115614c7357600080fd5b50614c8086828701614721565b925050614c8f60408501614798565b90509250925092565b600060208284031215614caa57600080fd5b61483682614798565b600060208284031215614cc557600080fd5b81356148368161561e565b600060208284031215614ce257600080fd5b81516148368161561e565b600060208284031215614cff57600080fd5b81356001600160401b03811115614d1557600080fd5b614d21848285016147a8565b949350505050565b600060208284031215614d3b57600080fd5b5035919050565b60008060408385031215614d5557600080fd5b8235915061486760208401614798565b600080600060608486031215614d7a57600080fd5b83359250614d8a60208501614798565b915060408401356001600160401b03811115614da557600080fd5b6149e686828701614721565b600080600060608486031215614dc657600080fd5b8335925060208401356001600160401b03811115614de357600080fd5b614c80868287016147a8565b60008060408385031215614e0257600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b83811015614e4157815187529582019590820190600101614e25565b509495945050505050565b60008151808452614e6481602086016020860161546e565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680614e9257607f831692505b6020808410821415614eb457634e487b7160e01b600052602260045260246000fd5b818015614ec85760018114614ed957614f06565b60ff19861689528489019650614f06565b60008881526020902060005b86811015614efe5781548b820152908501908301614ee5565b505084890196505b50505050505092915050565b60008351614f2481846020880161546e565b835190830190614f3881836020880161546e565b64173539b7b760d91b9101908152600501949350505050565b60008351614f6381846020880161546e565b614f6f81840185614e78565b64173539b7b760d91b815260050195945050505050565b60008251614f9881846020870161546e565b653434b23232b760d11b92019182525064173539b7b760d91b6006820152600b01919050565b60006148368284614e78565b6000614fd68284614e78565b602f60f81b81526001019392505050565b66697066733a2f2f60c81b81526000835161500981600785016020880161546e565b602f60f81b600791840191820152835161502a81600884016020880161546e565b64173539b7b760d91b60089290910191820152600d01949350505050565b66697066733a2f2f60c81b81526000614fd66007830184614e78565b8581528460208201526bffffffffffffffffffffffff198460601b166040820152826054820152600061509a6074830184614e78565b979650505050505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906150d190830186614e11565b82810360608401526150e38186614e11565b905082810360808401526150f78185614e4c565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061509a90830184614e4c565b6020815260006148366020830184614e11565b6040815260006151636040830185614e11565b82810360208401526151758185614e11565b95945050505050565b6020815260006148366020830184614e4c565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252601b908201527f4e6f74204f776e6572206f722050726f6a656374204c65616465720000000000604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b0382111561541657615416615564565b5060051b60200190565b6000821982111561543357615433615538565b500190565b600081600019048311821515161561545257615452615538565b500290565b60008282101561546957615469615538565b500390565b60005b83811015615489578181015183820152602001615471565b838111156118d85750506000910152565b600181811c908216806154ae57607f821691505b6020821081141561150b57634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b03811182821017156154f4576154f4615564565b6040525050565b600060001982141561550f5761550f615538565b5060010190565b60008261553357634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561109b5760046000803e5060005160e01c90565b600060443d10156155a35790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156155d257505050505090565b82850191508151818111156155ea5750505050505090565b843d87010160208285010111156156045750505050505090565b615613602082860101876154cf565b509095945050505050565b6001600160e01b031981168114611b0f57600080fdfef09f90b82068747470733a2f2f7777772e68616c66737570657273686f702e636f6d2f20f09f90b8a26469706673582212205ad74f0578ed1287c2605aab4b9656f4a397350b9bfcb67784cd77ac8dd608a464736f6c63430008070033

Loading...
Loading
Loading...
Loading
[ 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.