ETH Price: $3,234.10 (-0.63%)
Gas: 1 Gwei

Token

RebelsOnChain (ROC)
 

Overview

Max Total Supply

40 ROC

Holders

20

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
*órale.eth
Balance
1 ROC
0xf63e7e364ba2a8ce99c34563a9768b3baff65d1a
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Roc

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

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

import './IRenderer.sol';
import './BaseOpenSea.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol';
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';
import '@openzeppelin/contracts/access/Ownable.sol';

/**
* @title ROC (RebelsOnChain)
* @dev ROC is an initial release of project SPACESHIP128, this contract
* implements ERC-721 tokenomics of the release. NFTs within this release
* are categorized by generations and types. Contract assumes that owner
* will set the minting phases and renderer contract addresses manually.
* Generations and Types Below.
* (tokenIds > 0 && <= 512) = Male Rebels-Gen0
* (tokenIds > 512 && <= 1024) = Female Rebels-Gen0
* (tokenIds > 1024) = Rebels-Gen1.
* @author Tfs128.eth (@trickerfs128)
*/
contract Roc is BaseOpenSea, Ownable, ERC721Enumerable, ERC721Burnable {

	event RendererSet(uint8 indexed rtype, address indexed rAddress);
	event Collected(address indexed operator, uint256 indexed count,uint256 value);
	event Bred(address indexed operator, uint256 indexed tokenId);
	event BreedPriceSet(uint256 indexed tokenId, uint256 value);
	event Withdrawn(address indexed operator, uint256 value);

	uint8 private constant MAX_CHILDS_PER_GEN0 = 15;
	uint16 private constant PHASE1_LAST = 512;
	uint16 private constant PHASE2_LAST = 1024;
	uint256 private constant MIN_BREED_PRICE = 50000000000000000; // 0.05 eth
	uint256 private constant MAX_BREED_PRICE = 5000000000000000000; // 5 eth

	uint256 private lastTokenId;
	uint256 private lastDna;
	bytes32 private merkleRoot;

	bool public locked;
	uint8 public phase;
	uint8 public sp128Share;
	uint256 public wlSaleTimestamp;
	uint256 public wlPrice;
	uint256 public price;
	address public renderer1;
	address public renderer2;
	address public renderer3;

	struct Parents {
		uint256 father;
		uint256 mother;
	}

	mapping(uint256 => Parents) public _parents;
	mapping(uint256 => uint256) public _dna;
	mapping(uint256 => uint256) public _breed_prices;
	mapping(uint256 => uint256) public _child_rem;
	mapping(address => uint256) public _balances;
	mapping(address => bool) private _p1_wl_claimed;
	mapping(address => bool) private _p2_wl_claimed;
	mapping(address => bool) private _p3_wl_claimed;

	/** 
	 * @notice constructor
     * @param contractURI can be empty
     * @param openseaProxyRegistry can be address zero
     */
    constructor(
        string memory contractURI,
        address openseaProxyRegistry
    ) ERC721('RebelsOnChain', 'ROC') {
        if (bytes(contractURI).length > 0) {
            _setContractURI(contractURI);
        }

        if (address(0) != openseaProxyRegistry) {
            _setOpenSeaRegistry(openseaProxyRegistry);
        }
    }

    /**
     * @notice func to mint gen0 tokens (Phase 1 and 2).
     * @param count - numbers of token to mint. Max 2 allowed per trans.
     */
    function regularMint(uint256 count) external payable {
    	require (phase == 1 || phase == 2, '!allowed.');
    	require (block.timestamp >= wlSaleTimestamp, 'wait');
    	require (count > 0 && count < 3, '1 or 2.');
    	uint16 maxSupplyInPhase = phase == 1 ? PHASE1_LAST : PHASE2_LAST;
    	require (lastTokenId + count <= maxSupplyInPhase, '!available');
    	require(msg.value == price * count, '!enough amount.');
    	_mintRebel(count);
    }

    /**
     * @notice func to mint gen1 tokens (phase 3) by breeding 1 male gen-0
     * and 1 female gen-0.
     * @param motherId - tokenid of female-gen0.
     * @param fatherId - tokenid of male - gen0.
     */
    function breed(uint256 motherId, uint256 fatherId) external payable {
    	require (phase == 3, '!breeding phase.');
    	require (block.timestamp >= wlSaleTimestamp, 'wait');
    	_breed(motherId, fatherId);
    }

    /**
     * @notice func to mint gen-0 tokens within whitelisting period.
     * @param proof - merkle tree proof contraining sibling hashes.
     */
    function wlMint(bytes32[] memory proof) external payable {
		require (block.timestamp < wlSaleTimestamp, 'late.');
		require(msg.value == wlPrice, '!enough amount.');
		if(phase == 1) {
			require(lastTokenId < PHASE1_LAST, '!available');
			require(_p1_wl_claimed[msg.sender] == false, 'already claimed.');
			require(MerkleProof.verify(proof, merkleRoot, keccak256(abi.encodePacked(msg.sender))), "!whiteListed.");
			_p1_wl_claimed[msg.sender] = true;
			_mintRebel(1);

		}
		else if(phase == 2) {
			require(lastTokenId < PHASE2_LAST, '!available');
			require(_p2_wl_claimed[msg.sender] == false, 'already claimed.');
			require(MerkleProof.verify(proof, merkleRoot, keccak256(abi.encodePacked(msg.sender))), "!whiteListed.");
			_p2_wl_claimed[msg.sender] = true;
			_mintRebel(1);
		}
		else {
			revert();
		}
	}

	/**
     * @notice func to mint gen-1 tokens within whitelisting period.
     * @param proof - merkle tree proof contraining sibling hashes.
     * @param motherId - tokenid of female-gen0.
     * @param fatherId - tokenid of male - gen0.
     */
	function wlBreed(bytes32[] memory proof, uint256 motherId, uint256 fatherId) external payable {
    	require (phase == 3, '!breeding phase.');
		require (block.timestamp < wlSaleTimestamp, 'late.');
		require(_p3_wl_claimed[msg.sender] == false, 'already claimed.');
		require(MerkleProof.verify(proof, merkleRoot, keccak256(abi.encodePacked(msg.sender))), "!whiteListed.");
		_p3_wl_claimed[msg.sender] = true;
		_breed(motherId,fatherId);
    }

    /**
     * @notice func to set breeding price of gen-0 tokens by token owners.
     * @param tokenId - gen-0 tokenId.
     * @param price_ - breeding price (wei).
     */
    function setBreedingPrice(uint256 tokenId, uint256 price_) external {
		require(ownerOf(tokenId) == msg.sender, 'Not a token owner.');
		require(_child_rem[tokenId] > 0, '!allowed.');
		require(price_ >= MIN_BREED_PRICE && price_ <= MAX_BREED_PRICE, 'Price must be in between 0.05 and 5 eth.');
		_breed_prices[tokenId] = price_;
		emit BreedPriceSet(tokenId,price_);
	}

	/** 
	 * @notice func to withdraw balance.
	 * @dev contract owner will also have to withdraw balance using 
	 * this func. this withdrawal function will restric contract
	 * owner to empty all the funds.
	 */
	function withdraw() external {
    	require(_balances[msg.sender] > 0, '0 Balance.');
    	uint256 amount = _balances[msg.sender];
    	_balances[msg.sender] = 0;
        bool success;
        (success, ) = msg.sender.call{value: amount}('');
        require(success, 'Failed');
        emit Withdrawn(msg.sender, amount);
    }

    /**
     * @notice func to set configuration (onlyOwner)
     * @param phase_ - 1 || 2 || 3
     * @param ownerShare - must be <= 30%
     * @param hours_ - hours to add in config set time.
     * @param wlPrice_ - token price within whitelisting period.
     * @param price_ - token price at the time of public sale.
     */
    function configure(
    	uint8 phase_,
    	uint8 ownerShare,
        uint256 hours_,
    	uint256 wlPrice_,
    	uint256 price_
    	)
    external onlyOwner
    {
       require (locked == false, '!Allowed.');
       require (ownerShare < 31, 'Must be <= 30.');
       if(phase_ == 1) {
       	require(lastTokenId < PHASE1_LAST, '!');
       }
       else if(phase_ == 2) {
       	require(lastTokenId >= PHASE1_LAST && lastTokenId < PHASE2_LAST, '!!');
       }
       else {
       	require(lastTokenId >= PHASE2_LAST, '!!!');
       }
       phase = phase_;
       wlPrice = wlPrice_;
       price = price_;
       sp128Share = ownerShare;
       wlSaleTimestamp = block.timestamp + (hours_ * 1 hours);
    }

    /**
     * @notice func to update merkle root. (only owner).
     * @dev tokens within this contract will be allowed for 
     * minting within 3 phases. So this contract assumes that
     * owner will update the merkle root manullay according to 
     * phase.
     * @param root - merkle root.
     */
    function updateMerkleRoot(bytes32 root) external onlyOwner {
    	require (locked == false, '!Allowed.');
    	merkleRoot = root;
    }

    /** 
     * @notice func to lock contract for config modifications.
     */
    function lockForModifications(uint256 confirm) external onlyOwner {
    	require(confirm == 11410198101108115, 'needs confirmation.');
    	locked = true;
    }

    /**
     * @notice func to set renderer contract addresses.
     */
    function setRenderer(address renderer, uint8 rendererNo) external onlyOwner {
    	require (locked == false, '!Allowed.');
        if(rendererNo == 1) {
        	renderer1 = renderer;
        }
        else if(rendererNo == 2) {
        	renderer2 = renderer;
        }
        else {
        	renderer3 = renderer;
        }
        emit RendererSet(rendererNo, renderer);
    }

    /**
     * @notice func to mint ownerAllocated tokens.
     * @dev 8 tokens from phase 1 and 2 are allocated
     * for owner. owner will have to mint their token
     * before activating sale.
     */
    function ownerMint() external onlyOwner {
    	require(lastTokenId == 0 || lastTokenId == PHASE1_LAST, '!allowed');
    	_mintRebel(8);
    }

    /**
     * opensea config (https://docs.opensea.io/docs/contract-level-metadata)
     */
    function setContractURI(string memory contractURI) external onlyOwner {
        _setContractURI(contractURI);
    }

    /** 
     * @notice tokenURI override that returns a data:json application
     * @inheritdoc ERC721
     */
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), 'URI query for nonexistent token');
        if(tokenId > 0 && tokenId <= PHASE1_LAST) {
        	return IRenderer(renderer1).render(tokenId, _dna[tokenId]);
        }
        else if(tokenId > PHASE1_LAST && tokenId <= PHASE2_LAST) {
        	return IRenderer(renderer2).render(tokenId, _dna[tokenId]);
        }
        else {
        	return IRenderer(renderer3).render(tokenId, _dna[tokenId]);
        }
    }

    /**
     * @notice internal func for minting token by breeding
     * two gen-0 and handling complete breeding, balances,
     * and token data.
     */
	function _breed(uint256 motherId,uint256 fatherId) internal {
		require(_exists(motherId), 'motherId: non-existing token.');
		require(_exists(fatherId), 'motherId: non-existing token.');
		require(fatherId > 0 && fatherId <= PHASE1_LAST, 'Need 1 Male and 1 Female Gen-0 Rebel.');
		require(motherId > PHASE1_LAST && motherId <= PHASE2_LAST, 'Need 1 Male and 1 Female Gen-0 Rebel.');
		require(_child_rem[motherId] > 0 && _child_rem[fatherId] > 0, 'Max child limit reached.');
		require(msg.value == (_breed_prices[motherId] + _breed_prices[fatherId]), 'Not Enough Amount.');
		_child_rem[motherId]--;
		_child_rem[fatherId]--;
		uint256 spShareFromMother = (_breed_prices[motherId] * sp128Share * 100) / 10000;
		uint256 spShareFromFather = (_breed_prices[fatherId] * sp128Share * 100) / 10000;
		_balances[owner()] += (spShareFromMother + spShareFromMother);
		_balances[ownerOf(motherId)] += (_breed_prices[motherId] - spShareFromMother);
		_balances[ownerOf(fatherId)] += (_breed_prices[fatherId] - spShareFromFather);
		uint256 tokenId = lastTokenId;
		bytes32 blockHash = blockhash(block.number - 1);
		tokenId++;
		// generating dna by drawing pr num by hashing special
		// variables. Drawing with this implementation can be
		// manipulated but it is fair enough for the given purpose.
		uint256 nextDNA = uint256(keccak256(abi.encodePacked(
			lastDna,
			block.timestamp,
			msg.sender,
			blockHash,
			block.coinbase,
			block.difficulty,
			tx.gasprice
			)));
		_dna[tokenId] = nextDNA;
		lastDna = nextDNA;
		lastTokenId = tokenId;
		_parents[tokenId].father = fatherId;
		_parents[tokenId].mother = motherId;
		_safeMint(msg.sender, tokenId);
		emit Bred(msg.sender, tokenId);
	}

	/**
     * @notice internal func to mint token and setting
     * token data.
     */
	function _mintRebel(uint256 count) internal {
		uint256 tokenId = lastTokenId;
		bytes32 blockHash = blockhash(block.number - 1);
		uint256 nextDNA;
		_balances[owner()] += msg.value;
		for (uint256 i; i < count; i++) {
            tokenId++;
            // generating dna by drawing pr num by hashing special
            // variables. Drawing with this implementation can be
            // manipulated but it is fair enough for the given purpose.
            nextDNA = uint256(keccak256(abi.encodePacked(
            	lastDna,
            	block.timestamp,
            	msg.sender,
            	blockHash,
            	block.coinbase,
            	block.difficulty,
            	tx.gasprice
            	)));
            _dna[tokenId] = nextDNA;
            _breed_prices[tokenId] = MIN_BREED_PRICE;
            _child_rem[tokenId] = MAX_CHILDS_PER_GEN0;
            lastDna = nextDNA;
            lastTokenId = tokenId;
            _safeMint(msg.sender, tokenId);
        }
        emit Collected(msg.sender, count, msg.value);
	}

	/////////////////////// Internal ////////////////////////

	/**
	 * @inheritdoc	ERC721
	 */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId)
    	internal
    	override(ERC721, ERC721Enumerable)
    {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    /**
     * @inheritdoc	ERC165
     */
	function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev approve proxy for token transfers.
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        if (isOwnersOpenSeaProxy(owner, operator)) {
            return true;
        }
        return super.isApprovedForAll(owner, operator);
    }
	


}

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

/**
 * @title IRenderer interface
 * @author Tfs128.eth (@trickerfs128)
 */
interface IRenderer {
	function render(uint256 tokenId, uint256 dna) external view returns (string memory);
}

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

/// @title OpenSea contract helper that defines a few things
/// @author Simon Fremaux (@dievardump)
/// @dev This is a contract used to add OpenSea's support
contract BaseOpenSea {
    string private _contractURI;
    ProxyRegistry private _proxyRegistry;

    /// @notice Returns the contract URI function. Used on OpenSea to get details
    //          about a contract (owner, royalties etc...)
    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

    /// @notice Helper for OpenSea gas-less trading
    /// @dev Allows to check if `operator` is owner's OpenSea proxy
    /// @param owner the owner we check for
    /// @param operator the operator (proxy) we check for
    function isOwnersOpenSeaProxy(address owner, address operator)
        public
        view
        returns (bool)
    {
        ProxyRegistry proxyRegistry = _proxyRegistry;
        return
            // we have a proxy registry address
            address(proxyRegistry) != address(0) &&
            // current operator is owner's proxy address
            address(proxyRegistry.proxies(owner)) == operator;
    }

    /// @dev Internal function to set the _contractURI
    /// @param contractURI_ the new contract uri
    function _setContractURI(string memory contractURI_) internal {
        _contractURI = contractURI_;
    }

    /// @dev Internal function to set the _proxyRegistry
    /// @param proxyRegistryAddress the new proxy registry address
    function _setOpenSeaRegistry(address proxyRegistryAddress) internal {
        _proxyRegistry = ProxyRegistry(proxyRegistryAddress);
    }
}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

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

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 6 of 17 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle trees (hash trees),
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        bytes32 computedHash = leaf;

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

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

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

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

pragma solidity ^0.8.0;

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

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 8 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden
     * in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

        require(_msgSender() == owner || ERC721.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 || ERC721.isApprovedForAll(owner, spender));
    }

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 9 of 17 : 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 17 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 12 of 17 : 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 13 of 17 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

}

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"contractURI","type":"string"},{"internalType":"address","name":"openseaProxyRegistry","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":"operator","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Bred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"BreedPriceSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"uint256","name":"count","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Collected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"rtype","type":"uint8"},{"indexed":true,"internalType":"address","name":"rAddress","type":"address"}],"name":"RendererSet","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":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_breed_prices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_child_rem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_dna","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_parents","outputs":[{"internalType":"uint256","name":"father","type":"uint256"},{"internalType":"uint256","name":"mother","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"motherId","type":"uint256"},{"internalType":"uint256","name":"fatherId","type":"uint256"}],"name":"breed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"phase_","type":"uint8"},{"internalType":"uint8","name":"ownerShare","type":"uint8"},{"internalType":"uint256","name":"hours_","type":"uint256"},{"internalType":"uint256","name":"wlPrice_","type":"uint256"},{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"configure","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isOwnersOpenSeaProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"confirm","type":"uint256"}],"name":"lockForModifications","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"regularMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renderer1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderer2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderer3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"setBreedingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"renderer","type":"address"},{"internalType":"uint8","name":"rendererNo","type":"uint8"}],"name":"setRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sp128Share","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"updateMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"motherId","type":"uint256"},{"internalType":"uint256","name":"fatherId","type":"uint256"}],"name":"wlBreed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"wlMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wlPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlSaleTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162003bf438038062003bf4833981016040819052620000349162000242565b6040518060400160405280600d81526020016c2932b132b639a7b721b430b4b760991b81525060405180604001604052806003815260200162524f4360e81b8152506000620000886200014c60201b60201c565b600280546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508151620000eb90600390602085019062000169565b5080516200010190600490602084019062000169565b505082511590506200011857620001188262000150565b6001600160a01b038116156200014457600180546001600160a01b0319166001600160a01b0383161790555b505062000370565b3390565b80516200016590600090602084019062000169565b5050565b828054620001779062000333565b90600052602060002090601f0160209004810192826200019b5760008555620001e6565b82601f10620001b657805160ff1916838001178555620001e6565b82800160010185558215620001e6579182015b82811115620001e6578251825591602001919060010190620001c9565b50620001f4929150620001f8565b5090565b5b80821115620001f45760008155600101620001f9565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200023d57600080fd5b919050565b600080604083850312156200025657600080fd5b82516001600160401b03808211156200026e57600080fd5b818501915085601f8301126200028357600080fd5b8151818111156200029857620002986200020f565b604051601f8201601f19908116603f01168101908382118183101715620002c357620002c36200020f565b81604052828152602093508884848701011115620002e057600080fd5b600091505b82821015620003045784820184015181830185015290830190620002e5565b82821115620003165760008484830101525b95506200032891505085820162000225565b925050509250929050565b600181811c908216806200034857607f821691505b602082108114156200036a57634e487b7160e01b600052602260045260246000fd5b50919050565b61387480620003806000396000f3fe6080604052600436106102935760003560e01c80638da5cb5b1161015a578063c7f8d01a116100c1578063e8a3d4851161007a578063e8a3d485146107fe578063e948239214610813578063e985e9c514610840578063f2fde38b14610860578063f3dd102214610880578063f4ddba921461089657600080fd5b8063c7f8d01a14610768578063c87b56dd1461077e578063cf3090121461079e578063d14d36d1146107b8578063d7558395146107d8578063d9ecad7b146107eb57600080fd5b8063a22cb46511610113578063a22cb465146106c1578063b0ea7dcf146106e1578063b12dc991146106f4578063b1c9fe6e14610709578063b6c72acf14610728578063b88d4fde1461074857600080fd5b80638da5cb5b14610618578063938e3d7b1461063657806395d89b411461065657806398e2f49e1461066b5780639960b59d1461068b578063a035b1fe146106ab57600080fd5b806342966c68116101fe5780636352211e116101b75780636352211e146105495780636415b9ea146105695780636ebcf6071461058957806370a08231146105b6578063715018a6146105d657806377a55037146105eb57600080fd5b806342966c681461047757806345cbd2f0146104975780634783f0ef146104c95780634f6ccce7146104e95780635a61e68f146105095780636102de981461052957600080fd5b806318160ddd1161025057806318160ddd146103a457806323b872dd146103b95780632f745c59146103d957806332b16960146103f95780633ccfd60b1461044257806342842e0e1461045757600080fd5b806301ffc9a71461029857806306fdde03146102cd578063081812fc146102ef578063095ea7b3146103275780630d074f44146103495780631591a94d14610384575b600080fd5b3480156102a457600080fd5b506102b86102b3366004612f62565b6108a9565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e26108ba565b6040516102c49190612fd7565b3480156102fb57600080fd5b5061030f61030a366004612fea565b61094c565b6040516001600160a01b0390911681526020016102c4565b34801561033357600080fd5b50610347610342366004613018565b6109d9565b005b34801561035557600080fd5b50610376610364366004612fea565b601a6020526000908152604090205481565b6040519081526020016102c4565b34801561039057600080fd5b5060155461030f906001600160a01b031681565b3480156103b057600080fd5b50600b54610376565b3480156103c557600080fd5b506103476103d4366004613044565b610aef565b3480156103e557600080fd5b506103766103f4366004613018565b610b21565b34801561040557600080fd5b5061042d610414366004612fea565b6017602052600090815260409020805460019091015482565b604080519283526020830191909152016102c4565b34801561044e57600080fd5b50610347610bb7565b34801561046357600080fd5b50610347610472366004613044565b610cd0565b34801561048357600080fd5b50610347610492366004612fea565b610ceb565b3480156104a357600080fd5b506010546104b79062010000900460ff1681565b60405160ff90911681526020016102c4565b3480156104d557600080fd5b506103476104e4366004612fea565b610d65565b3480156104f557600080fd5b50610376610504366004612fea565b610db7565b34801561051557600080fd5b50610347610524366004613096565b610e4a565b34801561053557600080fd5b506102b86105443660046130cb565b610f48565b34801561055557600080fd5b5061030f610564366004612fea565b610fe3565b34801561057557600080fd5b5060165461030f906001600160a01b031681565b34801561059557600080fd5b506103766105a4366004613104565b601b6020526000908152604090205481565b3480156105c257600080fd5b506103766105d1366004613104565b61105a565b3480156105e257600080fd5b506103476110e1565b3480156105f757600080fd5b50610376610606366004612fea565b60186020526000908152604090205481565b34801561062457600080fd5b506002546001600160a01b031661030f565b34801561064257600080fd5b506103476106513660046131ce565b611155565b34801561066257600080fd5b506102e2611188565b34801561067757600080fd5b50610347610686366004613217565b611197565b34801561069757600080fd5b5060145461030f906001600160a01b031681565b3480156106b757600080fd5b5061037660135481565b3480156106cd57600080fd5b506103476106dc366004613239565b6112f4565b6103476106ef3660046132ec565b6113b9565b34801561070057600080fd5b506103476115eb565b34801561071557600080fd5b506010546104b790610100900460ff1681565b34801561073457600080fd5b50610347610743366004613321565b61166a565b34801561075457600080fd5b5061034761076336600461336e565b611828565b34801561077457600080fd5b5061037660125481565b34801561078a57600080fd5b506102e2610799366004612fea565b611860565b3480156107aa57600080fd5b506010546102b89060ff1681565b3480156107c457600080fd5b506103476107d3366004612fea565b611a07565b6103476107e63660046133ee565b611a8d565b6103476107f9366004613217565b611baa565b34801561080a57600080fd5b506102e2611c40565b34801561081f57600080fd5b5061037661082e366004612fea565b60196020526000908152604090205481565b34801561084c57600080fd5b506102b861085b3660046130cb565b611c4f565b34801561086c57600080fd5b5061034761087b366004613104565b611c79565b34801561088c57600080fd5b5061037660115481565b6103476108a4366004612fea565b611d64565b60006108b482611eed565b92915050565b6060600380546108c99061343c565b80601f01602080910402602001604051908101604052809291908181526020018280546108f59061343c565b80156109425780601f1061091757610100808354040283529160200191610942565b820191906000526020600020905b81548152906001019060200180831161092557829003601f168201915b5050505050905090565b600061095782611f12565b6109bd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006109e482610fe3565b9050806001600160a01b0316836001600160a01b03161415610a525760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109b4565b336001600160a01b0382161480610a6e5750610a6e8133611f2f565b610ae05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109b4565b610aea8383611f5d565b505050565b610afa335b82611fcb565b610b165760405162461bcd60e51b81526004016109b490613477565b610aea83838361208d565b6000610b2c8361105a565b8210610b8e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109b4565b506001600160a01b03919091166000908152600960209081526040808320938352929052205490565b336000908152601b6020526040902054610c005760405162461bcd60e51b815260206004820152600a60248201526918102130b630b731b29760b11b60448201526064016109b4565b336000818152601b6020526040808220805490839055905190929083908381818185875af1925050503d8060008114610c55576040519150601f19603f3d011682016040523d82523d6000602084013e610c5a565b606091505b50508091505080610c965760405162461bcd60e51b815260206004820152600660248201526511985a5b195960d21b60448201526064016109b4565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a25050565b610aea83838360405180602001604052806000815250611828565b610cf433610af4565b610d595760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016109b4565b610d6281612238565b50565b6002546001600160a01b03163314610d8f5760405162461bcd60e51b81526004016109b4906134c8565b60105460ff1615610db25760405162461bcd60e51b81526004016109b4906134fd565b600f55565b6000610dc2600b5490565b8210610e255760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109b4565b600b8281548110610e3857610e38613520565b90600052602060002001549050919050565b6002546001600160a01b03163314610e745760405162461bcd60e51b81526004016109b4906134c8565b60105460ff1615610e975760405162461bcd60e51b81526004016109b4906134fd565b8060ff1660011415610ec357601480546001600160a01b0319166001600160a01b038416179055610f0b565b8060ff1660021415610eef57601580546001600160a01b0319166001600160a01b038416179055610f0b565b601680546001600160a01b0319166001600160a01b0384161790555b6040516001600160a01b0383169060ff8316907fab3cf391133d0c392232bfe0ab80ff32647c50c949f6143137b6e218aac6b84390600090a35050565b6001546000906001600160a01b03168015801590610fdb575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c455279190602401602060405180830381865afa158015610fac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd09190613536565b6001600160a01b0316145b949350505050565b6000818152600560205260408120546001600160a01b0316806108b45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109b4565b60006001600160a01b0382166110c55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109b4565b506001600160a01b031660009081526006602052604090205490565b6002546001600160a01b0316331461110b5760405162461bcd60e51b81526004016109b4906134c8565b6002546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600280546001600160a01b0319169055565b6002546001600160a01b0316331461117f5760405162461bcd60e51b81526004016109b4906134c8565b610d62816122df565b6060600480546108c99061343c565b336111a183610fe3565b6001600160a01b0316146111ec5760405162461bcd60e51b81526020600482015260126024820152712737ba1030903a37b5b2b71037bbb732b91760711b60448201526064016109b4565b6000828152601a60205260409020546112335760405162461bcd60e51b815260206004820152600960248201526810b0b63637bbb2b21760b91b60448201526064016109b4565b66b1a2bc2ec5000081101580156112525750674563918244f400008111155b6112af5760405162461bcd60e51b815260206004820152602860248201527f5072696365206d75737420626520696e206265747765656e20302e303520616e60448201526732101a9032ba341760c11b60648201526084016109b4565b600082815260196020526040908190208290555182907f43cb0285ddf7cc1a43a0624d6ceabcf7d1f79b6cfb31e3e6a8e5952e5f491e4e90610cc49084815260200190565b6001600160a01b03821633141561134d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109b4565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60115442106113f25760405162461bcd60e51b81526020600482015260056024820152643630ba329760d91b60448201526064016109b4565b60125434146114355760405162461bcd60e51b815260206004820152600f60248201526e10b2b737bab3b41030b6b7bab73a1760891b60448201526064016109b4565b60105460ff610100909104166001141561151c57600d546102001161146c5760405162461bcd60e51b81526004016109b490613553565b336000908152601c602052604090205460ff161561149c5760405162461bcd60e51b81526004016109b490613577565b600f546040516001600160601b03193360601b1660208201526114da9183916034015b604051602081830303815290604052805190602001206122f2565b6114f65760405162461bcd60e51b81526004016109b4906135a1565b336000908152601c60205260409020805460ff19166001908117909155610d62906123a1565b601054610100900460ff166002141561029357600d54610400116115525760405162461bcd60e51b81526004016109b490613553565b336000908152601d602052604090205460ff16156115825760405162461bcd60e51b81526004016109b490613577565b600f546040516001600160601b03193360601b1660208201526115a99183916034016114bf565b6115c55760405162461bcd60e51b81526004016109b4906135a1565b336000908152601d60205260409020805460ff19166001908117909155610d62906123a1565b6002546001600160a01b031633146116155760405162461bcd60e51b81526004016109b4906134c8565b600d5415806116275750600d54610200145b61165e5760405162461bcd60e51b815260206004820152600860248201526708585b1b1bddd95960c21b60448201526064016109b4565b61166860086123a1565b565b6002546001600160a01b031633146116945760405162461bcd60e51b81526004016109b4906134c8565b60105460ff16156116b75760405162461bcd60e51b81526004016109b4906134fd565b601f8460ff16106116fb5760405162461bcd60e51b815260206004820152600e60248201526d26bab9ba103132901e1e9019981760911b60448201526064016109b4565b8460ff166001141561174357600d546102001161173e5760405162461bcd60e51b81526020600482015260016024820152602160f81b60448201526064016109b4565b6117d1565b8460ff166002141561179757600d54610200118015906117665750600d54610400115b61173e5760405162461bcd60e51b8152602060048201526002602482015261212160f01b60448201526064016109b4565b600d5461040011156117d15760405162461bcd60e51b815260206004820152600360248201526221212160e81b60448201526064016109b4565b601080546012849055601383905560ff868116620100000262ff000019918916610100029190911662ffff00199092169190911717905561181483610e106135de565b61181e90426135fd565b6011555050505050565b6118323383611fcb565b61184e5760405162461bcd60e51b81526004016109b490613477565b61185a848484846124e2565b50505050565b606061186b82611f12565b6118b75760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0060448201526064016109b4565b6000821180156118c957506102008211155b1561195857601454600083815260186020526040908190205490516308c02cf360e41b81526004810185905260248101919091526001600160a01b0390911690638c02cf30906044015b600060405180830381865afa158015611930573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108b49190810190613615565b6102008211801561196b57506104008211155b156119b957601554600083815260186020526040908190205490516308c02cf360e41b81526004810185905260248101919091526001600160a01b0390911690638c02cf3090604401611913565b601654600083815260186020526040908190205490516308c02cf360e41b81526004810185905260248101919091526001600160a01b0390911690638c02cf3090604401611913565b919050565b6002546001600160a01b03163314611a315760405162461bcd60e51b81526004016109b4906134c8565b8066288983c4a2259314611a7d5760405162461bcd60e51b81526020600482015260136024820152723732b2b2399031b7b73334b936b0ba34b7b71760691b60448201526064016109b4565b506010805460ff19166001179055565b601054610100900460ff16600314611ada5760405162461bcd60e51b815260206004820152601060248201526f10b13932b2b234b73390383430b9b29760811b60448201526064016109b4565b6011544210611b135760405162461bcd60e51b81526020600482015260056024820152643630ba329760d91b60448201526064016109b4565b336000908152601e602052604090205460ff1615611b435760405162461bcd60e51b81526004016109b490613577565b600f546040516001600160601b03193360601b166020820152611b6a9185916034016114bf565b611b865760405162461bcd60e51b81526004016109b4906135a1565b336000908152601e60205260409020805460ff19166001179055610aea8282612515565b601054610100900460ff16600314611bf75760405162461bcd60e51b815260206004820152601060248201526f10b13932b2b234b73390383430b9b29760811b60448201526064016109b4565b601154421015611c325760405162461bcd60e51b81526004016109b4906020808252600490820152631dd85a5d60e21b604082015260600190565b611c3c8282612515565b5050565b6060600080546108c99061343c565b6000611c5b8383610f48565b15611c68575060016108b4565b611c728383611f2f565b9392505050565b6002546001600160a01b03163314611ca35760405162461bcd60e51b81526004016109b4906134c8565b6001600160a01b038116611d085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109b4565b6002546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600280546001600160a01b0319166001600160a01b0392909216919091179055565b60105460ff6101009091041660011480611d885750601054610100900460ff166002145b611dc05760405162461bcd60e51b815260206004820152600960248201526810b0b63637bbb2b21760b91b60448201526064016109b4565b601154421015611dfb5760405162461bcd60e51b81526004016109b4906020808252600490820152631dd85a5d60e21b604082015260600190565b600081118015611e0b5750600381105b611e415760405162461bcd60e51b8152602060048201526007602482015266189037b910191760c91b60448201526064016109b4565b60105460009060ff61010090910416600114611e5f57610400611e63565b6102005b90508061ffff1682600d54611e7891906135fd565b1115611e965760405162461bcd60e51b81526004016109b490613553565b81601354611ea491906135de565b3414611ee45760405162461bcd60e51b815260206004820152600f60248201526e10b2b737bab3b41030b6b7bab73a1760891b60448201526064016109b4565b611c3c826123a1565b60006001600160e01b0319821663780e9d6360e01b14806108b457506108b482612986565b6000908152600560205260409020546001600160a01b0316151590565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b600081815260076020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611f9282610fe3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611fd682611f12565b6120375760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109b4565b600061204283610fe3565b9050806001600160a01b0316846001600160a01b0316148061207d5750836001600160a01b03166120728461094c565b6001600160a01b0316145b80610fdb5750610fdb8185611f2f565b826001600160a01b03166120a082610fe3565b6001600160a01b0316146121085760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109b4565b6001600160a01b03821661216a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109b4565b6121758383836129d6565b612180600082611f5d565b6001600160a01b03831660009081526006602052604081208054600192906121a990849061368c565b90915550506001600160a01b03821660009081526006602052604081208054600192906121d79084906135fd565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061224382610fe3565b9050612251816000846129d6565b61225c600083611f5d565b6001600160a01b038116600090815260066020526040812080546001929061228590849061368c565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b8051611c3c906000906020840190612eb3565b600081815b855181101561239657600086828151811061231457612314613520565b60200260200101519050808311612356576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612383565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061238e816136a3565b9150506122f7565b509092149392505050565b600d5460006123b160014361368c565b409050600034601b60006123cd6002546001600160a01b031690565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546123fc91906135fd565b90915550600090505b848110156124a45783612417816136a3565b945050600e5442338541443a60405160200161243997969594939291906136be565b60408051601f1981840301815291815281516020928301206000878152601884528281208290556019845282812066b1a2bc2ec500009055601a9093529120600f9055600e819055600d859055915061249233856129e1565b8061249c816136a3565b915050612405565b50604051348152849033907f8f0c3d4726e2d22ccf850efced91f2d0c1bea40229449223d795a6cff32762369060200160405180910390a350505050565b6124ed84848461208d565b6124f9848484846129fb565b61185a5760405162461bcd60e51b81526004016109b4906136fe565b61251e82611f12565b61256a5760405162461bcd60e51b815260206004820152601d60248201527f6d6f7468657249643a206e6f6e2d6578697374696e6720746f6b656e2e00000060448201526064016109b4565b61257381611f12565b6125bf5760405162461bcd60e51b815260206004820152601d60248201527f6d6f7468657249643a206e6f6e2d6578697374696e6720746f6b656e2e00000060448201526064016109b4565b6000811180156125d157506102008111155b6125ed5760405162461bcd60e51b81526004016109b490613750565b6102008211801561260057506104008211155b61261c5760405162461bcd60e51b81526004016109b490613750565b6000828152601a60205260409020541580159061264657506000818152601a602052604090205415155b6126925760405162461bcd60e51b815260206004820152601860248201527f4d6178206368696c64206c696d697420726561636865642e000000000000000060448201526064016109b4565b600081815260196020526040808220548483529120546126b291906135fd565b34146126f55760405162461bcd60e51b81526020600482015260126024820152712737ba1022b737bab3b41020b6b7bab73a1760711b60448201526064016109b4565b6000828152601a6020526040812080549161270f83613795565b90915550506000818152601a6020526040812080549161272e83613795565b909155505060105460008381526019602052604081205490916127109161275e9162010000900460ff16906135de565b6127699060646135de565b61277391906137ac565b60105460008481526019602052604081205492935091612710916127a1916201000090910460ff16906135de565b6127ac9060646135de565b6127b691906137ac565b90506127c282806135fd565b601b60006127d86002546001600160a01b031690565b6001600160a01b03166001600160a01b03168152602001908152602001600020600082825461280791906135fd565b909155505060008481526019602052604090205461282690839061368c565b601b600061283387610fe3565b6001600160a01b03166001600160a01b03168152602001908152602001600020600082825461286291906135fd565b909155505060008381526019602052604090205461288190829061368c565b601b600061288e86610fe3565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546128bd91906135fd565b9091555050600d5460006128d260014361368c565b409050816128df816136a3565b9250506000600e5442338441443a60405160200161290397969594939291906136be565b60408051601f198184030181529181528151602092830120600086815260188452828120829055600e829055600d87905560179093529120878155600101889055905061295033846129e1565b604051839033907f0d9f08801d5a4d28abc59f2d5c803e19d5c43c63bf0d30e5b6a53416a34d99b390600090a350505050505050565b60006001600160e01b031982166380ac58cd60e01b14806129b757506001600160e01b03198216635b5e139f60e01b145b806108b457506301ffc9a760e01b6001600160e01b03198316146108b4565b610aea838383612af9565b611c3c828260405180602001604052806000815250612bb1565b60006001600160a01b0384163b15612aee57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a3f9033908990889088906004016137ce565b6020604051808303816000875af1925050508015612a7a575060408051601f3d908101601f19168201909252612a779181019061380b565b60015b612ad4573d808015612aa8576040519150601f19603f3d011682016040523d82523d6000602084013e612aad565b606091505b508051612acc5760405162461bcd60e51b81526004016109b4906136fe565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610fdb565b506001949350505050565b6001600160a01b038316612b5457612b4f81600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b612b77565b816001600160a01b0316836001600160a01b031614612b7757612b778382612be4565b6001600160a01b038216612b8e57610aea81612c81565b826001600160a01b0316826001600160a01b031614610aea57610aea8282612d30565b612bbb8383612d74565b612bc860008484846129fb565b610aea5760405162461bcd60e51b81526004016109b4906136fe565b60006001612bf18461105a565b612bfb919061368c565b6000838152600a6020526040902054909150808214612c4e576001600160a01b03841660009081526009602090815260408083208584528252808320548484528184208190558352600a90915290208190555b506000918252600a602090815260408084208490556001600160a01b039094168352600981528383209183525290812055565b600b54600090612c939060019061368c565b6000838152600c6020526040812054600b8054939450909284908110612cbb57612cbb613520565b9060005260206000200154905080600b8381548110612cdc57612cdc613520565b6000918252602080832090910192909255828152600c9091526040808220849055858252812055600b805480612d1457612d14613828565b6001900381819060005260206000200160009055905550505050565b6000612d3b8361105a565b6001600160a01b0390931660009081526009602090815260408083208684528252808320859055938252600a9052919091209190915550565b6001600160a01b038216612dca5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109b4565b612dd381611f12565b15612e205760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109b4565b612e2c600083836129d6565b6001600160a01b0382166000908152600660205260408120805460019290612e559084906135fd565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612ebf9061343c565b90600052602060002090601f016020900481019282612ee15760008555612f27565b82601f10612efa57805160ff1916838001178555612f27565b82800160010185558215612f27579182015b82811115612f27578251825591602001919060010190612f0c565b50612f33929150612f37565b5090565b5b80821115612f335760008155600101612f38565b6001600160e01b031981168114610d6257600080fd5b600060208284031215612f7457600080fd5b8135611c7281612f4c565b60005b83811015612f9a578181015183820152602001612f82565b8381111561185a5750506000910152565b60008151808452612fc3816020860160208601612f7f565b601f01601f19169290920160200192915050565b602081526000611c726020830184612fab565b600060208284031215612ffc57600080fd5b5035919050565b6001600160a01b0381168114610d6257600080fd5b6000806040838503121561302b57600080fd5b823561303681613003565b946020939093013593505050565b60008060006060848603121561305957600080fd5b833561306481613003565b9250602084013561307481613003565b929592945050506040919091013590565b803560ff81168114611a0257600080fd5b600080604083850312156130a957600080fd5b82356130b481613003565b91506130c260208401613085565b90509250929050565b600080604083850312156130de57600080fd5b82356130e981613003565b915060208301356130f981613003565b809150509250929050565b60006020828403121561311657600080fd5b8135611c7281613003565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561316057613160613121565b604052919050565b600067ffffffffffffffff82111561318257613182613121565b50601f01601f191660200190565b60006131a361319e84613168565b613137565b90508281528383830111156131b757600080fd5b828260208301376000602084830101529392505050565b6000602082840312156131e057600080fd5b813567ffffffffffffffff8111156131f757600080fd5b8201601f8101841361320857600080fd5b610fdb84823560208401613190565b6000806040838503121561322a57600080fd5b50508035926020909101359150565b6000806040838503121561324c57600080fd5b823561325781613003565b9150602083013580151581146130f957600080fd5b600082601f83011261327d57600080fd5b8135602067ffffffffffffffff82111561329957613299613121565b8160051b6132a8828201613137565b92835284810182019282810190878511156132c257600080fd5b83870192505b848310156132e1578235825291830191908301906132c8565b979650505050505050565b6000602082840312156132fe57600080fd5b813567ffffffffffffffff81111561331557600080fd5b610fdb8482850161326c565b600080600080600060a0868803121561333957600080fd5b61334286613085565b945061335060208701613085565b94979496505050506040830135926060810135926080909101359150565b6000806000806080858703121561338457600080fd5b843561338f81613003565b9350602085013561339f81613003565b925060408501359150606085013567ffffffffffffffff8111156133c257600080fd5b8501601f810187136133d357600080fd5b6133e287823560208401613190565b91505092959194509250565b60008060006060848603121561340357600080fd5b833567ffffffffffffffff81111561341a57600080fd5b6134268682870161326c565b9660208601359650604090950135949350505050565b600181811c9082168061345057607f821691505b6020821081141561347157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526009908201526810a0b63637bbb2b21760b91b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561354857600080fd5b8151611c7281613003565b6020808252600a908201526921617661696c61626c6560b01b604082015260600190565b60208082526010908201526f30b63932b0b23c9031b630b4b6b2b21760811b604082015260600190565b6020808252600d908201526c10bbb434ba32a634b9ba32b21760991b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156135f8576135f86135c8565b500290565b60008219821115613610576136106135c8565b500190565b60006020828403121561362757600080fd5b815167ffffffffffffffff81111561363e57600080fd5b8201601f8101841361364f57600080fd5b805161365d61319e82613168565b81815285602083850101111561367257600080fd5b613683826020830160208601612f7f565b95945050505050565b60008282101561369e5761369e6135c8565b500390565b60006000198214156136b7576136b76135c8565b5060010190565b96875260208701959095526001600160601b0319606094851b811660408801526054870193909352921b166074840152608883015260a882015260c80190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4e6565642031204d616c6520616e6420312046656d616c652047656e2d30205260408201526432b132b61760d91b606082015260800190565b6000816137a4576137a46135c8565b506000190190565b6000826137c957634e487b7160e01b600052601260045260246000fd5b500490565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061380190830184612fab565b9695505050505050565b60006020828403121561381d57600080fd5b8151611c7281612f4c565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220a1f04fb5cc3c438b666e36f96b6178d602c3250ce42ebbe1838c62ca93a6a7a464736f6c634300080a00330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000043697066733a2f2f697066732f516d657073706452674878635331354651426f5734674b326338475377574d757779594554364d4a726f4e595a4a2f726f632e6a736f6e0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102935760003560e01c80638da5cb5b1161015a578063c7f8d01a116100c1578063e8a3d4851161007a578063e8a3d485146107fe578063e948239214610813578063e985e9c514610840578063f2fde38b14610860578063f3dd102214610880578063f4ddba921461089657600080fd5b8063c7f8d01a14610768578063c87b56dd1461077e578063cf3090121461079e578063d14d36d1146107b8578063d7558395146107d8578063d9ecad7b146107eb57600080fd5b8063a22cb46511610113578063a22cb465146106c1578063b0ea7dcf146106e1578063b12dc991146106f4578063b1c9fe6e14610709578063b6c72acf14610728578063b88d4fde1461074857600080fd5b80638da5cb5b14610618578063938e3d7b1461063657806395d89b411461065657806398e2f49e1461066b5780639960b59d1461068b578063a035b1fe146106ab57600080fd5b806342966c68116101fe5780636352211e116101b75780636352211e146105495780636415b9ea146105695780636ebcf6071461058957806370a08231146105b6578063715018a6146105d657806377a55037146105eb57600080fd5b806342966c681461047757806345cbd2f0146104975780634783f0ef146104c95780634f6ccce7146104e95780635a61e68f146105095780636102de981461052957600080fd5b806318160ddd1161025057806318160ddd146103a457806323b872dd146103b95780632f745c59146103d957806332b16960146103f95780633ccfd60b1461044257806342842e0e1461045757600080fd5b806301ffc9a71461029857806306fdde03146102cd578063081812fc146102ef578063095ea7b3146103275780630d074f44146103495780631591a94d14610384575b600080fd5b3480156102a457600080fd5b506102b86102b3366004612f62565b6108a9565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e26108ba565b6040516102c49190612fd7565b3480156102fb57600080fd5b5061030f61030a366004612fea565b61094c565b6040516001600160a01b0390911681526020016102c4565b34801561033357600080fd5b50610347610342366004613018565b6109d9565b005b34801561035557600080fd5b50610376610364366004612fea565b601a6020526000908152604090205481565b6040519081526020016102c4565b34801561039057600080fd5b5060155461030f906001600160a01b031681565b3480156103b057600080fd5b50600b54610376565b3480156103c557600080fd5b506103476103d4366004613044565b610aef565b3480156103e557600080fd5b506103766103f4366004613018565b610b21565b34801561040557600080fd5b5061042d610414366004612fea565b6017602052600090815260409020805460019091015482565b604080519283526020830191909152016102c4565b34801561044e57600080fd5b50610347610bb7565b34801561046357600080fd5b50610347610472366004613044565b610cd0565b34801561048357600080fd5b50610347610492366004612fea565b610ceb565b3480156104a357600080fd5b506010546104b79062010000900460ff1681565b60405160ff90911681526020016102c4565b3480156104d557600080fd5b506103476104e4366004612fea565b610d65565b3480156104f557600080fd5b50610376610504366004612fea565b610db7565b34801561051557600080fd5b50610347610524366004613096565b610e4a565b34801561053557600080fd5b506102b86105443660046130cb565b610f48565b34801561055557600080fd5b5061030f610564366004612fea565b610fe3565b34801561057557600080fd5b5060165461030f906001600160a01b031681565b34801561059557600080fd5b506103766105a4366004613104565b601b6020526000908152604090205481565b3480156105c257600080fd5b506103766105d1366004613104565b61105a565b3480156105e257600080fd5b506103476110e1565b3480156105f757600080fd5b50610376610606366004612fea565b60186020526000908152604090205481565b34801561062457600080fd5b506002546001600160a01b031661030f565b34801561064257600080fd5b506103476106513660046131ce565b611155565b34801561066257600080fd5b506102e2611188565b34801561067757600080fd5b50610347610686366004613217565b611197565b34801561069757600080fd5b5060145461030f906001600160a01b031681565b3480156106b757600080fd5b5061037660135481565b3480156106cd57600080fd5b506103476106dc366004613239565b6112f4565b6103476106ef3660046132ec565b6113b9565b34801561070057600080fd5b506103476115eb565b34801561071557600080fd5b506010546104b790610100900460ff1681565b34801561073457600080fd5b50610347610743366004613321565b61166a565b34801561075457600080fd5b5061034761076336600461336e565b611828565b34801561077457600080fd5b5061037660125481565b34801561078a57600080fd5b506102e2610799366004612fea565b611860565b3480156107aa57600080fd5b506010546102b89060ff1681565b3480156107c457600080fd5b506103476107d3366004612fea565b611a07565b6103476107e63660046133ee565b611a8d565b6103476107f9366004613217565b611baa565b34801561080a57600080fd5b506102e2611c40565b34801561081f57600080fd5b5061037661082e366004612fea565b60196020526000908152604090205481565b34801561084c57600080fd5b506102b861085b3660046130cb565b611c4f565b34801561086c57600080fd5b5061034761087b366004613104565b611c79565b34801561088c57600080fd5b5061037660115481565b6103476108a4366004612fea565b611d64565b60006108b482611eed565b92915050565b6060600380546108c99061343c565b80601f01602080910402602001604051908101604052809291908181526020018280546108f59061343c565b80156109425780601f1061091757610100808354040283529160200191610942565b820191906000526020600020905b81548152906001019060200180831161092557829003601f168201915b5050505050905090565b600061095782611f12565b6109bd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006109e482610fe3565b9050806001600160a01b0316836001600160a01b03161415610a525760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109b4565b336001600160a01b0382161480610a6e5750610a6e8133611f2f565b610ae05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109b4565b610aea8383611f5d565b505050565b610afa335b82611fcb565b610b165760405162461bcd60e51b81526004016109b490613477565b610aea83838361208d565b6000610b2c8361105a565b8210610b8e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109b4565b506001600160a01b03919091166000908152600960209081526040808320938352929052205490565b336000908152601b6020526040902054610c005760405162461bcd60e51b815260206004820152600a60248201526918102130b630b731b29760b11b60448201526064016109b4565b336000818152601b6020526040808220805490839055905190929083908381818185875af1925050503d8060008114610c55576040519150601f19603f3d011682016040523d82523d6000602084013e610c5a565b606091505b50508091505080610c965760405162461bcd60e51b815260206004820152600660248201526511985a5b195960d21b60448201526064016109b4565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a25050565b610aea83838360405180602001604052806000815250611828565b610cf433610af4565b610d595760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016109b4565b610d6281612238565b50565b6002546001600160a01b03163314610d8f5760405162461bcd60e51b81526004016109b4906134c8565b60105460ff1615610db25760405162461bcd60e51b81526004016109b4906134fd565b600f55565b6000610dc2600b5490565b8210610e255760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109b4565b600b8281548110610e3857610e38613520565b90600052602060002001549050919050565b6002546001600160a01b03163314610e745760405162461bcd60e51b81526004016109b4906134c8565b60105460ff1615610e975760405162461bcd60e51b81526004016109b4906134fd565b8060ff1660011415610ec357601480546001600160a01b0319166001600160a01b038416179055610f0b565b8060ff1660021415610eef57601580546001600160a01b0319166001600160a01b038416179055610f0b565b601680546001600160a01b0319166001600160a01b0384161790555b6040516001600160a01b0383169060ff8316907fab3cf391133d0c392232bfe0ab80ff32647c50c949f6143137b6e218aac6b84390600090a35050565b6001546000906001600160a01b03168015801590610fdb575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c455279190602401602060405180830381865afa158015610fac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd09190613536565b6001600160a01b0316145b949350505050565b6000818152600560205260408120546001600160a01b0316806108b45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109b4565b60006001600160a01b0382166110c55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109b4565b506001600160a01b031660009081526006602052604090205490565b6002546001600160a01b0316331461110b5760405162461bcd60e51b81526004016109b4906134c8565b6002546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600280546001600160a01b0319169055565b6002546001600160a01b0316331461117f5760405162461bcd60e51b81526004016109b4906134c8565b610d62816122df565b6060600480546108c99061343c565b336111a183610fe3565b6001600160a01b0316146111ec5760405162461bcd60e51b81526020600482015260126024820152712737ba1030903a37b5b2b71037bbb732b91760711b60448201526064016109b4565b6000828152601a60205260409020546112335760405162461bcd60e51b815260206004820152600960248201526810b0b63637bbb2b21760b91b60448201526064016109b4565b66b1a2bc2ec5000081101580156112525750674563918244f400008111155b6112af5760405162461bcd60e51b815260206004820152602860248201527f5072696365206d75737420626520696e206265747765656e20302e303520616e60448201526732101a9032ba341760c11b60648201526084016109b4565b600082815260196020526040908190208290555182907f43cb0285ddf7cc1a43a0624d6ceabcf7d1f79b6cfb31e3e6a8e5952e5f491e4e90610cc49084815260200190565b6001600160a01b03821633141561134d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109b4565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60115442106113f25760405162461bcd60e51b81526020600482015260056024820152643630ba329760d91b60448201526064016109b4565b60125434146114355760405162461bcd60e51b815260206004820152600f60248201526e10b2b737bab3b41030b6b7bab73a1760891b60448201526064016109b4565b60105460ff610100909104166001141561151c57600d546102001161146c5760405162461bcd60e51b81526004016109b490613553565b336000908152601c602052604090205460ff161561149c5760405162461bcd60e51b81526004016109b490613577565b600f546040516001600160601b03193360601b1660208201526114da9183916034015b604051602081830303815290604052805190602001206122f2565b6114f65760405162461bcd60e51b81526004016109b4906135a1565b336000908152601c60205260409020805460ff19166001908117909155610d62906123a1565b601054610100900460ff166002141561029357600d54610400116115525760405162461bcd60e51b81526004016109b490613553565b336000908152601d602052604090205460ff16156115825760405162461bcd60e51b81526004016109b490613577565b600f546040516001600160601b03193360601b1660208201526115a99183916034016114bf565b6115c55760405162461bcd60e51b81526004016109b4906135a1565b336000908152601d60205260409020805460ff19166001908117909155610d62906123a1565b6002546001600160a01b031633146116155760405162461bcd60e51b81526004016109b4906134c8565b600d5415806116275750600d54610200145b61165e5760405162461bcd60e51b815260206004820152600860248201526708585b1b1bddd95960c21b60448201526064016109b4565b61166860086123a1565b565b6002546001600160a01b031633146116945760405162461bcd60e51b81526004016109b4906134c8565b60105460ff16156116b75760405162461bcd60e51b81526004016109b4906134fd565b601f8460ff16106116fb5760405162461bcd60e51b815260206004820152600e60248201526d26bab9ba103132901e1e9019981760911b60448201526064016109b4565b8460ff166001141561174357600d546102001161173e5760405162461bcd60e51b81526020600482015260016024820152602160f81b60448201526064016109b4565b6117d1565b8460ff166002141561179757600d54610200118015906117665750600d54610400115b61173e5760405162461bcd60e51b8152602060048201526002602482015261212160f01b60448201526064016109b4565b600d5461040011156117d15760405162461bcd60e51b815260206004820152600360248201526221212160e81b60448201526064016109b4565b601080546012849055601383905560ff868116620100000262ff000019918916610100029190911662ffff00199092169190911717905561181483610e106135de565b61181e90426135fd565b6011555050505050565b6118323383611fcb565b61184e5760405162461bcd60e51b81526004016109b490613477565b61185a848484846124e2565b50505050565b606061186b82611f12565b6118b75760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0060448201526064016109b4565b6000821180156118c957506102008211155b1561195857601454600083815260186020526040908190205490516308c02cf360e41b81526004810185905260248101919091526001600160a01b0390911690638c02cf30906044015b600060405180830381865afa158015611930573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108b49190810190613615565b6102008211801561196b57506104008211155b156119b957601554600083815260186020526040908190205490516308c02cf360e41b81526004810185905260248101919091526001600160a01b0390911690638c02cf3090604401611913565b601654600083815260186020526040908190205490516308c02cf360e41b81526004810185905260248101919091526001600160a01b0390911690638c02cf3090604401611913565b919050565b6002546001600160a01b03163314611a315760405162461bcd60e51b81526004016109b4906134c8565b8066288983c4a2259314611a7d5760405162461bcd60e51b81526020600482015260136024820152723732b2b2399031b7b73334b936b0ba34b7b71760691b60448201526064016109b4565b506010805460ff19166001179055565b601054610100900460ff16600314611ada5760405162461bcd60e51b815260206004820152601060248201526f10b13932b2b234b73390383430b9b29760811b60448201526064016109b4565b6011544210611b135760405162461bcd60e51b81526020600482015260056024820152643630ba329760d91b60448201526064016109b4565b336000908152601e602052604090205460ff1615611b435760405162461bcd60e51b81526004016109b490613577565b600f546040516001600160601b03193360601b166020820152611b6a9185916034016114bf565b611b865760405162461bcd60e51b81526004016109b4906135a1565b336000908152601e60205260409020805460ff19166001179055610aea8282612515565b601054610100900460ff16600314611bf75760405162461bcd60e51b815260206004820152601060248201526f10b13932b2b234b73390383430b9b29760811b60448201526064016109b4565b601154421015611c325760405162461bcd60e51b81526004016109b4906020808252600490820152631dd85a5d60e21b604082015260600190565b611c3c8282612515565b5050565b6060600080546108c99061343c565b6000611c5b8383610f48565b15611c68575060016108b4565b611c728383611f2f565b9392505050565b6002546001600160a01b03163314611ca35760405162461bcd60e51b81526004016109b4906134c8565b6001600160a01b038116611d085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109b4565b6002546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600280546001600160a01b0319166001600160a01b0392909216919091179055565b60105460ff6101009091041660011480611d885750601054610100900460ff166002145b611dc05760405162461bcd60e51b815260206004820152600960248201526810b0b63637bbb2b21760b91b60448201526064016109b4565b601154421015611dfb5760405162461bcd60e51b81526004016109b4906020808252600490820152631dd85a5d60e21b604082015260600190565b600081118015611e0b5750600381105b611e415760405162461bcd60e51b8152602060048201526007602482015266189037b910191760c91b60448201526064016109b4565b60105460009060ff61010090910416600114611e5f57610400611e63565b6102005b90508061ffff1682600d54611e7891906135fd565b1115611e965760405162461bcd60e51b81526004016109b490613553565b81601354611ea491906135de565b3414611ee45760405162461bcd60e51b815260206004820152600f60248201526e10b2b737bab3b41030b6b7bab73a1760891b60448201526064016109b4565b611c3c826123a1565b60006001600160e01b0319821663780e9d6360e01b14806108b457506108b482612986565b6000908152600560205260409020546001600160a01b0316151590565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b600081815260076020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611f9282610fe3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611fd682611f12565b6120375760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109b4565b600061204283610fe3565b9050806001600160a01b0316846001600160a01b0316148061207d5750836001600160a01b03166120728461094c565b6001600160a01b0316145b80610fdb5750610fdb8185611f2f565b826001600160a01b03166120a082610fe3565b6001600160a01b0316146121085760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109b4565b6001600160a01b03821661216a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109b4565b6121758383836129d6565b612180600082611f5d565b6001600160a01b03831660009081526006602052604081208054600192906121a990849061368c565b90915550506001600160a01b03821660009081526006602052604081208054600192906121d79084906135fd565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061224382610fe3565b9050612251816000846129d6565b61225c600083611f5d565b6001600160a01b038116600090815260066020526040812080546001929061228590849061368c565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b8051611c3c906000906020840190612eb3565b600081815b855181101561239657600086828151811061231457612314613520565b60200260200101519050808311612356576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612383565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061238e816136a3565b9150506122f7565b509092149392505050565b600d5460006123b160014361368c565b409050600034601b60006123cd6002546001600160a01b031690565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546123fc91906135fd565b90915550600090505b848110156124a45783612417816136a3565b945050600e5442338541443a60405160200161243997969594939291906136be565b60408051601f1981840301815291815281516020928301206000878152601884528281208290556019845282812066b1a2bc2ec500009055601a9093529120600f9055600e819055600d859055915061249233856129e1565b8061249c816136a3565b915050612405565b50604051348152849033907f8f0c3d4726e2d22ccf850efced91f2d0c1bea40229449223d795a6cff32762369060200160405180910390a350505050565b6124ed84848461208d565b6124f9848484846129fb565b61185a5760405162461bcd60e51b81526004016109b4906136fe565b61251e82611f12565b61256a5760405162461bcd60e51b815260206004820152601d60248201527f6d6f7468657249643a206e6f6e2d6578697374696e6720746f6b656e2e00000060448201526064016109b4565b61257381611f12565b6125bf5760405162461bcd60e51b815260206004820152601d60248201527f6d6f7468657249643a206e6f6e2d6578697374696e6720746f6b656e2e00000060448201526064016109b4565b6000811180156125d157506102008111155b6125ed5760405162461bcd60e51b81526004016109b490613750565b6102008211801561260057506104008211155b61261c5760405162461bcd60e51b81526004016109b490613750565b6000828152601a60205260409020541580159061264657506000818152601a602052604090205415155b6126925760405162461bcd60e51b815260206004820152601860248201527f4d6178206368696c64206c696d697420726561636865642e000000000000000060448201526064016109b4565b600081815260196020526040808220548483529120546126b291906135fd565b34146126f55760405162461bcd60e51b81526020600482015260126024820152712737ba1022b737bab3b41020b6b7bab73a1760711b60448201526064016109b4565b6000828152601a6020526040812080549161270f83613795565b90915550506000818152601a6020526040812080549161272e83613795565b909155505060105460008381526019602052604081205490916127109161275e9162010000900460ff16906135de565b6127699060646135de565b61277391906137ac565b60105460008481526019602052604081205492935091612710916127a1916201000090910460ff16906135de565b6127ac9060646135de565b6127b691906137ac565b90506127c282806135fd565b601b60006127d86002546001600160a01b031690565b6001600160a01b03166001600160a01b03168152602001908152602001600020600082825461280791906135fd565b909155505060008481526019602052604090205461282690839061368c565b601b600061283387610fe3565b6001600160a01b03166001600160a01b03168152602001908152602001600020600082825461286291906135fd565b909155505060008381526019602052604090205461288190829061368c565b601b600061288e86610fe3565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546128bd91906135fd565b9091555050600d5460006128d260014361368c565b409050816128df816136a3565b9250506000600e5442338441443a60405160200161290397969594939291906136be565b60408051601f198184030181529181528151602092830120600086815260188452828120829055600e829055600d87905560179093529120878155600101889055905061295033846129e1565b604051839033907f0d9f08801d5a4d28abc59f2d5c803e19d5c43c63bf0d30e5b6a53416a34d99b390600090a350505050505050565b60006001600160e01b031982166380ac58cd60e01b14806129b757506001600160e01b03198216635b5e139f60e01b145b806108b457506301ffc9a760e01b6001600160e01b03198316146108b4565b610aea838383612af9565b611c3c828260405180602001604052806000815250612bb1565b60006001600160a01b0384163b15612aee57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a3f9033908990889088906004016137ce565b6020604051808303816000875af1925050508015612a7a575060408051601f3d908101601f19168201909252612a779181019061380b565b60015b612ad4573d808015612aa8576040519150601f19603f3d011682016040523d82523d6000602084013e612aad565b606091505b508051612acc5760405162461bcd60e51b81526004016109b4906136fe565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610fdb565b506001949350505050565b6001600160a01b038316612b5457612b4f81600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b612b77565b816001600160a01b0316836001600160a01b031614612b7757612b778382612be4565b6001600160a01b038216612b8e57610aea81612c81565b826001600160a01b0316826001600160a01b031614610aea57610aea8282612d30565b612bbb8383612d74565b612bc860008484846129fb565b610aea5760405162461bcd60e51b81526004016109b4906136fe565b60006001612bf18461105a565b612bfb919061368c565b6000838152600a6020526040902054909150808214612c4e576001600160a01b03841660009081526009602090815260408083208584528252808320548484528184208190558352600a90915290208190555b506000918252600a602090815260408084208490556001600160a01b039094168352600981528383209183525290812055565b600b54600090612c939060019061368c565b6000838152600c6020526040812054600b8054939450909284908110612cbb57612cbb613520565b9060005260206000200154905080600b8381548110612cdc57612cdc613520565b6000918252602080832090910192909255828152600c9091526040808220849055858252812055600b805480612d1457612d14613828565b6001900381819060005260206000200160009055905550505050565b6000612d3b8361105a565b6001600160a01b0390931660009081526009602090815260408083208684528252808320859055938252600a9052919091209190915550565b6001600160a01b038216612dca5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109b4565b612dd381611f12565b15612e205760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109b4565b612e2c600083836129d6565b6001600160a01b0382166000908152600660205260408120805460019290612e559084906135fd565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612ebf9061343c565b90600052602060002090601f016020900481019282612ee15760008555612f27565b82601f10612efa57805160ff1916838001178555612f27565b82800160010185558215612f27579182015b82811115612f27578251825591602001919060010190612f0c565b50612f33929150612f37565b5090565b5b80821115612f335760008155600101612f38565b6001600160e01b031981168114610d6257600080fd5b600060208284031215612f7457600080fd5b8135611c7281612f4c565b60005b83811015612f9a578181015183820152602001612f82565b8381111561185a5750506000910152565b60008151808452612fc3816020860160208601612f7f565b601f01601f19169290920160200192915050565b602081526000611c726020830184612fab565b600060208284031215612ffc57600080fd5b5035919050565b6001600160a01b0381168114610d6257600080fd5b6000806040838503121561302b57600080fd5b823561303681613003565b946020939093013593505050565b60008060006060848603121561305957600080fd5b833561306481613003565b9250602084013561307481613003565b929592945050506040919091013590565b803560ff81168114611a0257600080fd5b600080604083850312156130a957600080fd5b82356130b481613003565b91506130c260208401613085565b90509250929050565b600080604083850312156130de57600080fd5b82356130e981613003565b915060208301356130f981613003565b809150509250929050565b60006020828403121561311657600080fd5b8135611c7281613003565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561316057613160613121565b604052919050565b600067ffffffffffffffff82111561318257613182613121565b50601f01601f191660200190565b60006131a361319e84613168565b613137565b90508281528383830111156131b757600080fd5b828260208301376000602084830101529392505050565b6000602082840312156131e057600080fd5b813567ffffffffffffffff8111156131f757600080fd5b8201601f8101841361320857600080fd5b610fdb84823560208401613190565b6000806040838503121561322a57600080fd5b50508035926020909101359150565b6000806040838503121561324c57600080fd5b823561325781613003565b9150602083013580151581146130f957600080fd5b600082601f83011261327d57600080fd5b8135602067ffffffffffffffff82111561329957613299613121565b8160051b6132a8828201613137565b92835284810182019282810190878511156132c257600080fd5b83870192505b848310156132e1578235825291830191908301906132c8565b979650505050505050565b6000602082840312156132fe57600080fd5b813567ffffffffffffffff81111561331557600080fd5b610fdb8482850161326c565b600080600080600060a0868803121561333957600080fd5b61334286613085565b945061335060208701613085565b94979496505050506040830135926060810135926080909101359150565b6000806000806080858703121561338457600080fd5b843561338f81613003565b9350602085013561339f81613003565b925060408501359150606085013567ffffffffffffffff8111156133c257600080fd5b8501601f810187136133d357600080fd5b6133e287823560208401613190565b91505092959194509250565b60008060006060848603121561340357600080fd5b833567ffffffffffffffff81111561341a57600080fd5b6134268682870161326c565b9660208601359650604090950135949350505050565b600181811c9082168061345057607f821691505b6020821081141561347157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526009908201526810a0b63637bbb2b21760b91b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561354857600080fd5b8151611c7281613003565b6020808252600a908201526921617661696c61626c6560b01b604082015260600190565b60208082526010908201526f30b63932b0b23c9031b630b4b6b2b21760811b604082015260600190565b6020808252600d908201526c10bbb434ba32a634b9ba32b21760991b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156135f8576135f86135c8565b500290565b60008219821115613610576136106135c8565b500190565b60006020828403121561362757600080fd5b815167ffffffffffffffff81111561363e57600080fd5b8201601f8101841361364f57600080fd5b805161365d61319e82613168565b81815285602083850101111561367257600080fd5b613683826020830160208601612f7f565b95945050505050565b60008282101561369e5761369e6135c8565b500390565b60006000198214156136b7576136b76135c8565b5060010190565b96875260208701959095526001600160601b0319606094851b811660408801526054870193909352921b166074840152608883015260a882015260c80190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4e6565642031204d616c6520616e6420312046656d616c652047656e2d30205260408201526432b132b61760d91b606082015260800190565b6000816137a4576137a46135c8565b506000190190565b6000826137c957634e487b7160e01b600052601260045260246000fd5b500490565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061380190830184612fab565b9695505050505050565b60006020828403121561381d57600080fd5b8151611c7281612f4c565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220a1f04fb5cc3c438b666e36f96b6178d602c3250ce42ebbe1838c62ca93a6a7a464736f6c634300080a0033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000043697066733a2f2f697066732f516d657073706452674878635331354651426f5734674b326338475377574d757779594554364d4a726f4e595a4a2f726f632e6a736f6e0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : contractURI (string): ipfs://ipfs/QmepspdRgHxcS15FQBoW4gK2c8GSwWMuwyYET6MJroNYZJ/roc.json
Arg [1] : openseaProxyRegistry (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [3] : 697066733a2f2f697066732f516d657073706452674878635331354651426f57
Arg [4] : 34674b326338475377574d757779594554364d4a726f4e595a4a2f726f632e6a
Arg [5] : 736f6e0000000000000000000000000000000000000000000000000000000000


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

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