ETH Price: $3,992.25 (+3.33%)

Token

MarsGenesisMartians (MRTN)
 

Overview

Max Total Supply

2,354 MRTN

Holders

887

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 MRTN
0xe775de7c8D1492ADE97622f2060D53d1E1c5B652
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The Martians is a collection of 10,000 unique 3D characters with proof of ownership stored on the Ethereum blockchain. The NFT contract that governs ownership is a standard ERC-721 that works with any compatible service or exchange.

# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
MarsGenesisMartiansCore

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 22 : MarsGenesisMartiansCore.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ERC721Full.sol";
import "./MarsGenesisMartiansAuction.sol";
import "./MarsGenesisMartiansWallet.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

/// @title MarsGenesis Martians main ERC721 contract
/// @author MarsGenesis (@DarthCryptoPepe)
/// @notice Encapsulates the ERC721 methods and main features of MarsGenesis Martians
contract MarsGenesisMartiansCore is ERC721Full {

    using Counters for Counters.Counter;

    /// @dev IPFS image containing the 10,000 martians
    string public constant ALL_MARTIANS = "ipfs://QmTCXS2i632kcYgMoVrgNydb9o39Hzt7H9WG3TBXTmaAGq";

    /// @dev Maximum number of public minted martians
    uint16 private constant MAX_MARTIANS = 10000;

    /// @dev Number of reserved martians for the pre-release land owners (initial is 10,000)
    uint16 private _reservedMartians = 10000;

    /// @dev Interface for auction contract
    // bytes4 private constant InterfaceSignature_MarsGenesisMartiansAuction =
    //         bytes4(keccak256('martianIdIsForSale(uint256 tokenId)')) ^
    //         bytes4(keccak256('martianNoLongerForSale(uint256)'));

    /// @dev Martian ID tracker
    Counters.Counter private _tokenIdTracker;

    /// @dev Address of the deployer account
    address private _deployerAddress;

    /// @dev Auction contract address
    MarsGenesisMartiansAuction private _auctionContract;

    /// @dev Wallet contract address
    MarsGenesisMartiansWallet private _walletContract;

    /// @dev MarsGenesisCore lands contract address
    ERC721 private _marsGenesisCoreContract;
    

    /*** EVENTS ***/

    /// @dev The Discovery event is fired whenever a new martian comes into existence.
    event Discovery(address _owner, uint256 _tokenId, uint256 _martianId, uint256 _landId);
    
    
    /*** MARTIANS ***/

    /// @dev A mapping containing the Martian IDs for all martians in existence
    mapping(uint => uint) public tokenToMartianId;

    /// @dev A mapping to keep track of martianIds minted
    mapping(uint => bool) private _mintedIds;

    /// @dev A mapping to keep track redeemed lands
    mapping(uint256 => bool) public landTokenIdRedeemed;
    
    /*** INIT ***/

    /// @notice Inits the main MarsGenesisMartians contract ERC721 compatible
    /// @dev Contract starts paused. An admin needs to unpause to allow any transfer of martians
    constructor(address payable _walletAddress, address _marsCoreAddress) ERC721Full("MarsGenesisMartians", "MRTN") {
        _deployerAddress = msg.sender;
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);

        _walletContract = MarsGenesisMartiansWallet(_walletAddress);
        _marsGenesisCoreContract = ERC721(_marsCoreAddress);

        pause();
    }

    /*** EXTERNAL ***/

    /// @notice Mints multiple new martians
    /// @dev The method includes a signature that was provided by the MarsGenesis backend, to ensure data integrity
    /// @param signatures The signatures provided by the backend to ensure data integrity
    /// @param martianIds The IDs of the martians to be minted
    /// @param landTokenIds The IDs of the MarsGenesis parcels to be redeemed
    /// @param promoOwner Any promo martian address
    /// @return true
    function mintMartians(bytes[] memory signatures, uint[] memory martianIds, uint[] memory landTokenIds, address promoOwner) external payable returns (bool) {                
        uint total = martianIds.length;
        require(landTokenIds.length <= total, "F");

        if (landTokenIds.length > 0) {
            require(_reservedMartians >= uint16(landTokenIds.length));
            
            for(uint i = 0; i < total; i++) {
                require(_marsGenesisCoreContract.ownerOf(landTokenIds[i]) == msg.sender || (msg.sender == _deployerAddress && _marsGenesisCoreContract.ownerOf(landTokenIds[i]) == promoOwner), "E");
                require(landTokenIdRedeemed[landTokenIds[i]] == false, "D");
                landTokenIdRedeemed[landTokenIds[i]] = true;
            }
            _reservedMartians -= uint16(landTokenIds.length);
        }

        require(_tokenIdTracker.current() + total + _reservedMartians <= MAX_MARTIANS, "MAX");

        address martianOwner;
        if (hasRole(DEFAULT_ADMIN_ROLE, _msgSender())) {
            martianOwner = promoOwner;
        } else {
            require(msg.value >= 0.08 ether * (total - landTokenIds.length), "$");
            martianOwner = _msgSender();
        }

        for(uint i = 0; i < total; i++) {
            require(_mintedIds[martianIds[i]] == false, "C");

            bytes32 hash = keccak256(abi.encodePacked(address(this), martianIds[i], msg.sender));
            address signer = _recoverSigner(hash, signatures[i]);
            require(signer == _deployerAddress, "SGN");

            uint newTokenId = _mintMartian(martianOwner, martianIds[i]);

            if (i < landTokenIds.length) {
                emit Discovery(martianOwner, newTokenId, martianIds[i], landTokenIds[i]);
            } else {
                emit Discovery(martianOwner, newTokenId, martianIds[i], 10001);
            }
        }
        
        return true;
    }

    /// @notice Sets a martian for sale
    /// @dev Gets approval for the contract to do so
    /// @param tokenId The id of the martian
    /// @param minSalePriceInWei The minimum price for the sale, in Wei
    function offerMartianForSale(uint tokenId, uint minSalePriceInWei) external {
        approve(address(_auctionContract), tokenId);
        _auctionContract.offerMartianForSale(tokenId, minSalePriceInWei);
    }

    /// @notice Accepts a bid for a martian
    /// @dev Gets approval for the contract to do so
    /// @param tokenId The id of the martian
    /// @param minPrice The minimum accepted price, in Wei
    function acceptBidForMartian(uint tokenId, uint minPrice) external {
        approve(address(_auctionContract), tokenId);
        _auctionContract.acceptBidForMartian(tokenId, minPrice);
    }

    /// @notice Retrieves the tokenURI for a given martian
    /// @param tokenId The id of the martian
    /// @return string The martian's metadata URI
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        return string(abi.encodePacked("ipfs://QmSqdF2Wdmn6Skme3RtgkGSQnGyX6irdbR1TSNACYJbJL5/", _intToString(tokenToMartianId[tokenId])));
    }

    /// Deployer methods

    /// @notice Sends free balance to the main wallet 
    /// @dev Only callable by the deployer
    function sendBalanceToWallet() external { 
        require(msg.sender == _deployerAddress);        
        (bool success,) = address(_walletContract).call{value: address(this).balance}("");
        require(success);
    }

    /// @notice Updates the auction contract address
    /// @param _address The address of the auction contract
    /// @dev Only callable by admin
    function setAuctionAddress(address _address) external {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()));
        _auctionContract = MarsGenesisMartiansAuction(_address);
    }

    /// @notice Updates the wallet contract address
    /// @param _address The address of the wallet contract
    /// @dev Only callable by admin
    function setWalletAddress(address payable _address) external {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()));
        _walletContract = MarsGenesisMartiansWallet(_address);
    }

    /// @notice Updates the martians reserve
    /// @param amount The amount of pending martians reserved
    /// @dev Only callable by admin
    function setReservedMartiansAmount(uint16 amount) external {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()));
        _reservedMartians = amount;
    }

    /// @notice Returns the URI of the contract metadata
    /// @return URI of contract metadata
    function contractURI() public pure returns (string memory) {
        return "https://marsgenesis-web3.herokuapp.com/metadata/MarsGenesisMartians.json";
    }

    function owner() public view virtual returns (address) {
        return _deployerAddress;
    }

    /*** INTERNAL ***/

    function _mintMartian(address to, uint martianId) private returns (uint) {
        uint newTokenId = _tokenIdTracker.current();
        _mint(to, newTokenId);
        _tokenIdTracker.increment();

        tokenToMartianId[newTokenId] = martianId;
        _mintedIds[martianId] = true;

        return newTokenId;
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721Full) {
      super._beforeTokenTransfer(from, to, tokenId);

      require(address(_auctionContract) != address(0), "B");
      if(_auctionContract.martianIdIsForSale(tokenId)) {
          _auctionContract.martianNoLongerForSale(tokenId);
      }
    }

    /// Signing helpers

    function _recoverSigner(bytes32 _message, bytes memory _sig) private pure returns (address) {
       uint8 v;
       bytes32 r;
       bytes32 s;

       (v, r, s) = _splitSignature(_sig);
       return ecrecover(_message, v, r, s);
    }

    function _splitSignature(bytes memory _sig) private pure returns (uint8, bytes32, bytes32) {
        require(_sig.length == 65);
        
        bytes32 r;
        bytes32 s;
        uint8 v;

        assembly {
            r := mload(add(_sig, 32))
            s := mload(add(_sig, 64))
            v := byte(0, mload(add(_sig, 96)))
        }
        return (v, r, s);
    }

    function _intToString(uint256 value) private pure returns (string memory) {
        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);
    }
}

File 2 of 22 : ERC721Full.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";

contract ERC721Full is Context, AccessControlEnumerable, ERC721, ERC721Enumerable, ERC721Pausable {

    /*** INIT ***/

    constructor(string memory name, string memory symbol) ERC721(name, symbol) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
    }

    /*** METHODS ***/

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable, ERC721Pausable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function pause() public {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "INVALID_ROLE");
        _pause();
    }

    function unpause() public {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "INVALID_ROLE");
        _unpause();
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }
}

File 3 of 22 : MarsGenesisMartiansAuction.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./MarsGenesisMartiansAuctionBase.sol";


/// @title MarsGenesis Martians Auction Contract
/// @author MarsGenesis
/// @notice You can use this contract to buy, sell and bid on MarsGenesis martians
contract MarsGenesisMartiansAuction is MarsGenesisMartiansAuctionBase {

    /// @dev Address of the tax wallet
    address private _taxWallet;

    /// @notice Inits the contract 
    /// @param _erc721Address The address of the main MarsGenesis contract
    /// @param _walletAddress The address of the wallet of MarsGenesis contract
    /// @param _cut The contract owner tax on sales
    /// @param taxWallet The address for the tax on sales
    constructor (address _erc721Address, address payable _walletAddress, uint256 _cut, address taxWallet) MarsGenesisMartiansAuctionBase(_erc721Address, _walletAddress, _cut) {
        _taxWallet = taxWallet;
    }

    /*** EXTERNAL ***/

    /// @notice Enters a bid for a specific martian (payable)
    /// @dev If there was a previous (lower) bid, it removes it and adds its amount to pending withdrawals. 
    /// On success, it emits the MartianBidEntered event.
    /// @param tokenId The id of the martian to bet upon
    function enterBidForMartian(uint tokenId) external payable {
        require(nonFungibleContract.ownerOf(tokenId) != address(0), "Martian not yet owned");
        require(nonFungibleContract.ownerOf(tokenId) != msg.sender, "You already own the martian");
        require(msg.value > 0, "Amount must be > 0");
        
        Bid memory existing = martianIdToBids[tokenId];
        require(msg.value > existing.value, "Amount must be > than existing bid");

        if (existing.value > 0) {
            // Refund the previous bid
            addressToPendingWithdrawal[existing.bidder] += existing.value;
        }
        martianIdToBids[tokenId] = Bid(true, tokenId, msg.sender, msg.value);
        emit MartianBidEntered(tokenId, msg.value, msg.sender);
    }

    /// @notice Buys a martian for a specific price (payable)
    /// @dev The martian must be for sale before other user calls this method. If the same user had the higher bid before, it gets refunded into the pending withdrawals. On success, emits the MartianBought event. Executes a ERC721 safeTransferFrom
    /// @param tokenId The id of the martian to be bought
    function buyMartian(uint tokenId) external payable {
        require(msg.sender != nonFungibleContract.ownerOf(tokenId), "You cant buy your own martian");
        
        Offer memory offer = martianIdToOfferForSale[tokenId];
        require(offer.isForSale, "Item is not for sale");
        require(offer.seller == nonFungibleContract.ownerOf(tokenId), "Seller is no longer the owner of the item");
        require(msg.value >= offer.minValue, "Not enough balance");

        address seller = offer.seller;

        nonFungibleContract.safeTransferFrom(seller, msg.sender, tokenId);

        // 5% tax
        uint taxAmount = msg.value * ownerCut / 100;
        uint netAmount = msg.value - taxAmount;

        addressToPendingWithdrawal[seller] += netAmount;
        addressToPendingWithdrawal[_taxWallet] += taxAmount;
        
        emit MartianBought(tokenId, msg.value, seller, msg.sender);

        // Check for the case where there is a bid from the new owner and refund it.
        // Any other bid can stay in place.
        Bid memory bid = martianIdToBids[tokenId];
        if (bid.bidder == msg.sender) {
            addressToPendingWithdrawal[msg.sender] += bid.value;
            martianIdToBids[tokenId] = Bid(false, tokenId, address(0), 0);
        }
    }

    /// @notice Offers a martian that ones own for sale for a min price
    /// @dev On success, emits the event MartianOffered
    /// @param tokenId The id of the martian to put for sale
    /// @param minSalePriceInWei The minimum price of the martian (Wei)
    function offerMartianForSale(uint tokenId, uint minSalePriceInWei) external {
        require(msg.sender == address(nonFungibleContract), "Use MarsContractBase:offerMartianForSale instead");
        require(nonFungibleContract.ownerOf(tokenId) == msg.sender || nonFungibleContract.getApproved(tokenId) == address(this), "Only owner can add item from sale");

        martianIdToOfferForSale[tokenId] = Offer(true, tokenId, nonFungibleContract.ownerOf(tokenId), minSalePriceInWei);

        emit MartianOffered(tokenId, minSalePriceInWei, nonFungibleContract.ownerOf(tokenId));
    }

    /// @notice Sends free balance to the main wallet 
    /// @dev Only callable by the deployer
    function sendBalanceToWallet() external { 
        require(msg.sender == _deployerAddress, "INVALID_ROLE");
        require(ownerBalance > 0, "No Balance to send");
        uint amount = ownerBalance;
        ownerBalance = 0;
        
        (bool success,) = address(walletContract).call{value: amount}("");
        require(success);
    }

    /// @notice Users can withdraw their available balance
    /// @dev Avoids reentrancy
    function withdraw() external { 
        uint amount = addressToPendingWithdrawal[msg.sender];
        addressToPendingWithdrawal[msg.sender] = 0;
        payable(msg.sender).transfer(amount);
    }

    /// @notice Sets the wallet for the design %
    /// @dev Only callable by the deployer
    function setTaxWallet(address taxWallet) external { 
        require(msg.sender == _deployerAddress, "INVALID_ROLE");
        _taxWallet = taxWallet;
    }

    /// @notice Owner of a martian can accept a bid for its martian
    /// @dev Only callable by the main contract. On success, emits the event MartianBought. Disccounts the contract tax (cut) from the final price. Executes a ERC721 safeTransferFrom
    /// @param tokenId The id of the martian
    /// @param minPrice The minimum price of the martian
    function acceptBidForMartian(uint tokenId, uint minPrice) external {
        require(msg.sender == address(nonFungibleContract), "Use MarsContractBase:acceptBidForMartian instead");
        require(nonFungibleContract.ownerOf(tokenId) == msg.sender || nonFungibleContract.getApproved(tokenId) == address(this), "Sender is not owner");
        
        address seller = nonFungibleContract.ownerOf(tokenId);
        Bid memory bid = martianIdToBids[tokenId];

        require(bid.value > 0, "Value must be > 0");
        require(bid.value >= minPrice, "Value < minPrice");

        nonFungibleContract.safeTransferFrom(seller, bid.bidder, tokenId);

        uint amount = bid.value;
        martianIdToBids[tokenId] = Bid(false, tokenId, address(0), 0);

        // 5% tax
        uint taxAmount = amount * ownerCut / 100;
        uint netAmount = amount - taxAmount;

        addressToPendingWithdrawal[seller] += netAmount;
        addressToPendingWithdrawal[_taxWallet] += taxAmount;

        emit MartianBought(tokenId, bid.value, seller, bid.bidder);
    }

    /// @notice Users can withdraw their own bid for a specific martian
    /// @dev The bid amount is automatically transfered back to the user. Emits MartianBidWithdrawn event. Avoids reentrancy.
    /// @param tokenId The id of the martian that had the bid on
    function withdrawBidForMartian(uint tokenId) external {
        require(nonFungibleContract.ownerOf(tokenId) != address(0), "Sender cant be 0x0");
        require(nonFungibleContract.ownerOf(tokenId) != msg.sender, "Sender cant be the owner");
        
        Bid memory bid = martianIdToBids[tokenId];
        require(bid.bidder == msg.sender, "Only bidder can withdraw their bid");

        uint amount = bid.value;

        martianIdToBids[tokenId] = Bid(false, tokenId, address(0), 0);
        payable(msg.sender).transfer(amount);
        emit MartianBidWithdrawn(tokenId, bid.value, msg.sender);
    }

    /// @notice Updates the wallet contract address    
    /// @param _address The address of the wallet contract
    /// @dev Only callable by deployer
    function setWalletAddress(address payable _address) external {
        require(msg.sender == _deployerAddress, "INVALID_ROLE");
        MarsGenesisMartiansWallet candidateContract = MarsGenesisMartiansWallet(_address);
        walletContract = candidateContract;
    }


    /*** PUBLIC ***/

    /// @notice Checks if a martian is for sale
    /// @param tokenId The id of the martian to check
    /// @return boolean, true if the martian is for sale
    function martianIdIsForSale(uint256 tokenId) public view returns(bool) {
        return martianIdToOfferForSale[tokenId].isForSale;
    }

    /// @notice Puts a martian no longer for sale
    /// @dev Callable only by the main contract or the owner of a martian. Emits the event MartianNoLongerForSale
    /// @param tokenId The id of the martian
    function martianNoLongerForSale(uint tokenId) public {
        require(nonFungibleContract.ownerOf(tokenId) == msg.sender || nonFungibleContract.getApproved(tokenId) == address(this), "Only owner can remove item from sale");
        martianIdToOfferForSale[tokenId] = Offer(false, tokenId, msg.sender, 0);
        emit MartianNoLongerForSale(tokenId, nonFungibleContract.ownerOf(tokenId));
    }
}

File 4 of 22 : MarsGenesisMartiansAuctionBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "./ERC721Full.sol";
import "./MarsGenesisMartiansWallet.sol";

/// @title MarsGenesis Martians Auction Base Contract
/// @author MarsGenesis
/// @notice Serves as the base for MarsGenesisMartiansAuction contract
contract MarsGenesisMartiansAuctionBase is ERC165 {

    /// @dev Interface signatures
    bytes4 constant InterfaceSignature_ERC721 = bytes4(0x80ac58cd);
    bytes4 constant InterfaceSignature_ERC721_Metadata = bytes4(0x5b5e139f);
    bytes4 constant InterfaceSignature_ERC721_Enumerable = bytes4(0x780e9d63);
    bytes4 constant InterfaceSignature_MarsGenesisMartiansAuction =
        bytes4(keccak256('martianIdIsForSale(uint256 tokenId)')) ^
        bytes4(keccak256('martianNoLongerForSale(uint256)'));

    /// @dev Contract owner balance
    uint public ownerBalance;

    /// @dev Contract owner tax on sales
    uint256 public ownerCut;

    /// @dev Reference to main contract that implements ERC721
    ERC721Full nonFungibleContract; 

    /// @dev Auction contract address
    MarsGenesisMartiansWallet walletContract;

    /// @dev Address of the deployer account
    address _deployerAddress;


    /// @notice Inits the contract 
    /// @dev The main contract should support specific interfaces
    /// @param _erc721Address The address of the main MarsGenesisMartians contract
    /// @param _walletAddress The address of the wallet of MarsGenesisMartians contract
    /// @param _cut The contract owner tax on sales
    constructor (address _erc721Address, address payable _walletAddress, uint256 _cut) {
        require(_cut <= 100, "INVALID_OWNER_CUT");
        ownerCut = _cut;

        _deployerAddress = msg.sender;

        ERC721Full candidateContract = ERC721Full(_erc721Address);
        
        require(candidateContract.supportsInterface(InterfaceSignature_ERC721), "ERC721 not supported");
        require(candidateContract.supportsInterface(InterfaceSignature_ERC721_Metadata), "ERC721Metadata not supported");
        require(candidateContract.supportsInterface(InterfaceSignature_ERC721_Enumerable), "ERC721Enumerable not supported");

        nonFungibleContract = candidateContract;
        walletContract = MarsGenesisMartiansWallet(_walletAddress);
    }
    

    /*** EVENTS ***/

    /// @dev Event fired when a martian is offered for sale
    event MartianOffered(uint indexed tokenId, uint minValue, address indexed from);

    /// @dev Event fired when a user bids on a martian
    event MartianBidEntered(uint indexed tokenId, uint value, address indexed from);

    /// @dev Event fired when a bid is withdrawn
    event MartianBidWithdrawn(uint indexed tokenId, uint value, address indexed from);

    /// @dev Event fired when a martian is bought via auctioning or direct sale
    event MartianBought(uint indexed tokenId, uint value, address indexed from, address indexed to);

    /// @dev Event fired when a martian is no longer for sale
    event MartianNoLongerForSale(uint indexed tokenId, address indexed from);
    

    /*** STORAGE ***/

    /// @dev The main Offer struct for auctioning
    struct Offer {
        bool isForSale;
        uint tokenId;
        address seller;
        uint minValue; 
    }

    /// @dev The main Bid struct for auctioning
    struct Bid {
        bool hasBid;
        uint tokenId;
        address bidder;
        uint value;
    }

    /// @dev A mapping of martians that are offered for sale at a specific minimum value
    mapping (uint => Offer) public martianIdToOfferForSale;

    /// @dev A mapping of the martianId to its highest bid
    mapping (uint => Bid) public martianIdToBids;

    /// @dev A mapping of address to their pending withdrawal
    mapping (address => uint) public addressToPendingWithdrawal;

    /*** ERC165 ***/

    /// @notice Checks for interface support
    /// @param interfaceId The interfaceId bytes
    /// @return bool, true or false for the support
    function supportsInterface(bytes4 interfaceId) public override pure returns (bool) {
        return interfaceId == InterfaceSignature_MarsGenesisMartiansAuction;
    }
}

File 5 of 22 : MarsGenesisMartiansWallet.sol
///// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";

/// @title MarsGenesis Martians wallet contract
/// @author MarsGenesis
/// @dev Equity values are 0 to 10000 (representing 0 to 100 with decimals). So an equity of 3000 means 30%
/// @notice Encapsulates the wallet and cap table management
contract MarsGenesisMartiansWallet is AccessControlEnumerable {

    /// @dev Address of the deployer account
    address private _deployerAddress;

    
    /*** CAP TABLE ***/

    address[] private _founders;
    mapping(address => uint) public founderToEquity;
    mapping(address => FounderAuthorization[]) private _addressToFounderAuthorization;

    /// @dev A mapping of cxo address to their pending withdrawal
    mapping (address => uint) public addressToPendingWithdrawal;
    
    /// @dev The max shares being 100 represented by 10000 (to accept decimal positions)
    uint private constant TOTAL_CAP = 10000;

    struct FounderAuthorization {      
        address founder;
        uint equity;
        bool approved;
        bool isRemoval;
    }

    /*** INIT ***/
    /// @notice Inits the wallet
    /// @dev defines a initial cap table with specific equity per founder. Equity values 0 - 10000 representing 0-100% equity
    /// @param cxo1 founder 1     
    /// @param cxo2 founder 2
    /// @param cxo3 founder 3
    /// @param cdo1 founder 4
    /// @param cdo2 founder 5
    constructor (address cxo1, address cxo2, address cxo3, address cdo1, address cdo2) {
        _deployerAddress = msg.sender;
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);

        // Initial cap table
        createInitialFounder(cxo1, 3000);
        createInitialFounder(cxo2, 3000);
        createInitialFounder(cxo3, 3000);
        createInitialFounder(cdo1, 500);
        createInitialFounder(cdo2, 500);
    }

    /// @notice Inits the a initial founder.
    /// @dev Only callable once on contract construction
    /// @param founderAddress The address of a initial founder 
    /// @param equity The equity of the initial founder. Equity values 0 - 10000 representing 0-100% equity
    function createInitialFounder(address founderAddress, uint equity) private {
        require(msg.sender == _deployerAddress, "ONLY_DEPLOYER");
        require(equity <= TOTAL_CAP, "INVALID EQUITY (0-10000)");

        _founders.push(founderAddress);
        _setupRole(DEFAULT_ADMIN_ROLE, founderAddress);
        founderToEquity[founderAddress] = equity;
    }


    /*** PUBLIC ***/

    /// @notice Wallet should receive ether from MarsGenesisMartiansCore and MarsGenesisMartiansAuction
    /// @dev Ether received is splitted by equity among wallet founders
    receive() external payable {
        require(msg.value > 0, "INVALID_AMOUNT");
        _updatePendingWithdrawals(msg.value);
    }

    function authorize(bool approved, uint equity, address who) public {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "INVALID_ROLE");
        require(equity <= TOTAL_CAP, "INVALID EQUITY (0-10000)");
        require(equity >= 0, "INVALID EQUITY (0-10000)");

        FounderAuthorization[] storage auths = _addressToFounderAuthorization[who];
        bool exists = false;
        for (uint i = 0; i < auths.length; i++) {
            if (auths[i].founder == msg.sender) {
                exists = true;
                auths[i].equity = equity;
                auths[i].approved = approved;
                auths[i].isRemoval = false;
            }
        }

        if (!exists) {
            auths.push(FounderAuthorization({founder: msg.sender, equity: equity, approved: approved, isRemoval: false}));
        }
    }

    function revoke(bool approved, address who) public {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "INVALID_ROLE");

        FounderAuthorization[] storage auths = _addressToFounderAuthorization[who];
        bool exists = false;
        for (uint i = 0; i < auths.length; i++) {
            if (auths[i].founder == msg.sender) {
                exists = true;
                auths[i].equity = 0;
                auths[i].approved = approved;
                auths[i].isRemoval = true;
            }
        }

        if (!exists) {
            auths.push(FounderAuthorization({founder: msg.sender, equity: 0, approved: approved, isRemoval: true}));
        }
    }

    function updateCapTable(address who, uint equity, bool isRemoval) public {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "INVALID_ROLE");
        require(equity <= TOTAL_CAP, "INVALID EQUITY (0-10000)");
        require(equity >= 0, "INVALID EQUITY (0-10000)");

        FounderAuthorization[] storage auths = _addressToFounderAuthorization[who];
        uint equityYes = 0;

        for (uint i = 0; i < auths.length; i++) {
            if (equity == auths[i].equity && auths[i].approved == true && isRemoval == auths[i].isRemoval) {
                equityYes += founderToEquity[auths[i].founder];
            } 
        }

        if (equityYes >= 7000) {
            if (isRemoval) {
                _removeFounder(who);
            } else {
                _addFounder(who, equity);
            }  
            delete _addressToFounderAuthorization[who];
        } 
    }

    function withdraw() external {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "INVALID_ROLE");
        
        uint amount = addressToPendingWithdrawal[_msgSender()];
        addressToPendingWithdrawal[_msgSender()] = 0;
        
        payable(_msgSender()).transfer(amount);
    }

    /*** PRIVATE ***/

    function _addFounder(address who, uint equity) private {
        require(!_founderExists(who), "FOUNDER ALREADY EXISTS");

        for (uint i = 0; i < _founders.length; i++) {
            founderToEquity[_founders[i]] = founderToEquity[_founders[i]] * (TOTAL_CAP - equity) / TOTAL_CAP;
        }

        _founders.push(who);
        grantRole(DEFAULT_ADMIN_ROLE, who);
        founderToEquity[who] = equity;
    }

    function _removeFounder(address who) private {
        require(_founderExists(who), "FOUNDER DOESNT EXIST");

        uint equityToSplit = founderToEquity[who];
        uint indexToRemove;
        for (uint i = 0; i < _founders.length; i++) {
            if (_founders[i] == who) {
                indexToRemove = i;
                founderToEquity[who] = 0;
            } else {
               founderToEquity[_founders[i]] =  TOTAL_CAP * founderToEquity[_founders[i]] / (TOTAL_CAP - equityToSplit);
            }
        }

        delete _founders[indexToRemove];
        revokeRole(DEFAULT_ADMIN_ROLE, who);
    }

    function _founderExists(address who) private view returns(bool) {
        bool exists = false;
        for (uint i = 0; i < _founders.length; i++) {
            if (_founders[i] == who) {
                exists = true;
            }
        }
        return exists;
    }

    function _updatePendingWithdrawals(uint amount) private {
        for (uint i = 0; i < _founders.length; i++) {
            addressToPendingWithdrawal[_founders[i]] = addressToPendingWithdrawal[_founders[i]] + (amount * founderToEquity[_founders[i]] / TOTAL_CAP);
        }
    }
}

File 6 of 22 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);
    function getRoleAdmin(bytes32 role) external view returns (bytes32);
    function grantRole(bytes32 role, address account) external;
    function revokeRole(bytes32 role, address account) external;
    function renounceRole(bytes32 role, address account) external;
}

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping (address => bool) members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if(!hasRole(role, account)) {
            revert(string(abi.encodePacked(
                "AccessControl: account ",
                Strings.toHexString(uint160(account), 20),
                " is missing role ",
                Strings.toHexString(uint256(role), 32)
            )));
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, getRoleAdmin(role), adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 7 of 22 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable {
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping (bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {grantRole} to track enumerable memberships
     */
    function grantRole(bytes32 role, address account) public virtual override {
        super.grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {revokeRole} to track enumerable memberships
     */
    function revokeRole(bytes32 role, address account) public virtual override {
        super.revokeRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {renounceRole} to track enumerable memberships
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        super.renounceRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {_setupRole} to track enumerable memberships
     */
    function _setupRole(bytes32 role, address account) internal virtual override {
        super._setupRole(role, account);
        _roleMembers[role].add(account);
    }
}

File 8 of 22 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 9 of 22 : 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}. 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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    // solhint-disable-next-line no-inline-assembly
                    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` 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 { }
}

File 10 of 22 : 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 11 of 22 : 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 12 of 22 : 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 13 of 22 : ERC721Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}

File 14 of 22 : 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 15 of 22 : 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 16 of 22 : 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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 17 of 22 : 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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 18 of 22 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }
}

File 19 of 22 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}

File 20 of 22 : 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 21 of 22 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 22 of 22 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_walletAddress","type":"address"},{"internalType":"address","name":"_marsCoreAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_martianId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_landId","type":"uint256"}],"name":"Discovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ALL_MARTIANS","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"minPrice","type":"uint256"}],"name":"acceptBidForMartian","outputs":[],"stateMutability":"nonpayable","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":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","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":"","type":"uint256"}],"name":"landTokenIdRedeemed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"signatures","type":"bytes[]"},{"internalType":"uint256[]","name":"martianIds","type":"uint256[]"},{"internalType":"uint256[]","name":"landTokenIds","type":"uint256[]"},{"internalType":"address","name":"promoOwner","type":"address"}],"name":"mintMartians","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"minSalePriceInWei","type":"uint256"}],"name":"offerMartianForSale","outputs":[],"stateMutability":"nonpayable","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":[],"name":"sendBalanceToWallet","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":"address","name":"_address","type":"address"}],"name":"setAuctionAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"setReservedMartiansAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_address","type":"address"}],"name":"setWalletAddress","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":"","type":"uint256"}],"name":"tokenToMartianId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052612710600c60016101000a81548161ffff021916908361ffff1602179055503480156200003057600080fd5b506040516200693e3803806200693e833981810160405281019062000056919062000765565b6040518060400160405280601381526020017f4d61727347656e657369734d61727469616e73000000000000000000000000008152506040518060400160405280600481526020017f4d52544e0000000000000000000000000000000000000000000000000000000081525081818160029080519060200190620000dc92919062000606565b508060039080519060200190620000f592919062000606565b5050506000600c60006101000a81548160ff021916908315150217905550620001376000801b6200012b6200022960201b60201c565b6200023160201b60201c565b505033600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200018f6000801b336200023160201b60201c565b81601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620002216200027960201b60201c565b505062000934565b600033905090565b620002488282620002f160201b620020481760201c565b6200027481600160008581526020019081526020016000206200030760201b620020561790919060201c565b505050565b6200029d6000801b620002916200022960201b60201c565b6200033f60201b60201c565b620002df576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002d6906200080d565b60405180910390fd5b620002ef620003a960201b60201c565b565b6200030382826200046160201b60201c565b5050565b600062000337836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200055260201b60201c565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b620003b9620005cc60201b60201c565b15620003fc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003f3906200087f565b60405180910390fd5b6001600c60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620004486200022960201b60201c565b604051620004579190620008b2565b60405180910390a1565b6200047382826200033f60201b60201c565b6200054e57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620004f36200022960201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620005668383620005e360201b60201c565b620005c1578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050620005c6565b600090505b92915050565b6000600c60009054906101000a900460ff16905090565b600080836001016000848152602001908152602001600020541415905092915050565b8280546200061490620008fe565b90600052602060002090601f01602090048101928262000638576000855562000684565b82601f106200065357805160ff191683800117855562000684565b8280016001018555821562000684579182015b828111156200068357825182559160200191906001019062000666565b5b50905062000693919062000697565b5090565b5b80821115620006b257600081600090555060010162000698565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620006e882620006bb565b9050919050565b620006fa81620006db565b81146200070657600080fd5b50565b6000815190506200071a81620006ef565b92915050565b60006200072d82620006bb565b9050919050565b6200073f8162000720565b81146200074b57600080fd5b50565b6000815190506200075f8162000734565b92915050565b600080604083850312156200077f576200077e620006b6565b5b60006200078f8582860162000709565b9250506020620007a2858286016200074e565b9150509250929050565b600082825260208201905092915050565b7f494e56414c49445f524f4c450000000000000000000000000000000000000000600082015250565b6000620007f5600c83620007ac565b91506200080282620007bd565b602082019050919050565b600060208201905081810360008301526200082881620007e6565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600062000867601083620007ac565b915062000874826200082f565b602082019050919050565b600060208201905081810360008301526200089a8162000858565b9050919050565b620008ac8162000720565b82525050565b6000602082019050620008c96000830184620008a1565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200091757607f821691505b602082108114156200092e576200092d620008cf565b5b50919050565b615ffa80620009446000396000f3fe6080604052600436106102305760003560e01c806370a082311161012e578063ac1a386a116100ab578063e07bb8921161006f578063e07bb89214610888578063e8a3d485146108c5578063e985e9c5146108f0578063f3eb16681461092d578063fada3dee1461095657610230565b8063ac1a386a14610793578063b88d4fde146107bc578063c87b56dd146107e5578063ca15c87314610822578063d547741f1461085f57610230565b806391d14854116100f257806391d14854146106ae57806393ac3638146106eb57806395d89b4114610714578063a217fddf1461073f578063a22cb4651461076a57610230565b806370a08231146105b55780637c1f9fc2146105f25780638456cb591461062f5780638da5cb5b146106465780639010d07c1461067157610230565b806323b872dd116101bc5780633f4ba83a116101805780633f4ba83a146104d057806342842e0e146104e75780634f6ccce7146105105780635c975abb1461054d5780636352211e1461057857610230565b806323b872dd146103db578063248a9ca3146104045780632f2ff15d146104415780632f745c591461046a57806336568abe146104a757610230565b8063095ea7b311610203578063095ea7b3146103035780631017b8d61461032c57806318160ddd146103575780631cce0fb714610382578063225d7da5146103ab57610230565b806301ffc9a71461023557806302114ad71461027257806306fdde031461029b578063081812fc146102c6575b600080fd5b34801561024157600080fd5b5061025c60048036038101906102579190613e33565b61096d565b6040516102699190613e7b565b60405180910390f35b34801561027e57600080fd5b5061029960048036038101906102949190613ecc565b61097f565b005b3480156102a757600080fd5b506102b0610a3e565b6040516102bd9190613fa5565b60405180910390f35b3480156102d257600080fd5b506102ed60048036038101906102e89190613fc7565b610ad0565b6040516102fa9190614035565b60405180910390f35b34801561030f57600080fd5b5061032a6004803603810190610325919061407c565b610b55565b005b34801561033857600080fd5b50610341610c6d565b60405161034e9190613fa5565b60405180910390f35b34801561036357600080fd5b5061036c610c89565b60405161037991906140cb565b60405180910390f35b34801561038e57600080fd5b506103a960048036038101906103a49190614120565b610c96565b005b6103c560048036038101906103c0919061442b565b610cd3565b6040516103d29190613e7b565b60405180910390f35b3480156103e757600080fd5b5061040260048036038101906103fd91906144e6565b6114b3565b005b34801561041057600080fd5b5061042b6004803603810190610426919061456f565b611513565b60405161043891906145ab565b60405180910390f35b34801561044d57600080fd5b50610468600480360381019061046391906145c6565b611532565b005b34801561047657600080fd5b50610491600480360381019061048c919061407c565b611566565b60405161049e91906140cb565b60405180910390f35b3480156104b357600080fd5b506104ce60048036038101906104c991906145c6565b61160b565b005b3480156104dc57600080fd5b506104e561163f565b005b3480156104f357600080fd5b5061050e600480360381019061050991906144e6565b61169c565b005b34801561051c57600080fd5b5061053760048036038101906105329190613fc7565b6116bc565b60405161054491906140cb565b60405180910390f35b34801561055957600080fd5b5061056261172d565b60405161056f9190613e7b565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a9190613fc7565b611744565b6040516105ac9190614035565b60405180910390f35b3480156105c157600080fd5b506105dc60048036038101906105d79190614606565b6117f6565b6040516105e991906140cb565b60405180910390f35b3480156105fe57600080fd5b5061061960048036038101906106149190613fc7565b6118ae565b6040516106269190613e7b565b60405180910390f35b34801561063b57600080fd5b506106446118ce565b005b34801561065257600080fd5b5061065b61192b565b6040516106689190614035565b60405180910390f35b34801561067d57600080fd5b5061069860048036038101906106939190614633565b611955565b6040516106a59190614035565b60405180910390f35b3480156106ba57600080fd5b506106d560048036038101906106d091906145c6565b611984565b6040516106e29190613e7b565b60405180910390f35b3480156106f757600080fd5b50610712600480360381019061070d9190614606565b6119ee565b005b34801561072057600080fd5b50610729611a4f565b6040516107369190613fa5565b60405180910390f35b34801561074b57600080fd5b50610754611ae1565b60405161076191906145ab565b60405180910390f35b34801561077657600080fd5b50610791600480360381019061078c919061469f565b611ae8565b005b34801561079f57600080fd5b506107ba60048036038101906107b5919061471d565b611c69565b005b3480156107c857600080fd5b506107e360048036038101906107de919061474a565b611cca565b005b3480156107f157600080fd5b5061080c60048036038101906108079190613fc7565b611d2c565b6040516108199190613fa5565b60405180910390f35b34801561082e57600080fd5b506108496004803603810190610844919061456f565b611d70565b60405161085691906140cb565b60405180910390f35b34801561086b57600080fd5b50610886600480360381019061088191906145c6565b611d94565b005b34801561089457600080fd5b506108af60048036038101906108aa9190613fc7565b611dc8565b6040516108bc91906140cb565b60405180910390f35b3480156108d157600080fd5b506108da611de0565b6040516108e79190613fa5565b60405180910390f35b3480156108fc57600080fd5b50610917600480360381019061091291906147cd565b611e00565b6040516109249190613e7b565b60405180910390f35b34801561093957600080fd5b50610954600480360381019061094f9190613ecc565b611e94565b005b34801561096257600080fd5b5061096b611f53565b005b600061097882612086565b9050919050565b6109ab600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683610b55565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166302114ad783836040518363ffffffff1660e01b8152600401610a0892919061480d565b600060405180830381600087803b158015610a2257600080fd5b505af1158015610a36573d6000803e3d6000fd5b505050505050565b606060028054610a4d90614865565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7990614865565b8015610ac65780601f10610a9b57610100808354040283529160200191610ac6565b820191906000526020600020905b815481529060010190602001808311610aa957829003601f168201915b5050505050905090565b6000610adb82612100565b610b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1190614909565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b6082611744565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc89061499b565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bf061216c565b73ffffffffffffffffffffffffffffffffffffffff161480610c1f5750610c1e81610c1961216c565b611e00565b5b610c5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5590614a2d565b60405180910390fd5b610c688383612174565b505050565b604051806060016040528060358152602001615f486035913981565b6000600a80549050905090565b610caa6000801b610ca561216c565b611984565b610cb357600080fd5b80600c60016101000a81548161ffff021916908361ffff16021790555050565b600080845190508084511115610d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1590614a99565b60405180910390fd5b6000845111156110f457835161ffff16600c60019054906101000a900461ffff1661ffff161015610d4e57600080fd5b60005b818110156110b8573373ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e878481518110610dc157610dc0614ab9565b5b60200260200101516040518263ffffffff1660e01b8152600401610de591906140cb565b60206040518083038186803b158015610dfd57600080fd5b505afa158015610e11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e359190614afd565b73ffffffffffffffffffffffffffffffffffffffff161480610f9f5750600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148015610f9e57508373ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e878481518110610f1257610f11614ab9565b5b60200260200101516040518263ffffffff1660e01b8152600401610f3691906140cb565b60206040518083038186803b158015610f4e57600080fd5b505afa158015610f62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f869190614afd565b73ffffffffffffffffffffffffffffffffffffffff16145b5b610fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd590614b76565b60405180910390fd5b6000151560146000878481518110610ff957610ff8614ab9565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff1615151461105f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105690614be2565b60405180910390fd5b60016014600087848151811061107857611077614ab9565b5b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806110b090614c31565b915050610d51565b508351600c60018282829054906101000a900461ffff166110d99190614c7a565b92506101000a81548161ffff021916908361ffff1602179055505b61271061ffff16600c60019054906101000a900461ffff1661ffff168261111b600d61222d565b6111259190614cae565b61112f9190614cae565b1115611170576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116790614d50565b60405180910390fd5b60006111866000801b61118161216c565b611984565b1561119357839050611200565b8451826111a09190614d70565b67011c37937e0800006111b39190614da4565b3410156111f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ec90614e4a565b60405180910390fd5b6111fd61216c565b90505b60005b828110156114a457600015156013600089848151811061122657611225614ab9565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff1615151461128c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128390614eb6565b60405180910390fd5b6000308883815181106112a2576112a1614ab9565b5b6020026020010151336040516020016112bd93929190614f3f565b60405160208183030381529060405280519060200120905060006112fb828b85815181106112ee576112ed614ab9565b5b602002602001015161223b565b9050600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461138d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138490614fc8565b60405180910390fd5b60006113b3858b86815181106113a6576113a5614ab9565b5b60200260200101516122b0565b90508851841015611434577fcf0d25ae0ad65eb42e1958e0259f500e3102529a322cdea3090921be6ee9bec785828c87815181106113f4576113f3614ab9565b5b60200260200101518c888151811061140f5761140e614ab9565b5b60200260200101516040516114279493929190614fe8565b60405180910390a161148e565b7fcf0d25ae0ad65eb42e1958e0259f500e3102529a322cdea3090921be6ee9bec785828c878151811061146a57611469614ab9565b5b60200260200101516127116040516114859493929190615072565b60405180910390a15b505050808061149c90614c31565b915050611203565b50600192505050949350505050565b6114c46114be61216c565b82612321565b611503576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fa90615129565b60405180910390fd5b61150e8383836123ff565b505050565b6000806000838152602001908152602001600020600101549050919050565b61153c828261265b565b611561816001600085815260200190815260200160002061205690919063ffffffff16565b505050565b6000611571836117f6565b82106115b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a9906151bb565b60405180910390fd5b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6116158282612684565b61163a816001600085815260200190815260200160002061270790919063ffffffff16565b505050565b6116536000801b61164e61216c565b611984565b611692576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168990615227565b60405180910390fd5b61169a612737565b565b6116b783838360405180602001604052806000815250611cca565b505050565b60006116c6610c89565b8210611707576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fe906152b9565b60405180910390fd5b600a828154811061171b5761171a614ab9565b5b90600052602060002001549050919050565b6000600c60009054906101000a900460ff16905090565b6000806004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e49061534b565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185e906153dd565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60146020528060005260406000206000915054906101000a900460ff1681565b6118e26000801b6118dd61216c565b611984565b611921576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191890615227565b60405180910390fd5b6119296127d9565b565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600061197c826001600086815260200190815260200160002061287c90919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a026000801b6119fd61216c565b611984565b611a0b57600080fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060038054611a5e90614865565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8a90614865565b8015611ad75780601f10611aac57610100808354040283529160200191611ad7565b820191906000526020600020905b815481529060010190602001808311611aba57829003601f168201915b5050505050905090565b6000801b81565b611af061216c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5590615449565b60405180910390fd5b8060076000611b6b61216c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c1861216c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c5d9190613e7b565b60405180910390a35050565b611c7d6000801b611c7861216c565b611984565b611c8657600080fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611cdb611cd561216c565b83612321565b611d1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1190615129565b60405180910390fd5b611d2684848484612896565b50505050565b6060611d4a60126000848152602001908152602001600020546128f2565b604051602001611d5a9190615517565b6040516020818303038152906040529050919050565b6000611d8d60016000848152602001908152602001600020612a53565b9050919050565b611d9e8282612a68565b611dc3816001600085815260200190815260200160002061270790919063ffffffff16565b505050565b60126020528060005260406000206000915090505481565b6060604051806080016040528060488152602001615f7d60489139905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ec0600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683610b55565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f3eb166883836040518363ffffffff1660e01b8152600401611f1d92919061480d565b600060405180830381600087803b158015611f3757600080fd5b505af1158015611f4b573d6000803e3d6000fd5b505050505050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611fad57600080fd5b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051611ff59061556a565b60006040518083038185875af1925050503d8060008114612032576040519150601f19603f3d011682016040523d82523d6000602084013e612037565b606091505b505090508061204557600080fd5b50565b6120528282612a91565b5050565b600061207e836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612b71565b905092915050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806120f957506120f882612be1565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166121e783611744565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b60008060008061224a85612cc3565b80935081945082955050505060018684848460405160008152602001604052604051612279949392919061559b565b6020604051602081039080840390855afa15801561229b573d6000803e3d6000fd5b50505060206040510351935050505092915050565b6000806122bd600d61222d565b90506122c98482612d06565b6122d3600d612ed4565b82601260008381526020019081526020016000208190555060016013600085815260200190815260200160002060006101000a81548160ff0219169083151502179055508091505092915050565b600061232c82612100565b61236b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236290615652565b60405180910390fd5b600061237683611744565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806123e557508373ffffffffffffffffffffffffffffffffffffffff166123cd84610ad0565b73ffffffffffffffffffffffffffffffffffffffff16145b806123f657506123f58185611e00565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661241f82611744565b73ffffffffffffffffffffffffffffffffffffffff1614612475576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246c906156e4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156124e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124dc90615776565b60405180910390fd5b6124f0838383612eea565b6124fb600082612174565b6001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461254b9190614d70565b925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125a29190614cae565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b61266482611513565b6126758161267061216c565b6130ca565b61267f8383612a91565b505050565b61268c61216c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146126f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f090615808565b60405180910390fd5b6127038282613167565b5050565b600061272f836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613248565b905092915050565b61273f61172d565b61277e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277590615874565b60405180910390fd5b6000600c60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6127c261216c565b6040516127cf9190614035565b60405180910390a1565b6127e161172d565b15612821576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612818906158e0565b60405180910390fd5b6001600c60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861286561216c565b6040516128729190614035565b60405180910390a1565b600061288b8360000183613354565b60001c905092915050565b6128a18484846123ff565b6128ad848484846133c8565b6128ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e390615972565b60405180910390fd5b50505050565b6060600082141561293a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a4e565b600082905060005b6000821461296c57808061295590614c31565b915050600a8261296591906159c1565b9150612942565b60008167ffffffffffffffff81111561298857612987614152565b5b6040519080825280601f01601f1916602001820160405280156129ba5781602001600182028036833780820191505090505b5090505b60008514612a47576001826129d39190614d70565b9150600a856129e291906159f2565b60306129ee9190614cae565b60f81b818381518110612a0457612a03614ab9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a4091906159c1565b94506129be565b8093505050505b919050565b6000612a618260000161355f565b9050919050565b612a7182611513565b612a8281612a7d61216c565b6130ca565b612a8c8383613167565b505050565b612a9b8282611984565b612b6d57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612b1261216c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000612b7d8383613570565b612bd6578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612bdb565b600090505b92915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612cac57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612cbc5750612cbb82613593565b5b9050919050565b60008060006041845114612cd657600080fd5b60008060006020870151925060408701519150606087015160001a90508083839550955095505050509193909250565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6d90615a6f565b60405180910390fd5b612d7f81612100565b15612dbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db690615adb565b60405180910390fd5b612dcb60008383612eea565b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e1b9190614cae565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6001816000016000828254019250508190555050565b612ef583838361360d565b600073ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7e90615b47565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bed4e457826040518263ffffffff1660e01b8152600401612fe291906140cb565b60206040518083038186803b158015612ffa57600080fd5b505afa15801561300e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130329190615b7c565b156130c557600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166380b23bd1826040518263ffffffff1660e01b815260040161309291906140cb565b600060405180830381600087803b1580156130ac57600080fd5b505af11580156130c0573d6000803e3d6000fd5b505050505b505050565b6130d48282611984565b613163576130f98173ffffffffffffffffffffffffffffffffffffffff16601461361d565b6131078360001c602061361d565b604051602001613118929190615c41565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161315a9190613fa5565b60405180910390fd5b5050565b6131718282611984565b1561324457600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506131e961216c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000808360010160008481526020019081526020016000205490506000811461334857600060018261327a9190614d70565b90506000600186600001805490506132929190614d70565b905060008660000182815481106132ac576132ab614ab9565b5b90600052602060002001549050808760000184815481106132d0576132cf614ab9565b5b906000526020600020018190555083876001016000838152602001908152602001600020819055508660000180548061330c5761330b615c7b565b5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061334e565b60009150505b92915050565b60008183600001805490501161339f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161339690615d1c565b60405180910390fd5b8260000182815481106133b5576133b4614ab9565b5b9060005260206000200154905092915050565b60006133e98473ffffffffffffffffffffffffffffffffffffffff16613859565b15613552578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261341261216c565b8786866040518563ffffffff1660e01b81526004016134349493929190615d91565b602060405180830381600087803b15801561344e57600080fd5b505af192505050801561347f57506040513d601f19601f8201168201806040525081019061347c9190615df2565b60015b613502573d80600081146134af576040519150601f19603f3d011682016040523d82523d6000602084013e6134b4565b606091505b506000815114156134fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134f190615972565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613557565b600190505b949350505050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061360657506136058261386c565b5b9050919050565b6136188383836138e6565b505050565b6060600060028360026136309190614da4565b61363a9190614cae565b67ffffffffffffffff81111561365357613652614152565b5b6040519080825280601f01601f1916602001820160405280156136855781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106136bd576136bc614ab9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061372157613720614ab9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026137619190614da4565b61376b9190614cae565b90505b600181111561380b577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106137ad576137ac614ab9565b5b1a60f81b8282815181106137c4576137c3614ab9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061380490615e1f565b905061376e565b506000841461384f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161384690615e95565b60405180910390fd5b8091505092915050565b600080823b905060008111915050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806138df57506138de8261393e565b5b9050919050565b6138f18383836139a8565b6138f961172d565b15613939576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161393090615f27565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6139b3838383613abc565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156139f6576139f181613ac1565b613a35565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613a3457613a338382613b0a565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613a7857613a7381613c77565b613ab7565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613ab657613ab58282613d48565b5b5b505050565b505050565b600a80549050600b600083815260200190815260200160002081905550600a81908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613b17846117f6565b613b219190614d70565b9050600060096000848152602001908152602001600020549050818114613c06576000600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816009600083815260200190815260200160002081905550505b6009600084815260200190815260200160002060009055600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600a80549050613c8b9190614d70565b90506000600b60008481526020019081526020016000205490506000600a8381548110613cbb57613cba614ab9565b5b9060005260206000200154905080600a8381548110613cdd57613cdc614ab9565b5b906000526020600020018190555081600b600083815260200190815260200160002081905550600b600085815260200190815260200160002060009055600a805480613d2c57613d2b615c7b565b5b6001900381819060005260206000200160009055905550505050565b6000613d53836117f6565b905081600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806009600084815260200190815260200160002081905550505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613e1081613ddb565b8114613e1b57600080fd5b50565b600081359050613e2d81613e07565b92915050565b600060208284031215613e4957613e48613dd1565b5b6000613e5784828501613e1e565b91505092915050565b60008115159050919050565b613e7581613e60565b82525050565b6000602082019050613e906000830184613e6c565b92915050565b6000819050919050565b613ea981613e96565b8114613eb457600080fd5b50565b600081359050613ec681613ea0565b92915050565b60008060408385031215613ee357613ee2613dd1565b5b6000613ef185828601613eb7565b9250506020613f0285828601613eb7565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613f46578082015181840152602081019050613f2b565b83811115613f55576000848401525b50505050565b6000601f19601f8301169050919050565b6000613f7782613f0c565b613f818185613f17565b9350613f91818560208601613f28565b613f9a81613f5b565b840191505092915050565b60006020820190508181036000830152613fbf8184613f6c565b905092915050565b600060208284031215613fdd57613fdc613dd1565b5b6000613feb84828501613eb7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061401f82613ff4565b9050919050565b61402f81614014565b82525050565b600060208201905061404a6000830184614026565b92915050565b61405981614014565b811461406457600080fd5b50565b60008135905061407681614050565b92915050565b6000806040838503121561409357614092613dd1565b5b60006140a185828601614067565b92505060206140b285828601613eb7565b9150509250929050565b6140c581613e96565b82525050565b60006020820190506140e060008301846140bc565b92915050565b600061ffff82169050919050565b6140fd816140e6565b811461410857600080fd5b50565b60008135905061411a816140f4565b92915050565b60006020828403121561413657614135613dd1565b5b60006141448482850161410b565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61418a82613f5b565b810181811067ffffffffffffffff821117156141a9576141a8614152565b5b80604052505050565b60006141bc613dc7565b90506141c88282614181565b919050565b600067ffffffffffffffff8211156141e8576141e7614152565b5b602082029050602081019050919050565b600080fd5b600080fd5b600067ffffffffffffffff82111561421e5761421d614152565b5b61422782613f5b565b9050602081019050919050565b82818337600083830152505050565b600061425661425184614203565b6141b2565b905082815260208101848484011115614272576142716141fe565b5b61427d848285614234565b509392505050565b600082601f83011261429a5761429961414d565b5b81356142aa848260208601614243565b91505092915050565b60006142c66142c1846141cd565b6141b2565b905080838252602082019050602084028301858111156142e9576142e86141f9565b5b835b8181101561433057803567ffffffffffffffff81111561430e5761430d61414d565b5b80860161431b8982614285565b855260208501945050506020810190506142eb565b5050509392505050565b600082601f83011261434f5761434e61414d565b5b813561435f8482602086016142b3565b91505092915050565b600067ffffffffffffffff82111561438357614382614152565b5b602082029050602081019050919050565b60006143a76143a284614368565b6141b2565b905080838252602082019050602084028301858111156143ca576143c96141f9565b5b835b818110156143f357806143df8882613eb7565b8452602084019350506020810190506143cc565b5050509392505050565b600082601f8301126144125761441161414d565b5b8135614422848260208601614394565b91505092915050565b6000806000806080858703121561444557614444613dd1565b5b600085013567ffffffffffffffff81111561446357614462613dd6565b5b61446f8782880161433a565b945050602085013567ffffffffffffffff8111156144905761448f613dd6565b5b61449c878288016143fd565b935050604085013567ffffffffffffffff8111156144bd576144bc613dd6565b5b6144c9878288016143fd565b92505060606144da87828801614067565b91505092959194509250565b6000806000606084860312156144ff576144fe613dd1565b5b600061450d86828701614067565b935050602061451e86828701614067565b925050604061452f86828701613eb7565b9150509250925092565b6000819050919050565b61454c81614539565b811461455757600080fd5b50565b60008135905061456981614543565b92915050565b60006020828403121561458557614584613dd1565b5b60006145938482850161455a565b91505092915050565b6145a581614539565b82525050565b60006020820190506145c0600083018461459c565b92915050565b600080604083850312156145dd576145dc613dd1565b5b60006145eb8582860161455a565b92505060206145fc85828601614067565b9150509250929050565b60006020828403121561461c5761461b613dd1565b5b600061462a84828501614067565b91505092915050565b6000806040838503121561464a57614649613dd1565b5b60006146588582860161455a565b925050602061466985828601613eb7565b9150509250929050565b61467c81613e60565b811461468757600080fd5b50565b60008135905061469981614673565b92915050565b600080604083850312156146b6576146b5613dd1565b5b60006146c485828601614067565b92505060206146d58582860161468a565b9150509250929050565b60006146ea82613ff4565b9050919050565b6146fa816146df565b811461470557600080fd5b50565b600081359050614717816146f1565b92915050565b60006020828403121561473357614732613dd1565b5b600061474184828501614708565b91505092915050565b6000806000806080858703121561476457614763613dd1565b5b600061477287828801614067565b945050602061478387828801614067565b935050604061479487828801613eb7565b925050606085013567ffffffffffffffff8111156147b5576147b4613dd6565b5b6147c187828801614285565b91505092959194509250565b600080604083850312156147e4576147e3613dd1565b5b60006147f285828601614067565b925050602061480385828601614067565b9150509250929050565b600060408201905061482260008301856140bc565b61482f60208301846140bc565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061487d57607f821691505b6020821081141561489157614890614836565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006148f3602c83613f17565b91506148fe82614897565b604082019050919050565b60006020820190508181036000830152614922816148e6565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614985602183613f17565b915061499082614929565b604082019050919050565b600060208201905081810360008301526149b481614978565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000614a17603883613f17565b9150614a22826149bb565b604082019050919050565b60006020820190508181036000830152614a4681614a0a565b9050919050565b7f4600000000000000000000000000000000000000000000000000000000000000600082015250565b6000614a83600183613f17565b9150614a8e82614a4d565b602082019050919050565b60006020820190508181036000830152614ab281614a76565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050614af781614050565b92915050565b600060208284031215614b1357614b12613dd1565b5b6000614b2184828501614ae8565b91505092915050565b7f4500000000000000000000000000000000000000000000000000000000000000600082015250565b6000614b60600183613f17565b9150614b6b82614b2a565b602082019050919050565b60006020820190508181036000830152614b8f81614b53565b9050919050565b7f4400000000000000000000000000000000000000000000000000000000000000600082015250565b6000614bcc600183613f17565b9150614bd782614b96565b602082019050919050565b60006020820190508181036000830152614bfb81614bbf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614c3c82613e96565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614c6f57614c6e614c02565b5b600182019050919050565b6000614c85826140e6565b9150614c90836140e6565b925082821015614ca357614ca2614c02565b5b828203905092915050565b6000614cb982613e96565b9150614cc483613e96565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614cf957614cf8614c02565b5b828201905092915050565b7f4d41580000000000000000000000000000000000000000000000000000000000600082015250565b6000614d3a600383613f17565b9150614d4582614d04565b602082019050919050565b60006020820190508181036000830152614d6981614d2d565b9050919050565b6000614d7b82613e96565b9150614d8683613e96565b925082821015614d9957614d98614c02565b5b828203905092915050565b6000614daf82613e96565b9150614dba83613e96565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614df357614df2614c02565b5b828202905092915050565b7f2400000000000000000000000000000000000000000000000000000000000000600082015250565b6000614e34600183613f17565b9150614e3f82614dfe565b602082019050919050565b60006020820190508181036000830152614e6381614e27565b9050919050565b7f4300000000000000000000000000000000000000000000000000000000000000600082015250565b6000614ea0600183613f17565b9150614eab82614e6a565b602082019050919050565b60006020820190508181036000830152614ecf81614e93565b9050919050565b60008160601b9050919050565b6000614eee82614ed6565b9050919050565b6000614f0082614ee3565b9050919050565b614f18614f1382614014565b614ef5565b82525050565b6000819050919050565b614f39614f3482613e96565b614f1e565b82525050565b6000614f4b8286614f07565b601482019150614f5b8285614f28565b602082019150614f6b8284614f07565b601482019150819050949350505050565b7f53474e0000000000000000000000000000000000000000000000000000000000600082015250565b6000614fb2600383613f17565b9150614fbd82614f7c565b602082019050919050565b60006020820190508181036000830152614fe181614fa5565b9050919050565b6000608082019050614ffd6000830187614026565b61500a60208301866140bc565b61501760408301856140bc565b61502460608301846140bc565b95945050505050565b6000819050919050565b6000819050919050565b600061505c6150576150528461502d565b615037565b613e96565b9050919050565b61506c81615041565b82525050565b60006080820190506150876000830187614026565b61509460208301866140bc565b6150a160408301856140bc565b6150ae6060830184615063565b95945050505050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000615113603183613f17565b915061511e826150b7565b604082019050919050565b6000602082019050818103600083015261514281615106565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b60006151a5602b83613f17565b91506151b082615149565b604082019050919050565b600060208201905081810360008301526151d481615198565b9050919050565b7f494e56414c49445f524f4c450000000000000000000000000000000000000000600082015250565b6000615211600c83613f17565b915061521c826151db565b602082019050919050565b6000602082019050818103600083015261524081615204565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b60006152a3602c83613f17565b91506152ae82615247565b604082019050919050565b600060208201905081810360008301526152d281615296565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000615335602983613f17565b9150615340826152d9565b604082019050919050565b6000602082019050818103600083015261536481615328565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006153c7602a83613f17565b91506153d28261536b565b604082019050919050565b600060208201905081810360008301526153f6816153ba565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615433601983613f17565b915061543e826153fd565b602082019050919050565b6000602082019050818103600083015261546281615426565b9050919050565b600081905092915050565b7f697066733a2f2f516d537164463257646d6e36536b6d65335274676b4753516e60008201527f4779583669726462523154534e4143594a624a4c352f00000000000000000000602082015250565b60006154d0603683615469565b91506154db82615474565b603682019050919050565b60006154f182613f0c565b6154fb8185615469565b935061550b818560208601613f28565b80840191505092915050565b6000615522826154c3565b915061552e82846154e6565b915081905092915050565b600081905092915050565b50565b6000615554600083615539565b915061555f82615544565b600082019050919050565b600061557582615547565b9150819050919050565b600060ff82169050919050565b6155958161557f565b82525050565b60006080820190506155b0600083018761459c565b6155bd602083018661558c565b6155ca604083018561459c565b6155d7606083018461459c565b95945050505050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061563c602c83613f17565b9150615647826155e0565b604082019050919050565b6000602082019050818103600083015261566b8161562f565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b60006156ce602983613f17565b91506156d982615672565b604082019050919050565b600060208201905081810360008301526156fd816156c1565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615760602483613f17565b915061576b82615704565b604082019050919050565b6000602082019050818103600083015261578f81615753565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b60006157f2602f83613f17565b91506157fd82615796565b604082019050919050565b60006020820190508181036000830152615821816157e5565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061585e601483613f17565b915061586982615828565b602082019050919050565b6000602082019050818103600083015261588d81615851565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006158ca601083613f17565b91506158d582615894565b602082019050919050565b600060208201905081810360008301526158f9816158bd565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061595c603283613f17565b915061596782615900565b604082019050919050565b6000602082019050818103600083015261598b8161594f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006159cc82613e96565b91506159d783613e96565b9250826159e7576159e6615992565b5b828204905092915050565b60006159fd82613e96565b9150615a0883613e96565b925082615a1857615a17615992565b5b828206905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615a59602083613f17565b9150615a6482615a23565b602082019050919050565b60006020820190508181036000830152615a8881615a4c565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615ac5601c83613f17565b9150615ad082615a8f565b602082019050919050565b60006020820190508181036000830152615af481615ab8565b9050919050565b7f4200000000000000000000000000000000000000000000000000000000000000600082015250565b6000615b31600183613f17565b9150615b3c82615afb565b602082019050919050565b60006020820190508181036000830152615b6081615b24565b9050919050565b600081519050615b7681614673565b92915050565b600060208284031215615b9257615b91613dd1565b5b6000615ba084828501615b67565b91505092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000615bdf601783615469565b9150615bea82615ba9565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000615c2b601183615469565b9150615c3682615bf5565b601182019050919050565b6000615c4c82615bd2565b9150615c5882856154e6565b9150615c6382615c1e565b9150615c6f82846154e6565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000615d06602283613f17565b9150615d1182615caa565b604082019050919050565b60006020820190508181036000830152615d3581615cf9565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615d6382615d3c565b615d6d8185615d47565b9350615d7d818560208601613f28565b615d8681613f5b565b840191505092915050565b6000608082019050615da66000830187614026565b615db36020830186614026565b615dc060408301856140bc565b8181036060830152615dd28184615d58565b905095945050505050565b600081519050615dec81613e07565b92915050565b600060208284031215615e0857615e07613dd1565b5b6000615e1684828501615ddd565b91505092915050565b6000615e2a82613e96565b91506000821415615e3e57615e3d614c02565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615e7f602083613f17565b9150615e8a82615e49565b602082019050919050565b60006020820190508181036000830152615eae81615e72565b9050919050565b7f4552433732315061757361626c653a20746f6b656e207472616e73666572207760008201527f68696c6520706175736564000000000000000000000000000000000000000000602082015250565b6000615f11602b83613f17565b9150615f1c82615eb5565b604082019050919050565b60006020820190508181036000830152615f4081615f04565b905091905056fe697066733a2f2f516d5443585332693633326b6359674d6f5672674e796462396f3339487a74374839574733544258546d6141477168747470733a2f2f6d61727367656e657369732d776562332e6865726f6b756170702e636f6d2f6d657461646174612f4d61727347656e657369734d61727469616e732e6a736f6ea2646970667358221220745c0dc3cfc665fe815c24296abbf9da6c20396e4aec4b7dbfe61d75fb73f88964736f6c6343000809003300000000000000000000000010235f2d820bdac032fdeea25f9a57eb0890c3e0000000000000000000000000e6ddbea6749cc793ba12ac22bca03c3f1fcf3a80

Deployed Bytecode

0x6080604052600436106102305760003560e01c806370a082311161012e578063ac1a386a116100ab578063e07bb8921161006f578063e07bb89214610888578063e8a3d485146108c5578063e985e9c5146108f0578063f3eb16681461092d578063fada3dee1461095657610230565b8063ac1a386a14610793578063b88d4fde146107bc578063c87b56dd146107e5578063ca15c87314610822578063d547741f1461085f57610230565b806391d14854116100f257806391d14854146106ae57806393ac3638146106eb57806395d89b4114610714578063a217fddf1461073f578063a22cb4651461076a57610230565b806370a08231146105b55780637c1f9fc2146105f25780638456cb591461062f5780638da5cb5b146106465780639010d07c1461067157610230565b806323b872dd116101bc5780633f4ba83a116101805780633f4ba83a146104d057806342842e0e146104e75780634f6ccce7146105105780635c975abb1461054d5780636352211e1461057857610230565b806323b872dd146103db578063248a9ca3146104045780632f2ff15d146104415780632f745c591461046a57806336568abe146104a757610230565b8063095ea7b311610203578063095ea7b3146103035780631017b8d61461032c57806318160ddd146103575780631cce0fb714610382578063225d7da5146103ab57610230565b806301ffc9a71461023557806302114ad71461027257806306fdde031461029b578063081812fc146102c6575b600080fd5b34801561024157600080fd5b5061025c60048036038101906102579190613e33565b61096d565b6040516102699190613e7b565b60405180910390f35b34801561027e57600080fd5b5061029960048036038101906102949190613ecc565b61097f565b005b3480156102a757600080fd5b506102b0610a3e565b6040516102bd9190613fa5565b60405180910390f35b3480156102d257600080fd5b506102ed60048036038101906102e89190613fc7565b610ad0565b6040516102fa9190614035565b60405180910390f35b34801561030f57600080fd5b5061032a6004803603810190610325919061407c565b610b55565b005b34801561033857600080fd5b50610341610c6d565b60405161034e9190613fa5565b60405180910390f35b34801561036357600080fd5b5061036c610c89565b60405161037991906140cb565b60405180910390f35b34801561038e57600080fd5b506103a960048036038101906103a49190614120565b610c96565b005b6103c560048036038101906103c0919061442b565b610cd3565b6040516103d29190613e7b565b60405180910390f35b3480156103e757600080fd5b5061040260048036038101906103fd91906144e6565b6114b3565b005b34801561041057600080fd5b5061042b6004803603810190610426919061456f565b611513565b60405161043891906145ab565b60405180910390f35b34801561044d57600080fd5b50610468600480360381019061046391906145c6565b611532565b005b34801561047657600080fd5b50610491600480360381019061048c919061407c565b611566565b60405161049e91906140cb565b60405180910390f35b3480156104b357600080fd5b506104ce60048036038101906104c991906145c6565b61160b565b005b3480156104dc57600080fd5b506104e561163f565b005b3480156104f357600080fd5b5061050e600480360381019061050991906144e6565b61169c565b005b34801561051c57600080fd5b5061053760048036038101906105329190613fc7565b6116bc565b60405161054491906140cb565b60405180910390f35b34801561055957600080fd5b5061056261172d565b60405161056f9190613e7b565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a9190613fc7565b611744565b6040516105ac9190614035565b60405180910390f35b3480156105c157600080fd5b506105dc60048036038101906105d79190614606565b6117f6565b6040516105e991906140cb565b60405180910390f35b3480156105fe57600080fd5b5061061960048036038101906106149190613fc7565b6118ae565b6040516106269190613e7b565b60405180910390f35b34801561063b57600080fd5b506106446118ce565b005b34801561065257600080fd5b5061065b61192b565b6040516106689190614035565b60405180910390f35b34801561067d57600080fd5b5061069860048036038101906106939190614633565b611955565b6040516106a59190614035565b60405180910390f35b3480156106ba57600080fd5b506106d560048036038101906106d091906145c6565b611984565b6040516106e29190613e7b565b60405180910390f35b3480156106f757600080fd5b50610712600480360381019061070d9190614606565b6119ee565b005b34801561072057600080fd5b50610729611a4f565b6040516107369190613fa5565b60405180910390f35b34801561074b57600080fd5b50610754611ae1565b60405161076191906145ab565b60405180910390f35b34801561077657600080fd5b50610791600480360381019061078c919061469f565b611ae8565b005b34801561079f57600080fd5b506107ba60048036038101906107b5919061471d565b611c69565b005b3480156107c857600080fd5b506107e360048036038101906107de919061474a565b611cca565b005b3480156107f157600080fd5b5061080c60048036038101906108079190613fc7565b611d2c565b6040516108199190613fa5565b60405180910390f35b34801561082e57600080fd5b506108496004803603810190610844919061456f565b611d70565b60405161085691906140cb565b60405180910390f35b34801561086b57600080fd5b50610886600480360381019061088191906145c6565b611d94565b005b34801561089457600080fd5b506108af60048036038101906108aa9190613fc7565b611dc8565b6040516108bc91906140cb565b60405180910390f35b3480156108d157600080fd5b506108da611de0565b6040516108e79190613fa5565b60405180910390f35b3480156108fc57600080fd5b50610917600480360381019061091291906147cd565b611e00565b6040516109249190613e7b565b60405180910390f35b34801561093957600080fd5b50610954600480360381019061094f9190613ecc565b611e94565b005b34801561096257600080fd5b5061096b611f53565b005b600061097882612086565b9050919050565b6109ab600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683610b55565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166302114ad783836040518363ffffffff1660e01b8152600401610a0892919061480d565b600060405180830381600087803b158015610a2257600080fd5b505af1158015610a36573d6000803e3d6000fd5b505050505050565b606060028054610a4d90614865565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7990614865565b8015610ac65780601f10610a9b57610100808354040283529160200191610ac6565b820191906000526020600020905b815481529060010190602001808311610aa957829003601f168201915b5050505050905090565b6000610adb82612100565b610b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1190614909565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b6082611744565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc89061499b565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bf061216c565b73ffffffffffffffffffffffffffffffffffffffff161480610c1f5750610c1e81610c1961216c565b611e00565b5b610c5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5590614a2d565b60405180910390fd5b610c688383612174565b505050565b604051806060016040528060358152602001615f486035913981565b6000600a80549050905090565b610caa6000801b610ca561216c565b611984565b610cb357600080fd5b80600c60016101000a81548161ffff021916908361ffff16021790555050565b600080845190508084511115610d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1590614a99565b60405180910390fd5b6000845111156110f457835161ffff16600c60019054906101000a900461ffff1661ffff161015610d4e57600080fd5b60005b818110156110b8573373ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e878481518110610dc157610dc0614ab9565b5b60200260200101516040518263ffffffff1660e01b8152600401610de591906140cb565b60206040518083038186803b158015610dfd57600080fd5b505afa158015610e11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e359190614afd565b73ffffffffffffffffffffffffffffffffffffffff161480610f9f5750600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148015610f9e57508373ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e878481518110610f1257610f11614ab9565b5b60200260200101516040518263ffffffff1660e01b8152600401610f3691906140cb565b60206040518083038186803b158015610f4e57600080fd5b505afa158015610f62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f869190614afd565b73ffffffffffffffffffffffffffffffffffffffff16145b5b610fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd590614b76565b60405180910390fd5b6000151560146000878481518110610ff957610ff8614ab9565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff1615151461105f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105690614be2565b60405180910390fd5b60016014600087848151811061107857611077614ab9565b5b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806110b090614c31565b915050610d51565b508351600c60018282829054906101000a900461ffff166110d99190614c7a565b92506101000a81548161ffff021916908361ffff1602179055505b61271061ffff16600c60019054906101000a900461ffff1661ffff168261111b600d61222d565b6111259190614cae565b61112f9190614cae565b1115611170576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116790614d50565b60405180910390fd5b60006111866000801b61118161216c565b611984565b1561119357839050611200565b8451826111a09190614d70565b67011c37937e0800006111b39190614da4565b3410156111f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ec90614e4a565b60405180910390fd5b6111fd61216c565b90505b60005b828110156114a457600015156013600089848151811061122657611225614ab9565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff1615151461128c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128390614eb6565b60405180910390fd5b6000308883815181106112a2576112a1614ab9565b5b6020026020010151336040516020016112bd93929190614f3f565b60405160208183030381529060405280519060200120905060006112fb828b85815181106112ee576112ed614ab9565b5b602002602001015161223b565b9050600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461138d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138490614fc8565b60405180910390fd5b60006113b3858b86815181106113a6576113a5614ab9565b5b60200260200101516122b0565b90508851841015611434577fcf0d25ae0ad65eb42e1958e0259f500e3102529a322cdea3090921be6ee9bec785828c87815181106113f4576113f3614ab9565b5b60200260200101518c888151811061140f5761140e614ab9565b5b60200260200101516040516114279493929190614fe8565b60405180910390a161148e565b7fcf0d25ae0ad65eb42e1958e0259f500e3102529a322cdea3090921be6ee9bec785828c878151811061146a57611469614ab9565b5b60200260200101516127116040516114859493929190615072565b60405180910390a15b505050808061149c90614c31565b915050611203565b50600192505050949350505050565b6114c46114be61216c565b82612321565b611503576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fa90615129565b60405180910390fd5b61150e8383836123ff565b505050565b6000806000838152602001908152602001600020600101549050919050565b61153c828261265b565b611561816001600085815260200190815260200160002061205690919063ffffffff16565b505050565b6000611571836117f6565b82106115b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a9906151bb565b60405180910390fd5b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6116158282612684565b61163a816001600085815260200190815260200160002061270790919063ffffffff16565b505050565b6116536000801b61164e61216c565b611984565b611692576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168990615227565b60405180910390fd5b61169a612737565b565b6116b783838360405180602001604052806000815250611cca565b505050565b60006116c6610c89565b8210611707576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fe906152b9565b60405180910390fd5b600a828154811061171b5761171a614ab9565b5b90600052602060002001549050919050565b6000600c60009054906101000a900460ff16905090565b6000806004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e49061534b565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185e906153dd565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60146020528060005260406000206000915054906101000a900460ff1681565b6118e26000801b6118dd61216c565b611984565b611921576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191890615227565b60405180910390fd5b6119296127d9565b565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600061197c826001600086815260200190815260200160002061287c90919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a026000801b6119fd61216c565b611984565b611a0b57600080fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060038054611a5e90614865565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8a90614865565b8015611ad75780601f10611aac57610100808354040283529160200191611ad7565b820191906000526020600020905b815481529060010190602001808311611aba57829003601f168201915b5050505050905090565b6000801b81565b611af061216c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5590615449565b60405180910390fd5b8060076000611b6b61216c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c1861216c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c5d9190613e7b565b60405180910390a35050565b611c7d6000801b611c7861216c565b611984565b611c8657600080fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611cdb611cd561216c565b83612321565b611d1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1190615129565b60405180910390fd5b611d2684848484612896565b50505050565b6060611d4a60126000848152602001908152602001600020546128f2565b604051602001611d5a9190615517565b6040516020818303038152906040529050919050565b6000611d8d60016000848152602001908152602001600020612a53565b9050919050565b611d9e8282612a68565b611dc3816001600085815260200190815260200160002061270790919063ffffffff16565b505050565b60126020528060005260406000206000915090505481565b6060604051806080016040528060488152602001615f7d60489139905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ec0600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683610b55565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f3eb166883836040518363ffffffff1660e01b8152600401611f1d92919061480d565b600060405180830381600087803b158015611f3757600080fd5b505af1158015611f4b573d6000803e3d6000fd5b505050505050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611fad57600080fd5b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051611ff59061556a565b60006040518083038185875af1925050503d8060008114612032576040519150601f19603f3d011682016040523d82523d6000602084013e612037565b606091505b505090508061204557600080fd5b50565b6120528282612a91565b5050565b600061207e836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612b71565b905092915050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806120f957506120f882612be1565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166121e783611744565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b60008060008061224a85612cc3565b80935081945082955050505060018684848460405160008152602001604052604051612279949392919061559b565b6020604051602081039080840390855afa15801561229b573d6000803e3d6000fd5b50505060206040510351935050505092915050565b6000806122bd600d61222d565b90506122c98482612d06565b6122d3600d612ed4565b82601260008381526020019081526020016000208190555060016013600085815260200190815260200160002060006101000a81548160ff0219169083151502179055508091505092915050565b600061232c82612100565b61236b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236290615652565b60405180910390fd5b600061237683611744565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806123e557508373ffffffffffffffffffffffffffffffffffffffff166123cd84610ad0565b73ffffffffffffffffffffffffffffffffffffffff16145b806123f657506123f58185611e00565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661241f82611744565b73ffffffffffffffffffffffffffffffffffffffff1614612475576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246c906156e4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156124e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124dc90615776565b60405180910390fd5b6124f0838383612eea565b6124fb600082612174565b6001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461254b9190614d70565b925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125a29190614cae565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b61266482611513565b6126758161267061216c565b6130ca565b61267f8383612a91565b505050565b61268c61216c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146126f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f090615808565b60405180910390fd5b6127038282613167565b5050565b600061272f836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613248565b905092915050565b61273f61172d565b61277e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277590615874565b60405180910390fd5b6000600c60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6127c261216c565b6040516127cf9190614035565b60405180910390a1565b6127e161172d565b15612821576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612818906158e0565b60405180910390fd5b6001600c60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861286561216c565b6040516128729190614035565b60405180910390a1565b600061288b8360000183613354565b60001c905092915050565b6128a18484846123ff565b6128ad848484846133c8565b6128ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e390615972565b60405180910390fd5b50505050565b6060600082141561293a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a4e565b600082905060005b6000821461296c57808061295590614c31565b915050600a8261296591906159c1565b9150612942565b60008167ffffffffffffffff81111561298857612987614152565b5b6040519080825280601f01601f1916602001820160405280156129ba5781602001600182028036833780820191505090505b5090505b60008514612a47576001826129d39190614d70565b9150600a856129e291906159f2565b60306129ee9190614cae565b60f81b818381518110612a0457612a03614ab9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a4091906159c1565b94506129be565b8093505050505b919050565b6000612a618260000161355f565b9050919050565b612a7182611513565b612a8281612a7d61216c565b6130ca565b612a8c8383613167565b505050565b612a9b8282611984565b612b6d57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612b1261216c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000612b7d8383613570565b612bd6578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612bdb565b600090505b92915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612cac57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612cbc5750612cbb82613593565b5b9050919050565b60008060006041845114612cd657600080fd5b60008060006020870151925060408701519150606087015160001a90508083839550955095505050509193909250565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6d90615a6f565b60405180910390fd5b612d7f81612100565b15612dbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db690615adb565b60405180910390fd5b612dcb60008383612eea565b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e1b9190614cae565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6001816000016000828254019250508190555050565b612ef583838361360d565b600073ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7e90615b47565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bed4e457826040518263ffffffff1660e01b8152600401612fe291906140cb565b60206040518083038186803b158015612ffa57600080fd5b505afa15801561300e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130329190615b7c565b156130c557600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166380b23bd1826040518263ffffffff1660e01b815260040161309291906140cb565b600060405180830381600087803b1580156130ac57600080fd5b505af11580156130c0573d6000803e3d6000fd5b505050505b505050565b6130d48282611984565b613163576130f98173ffffffffffffffffffffffffffffffffffffffff16601461361d565b6131078360001c602061361d565b604051602001613118929190615c41565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161315a9190613fa5565b60405180910390fd5b5050565b6131718282611984565b1561324457600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506131e961216c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000808360010160008481526020019081526020016000205490506000811461334857600060018261327a9190614d70565b90506000600186600001805490506132929190614d70565b905060008660000182815481106132ac576132ab614ab9565b5b90600052602060002001549050808760000184815481106132d0576132cf614ab9565b5b906000526020600020018190555083876001016000838152602001908152602001600020819055508660000180548061330c5761330b615c7b565b5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061334e565b60009150505b92915050565b60008183600001805490501161339f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161339690615d1c565b60405180910390fd5b8260000182815481106133b5576133b4614ab9565b5b9060005260206000200154905092915050565b60006133e98473ffffffffffffffffffffffffffffffffffffffff16613859565b15613552578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261341261216c565b8786866040518563ffffffff1660e01b81526004016134349493929190615d91565b602060405180830381600087803b15801561344e57600080fd5b505af192505050801561347f57506040513d601f19601f8201168201806040525081019061347c9190615df2565b60015b613502573d80600081146134af576040519150601f19603f3d011682016040523d82523d6000602084013e6134b4565b606091505b506000815114156134fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134f190615972565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613557565b600190505b949350505050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061360657506136058261386c565b5b9050919050565b6136188383836138e6565b505050565b6060600060028360026136309190614da4565b61363a9190614cae565b67ffffffffffffffff81111561365357613652614152565b5b6040519080825280601f01601f1916602001820160405280156136855781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106136bd576136bc614ab9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061372157613720614ab9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026137619190614da4565b61376b9190614cae565b90505b600181111561380b577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106137ad576137ac614ab9565b5b1a60f81b8282815181106137c4576137c3614ab9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061380490615e1f565b905061376e565b506000841461384f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161384690615e95565b60405180910390fd5b8091505092915050565b600080823b905060008111915050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806138df57506138de8261393e565b5b9050919050565b6138f18383836139a8565b6138f961172d565b15613939576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161393090615f27565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6139b3838383613abc565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156139f6576139f181613ac1565b613a35565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613a3457613a338382613b0a565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613a7857613a7381613c77565b613ab7565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613ab657613ab58282613d48565b5b5b505050565b505050565b600a80549050600b600083815260200190815260200160002081905550600a81908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613b17846117f6565b613b219190614d70565b9050600060096000848152602001908152602001600020549050818114613c06576000600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816009600083815260200190815260200160002081905550505b6009600084815260200190815260200160002060009055600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600a80549050613c8b9190614d70565b90506000600b60008481526020019081526020016000205490506000600a8381548110613cbb57613cba614ab9565b5b9060005260206000200154905080600a8381548110613cdd57613cdc614ab9565b5b906000526020600020018190555081600b600083815260200190815260200160002081905550600b600085815260200190815260200160002060009055600a805480613d2c57613d2b615c7b565b5b6001900381819060005260206000200160009055905550505050565b6000613d53836117f6565b905081600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806009600084815260200190815260200160002081905550505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613e1081613ddb565b8114613e1b57600080fd5b50565b600081359050613e2d81613e07565b92915050565b600060208284031215613e4957613e48613dd1565b5b6000613e5784828501613e1e565b91505092915050565b60008115159050919050565b613e7581613e60565b82525050565b6000602082019050613e906000830184613e6c565b92915050565b6000819050919050565b613ea981613e96565b8114613eb457600080fd5b50565b600081359050613ec681613ea0565b92915050565b60008060408385031215613ee357613ee2613dd1565b5b6000613ef185828601613eb7565b9250506020613f0285828601613eb7565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613f46578082015181840152602081019050613f2b565b83811115613f55576000848401525b50505050565b6000601f19601f8301169050919050565b6000613f7782613f0c565b613f818185613f17565b9350613f91818560208601613f28565b613f9a81613f5b565b840191505092915050565b60006020820190508181036000830152613fbf8184613f6c565b905092915050565b600060208284031215613fdd57613fdc613dd1565b5b6000613feb84828501613eb7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061401f82613ff4565b9050919050565b61402f81614014565b82525050565b600060208201905061404a6000830184614026565b92915050565b61405981614014565b811461406457600080fd5b50565b60008135905061407681614050565b92915050565b6000806040838503121561409357614092613dd1565b5b60006140a185828601614067565b92505060206140b285828601613eb7565b9150509250929050565b6140c581613e96565b82525050565b60006020820190506140e060008301846140bc565b92915050565b600061ffff82169050919050565b6140fd816140e6565b811461410857600080fd5b50565b60008135905061411a816140f4565b92915050565b60006020828403121561413657614135613dd1565b5b60006141448482850161410b565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61418a82613f5b565b810181811067ffffffffffffffff821117156141a9576141a8614152565b5b80604052505050565b60006141bc613dc7565b90506141c88282614181565b919050565b600067ffffffffffffffff8211156141e8576141e7614152565b5b602082029050602081019050919050565b600080fd5b600080fd5b600067ffffffffffffffff82111561421e5761421d614152565b5b61422782613f5b565b9050602081019050919050565b82818337600083830152505050565b600061425661425184614203565b6141b2565b905082815260208101848484011115614272576142716141fe565b5b61427d848285614234565b509392505050565b600082601f83011261429a5761429961414d565b5b81356142aa848260208601614243565b91505092915050565b60006142c66142c1846141cd565b6141b2565b905080838252602082019050602084028301858111156142e9576142e86141f9565b5b835b8181101561433057803567ffffffffffffffff81111561430e5761430d61414d565b5b80860161431b8982614285565b855260208501945050506020810190506142eb565b5050509392505050565b600082601f83011261434f5761434e61414d565b5b813561435f8482602086016142b3565b91505092915050565b600067ffffffffffffffff82111561438357614382614152565b5b602082029050602081019050919050565b60006143a76143a284614368565b6141b2565b905080838252602082019050602084028301858111156143ca576143c96141f9565b5b835b818110156143f357806143df8882613eb7565b8452602084019350506020810190506143cc565b5050509392505050565b600082601f8301126144125761441161414d565b5b8135614422848260208601614394565b91505092915050565b6000806000806080858703121561444557614444613dd1565b5b600085013567ffffffffffffffff81111561446357614462613dd6565b5b61446f8782880161433a565b945050602085013567ffffffffffffffff8111156144905761448f613dd6565b5b61449c878288016143fd565b935050604085013567ffffffffffffffff8111156144bd576144bc613dd6565b5b6144c9878288016143fd565b92505060606144da87828801614067565b91505092959194509250565b6000806000606084860312156144ff576144fe613dd1565b5b600061450d86828701614067565b935050602061451e86828701614067565b925050604061452f86828701613eb7565b9150509250925092565b6000819050919050565b61454c81614539565b811461455757600080fd5b50565b60008135905061456981614543565b92915050565b60006020828403121561458557614584613dd1565b5b60006145938482850161455a565b91505092915050565b6145a581614539565b82525050565b60006020820190506145c0600083018461459c565b92915050565b600080604083850312156145dd576145dc613dd1565b5b60006145eb8582860161455a565b92505060206145fc85828601614067565b9150509250929050565b60006020828403121561461c5761461b613dd1565b5b600061462a84828501614067565b91505092915050565b6000806040838503121561464a57614649613dd1565b5b60006146588582860161455a565b925050602061466985828601613eb7565b9150509250929050565b61467c81613e60565b811461468757600080fd5b50565b60008135905061469981614673565b92915050565b600080604083850312156146b6576146b5613dd1565b5b60006146c485828601614067565b92505060206146d58582860161468a565b9150509250929050565b60006146ea82613ff4565b9050919050565b6146fa816146df565b811461470557600080fd5b50565b600081359050614717816146f1565b92915050565b60006020828403121561473357614732613dd1565b5b600061474184828501614708565b91505092915050565b6000806000806080858703121561476457614763613dd1565b5b600061477287828801614067565b945050602061478387828801614067565b935050604061479487828801613eb7565b925050606085013567ffffffffffffffff8111156147b5576147b4613dd6565b5b6147c187828801614285565b91505092959194509250565b600080604083850312156147e4576147e3613dd1565b5b60006147f285828601614067565b925050602061480385828601614067565b9150509250929050565b600060408201905061482260008301856140bc565b61482f60208301846140bc565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061487d57607f821691505b6020821081141561489157614890614836565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006148f3602c83613f17565b91506148fe82614897565b604082019050919050565b60006020820190508181036000830152614922816148e6565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614985602183613f17565b915061499082614929565b604082019050919050565b600060208201905081810360008301526149b481614978565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000614a17603883613f17565b9150614a22826149bb565b604082019050919050565b60006020820190508181036000830152614a4681614a0a565b9050919050565b7f4600000000000000000000000000000000000000000000000000000000000000600082015250565b6000614a83600183613f17565b9150614a8e82614a4d565b602082019050919050565b60006020820190508181036000830152614ab281614a76565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050614af781614050565b92915050565b600060208284031215614b1357614b12613dd1565b5b6000614b2184828501614ae8565b91505092915050565b7f4500000000000000000000000000000000000000000000000000000000000000600082015250565b6000614b60600183613f17565b9150614b6b82614b2a565b602082019050919050565b60006020820190508181036000830152614b8f81614b53565b9050919050565b7f4400000000000000000000000000000000000000000000000000000000000000600082015250565b6000614bcc600183613f17565b9150614bd782614b96565b602082019050919050565b60006020820190508181036000830152614bfb81614bbf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614c3c82613e96565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614c6f57614c6e614c02565b5b600182019050919050565b6000614c85826140e6565b9150614c90836140e6565b925082821015614ca357614ca2614c02565b5b828203905092915050565b6000614cb982613e96565b9150614cc483613e96565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614cf957614cf8614c02565b5b828201905092915050565b7f4d41580000000000000000000000000000000000000000000000000000000000600082015250565b6000614d3a600383613f17565b9150614d4582614d04565b602082019050919050565b60006020820190508181036000830152614d6981614d2d565b9050919050565b6000614d7b82613e96565b9150614d8683613e96565b925082821015614d9957614d98614c02565b5b828203905092915050565b6000614daf82613e96565b9150614dba83613e96565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614df357614df2614c02565b5b828202905092915050565b7f2400000000000000000000000000000000000000000000000000000000000000600082015250565b6000614e34600183613f17565b9150614e3f82614dfe565b602082019050919050565b60006020820190508181036000830152614e6381614e27565b9050919050565b7f4300000000000000000000000000000000000000000000000000000000000000600082015250565b6000614ea0600183613f17565b9150614eab82614e6a565b602082019050919050565b60006020820190508181036000830152614ecf81614e93565b9050919050565b60008160601b9050919050565b6000614eee82614ed6565b9050919050565b6000614f0082614ee3565b9050919050565b614f18614f1382614014565b614ef5565b82525050565b6000819050919050565b614f39614f3482613e96565b614f1e565b82525050565b6000614f4b8286614f07565b601482019150614f5b8285614f28565b602082019150614f6b8284614f07565b601482019150819050949350505050565b7f53474e0000000000000000000000000000000000000000000000000000000000600082015250565b6000614fb2600383613f17565b9150614fbd82614f7c565b602082019050919050565b60006020820190508181036000830152614fe181614fa5565b9050919050565b6000608082019050614ffd6000830187614026565b61500a60208301866140bc565b61501760408301856140bc565b61502460608301846140bc565b95945050505050565b6000819050919050565b6000819050919050565b600061505c6150576150528461502d565b615037565b613e96565b9050919050565b61506c81615041565b82525050565b60006080820190506150876000830187614026565b61509460208301866140bc565b6150a160408301856140bc565b6150ae6060830184615063565b95945050505050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000615113603183613f17565b915061511e826150b7565b604082019050919050565b6000602082019050818103600083015261514281615106565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b60006151a5602b83613f17565b91506151b082615149565b604082019050919050565b600060208201905081810360008301526151d481615198565b9050919050565b7f494e56414c49445f524f4c450000000000000000000000000000000000000000600082015250565b6000615211600c83613f17565b915061521c826151db565b602082019050919050565b6000602082019050818103600083015261524081615204565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b60006152a3602c83613f17565b91506152ae82615247565b604082019050919050565b600060208201905081810360008301526152d281615296565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000615335602983613f17565b9150615340826152d9565b604082019050919050565b6000602082019050818103600083015261536481615328565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006153c7602a83613f17565b91506153d28261536b565b604082019050919050565b600060208201905081810360008301526153f6816153ba565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615433601983613f17565b915061543e826153fd565b602082019050919050565b6000602082019050818103600083015261546281615426565b9050919050565b600081905092915050565b7f697066733a2f2f516d537164463257646d6e36536b6d65335274676b4753516e60008201527f4779583669726462523154534e4143594a624a4c352f00000000000000000000602082015250565b60006154d0603683615469565b91506154db82615474565b603682019050919050565b60006154f182613f0c565b6154fb8185615469565b935061550b818560208601613f28565b80840191505092915050565b6000615522826154c3565b915061552e82846154e6565b915081905092915050565b600081905092915050565b50565b6000615554600083615539565b915061555f82615544565b600082019050919050565b600061557582615547565b9150819050919050565b600060ff82169050919050565b6155958161557f565b82525050565b60006080820190506155b0600083018761459c565b6155bd602083018661558c565b6155ca604083018561459c565b6155d7606083018461459c565b95945050505050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061563c602c83613f17565b9150615647826155e0565b604082019050919050565b6000602082019050818103600083015261566b8161562f565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b60006156ce602983613f17565b91506156d982615672565b604082019050919050565b600060208201905081810360008301526156fd816156c1565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615760602483613f17565b915061576b82615704565b604082019050919050565b6000602082019050818103600083015261578f81615753565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b60006157f2602f83613f17565b91506157fd82615796565b604082019050919050565b60006020820190508181036000830152615821816157e5565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061585e601483613f17565b915061586982615828565b602082019050919050565b6000602082019050818103600083015261588d81615851565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006158ca601083613f17565b91506158d582615894565b602082019050919050565b600060208201905081810360008301526158f9816158bd565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061595c603283613f17565b915061596782615900565b604082019050919050565b6000602082019050818103600083015261598b8161594f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006159cc82613e96565b91506159d783613e96565b9250826159e7576159e6615992565b5b828204905092915050565b60006159fd82613e96565b9150615a0883613e96565b925082615a1857615a17615992565b5b828206905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615a59602083613f17565b9150615a6482615a23565b602082019050919050565b60006020820190508181036000830152615a8881615a4c565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615ac5601c83613f17565b9150615ad082615a8f565b602082019050919050565b60006020820190508181036000830152615af481615ab8565b9050919050565b7f4200000000000000000000000000000000000000000000000000000000000000600082015250565b6000615b31600183613f17565b9150615b3c82615afb565b602082019050919050565b60006020820190508181036000830152615b6081615b24565b9050919050565b600081519050615b7681614673565b92915050565b600060208284031215615b9257615b91613dd1565b5b6000615ba084828501615b67565b91505092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000615bdf601783615469565b9150615bea82615ba9565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000615c2b601183615469565b9150615c3682615bf5565b601182019050919050565b6000615c4c82615bd2565b9150615c5882856154e6565b9150615c6382615c1e565b9150615c6f82846154e6565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000615d06602283613f17565b9150615d1182615caa565b604082019050919050565b60006020820190508181036000830152615d3581615cf9565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615d6382615d3c565b615d6d8185615d47565b9350615d7d818560208601613f28565b615d8681613f5b565b840191505092915050565b6000608082019050615da66000830187614026565b615db36020830186614026565b615dc060408301856140bc565b8181036060830152615dd28184615d58565b905095945050505050565b600081519050615dec81613e07565b92915050565b600060208284031215615e0857615e07613dd1565b5b6000615e1684828501615ddd565b91505092915050565b6000615e2a82613e96565b91506000821415615e3e57615e3d614c02565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615e7f602083613f17565b9150615e8a82615e49565b602082019050919050565b60006020820190508181036000830152615eae81615e72565b9050919050565b7f4552433732315061757361626c653a20746f6b656e207472616e73666572207760008201527f68696c6520706175736564000000000000000000000000000000000000000000602082015250565b6000615f11602b83613f17565b9150615f1c82615eb5565b604082019050919050565b60006020820190508181036000830152615f4081615f04565b905091905056fe697066733a2f2f516d5443585332693633326b6359674d6f5672674e796462396f3339487a74374839574733544258546d6141477168747470733a2f2f6d61727367656e657369732d776562332e6865726f6b756170702e636f6d2f6d657461646174612f4d61727347656e657369734d61727469616e732e6a736f6ea2646970667358221220745c0dc3cfc665fe815c24296abbf9da6c20396e4aec4b7dbfe61d75fb73f88964736f6c63430008090033

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

00000000000000000000000010235f2d820bdac032fdeea25f9a57eb0890c3e0000000000000000000000000e6ddbea6749cc793ba12ac22bca03c3f1fcf3a80

-----Decoded View---------------
Arg [0] : _walletAddress (address): 0x10235f2d820bdaC032fDeEA25f9A57EB0890c3E0
Arg [1] : _marsCoreAddress (address): 0xe6DDbEa6749Cc793bA12Ac22BcA03c3f1Fcf3A80

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000010235f2d820bdac032fdeea25f9a57eb0890c3e0
Arg [1] : 000000000000000000000000e6ddbea6749cc793ba12ac22bca03c3f1fcf3a80


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

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