ETH Price: $2,818.09 (+7.37%)
 

Overview

ETH Balance

0.08 ETH

Eth Value

$225.45 (@ $2,818.09/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...206493192024-08-31 15:02:5967 days ago1725116579IN
0xa7aA345F...3D46b49F7
0 ETH0.000067321.46045347
Set Approval For...206075792024-08-25 19:05:4773 days ago1724612747IN
0xa7aA345F...3D46b49F7
0 ETH0.000054741.18765829
Safe Transfer Fr...204334052024-08-01 11:29:2397 days ago1722511763IN
0xa7aA345F...3D46b49F7
0 ETH0.000424134.8929504
Safe Transfer Fr...202072632024-06-30 21:42:35129 days ago1719783755IN
0xa7aA345F...3D46b49F7
0 ETH0.000578645.79938549
Safe Transfer Fr...198865572024-05-17 1:56:35174 days ago1715910995IN
0xa7aA345F...3D46b49F7
0 ETH0.000302173.37729609
Safe Transfer Fr...198865542024-05-17 1:55:59174 days ago1715910959IN
0xa7aA345F...3D46b49F7
0 ETH0.000300843.36247335
Set Approval For...195459542024-03-30 9:42:59222 days ago1711791779IN
0xa7aA345F...3D46b49F7
0 ETH0.0008310718
Safe Transfer Fr...190534592024-01-21 6:30:59291 days ago1705818659IN
0xa7aA345F...3D46b49F7
0 ETH0.000979819.82123324
Set Approval For...184771962023-11-01 12:17:11371 days ago1698841031IN
0xa7aA345F...3D46b49F7
0 ETH0.0009826821.31674704
Set Approval For...183941372023-10-20 21:12:11383 days ago1697836331IN
0xa7aA345F...3D46b49F7
0 ETH0.0007190615.59831407
Set Approval For...183245252023-10-11 3:27:59393 days ago1696994879IN
0xa7aA345F...3D46b49F7
0 ETH0.000284636.17446724
Set Approval For...182940562023-10-06 21:11:23397 days ago1696626683IN
0xa7aA345F...3D46b49F7
0 ETH0.000318456.90798564
Set Approval For...179455562023-08-19 1:30:11446 days ago1692408611IN
0xa7aA345F...3D46b49F7
0 ETH0.0006561614.23377011
Mint Gen178265012023-08-02 9:44:35463 days ago1690969475IN
0xa7aA345F...3D46b49F7
0 ETH0.0031528915.21116322
Safe Transfer Fr...175996022023-07-01 13:48:59494 days ago1688219339IN
0xa7aA345F...3D46b49F7
0 ETH0.001829818.24116229
Set Approval For...173418292023-05-26 7:35:47531 days ago1685086547IN
0xa7aA345F...3D46b49F7
0 ETH0.0012039926.11749513
Set Approval For...171587752023-04-30 12:10:47556 days ago1682856647IN
0xa7aA345F...3D46b49F7
0 ETH0.0015494733.61183419
Set Approval For...171534062023-04-29 18:05:11557 days ago1682791511IN
0xa7aA345F...3D46b49F7
0 ETH0.0015209732.99363683
Safe Transfer Fr...171066292023-04-23 4:26:11564 days ago1682223971IN
0xa7aA345F...3D46b49F7
0 ETH0.003534235.23217151
Set Base URI170381532023-04-13 11:02:11573 days ago1681383731IN
0xa7aA345F...3D46b49F7
0 ETH0.0010511729.06440047
Transfer From170223212023-04-11 3:51:59576 days ago1681185119IN
0xa7aA345F...3D46b49F7
0 ETH0.0016751520.02030692
Set Approval For...170125022023-04-09 18:28:23577 days ago1681064903IN
0xa7aA345F...3D46b49F7
0 ETH0.0028645962.14013095
Transfer From169432842023-03-30 23:20:11587 days ago1680218411IN
0xa7aA345F...3D46b49F7
0 ETH0.0027629831.95204753
Mint Gen168742262023-03-21 6:26:35597 days ago1679379995IN
0xa7aA345F...3D46b49F7
0 ETH0.0025761412.26298573
Mint Rel168680272023-03-20 9:35:23598 days ago1679304923IN
0xa7aA345F...3D46b49F7
0 ETH0.0033864914.31039555
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
145223602022-04-04 23:07:34947 days ago1649113654
0xa7aA345F...3D46b49F7
1.84 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OctoHedzVX

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : OctoHedz VX Updated.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";


interface iINKz {
    function balanceOf(address address_) external view returns (uint); 
    function transferFrom(address from_, address to_, uint amount) external returns (bool);
    function burn(address from_, uint amount) external;
}

abstract contract OCTOHEDZ {

  function ownerOf(uint256 tokenId) public virtual view returns (address);
  function tokenOfOwnerByIndex(address owner, uint256 index) public virtual view returns (uint256);
  function balanceOf(address owner) external virtual view returns (uint256 balance);
  function tokensOfOwner(address owner) external virtual view returns (uint256[] memory tokens);
}

abstract contract OCTOHEDZV2 {

  function ownerOf(uint256 tokenId) public virtual view returns (address);
  function tokenOfOwnerByIndex(address owner, uint256 index) public virtual view returns (uint256);
  function balanceOf(address owner) external virtual view returns (uint256 balance);
  function tokensOfOwner(address owner) external virtual view returns (uint256[] memory tokens);
}

contract OctoHedzVX is Ownable, ERC721Enumerable {

    OCTOHEDZ private octohedz;
    address private octohedzContract = 0x6E5a65B5f9Dd7b1b08Ff212E210DCd642DE0db8B;  //Mainnet
   


    OCTOHEDZV2 private octohedzv2;
    address private octohedzv2Contract = 0x6da4c631C6AD8bFd9D7845Fd093541BEBecE2f96; //Mainnet
     

   

    mapping(address => uint8) private _allowList;

    constructor(string memory baseTokenURI, string memory baseContractURI) ERC721("OctoHedz VX", "OctoHedzVX") {
        setBaseURI(baseTokenURI);
        _baseContractURI = baseContractURI;
        octohedz = OCTOHEDZ(octohedzContract);
        octohedzv2= OCTOHEDZV2(octohedzv2Contract);
    }

    

    //limits
    uint public MAX_OCTOHEDZVX = 11111;         //max token
    uint internal PUB_OCTOHEDZVX = 6072;        //max public mint
    uint internal GEN_OCTOHEDZVX = 888;         //max gen
    uint internal REL_OCTOHEDZVX = 4000;        //max reloaded
    

    uint internal genstartingtoken = 0;         //Genesis
    uint internal corstartingtoken = 889;       //Corrupted 
    uint internal relstartingtoken = 1039;      //Reloaded 1038
    uint internal pubstartingtoken = 5039;      //Public


    uint public GEN_OCTOHEDZVX_Minted = 0; 
    uint public REL_OCTOHEDZVX_Minted = 0;   
    uint public PUB_OCTOHEDZVX_Minted = 0;
    uint public AIR_OCTOHEDZVX_Minted = 0;     




    mapping(uint256 => uint256) public mintedIDs;
    mapping(uint256 => uint256) public ReladedmintedIDs;

    
    //Variables
    uint256 public _price = 0.08 ether;
    uint256 public mintPriceINKz = 300 ether;

    bool public preSaleIsActive = false;
    bool public hasSaleStarted = false;
    string private _baseTokenURI;
    string private _baseContractURI;
    // bool public inkzMintEnabled= true;
    //uint256 public totalVxMinted = 0;

   // INKz Interactions
    address public INKzAddress;
    iINKz public INKz;
    function setINKz(address address_) external onlyOwner { 
        INKzAddress = address_;
        INKz = iINKz(address_);
    }
    
    
    // function setINKzMintStatus(bool bool_) external onlyOwner {
    //     inkzMintEnabled = bool_;
    // }

    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

    function tokenURI(uint256 _tokenId) override public view returns (string memory) {
        return string(abi.encodePacked(_baseTokenURI, Strings.toString(_tokenId)));
    }

    function contractURI() public view returns (string memory) {
       return _baseContractURI;
    }

    function setBaseURI(string memory baseURI) public onlyOwner {
        _baseTokenURI = baseURI;
    }

    function flipSaleState() public onlyOwner {
        hasSaleStarted = !hasSaleStarted;
    }
    
        event Mint (address indexed to_, uint tokenId_);
        modifier onlySender {
        require(msg.sender == tx.origin, "No smart contracts allowed!");
        _;
    }
     
    //     modifier inkzMint {
    //     require(inkzMintEnabled, "Minting with INKz is not available yet!");
    //     _;
    // } 

    function setIsAllowListActive() public onlyOwner {
        preSaleIsActive = !preSaleIsActive;
    }

    function setAllowList(address[] calldata addresses, uint8 numAllowedToMint) external onlyOwner {
        for (uint256 i = 0; i < addresses.length; i++) {
            _allowList[addresses[i]] = numAllowedToMint;
        }
    }
     function numAvailableToMint(address addr) external view returns (uint8) {
        return _allowList[addr];
    }


    function tokensOfOwner(address _owner) external view returns(uint256[] memory ) {
        uint256 tokenCount = balanceOf(_owner);
        if (tokenCount == 0) {
            // Return an empty array
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 index;
            for (index = 0; index < tokenCount; index++) {
                result[index] = tokenOfOwnerByIndex(_owner, index);
            }
            return result;
        }
    }

   
    function getGenAvailableIDs() public view returns (uint256[] memory) {
        uint256[] memory GenavailableIDs = new uint256[](GEN_OCTOHEDZVX);
        for (uint256 i = 0; i < GEN_OCTOHEDZVX; i++) {
           if (mintedIDs[i] != 1){
              GenavailableIDs[i] = i;
           } else {
              GenavailableIDs[i] = GEN_OCTOHEDZVX; 
           }
          
        }
        return GenavailableIDs;
    }

     
    function getRelAvailableIDs() public view returns (uint256[] memory) {
        uint256[] memory RelavailableIDs = new uint256[](REL_OCTOHEDZVX);
        for (uint256 i = 0; i < REL_OCTOHEDZVX; i++) {
           if (mintedIDs[i] != 1){
              RelavailableIDs[i] = i;
           } else {
              RelavailableIDs[i] = REL_OCTOHEDZVX; 
           }
          
        }
        return RelavailableIDs;
    }

    function Price() public view returns (uint256) {
        require(totalSupply() < MAX_OCTOHEDZVX, "Invasion has ended");  
        return _price;
    }

    


    function reserveAirdrop(uint256 numOctoHedz) public onlyOwner {
        //uint currentSupply = totalSupply();
        uint256 CorVX = corstartingtoken + AIR_OCTOHEDZVX_Minted;
        require(totalSupply() + numOctoHedz <= 150, "Exceeded airdrop supply");
        require(hasSaleStarted == false, "Sale has already started");
        uint256 index;
        // Reserved for airdrops and giveaways
        for (index = 0; index < numOctoHedz; index++) {
            _safeMint(owner(),  CorVX + index);
            AIR_OCTOHEDZVX_Minted++;
        }
    }
           

    //setup genesis to mint using token
    function mintGen(uint256 _tokenId) public {
    uint genesis = mintedIDs[_tokenId];
    require(octohedz.ownerOf(_tokenId) == msg.sender, "Must own the specific OctoHedz");
    require(genesis == 0, "tokens already used");
    require(_tokenId <= corstartingtoken , "Must be Genesis");
    require(totalSupply()<= MAX_OCTOHEDZVX, "Exceeds Total Supply");    
    require(INKz.balanceOf(msg.sender) >= mintPriceINKz, "You do not have enough INKz!");
    INKz.burn(msg.sender, mintPriceINKz); 
    mintedIDs[_tokenId] += 1;
    _safeMint(msg.sender, _tokenId+1);
    GEN_OCTOHEDZVX_Minted++;

    }

    //setup reloaded to mint using token
    
    function mintRel(uint256 tokenId1, uint256 tokenId2) public  {

    uint reloaded1 = ReladedmintedIDs[tokenId1];
    uint reloaded2 = ReladedmintedIDs[tokenId2];
    require(tokenId1 != tokenId2, "Same token");
    require(octohedzv2.ownerOf(tokenId1) == msg.sender && octohedzv2.ownerOf(tokenId2) == msg.sender , "Not token owner");   
     require (reloaded1 == 0 && reloaded2 == 0, "tokens already used");
    ReladedmintedIDs[tokenId1] += 1;
    ReladedmintedIDs[tokenId2] += 1;
    require(totalSupply()<= MAX_OCTOHEDZVX, "Exceeds Total Supply");
    require(INKz.balanceOf(msg.sender) >= mintPriceINKz, "You do not have enough INKz!");
    INKz.burn(msg.sender, mintPriceINKz); 
    
    uint256 RelVX = relstartingtoken + REL_OCTOHEDZVX_Minted;
    _safeMint(msg.sender, RelVX);
    REL_OCTOHEDZVX_Minted++;

    }
   

  
  
   //Public MINT Function
   function getOctoHedz(uint256 numOctoHedz) public payable {

        require(hasSaleStarted, "Sale must be active to mint OctoHedz");
        uint256 PubVX = pubstartingtoken + PUB_OCTOHEDZVX_Minted;
        require(numOctoHedz > 0, "need to mint at least 1");
        require(numOctoHedz <= 2, "max mint amount per session exceeded");
        require(msg.value >= _price * numOctoHedz, "insufficient funds");
        require(PUB_OCTOHEDZVX_Minted + numOctoHedz <= PUB_OCTOHEDZVX, "request exceeds max mint count"); 
        require(totalSupply()<= MAX_OCTOHEDZVX, "Exceeds Total Supply");
        require(numOctoHedz + balanceOf(msg.sender) <= 200, "Can't have more than 200 OctoHedz per wallet");
        for (uint256 i = 0; i < numOctoHedz; i++) {
        _safeMint(msg.sender, PubVX + i);
        PUB_OCTOHEDZVX_Minted++;
        }
    }

    function OctoHedzWL(uint8 numOctoHedz) public payable {
 
        uint256 PubVX = pubstartingtoken + PUB_OCTOHEDZVX_Minted;
        require(preSaleIsActive, "Pre Sale not active");
        require(numOctoHedz <= _allowList[msg.sender], "Exceeded max available per wallet");
        require(msg.value >= _price * numOctoHedz, "insufficient funds");
        require(PUB_OCTOHEDZVX_Minted + numOctoHedz <= PUB_OCTOHEDZVX, "request exceeds max mint count");
        _allowList[msg.sender] -= numOctoHedz;
        for (uint256 i = 0; i < numOctoHedz; i++) {
        _safeMint(msg.sender, PubVX + i);
        PUB_OCTOHEDZVX_Minted++;
        }
    }



   function withdrawAll() public payable onlyOwner {
        require(payable(msg.sender).send(address(this).balance));
    }

    function claimableVX(address _user) public view returns (uint[] memory) {
         uint[] memory octoz = OCTOHEDZ(octohedzContract).tokensOfOwner(_user);

         uint arrayOctozLength = octoz.length;
         uint x=0;
         for (uint i=0; i<arrayOctozLength; i++) {
              uint256 id = octoz[i];
              if (mintedIDs[id]==0) {
                  x++;
              }
         }
         uint[] memory octozAvailable = new uint[](x);
         x=0;
         for (uint i=0; i<arrayOctozLength; i++) {
              if (mintedIDs[octoz[i]]==0) {
                  octozAvailable[x]=octoz[i];
                  x++;
              }
         }
         return octozAvailable;
    }

    function unusedReloaded(address _user) public view returns (uint[] memory) {
         uint[] memory octoz = OCTOHEDZV2(octohedzv2Contract).tokensOfOwner(_user);

         uint arrayOctozLength = octoz.length;
         uint x=0;
         for (uint i=0; i<arrayOctozLength; i++) {
              uint256 id = octoz[i];
              if (ReladedmintedIDs[id]==0) {
                  x++;
              }
         }
         uint[] memory octozUnused = new uint[](x);
         x=0;
         for (uint i=0; i<arrayOctozLength; i++) {
              if (ReladedmintedIDs[octoz[i]]==0) {
                  octozUnused[x]=octoz[i];
                  x++;
              }
         }
         return octozUnused;
    }

    function checkIfVXClaimed(uint id) public view returns (uint) {
         return mintedIDs[id];
    }
    function checkIfReloadedUsed(uint id) public view returns (uint) {
         return ReladedmintedIDs[id];
    }

}

File 2 of 13 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.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.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

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

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 3 of 13 : 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);
    }
}

File 4 of 13 : 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 5 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        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`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _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(ERC721.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 6 of 13 : 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 7 of 13 : 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 8 of 13 : 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 9 of 13 : 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 10 of 13 : 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 11 of 13 : 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 12 of 13 : 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 13 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"string","name":"baseContractURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to_","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"Mint","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":[],"name":"AIR_OCTOHEDZVX_Minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GEN_OCTOHEDZVX_Minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INKz","outputs":[{"internalType":"contract iINKz","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INKzAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_OCTOHEDZVX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"numOctoHedz","type":"uint8"}],"name":"OctoHedzWL","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"PUB_OCTOHEDZVX_Minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REL_OCTOHEDZVX_Minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ReladedmintedIDs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"checkIfReloadedUsed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"checkIfVXClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"claimableVX","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleState","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":"getGenAvailableIDs","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numOctoHedz","type":"uint256"}],"name":"getOctoHedz","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getRelAvailableIDs","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"mintGen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPriceINKz","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId1","type":"uint256"},{"internalType":"uint256","name":"tokenId2","type":"uint256"}],"name":"mintRel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintedIDs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"numAvailableToMint","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"preSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numOctoHedz","type":"uint256"}],"name":"reserveAirdrop","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":"addresses","type":"address[]"},{"internalType":"uint8","name":"numAllowedToMint","type":"uint8"}],"name":"setAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"setINKz","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setIsAllowListActive","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":[{"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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"address","name":"_user","type":"address"}],"name":"unusedReloaded","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]

6080604052600c80546001600160a01b0319908116736e5a65b5f9dd7b1b08ff212e210dcd642de0db8b17909155600e8054909116736da4c631c6ad8bfd9d7845fd093541bebece2f96179055612b676010556117b8601155610378601255610fa06013556000601481905561037960155561040f6016556113af60175560188190556019819055601a819055601b5567011c37937e080000601e55681043561a8829300000601f556020805461ffff19169055348015620000c057600080fd5b5060405162003ef138038062003ef1833981016040819052620000e391620003f8565b6040518060400160405280600b81526020016a09ec6e8de90cac8f440acb60ab1b8152506040518060400160405280600a81526020016909ec6e8de90cac8f4acb60b31b815250620001446200013e620001d360201b60201c565b620001d7565b8151620001599060019060208501906200029f565b5080516200016f9060029060208401906200029f565b50505062000183826200022760201b60201c565b8051620001989060229060208401906200029f565b5050600c54600b80546001600160a01b039283166001600160a01b031991821617909155600e54600d805491909316911617905550620004b2565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620002865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b80516200029b9060219060208401906200029f565b5050565b828054620002ad906200045f565b90600052602060002090601f016020900481019282620002d157600085556200031c565b82601f10620002ec57805160ff19168380011785556200031c565b828001600101855582156200031c579182015b828111156200031c578251825591602001919060010190620002ff565b506200032a9291506200032e565b5090565b5b808211156200032a57600081556001016200032f565b600082601f83011262000356578081fd5b81516001600160401b03808211156200037357620003736200049c565b604051601f8301601f19908116603f011681019082821181831017156200039e576200039e6200049c565b81604052838152602092508683858801011115620003ba578485fd5b8491505b83821015620003dd5785820183015181830184015290820190620003be565b83821115620003ee57848385830101525b9695505050505050565b600080604083850312156200040b578182fd5b82516001600160401b038082111562000422578384fd5b620004308683870162000345565b9350602085015191508082111562000446578283fd5b50620004558582860162000345565b9150509250929050565b600181811c908216806200047457607f821691505b602082108114156200049657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b613a2f80620004c26000396000f3fe60806040526004361061031a5760003560e01c80636bd986bf116101ab57806395d89b41116100f7578063c87b56dd11610095578063e8a3d4851161006f578063e8a3d4851461091c578063e985e9c514610931578063ef3b2ce71461097a578063f2fde38b1461098f57600080fd5b8063c87b56dd146108af578063cb9f7c0c146108cf578063cfbb2371146108ef57600080fd5b8063a07d9c2c116100d1578063a07d9c2c1461080f578063a22cb46514610824578063b88d4fde14610844578063c04a28361461086457600080fd5b806395d89b41146107c55780639752ddb4146107da5780639dfde201146107fa57600080fd5b80637f545d5111610164578063853828b61161013e578063853828b61461075c5780638da5cb5b1461076457806390b4128d146107825780639225a436146107af57600080fd5b80637f545d51146106fc5780638295784d1461071c5780638462151c1461073c57600080fd5b80636bd986bf146106515780636e5b0d7e1461066457806370a0823114610691578063715018a6146106b157806377febf83146106c65780637d9447e2146106dc57600080fd5b806323b872dd1161026a57806349bcc88d116102235780634f6ccce7116101fd5780634f6ccce7146105db578063507e60c5146105fb57806355f804b3146106115780636352211e1461063157600080fd5b806349bcc88d146105905780634a3cd688146105a65780634ae89f49146105c657600080fd5b806323b872dd146104e55780632f745c591461050557806333da61d91461052557806334918dfd146105455780634152f6a71461055a57806342842e0e1461057057600080fd5b8063148bbaf6116102d75780631c8b232d116102b15780631c8b232d146104765780631ec04ecd146104955780631f0234d8146104b5578063235b6ea1146104cf57600080fd5b8063148bbaf61461043857806318160ddd1461044e5780631b123aab1461046357600080fd5b806301ffc9a71461031f57806305e10a8d1461035457806306fdde031461038f578063081812fc146103b1578063095ea7b3146103e957806311219ba71461040b575b600080fd5b34801561032b57600080fd5b5061033f61033a3660046134d5565b6109af565b60405190151581526020015b60405180910390f35b34801561036057600080fd5b5061038161036f366004613553565b6000908152601c602052604090205490565b60405190815260200161034b565b34801561039b57600080fd5b506103a46109da565b60405161034b919061372d565b3480156103bd57600080fd5b506103d16103cc366004613553565b610a6c565b6040516001600160a01b03909116815260200161034b565b3480156103f557600080fd5b50610409610404366004613383565b610b06565b005b34801561041757600080fd5b5061042b61042636600461321e565b610c1c565b60405161034b91906136e9565b34801561044457600080fd5b50610381601a5481565b34801561045a57600080fd5b50600954610381565b610409610471366004613553565b610e41565b34801561048257600080fd5b5060205461033f90610100900460ff1681565b3480156104a157600080fd5b506104096104b036600461321e565b6110f8565b3480156104c157600080fd5b5060205461033f9060ff1681565b3480156104db57600080fd5b50610381601e5481565b3480156104f157600080fd5b50610409610500366004613295565b61114e565b34801561051157600080fd5b50610381610520366004613383565b61117f565b34801561053157600080fd5b5061042b61054036600461321e565b611215565b34801561055157600080fd5b50610409611430565b34801561056657600080fd5b5061038160195481565b34801561057c57600080fd5b5061040961058b366004613295565b611477565b34801561059c57600080fd5b5061038160185481565b3480156105b257600080fd5b506104096105c1366004613553565b611492565b3480156105d257600080fd5b5061042b6115de565b3480156105e757600080fd5b506103816105f6366004613553565b6116d4565b34801561060757600080fd5b5061038160105481565b34801561061d57600080fd5b5061040961062c36600461350d565b611775565b34801561063d57600080fd5b506103d161064c366004613553565b6117b6565b61040961065f3660046135a4565b61182d565b34801561067057600080fd5b5061038161067f366004613553565b601c6020526000908152604090205481565b34801561069d57600080fd5b506103816106ac36600461321e565b611a2f565b3480156106bd57600080fd5b50610409611ab6565b3480156106d257600080fd5b50610381601f5481565b3480156106e857600080fd5b506023546103d1906001600160a01b031681565b34801561070857600080fd5b506024546103d1906001600160a01b031681565b34801561072857600080fd5b506104096107373660046133ae565b611aec565b34801561074857600080fd5b5061042b61075736600461321e565b611b9e565b610409611c73565b34801561077057600080fd5b506000546001600160a01b03166103d1565b34801561078e57600080fd5b5061038161079d366004613553565b601d6020526000908152604090205481565b3480156107bb57600080fd5b50610381601b5481565b3480156107d157600080fd5b506103a4611cc1565b3480156107e657600080fd5b506104096107f5366004613553565b611cd0565b34801561080657600080fd5b50610381611fdf565b34801561081b57600080fd5b5061042b612036565b34801561083057600080fd5b5061040961083f366004613352565b612126565b34801561085057600080fd5b5061040961085f3660046132d5565b6121eb565b34801561087057600080fd5b5061089d61087f36600461321e565b6001600160a01b03166000908152600f602052604090205460ff1690565b60405160ff909116815260200161034b565b3480156108bb57600080fd5b506103a46108ca366004613553565b61221d565b3480156108db57600080fd5b506104096108ea366004613583565b612251565b3480156108fb57600080fd5b5061038161090a366004613553565b6000908152601d602052604090205490565b34801561092857600080fd5b506103a4612618565b34801561093d57600080fd5b5061033f61094c36600461325d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561098657600080fd5b50610409612627565b34801561099b57600080fd5b506104096109aa36600461321e565b612665565b60006001600160e01b0319821663780e9d6360e01b14806109d457506109d482612700565b92915050565b6060600180546109e990613928565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1590613928565b8015610a625780601f10610a3757610100808354040283529160200191610a62565b820191906000526020600020905b815481529060010190602001808311610a4557829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610aea5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b11826117b6565b9050806001600160a01b0316836001600160a01b03161415610b7f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ae1565b336001600160a01b0382161480610b9b5750610b9b813361094c565b610c0d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ae1565b610c178383612750565b505050565b600c54604051632118854760e21b81526001600160a01b038381166004830152606092600092911690638462151c9060240160006040518083038186803b158015610c6657600080fd5b505afa158015610c7a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ca2919081019061342d565b80519091506000805b82811015610d1c576000848281518110610cd557634e487b7160e01b600052603260045260246000fd5b60200260200101519050601c60008281526020019081526020016000205460001415610d095782610d058161395d565b9350505b5080610d148161395d565b915050610cab565b5060008167ffffffffffffffff811115610d4657634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d6f578160200160208202803683370190505b5090506000915060005b83811015610e3757601c6000868381518110610da557634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205460001415610e2557848181518110610de457634e487b7160e01b600052603260045260246000fd5b6020026020010151828481518110610e0c57634e487b7160e01b600052603260045260246000fd5b602090810291909101015282610e218161395d565b9350505b80610e2f8161395d565b915050610d79565b5095945050505050565b602054610100900460ff16610ea45760405162461bcd60e51b8152602060048201526024808201527f53616c65206d7573742062652061637469766520746f206d696e74204f63746f6044820152632432b23d60e11b6064820152608401610ae1565b6000601a54601754610eb69190613877565b905060008211610f085760405162461bcd60e51b815260206004820152601760248201527f6e65656420746f206d696e74206174206c6561737420310000000000000000006044820152606401610ae1565b6002821115610f655760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656044820152631959195960e21b6064820152608401610ae1565b81601e54610f7391906138a3565b341015610fb75760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610ae1565b60115482601a54610fc89190613877565b11156110165760405162461bcd60e51b815260206004820152601e60248201527f726571756573742065786365656473206d6178206d696e7420636f756e7400006044820152606401610ae1565b601054600954111561103a5760405162461bcd60e51b8152600401610ae190613792565b60c861104533611a2f565b61104f9084613877565b11156110b25760405162461bcd60e51b815260206004820152602c60248201527f43616e27742068617665206d6f7265207468616e20323030204f63746f48656460448201526b1e881c195c881dd85b1b195d60a21b6064820152608401610ae1565b60005b82811015610c17576110d0336110cb8385613877565b6127be565b601a80549060006110e08361395d565b919050555080806110f09061395d565b9150506110b5565b6000546001600160a01b031633146111225760405162461bcd60e51b8152600401610ae1906137c0565b602380546001600160a01b039092166001600160a01b0319928316811790915560248054909216179055565b61115833826127d8565b6111745760405162461bcd60e51b8152600401610ae1906137f5565b610c178383836128cf565b600061118a83611a2f565b82106111ec5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610ae1565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b600e54604051632118854760e21b81526001600160a01b038381166004830152606092600092911690638462151c9060240160006040518083038186803b15801561125f57600080fd5b505afa158015611273573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261129b919081019061342d565b80519091506000805b828110156113155760008482815181106112ce57634e487b7160e01b600052603260045260246000fd5b60200260200101519050601d6000828152602001908152602001600020546000141561130257826112fe8161395d565b9350505b508061130d8161395d565b9150506112a4565b5060008167ffffffffffffffff81111561133f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611368578160200160208202803683370190505b5090506000915060005b83811015610e3757601d600086838151811061139e57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020546000141561141e578481815181106113dd57634e487b7160e01b600052603260045260246000fd5b602002602001015182848151811061140557634e487b7160e01b600052603260045260246000fd5b60209081029190910101528261141a8161395d565b9350505b806114288161395d565b915050611372565b6000546001600160a01b0316331461145a5760405162461bcd60e51b8152600401610ae1906137c0565b6020805461ff001981166101009182900460ff1615909102179055565b610c17838383604051806020016040528060008152506121eb565b6000546001600160a01b031633146114bc5760405162461bcd60e51b8152600401610ae1906137c0565b6000601b546015546114ce9190613877565b90506096826114dc60095490565b6114e69190613877565b11156115345760405162461bcd60e51b815260206004820152601760248201527f45786365656465642061697264726f7020737570706c790000000000000000006044820152606401610ae1565b602054610100900460ff161561158c5760405162461bcd60e51b815260206004820152601860248201527f53616c652068617320616c7265616479207374617274656400000000000000006044820152606401610ae1565b60005b82811015610c17576115b66115ac6000546001600160a01b031690565b6110cb8385613877565b601b80549060006115c68361395d565b919050555080806115d69061395d565b91505061158f565b6060600060125467ffffffffffffffff81111561160b57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611634578160200160208202803683370190505b50905060005b6012548110156116ce576000818152601c602052604090205460011461168c578082828151811061167b57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506116bc565b6012548282815181106116af57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b806116c68161395d565b91505061163a565b50919050565b60006116df60095490565b82106117425760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610ae1565b6009828154811061176357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000546001600160a01b0316331461179f5760405162461bcd60e51b8152600401610ae1906137c0565b80516117b2906021906020840190613117565b5050565b6000818152600360205260408120546001600160a01b0316806109d45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ae1565b6000601a5460175461183f9190613877565b60205490915060ff1661188a5760405162461bcd60e51b81526020600482015260136024820152725072652053616c65206e6f742061637469766560681b6044820152606401610ae1565b336000908152600f602052604090205460ff90811690831611156118fa5760405162461bcd60e51b815260206004820152602160248201527f4578636565646564206d617820617661696c61626c65207065722077616c6c656044820152601d60fa1b6064820152608401610ae1565b8160ff16601e5461190b91906138a3565b34101561194f5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610ae1565b6011548260ff16601a546119639190613877565b11156119b15760405162461bcd60e51b815260206004820152601e60248201527f726571756573742065786365656473206d6178206d696e7420636f756e7400006044820152606401610ae1565b336000908152600f6020526040812080548492906119d390849060ff166138d9565b92506101000a81548160ff021916908360ff16021790555060005b8260ff16811015610c1757611a07336110cb8385613877565b601a8054906000611a178361395d565b91905055508080611a279061395d565b9150506119ee565b60006001600160a01b038216611a9a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ae1565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314611ae05760405162461bcd60e51b8152600401610ae1906137c0565b611aea6000612a7a565b565b6000546001600160a01b03163314611b165760405162461bcd60e51b8152600401610ae1906137c0565b60005b82811015611b985781600f6000868685818110611b4657634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611b5b919061321e565b6001600160a01b031681526020810191909152604001600020805460ff191660ff9290921691909117905580611b908161395d565b915050611b19565b50505050565b60606000611bab83611a2f565b905080611bcc5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115611bf557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611c1e578160200160208202803683370190505b50905060005b82811015611bc457611c36858261117f565b828281518110611c5657634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611c6b8161395d565b915050611c24565b6000546001600160a01b03163314611c9d5760405162461bcd60e51b8152600401610ae1906137c0565b60405133904780156108fc02916000818181858888f19350505050611aea57600080fd5b6060600280546109e990613928565b6000818152601c60205260409081902054600b5491516331a9108f60e11b815260048101849052909133916001600160a01b0390911690636352211e9060240160206040518083038186803b158015611d2857600080fd5b505afa158015611d3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d609190613241565b6001600160a01b031614611db65760405162461bcd60e51b815260206004820152601e60248201527f4d757374206f776e20746865207370656369666963204f63746f4865647a00006044820152606401610ae1565b8015611dfa5760405162461bcd60e51b81526020600482015260136024820152721d1bdad95b9cc8185b1c9958591e481d5cd959606a1b6044820152606401610ae1565b601554821115611e3e5760405162461bcd60e51b815260206004820152600f60248201526e4d7573742062652047656e6573697360881b6044820152606401610ae1565b6010546009541115611e625760405162461bcd60e51b8152600401610ae190613792565b601f54602480546040516370a0823160e01b81523360048201526001600160a01b03909116916370a08231910160206040518083038186803b158015611ea757600080fd5b505afa158015611ebb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611edf919061356b565b1015611f2d5760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f206e6f74206861766520656e6f75676820494e4b7a21000000006044820152606401610ae1565b60248054601f54604051632770a7eb60e21b8152336004820152928301526001600160a01b031690639dc29fac90604401600060405180830381600087803b158015611f7857600080fd5b505af1158015611f8c573d6000803e3d6000fd5b5050506000838152601c60205260408120805460019350909190611fb1908490613877565b90915550611fc69050336110cb846001613877565b60188054906000611fd68361395d565b91905055505050565b6000601054611fed60095490565b1061202f5760405162461bcd60e51b8152602060048201526012602482015271125b9d985cda5bdb881a185cc8195b99195960721b6044820152606401610ae1565b50601e5490565b6060600060135467ffffffffffffffff81111561206357634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561208c578160200160208202803683370190505b50905060005b6013548110156116ce576000818152601c60205260409020546001146120e457808282815181106120d357634e487b7160e01b600052603260045260246000fd5b602002602001018181525050612114565b60135482828151811061210757634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b8061211e8161395d565b915050612092565b6001600160a01b03821633141561217f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ae1565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6121f533836127d8565b6122115760405162461bcd60e51b8152600401610ae1906137f5565b611b9884848484612aca565b6060602161222a83612afd565b60405160200161223b929190613606565b6040516020818303038152906040529050919050565b6000828152601d602052604080822054838352912054828414156122a45760405162461bcd60e51b815260206004820152600a60248201526929b0b6b2903a37b5b2b760b11b6044820152606401610ae1565b600d546040516331a9108f60e11b81526004810186905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156122e857600080fd5b505afa1580156122fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123209190613241565b6001600160a01b03161480156123b85750600d546040516331a9108f60e11b81526004810185905233916001600160a01b031690636352211e9060240160206040518083038186803b15801561237557600080fd5b505afa158015612389573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123ad9190613241565b6001600160a01b0316145b6123f65760405162461bcd60e51b815260206004820152600f60248201526e2737ba103a37b5b2b71037bbb732b960891b6044820152606401610ae1565b81158015612402575080155b6124445760405162461bcd60e51b81526020600482015260136024820152721d1bdad95b9cc8185b1c9958591e481d5cd959606a1b6044820152606401610ae1565b6000848152601d60205260408120805460019290612463908490613877565b90915550506000838152601d60205260408120805460019290612487908490613877565b909155505060105460095411156124b05760405162461bcd60e51b8152600401610ae190613792565b601f54602480546040516370a0823160e01b81523360048201526001600160a01b03909116916370a08231910160206040518083038186803b1580156124f557600080fd5b505afa158015612509573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061252d919061356b565b101561257b5760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f206e6f74206861766520656e6f75676820494e4b7a21000000006044820152606401610ae1565b60248054601f54604051632770a7eb60e21b8152336004820152928301526001600160a01b031690639dc29fac90604401600060405180830381600087803b1580156125c657600080fd5b505af11580156125da573d6000803e3d6000fd5b5050505060006019546016546125f09190613877565b90506125fc33826127be565b6019805490600061260c8361395d565b91905055505050505050565b6060602280546109e990613928565b6000546001600160a01b031633146126515760405162461bcd60e51b8152600401610ae1906137c0565b6020805460ff19811660ff90911615179055565b6000546001600160a01b0316331461268f5760405162461bcd60e51b8152600401610ae1906137c0565b6001600160a01b0381166126f45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ae1565b6126fd81612a7a565b50565b60006001600160e01b031982166380ac58cd60e01b148061273157506001600160e01b03198216635b5e139f60e01b145b806109d457506301ffc9a760e01b6001600160e01b03198316146109d4565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612785826117b6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6117b2828260405180602001604052806000815250612c17565b6000818152600360205260408120546001600160a01b03166128515760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ae1565b600061285c836117b6565b9050806001600160a01b0316846001600160a01b031614806128975750836001600160a01b031661288c84610a6c565b6001600160a01b0316145b806128c757506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166128e2826117b6565b6001600160a01b03161461294a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610ae1565b6001600160a01b0382166129ac5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ae1565b6129b7838383612c4a565b6129c2600082612750565b6001600160a01b03831660009081526004602052604081208054600192906129eb9084906138c2565b90915550506001600160a01b0382166000908152600460205260408120805460019290612a19908490613877565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612ad58484846128cf565b612ae184848484612d02565b611b985760405162461bcd60e51b8152600401610ae190613740565b606081612b215750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b4b5780612b358161395d565b9150612b449050600a8361388f565b9150612b25565b60008167ffffffffffffffff811115612b7457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612b9e576020820181803683370190505b5090505b84156128c757612bb36001836138c2565b9150612bc0600a86613978565b612bcb906030613877565b60f81b818381518110612bee57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612c10600a8661388f565b9450612ba2565b612c218383612e0f565b612c2e6000848484612d02565b610c175760405162461bcd60e51b8152600401610ae190613740565b6001600160a01b038316612ca557612ca081600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612cc8565b816001600160a01b0316836001600160a01b031614612cc857612cc88382612f5d565b6001600160a01b038216612cdf57610c1781612ffa565b826001600160a01b0316826001600160a01b031614610c1757610c1782826130d3565b60006001600160a01b0384163b15612e0457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d469033908990889088906004016136ac565b602060405180830381600087803b158015612d6057600080fd5b505af1925050508015612d90575060408051601f3d908101601f19168201909252612d8d918101906134f1565b60015b612dea573d808015612dbe576040519150601f19603f3d011682016040523d82523d6000602084013e612dc3565b606091505b508051612de25760405162461bcd60e51b8152600401610ae190613740565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506128c7565b506001949350505050565b6001600160a01b038216612e655760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ae1565b6000818152600360205260409020546001600160a01b031615612eca5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ae1565b612ed660008383612c4a565b6001600160a01b0382166000908152600460205260408120805460019290612eff908490613877565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001612f6a84611a2f565b612f7491906138c2565b600083815260086020526040902054909150808214612fc7576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061300c906001906138c2565b6000838152600a60205260408120546009805493945090928490811061304257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806009838154811061307157634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806130b757634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006130de83611a2f565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b82805461312390613928565b90600052602060002090601f016020900481019282613145576000855561318b565b82601f1061315e57805160ff191683800117855561318b565b8280016001018555821561318b579182015b8281111561318b578251825591602001919060010190613170565b5061319792915061319b565b5090565b5b80821115613197576000815560010161319c565b600067ffffffffffffffff8311156131ca576131ca6139b8565b6131dd601f8401601f1916602001613846565b90508281528383830111156131f157600080fd5b828260208301376000602084830101529392505050565b803560ff8116811461321957600080fd5b919050565b60006020828403121561322f578081fd5b813561323a816139ce565b9392505050565b600060208284031215613252578081fd5b815161323a816139ce565b6000806040838503121561326f578081fd5b823561327a816139ce565b9150602083013561328a816139ce565b809150509250929050565b6000806000606084860312156132a9578081fd5b83356132b4816139ce565b925060208401356132c4816139ce565b929592945050506040919091013590565b600080600080608085870312156132ea578081fd5b84356132f5816139ce565b93506020850135613305816139ce565b925060408501359150606085013567ffffffffffffffff811115613327578182fd5b8501601f81018713613337578182fd5b613346878235602084016131b0565b91505092959194509250565b60008060408385031215613364578182fd5b823561336f816139ce565b91506020830135801515811461328a578182fd5b60008060408385031215613395578182fd5b82356133a0816139ce565b946020939093013593505050565b6000806000604084860312156133c2578283fd5b833567ffffffffffffffff808211156133d9578485fd5b818601915086601f8301126133ec578485fd5b8135818111156133fa578586fd5b8760208260051b850101111561340e578586fd5b6020928301955093506134249186019050613208565b90509250925092565b6000602080838503121561343f578182fd5b825167ffffffffffffffff80821115613456578384fd5b818501915085601f830112613469578384fd5b81518181111561347b5761347b6139b8565b8060051b915061348c848301613846565b8181528481019084860184860187018a10156134a6578788fd5b8795505b838610156134c85780518352600195909501949186019186016134aa565b5098975050505050505050565b6000602082840312156134e6578081fd5b813561323a816139e3565b600060208284031215613502578081fd5b815161323a816139e3565b60006020828403121561351e578081fd5b813567ffffffffffffffff811115613534578182fd5b8201601f81018413613544578182fd5b6128c7848235602084016131b0565b600060208284031215613564578081fd5b5035919050565b60006020828403121561357c578081fd5b5051919050565b60008060408385031215613595578182fd5b50508035926020909101359150565b6000602082840312156135b5578081fd5b61323a82613208565b600081518084526135d68160208601602086016138fc565b601f01601f19169290920160200192915050565b600081516135fc8185602086016138fc565b9290920192915050565b600080845482600182811c91508083168061362257607f831692505b602080841082141561364257634e487b7160e01b87526022600452602487fd5b818015613656576001811461366757613693565b60ff19861689528489019650613693565b60008b815260209020885b8681101561368b5781548b820152908501908301613672565b505084890196505b5050505050506136a381856135ea565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136df908301846135be565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561372157835183529284019291840191600101613705565b50909695505050505050565b60208152600061323a60208301846135be565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601490820152734578636565647320546f74616c20537570706c7960601b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561386f5761386f6139b8565b604052919050565b6000821982111561388a5761388a61398c565b500190565b60008261389e5761389e6139a2565b500490565b60008160001904831182151516156138bd576138bd61398c565b500290565b6000828210156138d4576138d461398c565b500390565b600060ff821660ff8416808210156138f3576138f361398c565b90039392505050565b60005b838110156139175781810151838201526020016138ff565b83811115611b985750506000910152565b600181811c9082168061393c57607f821691505b602082108114156116ce57634e487b7160e01b600052602260045260246000fd5b60006000198214156139715761397161398c565b5060010190565b600082613987576139876139a2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146126fd57600080fd5b6001600160e01b0319811681146126fd57600080fdfea2646970667358221220c097cd51f5749244153679d090fabdef677406ab9cc5eeeeed61d5fba69bc0c264736f6c63430008040033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d4e7046433235667158656343533572646a3575357178544857634a346748316a327863704d507251765848762f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d55346f64616e55706a5068423271685a51626b69356a71547779744b315865776a78515137576834336e50592f00000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061031a5760003560e01c80636bd986bf116101ab57806395d89b41116100f7578063c87b56dd11610095578063e8a3d4851161006f578063e8a3d4851461091c578063e985e9c514610931578063ef3b2ce71461097a578063f2fde38b1461098f57600080fd5b8063c87b56dd146108af578063cb9f7c0c146108cf578063cfbb2371146108ef57600080fd5b8063a07d9c2c116100d1578063a07d9c2c1461080f578063a22cb46514610824578063b88d4fde14610844578063c04a28361461086457600080fd5b806395d89b41146107c55780639752ddb4146107da5780639dfde201146107fa57600080fd5b80637f545d5111610164578063853828b61161013e578063853828b61461075c5780638da5cb5b1461076457806390b4128d146107825780639225a436146107af57600080fd5b80637f545d51146106fc5780638295784d1461071c5780638462151c1461073c57600080fd5b80636bd986bf146106515780636e5b0d7e1461066457806370a0823114610691578063715018a6146106b157806377febf83146106c65780637d9447e2146106dc57600080fd5b806323b872dd1161026a57806349bcc88d116102235780634f6ccce7116101fd5780634f6ccce7146105db578063507e60c5146105fb57806355f804b3146106115780636352211e1461063157600080fd5b806349bcc88d146105905780634a3cd688146105a65780634ae89f49146105c657600080fd5b806323b872dd146104e55780632f745c591461050557806333da61d91461052557806334918dfd146105455780634152f6a71461055a57806342842e0e1461057057600080fd5b8063148bbaf6116102d75780631c8b232d116102b15780631c8b232d146104765780631ec04ecd146104955780631f0234d8146104b5578063235b6ea1146104cf57600080fd5b8063148bbaf61461043857806318160ddd1461044e5780631b123aab1461046357600080fd5b806301ffc9a71461031f57806305e10a8d1461035457806306fdde031461038f578063081812fc146103b1578063095ea7b3146103e957806311219ba71461040b575b600080fd5b34801561032b57600080fd5b5061033f61033a3660046134d5565b6109af565b60405190151581526020015b60405180910390f35b34801561036057600080fd5b5061038161036f366004613553565b6000908152601c602052604090205490565b60405190815260200161034b565b34801561039b57600080fd5b506103a46109da565b60405161034b919061372d565b3480156103bd57600080fd5b506103d16103cc366004613553565b610a6c565b6040516001600160a01b03909116815260200161034b565b3480156103f557600080fd5b50610409610404366004613383565b610b06565b005b34801561041757600080fd5b5061042b61042636600461321e565b610c1c565b60405161034b91906136e9565b34801561044457600080fd5b50610381601a5481565b34801561045a57600080fd5b50600954610381565b610409610471366004613553565b610e41565b34801561048257600080fd5b5060205461033f90610100900460ff1681565b3480156104a157600080fd5b506104096104b036600461321e565b6110f8565b3480156104c157600080fd5b5060205461033f9060ff1681565b3480156104db57600080fd5b50610381601e5481565b3480156104f157600080fd5b50610409610500366004613295565b61114e565b34801561051157600080fd5b50610381610520366004613383565b61117f565b34801561053157600080fd5b5061042b61054036600461321e565b611215565b34801561055157600080fd5b50610409611430565b34801561056657600080fd5b5061038160195481565b34801561057c57600080fd5b5061040961058b366004613295565b611477565b34801561059c57600080fd5b5061038160185481565b3480156105b257600080fd5b506104096105c1366004613553565b611492565b3480156105d257600080fd5b5061042b6115de565b3480156105e757600080fd5b506103816105f6366004613553565b6116d4565b34801561060757600080fd5b5061038160105481565b34801561061d57600080fd5b5061040961062c36600461350d565b611775565b34801561063d57600080fd5b506103d161064c366004613553565b6117b6565b61040961065f3660046135a4565b61182d565b34801561067057600080fd5b5061038161067f366004613553565b601c6020526000908152604090205481565b34801561069d57600080fd5b506103816106ac36600461321e565b611a2f565b3480156106bd57600080fd5b50610409611ab6565b3480156106d257600080fd5b50610381601f5481565b3480156106e857600080fd5b506023546103d1906001600160a01b031681565b34801561070857600080fd5b506024546103d1906001600160a01b031681565b34801561072857600080fd5b506104096107373660046133ae565b611aec565b34801561074857600080fd5b5061042b61075736600461321e565b611b9e565b610409611c73565b34801561077057600080fd5b506000546001600160a01b03166103d1565b34801561078e57600080fd5b5061038161079d366004613553565b601d6020526000908152604090205481565b3480156107bb57600080fd5b50610381601b5481565b3480156107d157600080fd5b506103a4611cc1565b3480156107e657600080fd5b506104096107f5366004613553565b611cd0565b34801561080657600080fd5b50610381611fdf565b34801561081b57600080fd5b5061042b612036565b34801561083057600080fd5b5061040961083f366004613352565b612126565b34801561085057600080fd5b5061040961085f3660046132d5565b6121eb565b34801561087057600080fd5b5061089d61087f36600461321e565b6001600160a01b03166000908152600f602052604090205460ff1690565b60405160ff909116815260200161034b565b3480156108bb57600080fd5b506103a46108ca366004613553565b61221d565b3480156108db57600080fd5b506104096108ea366004613583565b612251565b3480156108fb57600080fd5b5061038161090a366004613553565b6000908152601d602052604090205490565b34801561092857600080fd5b506103a4612618565b34801561093d57600080fd5b5061033f61094c36600461325d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561098657600080fd5b50610409612627565b34801561099b57600080fd5b506104096109aa36600461321e565b612665565b60006001600160e01b0319821663780e9d6360e01b14806109d457506109d482612700565b92915050565b6060600180546109e990613928565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1590613928565b8015610a625780601f10610a3757610100808354040283529160200191610a62565b820191906000526020600020905b815481529060010190602001808311610a4557829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610aea5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b11826117b6565b9050806001600160a01b0316836001600160a01b03161415610b7f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ae1565b336001600160a01b0382161480610b9b5750610b9b813361094c565b610c0d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ae1565b610c178383612750565b505050565b600c54604051632118854760e21b81526001600160a01b038381166004830152606092600092911690638462151c9060240160006040518083038186803b158015610c6657600080fd5b505afa158015610c7a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ca2919081019061342d565b80519091506000805b82811015610d1c576000848281518110610cd557634e487b7160e01b600052603260045260246000fd5b60200260200101519050601c60008281526020019081526020016000205460001415610d095782610d058161395d565b9350505b5080610d148161395d565b915050610cab565b5060008167ffffffffffffffff811115610d4657634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d6f578160200160208202803683370190505b5090506000915060005b83811015610e3757601c6000868381518110610da557634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205460001415610e2557848181518110610de457634e487b7160e01b600052603260045260246000fd5b6020026020010151828481518110610e0c57634e487b7160e01b600052603260045260246000fd5b602090810291909101015282610e218161395d565b9350505b80610e2f8161395d565b915050610d79565b5095945050505050565b602054610100900460ff16610ea45760405162461bcd60e51b8152602060048201526024808201527f53616c65206d7573742062652061637469766520746f206d696e74204f63746f6044820152632432b23d60e11b6064820152608401610ae1565b6000601a54601754610eb69190613877565b905060008211610f085760405162461bcd60e51b815260206004820152601760248201527f6e65656420746f206d696e74206174206c6561737420310000000000000000006044820152606401610ae1565b6002821115610f655760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656044820152631959195960e21b6064820152608401610ae1565b81601e54610f7391906138a3565b341015610fb75760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610ae1565b60115482601a54610fc89190613877565b11156110165760405162461bcd60e51b815260206004820152601e60248201527f726571756573742065786365656473206d6178206d696e7420636f756e7400006044820152606401610ae1565b601054600954111561103a5760405162461bcd60e51b8152600401610ae190613792565b60c861104533611a2f565b61104f9084613877565b11156110b25760405162461bcd60e51b815260206004820152602c60248201527f43616e27742068617665206d6f7265207468616e20323030204f63746f48656460448201526b1e881c195c881dd85b1b195d60a21b6064820152608401610ae1565b60005b82811015610c17576110d0336110cb8385613877565b6127be565b601a80549060006110e08361395d565b919050555080806110f09061395d565b9150506110b5565b6000546001600160a01b031633146111225760405162461bcd60e51b8152600401610ae1906137c0565b602380546001600160a01b039092166001600160a01b0319928316811790915560248054909216179055565b61115833826127d8565b6111745760405162461bcd60e51b8152600401610ae1906137f5565b610c178383836128cf565b600061118a83611a2f565b82106111ec5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610ae1565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b600e54604051632118854760e21b81526001600160a01b038381166004830152606092600092911690638462151c9060240160006040518083038186803b15801561125f57600080fd5b505afa158015611273573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261129b919081019061342d565b80519091506000805b828110156113155760008482815181106112ce57634e487b7160e01b600052603260045260246000fd5b60200260200101519050601d6000828152602001908152602001600020546000141561130257826112fe8161395d565b9350505b508061130d8161395d565b9150506112a4565b5060008167ffffffffffffffff81111561133f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611368578160200160208202803683370190505b5090506000915060005b83811015610e3757601d600086838151811061139e57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020546000141561141e578481815181106113dd57634e487b7160e01b600052603260045260246000fd5b602002602001015182848151811061140557634e487b7160e01b600052603260045260246000fd5b60209081029190910101528261141a8161395d565b9350505b806114288161395d565b915050611372565b6000546001600160a01b0316331461145a5760405162461bcd60e51b8152600401610ae1906137c0565b6020805461ff001981166101009182900460ff1615909102179055565b610c17838383604051806020016040528060008152506121eb565b6000546001600160a01b031633146114bc5760405162461bcd60e51b8152600401610ae1906137c0565b6000601b546015546114ce9190613877565b90506096826114dc60095490565b6114e69190613877565b11156115345760405162461bcd60e51b815260206004820152601760248201527f45786365656465642061697264726f7020737570706c790000000000000000006044820152606401610ae1565b602054610100900460ff161561158c5760405162461bcd60e51b815260206004820152601860248201527f53616c652068617320616c7265616479207374617274656400000000000000006044820152606401610ae1565b60005b82811015610c17576115b66115ac6000546001600160a01b031690565b6110cb8385613877565b601b80549060006115c68361395d565b919050555080806115d69061395d565b91505061158f565b6060600060125467ffffffffffffffff81111561160b57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611634578160200160208202803683370190505b50905060005b6012548110156116ce576000818152601c602052604090205460011461168c578082828151811061167b57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506116bc565b6012548282815181106116af57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b806116c68161395d565b91505061163a565b50919050565b60006116df60095490565b82106117425760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610ae1565b6009828154811061176357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000546001600160a01b0316331461179f5760405162461bcd60e51b8152600401610ae1906137c0565b80516117b2906021906020840190613117565b5050565b6000818152600360205260408120546001600160a01b0316806109d45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ae1565b6000601a5460175461183f9190613877565b60205490915060ff1661188a5760405162461bcd60e51b81526020600482015260136024820152725072652053616c65206e6f742061637469766560681b6044820152606401610ae1565b336000908152600f602052604090205460ff90811690831611156118fa5760405162461bcd60e51b815260206004820152602160248201527f4578636565646564206d617820617661696c61626c65207065722077616c6c656044820152601d60fa1b6064820152608401610ae1565b8160ff16601e5461190b91906138a3565b34101561194f5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610ae1565b6011548260ff16601a546119639190613877565b11156119b15760405162461bcd60e51b815260206004820152601e60248201527f726571756573742065786365656473206d6178206d696e7420636f756e7400006044820152606401610ae1565b336000908152600f6020526040812080548492906119d390849060ff166138d9565b92506101000a81548160ff021916908360ff16021790555060005b8260ff16811015610c1757611a07336110cb8385613877565b601a8054906000611a178361395d565b91905055508080611a279061395d565b9150506119ee565b60006001600160a01b038216611a9a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ae1565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314611ae05760405162461bcd60e51b8152600401610ae1906137c0565b611aea6000612a7a565b565b6000546001600160a01b03163314611b165760405162461bcd60e51b8152600401610ae1906137c0565b60005b82811015611b985781600f6000868685818110611b4657634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611b5b919061321e565b6001600160a01b031681526020810191909152604001600020805460ff191660ff9290921691909117905580611b908161395d565b915050611b19565b50505050565b60606000611bab83611a2f565b905080611bcc5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115611bf557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611c1e578160200160208202803683370190505b50905060005b82811015611bc457611c36858261117f565b828281518110611c5657634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611c6b8161395d565b915050611c24565b6000546001600160a01b03163314611c9d5760405162461bcd60e51b8152600401610ae1906137c0565b60405133904780156108fc02916000818181858888f19350505050611aea57600080fd5b6060600280546109e990613928565b6000818152601c60205260409081902054600b5491516331a9108f60e11b815260048101849052909133916001600160a01b0390911690636352211e9060240160206040518083038186803b158015611d2857600080fd5b505afa158015611d3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d609190613241565b6001600160a01b031614611db65760405162461bcd60e51b815260206004820152601e60248201527f4d757374206f776e20746865207370656369666963204f63746f4865647a00006044820152606401610ae1565b8015611dfa5760405162461bcd60e51b81526020600482015260136024820152721d1bdad95b9cc8185b1c9958591e481d5cd959606a1b6044820152606401610ae1565b601554821115611e3e5760405162461bcd60e51b815260206004820152600f60248201526e4d7573742062652047656e6573697360881b6044820152606401610ae1565b6010546009541115611e625760405162461bcd60e51b8152600401610ae190613792565b601f54602480546040516370a0823160e01b81523360048201526001600160a01b03909116916370a08231910160206040518083038186803b158015611ea757600080fd5b505afa158015611ebb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611edf919061356b565b1015611f2d5760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f206e6f74206861766520656e6f75676820494e4b7a21000000006044820152606401610ae1565b60248054601f54604051632770a7eb60e21b8152336004820152928301526001600160a01b031690639dc29fac90604401600060405180830381600087803b158015611f7857600080fd5b505af1158015611f8c573d6000803e3d6000fd5b5050506000838152601c60205260408120805460019350909190611fb1908490613877565b90915550611fc69050336110cb846001613877565b60188054906000611fd68361395d565b91905055505050565b6000601054611fed60095490565b1061202f5760405162461bcd60e51b8152602060048201526012602482015271125b9d985cda5bdb881a185cc8195b99195960721b6044820152606401610ae1565b50601e5490565b6060600060135467ffffffffffffffff81111561206357634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561208c578160200160208202803683370190505b50905060005b6013548110156116ce576000818152601c60205260409020546001146120e457808282815181106120d357634e487b7160e01b600052603260045260246000fd5b602002602001018181525050612114565b60135482828151811061210757634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b8061211e8161395d565b915050612092565b6001600160a01b03821633141561217f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ae1565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6121f533836127d8565b6122115760405162461bcd60e51b8152600401610ae1906137f5565b611b9884848484612aca565b6060602161222a83612afd565b60405160200161223b929190613606565b6040516020818303038152906040529050919050565b6000828152601d602052604080822054838352912054828414156122a45760405162461bcd60e51b815260206004820152600a60248201526929b0b6b2903a37b5b2b760b11b6044820152606401610ae1565b600d546040516331a9108f60e11b81526004810186905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156122e857600080fd5b505afa1580156122fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123209190613241565b6001600160a01b03161480156123b85750600d546040516331a9108f60e11b81526004810185905233916001600160a01b031690636352211e9060240160206040518083038186803b15801561237557600080fd5b505afa158015612389573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123ad9190613241565b6001600160a01b0316145b6123f65760405162461bcd60e51b815260206004820152600f60248201526e2737ba103a37b5b2b71037bbb732b960891b6044820152606401610ae1565b81158015612402575080155b6124445760405162461bcd60e51b81526020600482015260136024820152721d1bdad95b9cc8185b1c9958591e481d5cd959606a1b6044820152606401610ae1565b6000848152601d60205260408120805460019290612463908490613877565b90915550506000838152601d60205260408120805460019290612487908490613877565b909155505060105460095411156124b05760405162461bcd60e51b8152600401610ae190613792565b601f54602480546040516370a0823160e01b81523360048201526001600160a01b03909116916370a08231910160206040518083038186803b1580156124f557600080fd5b505afa158015612509573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061252d919061356b565b101561257b5760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f206e6f74206861766520656e6f75676820494e4b7a21000000006044820152606401610ae1565b60248054601f54604051632770a7eb60e21b8152336004820152928301526001600160a01b031690639dc29fac90604401600060405180830381600087803b1580156125c657600080fd5b505af11580156125da573d6000803e3d6000fd5b5050505060006019546016546125f09190613877565b90506125fc33826127be565b6019805490600061260c8361395d565b91905055505050505050565b6060602280546109e990613928565b6000546001600160a01b031633146126515760405162461bcd60e51b8152600401610ae1906137c0565b6020805460ff19811660ff90911615179055565b6000546001600160a01b0316331461268f5760405162461bcd60e51b8152600401610ae1906137c0565b6001600160a01b0381166126f45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ae1565b6126fd81612a7a565b50565b60006001600160e01b031982166380ac58cd60e01b148061273157506001600160e01b03198216635b5e139f60e01b145b806109d457506301ffc9a760e01b6001600160e01b03198316146109d4565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612785826117b6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6117b2828260405180602001604052806000815250612c17565b6000818152600360205260408120546001600160a01b03166128515760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ae1565b600061285c836117b6565b9050806001600160a01b0316846001600160a01b031614806128975750836001600160a01b031661288c84610a6c565b6001600160a01b0316145b806128c757506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166128e2826117b6565b6001600160a01b03161461294a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610ae1565b6001600160a01b0382166129ac5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ae1565b6129b7838383612c4a565b6129c2600082612750565b6001600160a01b03831660009081526004602052604081208054600192906129eb9084906138c2565b90915550506001600160a01b0382166000908152600460205260408120805460019290612a19908490613877565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612ad58484846128cf565b612ae184848484612d02565b611b985760405162461bcd60e51b8152600401610ae190613740565b606081612b215750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b4b5780612b358161395d565b9150612b449050600a8361388f565b9150612b25565b60008167ffffffffffffffff811115612b7457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612b9e576020820181803683370190505b5090505b84156128c757612bb36001836138c2565b9150612bc0600a86613978565b612bcb906030613877565b60f81b818381518110612bee57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612c10600a8661388f565b9450612ba2565b612c218383612e0f565b612c2e6000848484612d02565b610c175760405162461bcd60e51b8152600401610ae190613740565b6001600160a01b038316612ca557612ca081600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612cc8565b816001600160a01b0316836001600160a01b031614612cc857612cc88382612f5d565b6001600160a01b038216612cdf57610c1781612ffa565b826001600160a01b0316826001600160a01b031614610c1757610c1782826130d3565b60006001600160a01b0384163b15612e0457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d469033908990889088906004016136ac565b602060405180830381600087803b158015612d6057600080fd5b505af1925050508015612d90575060408051601f3d908101601f19168201909252612d8d918101906134f1565b60015b612dea573d808015612dbe576040519150601f19603f3d011682016040523d82523d6000602084013e612dc3565b606091505b508051612de25760405162461bcd60e51b8152600401610ae190613740565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506128c7565b506001949350505050565b6001600160a01b038216612e655760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ae1565b6000818152600360205260409020546001600160a01b031615612eca5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ae1565b612ed660008383612c4a565b6001600160a01b0382166000908152600460205260408120805460019290612eff908490613877565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001612f6a84611a2f565b612f7491906138c2565b600083815260086020526040902054909150808214612fc7576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061300c906001906138c2565b6000838152600a60205260408120546009805493945090928490811061304257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806009838154811061307157634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806130b757634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006130de83611a2f565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b82805461312390613928565b90600052602060002090601f016020900481019282613145576000855561318b565b82601f1061315e57805160ff191683800117855561318b565b8280016001018555821561318b579182015b8281111561318b578251825591602001919060010190613170565b5061319792915061319b565b5090565b5b80821115613197576000815560010161319c565b600067ffffffffffffffff8311156131ca576131ca6139b8565b6131dd601f8401601f1916602001613846565b90508281528383830111156131f157600080fd5b828260208301376000602084830101529392505050565b803560ff8116811461321957600080fd5b919050565b60006020828403121561322f578081fd5b813561323a816139ce565b9392505050565b600060208284031215613252578081fd5b815161323a816139ce565b6000806040838503121561326f578081fd5b823561327a816139ce565b9150602083013561328a816139ce565b809150509250929050565b6000806000606084860312156132a9578081fd5b83356132b4816139ce565b925060208401356132c4816139ce565b929592945050506040919091013590565b600080600080608085870312156132ea578081fd5b84356132f5816139ce565b93506020850135613305816139ce565b925060408501359150606085013567ffffffffffffffff811115613327578182fd5b8501601f81018713613337578182fd5b613346878235602084016131b0565b91505092959194509250565b60008060408385031215613364578182fd5b823561336f816139ce565b91506020830135801515811461328a578182fd5b60008060408385031215613395578182fd5b82356133a0816139ce565b946020939093013593505050565b6000806000604084860312156133c2578283fd5b833567ffffffffffffffff808211156133d9578485fd5b818601915086601f8301126133ec578485fd5b8135818111156133fa578586fd5b8760208260051b850101111561340e578586fd5b6020928301955093506134249186019050613208565b90509250925092565b6000602080838503121561343f578182fd5b825167ffffffffffffffff80821115613456578384fd5b818501915085601f830112613469578384fd5b81518181111561347b5761347b6139b8565b8060051b915061348c848301613846565b8181528481019084860184860187018a10156134a6578788fd5b8795505b838610156134c85780518352600195909501949186019186016134aa565b5098975050505050505050565b6000602082840312156134e6578081fd5b813561323a816139e3565b600060208284031215613502578081fd5b815161323a816139e3565b60006020828403121561351e578081fd5b813567ffffffffffffffff811115613534578182fd5b8201601f81018413613544578182fd5b6128c7848235602084016131b0565b600060208284031215613564578081fd5b5035919050565b60006020828403121561357c578081fd5b5051919050565b60008060408385031215613595578182fd5b50508035926020909101359150565b6000602082840312156135b5578081fd5b61323a82613208565b600081518084526135d68160208601602086016138fc565b601f01601f19169290920160200192915050565b600081516135fc8185602086016138fc565b9290920192915050565b600080845482600182811c91508083168061362257607f831692505b602080841082141561364257634e487b7160e01b87526022600452602487fd5b818015613656576001811461366757613693565b60ff19861689528489019650613693565b60008b815260209020885b8681101561368b5781548b820152908501908301613672565b505084890196505b5050505050506136a381856135ea565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136df908301846135be565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561372157835183529284019291840191600101613705565b50909695505050505050565b60208152600061323a60208301846135be565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601490820152734578636565647320546f74616c20537570706c7960601b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561386f5761386f6139b8565b604052919050565b6000821982111561388a5761388a61398c565b500190565b60008261389e5761389e6139a2565b500490565b60008160001904831182151516156138bd576138bd61398c565b500290565b6000828210156138d4576138d461398c565b500390565b600060ff821660ff8416808210156138f3576138f361398c565b90039392505050565b60005b838110156139175781810151838201526020016138ff565b83811115611b985750506000910152565b600181811c9082168061393c57607f821691505b602082108114156116ce57634e487b7160e01b600052602260045260246000fd5b60006000198214156139715761397161398c565b5060010190565b600082613987576139876139a2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146126fd57600080fd5b6001600160e01b0319811681146126fd57600080fdfea2646970667358221220c097cd51f5749244153679d090fabdef677406ab9cc5eeeeed61d5fba69bc0c264736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d4e7046433235667158656343533572646a3575357178544857634a346748316a327863704d507251765848762f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d55346f64616e55706a5068423271685a51626b69356a71547779744b315865776a78515137576834336e50592f00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseTokenURI (string): https://ipfs.io/ipfs/QmNpFC25fqXecCS5rdj5u5qxTHWcJ4gH1j2xcpMPrQvXHv/
Arg [1] : baseContractURI (string): https://ipfs.io/ipfs/QmU4odanUpjPhB2qhZQbki5jqTwytK1XewjxQQ7Wh43nPY/

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [3] : 68747470733a2f2f697066732e696f2f697066732f516d4e7046433235667158
Arg [4] : 656343533572646a3575357178544857634a346748316a327863704d50725176
Arg [5] : 5848762f00000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [7] : 68747470733a2f2f697066732e696f2f697066732f516d55346f64616e55706a
Arg [8] : 5068423271685a51626b69356a71547779744b315865776a7851513757683433
Arg [9] : 6e50592f00000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.