ETH Price: $3,114.38 (+1.43%)

Token

Immortal Phoenix (Phoenix)
 

Overview

Max Total Supply

999 Phoenix

Holders

456

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
darejewb.eth
Balance
1 Phoenix
0x877adf7a6d29a4678dc86cba270a2c5257b6ecc9
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:
ImmortalPhoenix

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 14 : ImmortalPhoenix.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./ERC721EnumerableCheap.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

struct Phoenix {
        uint128 hash;
        uint8 level;
        string name;
}

struct MetadataStruct {

    uint tokenId;
    uint collectionId;
    uint numTraits;
    string description;
    string unRevealedImage;

}

struct PaymentStruct {
    address membersAddress;
    uint owed;
    uint payed;
}

struct ResurrectionInfo {
    uint tokenId;
    uint128 hash;
}


contract IBlazeToken {

    function updateTokens(address userAddress) external {}

    function updateTransfer(address _fromAddress, address _toAddress) external {}

    function burn(address  _from, uint256 _amount) external {}

}

contract IMetadataHandler {

    function tokenURI(Phoenix memory _phoenix, MetadataStruct memory _metadataStruct) external view returns(string memory)  {}

    function getSpecialToken(uint _collectionId, uint _tokenId) external view returns(uint) {}

    function resurrect(uint _collectionId, uint _tokenId) external {}

    function rewardMythics(uint _collectionId, uint _numMythics) external {}
}

/**
 __     __    __     __    __     ______     ______     ______   ______     __           
/\ \   /\ "-./  \   /\ "-./  \   /\  __ \   /\  == \   /\__  _\ /\  __ \   /\ \          
\ \ \  \ \ \-./\ \  \ \ \-./\ \  \ \ \/\ \  \ \  __<   \/_/\ \/ \ \  __ \  \ \ \____     
 \ \_\  \ \_\ \ \_\  \ \_\ \ \_\  \ \_____\  \ \_\ \_\    \ \_\  \ \_\ \_\  \ \_____\    
  \/_/   \/_/  \/_/   \/_/  \/_/   \/_____/   \/_/ /_/     \/_/   \/_/\/_/   \/_____/    
                                                                                         
             ______   __  __     ______     ______     __   __     __     __  __         
            /\  == \ /\ \_\ \   /\  __ \   /\  ___\   /\ "-.\ \   /\ \   /\_\_\_\        
            \ \  _-/ \ \  __ \  \ \ \/\ \  \ \  __\   \ \ \-.  \  \ \ \  \/_/\_\/_       
             \ \_\    \ \_\ \_\  \ \_____\  \ \_____\  \ \_\\"\_\  \ \_\   /\_\/\_\      
              \/_/     \/_/\/_/   \/_____/   \/_____/   \/_/ \/_/   \/_/   \/_/\/_/      
                                                                                         
*/


contract ImmortalPhoenix is ERC721EnumerableCheap, Ownable {

    mapping(uint256 => Phoenix) tokenIdToPhoenix;

    uint[6] levelUpCosts;

    bool public publicMint;

    uint16 public maxSupply = 5001;

    uint8 public totalLevelSix;

    uint8 public maxLevelSix = 200;

    //Price in wei = 0.055 eth
    uint public price = 0.055 ether;

    uint public nameCost = 80 ether;

    uint public resurrectCost = 100 ether;

    IMetadataHandler metadataHandler;

    mapping(address => uint) addressToLevels;

    IBlazeToken blazeToken;

    uint[] roleMaxMint;

    bytes32[] roots;

    PaymentStruct[] payments;

    mapping(address => uint) numMinted;

    mapping(string => bool) nameTaken;

    ResurrectionInfo previousResurrection;

    bool allowResurrection;

    uint resurrectionId;

    event LeveledUp(uint id, address indexed userAddress);
    event NameChanged(uint id, address indexed userAddress);

    constructor(address _blazeTokenAddress, address _metadataHandlerAddress, uint[] memory _roleMaxMint, PaymentStruct[] memory _payments) ERC721Cheap("Immortal Phoenix", "Phoenix") {

        levelUpCosts = [10 ether, 20 ether, 30 ether, 40 ether, 50 ether, 60 ether];

        blazeToken = IBlazeToken(_blazeTokenAddress);
        metadataHandler = IMetadataHandler(_metadataHandlerAddress);
        roleMaxMint = _roleMaxMint;

        for(uint i = 0; i < _payments.length; i++) {
            payments.push(_payments[i]);
        }
        
    }

    /**
     _      _      _      _    _      _____    _     _     _      _____    
    /\ "-./  \   /\ \   /\ "-.\ \   /\__  _\ /\ \   /\ "-.\ \   /\  ___\   
    \ \ \-./\ \  \ \ \  \ \ \-.  \  \/_/\ \/ \ \ \  \ \ \-.  \  \ \ \__ \  
     \ \_\ \ \_\  \ \_\  \ \_\\"\_\    \ \_\  \ \_\  \ \_\\"\_\  \ \_____\ 
      \/_/  \/_/   \/_/   \/_/ \/_/     \/_/   \/_/   \/_/ \/_/   \/_____/

    */

    /**
     * @dev Generates a random number that will be used by the metadata manager to generate the image.
     * @param _tokenId The token id used to generated the hash.
     * @param _address The address used to generate the hash.
     */
    function generateTraits(
        uint _tokenId,
        address _address
    ) internal view returns (uint128) {

        //TODO: turn back to internal

        return uint128(
                    uint256(
                        keccak256(
                            abi.encodePacked(
                                block.timestamp,
                                block.difficulty,
                                _tokenId,
                                _address
                                
                            )
                        )   
                    )
                );

    }

    /**
     * @dev internal function that mints a phoenix, generates its hash and base values, can be called by public or whistlist external functions.
     * @param thisTokenId is the token id of the soon to be minted phoenix
     * @param sender is the address to mint to
     */
    function mint(uint256 thisTokenId, address sender) internal {

        tokenIdToPhoenix[thisTokenId] = Phoenix(
            generateTraits(thisTokenId, sender),
            1,
            string("")
        );

        _mint(sender, thisTokenId);

    }

    /**
     * @dev public mint function, mints the requested number of phoenixs.
     * @param _amountToMint the number of phoenixs to mint in this transaction, limited to a max of 5
     */
    function mintPhoenix(uint _amountToMint) external payable {

        require(publicMint == true, "Minting isnt public at the moment");

        require(_amountToMint > 0, "Enter a valid amount to mint");

        require(_amountToMint < 6, "Attempting to mint too many");

        require(price * _amountToMint == msg.value, "Incorrect ETH value");

        uint tokenId = totalSupply();
        require(tokenId + _amountToMint < maxSupply, "All tokens already minted");

        address sender = _msgSender();

        for(uint i = 0; i < _amountToMint; i++) {
        
            mint(tokenId + i, sender);

        }

        blazeToken.updateTokens(sender);
        
        addressToLevels[sender] += _amountToMint;   
    }

    /**
     * @dev Mints new Phoenix if the address is on the whitelist.
     * @param _merkleProof the proof required to verify if this address is on the whilelist
     * @param _amountToMint is the number of phoenixs requested to mint, limited based on the whitelist the user is on
     * @param _merkleIndex is the index of the whitelist the user has submitted a proof for
     */
    function mintPhoenixWhiteList(bytes32[] calldata _merkleProof, uint _amountToMint, uint _merkleIndex) external payable {

        require(_amountToMint > 0, "Enter a valid amount to mint");

        uint thisTokenId = totalSupply();

        require(price * _amountToMint == msg.value, "Incorrect ETH value");
        require(thisTokenId + _amountToMint < maxSupply, "All tokens already minted");

        address sender = _msgSender();

        bytes32 leaf = keccak256(abi.encodePacked(sender));

        require(MerkleProof.verify(_merkleProof, roots[_merkleIndex], leaf), "Invalid proof");

        require(numMinted[sender] + _amountToMint <= roleMaxMint[_merkleIndex], "Trying to mint more than allowed");

        numMinted[sender] += _amountToMint;

        for(uint i = 0; i < _amountToMint; i++) {
            mint(thisTokenId + i, sender);
        }

        blazeToken.updateTokens(sender);

        addressToLevels[sender] += _amountToMint;
        
    }

    /** 
         __  __     ______   __     __         __     ______   __  __    
        /\ \/\ \   /\__  _\ /\ \   /\ \       /\ \   /\__  _\ /\ \_\ \   
        \ \ \_\ \  \/_/\ \/ \ \ \  \ \ \____  \ \ \  \/_/\ \/ \ \____ \  
         \ \_____\    \ \_\  \ \_\  \ \_____\  \ \_\    \ \_\  \/\_____\ 
          \/_____/     \/_/   \/_/   \/_____/   \/_/     \/_/   \/_____/                                                          

    */

    /**
    * @dev Levels up the chosen phoenix by the selected levels at the cost of blaze tokens
    * @param _tokenId is the id of the phoenix to level up
    * @param _levels is the number of levels to level up by
    */
    function levelUp(uint _tokenId, uint8 _levels) external {

        address sender = _msgSender();

        require(sender == ownerOf(_tokenId), "Not owner of token");

        uint8 currentLevel = tokenIdToPhoenix[_tokenId].level;

        uint8 level = currentLevel + _levels;

        if(level >= 6) {

            uint specialId = metadataHandler.getSpecialToken(0, _tokenId);

            if(specialId == 0) {
                require(level  <= 6, "Cant level up to seven unless unique");
                require(totalLevelSix < maxLevelSix, "Already max amount of levels 6 phoenixs created");
                totalLevelSix++;
            } else {
                require(level <= 7, "Not even uniques can level past 7");
            }

        }

        uint cost;
        for(uint8 i = currentLevel - 1; i < level; i++) {

            cost += levelUpCosts[i];

        }
        
        blazeToken.updateTokens(sender);

        blazeToken.burn(sender, cost);

        addressToLevels[sender] += uint(_levels);
        tokenIdToPhoenix[_tokenId].level = level;

        emit LeveledUp(_tokenId, sender);

    }

    /**
    * @dev Makes sure the name is valid with the constraints set
    * @param _name is the desired name to be verified
    * @notice credits to cyberkongz
    */ 
    function validateName(string memory _name) public pure returns (bool){

        bytes memory byteString = bytes(_name);
        
        if(byteString.length == 0) return false;
        
        if(byteString.length >= 20) return false;

        for(uint i; i < byteString.length; i++){

            bytes1 character = byteString[i];

            //limit the name to only have numbers, letters, or spaces
            if(
                !(character >= 0x30 && character <= 0x39) &&
                !(character >= 0x41 && character <= 0x5A) &&
                !(character >= 0x61 && character <= 0x7A) &&
                !(character == 0x20)
            )
                return false;
        }

        return true;
    }

    /**
    * @dev Changes the name of the selected phoenix, at the cost of blaze tokens
    * @param _name is the desired name to change the phoenix to
    * @param _tokenId is the id of the token whos name will be changed
    */
    function changeName(string memory _name, uint _tokenId) external {

        require(_msgSender() == ownerOf(_tokenId), "Only the owner of this token can change the name");

        require(validateName(_name) == true, "Invalid name");

        require(nameTaken[_name] == false, "Name is already taken");

        string memory currentName = tokenIdToPhoenix[_tokenId].name;

        blazeToken.burn(_msgSender(), nameCost);

        if(bytes(currentName).length == 0) {

            nameTaken[currentName] = false;

        }

        nameTaken[_name] = true;

        tokenIdToPhoenix[_tokenId].name = _name;

        emit NameChanged(_tokenId, _msgSender());

    }

    /**
    * @dev rerolls the traits of a phoenix, consuming blaze to rise anew from the ashes. This process happens with a slight delay to get info from the next resurection to take place
    * @param _tokenId is the id of the phoenix to be reborn
    */
    function resurrect(uint _tokenId) external {

        address sender = _msgSender();

        require(sender == ownerOf(_tokenId), "Only the owner of this token can resurect their phoenix");
        require(allowResurrection == true, "Resurection isn't allowed at this time");

        blazeToken.burn(sender, resurrectCost);

        uint128 hash = generateTraits(_tokenId, sender);

        ResurrectionInfo memory prevRes = previousResurrection;

        if(prevRes.hash != 0) {

            uint128 newHash = uint128(
                    uint256(
                        keccak256(
                            abi.encodePacked(
                                block.timestamp,
                                block.difficulty,
                                prevRes.hash,
                                hash,
                                prevRes.tokenId     
                            )
                        )   
                    )
                );

            Phoenix memory phoenix = tokenIdToPhoenix[prevRes.tokenId];

            phoenix.hash = newHash;

            tokenIdToPhoenix[prevRes.tokenId] = phoenix;

        }

        metadataHandler.resurrect(resurrectionId, _tokenId);

        previousResurrection = ResurrectionInfo(_tokenId, hash);

    }

    /**
         ______     ______     ______     _____    
        /\  == \   /\  ___\   /\  __ \   /\  __-.  
        \ \  __<   \ \  __\   \ \  __ \  \ \ \/\ \ 
         \ \_\ \_\  \ \_____\  \ \_\ \_\  \ \____- 
          \/_/ /_/   \/_____/   \/_/\/_/   \/____/ 
                                           
    */
    
    /**
     * @dev Returns metadata for the token by asking for it from the set metadata manager, which generates the metadata all on chain
     * @param _tokenId is the id of the phoenix requesting its metadata.
     */
    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        require(_exists(_tokenId));

        Phoenix memory _phoenix = tokenIdToPhoenix[_tokenId];

        MetadataStruct memory metaDataStruct = MetadataStruct(_tokenId,
                        0,
                            6,
                                "5000 Onchain Immortal Phoenix risen from the ashes onto the Ethereum blockchain ready to take nft land by storm.",
                                    "iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAAAXNSR0IArs4c6QAAAAxQTFRFAAAAuo+P+vr6/f3+BbtU0AAAAMNJREFUKM+t0b0NwyAQBeBHFBrXQezgKRiBgpOriFHwKC4t78MoqZM7QDaW8tPkWUJ8MveEbDy74A94TDtyzAcoBsvMUeDv3mZKJK/hyJlgyFsBCDoocgUqADcYZwq8gjw6MbRXDhwVBa4CU4UvMAKoawEPMVp4CEemhnHlxTZsW2ko+8syzNxQMcyXReoqAIZ6A3xBVyB9HUZ0x9Zy02OEb9owy2p/oeYjXDfD336HJpr2QyblDuX/tOgTUgd1QuwAxgtmj7BFtSVEWwAAAABJRU5ErkJggg=="
                                        );

        

        string memory metaData = metadataHandler.tokenURI(
            _phoenix,
                metaDataStruct
                    );

        return metaData;

        
    }

    function getLastResurrection() public view returns (ResurrectionInfo memory) {

        return previousResurrection;

    }

    /**
    * @dev returns the total levels of phoenixs a user has, used by the blaze contract to calculate token generation rate
    * @param _userAddress is the address in question
    */
    function getTotalLevels(address _userAddress) external view returns(uint) {

        return addressToLevels[_userAddress];

    }

    /**
     * @dev Returns the info about a given phoenix token
     * @param _tokenId of desired phoenix
    */
    function getPhoenixFromId(uint _tokenId) public view returns(Phoenix memory) {
        require(_tokenId < totalSupply(), "Token id outside range");
        return tokenIdToPhoenix[_tokenId];
    }

    /**
     * @dev Returns an array of token ids the address owns, mainly for frontend use, and helps with limitations set by storing less info
     * @param _addr address of interest
    */
    function getPhoenixesOfAddress(address _addr) public view returns(uint[] memory) {

        uint[] memory tempArray;

        if(addressToLevels[_addr] == 0) {
            return tempArray;
        }

        tempArray = new uint[](addressToLevels[_addr]);
        uint total = 0;
        for(uint i = 0; i < totalSupply(); i++) {
            if(_owners[i] == _addr) {
                tempArray[total] = i;
                total++;
            }
        }

        uint[] memory finalArray = new uint[](total);
        for(uint i = 0; i < total; i++) {
            finalArray[i] = tempArray[i];
        }
        
        return finalArray;

    }


    /**
         ______     __     __     __   __     ______     ______    
        /\  __ \   /\ \  _ \ \   /\ "-.\ \   /\  ___\   /\  == \   
        \ \ \/\ \  \ \ \/ ".\ \  \ \ \-.  \  \ \  __\   \ \  __<   
         \ \_____\  \ \__/".~\_\  \ \_\\"\_\  \ \_____\  \ \_\ \_\ 
          \/_____/   \/_/   \/_/   \/_/ \/_/   \/_____/   \/_/ /_/ 
                                                           
    */

    /**
    * @dev Sets the blaze token contract
    * @param _tokenAddress address of the blaze token
    */
    function setBlazeToken(address _tokenAddress) external onlyOwner {
        blazeToken = IBlazeToken(_tokenAddress);
    }

    /**
    * @dev sets the contract interface to interact with the metadata handler, which generates the phoenixs metadata on chain
    * @param _metaAddress is the address of the metadata handler
    */
    function setMetadataHandler(address _metaAddress) external onlyOwner {
        metadataHandler = IMetadataHandler(_metaAddress);
    }


    /**
    * @dev mint function called once after deploying the contract to reward the teams hard work, 2 will be minted for each team member, to a total of 8
    * @param addresses is an array of addresses of the devs that can mint
    * @param numEach is the number of phoenixs minted per address
    */
    function devMint(address[] calldata addresses, uint numEach) external onlyOwner {

        uint supply = totalSupply();

        require(supply + (addresses.length * numEach) <= 8, "Trying to mint more than you should");

        for(uint i = 0; i < addresses.length; i++) {

            address addr = addresses[i];

            for(uint j = 0; j < numEach; j++) {
                mint(supply, addr);
                supply++;
            }

            addressToLevels[addr] += numEach;

        }

    }

     /**
     * @dev Withdraw ether from this contract to the team for the agreed amounts, only callable by the owner
     */
    function withdraw() external onlyOwner {

        address thisAddress = address(this);

        require(thisAddress.balance > 0, "there is no balance in the address");
        require(payments.length > 0, "havent set the payments");

        for(uint i = 0; i < payments.length; i++) {

            if(thisAddress.balance == 0) {
                return;
            }

            PaymentStruct memory payment = payments[i];

            uint paymentLeft = payment.owed - payment.payed;

            if(paymentLeft > 0) {

                uint amountToPay;

                if(thisAddress.balance >= paymentLeft) {

                    amountToPay = paymentLeft;


                } else {
                    amountToPay = thisAddress.balance;
                }

                payment.payed += amountToPay;
                payments[i].payed = payment.payed;

                payable(payment.membersAddress).transfer(amountToPay);

            } 

        }

        if(thisAddress.balance > 0) {

            payable(payments[payments.length - 1].membersAddress).transfer(thisAddress.balance);
        }
        
    }

    /**
    * @dev sets the root of the merkle tree, used to verify whitelist addresses
    * @param _root the root of the merkle tree
    */
    function setMerkleRoots(bytes32[] calldata _root) external onlyOwner {
        roots = _root;
    }

    /**
    * @dev Lowers the max supply in case minting doesnt sell out
    * @param _newMaxSupply the new, and lower max supply
    */ 
    function lowerMaxSupply(uint _newMaxSupply) external onlyOwner {
        require(_newMaxSupply >= totalSupply());
        require(_newMaxSupply < maxSupply);

        maxSupply = uint16(_newMaxSupply);
    }

    /**
    * @dev toggles the ability for anyone to mint to whitelist only, of vice versa
    */
    function togglePublicMint() external onlyOwner {
        publicMint = !publicMint;
    }

    // @notice Will receive any eth sent to the contract
    receive() external payable {

    }

    /**
    * @dev Reverts the name back to the base initial name, will be used by the team to revert offensive names
    * @param _tokenId token id to be reverted
    */
    function revertName(uint _tokenId) external onlyOwner {

        tokenIdToPhoenix[_tokenId].name = ""; 

    }

    /**
    * @dev Toggle the ability to resurect phoenix tokens and reroll traits
    */
    function toggleResurrection() public onlyOwner {
        allowResurrection = !allowResurrection;
    }

    /**
    * @dev Give out mythics to phoenixs that have resurrected recently
    * @param _numMythics is the number of mythics that will be given out
    */
    function rewardMythics(uint _numMythics) external onlyOwner {

        require(allowResurrection == false, "Need to have resurrection paused mythics are rewarded");
        metadataHandler.rewardMythics(resurrectionId, _numMythics);

        toggleResurrection();

    }

    /**
    * @dev Allows the owner to raise the max level six cap, but only by 100 at a time
    * @param _newMax is the new level six cap to be set
    */
    function raiseMaxLevelSix(uint8 _newMax) external onlyOwner {

        require(_newMax > maxLevelSix, "Need to set the new max to be larger");

        require(_newMax - maxLevelSix <= 100, "Can't raise it by more than 100 at a time");

        maxLevelSix = _newMax;

    }

    function setRessurectionId(uint _id) external onlyOwner {

        resurrectionId = _id;

    } 

    function setBlazeCosts(uint _nameCost, uint _resurrectCost) external onlyOwner {

        nameCost = _nameCost;
        resurrectCost = _resurrectCost;
    }

    /**
         ______     __   __   ______     ______     ______     __     _____     ______    
        /\  __ \   /\ \ / /  /\  ___\   /\  == \   /\  == \   /\ \   /\  __-.  /\  ___\   
        \ \ \/\ \  \ \ \'/   \ \  __\   \ \  __<   \ \  __<   \ \ \  \ \ \/\ \ \ \  __\   
         \ \_____\  \ \__|    \ \_____\  \ \_\ \_\  \ \_\ \_\  \ \_\  \ \____-  \ \_____\ 
          \/_____/   \/_/      \/_____/   \/_/ /_/   \/_/ /_/   \/_/   \/____/   \/_____/ 
                                                                                  
    */

    /**
    * @dev Override the transfer function to update the blaze token contract
    */
    function transferFrom(address from, address to, uint256 tokenId) public override {

        blazeToken.updateTransfer(from, to);

        uint level = uint(tokenIdToPhoenix[tokenId].level);

        addressToLevels[from] -= level;
        addressToLevels[to] += level;

        ERC721Cheap.transferFrom(from, to, tokenId);

    }

    /**
    * @dev Override the transfer function to update the blaze token contract
    */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public override {


        blazeToken.updateTransfer(from, to);

        uint level = uint(tokenIdToPhoenix[tokenId].level);

        addressToLevels[from] -= level;
        addressToLevels[to] += level;

        ERC721Cheap.safeTransferFrom(from, to, tokenId, _data);

    }

}

File 2 of 14 : ERC721EnumerableCheap.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "./ERC721Cheap.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 * Altered to remove all storage variables to make minting and transfers cheaper, at the cost of more time to query
 * 
 */
abstract contract ERC721EnumerableCheap is ERC721Cheap, IERC721Enumerable {
    
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721Cheap) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * Altered to loop through tokens rather thsn grab from stored map
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {

        uint ownerIndex;
        uint supply = totalSupply();
       
        for(uint i = 0; i < supply; i++) {

            if(_owners[i] == owner) {
                if(ownerIndex == index) {
                    return i;
                }

                ownerIndex++;
            }

        }

        //Need to catch this case additionally, can't call revert with a message so ill make sure it catches
        require(true == false, "ERC721Enumerable: owner index out of bounds");
        
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     * Altered to use the ERC721Cheap _owners array instead of _allTokens
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _owners.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     * Altered to use ERC721Cheap _owners array instead of _allTokens
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721EnumerableCheap.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return index;
    }

    
}

File 3 of 14 : ERC721Cheap.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, _owners 
 *
 * Altered _owners to an array and removed _balances, to allow for a cheaper {Erc721Enumerable} implementation at the cost of time
 * to query ownership of tokens
 */
contract ERC721Cheap is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Array of token ID to owner address, set to internal to give {ERC721EnumerableCheap} access
    address[] internal _owners;

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     * altered to remove the need to set a balances map
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");

        uint balance;
        uint totalSupply = _owners.length;

        for(uint i = 0; i < totalSupply; i++) {
            if(owner == _owners[i]) balance++;
        }
        return balance;
    }

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

     
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

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

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

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

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

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

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

        _owners.push(to);

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     * 
     * Altered to set the address of the token to the burn address instead of removing it
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721Cheap.ownerOf(tokenId);

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

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

        _owners[tokenId] = address(0);

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 4 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 5 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT

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 6 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 7 of 14 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 14 : Context.sol
// SPDX-License-Identifier: MIT

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 9 of 14 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 13 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_blazeTokenAddress","type":"address"},{"internalType":"address","name":"_metadataHandlerAddress","type":"address"},{"internalType":"uint256[]","name":"_roleMaxMint","type":"uint256[]"},{"components":[{"internalType":"address","name":"membersAddress","type":"address"},{"internalType":"uint256","name":"owed","type":"uint256"},{"internalType":"uint256","name":"payed","type":"uint256"}],"internalType":"struct PaymentStruct[]","name":"_payments","type":"tuple[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"}],"name":"LeveledUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"}],"name":"NameChanged","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256","name":"numEach","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastResurrection","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"hash","type":"uint128"}],"internalType":"struct ResurrectionInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getPhoenixFromId","outputs":[{"components":[{"internalType":"uint128","name":"hash","type":"uint128"},{"internalType":"uint8","name":"level","type":"uint8"},{"internalType":"string","name":"name","type":"string"}],"internalType":"struct Phoenix","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getPhoenixesOfAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"name":"getTotalLevels","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint8","name":"_levels","type":"uint8"}],"name":"levelUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupply","type":"uint256"}],"name":"lowerMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxLevelSix","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountToMint","type":"uint256"}],"name":"mintPhoenix","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_amountToMint","type":"uint256"},{"internalType":"uint256","name":"_merkleIndex","type":"uint256"}],"name":"mintPhoenixWhiteList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nameCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_newMax","type":"uint8"}],"name":"raiseMaxLevelSix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"resurrect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resurrectCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"revertName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numMythics","type":"uint256"}],"name":"rewardMythics","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nameCost","type":"uint256"},{"internalType":"uint256","name":"_resurrectCost","type":"uint256"}],"name":"setBlazeCosts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"setBlazeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_root","type":"bytes32[]"}],"name":"setMerkleRoots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_metaAddress","type":"address"}],"name":"setMetadataHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setRessurectionId","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":"togglePublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleResurrection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLevelSix","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"name":"validateName","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600d805464ff00ffff00191664c80013890017905566c3663566a58000600e556804563918244f400000600f5568056bc75e2d631000006010553480156200004b57600080fd5b5060405162005351380380620053518339810160408190526200006e9162000493565b604080518082018252601081526f092dadadee4e8c2d840a0d0decadcd2f60831b6020808301918252835180850190945260078452660a0d0decadcd2f60cb1b908401528151919291620000c591600091620002a5565b508051620000db906001906020840190620002a5565b505050620000f8620000f26200024f60201b60201c565b62000253565b6040805160c081018252678ac7230489e8000081526801158e460913d0000060208201526801a055690d9db800009181019190915268022b1c8c1227a0000060608201526802b5e3af16b18800006080820152680340aad21b3b70000060a08201526200016a90600790600662000334565b50601380546001600160a01b038087166001600160a01b03199283161790925560118054928616929091169190911790558151620001b090601490602085019062000370565b5060005b815181101562000244576016828281518110620001d557620001d562000672565b602090810291909101810151825460018082018555600094855293839020825160039092020180546001600160a01b0319166001600160a01b039092169190911781559181015192820192909255604090910151600290910155806200023b8162000648565b915050620001b4565b50505050506200069e565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002b3906200060b565b90600052602060002090601f016020900481019282620002d7576000855562000322565b82601f10620002f257805160ff191683800117855562000322565b8280016001018555821562000322579182015b828111156200032257825182559160200191906001019062000305565b5062000330929150620003ad565b5090565b826006810192821562000322579160200282015b828111156200032257825182906001600160481b031690559160200191906001019062000348565b8280548282559060005260206000209081019282156200032257916020028201828111156200032257825182559160200191906001019062000305565b5b80821115620003305760008155600101620003ae565b80516001600160a01b0381168114620003dc57600080fd5b919050565b600082601f830112620003f357600080fd5b815160206200040c6200040683620005e5565b620005b2565b828152818101908583016060808602880185018910156200042c57600080fd5b6000805b87811015620004845782848c03121562000448578182fd5b6200045262000587565b6200045d85620003c4565b81528488015188820152604080860151908201528652948601949282019260010162000430565b50929998505050505050505050565b60008060008060808587031215620004aa57600080fd5b620004b585620003c4565b93506020620004c6818701620003c4565b60408701519094506001600160401b0380821115620004e457600080fd5b818801915088601f830112620004f957600080fd5b81516200050a6200040682620005e5565b8082825285820191508585018c878560051b88010111156200052b57600080fd5b600095505b838610156200055057805183526001959095019491860191860162000530565b5060608b015190975094505050808311156200056b57600080fd5b50506200057b87828801620003e1565b91505092959194509250565b604051606081016001600160401b0381118282101715620005ac57620005ac62000688565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620005dd57620005dd62000688565b604052919050565b60006001600160401b0382111562000601576200060162000688565b5060051b60200190565b600181811c908216806200062057607f821691505b602082108114156200064257634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200066b57634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b614ca380620006ae6000396000f3fe6080604052600436106103225760003560e01c80637bbe820c116101a5578063b96bd5f7116100ec578063d5abeb0111610095578063e985e9c51161006f578063e985e9c51461092b578063ec9458ec14610974578063f2fde38b1461098a578063fe762024146109aa57600080fd5b8063d5abeb01146108c2578063e37b1be0146108f5578063e9566bf61461090b57600080fd5b8063c32ace3b116100c6578063c32ace3b14610855578063c4e9374d14610882578063c87b56dd146108a257600080fd5b8063b96bd5f7146107f3578063ba2db7b914610820578063bc07aa641461083557600080fd5b80639e7882361161014e578063a22cb46511610128578063a22cb465146107a0578063b1a82446146107c0578063b88d4fde146107d357600080fd5b80639e7882361461074a5780639ffdb65a1461076a578063a035b1fe1461078a57600080fd5b8063811c2bab1161017f578063811c2bab146106f75780638da5cb5b1461071757806395d89b411461073557600080fd5b80637bbe820c146106815780637ddd91dc146106b75780637fdefccc146106d757600080fd5b80633ccfd60b116102695780634f6ccce7116102125780636352211e116101ec5780636352211e1461062c57806370a082311461064c578063715018a61461066c57600080fd5b80634f6ccce7146105cb57806354acd90a146105eb5780635d1daec31461060c57600080fd5b80634333a65b116102435780634333a65b146105295780634b96507b1461058b5780634cb15ff6146105ab57600080fd5b80633ccfd60b146104df5780634047638d146104f457806342842e0e1461050957600080fd5b806314ea49b1116102cb57806326092b83116102a557806326092b8314610485578063270dc9fd1461049f5780632f745c59146104bf57600080fd5b806314ea49b11461043357806318160ddd1461044657806323b872dd1461046557600080fd5b8063094d34f1116102fc578063094d34f1146103bd578063095ea7b3146103f1578063125d49f61461041357600080fd5b806301ffc9a71461032e57806306fdde0314610363578063081812fc1461038557600080fd5b3661032957005b600080fd5b34801561033a57600080fd5b5061034e610349366004614529565b6109ca565b60405190151581526020015b60405180910390f35b34801561036f57600080fd5b50610378610a0e565b60405161035a91906147da565b34801561039157600080fd5b506103a56103a036600461464b565b610aa0565b6040516001600160a01b03909116815260200161035a565b3480156103c957600080fd5b50600d546103df90640100000000900460ff1681565b60405160ff909116815260200161035a565b3480156103fd57600080fd5b5061041161040c366004614420565b610b2f565b005b34801561041f57600080fd5b5061041161042e36600461469f565b610c61565b6104116104413660046144d8565b611129565b34801561045257600080fd5b506002545b60405190815260200161035a565b34801561047157600080fd5b5061041161048036600461432c565b6114b3565b34801561049157600080fd5b50600d5461034e9060ff1681565b3480156104ab57600080fd5b506104116104ba366004614606565b61159f565b3480156104cb57600080fd5b506104576104da366004614420565b6118d9565b3480156104eb57600080fd5b506104116119cd565b34801561050057600080fd5b50610411611c9c565b34801561051557600080fd5b5061041161052436600461432c565b611cf8565b34801561053557600080fd5b50604080518082018252600080825260209182015281518083019092526019548252601a546001600160801b03169082015260408051825181526020928301516001600160801b0316928101929092520161035a565b34801561059757600080fd5b506104116105a63660046146c2565b611d13565b3480156105b757600080fd5b506104116105c636600461464b565b611e94565b3480156105d757600080fd5b506104576105e636600461464b565b611ee1565b3480156105f757600080fd5b50600d546103df906301000000900460ff1681565b34801561061857600080fd5b5061041161062736600461464b565b611f64565b34801561063857600080fd5b506103a561064736600461464b565b611fda565b34801561065857600080fd5b506104576106673660046142de565b6120cd565b34801561067857600080fd5b506104116121b6565b34801561068d57600080fd5b5061045761069c3660046142de565b6001600160a01b031660009081526012602052604090205490565b3480156106c357600080fd5b506104116106d236600461464b565b612208565b3480156106e357600080fd5b506104116106f236600461467d565b612358565b34801561070357600080fd5b5061041161071236600461464b565b6123ab565b34801561072357600080fd5b506005546001600160a01b03166103a5565b34801561074157600080fd5b50610378612805565b34801561075657600080fd5b506104116107653660046142de565b612814565b34801561077657600080fd5b5061034e610785366004614563565b61287e565b34801561079657600080fd5b50610457600e5481565b3480156107ac57600080fd5b506104116107bb3660046143e4565b612a6d565b6104116107ce36600461464b565b612b32565b3480156107df57600080fd5b506104116107ee366004614368565b612ddf565b3480156107ff57600080fd5b5061081361080e3660046142de565b612ecd565b60405161035a9190614796565b34801561082c57600080fd5b5061041161307b565b34801561084157600080fd5b50610411610850366004614496565b6130d7565b34801561086157600080fd5b5061087561087036600461464b565b61312b565b60405161035a91906147ed565b34801561088e57600080fd5b5061041161089d36600461464b565b613271565b3480156108ae57600080fd5b506103786108bd36600461464b565b6132fd565b3480156108ce57600080fd5b50600d546108e290610100900461ffff1681565b60405161ffff909116815260200161035a565b34801561090157600080fd5b50610457600f5481565b34801561091757600080fd5b5061041161092636600461444a565b6134ee565b34801561093757600080fd5b5061034e6109463660046142f9565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b34801561098057600080fd5b5061045760105481565b34801561099657600080fd5b506104116109a53660046142de565b61367b565b3480156109b657600080fd5b506104116109c53660046142de565b613748565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610a085750610a08826137b2565b92915050565b606060008054610a1d9061498b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a499061498b565b8015610a965780601f10610a6b57610100808354040283529160200191610a96565b820191906000526020600020905b815481529060010190602001808311610a7957829003601f168201915b5050505050905090565b6000610aad826002541190565b610b135760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610b3a82611fda565b9050806001600160a01b0316836001600160a01b03161415610bc45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b336001600160a01b0382161480610be05750610be08133610946565b610c525760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b0a565b610c5c838361384d565b505050565b33610c6b83611fda565b6001600160a01b0316816001600160a01b031614610ccb5760405162461bcd60e51b815260206004820152601260248201527f4e6f74206f776e6572206f6620746f6b656e00000000000000000000000000006044820152606401610b0a565b600083815260066020526040812054600160801b900460ff1690610cef84836148e1565b905060068160ff1610610f58576011546040517fa8032bbe00000000000000000000000000000000000000000000000000000000815260006004820181905260248201889052916001600160a01b03169063a8032bbe9060440160206040518083038186803b158015610d6157600080fd5b505afa158015610d75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d999190614664565b905080610edc5760068260ff161115610e195760405162461bcd60e51b8152602060048201526024808201527f43616e74206c6576656c20757020746f20736576656e20756e6c65737320756e60448201527f69717565000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b600d5460ff6401000000008204811663010000009092041610610ea45760405162461bcd60e51b815260206004820152602f60248201527f416c7265616479206d617820616d6f756e74206f66206c6576656c732036207060448201527f686f656e697873206372656174656400000000000000000000000000000000006064820152608401610b0a565b600d80546301000000900460ff16906003610ebe836149e1565b91906101000a81548160ff021916908360ff16021790555050610f56565b60078260ff161115610f565760405162461bcd60e51b815260206004820152602160248201527f4e6f74206576656e20756e69717565732063616e206c6576656c20706173742060448201527f37000000000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b505b600080610f6660018561493c565b90505b8260ff168160ff161015610fad5760078160ff1660068110610f8d57610f8d614a17565b0154610f9990836148c9565b915080610fa5816149e1565b915050610f69565b50601354604051630b942d5760e21b81526001600160a01b03868116600483015290911690632e50b55c90602401600060405180830381600087803b158015610ff557600080fd5b505af1158015611009573d6000803e3d6000fd5b5050601354604051632770a7eb60e21b81526001600160a01b038881166004830152602482018690529091169250639dc29fac9150604401600060405180830381600087803b15801561105b57600080fd5b505af115801561106f573d6000803e3d6000fd5b505050506001600160a01b0384166000908152601260205260408120805460ff8816929061109e9084906148c9565b909155505060008681526006602090815260409182902080547fffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffff16600160801b60ff87160217905590518781526001600160a01b038616917f962ed0466749f0ece2bc263f48cc97232ee73ae72742936ec9ccd1689a84351a910160405180910390a2505050505050565b600082116111795760405162461bcd60e51b815260206004820152601c60248201527f456e74657220612076616c696420616d6f756e7420746f206d696e74000000006044820152606401610b0a565b600061118460025490565b90503483600e546111959190614906565b146111e25760405162461bcd60e51b815260206004820152601360248201527f496e636f7272656374204554482076616c7565000000000000000000000000006044820152606401610b0a565b600d54610100900461ffff166111f884836148c9565b106112455760405162461bcd60e51b815260206004820152601960248201527f416c6c20746f6b656e7320616c7265616479206d696e746564000000000000006044820152606401610b0a565b6000336040516bffffffffffffffffffffffff19606083901b1660208201529091506000906034016040516020818303038152906040528051906020012090506112e2878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506015805490925088915081106112d1576112d1614a17565b9060005260206000200154836138bb565b61132e5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606401610b0a565b6014848154811061134157611341614a17565b60009182526020808320909101546001600160a01b038516835260179091526040909120546113719087906148c9565b11156113bf5760405162461bcd60e51b815260206004820181905260248201527f547279696e6720746f206d696e74206d6f7265207468616e20616c6c6f7765646044820152606401610b0a565b6001600160a01b038216600090815260176020526040812080548792906113e79084906148c9565b90915550600090505b8581101561141d5761140b61140582866148c9565b8461396a565b80611415816149c6565b9150506113f0565b50601354604051630b942d5760e21b81526001600160a01b03848116600483015290911690632e50b55c90602401600060405180830381600087803b15801561146557600080fd5b505af1158015611479573d6000803e3d6000fd5b505050506001600160a01b038216600090815260126020526040812080548792906114a59084906148c9565b909155505050505050505050565b60135460405162b108ad60e41b81526001600160a01b038581166004830152848116602483015290911690630b108ad090604401600060405180830381600087803b15801561150157600080fd5b505af1158015611515573d6000803e3d6000fd5b5050506000828152600660209081526040808320546001600160a01b0388168452601290925282208054600160801b90920460ff1693508392909161155b908490614925565b90915550506001600160a01b038316600090815260126020526040812080548392906115889084906148c9565b909155506115999050848484613a4a565b50505050565b6115a881611fda565b6001600160a01b0316336001600160a01b03161461162e5760405162461bcd60e51b815260206004820152603060248201527f4f6e6c7920746865206f776e6572206f66207468697320746f6b656e2063616e60448201527f206368616e676520746865206e616d65000000000000000000000000000000006064820152608401610b0a565b6116378261287e565b15156001146116885760405162461bcd60e51b815260206004820152600c60248201527f496e76616c6964206e616d6500000000000000000000000000000000000000006044820152606401610b0a565b601882604051611698919061473e565b9081526040519081900360200190205460ff16156116f85760405162461bcd60e51b815260206004820152601560248201527f4e616d6520697320616c72656164792074616b656e00000000000000000000006044820152606401610b0a565b600081815260066020526040812060010180546117149061498b565b80601f01602080910402602001604051908101604052809291908181526020018280546117409061498b565b801561178d5780601f106117625761010080835404028352916020019161178d565b820191906000526020600020905b81548152906001019060200180831161177057829003601f168201915b5050601354939450506001600160a01b039092169150639dc29fac905033600f546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156117f457600080fd5b505af1158015611808573d6000803e3d6000fd5b50505050805160001415611849576000601882604051611828919061473e565b908152604051908190036020019020805491151560ff199092169190911790555b600160188460405161185b919061473e565b9081526040805160209281900383019020805460ff19169315159390931790925560008481526006825291909120845161189e9260019290920191860190614130565b5060405182815233907f5697922a28a0c54eddea486d51be98789112ac304ed73dffe3c68937ce4474a19060200160405180910390a2505050565b60008060006118e760025490565b905060005b8181101561195e57856001600160a01b03166002828154811061191157611911614a17565b6000918252602090912001546001600160a01b0316141561194c578483141561193e579250610a08915050565b82611948816149c6565b9350505b80611956816149c6565b9150506118ec565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610b0a565b6005546001600160a01b03163314611a155760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b308031611a8a5760405162461bcd60e51b815260206004820152602260248201527f7468657265206973206e6f2062616c616e636520696e2074686520616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b601654611ad95760405162461bcd60e51b815260206004820152601760248201527f686176656e742073657420746865207061796d656e74730000000000000000006044820152606401610b0a565b60005b601654811015611c1b576001600160a01b03821631611af9575050565b600060168281548110611b0e57611b0e614a17565b6000918252602080832060408051606081018252600390940290910180546001600160a01b03168452600181015492840183905260020154908301819052919350611b599190614925565b90508015611c0657600081856001600160a01b03163110611b7b575080611b88565b506001600160a01b038416315b8083604001818151611b9a91906148c9565b90525060408301516016805486908110611bb657611bb6614a17565b6000918252602082206002600390920201019190915583516040516001600160a01b039091169183156108fc02918491818181858888f19350505050158015611c03573d6000803e3d6000fd5b50505b50508080611c13906149c6565b915050611adc565b506001600160a01b0381163115611c985760168054611c3c90600190614925565b81548110611c4c57611c4c614a17565b600091825260208220600390910201546040516001600160a01b03918216929184163180156108fc0292909190818181858888f19350505050158015611c96573d6000803e3d6000fd5b505b505b565b6005546001600160a01b03163314611ce45760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b600d805460ff19811660ff90911615179055565b610c5c83838360405180602001604052806000815250612ddf565b6005546001600160a01b03163314611d5b5760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b600d5460ff640100000000909104811690821611611de05760405162461bcd60e51b8152602060048201526024808201527f4e65656420746f2073657420746865206e6577206d617820746f206265206c6160448201527f72676572000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b600d54606490611dfb90640100000000900460ff168361493c565b60ff161115611e725760405162461bcd60e51b815260206004820152602960248201527f43616e2774207261697365206974206279206d6f7265207468616e203130302060448201527f617420612074696d6500000000000000000000000000000000000000000000006064820152608401610b0a565b600d805460ff9092166401000000000264ff0000000019909216919091179055565b6005546001600160a01b03163314611edc5760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b601c55565b6000611eec60025490565b8210611f605760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610b0a565b5090565b6005546001600160a01b03163314611fac5760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b604080516020808201808452600080845285815260069092529290209051611c969260019092019190614130565b600254600090821061202e5760405162461bcd60e51b815260206004820152601460248201527f746f6b656e20646f6573206e6f772065786973740000000000000000000000006044820152606401610b0a565b60006002838154811061204357612043614a17565b6000918252602090912001546001600160a01b0316905080610a085760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b0a565b60006001600160a01b03821661214b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b0a565b600254600090815b818110156121ad576002818154811061216e5761216e614a17565b6000918252602090912001546001600160a01b038681169116141561219b5782612197816149c6565b9350505b806121a5816149c6565b915050612153565b50909392505050565b6005546001600160a01b031633146121fe5760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b611c9a6000613ad1565b6005546001600160a01b031633146122505760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b601b5460ff16156122c95760405162461bcd60e51b815260206004820152603560248201527f4e65656420746f206861766520726573757272656374696f6e2070617573656460448201527f206d7974686963732061726520726577617264656400000000000000000000006064820152608401610b0a565b601154601c546040517f764a1bdf0000000000000000000000000000000000000000000000000000000081526001600160a01b039092169163764a1bdf9161231e918590600401918252602082015260400190565b600060405180830381600087803b15801561233857600080fd5b505af115801561234c573d6000803e3d6000fd5b50505050611c9861307b565b6005546001600160a01b031633146123a05760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b600f91909155601055565b336123b582611fda565b6001600160a01b0316816001600160a01b03161461243b5760405162461bcd60e51b815260206004820152603760248201527f4f6e6c7920746865206f776e6572206f66207468697320746f6b656e2063616e60448201527f2072657375726563742074686569722070686f656e69780000000000000000006064820152608401610b0a565b601b5460ff1615156001146124b85760405162461bcd60e51b815260206004820152602660248201527f5265737572656374696f6e2069736e277420616c6c6f7765642061742074686960448201527f732074696d6500000000000000000000000000000000000000000000000000006064820152608401610b0a565b601354601054604051632770a7eb60e21b81526001600160a01b0384811660048301526024820192909252911690639dc29fac90604401600060405180830381600087803b15801561250957600080fd5b505af115801561251d573d6000803e3d6000fd5b505060408051426020808301919091524482840152606080830188905286901b6bffffffffffffffffffffffff1916608083015282518083036074018152609483018085528151919092012060d483019093526019548152601a546001600160801b031660b49092018290529193509091501561273857602081810151825160408051429481019490945244908401526fffffffffffffffffffffffffffffffff19608092831b8116606085015285831b1660708401529082015260009060a00160408051808303601f190181528282528051602091820120855160009081526006835283812060608601855280546001600160801b0381168752600160801b900460ff16938601939093526001830180549296509094938401916126419061498b565b80601f016020809104026020016040519081016040528092919081815260200182805461266d9061498b565b80156126ba5780601f1061268f576101008083540402835291602001916126ba565b820191906000526020600020905b81548152906001019060200180831161269d57829003601f168201915b505050919092525050506001600160801b0380841682528451600090815260066020908152604091829020845181548387015160ff16600160801b0270ffffffffffffffffffffffffffffffffff19909116919095161793909317835590830151805193945084936127329260018501920190614130565b50505050505b601154601c546040517faa1eaea10000000000000000000000000000000000000000000000000000000081526001600160a01b039092169163aa1eaea19161278d918890600401918252602082015260400190565b600060405180830381600087803b1580156127a757600080fd5b505af11580156127bb573d6000803e3d6000fd5b5050604080518082019091528681526001600160801b03909416602090940184905250505060199290925550601a80546fffffffffffffffffffffffffffffffff19169091179055565b606060018054610a1d9061498b565b6005546001600160a01b0316331461285c5760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b805160009082906128925750600092915050565b60148151106128a45750600092915050565b60005b8151811015612a635760008282815181106128c4576128c4614a17565b01602001516001600160f81b03191690507f3000000000000000000000000000000000000000000000000000000000000000811080159061292f57507f39000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821611155b15801561299d57507f41000000000000000000000000000000000000000000000000000000000000006001600160f81b031982161080159061299b57507f5a000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821611155b155b8015612a0a57507f61000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821610801590612a0857507f7a000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821611155b155b8015612a4057507f20000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821614155b15612a5057506000949350505050565b5080612a5b816149c6565b9150506128a7565b5060019392505050565b6001600160a01b038216331415612ac65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b0a565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600d5460ff161515600114612baf5760405162461bcd60e51b815260206004820152602160248201527f4d696e74696e672069736e74207075626c696320617420746865206d6f6d656e60448201527f74000000000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b60008111612bff5760405162461bcd60e51b815260206004820152601c60248201527f456e74657220612076616c696420616d6f756e7420746f206d696e74000000006044820152606401610b0a565b60068110612c4f5760405162461bcd60e51b815260206004820152601b60248201527f417474656d7074696e6720746f206d696e7420746f6f206d616e7900000000006044820152606401610b0a565b3481600e54612c5e9190614906565b14612cab5760405162461bcd60e51b815260206004820152601360248201527f496e636f7272656374204554482076616c7565000000000000000000000000006044820152606401610b0a565b6000612cb660025490565b600d54909150610100900461ffff16612ccf83836148c9565b10612d1c5760405162461bcd60e51b815260206004820152601960248201527f416c6c20746f6b656e7320616c7265616479206d696e746564000000000000006044820152606401610b0a565b3360005b83811015612d4d57612d3b612d3582856148c9565b8361396a565b80612d45816149c6565b915050612d20565b50601354604051630b942d5760e21b81526001600160a01b03838116600483015290911690632e50b55c90602401600060405180830381600087803b158015612d9557600080fd5b505af1158015612da9573d6000803e3d6000fd5b505050506001600160a01b03811660009081526012602052604081208054859290612dd59084906148c9565b9091555050505050565b60135460405162b108ad60e41b81526001600160a01b038681166004830152858116602483015290911690630b108ad090604401600060405180830381600087803b158015612e2d57600080fd5b505af1158015612e41573d6000803e3d6000fd5b5050506000838152600660209081526040808320546001600160a01b0389168452601290925282208054600160801b90920460ff16935083929091612e87908490614925565b90915550506001600160a01b03841660009081526012602052604081208054839290612eb49084906148c9565b90915550612ec6905085858585613b23565b5050505050565b6001600160a01b0381166000908152601260205260409020546060908190612ef55792915050565b6001600160a01b03831660009081526012602052604090205467ffffffffffffffff811115612f2657612f26614a2d565b604051908082528060200260200182016040528015612f4f578160200160208202803683370190505b5090506000805b600254811015612fd657846001600160a01b031660028281548110612f7d57612f7d614a17565b6000918252602090912001546001600160a01b03161415612fc45780838381518110612fab57612fab614a17565b602090810291909101015281612fc0816149c6565b9250505b80612fce816149c6565b915050612f56565b5060008167ffffffffffffffff811115612ff257612ff2614a2d565b60405190808252806020026020018201604052801561301b578160200160208202803683370190505b50905060005b828110156130725783818151811061303b5761303b614a17565b602002602001015182828151811061305557613055614a17565b60209081029190910101528061306a816149c6565b915050613021565b50949350505050565b6005546001600160a01b031633146130c35760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b601b805460ff19811660ff90911615179055565b6005546001600160a01b0316331461311f5760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b610c5c601583836141b0565b6040805160608082018352600080835260208301529181019190915260025482106131985760405162461bcd60e51b815260206004820152601660248201527f546f6b656e206964206f7574736964652072616e6765000000000000000000006044820152606401610b0a565b600082815260066020908152604091829020825160608101845281546001600160801b0381168252600160801b900460ff169281019290925260018101805492939192918401916131e89061498b565b80601f01602080910402602001604051908101604052809291908181526020018280546132149061498b565b80156132615780601f1061323657610100808354040283529160200191613261565b820191906000526020600020905b81548152906001019060200180831161324457829003601f168201915b5050505050815250509050919050565b6005546001600160a01b031633146132b95760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b6002548110156132c857600080fd5b600d54610100900461ffff1681106132df57600080fd5b600d805461ffff9092166101000262ffff0019909216919091179055565b606061330a826002541190565b61331357600080fd5b6000828152600660209081526040808320815160608101835281546001600160801b0381168252600160801b900460ff1693810193909352600181018054919284019161335f9061498b565b80601f016020809104026020016040519081016040528092919081815260200182805461338b9061498b565b80156133d85780601f106133ad576101008083540402835291602001916133d8565b820191906000526020600020905b8154815290600101906020018083116133bb57829003601f168201915b505050505081525050905060006040518060a0016040528085815260200160008152602001600681526020016040518060a0016040528060708152602001614bfe607091398152602001604051806101c001604052806101848152602001614a7a610184913990526011546040517fe356bdd30000000000000000000000000000000000000000000000000000000081529192506000916001600160a01b039091169063e356bdd3906134919086908690600401614800565b60006040518083038186803b1580156134a957600080fd5b505afa1580156134bd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526134e59190810190614598565b95945050505050565b6005546001600160a01b031633146135365760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b600061354160025490565b9050600861354f8385614906565b61355990836148c9565b11156135cd5760405162461bcd60e51b815260206004820152602360248201527f547279696e6720746f206d696e74206d6f7265207468616e20796f752073686f60448201527f756c6400000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b60005b83811015612ec65760008585838181106135ec576135ec614a17565b905060200201602081019061360191906142de565b905060005b8481101561363857613618848361396a565b83613622816149c6565b9450508080613630906149c6565b915050613606565b506001600160a01b038116600090815260126020526040812080548692906136619084906148c9565b909155508291506136739050816149c6565b9150506135d0565b6005546001600160a01b031633146136c35760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b6001600160a01b03811661373f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b0a565b611c9881613ad1565b6005546001600160a01b031633146137905760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061381557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a0857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a08565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061388282611fda565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815b855181101561395f5760008682815181106138dd576138dd614a17565b6020026020010151905080831161391f57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061394c565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080613957816149c6565b9150506138c0565b509092149392505050565b60408051606080820183524260808301524460a083015260c0820185905283901b6bffffffffffffffffffffffff191660e0820152815160d481830301815260f4820190925281516020929092019190912081906001600160801b039081168252600160208084018290526040805180830182526000808252958201528785526006825293849020855181548784015160ff16600160801b0270ffffffffffffffffffffffffffffffffff1990911691909516179390931783559284015180519293613a3c9392850192910190614130565b50905050611c968183613bab565b613a543382613cd5565b613ac65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b0a565b610c5c838383613dc1565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b613b2d3383613cd5565b613b9f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b0a565b61159984848484613f44565b6001600160a01b038216613c015760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b0a565b613c0c816002541190565b15613c595760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b0a565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000613ce2826002541190565b613d435760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b0a565b6000613d4e83611fda565b9050806001600160a01b0316846001600160a01b03161480613d895750836001600160a01b0316613d7e84610aa0565b6001600160a01b0316145b80613db957506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316613dd482611fda565b6001600160a01b031614613e505760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610b0a565b6001600160a01b038216613ecb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b613ed660008261384d565b8160028281548110613eea57613eea614a17565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b613f4f848484613dc1565b613f5b84848484613fcd565b6115995760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b0a565b60006001600160a01b0384163b1561412557604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061401190339089908890889060040161475a565b602060405180830381600087803b15801561402b57600080fd5b505af192505050801561405b575060408051601f3d908101601f1916820190925261405891810190614546565b60015b61410b573d808015614089576040519150601f19603f3d011682016040523d82523d6000602084013e61408e565b606091505b5080516141035760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b0a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613db9565b506001949350505050565b82805461413c9061498b565b90600052602060002090601f01602090048101928261415e57600085556141a4565b82601f1061417757805160ff19168380011785556141a4565b828001600101855582156141a4579182015b828111156141a4578251825591602001919060010190614189565b50611f609291506141eb565b8280548282559060005260206000209081019282156141a4579160200282015b828111156141a45782358255916020019190600101906141d0565b5b80821115611f6057600081556001016141ec565b600061421361420e846148a1565b614870565b905082815283838301111561422757600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461425557600080fd5b919050565b60008083601f84011261426c57600080fd5b50813567ffffffffffffffff81111561428457600080fd5b6020830191508360208260051b850101111561429f57600080fd5b9250929050565b600082601f8301126142b757600080fd5b6142c683833560208501614200565b9392505050565b803560ff8116811461425557600080fd5b6000602082840312156142f057600080fd5b6142c68261423e565b6000806040838503121561430c57600080fd5b6143158361423e565b91506143236020840161423e565b90509250929050565b60008060006060848603121561434157600080fd5b61434a8461423e565b92506143586020850161423e565b9150604084013590509250925092565b6000806000806080858703121561437e57600080fd5b6143878561423e565b93506143956020860161423e565b925060408501359150606085013567ffffffffffffffff8111156143b857600080fd5b8501601f810187136143c957600080fd5b6143d887823560208401614200565b91505092959194509250565b600080604083850312156143f757600080fd5b6144008361423e565b91506020830135801515811461441557600080fd5b809150509250929050565b6000806040838503121561443357600080fd5b61443c8361423e565b946020939093013593505050565b60008060006040848603121561445f57600080fd5b833567ffffffffffffffff81111561447657600080fd5b6144828682870161425a565b909790965060209590950135949350505050565b600080602083850312156144a957600080fd5b823567ffffffffffffffff8111156144c057600080fd5b6144cc8582860161425a565b90969095509350505050565b600080600080606085870312156144ee57600080fd5b843567ffffffffffffffff81111561450557600080fd5b6145118782880161425a565b90989097506020870135966040013595509350505050565b60006020828403121561453b57600080fd5b81356142c681614a43565b60006020828403121561455857600080fd5b81516142c681614a43565b60006020828403121561457557600080fd5b813567ffffffffffffffff81111561458c57600080fd5b613db9848285016142a6565b6000602082840312156145aa57600080fd5b815167ffffffffffffffff8111156145c157600080fd5b8201601f810184136145d257600080fd5b80516145e061420e826148a1565b8181528560208385010111156145f557600080fd5b6134e582602083016020860161495f565b6000806040838503121561461957600080fd5b823567ffffffffffffffff81111561463057600080fd5b61463c858286016142a6565b95602094909401359450505050565b60006020828403121561465d57600080fd5b5035919050565b60006020828403121561467657600080fd5b5051919050565b6000806040838503121561469057600080fd5b50508035926020909101359150565b600080604083850312156146b257600080fd5b82359150614323602084016142cd565b6000602082840312156146d457600080fd5b6142c6826142cd565b600081518084526146f581602086016020860161495f565b601f01601f19169290920160200192915050565b6001600160801b03815116825260ff60208201511660208301526000604082015160606040850152613db960608501826146dd565b6000825161475081846020870161495f565b9190910192915050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261478c60808301846146dd565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156147ce578351835292840192918401916001016147b2565b50909695505050505050565b6020815260006142c660208301846146dd565b6020815260006142c66020830184614709565b6040815260006148136040830185614709565b8281036020840152835181526020840151602082015260408401516040820152606084015160a0606083015261484c60a08301826146dd565b90506080850151828203608084015261486582826146dd565b979650505050505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561489957614899614a2d565b604052919050565b600067ffffffffffffffff8211156148bb576148bb614a2d565b50601f01601f191660200190565b600082198211156148dc576148dc614a01565b500190565b600060ff821660ff84168060ff038211156148fe576148fe614a01565b019392505050565b600081600019048311821515161561492057614920614a01565b500290565b60008282101561493757614937614a01565b500390565b600060ff821660ff84168082101561495657614956614a01565b90039392505050565b60005b8381101561497a578181015183820152602001614962565b838111156115995750506000910152565b600181811c9082168061499f57607f821691505b602082108114156149c057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156149da576149da614a01565b5060010190565b600060ff821660ff8114156149f8576149f8614a01565b60010192915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611c9857600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726956424f5277304b47676f414141414e5355684555674141414441414141417741674d4141414171624245554141414141584e53523049417273346336514141414178515446524641414141756f2b502b7672362f66332b4262745530414141414d4e4a524546554b4d2b743062304e77794151426542484642725851657a674b52694267704f72694648774b43347437384d6f715a4d37514461573874506b57554a384d7665456244793734413934544474797a41636f4273764d55654476336d5a4b4a4b2f68794a6c677946734243446f6f63675571414463595a777138676a77364d6252584468775642613443553455764d414b6f617745504d5670344345656d686e486c78545a7357326b6f2b3873797a4e78514d63795852656f7141495a36413378425679423948555a3078395a7930324f4562396f777932702f6f65596a58446644333336484a7072325179626c4475582f744f675455676431517577417867746d6a37424674535645577741414141424a52553545726b4a6767673d3d35303030204f6e636861696e20496d6d6f7274616c2050686f656e697820726973656e2066726f6d20746865206173686573206f6e746f2074686520457468657265756d20626c6f636b636861696e20726561647920746f2074616b65206e6674206c616e642062792073746f726d2ea26469706673582212206bae38901e50d57f863283d26014e38d6547fef087f72aff177bf035dc7a077f64736f6c634300080700330000000000000000000000002a5c31b362729831319f849229b24a7b6badec630000000000000000000000008a6f6a9dfa66004464bbf727acc9c44cd71025f70000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000003000000000000000000000000e27af80d854d5c1092142c516c244f38cc266a3f000000000000000000000000000000000000000000000001e5b8fa8fe2ac0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068e9668f2c5ee3d0fd6c076e71cf3cac912ef0140000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008e9c330a1384eddcddf325e20885ae3502d8d2ce00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103225760003560e01c80637bbe820c116101a5578063b96bd5f7116100ec578063d5abeb0111610095578063e985e9c51161006f578063e985e9c51461092b578063ec9458ec14610974578063f2fde38b1461098a578063fe762024146109aa57600080fd5b8063d5abeb01146108c2578063e37b1be0146108f5578063e9566bf61461090b57600080fd5b8063c32ace3b116100c6578063c32ace3b14610855578063c4e9374d14610882578063c87b56dd146108a257600080fd5b8063b96bd5f7146107f3578063ba2db7b914610820578063bc07aa641461083557600080fd5b80639e7882361161014e578063a22cb46511610128578063a22cb465146107a0578063b1a82446146107c0578063b88d4fde146107d357600080fd5b80639e7882361461074a5780639ffdb65a1461076a578063a035b1fe1461078a57600080fd5b8063811c2bab1161017f578063811c2bab146106f75780638da5cb5b1461071757806395d89b411461073557600080fd5b80637bbe820c146106815780637ddd91dc146106b75780637fdefccc146106d757600080fd5b80633ccfd60b116102695780634f6ccce7116102125780636352211e116101ec5780636352211e1461062c57806370a082311461064c578063715018a61461066c57600080fd5b80634f6ccce7146105cb57806354acd90a146105eb5780635d1daec31461060c57600080fd5b80634333a65b116102435780634333a65b146105295780634b96507b1461058b5780634cb15ff6146105ab57600080fd5b80633ccfd60b146104df5780634047638d146104f457806342842e0e1461050957600080fd5b806314ea49b1116102cb57806326092b83116102a557806326092b8314610485578063270dc9fd1461049f5780632f745c59146104bf57600080fd5b806314ea49b11461043357806318160ddd1461044657806323b872dd1461046557600080fd5b8063094d34f1116102fc578063094d34f1146103bd578063095ea7b3146103f1578063125d49f61461041357600080fd5b806301ffc9a71461032e57806306fdde0314610363578063081812fc1461038557600080fd5b3661032957005b600080fd5b34801561033a57600080fd5b5061034e610349366004614529565b6109ca565b60405190151581526020015b60405180910390f35b34801561036f57600080fd5b50610378610a0e565b60405161035a91906147da565b34801561039157600080fd5b506103a56103a036600461464b565b610aa0565b6040516001600160a01b03909116815260200161035a565b3480156103c957600080fd5b50600d546103df90640100000000900460ff1681565b60405160ff909116815260200161035a565b3480156103fd57600080fd5b5061041161040c366004614420565b610b2f565b005b34801561041f57600080fd5b5061041161042e36600461469f565b610c61565b6104116104413660046144d8565b611129565b34801561045257600080fd5b506002545b60405190815260200161035a565b34801561047157600080fd5b5061041161048036600461432c565b6114b3565b34801561049157600080fd5b50600d5461034e9060ff1681565b3480156104ab57600080fd5b506104116104ba366004614606565b61159f565b3480156104cb57600080fd5b506104576104da366004614420565b6118d9565b3480156104eb57600080fd5b506104116119cd565b34801561050057600080fd5b50610411611c9c565b34801561051557600080fd5b5061041161052436600461432c565b611cf8565b34801561053557600080fd5b50604080518082018252600080825260209182015281518083019092526019548252601a546001600160801b03169082015260408051825181526020928301516001600160801b0316928101929092520161035a565b34801561059757600080fd5b506104116105a63660046146c2565b611d13565b3480156105b757600080fd5b506104116105c636600461464b565b611e94565b3480156105d757600080fd5b506104576105e636600461464b565b611ee1565b3480156105f757600080fd5b50600d546103df906301000000900460ff1681565b34801561061857600080fd5b5061041161062736600461464b565b611f64565b34801561063857600080fd5b506103a561064736600461464b565b611fda565b34801561065857600080fd5b506104576106673660046142de565b6120cd565b34801561067857600080fd5b506104116121b6565b34801561068d57600080fd5b5061045761069c3660046142de565b6001600160a01b031660009081526012602052604090205490565b3480156106c357600080fd5b506104116106d236600461464b565b612208565b3480156106e357600080fd5b506104116106f236600461467d565b612358565b34801561070357600080fd5b5061041161071236600461464b565b6123ab565b34801561072357600080fd5b506005546001600160a01b03166103a5565b34801561074157600080fd5b50610378612805565b34801561075657600080fd5b506104116107653660046142de565b612814565b34801561077657600080fd5b5061034e610785366004614563565b61287e565b34801561079657600080fd5b50610457600e5481565b3480156107ac57600080fd5b506104116107bb3660046143e4565b612a6d565b6104116107ce36600461464b565b612b32565b3480156107df57600080fd5b506104116107ee366004614368565b612ddf565b3480156107ff57600080fd5b5061081361080e3660046142de565b612ecd565b60405161035a9190614796565b34801561082c57600080fd5b5061041161307b565b34801561084157600080fd5b50610411610850366004614496565b6130d7565b34801561086157600080fd5b5061087561087036600461464b565b61312b565b60405161035a91906147ed565b34801561088e57600080fd5b5061041161089d36600461464b565b613271565b3480156108ae57600080fd5b506103786108bd36600461464b565b6132fd565b3480156108ce57600080fd5b50600d546108e290610100900461ffff1681565b60405161ffff909116815260200161035a565b34801561090157600080fd5b50610457600f5481565b34801561091757600080fd5b5061041161092636600461444a565b6134ee565b34801561093757600080fd5b5061034e6109463660046142f9565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b34801561098057600080fd5b5061045760105481565b34801561099657600080fd5b506104116109a53660046142de565b61367b565b3480156109b657600080fd5b506104116109c53660046142de565b613748565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610a085750610a08826137b2565b92915050565b606060008054610a1d9061498b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a499061498b565b8015610a965780601f10610a6b57610100808354040283529160200191610a96565b820191906000526020600020905b815481529060010190602001808311610a7957829003601f168201915b5050505050905090565b6000610aad826002541190565b610b135760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610b3a82611fda565b9050806001600160a01b0316836001600160a01b03161415610bc45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b336001600160a01b0382161480610be05750610be08133610946565b610c525760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b0a565b610c5c838361384d565b505050565b33610c6b83611fda565b6001600160a01b0316816001600160a01b031614610ccb5760405162461bcd60e51b815260206004820152601260248201527f4e6f74206f776e6572206f6620746f6b656e00000000000000000000000000006044820152606401610b0a565b600083815260066020526040812054600160801b900460ff1690610cef84836148e1565b905060068160ff1610610f58576011546040517fa8032bbe00000000000000000000000000000000000000000000000000000000815260006004820181905260248201889052916001600160a01b03169063a8032bbe9060440160206040518083038186803b158015610d6157600080fd5b505afa158015610d75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d999190614664565b905080610edc5760068260ff161115610e195760405162461bcd60e51b8152602060048201526024808201527f43616e74206c6576656c20757020746f20736576656e20756e6c65737320756e60448201527f69717565000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b600d5460ff6401000000008204811663010000009092041610610ea45760405162461bcd60e51b815260206004820152602f60248201527f416c7265616479206d617820616d6f756e74206f66206c6576656c732036207060448201527f686f656e697873206372656174656400000000000000000000000000000000006064820152608401610b0a565b600d80546301000000900460ff16906003610ebe836149e1565b91906101000a81548160ff021916908360ff16021790555050610f56565b60078260ff161115610f565760405162461bcd60e51b815260206004820152602160248201527f4e6f74206576656e20756e69717565732063616e206c6576656c20706173742060448201527f37000000000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b505b600080610f6660018561493c565b90505b8260ff168160ff161015610fad5760078160ff1660068110610f8d57610f8d614a17565b0154610f9990836148c9565b915080610fa5816149e1565b915050610f69565b50601354604051630b942d5760e21b81526001600160a01b03868116600483015290911690632e50b55c90602401600060405180830381600087803b158015610ff557600080fd5b505af1158015611009573d6000803e3d6000fd5b5050601354604051632770a7eb60e21b81526001600160a01b038881166004830152602482018690529091169250639dc29fac9150604401600060405180830381600087803b15801561105b57600080fd5b505af115801561106f573d6000803e3d6000fd5b505050506001600160a01b0384166000908152601260205260408120805460ff8816929061109e9084906148c9565b909155505060008681526006602090815260409182902080547fffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffff16600160801b60ff87160217905590518781526001600160a01b038616917f962ed0466749f0ece2bc263f48cc97232ee73ae72742936ec9ccd1689a84351a910160405180910390a2505050505050565b600082116111795760405162461bcd60e51b815260206004820152601c60248201527f456e74657220612076616c696420616d6f756e7420746f206d696e74000000006044820152606401610b0a565b600061118460025490565b90503483600e546111959190614906565b146111e25760405162461bcd60e51b815260206004820152601360248201527f496e636f7272656374204554482076616c7565000000000000000000000000006044820152606401610b0a565b600d54610100900461ffff166111f884836148c9565b106112455760405162461bcd60e51b815260206004820152601960248201527f416c6c20746f6b656e7320616c7265616479206d696e746564000000000000006044820152606401610b0a565b6000336040516bffffffffffffffffffffffff19606083901b1660208201529091506000906034016040516020818303038152906040528051906020012090506112e2878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506015805490925088915081106112d1576112d1614a17565b9060005260206000200154836138bb565b61132e5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606401610b0a565b6014848154811061134157611341614a17565b60009182526020808320909101546001600160a01b038516835260179091526040909120546113719087906148c9565b11156113bf5760405162461bcd60e51b815260206004820181905260248201527f547279696e6720746f206d696e74206d6f7265207468616e20616c6c6f7765646044820152606401610b0a565b6001600160a01b038216600090815260176020526040812080548792906113e79084906148c9565b90915550600090505b8581101561141d5761140b61140582866148c9565b8461396a565b80611415816149c6565b9150506113f0565b50601354604051630b942d5760e21b81526001600160a01b03848116600483015290911690632e50b55c90602401600060405180830381600087803b15801561146557600080fd5b505af1158015611479573d6000803e3d6000fd5b505050506001600160a01b038216600090815260126020526040812080548792906114a59084906148c9565b909155505050505050505050565b60135460405162b108ad60e41b81526001600160a01b038581166004830152848116602483015290911690630b108ad090604401600060405180830381600087803b15801561150157600080fd5b505af1158015611515573d6000803e3d6000fd5b5050506000828152600660209081526040808320546001600160a01b0388168452601290925282208054600160801b90920460ff1693508392909161155b908490614925565b90915550506001600160a01b038316600090815260126020526040812080548392906115889084906148c9565b909155506115999050848484613a4a565b50505050565b6115a881611fda565b6001600160a01b0316336001600160a01b03161461162e5760405162461bcd60e51b815260206004820152603060248201527f4f6e6c7920746865206f776e6572206f66207468697320746f6b656e2063616e60448201527f206368616e676520746865206e616d65000000000000000000000000000000006064820152608401610b0a565b6116378261287e565b15156001146116885760405162461bcd60e51b815260206004820152600c60248201527f496e76616c6964206e616d6500000000000000000000000000000000000000006044820152606401610b0a565b601882604051611698919061473e565b9081526040519081900360200190205460ff16156116f85760405162461bcd60e51b815260206004820152601560248201527f4e616d6520697320616c72656164792074616b656e00000000000000000000006044820152606401610b0a565b600081815260066020526040812060010180546117149061498b565b80601f01602080910402602001604051908101604052809291908181526020018280546117409061498b565b801561178d5780601f106117625761010080835404028352916020019161178d565b820191906000526020600020905b81548152906001019060200180831161177057829003601f168201915b5050601354939450506001600160a01b039092169150639dc29fac905033600f546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156117f457600080fd5b505af1158015611808573d6000803e3d6000fd5b50505050805160001415611849576000601882604051611828919061473e565b908152604051908190036020019020805491151560ff199092169190911790555b600160188460405161185b919061473e565b9081526040805160209281900383019020805460ff19169315159390931790925560008481526006825291909120845161189e9260019290920191860190614130565b5060405182815233907f5697922a28a0c54eddea486d51be98789112ac304ed73dffe3c68937ce4474a19060200160405180910390a2505050565b60008060006118e760025490565b905060005b8181101561195e57856001600160a01b03166002828154811061191157611911614a17565b6000918252602090912001546001600160a01b0316141561194c578483141561193e579250610a08915050565b82611948816149c6565b9350505b80611956816149c6565b9150506118ec565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610b0a565b6005546001600160a01b03163314611a155760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b308031611a8a5760405162461bcd60e51b815260206004820152602260248201527f7468657265206973206e6f2062616c616e636520696e2074686520616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b601654611ad95760405162461bcd60e51b815260206004820152601760248201527f686176656e742073657420746865207061796d656e74730000000000000000006044820152606401610b0a565b60005b601654811015611c1b576001600160a01b03821631611af9575050565b600060168281548110611b0e57611b0e614a17565b6000918252602080832060408051606081018252600390940290910180546001600160a01b03168452600181015492840183905260020154908301819052919350611b599190614925565b90508015611c0657600081856001600160a01b03163110611b7b575080611b88565b506001600160a01b038416315b8083604001818151611b9a91906148c9565b90525060408301516016805486908110611bb657611bb6614a17565b6000918252602082206002600390920201019190915583516040516001600160a01b039091169183156108fc02918491818181858888f19350505050158015611c03573d6000803e3d6000fd5b50505b50508080611c13906149c6565b915050611adc565b506001600160a01b0381163115611c985760168054611c3c90600190614925565b81548110611c4c57611c4c614a17565b600091825260208220600390910201546040516001600160a01b03918216929184163180156108fc0292909190818181858888f19350505050158015611c96573d6000803e3d6000fd5b505b505b565b6005546001600160a01b03163314611ce45760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b600d805460ff19811660ff90911615179055565b610c5c83838360405180602001604052806000815250612ddf565b6005546001600160a01b03163314611d5b5760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b600d5460ff640100000000909104811690821611611de05760405162461bcd60e51b8152602060048201526024808201527f4e65656420746f2073657420746865206e6577206d617820746f206265206c6160448201527f72676572000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b600d54606490611dfb90640100000000900460ff168361493c565b60ff161115611e725760405162461bcd60e51b815260206004820152602960248201527f43616e2774207261697365206974206279206d6f7265207468616e203130302060448201527f617420612074696d6500000000000000000000000000000000000000000000006064820152608401610b0a565b600d805460ff9092166401000000000264ff0000000019909216919091179055565b6005546001600160a01b03163314611edc5760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b601c55565b6000611eec60025490565b8210611f605760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610b0a565b5090565b6005546001600160a01b03163314611fac5760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b604080516020808201808452600080845285815260069092529290209051611c969260019092019190614130565b600254600090821061202e5760405162461bcd60e51b815260206004820152601460248201527f746f6b656e20646f6573206e6f772065786973740000000000000000000000006044820152606401610b0a565b60006002838154811061204357612043614a17565b6000918252602090912001546001600160a01b0316905080610a085760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b0a565b60006001600160a01b03821661214b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b0a565b600254600090815b818110156121ad576002818154811061216e5761216e614a17565b6000918252602090912001546001600160a01b038681169116141561219b5782612197816149c6565b9350505b806121a5816149c6565b915050612153565b50909392505050565b6005546001600160a01b031633146121fe5760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b611c9a6000613ad1565b6005546001600160a01b031633146122505760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b601b5460ff16156122c95760405162461bcd60e51b815260206004820152603560248201527f4e65656420746f206861766520726573757272656374696f6e2070617573656460448201527f206d7974686963732061726520726577617264656400000000000000000000006064820152608401610b0a565b601154601c546040517f764a1bdf0000000000000000000000000000000000000000000000000000000081526001600160a01b039092169163764a1bdf9161231e918590600401918252602082015260400190565b600060405180830381600087803b15801561233857600080fd5b505af115801561234c573d6000803e3d6000fd5b50505050611c9861307b565b6005546001600160a01b031633146123a05760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b600f91909155601055565b336123b582611fda565b6001600160a01b0316816001600160a01b03161461243b5760405162461bcd60e51b815260206004820152603760248201527f4f6e6c7920746865206f776e6572206f66207468697320746f6b656e2063616e60448201527f2072657375726563742074686569722070686f656e69780000000000000000006064820152608401610b0a565b601b5460ff1615156001146124b85760405162461bcd60e51b815260206004820152602660248201527f5265737572656374696f6e2069736e277420616c6c6f7765642061742074686960448201527f732074696d6500000000000000000000000000000000000000000000000000006064820152608401610b0a565b601354601054604051632770a7eb60e21b81526001600160a01b0384811660048301526024820192909252911690639dc29fac90604401600060405180830381600087803b15801561250957600080fd5b505af115801561251d573d6000803e3d6000fd5b505060408051426020808301919091524482840152606080830188905286901b6bffffffffffffffffffffffff1916608083015282518083036074018152609483018085528151919092012060d483019093526019548152601a546001600160801b031660b49092018290529193509091501561273857602081810151825160408051429481019490945244908401526fffffffffffffffffffffffffffffffff19608092831b8116606085015285831b1660708401529082015260009060a00160408051808303601f190181528282528051602091820120855160009081526006835283812060608601855280546001600160801b0381168752600160801b900460ff16938601939093526001830180549296509094938401916126419061498b565b80601f016020809104026020016040519081016040528092919081815260200182805461266d9061498b565b80156126ba5780601f1061268f576101008083540402835291602001916126ba565b820191906000526020600020905b81548152906001019060200180831161269d57829003601f168201915b505050919092525050506001600160801b0380841682528451600090815260066020908152604091829020845181548387015160ff16600160801b0270ffffffffffffffffffffffffffffffffff19909116919095161793909317835590830151805193945084936127329260018501920190614130565b50505050505b601154601c546040517faa1eaea10000000000000000000000000000000000000000000000000000000081526001600160a01b039092169163aa1eaea19161278d918890600401918252602082015260400190565b600060405180830381600087803b1580156127a757600080fd5b505af11580156127bb573d6000803e3d6000fd5b5050604080518082019091528681526001600160801b03909416602090940184905250505060199290925550601a80546fffffffffffffffffffffffffffffffff19169091179055565b606060018054610a1d9061498b565b6005546001600160a01b0316331461285c5760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b805160009082906128925750600092915050565b60148151106128a45750600092915050565b60005b8151811015612a635760008282815181106128c4576128c4614a17565b01602001516001600160f81b03191690507f3000000000000000000000000000000000000000000000000000000000000000811080159061292f57507f39000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821611155b15801561299d57507f41000000000000000000000000000000000000000000000000000000000000006001600160f81b031982161080159061299b57507f5a000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821611155b155b8015612a0a57507f61000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821610801590612a0857507f7a000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821611155b155b8015612a4057507f20000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821614155b15612a5057506000949350505050565b5080612a5b816149c6565b9150506128a7565b5060019392505050565b6001600160a01b038216331415612ac65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b0a565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600d5460ff161515600114612baf5760405162461bcd60e51b815260206004820152602160248201527f4d696e74696e672069736e74207075626c696320617420746865206d6f6d656e60448201527f74000000000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b60008111612bff5760405162461bcd60e51b815260206004820152601c60248201527f456e74657220612076616c696420616d6f756e7420746f206d696e74000000006044820152606401610b0a565b60068110612c4f5760405162461bcd60e51b815260206004820152601b60248201527f417474656d7074696e6720746f206d696e7420746f6f206d616e7900000000006044820152606401610b0a565b3481600e54612c5e9190614906565b14612cab5760405162461bcd60e51b815260206004820152601360248201527f496e636f7272656374204554482076616c7565000000000000000000000000006044820152606401610b0a565b6000612cb660025490565b600d54909150610100900461ffff16612ccf83836148c9565b10612d1c5760405162461bcd60e51b815260206004820152601960248201527f416c6c20746f6b656e7320616c7265616479206d696e746564000000000000006044820152606401610b0a565b3360005b83811015612d4d57612d3b612d3582856148c9565b8361396a565b80612d45816149c6565b915050612d20565b50601354604051630b942d5760e21b81526001600160a01b03838116600483015290911690632e50b55c90602401600060405180830381600087803b158015612d9557600080fd5b505af1158015612da9573d6000803e3d6000fd5b505050506001600160a01b03811660009081526012602052604081208054859290612dd59084906148c9565b9091555050505050565b60135460405162b108ad60e41b81526001600160a01b038681166004830152858116602483015290911690630b108ad090604401600060405180830381600087803b158015612e2d57600080fd5b505af1158015612e41573d6000803e3d6000fd5b5050506000838152600660209081526040808320546001600160a01b0389168452601290925282208054600160801b90920460ff16935083929091612e87908490614925565b90915550506001600160a01b03841660009081526012602052604081208054839290612eb49084906148c9565b90915550612ec6905085858585613b23565b5050505050565b6001600160a01b0381166000908152601260205260409020546060908190612ef55792915050565b6001600160a01b03831660009081526012602052604090205467ffffffffffffffff811115612f2657612f26614a2d565b604051908082528060200260200182016040528015612f4f578160200160208202803683370190505b5090506000805b600254811015612fd657846001600160a01b031660028281548110612f7d57612f7d614a17565b6000918252602090912001546001600160a01b03161415612fc45780838381518110612fab57612fab614a17565b602090810291909101015281612fc0816149c6565b9250505b80612fce816149c6565b915050612f56565b5060008167ffffffffffffffff811115612ff257612ff2614a2d565b60405190808252806020026020018201604052801561301b578160200160208202803683370190505b50905060005b828110156130725783818151811061303b5761303b614a17565b602002602001015182828151811061305557613055614a17565b60209081029190910101528061306a816149c6565b915050613021565b50949350505050565b6005546001600160a01b031633146130c35760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b601b805460ff19811660ff90911615179055565b6005546001600160a01b0316331461311f5760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b610c5c601583836141b0565b6040805160608082018352600080835260208301529181019190915260025482106131985760405162461bcd60e51b815260206004820152601660248201527f546f6b656e206964206f7574736964652072616e6765000000000000000000006044820152606401610b0a565b600082815260066020908152604091829020825160608101845281546001600160801b0381168252600160801b900460ff169281019290925260018101805492939192918401916131e89061498b565b80601f01602080910402602001604051908101604052809291908181526020018280546132149061498b565b80156132615780601f1061323657610100808354040283529160200191613261565b820191906000526020600020905b81548152906001019060200180831161324457829003601f168201915b5050505050815250509050919050565b6005546001600160a01b031633146132b95760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b6002548110156132c857600080fd5b600d54610100900461ffff1681106132df57600080fd5b600d805461ffff9092166101000262ffff0019909216919091179055565b606061330a826002541190565b61331357600080fd5b6000828152600660209081526040808320815160608101835281546001600160801b0381168252600160801b900460ff1693810193909352600181018054919284019161335f9061498b565b80601f016020809104026020016040519081016040528092919081815260200182805461338b9061498b565b80156133d85780601f106133ad576101008083540402835291602001916133d8565b820191906000526020600020905b8154815290600101906020018083116133bb57829003601f168201915b505050505081525050905060006040518060a0016040528085815260200160008152602001600681526020016040518060a0016040528060708152602001614bfe607091398152602001604051806101c001604052806101848152602001614a7a610184913990526011546040517fe356bdd30000000000000000000000000000000000000000000000000000000081529192506000916001600160a01b039091169063e356bdd3906134919086908690600401614800565b60006040518083038186803b1580156134a957600080fd5b505afa1580156134bd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526134e59190810190614598565b95945050505050565b6005546001600160a01b031633146135365760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b600061354160025490565b9050600861354f8385614906565b61355990836148c9565b11156135cd5760405162461bcd60e51b815260206004820152602360248201527f547279696e6720746f206d696e74206d6f7265207468616e20796f752073686f60448201527f756c6400000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b60005b83811015612ec65760008585838181106135ec576135ec614a17565b905060200201602081019061360191906142de565b905060005b8481101561363857613618848361396a565b83613622816149c6565b9450508080613630906149c6565b915050613606565b506001600160a01b038116600090815260126020526040812080548692906136619084906148c9565b909155508291506136739050816149c6565b9150506135d0565b6005546001600160a01b031633146136c35760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b6001600160a01b03811661373f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b0a565b611c9881613ad1565b6005546001600160a01b031633146137905760405162461bcd60e51b81526020600482018190526024820152600080516020614a5a8339815191526044820152606401610b0a565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061381557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a0857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a08565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061388282611fda565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815b855181101561395f5760008682815181106138dd576138dd614a17565b6020026020010151905080831161391f57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061394c565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080613957816149c6565b9150506138c0565b509092149392505050565b60408051606080820183524260808301524460a083015260c0820185905283901b6bffffffffffffffffffffffff191660e0820152815160d481830301815260f4820190925281516020929092019190912081906001600160801b039081168252600160208084018290526040805180830182526000808252958201528785526006825293849020855181548784015160ff16600160801b0270ffffffffffffffffffffffffffffffffff1990911691909516179390931783559284015180519293613a3c9392850192910190614130565b50905050611c968183613bab565b613a543382613cd5565b613ac65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b0a565b610c5c838383613dc1565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b613b2d3383613cd5565b613b9f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b0a565b61159984848484613f44565b6001600160a01b038216613c015760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b0a565b613c0c816002541190565b15613c595760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b0a565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000613ce2826002541190565b613d435760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b0a565b6000613d4e83611fda565b9050806001600160a01b0316846001600160a01b03161480613d895750836001600160a01b0316613d7e84610aa0565b6001600160a01b0316145b80613db957506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316613dd482611fda565b6001600160a01b031614613e505760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610b0a565b6001600160a01b038216613ecb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b0a565b613ed660008261384d565b8160028281548110613eea57613eea614a17565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b613f4f848484613dc1565b613f5b84848484613fcd565b6115995760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b0a565b60006001600160a01b0384163b1561412557604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061401190339089908890889060040161475a565b602060405180830381600087803b15801561402b57600080fd5b505af192505050801561405b575060408051601f3d908101601f1916820190925261405891810190614546565b60015b61410b573d808015614089576040519150601f19603f3d011682016040523d82523d6000602084013e61408e565b606091505b5080516141035760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b0a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613db9565b506001949350505050565b82805461413c9061498b565b90600052602060002090601f01602090048101928261415e57600085556141a4565b82601f1061417757805160ff19168380011785556141a4565b828001600101855582156141a4579182015b828111156141a4578251825591602001919060010190614189565b50611f609291506141eb565b8280548282559060005260206000209081019282156141a4579160200282015b828111156141a45782358255916020019190600101906141d0565b5b80821115611f6057600081556001016141ec565b600061421361420e846148a1565b614870565b905082815283838301111561422757600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461425557600080fd5b919050565b60008083601f84011261426c57600080fd5b50813567ffffffffffffffff81111561428457600080fd5b6020830191508360208260051b850101111561429f57600080fd5b9250929050565b600082601f8301126142b757600080fd5b6142c683833560208501614200565b9392505050565b803560ff8116811461425557600080fd5b6000602082840312156142f057600080fd5b6142c68261423e565b6000806040838503121561430c57600080fd5b6143158361423e565b91506143236020840161423e565b90509250929050565b60008060006060848603121561434157600080fd5b61434a8461423e565b92506143586020850161423e565b9150604084013590509250925092565b6000806000806080858703121561437e57600080fd5b6143878561423e565b93506143956020860161423e565b925060408501359150606085013567ffffffffffffffff8111156143b857600080fd5b8501601f810187136143c957600080fd5b6143d887823560208401614200565b91505092959194509250565b600080604083850312156143f757600080fd5b6144008361423e565b91506020830135801515811461441557600080fd5b809150509250929050565b6000806040838503121561443357600080fd5b61443c8361423e565b946020939093013593505050565b60008060006040848603121561445f57600080fd5b833567ffffffffffffffff81111561447657600080fd5b6144828682870161425a565b909790965060209590950135949350505050565b600080602083850312156144a957600080fd5b823567ffffffffffffffff8111156144c057600080fd5b6144cc8582860161425a565b90969095509350505050565b600080600080606085870312156144ee57600080fd5b843567ffffffffffffffff81111561450557600080fd5b6145118782880161425a565b90989097506020870135966040013595509350505050565b60006020828403121561453b57600080fd5b81356142c681614a43565b60006020828403121561455857600080fd5b81516142c681614a43565b60006020828403121561457557600080fd5b813567ffffffffffffffff81111561458c57600080fd5b613db9848285016142a6565b6000602082840312156145aa57600080fd5b815167ffffffffffffffff8111156145c157600080fd5b8201601f810184136145d257600080fd5b80516145e061420e826148a1565b8181528560208385010111156145f557600080fd5b6134e582602083016020860161495f565b6000806040838503121561461957600080fd5b823567ffffffffffffffff81111561463057600080fd5b61463c858286016142a6565b95602094909401359450505050565b60006020828403121561465d57600080fd5b5035919050565b60006020828403121561467657600080fd5b5051919050565b6000806040838503121561469057600080fd5b50508035926020909101359150565b600080604083850312156146b257600080fd5b82359150614323602084016142cd565b6000602082840312156146d457600080fd5b6142c6826142cd565b600081518084526146f581602086016020860161495f565b601f01601f19169290920160200192915050565b6001600160801b03815116825260ff60208201511660208301526000604082015160606040850152613db960608501826146dd565b6000825161475081846020870161495f565b9190910192915050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261478c60808301846146dd565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156147ce578351835292840192918401916001016147b2565b50909695505050505050565b6020815260006142c660208301846146dd565b6020815260006142c66020830184614709565b6040815260006148136040830185614709565b8281036020840152835181526020840151602082015260408401516040820152606084015160a0606083015261484c60a08301826146dd565b90506080850151828203608084015261486582826146dd565b979650505050505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561489957614899614a2d565b604052919050565b600067ffffffffffffffff8211156148bb576148bb614a2d565b50601f01601f191660200190565b600082198211156148dc576148dc614a01565b500190565b600060ff821660ff84168060ff038211156148fe576148fe614a01565b019392505050565b600081600019048311821515161561492057614920614a01565b500290565b60008282101561493757614937614a01565b500390565b600060ff821660ff84168082101561495657614956614a01565b90039392505050565b60005b8381101561497a578181015183820152602001614962565b838111156115995750506000910152565b600181811c9082168061499f57607f821691505b602082108114156149c057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156149da576149da614a01565b5060010190565b600060ff821660ff8114156149f8576149f8614a01565b60010192915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611c9857600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726956424f5277304b47676f414141414e5355684555674141414441414141417741674d4141414171624245554141414141584e53523049417273346336514141414178515446524641414141756f2b502b7672362f66332b4262745530414141414d4e4a524546554b4d2b743062304e77794151426542484642725851657a674b52694267704f72694648774b43347437384d6f715a4d37514461573874506b57554a384d7665456244793734413934544474797a41636f4273764d55654476336d5a4b4a4b2f68794a6c677946734243446f6f63675571414463595a777138676a77364d6252584468775642613443553455764d414b6f617745504d5670344345656d686e486c78545a7357326b6f2b3873797a4e78514d63795852656f7141495a36413378425679423948555a3078395a7930324f4562396f777932702f6f65596a58446644333336484a7072325179626c4475582f744f675455676431517577417867746d6a37424674535645577741414141424a52553545726b4a6767673d3d35303030204f6e636861696e20496d6d6f7274616c2050686f656e697820726973656e2066726f6d20746865206173686573206f6e746f2074686520457468657265756d20626c6f636b636861696e20726561647920746f2074616b65206e6674206c616e642062792073746f726d2ea26469706673582212206bae38901e50d57f863283d26014e38d6547fef087f72aff177bf035dc7a077f64736f6c63430008070033

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

0000000000000000000000002a5c31b362729831319f849229b24a7b6badec630000000000000000000000008a6f6a9dfa66004464bbf727acc9c44cd71025f70000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000003000000000000000000000000e27af80d854d5c1092142c516c244f38cc266a3f000000000000000000000000000000000000000000000001e5b8fa8fe2ac0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068e9668f2c5ee3d0fd6c076e71cf3cac912ef0140000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008e9c330a1384eddcddf325e20885ae3502d8d2ce00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _blazeTokenAddress (address): 0x2A5C31b362729831319F849229b24a7b6bADEc63
Arg [1] : _metadataHandlerAddress (address): 0x8A6f6a9DFA66004464BBf727ACC9C44Cd71025f7
Arg [2] : _roleMaxMint (uint256[]): 1,2,3
Arg [3] : _payments (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 0000000000000000000000002a5c31b362729831319f849229b24a7b6badec63
Arg [1] : 0000000000000000000000008a6f6a9dfa66004464bbf727acc9c44cd71025f7
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 000000000000000000000000e27af80d854d5c1092142c516c244f38cc266a3f
Arg [10] : 000000000000000000000000000000000000000000000001e5b8fa8fe2ac0000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [12] : 00000000000000000000000068e9668f2c5ee3d0fd6c076e71cf3cac912ef014
Arg [13] : 0000000000000000000000000000000000000000000000008ac7230489e80000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000008e9c330a1384eddcddf325e20885ae3502d8d2ce
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.