ETH Price: $3,503.09 (-0.18%)
Gas: 2 Gwei

CryptoCities (⬢City)
 

Overview

TokenID

5933

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

CryptoCities was developed in 2017 and launched officially in February 2018 as one of the playable NFT's. It was recently upgraded to ERC-721 and a hard limit of 25,000 cities was introduced.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CryptoCities

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 100000 runs

Other Settings:
default evmVersion
File 1 of 15 : CryptoCities.sol
//      ___                     _            ___  _  _    _            
//     / __\_ __  _   _  _ __  | |_  ___    / __\(_)| |_ (_)  ___  ___ 
//    / /  | '__|| | | || '_ \ | __|/ _ \  / /   | || __|| | / _ \/ __|
//   / /___| |   | |_| || |_) || |_| (_) |/ /___ | || |_ | ||  __/\__ \
//   \____/|_|    \__, || .__/  \__|\___/ \____/ |_| \__||_| \___||___/
//                |___/ |_|                                            
//
// CryptoCities is an ERC721 compliant smart contract for this project:
// (https://cryptocities.net)  
//
// In addition to a standard ERC721 interface it also includes:
//  - a maker / taker off-chain marketplace which executes final trades here
//  - batch functions for most token read functions
//  - a limited supply of 25000 tokens
// 
//  Discord:
//   https://discord.gg/Y4mhwWg 
//
//  Bug Bounty:
//   Please see the details of our bug bounty program below.  
//   https://cryptocities.net/bug_bounty
//
//  Disclaimer:
//   We take the greatest of care when making our smart contracts but this is crypto and the future 
//   is always unknown. Even if it is exciting and full of wonderful possibilities, anything can happen,  
//   blockchains will evolve, vulnerabilities can arise, and markets can go up and down. CryptoCities and its  
//   owners accept no liability for any issues relating to the use of this contract or any losses that may occur. 
//   Please see our full terms here: 
//   https://cryptocities.net/terms


// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "./base/ERC721Batchable.sol";

contract CryptoCities is ERC721Batchable 
{
    // there can only ever be a max of this many tokens in the contract
    uint public constant tokenLimit = 25000;

    // the base url used for all meta data 
    // likely to be stored on IPFS over time   
    string private _baseTokenURI;

    // the opensea proxy registry contract (can be changed if this registry ever moves to a new contract)
    // 0xa5409ec958C83C3f309868babACA7c86DCB077c1  mainnet
    // 0xF57B2c51dED3A29e6891aba85459d600256Cf317  rinkeby
    // 0x0000000000000000000000000000000000000000  local
    address private _proxyRegistryAddress;

    // only authorized minters can mint tokens
    // this will originally be set to a swapping contract to allow users to swap their tokens to this new contract 
    mapping (address => bool) public isMinter;    

    // pausing the market disables the built-in maker/taker offer system 
    // it does not affect normal ERC721 transfers 
    bool public marketPaused;

    // the marketplace fee for any internal paid trades (stored in basis points eg. 250 = 2.5% fee) 
    uint16 public marketFee;

    // the marketplace witness is used to validate marketplace offers 
    address private _marketWitness;

    // offer that can no longer be used any more
    mapping (bytes32 => bool) private _cancelledOrCompletedOffers;

    // support for ERC2981
    uint16 private _royaltyFee;
    address private _royaltyReciever;

    constructor(address _owner, address _recovery, address proxyRegistryAddress) ERC721("CryptoCities", unicode"⬢City")    
    {
        // set the owner, recovery & treasury addresses
        transferOwnership(_owner);
        treasury = _owner;
        recovery = _recovery;

        // set the meta base url
        _baseTokenURI = "https://cryptocities.net/meta/";

        // set the open sea proxy registry address
        _proxyRegistryAddress = proxyRegistryAddress;

        // market starts disabled
        marketPaused = true;       
        marketFee = 250;    
    }


    /// BASE URI

    // base uri is where the metadata lives
    // only the owner can change this

    function setBaseURI(string memory baseTokenURI) external onlyOwner {
        _baseTokenURI = baseTokenURI;
    }
    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }
    function contractURI() public pure returns (string memory) {
        return "https://cryptocities.net/meta/cities_contract";
    }

    /// PROXY REGISTRY

    // registers a proxy address for OpenSea or others
    // can only be changed by the contract owner
    // setting address to 0 will disable the proxy 

    function setProxyRegistry(address proxyRegistry) external onlyOwner { 

        // check the contract address is correct (will revert if not)
        if(proxyRegistry!= address(0)) {
            ProxyRegistry(proxyRegistry).proxies(address(0));
        }

        _proxyRegistryAddress = proxyRegistry;    
    }

    // this override allows us to whitelist user's OpenSea proxy accounts to enable gas-less listings
    function isApprovedForAll(address token_owner, address operator) public view override returns (bool)
    {
        // whitelist OpenSea proxy contract for easy trading.
        if(_proxyRegistryAddress!= address(0)) {
            ProxyRegistry proxyRegistry = ProxyRegistry(_proxyRegistryAddress);
            if (address(proxyRegistry.proxies(token_owner)) == operator) {
                return true;
            }
        }

        return super.isApprovedForAll(token_owner, operator);
    }


    /// MINTING

    // only authorized minters can mint
    // can't mint more tokens than the token limit
    
    // ERC721 standard checks:
    // can't mint while the contract is paused (checked in _beforeTokenTransfer())
    // token id's can't already exist 
    // cant mint to address(0)
    // if 'to' refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.

    // emitted when a minter's authorization changes
    event MinterSet(address indexed minter, bool auth);

    // only allows an authorized minter to call the function
    modifier onlyMinters() 
    {
        require(isMinter[_msgSender()]==true, "caller not a minter");
        _;
    }

    // changes a minter's authorization
    function setMinter(address minter, bool authorized) external onlyOwner 
    { 
        isMinter[minter] = authorized;        
        emit MinterSet(minter, authorized);        
    }

    // mint a single token
    function mint(address to, uint256 tokenId) external onlyMinters  
    {        
        require(totalSupply()<tokenLimit, "token limit reached");
        _safeMint(to, tokenId);
    }

    // mint a batch of tokens
    // (gas: this function can run out of gas if too many id's are provided
    //       limiting to 25 will currently fit in the block gas limit but this may change in future)
    function mintBatch(address to, uint256[] memory tokenIds) external onlyMinters     
    {       
        require(tokenIds.length <= 25, "more than 25 ids");
        require(totalSupply()+tokenIds.length <= tokenLimit, "batch exceeds token limit");

        for (uint256 i = 0; i < tokenIds.length; i++) {  
            // we safe mint the first token          
            if(i==0) _safeMint(to, tokenIds[i]);

            // then we assume the rest are safe because they are going to the same receiver  
            else _mint(to, tokenIds[i]);      
        }         
    }

    /// BURNING

    // only the contract owner can burn tokens it owns
    // the contract owner can't burn someone elses tokens
    // normal users can't burn tokens

    // ERC721 standard checks:
    // can't burn while the contract is paused (checked in _beforeTokenTransfer())
    // the token id must exist

    function burn(uint256 tokenId) external onlyOwner 
    {
         require(ownerOf(tokenId) == owner(), "token owner not contract owner");
        _burn(tokenId);
    }


    /// MARKETPLACE

    // this contract includes a maker / taker offerplace
    // (similar to those seen in OpenSea, 0x Protocol and other NFT projects) 
    //
    // offers are made by makers off-chain and filled by callers on-chain
    // makers do this by signing their offer with their wallet 
    // smart contracts can't be makers because they can't sign messages
    // if a witness address is set then it must sign the offer hash too (eg. the website marketplace)

    // there are two types of offers depending on whether the maker specifies a taker in their offer:
    // maker / taker       (peer-to-peer offer:  two users agreeing to trade items)
    // maker / no taker    (open offer:  one user listing their items in the marketplace)

    // if eth is paid then it will always be on the taker side (the maker never pays eth in this simplified model)
    // a market fee is charged if eth is paid
    // trading tokens with no eth is free and no fee is deducted

    // allowed exchanges:

    //   maker tokens  > <  eth                          (maker sells their tokens to anyone)
    //   maker tokens  >                                 (maker gives their tokens away to anyone)

    //   maker tokens  >    taker                        (maker gives their tokens to a specific taker)
    //   maker tokens  > <  taker tokens                     .. for specific tokens back
    //   maker tokens  > <  taker tokens & eth               .. for specific tokens and eth back 
    //   maker tokens  > <  taker eth                        .. for eth only

    //   maker           <  taker tokens                 (taker gives their tokens to the maker)
    //   maker           <  taker tokens & eth               .. and with eth    

    event OfferAccepted(bytes32 indexed hash, address indexed maker, address indexed taker, uint[] makerIds, uint[] takerIds, uint takerWei, uint marketFee);    
    event OfferCancelled(bytes32 indexed hash);
    
    struct Offer {
        address maker;
        address taker;
        uint256[] makerIds;        
        uint256[] takerIds;
        uint256 takerWei;
        uint256 expiry;
        uint256 nonce;
    }

    // pausing the market will stop offers from being able to be accepted (they can still be generated or cancelled)
    function pauseMarket(bool pauseTrading) external onlyOwner {
        marketPaused = pauseTrading;
    }

    // the market fee is set in basis points (eg. 250 basis points = 2.5%)
    function setMarketFee(uint16 basisPoints) external onlyOwner {
        require(basisPoints <= 10000);
        marketFee = basisPoints;
    }

    // if a market witness is set then it will need to sign all offers too (set to 0 to disable)
    function setMarketWitness(address newWitness) external onlyOwner {
        _marketWitness = newWitness;
    }

    // recovers the signer address from a offer hash and signature
    function signerOfHash(bytes32 offer_hash, bytes memory signature) public pure returns (address signer){
        require(signature.length == 65, "sig wrong length");

        bytes32 geth_modified_hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", offer_hash));
        bytes32 r;
        bytes32 s;
        uint8 v;

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

        if (v < 27) {
            v += 27;
        }

        require(v == 27 || v == 28, "bad sig v");

        return ecrecover(geth_modified_hash, v, r, s);
    }
 

    // this generates a hash of an offer that can then be signed by a maker
    // the offer has to have basic validity before it can be hashed
    // if checking ids then the tokens need to be owned by the parties too 
    function hashOffer(Offer memory offer, bool checkIds) public view returns (bytes32){

        // the maker can't be 0
        require(offer.maker!=address(0), "maker is 0");

        // maker and taker can't be the same
        require(offer.maker!=offer.taker, "same maker / taker");

        // the offer must not be expired yet
        require(block.timestamp < offer.expiry, "expired");

        // token id must be in the offer
        require(offer.makerIds.length>0 || offer.takerIds.length>0, "no ids");

        // if checking ids then maker must own the maker token ids
        if(checkIds){
            for(uint i=0; i<offer.makerIds.length; i++){
                require(ownerOf(offer.makerIds[i])==offer.maker, "bad maker ids");
            }
        }

        // if no taker has been specified (open offer - i.e. typical marketplace listing)
        if(offer.taker==address(0)){

            // then there can't be taker token ids in the offer
            require(offer.takerIds.length==0, "taker ids with no taker");
        }

        // if a taker has been specified (peer-to-peer offer - i.e. direct trade between two users)
        else{

            if(checkIds){
                // then the taker must own all the taker token ids   
                for(uint i=0; i<offer.takerIds.length; i++){
                    require(ownerOf(offer.takerIds[i])==offer.taker, "bad taker ids");
                }
            }
        }

        // now return the hash
        return keccak256(abi.encode(
            offer.maker,
            offer.taker,
            keccak256(abi.encodePacked(offer.makerIds)),            
            keccak256(abi.encodePacked(offer.takerIds)),
            offer.takerWei,
            offer.expiry,
            offer.nonce,
            address(this)        // including the contract address prevents cross-contract replays  
        ));
    }

    // an offer is valid if:
    //  it's maker / taker details are valid 
    //  it has been signed by the maker
    //  it has not been cancelled or completed yet
    //  the parties own their tokens (if checking ids)
    //  the witness has signed it (if witnessing is enabled)
    //  the trade is valid (if requested)
    function validOffer(Offer memory offer, bytes memory signature, bytes memory witnessSignature, bool checkIds, bool checkTradeValid, uint checkValue) external view returns (bool){

        // will revert if the offer or signer is not valid or checks fail
        bytes32 _offer_hash = _getValidOfferHash(offer, signature, checkIds, checkTradeValid, checkValue);

        // check the witness if needed
        _validWitness(_offer_hash, witnessSignature);

        return true;
    }

    // if a market witness is set then they need to sign the offer hash too
    function _validWitness(bytes32 _offer_hash, bytes memory witnessSignature) internal view {
        if(_marketWitness!=address(0)){       
            require(_marketWitness == signerOfHash(_offer_hash, witnessSignature), "wrong witness");  
        }
    }

    // gets the hash of an offer and checks that it has been signed by the maker
    function _getValidOfferHash(Offer memory offer, bytes memory signature, bool checkIds, bool checkTradeValid, uint checkValue) internal view returns (bytes32){

        // get the offer signer 
        bytes32 _offer_hash = hashOffer(offer, checkIds);
        address _signer = signerOfHash(_offer_hash, signature);
        
        // the signer must be the maker
        require(offer.maker==_signer, "maker not signer");
        
        // the offer can't be cancelled or completed already
        require(_cancelledOrCompletedOffers[_offer_hash]!=true, "offer cancelled or completed");

        // if checking the trade then we need to check the taker side too
        if(checkTradeValid){

            address caller = _msgSender();

            // no trading when paused
            require(!marketPaused, "marketplace paused");

            // caller can't be the maker
            require(caller!=offer.maker, "caller is the maker");

            // if there is a taker specified then they must be the caller
            require(caller==offer.taker || offer.taker==address(0), "caller not the taker");

            // check the correct wei has been provided by the taker (can be 0)
            require(checkValue==offer.takerWei, "wrong payment sent");
        }

        return _offer_hash;
    }
      
    
    // (gas: these functions can run out of gas if too many id's are provided
    //       not limiting them here because block gas limits change over time and we don't know what they will be in future)

    // stops the offer hash from being usable in future
    // can only be cancelled by the maker or the contract owner    
    function cancelOffer(Offer memory offer) external {
        address caller = _msgSender();
        require(caller == offer.maker || caller == owner(), "caller not maker or contract owner");

        // get the offer hash 
        bytes32 _offer_hash = hashOffer(offer, false);
                
        // set the offer hash as cancelled
        _cancelledOrCompletedOffers[_offer_hash]=true;
    
        emit OfferCancelled(_offer_hash);       
    }

    // fills an offer
    
    // offers can't be traded when the market is paused or the contract is paused
    // offers must be valid and signed by the maker 
    // the caller has to be the taker or can be an unknown party if no taker is set
    // eth may or may not be required by the offer
    // tokens must belong to the makers and takers

    function acceptOffer(Offer memory offer, bytes memory signature, bytes memory witnessSignature) external payable reentrancyGuard {
        
        // CHECKS
        
        // will revert if the offer or signer is not valid 
        // will also check token ids to make sure they belong to the parties
        // will check the caller and eth matches the offer taker details 
        bytes32 _offer_hash = _getValidOfferHash(offer, signature, true, true, msg.value);
       
        // check the witness if needed
        _validWitness(_offer_hash, witnessSignature);
       
        // EFFECTS

        address caller = _msgSender();

        // transfer the maker tokens to the caller
        for(uint i=0; i<offer.makerIds.length; i++){
             _safeTransfer(offer.maker, caller, offer.makerIds[i], "");
        }

        // transfer the taker tokens to the maker 
        for(uint i=0; i<offer.takerIds.length; i++){
             _safeTransfer(caller, offer.maker, offer.takerIds[i], "");
        }

        // set the offer has as completed (stops the offer from being reused)
        _cancelledOrCompletedOffers[_offer_hash]=true;

        // INTERACTIONS

        // transfer the payment if one is present
        uint _fee = 0;
        if(msg.value>0){

            // calculate the marketplace fee (stored as basis points)
            // eg. 250 basis points is 2.5%  (250/10000) 
            _fee = msg.value * marketFee / 10000;
            uint _earned = msg.value - _fee;

            // safety check (should never be hit)
            assert(_fee>=0 && _earned>=0 && _earned<= msg.value && _fee+_earned==msg.value);
            
            // send the payment to the maker
            //   security note: calls to a maker should only revert if insufficient gas is sent by the caller/taker
            //   makers can't be smart contracts because makers need to sign the offer hash for us
            //    - currently only EOA's (externally owned accounts) can sign a message on the ethereum network
            //    - smart contracts don't have a private key and can't sign a message, so they can't be makers here
            //    - offers for specific makers can be blacklisted in the marketplace if required

            (bool success, ) = offer.maker.call{value:_earned}("");    
            require(success, "payment to maker failed");            
        }

        emit OfferAccepted(_offer_hash, offer.maker, caller, offer.makerIds, offer.takerIds, offer.takerWei, _fee);
    }  
    

    /// ERC2981 support

    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == 0x2a55205a  // ERC2981
               || super.supportsInterface(interfaceId);
    }

    function royaltyInfo(uint256, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount)
    {
        return (_royaltyReciever, (salePrice * _royaltyFee) / 10000);
    }

    // the royalties fee is set in basis points (eg. 250 basis points = 2.5%)
    function setRoyalties(address newReceiver, uint16 basisPoints) external onlyOwner {
        require(basisPoints <= 10000);
        _royaltyReciever = newReceiver;
        _royaltyFee = basisPoints;
    }
}

// used to whitelist proxy accounts of OpenSea users so that they are automatically able to trade any item on OpenSea
contract OwnableDelegateProxy {}
contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 2 of 15 : ERC721Batchable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "../base/OwnableRecoverable.sol";

// ERC721Batchable wraps multiple commonly used base contracts into a single contract
// 
// it includes:
//  ERC721 with Enumerable
//  contract ownership & recovery
//  contract pausing
//  treasury 
//  batching

abstract contract ERC721Batchable is ERC721Enumerable, Pausable, OwnableRecoverable 
{   
    // the treasure address that can make withdrawals from the contract balance
    address public treasury;

    constructor()  
    {
       
    }

    // used to stop a contract function from being reentrant-called 
    bool private _reentrancyLock = false;
    modifier reentrancyGuard {
        require(!_reentrancyLock, "ReentrancyGuard: reentrant call");
 
        _reentrancyLock = true;
        _;
        _reentrancyLock = false;
    }


    /// PAUSING

    // only the contract owner can pause and unpause
    // can't pause if already paused
    // can't unpause if already unpaused
    // disables minting, burning, transfers (including marketplace accepted offers)

    function pause() external virtual onlyOwner {        
        _pause();        
    }
    function unpause() external virtual onlyOwner {
        _unpause();
    }

    // this hook is called by _mint, _burn & _transfer 
    // it allows us to block these actions while the contract is paused
    // also prevent transfers to the contract address
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
        require(to != address(this), "cant transfer to the contract address");
        
        super._beforeTokenTransfer(from, to, tokenId);

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


    /// TREASURY

    // can only be called by the contract owner
    // withdrawals can only be made to the treasury account

    // allows for a dedicated address to be used for withdrawals
    function setTreasury(address newTreasury) external onlyOwner { 
        require(newTreasury!=address(0), "cant be 0 address");
        treasury = newTreasury;
    }

    // funds can be withdrawn to the treasury account for safe keeping
    function treasuryOut(uint amount) external onlyOwner reentrancyGuard {
        
        // can withdraw any amount up to the account balance (0 will withdraw everything)
        uint balance = address(this).balance;
        if(amount == 0 || amount > balance) amount = balance;

        // make the withdrawal
        (bool success, ) = treasury.call{value:amount}("");
        require(success, "transfer failed");
    }
    
    // the owner can pay funds in at any time although this is not needed
    // perhaps the contract needs to hold a certain balance in future for some external requirement
    function treasuryIn() external payable onlyOwner {

    }


    /// BATCHING

    // all normal ERC721 read functions can be batched
    // this allows for any user or app to look up all their tokens in a single call or via paging

    function tokenByIndexBatch(uint256[] memory indexes) public view virtual returns (uint256[] memory) {
        uint256[] memory batch = new uint256[](indexes.length);

        for (uint256 i = 0; i < indexes.length; i++) {
            batch[i] = tokenByIndex(indexes[i]);
        }

        return batch; 
    }

    function balanceOfBatch(address[] memory owners) external view virtual returns (uint256[] memory) {
        uint256[] memory batch = new uint256[](owners.length);

        for (uint256 i = 0; i < owners.length; i++) {
            batch[i] = balanceOf(owners[i]);
        }

        return batch;        
    }

    function ownerOfBatch(uint256[] memory tokenIds) external view virtual returns (address[] memory) {  
        address[] memory batch = new address[](tokenIds.length);

        for (uint256 i = 0; i < tokenIds.length; i++) {
            batch[i] = ownerOf(tokenIds[i]);
        }

        return batch;
    }

    function tokenURIBatch(uint256[] memory tokenIds) external view virtual returns (string[] memory) {
        string[] memory batch = new string[](tokenIds.length);

        for (uint256 i = 0; i < tokenIds.length; i++) {
            batch[i] = tokenURI(tokenIds[i]);
        }

        return batch;
    }

    function getApprovedBatch(uint256[] memory tokenIds) external view virtual returns (address[] memory) {
        address[] memory batch = new address[](tokenIds.length);

        for (uint256 i = 0; i < tokenIds.length; i++) {
            batch[i] = getApproved(tokenIds[i]);
        }

        return batch;
    }

    function tokenOfOwnerByIndexBatch(address owner_, uint256[] memory indexes) external view virtual returns (uint256[] memory) {
        uint256[] memory batch = new uint256[](indexes.length);

        for (uint256 i = 0; i < indexes.length; i++) {
            batch[i] = tokenOfOwnerByIndex(owner_, indexes[i]);
        }

        return batch;
    }

}

File 3 of 15 : OwnableRecoverable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.7;

import "@openzeppelin/contracts/utils/Context.sol";
/**
 * This is a modified version of the standard OpenZeppelin Ownable contract that allows for a recovery address to be used to recover ownership
 * 
 * 
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract OwnableRecoverable is Context {
    address private _owner;

    // the recovery address can be used to recover ownership if the owner wallet is ever lost
    // it should be a cold-storage wallet stored in a vault and never used for any other operation
    // it should be set in the parent constructor
    // if ownership moves to a new organization then the recovery address should be moved too
    address public recovery;

    // initializes the contract setting the deployer as the initial owner.
    constructor () {
        _setOwner(_msgSender());
    }

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

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

    modifier onlyOwnerOrRecovery() {
        require(_msgSender() == owner() || _msgSender() == recovery, "caller is not the owner or recovery");
        _;
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwnerOrRecovery {
        require(newOwner != address(0), "cant use 0 address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        _owner = newOwner;
    }   

    // the recovery address can be changed by the owner or the recovery address
    function setRecovery(address newRecovery) public virtual onlyOwnerOrRecovery {   
        require(newRecovery != address(0), "cant use 0 address");
        recovery = newRecovery;
    }
    

}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 6 of 15 : 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 7 of 15 : 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 8 of 15 : 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 9 of 15 : 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 10 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 15 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 13 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 14 of 15 : 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 15 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_recovery","type":"address"},{"internalType":"address","name":"proxyRegistryAddress","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":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"bool","name":"auth","type":"bool"}],"name":"MinterSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"hash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"taker","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"makerIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"takerIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"takerWei","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"marketFee","type":"uint256"}],"name":"OfferAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"hash","type":"bytes32"}],"name":"OfferCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":[{"components":[{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"uint256[]","name":"makerIds","type":"uint256[]"},{"internalType":"uint256[]","name":"takerIds","type":"uint256[]"},{"internalType":"uint256","name":"takerWei","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct CryptoCities.Offer","name":"offer","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"witnessSignature","type":"bytes"}],"name":"acceptOffer","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"owners","type":"address[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"uint256[]","name":"makerIds","type":"uint256[]"},{"internalType":"uint256[]","name":"takerIds","type":"uint256[]"},{"internalType":"uint256","name":"takerWei","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct CryptoCities.Offer","name":"offer","type":"tuple"}],"name":"cancelOffer","outputs":[],"stateMutability":"nonpayable","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":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"getApprovedBatch","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"uint256[]","name":"makerIds","type":"uint256[]"},{"internalType":"uint256[]","name":"takerIds","type":"uint256[]"},{"internalType":"uint256","name":"takerWei","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct CryptoCities.Offer","name":"offer","type":"tuple"},{"internalType":"bool","name":"checkIds","type":"bool"}],"name":"hashOffer","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token_owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"ownerOfBatch","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"pauseTrading","type":"bool"}],"name":"pauseMarket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recovery","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"basisPoints","type":"uint16"}],"name":"setMarketFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWitness","type":"address"}],"name":"setMarketWitness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"bool","name":"authorized","type":"bool"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyRegistry","type":"address"}],"name":"setProxyRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRecovery","type":"address"}],"name":"setRecovery","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newReceiver","type":"address"},{"internalType":"uint16","name":"basisPoints","type":"uint16"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTreasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"offer_hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"signerOfHash","outputs":[{"internalType":"address","name":"signer","type":"address"}],"stateMutability":"pure","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":"uint256[]","name":"indexes","type":"uint256[]"}],"name":"tokenByIndexBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenLimit","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":"address","name":"owner_","type":"address"},{"internalType":"uint256[]","name":"indexes","type":"uint256[]"}],"name":"tokenOfOwnerByIndexBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"tokenURIBatch","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryIn","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"treasuryOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"uint256[]","name":"makerIds","type":"uint256[]"},{"internalType":"uint256[]","name":"takerIds","type":"uint256[]"},{"internalType":"uint256","name":"takerWei","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct CryptoCities.Offer","name":"offer","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"witnessSignature","type":"bytes"},{"internalType":"bool","name":"checkIds","type":"bool"},{"internalType":"bool","name":"checkTradeValid","type":"bool"},{"internalType":"uint256","name":"checkValue","type":"uint256"}],"name":"validOffer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

6080604052600c805460ff60a01b191690553480156200001e57600080fd5b506040516200636838038062006368833981016040819052620000419162000359565b604080518082018252600c81526b43727970746f43697469657360a01b602080830191825283518085019094526007845266e2aca24369747960c81b908401528151919291620000949160009162000296565b508051620000aa90600190602084019062000296565b5050600a80546001600160a81b031916610100330217905550620000ce836200017d565b600c80546001600160a01b038086166001600160a01b031992831617909255600b80549285169290911691909117905560408051808201909152601e8082527f68747470733a2f2f63727970746f6369746965732e6e65742f6d6574612f000060209092019182526200014491600d9162000296565b50600e80546001600160a01b0319166001600160a01b039290921691909117905550506010805462ffffff191661fa01179055620003e0565b62000195600a5461010090046001600160a01b031690565b6001600160a01b0316336001600160a01b03161480620001c85750600b546001600160a01b0316336001600160a01b0316145b620002265760405162461bcd60e51b815260206004820152602360248201527f63616c6c6572206973206e6f7420746865206f776e6572206f72207265636f7660448201526265727960e81b60648201526084015b60405180910390fd5b6001600160a01b038116620002735760405162461bcd60e51b815260206004820152601260248201527163616e74207573652030206164647265737360701b60448201526064016200021d565b600a8054610100600160a81b0319166101006001600160a01b0384160217905550565b828054620002a490620003a3565b90600052602060002090601f016020900481019282620002c8576000855562000313565b82601f10620002e357805160ff191683800117855562000313565b8280016001018555821562000313579182015b8281111562000313578251825591602001919060010190620002f6565b506200032192915062000325565b5090565b5b8082111562000321576000815560010162000326565b80516001600160a01b03811681146200035457600080fd5b919050565b6000806000606084860312156200036f57600080fd5b6200037a846200033c565b92506200038a602085016200033c565b91506200039a604085016200033c565b90509250925092565b600181811c90821680620003b857607f821691505b60208210811415620003da57634e487b7160e01b600052602260045260246000fd5b50919050565b615f7880620003f06000396000f3fe6080604052600436106103555760003560e01c806361d027b3116101bb578063aa271e1a116100f7578063ddceafa911610095578063f0d85c891161006f578063f0d85c8914610a0e578063f0f4426014610a2e578063f2fde38b14610a4e578063ff1a625014610a6e57600080fd5b8063ddceafa9146109ac578063e8a3d485146109d9578063e985e9c5146109ee57600080fd5b8063b88d4fde116100d1578063b88d4fde1461092c578063bda801171461094c578063c87b56dd1461096c578063cf456ae71461098c57600080fd5b8063aa271e1a146108af578063adfdeef9146108df578063b0a6d279146108ff57600080fd5b806380de96bf116101645780638da5cb5b1161013e5780638da5cb5b1461082a5780638f15afbd1461085a57806395d89b411461087a578063a22cb4651461088f57600080fd5b806380de96bf146107c85780638456cb59146107e85780638d38e365146107fd57600080fd5b806370a082311161019557806370a082311461076857806370e1f87b1461078857806375ceb341146107a857600080fd5b806361d027b3146107135780636352211e146107405780636992f91f1461076057600080fd5b8063363473ff116102955780634f6ccce71161023357806356c7627e1161020d57806356c7627e146106b2578063578ecb62146106c85780635c975abb146106db5780635ec390d8146106f357600080fd5b80634f6ccce714610652578063554a93fa1461067257806355f804b31461069257600080fd5b806340c10f191161026f57806340c10f19146105d257806342842e0e146105f257806342966c6814610612578063458c738e1461063257600080fd5b8063363473ff146105765780633a283bd2146105a35780633f4ba83a146105bd57600080fd5b806315cfb2cd1161030257806323b872dd116102dc57806323b872dd146104ca5780632a55205a146104ea5780632f745c59146105365780633545b6871461055657600080fd5b806315cfb2cd1461046b57806318160ddd1461048b5780631ef80359146104aa57600080fd5b8063095ea7b311610333578063095ea7b3146103f65780630c222ee5146104185780630ccf21561461043857600080fd5b806301ffc9a71461035a57806306fdde031461038f578063081812fc146103b1575b600080fd5b34801561036657600080fd5b5061037a610375366004615687565b610a8e565b60405190151581526020015b60405180910390f35b34801561039b57600080fd5b506103a4610aea565b6040516103869190615b8a565b3480156103bd57600080fd5b506103d16103cc3660046158f6565b610b7c565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610386565b34801561040257600080fd5b5061041661041136600461552d565b610c5b565b005b34801561042457600080fd5b50610416610433366004615501565b610de8565b34801561044457600080fd5b5060105461045890610100900461ffff1681565b60405161ffff9091168152602001610386565b34801561047757600080fd5b506104166104863660046158db565b610efb565b34801561049757600080fd5b506008545b604051908152602001610386565b3480156104b657600080fd5b5061049c6104c536600461575c565b610fcf565b3480156104d657600080fd5b506104166104e53660046153cf565b611531565b3480156104f657600080fd5b5061050a61050536600461590f565b6115d2565b6040805173ffffffffffffffffffffffffffffffffffffffff9093168352602083019190915201610386565b34801561054257600080fd5b5061049c61055136600461552d565b61161e565b34801561056257600080fd5b506103d161057136600461564a565b6116ed565b34801561058257600080fd5b5061059661059136600461547c565b6118f4565b6040516103869190615b3e565b3480156105af57600080fd5b5060105461037a9060ff1681565b3480156105c957600080fd5b506104166119a4565b3480156105de57600080fd5b506104166105ed36600461552d565b611a35565b3480156105fe57600080fd5b5061041661060d3660046153cf565b611b34565b34801561061e57600080fd5b5061041661062d3660046158f6565b611b4f565b34801561063e57600080fd5b5061059661064d366004615559565b611c86565b34801561065e57600080fd5b5061049c61066d3660046158f6565b611d34565b34801561067e57600080fd5b5061059661068d3660046155fa565b611df2565b34801561069e57600080fd5b506104166106ad3660046156de565b611e99565b3480156106be57600080fd5b5061049c6161a881565b6104166106d63660046157a1565b611f33565b3480156106e757600080fd5b50600a5460ff1661037a565b3480156106ff57600080fd5b5061041661070e36600461562f565b6122c2565b34801561071f57600080fd5b50600c546103d19073ffffffffffffffffffffffffffffffffffffffff1681565b34801561074c57600080fd5b506103d161075b3660046158f6565b61237a565b61041661242c565b34801561077457600080fd5b5061049c610783366004615379565b6124b3565b34801561079457600080fd5b506104166107a3366004615727565b612581565b3480156107b457600080fd5b506104166107c336600461547c565b6126c7565b3480156107d457600080fd5b5061037a6107e3366004615829565b61289f565b3480156107f457600080fd5b506104166128c9565b34801561080957600080fd5b5061081d6108183660046155fa565b612958565b6040516103869190615abe565b34801561083657600080fd5b50600a54610100900473ffffffffffffffffffffffffffffffffffffffff166103d1565b34801561086657600080fd5b50610416610875366004615379565b612a0a565b34801561088657600080fd5b506103a4612adf565b34801561089b57600080fd5b506104166108aa3660046154cc565b612aee565b3480156108bb57600080fd5b5061037a6108ca366004615379565b600f6020526000908152604090205460ff1681565b3480156108eb57600080fd5b506104166108fa366004615379565b612c05565b34801561090b57600080fd5b5061091f61091a3660046155fa565b612d8f565b6040516103869190615a64565b34801561093857600080fd5b50610416610947366004615410565b612e50565b34801561095857600080fd5b5061091f6109673660046155fa565b612ef8565b34801561097857600080fd5b506103a46109873660046158f6565b612fac565b34801561099857600080fd5b506104166109a73660046154cc565b6130bc565b3480156109b857600080fd5b50600b546103d19073ffffffffffffffffffffffffffffffffffffffff1681565b3480156109e557600080fd5b506103a46131cd565b3480156109fa57600080fd5b5061037a610a09366004615396565b6131ed565b348015610a1a57600080fd5b50610416610a29366004615379565b613319565b348015610a3a57600080fd5b50610416610a49366004615379565b6134ed565b348015610a5a57600080fd5b50610416610a69366004615379565b613638565b348015610a7a57600080fd5b50610416610a893660046158f6565b61380c565b60007f2a55205a000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161480610ae45750610ae482613a64565b92915050565b606060008054610af990615d0a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2590615d0a565b8015610b725780601f10610b4757610100808354040283529160200191610b72565b820191906000526020600020905b815481529060010190602001808311610b5557829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610c32576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610c668261237a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c29565b3373ffffffffffffffffffffffffffffffffffffffff82161480610d4d5750610d4d81336131ed565b610dd9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c29565b610de38383613aba565b505050565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314610e6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b6127108161ffff161115610e8257600080fd5b601280547fffffffffffffffffffff00000000000000000000000000000000000000000000166201000073ffffffffffffffffffffffffffffffffffffffff94909416939093027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000169290921761ffff91909116179055565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314610f82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b6127108161ffff161115610f9557600080fd5b6010805461ffff909216610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ff909216919091179055565b815160009073ffffffffffffffffffffffffffffffffffffffff16611050576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6d616b65722069732030000000000000000000000000000000000000000000006044820152606401610c29565b826020015173ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614156110ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f73616d65206d616b6572202f2074616b657200000000000000000000000000006044820152606401610c29565b8260a00151421061115b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f65787069726564000000000000000000000000000000000000000000000000006044820152606401610c29565b6000836040015151118061117457506000836060015151115b6111da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f6e6f2069647300000000000000000000000000000000000000000000000000006044820152606401610c29565b81156112c25760005b8360400151518110156112c057836000015173ffffffffffffffffffffffffffffffffffffffff166112318560400151838151811061122457611224615e67565b602002602001015161237a565b73ffffffffffffffffffffffffffffffffffffffff16146112ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f626164206d616b657220696473000000000000000000000000000000000000006044820152606401610c29565b806112b881615d5e565b9150506111e3565b505b602083015173ffffffffffffffffffffffffffffffffffffffff16611353576060830151511561134e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f74616b6572206964732077697468206e6f2074616b65720000000000000000006044820152606401610c29565b61142e565b811561142e5760005b83606001515181101561142c57836020015173ffffffffffffffffffffffffffffffffffffffff1661139d8560600151838151811061122457611224615e67565b73ffffffffffffffffffffffffffffffffffffffff161461141a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f6261642074616b657220696473000000000000000000000000000000000000006044820152606401610c29565b8061142481615d5e565b91505061135c565b505b82600001518360200151846040015160405160200161144d91906159b6565b60405160208183030381529060405280519060200120856060015160405160200161147891906159b6565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201206080808b015160a0808d015160c0808f015173ffffffffffffffffffffffffffffffffffffffff9c8d16978a01979097529a909916958701959095526060860196909652840152908201929092529283019190915260e0820152306101008201526101200160405160208183030381529060405280519060200120905092915050565b61153b3382613b5a565b6115c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c29565b610de3838383613c9d565b601254600090819073ffffffffffffffffffffffffffffffffffffffff6201000082041690612710906116099061ffff1686615c8a565b6116139190615c76565b915091509250929050565b6000611629836124b3565b82106116b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610c29565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b6000815160411461175a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f7369672077726f6e67206c656e677468000000000000000000000000000000006044820152606401610c29565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101849052600090605c01604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152918152815160209283012091850151908501516060860151929350909160001a601b8110156117f2576117ef601b82615c51565b90505b8060ff16601b148061180757508060ff16601c145b61186d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f62616420736967207600000000000000000000000000000000000000000000006044820152606401610c29565b60408051600081526020810180835286905260ff831691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa1580156118c0573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015198975050505050505050565b60606000825167ffffffffffffffff81111561191257611912615e96565b60405190808252806020026020018201604052801561193b578160200160208202803683370190505b50905060005b835181101561199c5761196d8585838151811061196057611960615e67565b602002602001015161161e565b82828151811061197f5761197f615e67565b60209081029190910101528061199481615d5e565b915050611941565b509392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314611a2b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b611a33613f0f565b565b336000908152600f602052604090205460ff161515600114611ab3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f63616c6c6572206e6f742061206d696e746572000000000000000000000000006044820152606401610c29565b6161a8611abf60085490565b10611b26576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f746f6b656e206c696d69742072656163686564000000000000000000000000006044820152606401610c29565b611b308282613ff0565b5050565b610de383838360405180602001604052806000815250612e50565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314611bd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b600a54610100900473ffffffffffffffffffffffffffffffffffffffff16611bfd8261237a565b73ffffffffffffffffffffffffffffffffffffffff1614611c7a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f746f6b656e206f776e6572206e6f7420636f6e7472616374206f776e657200006044820152606401610c29565b611c838161400a565b50565b60606000825167ffffffffffffffff811115611ca457611ca4615e96565b604051908082528060200260200182016040528015611ccd578160200160208202803683370190505b50905060005b8351811015611d2d57611cfe848281518110611cf157611cf1615e67565b60200260200101516124b3565b828281518110611d1057611d10615e67565b602090810291909101015280611d2581615d5e565b915050611cd3565b5092915050565b6000611d3f60085490565b8210611dcd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610c29565b60088281548110611de057611de0615e67565b90600052602060002001549050919050565b60606000825167ffffffffffffffff811115611e1057611e10615e96565b604051908082528060200260200182016040528015611e39578160200160208202803683370190505b50905060005b8351811015611d2d57611e6a848281518110611e5d57611e5d615e67565b6020026020010151611d34565b828281518110611e7c57611e7c615e67565b602090810291909101015280611e9181615d5e565b915050611e3f565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314611f20576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b8051611b3090600d9060208401906150f7565b600c5474010000000000000000000000000000000000000000900460ff1615611fb8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c29565b600c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905560006120078484600180346140e3565b90506120138183614446565b3360005b856040015151811015612072576120608660000151838860400151848151811061204357612043615e67565b602002602001015160405180602001604052806000815250614500565b8061206a81615d5e565b915050612017565b5060005b8560600151518110156120b4576120a28287600001518860600151848151811061204357612043615e67565b806120ac81615d5e565b915050612076565b50600082815260116020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790553415612216576010546127109061210c90610100900461ffff1634615c8a565b6121169190615c76565b905060006121248234615cc7565b905034811115801561213e57503461213c8284615c39565b145b61214a5761214a615dab565b865160405160009173ffffffffffffffffffffffffffffffffffffffff169083908381818185875af1925050503d80600081146121a3576040519150601f19603f3d011682016040523d82523d6000602084013e6121a8565b606091505b5050905080612213576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f7061796d656e7420746f206d616b6572206661696c65640000000000000000006044820152606401610c29565b50505b8173ffffffffffffffffffffffffffffffffffffffff16866000015173ffffffffffffffffffffffffffffffffffffffff16847f9db12f62cd31155414a5f4e35083d1f6111e06a89feec6d8d9a222c80937621b89604001518a606001518b608001518760405161228a9493929190615b51565b60405180910390a45050600c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16905550505050565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314612349576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b601080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610ae4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c29565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314611a33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b600073ffffffffffffffffffffffffffffffffffffffff8216612558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c29565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b8051339073ffffffffffffffffffffffffffffffffffffffff168114806125c75750600a5473ffffffffffffffffffffffffffffffffffffffff82811661010090920416145b612653576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f63616c6c6572206e6f74206d616b6572206f7220636f6e7472616374206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610c29565b6000612660836000610fcf565b60008181526011602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555191925082917f3f9cb69d022b6ec319f86f2df848bcce01f2fc51c9f86396779a8081cf6ca2ea9190a2505050565b336000908152600f602052604090205460ff161515600114612745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f63616c6c6572206e6f742061206d696e746572000000000000000000000000006044820152606401610c29565b6019815111156127b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f6d6f7265207468616e20323520696473000000000000000000000000000000006044820152606401610c29565b6161a881516127bf60085490565b6127c99190615c39565b1115612831576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6261746368206578636565647320746f6b656e206c696d6974000000000000006044820152606401610c29565b60005b8151811015610de3578061286a576128658383838151811061285857612858615e67565b6020026020010151613ff0565b61288d565b61288d8383838151811061288057612880615e67565b60200260200101516145a3565b8061289781615d5e565b915050612834565b6000806128af88888787876140e3565b90506128bb8187614446565b506001979650505050505050565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314612950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b611a33614771565b60606000825167ffffffffffffffff81111561297657612976615e96565b6040519080825280602002602001820160405280156129a957816020015b60608152602001906001900390816129945790505b50905060005b8351811015611d2d576129da8482815181106129cd576129cd615e67565b6020026020010151612fac565b8282815181106129ec576129ec615e67565b60200260200101819052508080612a0290615d5e565b9150506129af565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314612a91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b6010805473ffffffffffffffffffffffffffffffffffffffff9092166301000000027fffffffffffffffffff0000000000000000000000000000000000000000ffffff909216919091179055565b606060018054610af990615d0a565b73ffffffffffffffffffffffffffffffffffffffff8216331415612b6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c29565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314612c8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b73ffffffffffffffffffffffffffffffffffffffff811615612d48576040517fc45527910000000000000000000000000000000000000000000000000000000081526000600482015273ffffffffffffffffffffffffffffffffffffffff82169063c45527919060240160206040518083038186803b158015612d0e57600080fd5b505afa158015612d22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d4691906156c1565b505b600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60606000825167ffffffffffffffff811115612dad57612dad615e96565b604051908082528060200260200182016040528015612dd6578160200160208202803683370190505b50905060005b8351811015611d2d57612e07848281518110612dfa57612dfa615e67565b6020026020010151610b7c565b828281518110612e1957612e19615e67565b73ffffffffffffffffffffffffffffffffffffffff9092166020928302919091019091015280612e4881615d5e565b915050612ddc565b612e5a3383613b5a565b612ee6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c29565b612ef284848484614500565b50505050565b60606000825167ffffffffffffffff811115612f1657612f16615e96565b604051908082528060200260200182016040528015612f3f578160200160208202803683370190505b50905060005b8351811015611d2d57612f6384828151811061122457611224615e67565b828281518110612f7557612f75615e67565b73ffffffffffffffffffffffffffffffffffffffff9092166020928302919091019091015280612fa481615d5e565b915050612f45565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16613060576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c29565b600061306a614831565b9050600081511161308a57604051806020016040528060008152506130b5565b8061309484614840565b6040516020016130a59291906159ec565b6040516020818303038152906040525b9392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314613143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b73ffffffffffffffffffffffffffffffffffffffff82166000818152600f602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f583b0aa0e528532caf4b907c11d7a8158a122fe2a6fb80cd9b09776ebea8d92d910160405180910390a25050565b60606040518060600160405280602d8152602001615f16602d9139905090565b600e5460009073ffffffffffffffffffffffffffffffffffffffff16156132de57600e546040517fc455279100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015291821691841690829063c45527919060240160206040518083038186803b15801561327e57600080fd5b505afa158015613292573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132b691906156c1565b73ffffffffffffffffffffffffffffffffffffffff1614156132dc576001915050610ae4565b505b73ffffffffffffffffffffffffffffffffffffffff80841660009081526005602090815260408083209386168352929052205460ff166130b5565b600a54610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061339d5750600b5473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b613429576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f63616c6c6572206973206e6f7420746865206f776e6572206f72207265636f7660448201527f65727900000000000000000000000000000000000000000000000000000000006064820152608401610c29565b73ffffffffffffffffffffffffffffffffffffffff81166134a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f63616e74207573652030206164647265737300000000000000000000000000006044820152606401610c29565b600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314613574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b73ffffffffffffffffffffffffffffffffffffffff81166135f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f63616e74206265203020616464726573730000000000000000000000000000006044820152606401610c29565b600c80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600a54610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806136bc5750600b5473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b613748576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f63616c6c6572206973206e6f7420746865206f776e6572206f72207265636f7660448201527f65727900000000000000000000000000000000000000000000000000000000006064820152608401610c29565b73ffffffffffffffffffffffffffffffffffffffff81166137c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f63616e74207573652030206164647265737300000000000000000000000000006044820152606401610c29565b600a80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff84160217905550565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314613893576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b600c5474010000000000000000000000000000000000000000900460ff1615613918576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c29565b600c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790554781158061396457508082115b1561396d578091505b600c5460405160009173ffffffffffffffffffffffffffffffffffffffff169084908381818185875af1925050503d80600081146139c7576040519150601f19603f3d011682016040523d82523d6000602084013e6139cc565b606091505b5050905080613a37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7472616e73666572206661696c656400000000000000000000000000000000006044820152606401610c29565b5050600c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16905550565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610ae45750610ae482614972565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190613b148261237a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16613c0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610c29565b6000613c168361237a565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480613c8557508373ffffffffffffffffffffffffffffffffffffffff16613c6d84610b7c565b73ffffffffffffffffffffffffffffffffffffffff16145b80613c955750613c9581856131ed565b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16613cbd8261237a565b73ffffffffffffffffffffffffffffffffffffffff1614613d60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610c29565b73ffffffffffffffffffffffffffffffffffffffff8216613e02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c29565b613e0d838383614a55565b613e18600082613aba565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805460019290613e4e908490615cc7565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290613e89908490615c39565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a5460ff16613f7b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610c29565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b611b30828260405180602001604052806000815250614b98565b60006140158261237a565b905061402381600084614a55565b61402e600083613aba565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600360205260408120805460019290614064908490615cc7565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000806140f08786610fcf565b905060006140fe82886116ed565b90508073ffffffffffffffffffffffffffffffffffffffff16886000015173ffffffffffffffffffffffffffffffffffffffff1614614199576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f6d616b6572206e6f74207369676e6572000000000000000000000000000000006044820152606401610c29565b60008281526011602052604090205460ff16151560011415614217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f6f666665722063616e63656c6c6564206f7220636f6d706c65746564000000006044820152606401610c29565b841561443b57601054339060ff161561428c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6d61726b6574706c6163652070617573656400000000000000000000000000006044820152606401610c29565b885173ffffffffffffffffffffffffffffffffffffffff82811691161415614310576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f63616c6c657220697320746865206d616b6572000000000000000000000000006044820152606401610c29565b886020015173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614806143665750602089015173ffffffffffffffffffffffffffffffffffffffff16155b6143cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f63616c6c6572206e6f74207468652074616b65720000000000000000000000006044820152606401610c29565b88608001518514614439576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77726f6e67207061796d656e742073656e7400000000000000000000000000006044820152606401610c29565b505b509695505050505050565b6010546301000000900473ffffffffffffffffffffffffffffffffffffffff1615611b305761447582826116ed565b6010546301000000900473ffffffffffffffffffffffffffffffffffffffff908116911614611b30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f77726f6e67207769746e657373000000000000000000000000000000000000006044820152606401610c29565b61450b848484613c9d565b61451784848484614c3b565b612ef2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c29565b73ffffffffffffffffffffffffffffffffffffffff8216614620576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c29565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16156146ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c29565b6146b860008383614a55565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906146ee908490615c39565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600a5460ff16156147de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610c29565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613fc63390565b6060600d8054610af990615d0a565b60608161488057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156148aa578061489481615d5e565b91506148a39050600a83615c76565b9150614884565b60008167ffffffffffffffff8111156148c5576148c5615e96565b6040519080825280601f01601f1916602001820160405280156148ef576020820181803683370190505b5090505b8415613c9557614904600183615cc7565b9150614911600a86615d97565b61491c906030615c39565b60f81b81838151811061493157614931615e67565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061496b600a86615c76565b94506148f3565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480614a0557507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610ae457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610ae4565b73ffffffffffffffffffffffffffffffffffffffff8216301415614afb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f63616e74207472616e7366657220746f2074686520636f6e747261637420616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610c29565b614b06838383614e3a565b600a5460ff1615610de3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f746f6b656e207472616e73666572207768696c6520636f6e747261637420706160448201527f75736564000000000000000000000000000000000000000000000000000000006064820152608401610c29565b614ba283836145a3565b614baf6000848484614c3b565b610de3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c29565b600073ffffffffffffffffffffffffffffffffffffffff84163b15614e2f576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290614cb2903390899088908890600401615a1b565b602060405180830381600087803b158015614ccc57600080fd5b505af1925050508015614d1a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252614d17918101906156a4565b60015b614de4573d808015614d48576040519150601f19603f3d011682016040523d82523d6000602084013e614d4d565b606091505b508051614ddc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c29565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050613c95565b506001949350505050565b73ffffffffffffffffffffffffffffffffffffffff8316614ea257614e9d81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b614edf565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614614edf57614edf8382614f40565b73ffffffffffffffffffffffffffffffffffffffff8216614f0357610de381614ff7565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610de357610de382826150a6565b60006001614f4d846124b3565b614f579190615cc7565b600083815260076020526040902054909150808214614fb75773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b60085460009061500990600190615cc7565b6000838152600960205260408120546008805493945090928490811061503157615031615e67565b90600052602060002001549050806008838154811061505257615052615e67565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061508a5761508a615e38565b6001900381819060005260206000200160009055905550505050565b60006150b1836124b3565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461510390615d0a565b90600052602060002090601f016020900481019282615125576000855561516b565b82601f1061513e57805160ff191683800117855561516b565b8280016001018555821561516b579182015b8281111561516b578251825591602001919060010190615150565b5061517792915061517b565b5090565b5b80821115615177576000815560010161517c565b600067ffffffffffffffff8311156151aa576151aa615e96565b6151db60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601615bc6565b90508281528383830111156151ef57600080fd5b828260208301376000602084830101529392505050565b803561521181615ec5565b919050565b600082601f83011261522757600080fd5b8135602061523c61523783615c15565b615bc6565b80838252828201915082860187848660051b890101111561525c57600080fd5b60005b8581101561527b5781358452928401929084019060010161525f565b5090979650505050505050565b8035801515811461521157600080fd5b600082601f8301126152a957600080fd5b6130b583833560208501615190565b600060e082840312156152ca57600080fd5b6152d2615b9d565b90506152dd82615206565b81526152eb60208301615206565b6020820152604082013567ffffffffffffffff8082111561530b57600080fd5b61531785838601615216565b6040840152606084013591508082111561533057600080fd5b5061533d84828501615216565b6060830152506080820135608082015260a082013560a082015260c082013560c082015292915050565b803561ffff8116811461521157600080fd5b60006020828403121561538b57600080fd5b81356130b581615ec5565b600080604083850312156153a957600080fd5b82356153b481615ec5565b915060208301356153c481615ec5565b809150509250929050565b6000806000606084860312156153e457600080fd5b83356153ef81615ec5565b925060208401356153ff81615ec5565b929592945050506040919091013590565b6000806000806080858703121561542657600080fd5b843561543181615ec5565b9350602085013561544181615ec5565b925060408501359150606085013567ffffffffffffffff81111561546457600080fd5b61547087828801615298565b91505092959194509250565b6000806040838503121561548f57600080fd5b823561549a81615ec5565b9150602083013567ffffffffffffffff8111156154b657600080fd5b6154c285828601615216565b9150509250929050565b600080604083850312156154df57600080fd5b82356154ea81615ec5565b91506154f860208401615288565b90509250929050565b6000806040838503121561551457600080fd5b823561551f81615ec5565b91506154f860208401615367565b6000806040838503121561554057600080fd5b823561554b81615ec5565b946020939093013593505050565b6000602080838503121561556c57600080fd5b823567ffffffffffffffff81111561558357600080fd5b8301601f8101851361559457600080fd5b80356155a261523782615c15565b80828252848201915084840188868560051b87010111156155c257600080fd5b600094505b838510156155ee5780356155da81615ec5565b8352600194909401939185019185016155c7565b50979650505050505050565b60006020828403121561560c57600080fd5b813567ffffffffffffffff81111561562357600080fd5b613c9584828501615216565b60006020828403121561564157600080fd5b6130b582615288565b6000806040838503121561565d57600080fd5b82359150602083013567ffffffffffffffff81111561567b57600080fd5b6154c285828601615298565b60006020828403121561569957600080fd5b81356130b581615ee7565b6000602082840312156156b657600080fd5b81516130b581615ee7565b6000602082840312156156d357600080fd5b81516130b581615ec5565b6000602082840312156156f057600080fd5b813567ffffffffffffffff81111561570757600080fd5b8201601f8101841361571857600080fd5b613c9584823560208401615190565b60006020828403121561573957600080fd5b813567ffffffffffffffff81111561575057600080fd5b613c95848285016152b8565b6000806040838503121561576f57600080fd5b823567ffffffffffffffff81111561578657600080fd5b615792858286016152b8565b9250506154f860208401615288565b6000806000606084860312156157b657600080fd5b833567ffffffffffffffff808211156157ce57600080fd5b6157da878388016152b8565b945060208601359150808211156157f057600080fd5b6157fc87838801615298565b9350604086013591508082111561581257600080fd5b5061581f86828701615298565b9150509250925092565b60008060008060008060c0878903121561584257600080fd5b863567ffffffffffffffff8082111561585a57600080fd5b6158668a838b016152b8565b9750602089013591508082111561587c57600080fd5b6158888a838b01615298565b9650604089013591508082111561589e57600080fd5b506158ab89828a01615298565b9450506158ba60608801615288565b92506158c860808801615288565b915060a087013590509295509295509295565b6000602082840312156158ed57600080fd5b6130b582615367565b60006020828403121561590857600080fd5b5035919050565b6000806040838503121561592257600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b8381101561596157815187529582019590820190600101615945565b509495945050505050565b60008151808452615984816020860160208601615cde565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b815160009082906020808601845b838110156159e0578151855293820193908201906001016159c4565b50929695505050505050565b600083516159fe818460208801615cde565b835190830190615a12818360208801615cde565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152615a5a608083018461596c565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015615ab257835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101615a80565b50909695505050505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015615b31577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0888603018452615b1f85835161596c565b94509285019290850190600101615ae5565b5092979650505050505050565b6020815260006130b56020830184615931565b608081526000615b646080830187615931565b8281036020840152615b768187615931565b604084019590955250506060015292915050565b6020815260006130b5602083018461596c565b60405160e0810167ffffffffffffffff81118282101715615bc057615bc0615e96565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715615c0d57615c0d615e96565b604052919050565b600067ffffffffffffffff821115615c2f57615c2f615e96565b5060051b60200190565b60008219821115615c4c57615c4c615dda565b500190565b600060ff821660ff84168060ff03821115615c6e57615c6e615dda565b019392505050565b600082615c8557615c85615e09565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615cc257615cc2615dda565b500290565b600082821015615cd957615cd9615dda565b500390565b60005b83811015615cf9578181015183820152602001615ce1565b83811115612ef25750506000910152565b600181811c90821680615d1e57607f821691505b60208210811415615d58577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615d9057615d90615dda565b5060010190565b600082615da657615da6615e09565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114611c8357600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611c8357600080fdfe68747470733a2f2f63727970746f6369746965732e6e65742f6d6574612f6369746965735f636f6e7472616374a2646970667358221220b5e6b9c49ba6b4493143f134e3ee82303842f91d4e33c64c84d5e1c18904f80464736f6c63430008070033000000000000000000000000f1be63031668e26dc2112bc7208ba49d6c4df5640000000000000000000000005dd897c829b7f885f59f48115fa784e31eec9ed1000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

Deployed Bytecode

0x6080604052600436106103555760003560e01c806361d027b3116101bb578063aa271e1a116100f7578063ddceafa911610095578063f0d85c891161006f578063f0d85c8914610a0e578063f0f4426014610a2e578063f2fde38b14610a4e578063ff1a625014610a6e57600080fd5b8063ddceafa9146109ac578063e8a3d485146109d9578063e985e9c5146109ee57600080fd5b8063b88d4fde116100d1578063b88d4fde1461092c578063bda801171461094c578063c87b56dd1461096c578063cf456ae71461098c57600080fd5b8063aa271e1a146108af578063adfdeef9146108df578063b0a6d279146108ff57600080fd5b806380de96bf116101645780638da5cb5b1161013e5780638da5cb5b1461082a5780638f15afbd1461085a57806395d89b411461087a578063a22cb4651461088f57600080fd5b806380de96bf146107c85780638456cb59146107e85780638d38e365146107fd57600080fd5b806370a082311161019557806370a082311461076857806370e1f87b1461078857806375ceb341146107a857600080fd5b806361d027b3146107135780636352211e146107405780636992f91f1461076057600080fd5b8063363473ff116102955780634f6ccce71161023357806356c7627e1161020d57806356c7627e146106b2578063578ecb62146106c85780635c975abb146106db5780635ec390d8146106f357600080fd5b80634f6ccce714610652578063554a93fa1461067257806355f804b31461069257600080fd5b806340c10f191161026f57806340c10f19146105d257806342842e0e146105f257806342966c6814610612578063458c738e1461063257600080fd5b8063363473ff146105765780633a283bd2146105a35780633f4ba83a146105bd57600080fd5b806315cfb2cd1161030257806323b872dd116102dc57806323b872dd146104ca5780632a55205a146104ea5780632f745c59146105365780633545b6871461055657600080fd5b806315cfb2cd1461046b57806318160ddd1461048b5780631ef80359146104aa57600080fd5b8063095ea7b311610333578063095ea7b3146103f65780630c222ee5146104185780630ccf21561461043857600080fd5b806301ffc9a71461035a57806306fdde031461038f578063081812fc146103b1575b600080fd5b34801561036657600080fd5b5061037a610375366004615687565b610a8e565b60405190151581526020015b60405180910390f35b34801561039b57600080fd5b506103a4610aea565b6040516103869190615b8a565b3480156103bd57600080fd5b506103d16103cc3660046158f6565b610b7c565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610386565b34801561040257600080fd5b5061041661041136600461552d565b610c5b565b005b34801561042457600080fd5b50610416610433366004615501565b610de8565b34801561044457600080fd5b5060105461045890610100900461ffff1681565b60405161ffff9091168152602001610386565b34801561047757600080fd5b506104166104863660046158db565b610efb565b34801561049757600080fd5b506008545b604051908152602001610386565b3480156104b657600080fd5b5061049c6104c536600461575c565b610fcf565b3480156104d657600080fd5b506104166104e53660046153cf565b611531565b3480156104f657600080fd5b5061050a61050536600461590f565b6115d2565b6040805173ffffffffffffffffffffffffffffffffffffffff9093168352602083019190915201610386565b34801561054257600080fd5b5061049c61055136600461552d565b61161e565b34801561056257600080fd5b506103d161057136600461564a565b6116ed565b34801561058257600080fd5b5061059661059136600461547c565b6118f4565b6040516103869190615b3e565b3480156105af57600080fd5b5060105461037a9060ff1681565b3480156105c957600080fd5b506104166119a4565b3480156105de57600080fd5b506104166105ed36600461552d565b611a35565b3480156105fe57600080fd5b5061041661060d3660046153cf565b611b34565b34801561061e57600080fd5b5061041661062d3660046158f6565b611b4f565b34801561063e57600080fd5b5061059661064d366004615559565b611c86565b34801561065e57600080fd5b5061049c61066d3660046158f6565b611d34565b34801561067e57600080fd5b5061059661068d3660046155fa565b611df2565b34801561069e57600080fd5b506104166106ad3660046156de565b611e99565b3480156106be57600080fd5b5061049c6161a881565b6104166106d63660046157a1565b611f33565b3480156106e757600080fd5b50600a5460ff1661037a565b3480156106ff57600080fd5b5061041661070e36600461562f565b6122c2565b34801561071f57600080fd5b50600c546103d19073ffffffffffffffffffffffffffffffffffffffff1681565b34801561074c57600080fd5b506103d161075b3660046158f6565b61237a565b61041661242c565b34801561077457600080fd5b5061049c610783366004615379565b6124b3565b34801561079457600080fd5b506104166107a3366004615727565b612581565b3480156107b457600080fd5b506104166107c336600461547c565b6126c7565b3480156107d457600080fd5b5061037a6107e3366004615829565b61289f565b3480156107f457600080fd5b506104166128c9565b34801561080957600080fd5b5061081d6108183660046155fa565b612958565b6040516103869190615abe565b34801561083657600080fd5b50600a54610100900473ffffffffffffffffffffffffffffffffffffffff166103d1565b34801561086657600080fd5b50610416610875366004615379565b612a0a565b34801561088657600080fd5b506103a4612adf565b34801561089b57600080fd5b506104166108aa3660046154cc565b612aee565b3480156108bb57600080fd5b5061037a6108ca366004615379565b600f6020526000908152604090205460ff1681565b3480156108eb57600080fd5b506104166108fa366004615379565b612c05565b34801561090b57600080fd5b5061091f61091a3660046155fa565b612d8f565b6040516103869190615a64565b34801561093857600080fd5b50610416610947366004615410565b612e50565b34801561095857600080fd5b5061091f6109673660046155fa565b612ef8565b34801561097857600080fd5b506103a46109873660046158f6565b612fac565b34801561099857600080fd5b506104166109a73660046154cc565b6130bc565b3480156109b857600080fd5b50600b546103d19073ffffffffffffffffffffffffffffffffffffffff1681565b3480156109e557600080fd5b506103a46131cd565b3480156109fa57600080fd5b5061037a610a09366004615396565b6131ed565b348015610a1a57600080fd5b50610416610a29366004615379565b613319565b348015610a3a57600080fd5b50610416610a49366004615379565b6134ed565b348015610a5a57600080fd5b50610416610a69366004615379565b613638565b348015610a7a57600080fd5b50610416610a893660046158f6565b61380c565b60007f2a55205a000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161480610ae45750610ae482613a64565b92915050565b606060008054610af990615d0a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2590615d0a565b8015610b725780601f10610b4757610100808354040283529160200191610b72565b820191906000526020600020905b815481529060010190602001808311610b5557829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610c32576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610c668261237a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c29565b3373ffffffffffffffffffffffffffffffffffffffff82161480610d4d5750610d4d81336131ed565b610dd9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c29565b610de38383613aba565b505050565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314610e6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b6127108161ffff161115610e8257600080fd5b601280547fffffffffffffffffffff00000000000000000000000000000000000000000000166201000073ffffffffffffffffffffffffffffffffffffffff94909416939093027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000169290921761ffff91909116179055565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314610f82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b6127108161ffff161115610f9557600080fd5b6010805461ffff909216610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ff909216919091179055565b815160009073ffffffffffffffffffffffffffffffffffffffff16611050576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6d616b65722069732030000000000000000000000000000000000000000000006044820152606401610c29565b826020015173ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614156110ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f73616d65206d616b6572202f2074616b657200000000000000000000000000006044820152606401610c29565b8260a00151421061115b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f65787069726564000000000000000000000000000000000000000000000000006044820152606401610c29565b6000836040015151118061117457506000836060015151115b6111da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f6e6f2069647300000000000000000000000000000000000000000000000000006044820152606401610c29565b81156112c25760005b8360400151518110156112c057836000015173ffffffffffffffffffffffffffffffffffffffff166112318560400151838151811061122457611224615e67565b602002602001015161237a565b73ffffffffffffffffffffffffffffffffffffffff16146112ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f626164206d616b657220696473000000000000000000000000000000000000006044820152606401610c29565b806112b881615d5e565b9150506111e3565b505b602083015173ffffffffffffffffffffffffffffffffffffffff16611353576060830151511561134e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f74616b6572206964732077697468206e6f2074616b65720000000000000000006044820152606401610c29565b61142e565b811561142e5760005b83606001515181101561142c57836020015173ffffffffffffffffffffffffffffffffffffffff1661139d8560600151838151811061122457611224615e67565b73ffffffffffffffffffffffffffffffffffffffff161461141a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f6261642074616b657220696473000000000000000000000000000000000000006044820152606401610c29565b8061142481615d5e565b91505061135c565b505b82600001518360200151846040015160405160200161144d91906159b6565b60405160208183030381529060405280519060200120856060015160405160200161147891906159b6565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201206080808b015160a0808d015160c0808f015173ffffffffffffffffffffffffffffffffffffffff9c8d16978a01979097529a909916958701959095526060860196909652840152908201929092529283019190915260e0820152306101008201526101200160405160208183030381529060405280519060200120905092915050565b61153b3382613b5a565b6115c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c29565b610de3838383613c9d565b601254600090819073ffffffffffffffffffffffffffffffffffffffff6201000082041690612710906116099061ffff1686615c8a565b6116139190615c76565b915091509250929050565b6000611629836124b3565b82106116b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610c29565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b6000815160411461175a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f7369672077726f6e67206c656e677468000000000000000000000000000000006044820152606401610c29565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101849052600090605c01604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152918152815160209283012091850151908501516060860151929350909160001a601b8110156117f2576117ef601b82615c51565b90505b8060ff16601b148061180757508060ff16601c145b61186d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f62616420736967207600000000000000000000000000000000000000000000006044820152606401610c29565b60408051600081526020810180835286905260ff831691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa1580156118c0573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015198975050505050505050565b60606000825167ffffffffffffffff81111561191257611912615e96565b60405190808252806020026020018201604052801561193b578160200160208202803683370190505b50905060005b835181101561199c5761196d8585838151811061196057611960615e67565b602002602001015161161e565b82828151811061197f5761197f615e67565b60209081029190910101528061199481615d5e565b915050611941565b509392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314611a2b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b611a33613f0f565b565b336000908152600f602052604090205460ff161515600114611ab3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f63616c6c6572206e6f742061206d696e746572000000000000000000000000006044820152606401610c29565b6161a8611abf60085490565b10611b26576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f746f6b656e206c696d69742072656163686564000000000000000000000000006044820152606401610c29565b611b308282613ff0565b5050565b610de383838360405180602001604052806000815250612e50565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314611bd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b600a54610100900473ffffffffffffffffffffffffffffffffffffffff16611bfd8261237a565b73ffffffffffffffffffffffffffffffffffffffff1614611c7a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f746f6b656e206f776e6572206e6f7420636f6e7472616374206f776e657200006044820152606401610c29565b611c838161400a565b50565b60606000825167ffffffffffffffff811115611ca457611ca4615e96565b604051908082528060200260200182016040528015611ccd578160200160208202803683370190505b50905060005b8351811015611d2d57611cfe848281518110611cf157611cf1615e67565b60200260200101516124b3565b828281518110611d1057611d10615e67565b602090810291909101015280611d2581615d5e565b915050611cd3565b5092915050565b6000611d3f60085490565b8210611dcd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610c29565b60088281548110611de057611de0615e67565b90600052602060002001549050919050565b60606000825167ffffffffffffffff811115611e1057611e10615e96565b604051908082528060200260200182016040528015611e39578160200160208202803683370190505b50905060005b8351811015611d2d57611e6a848281518110611e5d57611e5d615e67565b6020026020010151611d34565b828281518110611e7c57611e7c615e67565b602090810291909101015280611e9181615d5e565b915050611e3f565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314611f20576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b8051611b3090600d9060208401906150f7565b600c5474010000000000000000000000000000000000000000900460ff1615611fb8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c29565b600c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905560006120078484600180346140e3565b90506120138183614446565b3360005b856040015151811015612072576120608660000151838860400151848151811061204357612043615e67565b602002602001015160405180602001604052806000815250614500565b8061206a81615d5e565b915050612017565b5060005b8560600151518110156120b4576120a28287600001518860600151848151811061204357612043615e67565b806120ac81615d5e565b915050612076565b50600082815260116020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790553415612216576010546127109061210c90610100900461ffff1634615c8a565b6121169190615c76565b905060006121248234615cc7565b905034811115801561213e57503461213c8284615c39565b145b61214a5761214a615dab565b865160405160009173ffffffffffffffffffffffffffffffffffffffff169083908381818185875af1925050503d80600081146121a3576040519150601f19603f3d011682016040523d82523d6000602084013e6121a8565b606091505b5050905080612213576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f7061796d656e7420746f206d616b6572206661696c65640000000000000000006044820152606401610c29565b50505b8173ffffffffffffffffffffffffffffffffffffffff16866000015173ffffffffffffffffffffffffffffffffffffffff16847f9db12f62cd31155414a5f4e35083d1f6111e06a89feec6d8d9a222c80937621b89604001518a606001518b608001518760405161228a9493929190615b51565b60405180910390a45050600c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16905550505050565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314612349576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b601080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610ae4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c29565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314611a33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b600073ffffffffffffffffffffffffffffffffffffffff8216612558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c29565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b8051339073ffffffffffffffffffffffffffffffffffffffff168114806125c75750600a5473ffffffffffffffffffffffffffffffffffffffff82811661010090920416145b612653576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f63616c6c6572206e6f74206d616b6572206f7220636f6e7472616374206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610c29565b6000612660836000610fcf565b60008181526011602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555191925082917f3f9cb69d022b6ec319f86f2df848bcce01f2fc51c9f86396779a8081cf6ca2ea9190a2505050565b336000908152600f602052604090205460ff161515600114612745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f63616c6c6572206e6f742061206d696e746572000000000000000000000000006044820152606401610c29565b6019815111156127b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f6d6f7265207468616e20323520696473000000000000000000000000000000006044820152606401610c29565b6161a881516127bf60085490565b6127c99190615c39565b1115612831576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6261746368206578636565647320746f6b656e206c696d6974000000000000006044820152606401610c29565b60005b8151811015610de3578061286a576128658383838151811061285857612858615e67565b6020026020010151613ff0565b61288d565b61288d8383838151811061288057612880615e67565b60200260200101516145a3565b8061289781615d5e565b915050612834565b6000806128af88888787876140e3565b90506128bb8187614446565b506001979650505050505050565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314612950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b611a33614771565b60606000825167ffffffffffffffff81111561297657612976615e96565b6040519080825280602002602001820160405280156129a957816020015b60608152602001906001900390816129945790505b50905060005b8351811015611d2d576129da8482815181106129cd576129cd615e67565b6020026020010151612fac565b8282815181106129ec576129ec615e67565b60200260200101819052508080612a0290615d5e565b9150506129af565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314612a91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b6010805473ffffffffffffffffffffffffffffffffffffffff9092166301000000027fffffffffffffffffff0000000000000000000000000000000000000000ffffff909216919091179055565b606060018054610af990615d0a565b73ffffffffffffffffffffffffffffffffffffffff8216331415612b6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c29565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314612c8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b73ffffffffffffffffffffffffffffffffffffffff811615612d48576040517fc45527910000000000000000000000000000000000000000000000000000000081526000600482015273ffffffffffffffffffffffffffffffffffffffff82169063c45527919060240160206040518083038186803b158015612d0e57600080fd5b505afa158015612d22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d4691906156c1565b505b600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60606000825167ffffffffffffffff811115612dad57612dad615e96565b604051908082528060200260200182016040528015612dd6578160200160208202803683370190505b50905060005b8351811015611d2d57612e07848281518110612dfa57612dfa615e67565b6020026020010151610b7c565b828281518110612e1957612e19615e67565b73ffffffffffffffffffffffffffffffffffffffff9092166020928302919091019091015280612e4881615d5e565b915050612ddc565b612e5a3383613b5a565b612ee6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c29565b612ef284848484614500565b50505050565b60606000825167ffffffffffffffff811115612f1657612f16615e96565b604051908082528060200260200182016040528015612f3f578160200160208202803683370190505b50905060005b8351811015611d2d57612f6384828151811061122457611224615e67565b828281518110612f7557612f75615e67565b73ffffffffffffffffffffffffffffffffffffffff9092166020928302919091019091015280612fa481615d5e565b915050612f45565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16613060576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c29565b600061306a614831565b9050600081511161308a57604051806020016040528060008152506130b5565b8061309484614840565b6040516020016130a59291906159ec565b6040516020818303038152906040525b9392505050565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314613143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b73ffffffffffffffffffffffffffffffffffffffff82166000818152600f602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f583b0aa0e528532caf4b907c11d7a8158a122fe2a6fb80cd9b09776ebea8d92d910160405180910390a25050565b60606040518060600160405280602d8152602001615f16602d9139905090565b600e5460009073ffffffffffffffffffffffffffffffffffffffff16156132de57600e546040517fc455279100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015291821691841690829063c45527919060240160206040518083038186803b15801561327e57600080fd5b505afa158015613292573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132b691906156c1565b73ffffffffffffffffffffffffffffffffffffffff1614156132dc576001915050610ae4565b505b73ffffffffffffffffffffffffffffffffffffffff80841660009081526005602090815260408083209386168352929052205460ff166130b5565b600a54610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061339d5750600b5473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b613429576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f63616c6c6572206973206e6f7420746865206f776e6572206f72207265636f7660448201527f65727900000000000000000000000000000000000000000000000000000000006064820152608401610c29565b73ffffffffffffffffffffffffffffffffffffffff81166134a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f63616e74207573652030206164647265737300000000000000000000000000006044820152606401610c29565b600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314613574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b73ffffffffffffffffffffffffffffffffffffffff81166135f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f63616e74206265203020616464726573730000000000000000000000000000006044820152606401610c29565b600c80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600a54610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806136bc5750600b5473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b613748576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f63616c6c6572206973206e6f7420746865206f776e6572206f72207265636f7660448201527f65727900000000000000000000000000000000000000000000000000000000006064820152608401610c29565b73ffffffffffffffffffffffffffffffffffffffff81166137c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f63616e74207573652030206164647265737300000000000000000000000000006044820152606401610c29565b600a80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff84160217905550565b600a5473ffffffffffffffffffffffffffffffffffffffff610100909104163314613893576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610c29565b600c5474010000000000000000000000000000000000000000900460ff1615613918576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c29565b600c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790554781158061396457508082115b1561396d578091505b600c5460405160009173ffffffffffffffffffffffffffffffffffffffff169084908381818185875af1925050503d80600081146139c7576040519150601f19603f3d011682016040523d82523d6000602084013e6139cc565b606091505b5050905080613a37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7472616e73666572206661696c656400000000000000000000000000000000006044820152606401610c29565b5050600c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16905550565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610ae45750610ae482614972565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190613b148261237a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16613c0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610c29565b6000613c168361237a565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480613c8557508373ffffffffffffffffffffffffffffffffffffffff16613c6d84610b7c565b73ffffffffffffffffffffffffffffffffffffffff16145b80613c955750613c9581856131ed565b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16613cbd8261237a565b73ffffffffffffffffffffffffffffffffffffffff1614613d60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610c29565b73ffffffffffffffffffffffffffffffffffffffff8216613e02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c29565b613e0d838383614a55565b613e18600082613aba565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805460019290613e4e908490615cc7565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290613e89908490615c39565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a5460ff16613f7b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610c29565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b611b30828260405180602001604052806000815250614b98565b60006140158261237a565b905061402381600084614a55565b61402e600083613aba565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600360205260408120805460019290614064908490615cc7565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000806140f08786610fcf565b905060006140fe82886116ed565b90508073ffffffffffffffffffffffffffffffffffffffff16886000015173ffffffffffffffffffffffffffffffffffffffff1614614199576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f6d616b6572206e6f74207369676e6572000000000000000000000000000000006044820152606401610c29565b60008281526011602052604090205460ff16151560011415614217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f6f666665722063616e63656c6c6564206f7220636f6d706c65746564000000006044820152606401610c29565b841561443b57601054339060ff161561428c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6d61726b6574706c6163652070617573656400000000000000000000000000006044820152606401610c29565b885173ffffffffffffffffffffffffffffffffffffffff82811691161415614310576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f63616c6c657220697320746865206d616b6572000000000000000000000000006044820152606401610c29565b886020015173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614806143665750602089015173ffffffffffffffffffffffffffffffffffffffff16155b6143cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f63616c6c6572206e6f74207468652074616b65720000000000000000000000006044820152606401610c29565b88608001518514614439576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77726f6e67207061796d656e742073656e7400000000000000000000000000006044820152606401610c29565b505b509695505050505050565b6010546301000000900473ffffffffffffffffffffffffffffffffffffffff1615611b305761447582826116ed565b6010546301000000900473ffffffffffffffffffffffffffffffffffffffff908116911614611b30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f77726f6e67207769746e657373000000000000000000000000000000000000006044820152606401610c29565b61450b848484613c9d565b61451784848484614c3b565b612ef2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c29565b73ffffffffffffffffffffffffffffffffffffffff8216614620576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c29565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16156146ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c29565b6146b860008383614a55565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054600192906146ee908490615c39565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600a5460ff16156147de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610c29565b600a80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613fc63390565b6060600d8054610af990615d0a565b60608161488057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156148aa578061489481615d5e565b91506148a39050600a83615c76565b9150614884565b60008167ffffffffffffffff8111156148c5576148c5615e96565b6040519080825280601f01601f1916602001820160405280156148ef576020820181803683370190505b5090505b8415613c9557614904600183615cc7565b9150614911600a86615d97565b61491c906030615c39565b60f81b81838151811061493157614931615e67565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061496b600a86615c76565b94506148f3565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480614a0557507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610ae457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610ae4565b73ffffffffffffffffffffffffffffffffffffffff8216301415614afb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f63616e74207472616e7366657220746f2074686520636f6e747261637420616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610c29565b614b06838383614e3a565b600a5460ff1615610de3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f746f6b656e207472616e73666572207768696c6520636f6e747261637420706160448201527f75736564000000000000000000000000000000000000000000000000000000006064820152608401610c29565b614ba283836145a3565b614baf6000848484614c3b565b610de3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c29565b600073ffffffffffffffffffffffffffffffffffffffff84163b15614e2f576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290614cb2903390899088908890600401615a1b565b602060405180830381600087803b158015614ccc57600080fd5b505af1925050508015614d1a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252614d17918101906156a4565b60015b614de4573d808015614d48576040519150601f19603f3d011682016040523d82523d6000602084013e614d4d565b606091505b508051614ddc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610c29565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050613c95565b506001949350505050565b73ffffffffffffffffffffffffffffffffffffffff8316614ea257614e9d81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b614edf565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614614edf57614edf8382614f40565b73ffffffffffffffffffffffffffffffffffffffff8216614f0357610de381614ff7565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610de357610de382826150a6565b60006001614f4d846124b3565b614f579190615cc7565b600083815260076020526040902054909150808214614fb75773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b60085460009061500990600190615cc7565b6000838152600960205260408120546008805493945090928490811061503157615031615e67565b90600052602060002001549050806008838154811061505257615052615e67565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061508a5761508a615e38565b6001900381819060005260206000200160009055905550505050565b60006150b1836124b3565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461510390615d0a565b90600052602060002090601f016020900481019282615125576000855561516b565b82601f1061513e57805160ff191683800117855561516b565b8280016001018555821561516b579182015b8281111561516b578251825591602001919060010190615150565b5061517792915061517b565b5090565b5b80821115615177576000815560010161517c565b600067ffffffffffffffff8311156151aa576151aa615e96565b6151db60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601615bc6565b90508281528383830111156151ef57600080fd5b828260208301376000602084830101529392505050565b803561521181615ec5565b919050565b600082601f83011261522757600080fd5b8135602061523c61523783615c15565b615bc6565b80838252828201915082860187848660051b890101111561525c57600080fd5b60005b8581101561527b5781358452928401929084019060010161525f565b5090979650505050505050565b8035801515811461521157600080fd5b600082601f8301126152a957600080fd5b6130b583833560208501615190565b600060e082840312156152ca57600080fd5b6152d2615b9d565b90506152dd82615206565b81526152eb60208301615206565b6020820152604082013567ffffffffffffffff8082111561530b57600080fd5b61531785838601615216565b6040840152606084013591508082111561533057600080fd5b5061533d84828501615216565b6060830152506080820135608082015260a082013560a082015260c082013560c082015292915050565b803561ffff8116811461521157600080fd5b60006020828403121561538b57600080fd5b81356130b581615ec5565b600080604083850312156153a957600080fd5b82356153b481615ec5565b915060208301356153c481615ec5565b809150509250929050565b6000806000606084860312156153e457600080fd5b83356153ef81615ec5565b925060208401356153ff81615ec5565b929592945050506040919091013590565b6000806000806080858703121561542657600080fd5b843561543181615ec5565b9350602085013561544181615ec5565b925060408501359150606085013567ffffffffffffffff81111561546457600080fd5b61547087828801615298565b91505092959194509250565b6000806040838503121561548f57600080fd5b823561549a81615ec5565b9150602083013567ffffffffffffffff8111156154b657600080fd5b6154c285828601615216565b9150509250929050565b600080604083850312156154df57600080fd5b82356154ea81615ec5565b91506154f860208401615288565b90509250929050565b6000806040838503121561551457600080fd5b823561551f81615ec5565b91506154f860208401615367565b6000806040838503121561554057600080fd5b823561554b81615ec5565b946020939093013593505050565b6000602080838503121561556c57600080fd5b823567ffffffffffffffff81111561558357600080fd5b8301601f8101851361559457600080fd5b80356155a261523782615c15565b80828252848201915084840188868560051b87010111156155c257600080fd5b600094505b838510156155ee5780356155da81615ec5565b8352600194909401939185019185016155c7565b50979650505050505050565b60006020828403121561560c57600080fd5b813567ffffffffffffffff81111561562357600080fd5b613c9584828501615216565b60006020828403121561564157600080fd5b6130b582615288565b6000806040838503121561565d57600080fd5b82359150602083013567ffffffffffffffff81111561567b57600080fd5b6154c285828601615298565b60006020828403121561569957600080fd5b81356130b581615ee7565b6000602082840312156156b657600080fd5b81516130b581615ee7565b6000602082840312156156d357600080fd5b81516130b581615ec5565b6000602082840312156156f057600080fd5b813567ffffffffffffffff81111561570757600080fd5b8201601f8101841361571857600080fd5b613c9584823560208401615190565b60006020828403121561573957600080fd5b813567ffffffffffffffff81111561575057600080fd5b613c95848285016152b8565b6000806040838503121561576f57600080fd5b823567ffffffffffffffff81111561578657600080fd5b615792858286016152b8565b9250506154f860208401615288565b6000806000606084860312156157b657600080fd5b833567ffffffffffffffff808211156157ce57600080fd5b6157da878388016152b8565b945060208601359150808211156157f057600080fd5b6157fc87838801615298565b9350604086013591508082111561581257600080fd5b5061581f86828701615298565b9150509250925092565b60008060008060008060c0878903121561584257600080fd5b863567ffffffffffffffff8082111561585a57600080fd5b6158668a838b016152b8565b9750602089013591508082111561587c57600080fd5b6158888a838b01615298565b9650604089013591508082111561589e57600080fd5b506158ab89828a01615298565b9450506158ba60608801615288565b92506158c860808801615288565b915060a087013590509295509295509295565b6000602082840312156158ed57600080fd5b6130b582615367565b60006020828403121561590857600080fd5b5035919050565b6000806040838503121561592257600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b8381101561596157815187529582019590820190600101615945565b509495945050505050565b60008151808452615984816020860160208601615cde565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b815160009082906020808601845b838110156159e0578151855293820193908201906001016159c4565b50929695505050505050565b600083516159fe818460208801615cde565b835190830190615a12818360208801615cde565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152615a5a608083018461596c565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015615ab257835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101615a80565b50909695505050505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015615b31577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0888603018452615b1f85835161596c565b94509285019290850190600101615ae5565b5092979650505050505050565b6020815260006130b56020830184615931565b608081526000615b646080830187615931565b8281036020840152615b768187615931565b604084019590955250506060015292915050565b6020815260006130b5602083018461596c565b60405160e0810167ffffffffffffffff81118282101715615bc057615bc0615e96565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715615c0d57615c0d615e96565b604052919050565b600067ffffffffffffffff821115615c2f57615c2f615e96565b5060051b60200190565b60008219821115615c4c57615c4c615dda565b500190565b600060ff821660ff84168060ff03821115615c6e57615c6e615dda565b019392505050565b600082615c8557615c85615e09565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615cc257615cc2615dda565b500290565b600082821015615cd957615cd9615dda565b500390565b60005b83811015615cf9578181015183820152602001615ce1565b83811115612ef25750506000910152565b600181811c90821680615d1e57607f821691505b60208210811415615d58577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615d9057615d90615dda565b5060010190565b600082615da657615da6615e09565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114611c8357600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611c8357600080fdfe68747470733a2f2f63727970746f6369746965732e6e65742f6d6574612f6369746965735f636f6e7472616374a2646970667358221220b5e6b9c49ba6b4493143f134e3ee82303842f91d4e33c64c84d5e1c18904f80464736f6c63430008070033

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

000000000000000000000000f1be63031668e26dc2112bc7208ba49d6c4df5640000000000000000000000005dd897c829b7f885f59f48115fa784e31eec9ed1000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

-----Decoded View---------------
Arg [0] : _owner (address): 0xf1BE63031668e26dc2112bC7208bA49D6c4Df564
Arg [1] : _recovery (address): 0x5dd897C829B7F885f59f48115Fa784e31eEC9Ed1
Arg [2] : proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000f1be63031668e26dc2112bc7208ba49d6c4df564
Arg [1] : 0000000000000000000000005dd897c829b7f885f59f48115fa784e31eec9ed1
Arg [2] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1


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

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