ETH Price: $2,860.09 (-9.65%)
Gas: 9 Gwei

Token

Devolve Collectible (DEVOLVE)
 

Overview

Max Total Supply

3,125 DEVOLVE

Holders

392

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
5 DEVOLVE
0x10dfe5ed945fbb91b49ddd1810cf267420a8062d
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:
DevolveCollectible

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : DevolveCollectible.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;

import "./ERC721D.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

error DevolveLevelNotActive();
error DevolveNoMoreLevels();
error DevolveTokenNotOwned();
error DevolveTokensNotSameBloodline();
error DevolveTokensNotSameDevolveState();
error DevolveTokensNotSameLevel();
error DevolveTokensSameId();
error MintExceedsMaxAllocation();
error MintExceedsMaxBloodlineSupply();
error MintExceedsMaxPerTx();
error MintExceedsMaxSupply();
error MintExceedsReservedAllocation();
error MintInsufficientFunds();
error MintInvalidBloodline();
error MintInvalidProof();
error MintInvalidSignature();
error MintSaleNotActive();
error MintUnderMinimumRequirement();
error SettingsInvalidLevel();
error SettingsInvalidResAllocation();
error SettingsInvalidSignerAddress();

contract DevolveCollectible is ERC2981, ERC721D, Ownable {
    using ECDSA for bytes32;

    string public baseURI;

    uint256 public wisemanPrice;

    uint256 public maxWisemanPurchase;

    uint256 public resAllocation;
    uint256 public resMinted;

    uint256 public constant MAX_WISEMEN = 42 * (2**(NUMBER_OF_LEVELS - 1)); // 42 in final level, why 42? It's the answer to life, the universe, and everything of course!
    uint256 public constant NUMBER_OF_LEVELS = 8;

    uint16[5] public MAX_WISEMEN_PER_BLOODLINE = [
        // Can't use array constant so using non-constant even though these totals can't be changed
        uint16(10 * (2**(NUMBER_OF_LEVELS - 1))), // earth
        uint16(10 * (2**(NUMBER_OF_LEVELS - 1))), // fire
        uint16(10 * (2**(NUMBER_OF_LEVELS - 1))), // water
        uint16(10 * (2**(NUMBER_OF_LEVELS - 1))), // air
        uint16(2 * (2**(NUMBER_OF_LEVELS - 1))) // energy
    ];

    struct LevelMeta {
        bool survivorDevolveIsActive;
        bool zombieDevolveIsActive;
        uint16[5] survivorMints;
        uint16[5] zombieMints;
    }
    LevelMeta[NUMBER_OF_LEVELS] public levelMeta;

    address private signerAddress; // Minting signer

    event Devolve(
        uint256 indexed tokenId1,
        uint256 indexed tokenId2,
        uint256 indexed resultTokenId,
        uint256 devolvedTokenId
    );

    constructor() ERC721D("Devolve Collectible", "DEVOLVE") {
        wisemanPrice = 60000000000000000; //0.06 ETH
        maxWisemanPurchase = 0; // When set public mint is active
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721D, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    function strConcat(string memory _a, string memory _b) internal pure returns (string memory) {
        return string(abi.encodePacked(bytes(_a), bytes(_b)));
    }

    function generateTokenURI(
        uint8 level,
        uint8 bloodline,
        uint16 sequenceId,
        bool devolved
    ) internal pure returns (string memory) {
        string memory uri = strConcat(
            strConcat(strConcat(strConcat(Strings.toString(level), "-"), Strings.toString(bloodline)), "-"),
            Strings.toString(sequenceId)
        );

        if (devolved) {
            return strConcat(uri, "-D");
        } else {
            return uri;
        }
    }

    function setSignerAddress(address _signerAddress) external onlyOwner {
        if (_signerAddress == address(0)) revert SettingsInvalidSignerAddress();
        signerAddress = _signerAddress;
    }

    function verifyAddressSigner(bytes32 messageHash, bytes memory signature) private view returns (bool) {
        return signerAddress == messageHash.toEthSignedMessageHash().recover(signature);
    }

    /*
     * Pause level devolving if active, make active if paused
     */
    function toggleDevolveState(uint256 level, bool devolved) public onlyOwner {
        if (level >= NUMBER_OF_LEVELS - 1) revert SettingsInvalidLevel();
        if (devolved) {
            levelMeta[level].zombieDevolveIsActive = !levelMeta[level].zombieDevolveIsActive;
        } else {
            levelMeta[level].survivorDevolveIsActive = !levelMeta[level].survivorDevolveIsActive;
        }
    }

    /**
     * Set price to mint a wiseman
     */
    function setMintPrice(uint256 price) external onlyOwner {
        wisemanPrice = price;
    }

    /**
     * Set max purchase qty
     */
    function setMaxPurchase(uint256 qty) external onlyOwner {
        maxWisemanPurchase = qty;
    }

    function setResAllocation(uint256 qty) external onlyOwner {
        // New allocation already fully minted?
        if (qty < resMinted) revert SettingsInvalidResAllocation();
        // Allocating more than is left?
        if (mintTotal(0) + qty > MAX_WISEMEN) revert SettingsInvalidResAllocation();

        resAllocation = qty;
    }

    function mintWL(
        address to,
        uint8 bloodline,
        bool og,
        uint256 amount,
        uint256 min,
        uint256 max,
        uint256 price,
        uint256 start,
        uint256 end,
        bytes32 proof,
        bytes calldata signature
    ) external payable {
        if (block.timestamp < start || block.timestamp > end) revert MintSaleNotActive();
        if (_addressData[to].numberMinted + amount > max) revert MintExceedsMaxAllocation();
        if (amount < min) revert MintUnderMinimumRequirement();
        if (price * amount > msg.value) revert MintInsufficientFunds();

        // Check proof and signature
        bytes32 messageHash = keccak256(abi.encodePacked(to, og, min, max, price, start, end));
        if (proof != messageHash) revert MintInvalidProof();
        if (!verifyAddressSigner(proof, signature)) revert MintInvalidSignature();

        if (price == 0) {
            resMinted += amount;
            if (resMinted > resAllocation) revert MintExceedsReservedAllocation();
        }

        _mint(to, bloodline, og ? 128 : 0, amount);
    }

    function mintWiseman(uint8 bloodline, uint256 numberOfTokens) public payable {
        if (maxWisemanPurchase == 0) revert MintSaleNotActive();
        if (numberOfTokens > maxWisemanPurchase) revert MintExceedsMaxPerTx();
        if (wisemanPrice * numberOfTokens > msg.value) revert MintInsufficientFunds();
        _mint(msg.sender, bloodline, 0, numberOfTokens);
    }

    function _mint(
        address to,
        uint8 bloodline,
        uint8 og,
        uint256 numberOfTokens
    ) internal {
        if (bloodline > 4) revert MintInvalidBloodline();

        uint256 bloodlineTotalBefore = levelMeta[0].survivorMints[bloodline];
        uint256 bloodlineTotalAfter = bloodlineTotalBefore + numberOfTokens;

        // Safety to ensure no mint call can exceed max supply, regardless of mint origin
        if (bloodlineTotalAfter > MAX_WISEMEN_PER_BLOODLINE[bloodline]) revert MintExceedsMaxBloodlineSupply();
        if (mintTotal(0) + numberOfTokens + resAllocation - resMinted > MAX_WISEMEN) revert MintExceedsMaxSupply();

        _safeMint(to, numberOfTokens, 0, bloodline, og, 0, uint16(bloodlineTotalBefore));

        levelMeta[0].survivorMints[bloodline] = uint16(bloodlineTotalAfter);
    }

    /* Devolve
    Select two of the same level and bloodline then
    burn them and create a new 'devolve'
    token1 -> zombie
    token2 -> burnt
    */

    function devolve(uint256 tokenId1, uint256 tokenId2) public {
        // Get token info
        (, , uint256 token1Pos) = tokenIdToMeta(tokenId1);
        (, , uint256 token2Pos) = tokenIdToMeta(tokenId2);
        TokenOwnership memory token1Info = _ownershipOf(tokenId1);
        TokenOwnership memory token2Info = _ownershipOf(tokenId2);

        if (token1Info.addr != msg.sender || token2Info.addr != msg.sender) revert DevolveTokenNotOwned();
        if (tokenId1 == tokenId2) revert DevolveTokensSameId();
        if (token1Info.level != token2Info.level) revert DevolveTokensNotSameLevel();
        if (token1Info.bloodline != token2Info.bloodline) revert DevolveTokensNotSameBloodline();
        if (token1Info.devolved != token2Info.devolved) revert DevolveTokensNotSameDevolveState();
        if (token1Info.level >= NUMBER_OF_LEVELS - 1) revert DevolveNoMoreLevels();

        uint256 devolvedTokenId;

        if (token1Info.devolved == 0) {
            if (!levelMeta[token1Info.level].survivorDevolveIsActive) revert DevolveLevelNotActive();

            // Transpose devolved nft onto first token
            token1Info.devolved = 1;
            _transpose(tokenId1, token1Info);

            // Only set devolvedTokenId for survivor devolving
            devolvedTokenId = metaToTokenId(token1Info.level, token1Info.devolved, token1Pos);

            // Set the sequenceId in the new level and increment token level
            token2Info.sequenceId = levelMeta[++token2Info.level].survivorMints[token2Info.bloodline]++;
        } else {
            if (!levelMeta[token1Info.level].zombieDevolveIsActive) revert DevolveLevelNotActive();

            // Devolving two already devolved NFTs, so burn the first one as we don't generate a zombie
            _burn(tokenId1);

            // Set the sequenceId in the new level and increment token level
            uint256 offset = MAX_WISEMEN_PER_BLOODLINE[token2Info.bloodline] / 2**((token2Info.level + 1));
            token2Info.sequenceId = uint16(offset) + levelMeta[++token2Info.level].zombieMints[token2Info.bloodline]++;
        }

        // Transpose next level nft onto second token
        token2Info.og = (token1Info.og >> 1) + (token2Info.og >> 1);
        _transpose(tokenId2, token2Info);

        uint256 resultTokenId = metaToTokenId(token2Info.level, token2Info.devolved, token2Pos);

        // devolvedTokenId is only set for survivor devolving
        emit Devolve(tokenId1, tokenId2, resultTokenId, devolvedTokenId);
    }

    function burn(uint256 tokenId) public onlyOwner {
        super._burn(tokenId, true);
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
        TokenOwnership memory ownership = _ownershipOf(tokenId);
        string memory _tokenURI = generateTokenURI(
            ownership.level,
            ownership.bloodline,
            ownership.sequenceId,
            (ownership.devolved == 1)
        );
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return "";
    }

    function setBaseURI(string memory baseURI_) external onlyOwner {
        baseURI = baseURI_;
    }

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

    function tokenMeta(uint256 tokenId) public view returns (TokenOwnership memory) {
        return _ownershipOf(tokenId);
    }

    function addressData(address owner) public view returns (AddressData memory) {
        return _addressData[owner];
    }

    function mintTotal(uint16 level) public view returns (uint16) {
        uint16[5] memory totals = levelMeta[level].survivorMints;
        return (totals[0] + totals[1] + totals[2] + totals[3] + totals[4]);
    }

    function getLevelMintTotals(uint16 level)
        public
        view
        returns (uint16[5] memory survivors, uint16[5] memory zombies)
    {
        survivors = levelMeta[level].survivorMints;
        zombies = levelMeta[level].zombieMints;
        return (survivors, zombies);
    }

    function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner {
        super._setDefaultRoyalty(receiver, feeNumerator);
    }

    function deleteDefaultRoyalty() public onlyOwner {
        super._deleteDefaultRoyalty();
    }

    function withdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    function withdrawTokens(IERC20 token) public onlyOwner {
        require(address(token) != address(0));
        token.transfer(msg.sender, token.balanceOf(address(this)));
    }

    receive() external payable {}
}

File 2 of 16 : ERC721D.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

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

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MetaQueryForNonexistentToken();
error MintToZeroAddress();
error MintZeroQuantity();
error MintWithInvalidMetadata();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721D is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the additional token data
        uint8 level;
        uint8 bloodline;
        uint8 og;
        uint8 devolved;
        uint16 sequenceId;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Array of ownership details, slots are reused by transposing next level NFTs onto previous extinct ones.
    // Use metaToTokenId and tokenIdToMeta to determine array position based on level
    TokenOwnership[] internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) internal _addressData;

    // 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;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /// @dev Returns the tokenIds of the address. O(totalSupply) in complexity.
    function tokensOfOwner(address owner) external view returns (uint256[] memory) {
        unchecked {
            uint256[] memory a = new uint256[](balanceOf(owner));
            uint256 end = _currentIndex;
            uint256 tokenIdsIdx;
            for (uint256 i; i < end; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (ownership.addr == owner) {
                    a[tokenIdsIdx++] = metaToTokenId(ownership.level, ownership.devolved, i);
                }
            }
            return a;
        }
    }

    /// @dev Returns the meta of the tokens for the address. O(totalSupply) in complexity.
    function tokenMetasOfOwner(address owner)
        external
        view
        returns (uint256[] memory tokenIds, TokenOwnership[] memory metas)
    {
        unchecked {
            uint256 balance = balanceOf(owner);
            uint256[] memory a = new uint256[](balance);
            TokenOwnership[] memory m = new TokenOwnership[](balance);
            uint256 end = _currentIndex;
            uint256 tokenIdsIdx;
            for (uint256 i; i < end; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (ownership.addr == owner) {
                    a[tokenIdsIdx] = metaToTokenId(ownership.level, ownership.devolved, i);
                    m[tokenIdsIdx++] = ownership;
                }
            }
            return (a, m);
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    function tokenIdToMeta(uint256 tokenId)
        public
        pure
        returns (
            uint256 level,
            uint256 devolved,
            uint256 position
        )
    {
        if (tokenId > 0x1FFFF) revert MetaQueryForNonexistentToken();
        level = (tokenId & 0x1C000) >> 14;
        devolved = (tokenId & 0x2000) >> 13;
        position = tokenId & 0x1FFF;
        return (level, devolved, position);
    }

    function metaToTokenId(
        uint256 level,
        uint256 devolved,
        uint256 position
    ) public pure returns (uint256) {
        if (level <= 7 && devolved <= 1 && position <= 0x1FFF) {
            return (level << 14) | (devolved << 13) | position;
        }
        revert MetaQueryForNonexistentToken();
    }

    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        (uint256 level, uint256 devolved, uint256 position) = tokenIdToMeta(tokenId);
        unchecked {
            if (_startTokenId() <= position && position < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[position];
                if (ownership.addr != address(0) && ownership.level == level && ownership.devolved == devolved) {
                    return ownership;
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721D.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _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 {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        (uint256 level, uint256 devolved, uint256 position) = tokenIdToMeta(tokenId);

        if (_startTokenId() <= position && position < _currentIndex) {
            TokenOwnership memory ownership = _ownerships[position];
            return ownership.addr != address(0) && ownership.level == level && ownership.devolved == devolved;
        }

        return false;
    }

    function _safeMint(
        address to,
        uint256 quantity,
        uint8 level,
        uint8 bloodline,
        uint8 og,
        uint8 devolved,
        uint16 sequenceId
    ) internal {
        _safeMint(to, quantity, level, bloodline, og, devolved, sequenceId, "");
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        uint8 level,
        uint8 bloodline,
        uint8 og,
        uint8 devolved,
        uint16 sequenceId,
        bytes memory _data
    ) internal {
        _mint(to, quantity, level, bloodline, og, devolved, sequenceId, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        uint8 level,
        uint8 bloodline,
        uint8 og,
        uint8 devolved,
        uint16 sequenceId,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (level > 0 || devolved > 0) revert MintWithInvalidMetadata();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            for (uint256 i = 0; i < quantity; i++) {
                TokenOwnership memory ownership;
                ownership.addr = to;
                ownership.level = level;
                ownership.bloodline = bloodline;
                ownership.og = og;
                ownership.devolved = devolved;
                ownership.sequenceId = sequenceId + uint16(i);

                _ownerships.push(ownership);
            }

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        (, , uint256 position) = tokenIdToMeta(tokenId);
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[position].addr = to;
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    function _transpose(uint256 tokenId, TokenOwnership memory ownership) internal {
        (, , uint256 position) = tokenIdToMeta(tokenId);
        uint256 transposedTokenId = metaToTokenId(ownership.level, ownership.devolved, position);
        address addr = ownership.addr;

        _beforeTokenTransfers(addr, address(0), tokenId, 1);
        _beforeTokenTransfers(address(0), addr, transposedTokenId, 1);

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

        // Transpose data
        _ownerships[position] = ownership;

        emit Transfer(addr, address(0), tokenId);
        emit Transfer(address(0), addr, transposedTokenId);

        _afterTokenTransfers(addr, address(0), tokenId, 1);
        _afterTokenTransfers(address(0), addr, transposedTokenId, 1);

        // Don't increment _burnCounter or _addressData counters because net effect is 0
    }

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        (, , uint256 position) = tokenIdToMeta(tokenId);
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Free up the storage
            TokenOwnership memory blank;
            _ownerships[position] = blank;
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        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 TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 3 of 16 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        virtual
        override
        returns (address, uint256)
    {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 4 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 5 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 7 of 16 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 8 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

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 9 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

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 10 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 13 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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 14 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 15 of 16 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 16 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"DevolveLevelNotActive","type":"error"},{"inputs":[],"name":"DevolveNoMoreLevels","type":"error"},{"inputs":[],"name":"DevolveTokenNotOwned","type":"error"},{"inputs":[],"name":"DevolveTokensNotSameBloodline","type":"error"},{"inputs":[],"name":"DevolveTokensNotSameDevolveState","type":"error"},{"inputs":[],"name":"DevolveTokensNotSameLevel","type":"error"},{"inputs":[],"name":"DevolveTokensSameId","type":"error"},{"inputs":[],"name":"MetaQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"MintExceedsMaxAllocation","type":"error"},{"inputs":[],"name":"MintExceedsMaxBloodlineSupply","type":"error"},{"inputs":[],"name":"MintExceedsMaxPerTx","type":"error"},{"inputs":[],"name":"MintExceedsMaxSupply","type":"error"},{"inputs":[],"name":"MintExceedsReservedAllocation","type":"error"},{"inputs":[],"name":"MintInsufficientFunds","type":"error"},{"inputs":[],"name":"MintInvalidBloodline","type":"error"},{"inputs":[],"name":"MintInvalidProof","type":"error"},{"inputs":[],"name":"MintInvalidSignature","type":"error"},{"inputs":[],"name":"MintSaleNotActive","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintUnderMinimumRequirement","type":"error"},{"inputs":[],"name":"MintWithInvalidMetadata","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SettingsInvalidLevel","type":"error"},{"inputs":[],"name":"SettingsInvalidResAllocation","type":"error"},{"inputs":[],"name":"SettingsInvalidSignerAddress","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"tokenId1","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenId2","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"resultTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"devolvedTokenId","type":"uint256"}],"name":"Devolve","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_WISEMEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"MAX_WISEMEN_PER_BLOODLINE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUMBER_OF_LEVELS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"addressData","outputs":[{"components":[{"internalType":"uint64","name":"balance","type":"uint64"},{"internalType":"uint64","name":"numberMinted","type":"uint64"},{"internalType":"uint64","name":"numberBurned","type":"uint64"},{"internalType":"uint64","name":"aux","type":"uint64"}],"internalType":"struct ERC721D.AddressData","name":"","type":"tuple"}],"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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId1","type":"uint256"},{"internalType":"uint256","name":"tokenId2","type":"uint256"}],"name":"devolve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"level","type":"uint16"}],"name":"getLevelMintTotals","outputs":[{"internalType":"uint16[5]","name":"survivors","type":"uint16[5]"},{"internalType":"uint16[5]","name":"zombies","type":"uint16[5]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"levelMeta","outputs":[{"internalType":"bool","name":"survivorDevolveIsActive","type":"bool"},{"internalType":"bool","name":"zombieDevolveIsActive","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWisemanPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"devolved","type":"uint256"},{"internalType":"uint256","name":"position","type":"uint256"}],"name":"metaToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint16","name":"level","type":"uint16"}],"name":"mintTotal","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"bloodline","type":"uint8"},{"internalType":"bool","name":"og","type":"bool"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"min","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"bytes32","name":"proof","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintWL","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"bloodline","type":"uint8"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintWiseman","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"resMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"setMaxPurchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"setResAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"bool","name":"devolved","type":"bool"}],"name":"toggleDevolveState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenIdToMeta","outputs":[{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"devolved","type":"uint256"},{"internalType":"uint256","name":"position","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenMeta","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint8","name":"level","type":"uint8"},{"internalType":"uint8","name":"bloodline","type":"uint8"},{"internalType":"uint8","name":"og","type":"uint8"},{"internalType":"uint8","name":"devolved","type":"uint8"},{"internalType":"uint16","name":"sequenceId","type":"uint16"}],"internalType":"struct ERC721D.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokenMetasOfOwner","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint8","name":"level","type":"uint8"},{"internalType":"uint8","name":"bloodline","type":"uint8"},{"internalType":"uint8","name":"og","type":"uint8"},{"internalType":"uint8","name":"devolved","type":"uint8"},{"internalType":"uint16","name":"sequenceId","type":"uint16"}],"internalType":"struct ERC721D.TokenOwnership[]","name":"metas","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wisemanPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

610120604052608080620000166001600862000355565b620000239060026200046e565b6200003090600a62000483565b61ffff168152602001620000476001600862000355565b620000549060026200046e565b6200006190600a62000483565b61ffff168152602001620000786001600862000355565b620000859060026200046e565b6200009290600a62000483565b61ffff168152602001620000a96001600862000355565b620000b69060026200046e565b620000c390600a62000483565b61ffff168152602001620000da6001600862000355565b620000e79060026200046e565b620000f490600262000483565b61ffff1690526200010a9060109060056200020e565b503480156200011857600080fd5b50604080518082018252601381527f4465766f6c766520436f6c6c65637469626c65000000000000000000000000006020808301918252835180850190945260078452664445564f4c564560c81b9084015281519192916200017d91600491620002ab565b50805162000193906005906020840190620002ab565b5050600060025550620001a633620001bc565b66d529ae9e860000600c556000600d55620004e2565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600183019183908215620002995791602002820160005b838211156200026757835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030262000225565b8015620002975782816101000a81549061ffff021916905560020160208160010104928301926001030262000267565b505b50620002a792915062000328565b5090565b828054620002b990620004a5565b90600052602060002090601f016020900481019282620002dd576000855562000299565b82601f10620002f857805160ff191683800117855562000299565b8280016001018555821562000299579182015b82811115620002995782518255916020019190600101906200030b565b5b80821115620002a7576000815560010162000329565b634e487b7160e01b600052601160045260246000fd5b6000828210156200036a576200036a6200033f565b500390565b600181815b80851115620003b05781600019048211156200039457620003946200033f565b80851615620003a257918102915b93841c939080029062000374565b509250929050565b600082620003c95750600162000468565b81620003d85750600062000468565b8160018114620003f15760028114620003fc576200041c565b600191505062000468565b60ff8411156200041057620004106200033f565b50506001821b62000468565b5060208310610133831016604e8410600b841016171562000441575081810a62000468565b6200044d83836200036f565b80600019048211156200046457620004646200033f565b0290505b92915050565b60006200047c8383620003b8565b9392505050565b6000816000190483118215151615620004a057620004a06200033f565b500290565b600181811c90821680620004ba57607f821691505b60208210811415620004dc57634e487b7160e01b600052602260045260246000fd5b50919050565b61413280620004f26000396000f3fe6080604052600436106102b25760003560e01c80636c0360eb11610175578063a9689b4f116100dc578063c87b56dd11610095578063e985e9c51161006f578063e985e9c51461096e578063f2fde38b1461098e578063f45504cd146109ae578063f4a0a528146109c157600080fd5b8063c87b56dd14610918578063cb07e86c14610938578063e32498261461094e57600080fd5b8063a9689b4f14610882578063aa1b103f14610897578063aff39713146108ac578063b88d4fde146108cc578063bdf9253d146108ec578063c1424ff01461090257600080fd5b80638da5cb5b1161012e5780638da5cb5b146107cc5780638fb5bb25146107ea578063900b4a5414610818578063949820341461083857806395d89b411461084d578063a22cb4651461086257600080fd5b80636c0360eb1461071557806370a082311461072a578063711897421461074a578063715018a61461076a5780638462151c1461077f57806387145f59146107ac57600080fd5b806323b872dd1161021957806346b3f27f116101d257806346b3f27f1461058657806349df728c146105b957806355f804b3146105d95780635fb5fe3b146105f95780636352211e146106df57806367247433146106ff57600080fd5b806323b872dd146104b25780632a55205a146104d25780633ccfd60b14610511578063408fa43d1461052657806342842e0e1461054657806342966c681461056657600080fd5b80630ae7a3101161026b5780630ae7a310146103af57806315725e9c146103dc578063158626651461041357806315b4233b1461044e57806318160ddd146104615780631d7f1a901461048457600080fd5b806301ffc9a7146102be57806304634d8d146102f3578063046dc1661461031557806306fdde0314610335578063081812fc14610357578063095ea7b31461038f57600080fd5b366102b957005b600080fd5b3480156102ca57600080fd5b506102de6102d93660046136e6565b6109e1565b60405190151581526020015b60405180910390f35b3480156102ff57600080fd5b5061031361030e366004613718565b6109f2565b005b34801561032157600080fd5b5061031361033036600461375d565b610a33565b34801561034157600080fd5b5061034a610aa6565b6040516102ea91906137d2565b34801561036357600080fd5b506103776103723660046137e5565b610b38565b6040516001600160a01b0390911681526020016102ea565b34801561039b57600080fd5b506103136103aa3660046137fe565b610b7c565b3480156103bb57600080fd5b506103cf6103ca3660046137e5565b610c0a565b6040516102ea919061387c565b3480156103e857600080fd5b506103fc6103f73660046137e5565b610c1b565b6040805192151583529015156020830152016102ea565b34801561041f57600080fd5b5061043361042e3660046137e5565b610c41565b604080519384526020840192909252908201526060016102ea565b61031361045c3660046138a0565b610c86565b34801561046d57600080fd5b50600354600254035b6040519081526020016102ea565b34801561049057600080fd5b506104a461049f3660046138bc565b610d03565b6040516102ea929190613907565b3480156104be57600080fd5b506103136104cd366004613923565b610e08565b3480156104de57600080fd5b506104f26104ed366004613964565b610e13565b604080516001600160a01b0390931683526020830191909152016102ea565b34801561051d57600080fd5b50610313610ec1565b34801561053257600080fd5b50610313610541366004613994565b610f1a565b34801561055257600080fd5b50610313610561366004613923565b61100d565b34801561057257600080fd5b506103136105813660046137e5565b611028565b34801561059257600080fd5b506105a66105a13660046137e5565b611060565b60405161ffff90911681526020016102ea565b3480156105c557600080fd5b506103136105d436600461375d565b61108e565b3480156105e557600080fd5b506103136105f4366004613a44565b6111ac565b34801561060557600080fd5b5061069c61061436600461375d565b604080516080810182526000808252602082018190529181018290526060810191909152506001600160a01b0316600090815260076020908152604091829020825160808101845290546001600160401b038082168352600160401b8204811693830193909352600160801b8104831693820193909352600160c01b90920416606082015290565b6040516102ea919081516001600160401b039081168252602080840151821690830152604080840151821690830152606092830151169181019190915260800190565b3480156106eb57600080fd5b506103776106fa3660046137e5565b6111e9565b34801561070b57600080fd5b50610476600c5481565b34801561072157600080fd5b5061034a6111fb565b34801561073657600080fd5b5061047661074536600461375d565b611289565b34801561075657600080fd5b506103136107653660046137e5565b6112d7565b34801561077657600080fd5b50610313611306565b34801561078b57600080fd5b5061079f61079a36600461375d565b61133c565b6040516102ea9190613ac7565b3480156107b857600080fd5b506103136107c7366004613964565b611484565b3480156107d857600080fd5b50600a546001600160a01b0316610377565b3480156107f657600080fd5b5061080a61080536600461375d565b6118d4565b6040516102ea929190613ada565b34801561082457600080fd5b506103136108333660046137e5565b611a9c565b34801561084457600080fd5b50610476611b48565b34801561085957600080fd5b5061034a611b6d565b34801561086e57600080fd5b5061031361087d366004613b3b565b611b7c565b34801561088e57600080fd5b50610476600881565b3480156108a357600080fd5b50610313611c12565b3480156108b857600080fd5b506104766108c7366004613b69565b611c45565b3480156108d857600080fd5b506103136108e7366004613b95565b611c9f565b3480156108f857600080fd5b50610476600f5481565b34801561090e57600080fd5b50610476600e5481565b34801561092457600080fd5b5061034a6109333660046137e5565b611cf0565b34801561094457600080fd5b50610476600d5481565b34801561095a57600080fd5b506105a66109693660046138bc565b611db4565b34801561097a57600080fd5b506102de610989366004613c14565b611e88565b34801561099a57600080fd5b506103136109a936600461375d565b611eb6565b6103136109bc366004613c83565b611f4e565b3480156109cd57600080fd5b506103136109dc3660046137e5565b612167565b60006109ec82612196565b92915050565b600a546001600160a01b03163314610a255760405162461bcd60e51b8152600401610a1c90613d4b565b60405180910390fd5b610a2f82826121d6565b5050565b600a546001600160a01b03163314610a5d5760405162461bcd60e51b8152600401610a1c90613d4b565b6001600160a01b038116610a845760405163a8c2eaeb60e01b815260040160405180910390fd5b602980546001600160a01b0319166001600160a01b0392909216919091179055565b606060048054610ab590613d80565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae190613d80565b8015610b2e5780601f10610b0357610100808354040283529160200191610b2e565b820191906000526020600020905b815481529060010190602001808311610b1157829003601f168201915b5050505050905090565b6000610b43826122d3565b610b60576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b6000610b87826111e9565b9050806001600160a01b0316836001600160a01b03161415610bbc5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610bdc5750610bda8133611e88565b155b15610bfa576040516367d9dca160e11b815260040160405180910390fd5b610c058383836123cf565b505050565b610c126135e4565b6109ec8261242b565b60118160088110610c2b57600080fd5b600302015460ff80821692506101009091041682565b60008060006201ffff841115610c6a5760405163ec267a5760e01b815260040160405180910390fd5b505050600e81901c60071691600d82901c60011691611fff1690565b600d54610ca55760405162131aff60e51b815260040160405180910390fd5b600d54811115610cc857604051632b1ad96760e11b815260040160405180910390fd5b3481600c54610cd79190613dd1565b1115610cf657604051630edc004f60e41b815260040160405180910390fd5b610a2f3383600084612542565b610d0b613619565b610d13613619565b60118361ffff1660088110610d2a57610d2a613df0565b6040805160a08101918290529260039290920290910160010190600590826000855b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411610d4c5790505050505050915060118361ffff1660088110610da257610da2613df0565b6040805160a08101918290529260039290920290910160020190600590826000855b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411610dc457905050505050509050915091565b610c058383836126c7565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610e885750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610ea7906001600160601b031687613dd1565b610eb19190613e1c565b91519350909150505b9250929050565b600a546001600160a01b03163314610eeb5760405162461bcd60e51b8152600401610a1c90613d4b565b6040514790339082156108fc029083906000818181858888f19350505050158015610a2f573d6000803e3d6000fd5b600a546001600160a01b03163314610f445760405162461bcd60e51b8152600401610a1c90613d4b565b610f5060016008613e30565b8210610f6f576040516339ff29af60e11b815260040160405180910390fd5b8015610fc75760118260088110610f8857610f88613df0565b6003020154610100900460ff161560118360088110610fa957610fa9613df0565b6003020180549115156101000261ff00199092169190911790555050565b60118260088110610fda57610fda613df0565b600302015460ff161560118360088110610ff657610ff6613df0565b60030201805460ff19169115159190911790555050565b610c0583838360405180602001604052806000815250611c9f565b600a546001600160a01b031633146110525760405162461bcd60e51b8152600401610a1c90613d4b565b61105d81600161285c565b50565b6010816005811061107057600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b600a546001600160a01b031633146110b85760405162461bcd60e51b8152600401610a1c90613d4b565b6001600160a01b0381166110cb57600080fd5b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015611119573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113d9190613e47565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611188573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2f9190613e60565b600a546001600160a01b031633146111d65760405162461bcd60e51b8152600401610a1c90613d4b565b8051610a2f90600b906020840190613637565b60006111f48261242b565b5192915050565b600b805461120890613d80565b80601f016020809104026020016040519081016040528092919081815260200182805461123490613d80565b80156112815780601f1061125657610100808354040283529160200191611281565b820191906000526020600020905b81548152906001019060200180831161126457829003601f168201915b505050505081565b60006001600160a01b0382166112b2576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b600a546001600160a01b031633146113015760405162461bcd60e51b8152600401610a1c90613d4b565b600d55565b600a546001600160a01b031633146113305760405162461bcd60e51b8152600401610a1c90613d4b565b61133a6000612a53565b565b6060600061134983611289565b6001600160401b03811115611360576113606139b9565b604051908082528060200260200182016040528015611389578160200160208202803683370190505b506002549091506000805b8281101561147a576000600682815481106113b1576113b1613df0565b60009182526020918290206040805160c08101825291909201546001600160a01b0380821680845260ff600160a01b8404811696850196909652600160a81b8304861694840194909452600160b01b820485166060840152600160b81b8204909416608083015261ffff600160c01b9091041660a0820152925090881614156114715761144d816020015160ff16826080015160ff1684611c45565b855160018501948791811061146457611464613df0565b6020026020010181815250505b50600101611394565b5091949350505050565b600061148f83610c41565b92505050600061149e83610c41565b9250505060006114ad8561242b565b905060006114ba8561242b565b82519091506001600160a01b0316331415806114e0575080516001600160a01b03163314155b156114fe5760405163cc4f580d60e01b815260040160405180910390fd5b8486141561151f5760405163364d4f6160e21b815260040160405180910390fd5b806020015160ff16826020015160ff161461154d576040516314b3a2cb60e11b815260040160405180910390fd5b806040015160ff16826040015160ff161461157b57604051631b48944f60e21b815260040160405180910390fd5b806080015160ff16826080015160ff16146115a957604051634cf35c1560e01b815260040160405180910390fd5b6115b560016008613e30565b826020015160ff16106115db57604051631e6fe4cd60e11b815260040160405180910390fd5b6000826080015160ff16600014156116ee576011836020015160ff166008811061160757611607613df0565b600302015460ff1661162c576040516311cafa6f60e11b815260040160405180910390fd5b6001608084015261163d8784612aa5565b611656836020015160ff16846080015160ff1687611c45565b9050601182602001805161166990613e7d565b60ff16908190526008811061168057611680613df0565b60030201600101826040015160ff166005811061169f5761169f613df0565b6010918282040191900660020281819054906101000a900461ffff16809291906116c890613e9d565b82546101009290920a61ffff8181021990931691831602179091551660a083015261183d565b6011836020015160ff166008811061170857611708613df0565b6003020154610100900460ff16611732576040516311cafa6f60e11b815260040160405180910390fd5b61173b87612beb565b60008260200151600161174e9190613ebf565b611759906002613fc8565b6010846040015160ff166005811061177357611773613df0565b601091828204019190066002029054906101000a900461ffff1661ffff1661179b9190613e1c565b905060118360200180516117ae90613e7d565b60ff1690819052600881106117c5576117c5613df0565b60030201600201836040015160ff16600581106117e4576117e4613df0565b6010918282040191900660020281819054906101000a900461ffff168092919061180d90613e9d565b91906101000a81548161ffff021916908361ffff160217905550816118329190613fd7565b61ffff1660a0840152505b6001826060015160ff16901c6001846060015160ff16901c61185f9190613ebf565b60ff1660608301526118718683612aa5565b600061188c836020015160ff16846080015160ff1687611c45565b90508087897fdf4520e578ce23a683866649f87fabe5e770cce52757917d5851d89fb00dc15c856040516118c291815260200190565b60405180910390a45050505050505050565b60608060006118e284611289565b90506000816001600160401b038111156118fe576118fe6139b9565b604051908082528060200260200182016040528015611927578160200160208202803683370190505b5090506000826001600160401b03811115611944576119446139b9565b60405190808252806020026020018201604052801561197d57816020015b61196a6135e4565b8152602001906001900390816119625790505b506002549091506000805b82811015611a8d576000600682815481106119a5576119a5613df0565b60009182526020918290206040805160c08101825291909201546001600160a01b0380821680845260ff600160a01b8404811696850196909652600160a81b8304861694840194909452600160b01b820485166060840152600160b81b8204909416608083015261ffff600160c01b9091041660a08201529250908b161415611a8457611a41816020015160ff16826080015160ff1684611c45565b868481518110611a5357611a53613df0565b60200260200101818152505080858480600101955081518110611a7857611a78613df0565b60200260200101819052505b50600101611988565b50929791965090945050505050565b600a546001600160a01b03163314611ac65760405162461bcd60e51b8152600401610a1c90613d4b565b600f54811015611ae95760405163645a30c360e01b815260040160405180910390fd5b611af560016008613e30565b611b00906002613ffd565b611b0b90602a613dd1565b81611b166000611db4565b61ffff16611b249190614009565b1115611b435760405163645a30c360e01b815260040160405180910390fd5b600e55565b611b5460016008613e30565b611b5f906002613ffd565b611b6a90602a613dd1565b81565b606060058054610ab590613d80565b6001600160a01b038216331415611ba65760405163b06307db60e01b815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314611c3c5760405162461bcd60e51b8152600401610a1c90613d4b565b61133a60008055565b600060078411158015611c59575060018311155b8015611c675750611fff8211155b15611c7f5750600e83901b600d83901b178117611c98565b60405163ec267a5760e01b815260040160405180910390fd5b9392505050565b611caa8484846126c7565b6001600160a01b0383163b15158015611ccc5750611cca84848484612bf6565b155b15611cea576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611cfb826122d3565b611d1857604051630a14c4b560e41b815260040160405180910390fd5b6000611d238361242b565b90506000611d49826020015183604001518460a00151856080015160ff16600114612cdf565b90506000611d55612d73565b9050805160001415611d6957509392505050565b815115611d9c578082604051602001611d83929190614021565b6040516020818303038152906040529350505050919050565b50506040805160208101909152600081529392505050565b60008060118361ffff1660088110611dce57611dce613df0565b6040805160a08101918290529260039290920290910160010190600590826000855b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411611df05790505050505050905080600460058110611e4257611e42613df0565b602090810291909101516060830151604084015192840151845192939192611e6a9190613fd7565b611e749190613fd7565b611e7e9190613fd7565b611c989190613fd7565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b600a546001600160a01b03163314611ee05760405162461bcd60e51b8152600401610a1c90613d4b565b6001600160a01b038116611f455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a1c565b61105d81612a53565b84421080611f5b57508342115b15611f785760405162131aff60e51b815260040160405180910390fd5b6001600160a01b038c166000908152600760205260409020548790611fae908b90600160401b90046001600160401b0316614009565b1115611fcd5760405163012668db60e01b815260040160405180910390fd5b87891015611fee57604051631cf2efcf60e11b815260040160405180910390fd5b34611ff98a88613dd1565b111561201857604051630edc004f60e41b815260040160405180910390fd5b6040516bffffffffffffffffffffffff1960608e901b1660208201528a151560f81b60348201526035810189905260558101889052607581018790526095810186905260b5810185905260009060d5016040516020818303038152906040528051906020012090508084146120a05760405163da3e47d360e01b815260040160405180910390fd5b6120e08484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612d8292505050565b6120fd576040516304f186ef60e01b815260040160405180910390fd5b8661213e5789600f60008282546121149190614009565b9091555050600e54600f54111561213e57604051634171579960e01b815260040160405180910390fd5b6121588d8d8d61214f576000612152565b60805b8d612542565b50505050505050505050505050565b600a546001600160a01b031633146121915760405162461bcd60e51b8152600401610a1c90613d4b565b600c55565b60006001600160e01b031982166380ac58cd60e01b14806121c757506001600160e01b03198216635b5e139f60e01b145b806109ec57506109ec82612dfd565b6127106001600160601b03821611156122445760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a1c565b6001600160a01b03821661229a5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a1c565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6000806000806122e285610c41565b925092509250806122f1600090565b11158015612300575060025481105b156123c45760006006828154811061231a5761231a613df0565b60009182526020918290206040805160c08101825292909101546001600160a01b038116808452600160a01b820460ff90811695850195909552600160a81b8204851692840192909252600160b01b810484166060840152600160b81b81049093166080830152600160c01b90920461ffff1660a08201529150158015906123a8575083816020015160ff16145b80156123ba575082816080015160ff16145b9695505050505050565b506000949350505050565b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6124336135e4565b600080600061244185610c41565b92509250925080612450600090565b1115801561245f575060025481105b156125295760006006828154811061247957612479613df0565b60009182526020918290206040805160c08101825292909101546001600160a01b038116808452600160a01b820460ff90811695850195909552600160a81b8204851692840192909252600160b01b810484166060840152600160b81b81049093166080830152600160c01b90920461ffff1660a0820152915015801590612507575083816020015160ff16145b8015612519575082816080015160ff16145b156125275795945050505050565b505b604051636f96cda160e11b815260040160405180910390fd5b60048360ff1611156125675760405163c7f6d44560e01b815260040160405180910390fd5b6000601260ff85166005811061257f5761257f613df0565b601081049190910154600f9091166002026101000a900461ffff16905060006125a88383614009565b905060108560ff16600581106125c0576125c0613df0565b601091828204019190066002029054906101000a900461ffff1661ffff168111156125fe576040516352bccf5360e01b815260040160405180910390fd5b61260a60016008613e30565b612615906002613ffd565b61262090602a613dd1565b600f54600e54856126316000611db4565b61ffff1661263f9190614009565b6126499190614009565b6126539190613e30565b111561267257604051633e0866c760e01b815260040160405180910390fd5b612683868460008888600088612e32565b80601260ff87166005811061269a5761269a613df0565b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550505050505050565b60006126d282610c41565b9250505060006126e18361242b565b9050846001600160a01b031681600001516001600160a01b0316146127185760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038716148061273657506127368633611e88565b8061275157503361274685610b38565b6001600160a01b0316145b90508061277157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661279857604051633a954ecd60e21b815260040160405180910390fd5b6127a4600085886123cf565b6001600160a01b03868116600090815260076020526040808220805467ffffffffffffffff198082166001600160401b0392831660001901831617909255938916835291208054918216918316600101909216179055600680548691908590811061281157612811613df0565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051869288811692908a16916000805160206140dd8339815191529190a4505050505050565b600061286783610c41565b9250505060006128768461242b565b805190915083156128dc576000336001600160a01b038316148061289f575061289f8233611e88565b806128ba5750336128af87610b38565b6001600160a01b0316145b9050806128da57604051632ce44b5f60e11b815260040160405180910390fd5b505b6128e8600086836123cf565b6001600160a01b03811660009081526007602052604090208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff1984168117839004821660010190911690910277ffffffffffffffff0000000000000000ffffffffffffffff19909216171781556129606135e4565b806006868154811061297457612974613df0565b60009182526020808320845192018054918501516040808701516060880151608089015160a09099015161ffff16600160c01b0261ffff60c01b1960ff9a8b16600160b81b021662ffffff60b81b19928b16600160b01b0260ff60b01b19948c16600160a81b029490941661ffff60a81b199b909616600160a01b026001600160a81b03199098166001600160a01b03998a1617979097179990991693909317179190911692909217949094179093559151899450909250908416906000805160206140dd833981519152908390a45050600380546001019055505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000612ab083610c41565b925050506000612acf836020015160ff16846080015160ff1684611c45565b8351909150612ae0600086836123cf565b8360068481548110612af457612af4613df0565b60009182526020808320845192018054918501516040808701516060880151608089015160a09099015161ffff16600160c01b0261ffff60c01b1960ff9a8b16600160b81b021662ffffff60b81b19928b16600160b01b0260ff60b01b19948c16600160a81b029490941661ffff60a81b199b909616600160a01b026001600160a81b03199098166001600160a01b03998a161797909717999099169390931717919091169290921794909417909355915187928416906000805160206140dd833981519152908390a460405182906001600160a01b038316906000906000805160206140dd833981519152908290a45050505050565b61105d81600061285c565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612c2b903390899088908890600401614047565b6020604051808303816000875af1925050508015612c66575060408051601f3d908101601f19168201909252612c639181019061407a565b60015b612cc1573d808015612c94576040519150601f19603f3d011682016040523d82523d6000602084013e612c99565b606091505b508051612cb9576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60606000612d38612d2b612cfb612d1a612cfb8a60ff16612e5a565b604051806040016040528060018152602001602d60f81b815250612f57565b612d268960ff16612e5a565b612f57565b612d268661ffff16612e5a565b90508215612d6c57612d6481604051806040016040528060028152602001610b5160f21b815250612f57565b915050612cd7565b9050612cd7565b6060600b8054610ab590613d80565b6000612de582612ddf856040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612f83565b6029546001600160a01b039182169116149392505050565b60006001600160e01b0319821663152a902d60e11b14806109ec57506301ffc9a760e01b6001600160e01b03198316146109ec565b612e518787878787878760405180602001604052806000815250612fa7565b50505050505050565b606081612e7e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ea85780612e9281614097565b9150612ea19050600a83613e1c565b9150612e82565b6000816001600160401b03811115612ec257612ec26139b9565b6040519080825280601f01601f191660200182016040528015612eec576020820181803683370190505b5090505b8415612cd757612f01600183613e30565b9150612f0e600a866140b2565b612f19906030614009565b60f81b818381518110612f2e57612f2e613df0565b60200101906001600160f81b031916908160001a905350612f50600a86613e1c565b9450612ef0565b60608282604051602001612f6c929190614021565b604051602081830303815290604052905092915050565b6000806000612f928585612fc3565b91509150612f9f81613030565b509392505050565b612fb9888888888888888860016131eb565b5050505050505050565b600080825160411415612ffa5760208301516040840151606085015160001a612fee878285856134be565b94509450505050610eba565b82516040141561302457602083015160408401516130198683836135ab565b935093505050610eba565b50600090506002610eba565b6000816004811115613044576130446140c6565b141561304d5750565b6001816004811115613061576130616140c6565b14156130af5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a1c565b60028160048111156130c3576130c36140c6565b14156131115760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a1c565b6003816004811115613125576131256140c6565b141561317e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a1c565b6004816004811115613192576131926140c6565b141561105d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a1c565b6002546001600160a01b038a1661321457604051622e076360e81b815260040160405180910390fd5b886132325760405163b562e8dd60e01b815260040160405180910390fd5b60008860ff161180613247575060008560ff16115b1561326557604051636a41931b60e01b815260040160405180910390fd5b6001600160a01b038a1660009081526007602052604081208054600160401b6001600160401b038083168e01811667ffffffffffffffff198416811783900482168f019091169091026fffffffffffffffffffffffffffffffff19909216171790555b898110156133e8576132d86135e4565b6001600160a01b03808d16825260ff808c16602084019081528b8216604085019081528b8316606086019081528b84166080870190815261ffff8c8901811660a08901908152600680546001818101835560009290925299517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f909a01805497519651955194519251909316600160c01b0261ffff60c01b19928916600160b81b029290921662ffffff60b81b19948916600160b01b0260ff60b01b19968a16600160a81b029690961661ffff60a81b1997909916600160a01b026001600160a81b03199098169a90991699909917959095179390931694909417179290921692909217919091179055016132c8565b508089810183801561340357506001600160a01b038c163b15155b1561347a575b60405182906001600160a01b038e16906000906000805160206140dd833981519152908290a461344260008d8480600101955088612bf6565b61345f576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561340957826002541461347557600080fd5b6134ae565b5b6040516001830192906001600160a01b038e16906000906000805160206140dd833981519152908290a48082141561347b575b5060025550505050505050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156134f557506000905060036135a2565b8460ff16601b1415801561350d57508460ff16601c14155b1561351e57506000905060046135a2565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613572573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661359b576000600192509250506135a2565b9150600090505b94509492505050565b6000806001600160ff1b038316816135c860ff86901c601b614009565b90506135d6878288856134be565b935093505050935093915050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081019190915290565b6040518060a001604052806005906020820280368337509192915050565b82805461364390613d80565b90600052602060002090601f01602090048101928261366557600085556136ab565b82601f1061367e57805160ff19168380011785556136ab565b828001600101855582156136ab579182015b828111156136ab578251825591602001919060010190613690565b506136b79291506136bb565b5090565b5b808211156136b757600081556001016136bc565b6001600160e01b03198116811461105d57600080fd5b6000602082840312156136f857600080fd5b8135611c98816136d0565b6001600160a01b038116811461105d57600080fd5b6000806040838503121561372b57600080fd5b823561373681613703565b915060208301356001600160601b038116811461375257600080fd5b809150509250929050565b60006020828403121561376f57600080fd5b8135611c9881613703565b60005b8381101561379557818101518382015260200161377d565b83811115611cea5750506000910152565b600081518084526137be81602086016020860161377a565b601f01601f19169290920160200192915050565b602081526000611c9860208301846137a6565b6000602082840312156137f757600080fd5b5035919050565b6000806040838503121561381157600080fd5b823561381c81613703565b946020939093013593505050565b60018060a01b03815116825260ff602082015116602083015260ff604082015116604083015260ff606082015116606083015260ff608082015116608083015261ffff60a08201511660a08301525050565b60c081016109ec828461382a565b803560ff8116811461389b57600080fd5b919050565b600080604083850312156138b357600080fd5b61381c8361388a565b6000602082840312156138ce57600080fd5b813561ffff81168114611c9857600080fd5b8060005b6005811015611cea57815161ffff168452602093840193909101906001016138e4565b610140810161391682856138e0565b611c9860a08301846138e0565b60008060006060848603121561393857600080fd5b833561394381613703565b9250602084013561395381613703565b929592945050506040919091013590565b6000806040838503121561397757600080fd5b50508035926020909101359150565b801515811461105d57600080fd5b600080604083850312156139a757600080fd5b82359150602083013561375281613986565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156139e9576139e96139b9565b604051601f8501601f19908116603f01168101908282118183101715613a1157613a116139b9565b81604052809350858152868686011115613a2a57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613a5657600080fd5b81356001600160401b03811115613a6c57600080fd5b8201601f81018413613a7d57600080fd5b612cd7848235602084016139cf565b600081518084526020808501945080840160005b83811015613abc57815187529582019590820190600101613aa0565b509495945050505050565b602081526000611c986020830184613a8c565b604081526000613aed6040830185613a8c565b82810360208481019190915284518083528582019282019060005b81811015613b2e57613b1b83865161382a565b9383019360c09290920191600101613b08565b5090979650505050505050565b60008060408385031215613b4e57600080fd5b8235613b5981613703565b9150602083013561375281613986565b600080600060608486031215613b7e57600080fd5b505081359360208301359350604090920135919050565b60008060008060808587031215613bab57600080fd5b8435613bb681613703565b93506020850135613bc681613703565b92506040850135915060608501356001600160401b03811115613be857600080fd5b8501601f81018713613bf957600080fd5b613c08878235602084016139cf565b91505092959194509250565b60008060408385031215613c2757600080fd5b8235613c3281613703565b9150602083013561375281613703565b60008083601f840112613c5457600080fd5b5081356001600160401b03811115613c6b57600080fd5b602083019150836020828501011115610eba57600080fd5b6000806000806000806000806000806000806101608d8f031215613ca657600080fd5b613cb08d35613703565b8c359b50613cc060208e0161388a565b9a50613ccf60408e0135613986565b60408d0135995060608d0135985060808d0135975060a08d0135965060c08d0135955060e08d013594506101008d013593506101208d013592506001600160401b036101408e01351115613d2257600080fd5b613d338e6101408f01358f01613c42565b81935080925050509295989b509295989b509295989b565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680613d9457607f821691505b60208210811415613db557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613deb57613deb613dbb565b500290565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082613e2b57613e2b613e06565b500490565b600082821015613e4257613e42613dbb565b500390565b600060208284031215613e5957600080fd5b5051919050565b600060208284031215613e7257600080fd5b8151611c9881613986565b600060ff821660ff811415613e9457613e94613dbb565b60010192915050565b600061ffff80831681811415613eb557613eb5613dbb565b6001019392505050565b600060ff821660ff84168060ff03821115613edc57613edc613dbb565b019392505050565b600181815b80851115613f1f578160001904821115613f0557613f05613dbb565b80851615613f1257918102915b93841c9390800290613ee9565b509250929050565b600082613f36575060016109ec565b81613f43575060006109ec565b8160018114613f595760028114613f6357613f7f565b60019150506109ec565b60ff841115613f7457613f74613dbb565b50506001821b6109ec565b5060208310610133831016604e8410600b8410161715613fa2575081810a6109ec565b613fac8383613ee4565b8060001904821115613fc057613fc0613dbb565b029392505050565b6000611c9860ff841683613f27565b600061ffff808316818516808303821115613ff457613ff4613dbb565b01949350505050565b6000611c988383613f27565b6000821982111561401c5761401c613dbb565b500190565b6000835161403381846020880161377a565b835190830190613ff481836020880161377a565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906123ba908301846137a6565b60006020828403121561408c57600080fd5b8151611c98816136d0565b60006000198214156140ab576140ab613dbb565b5060010190565b6000826140c1576140c1613e06565b500690565b634e487b7160e01b600052602160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220e91e27b7e734e344eb8afaf5bf231e21120b6405ea2a7a747911dd94fe0e41f864736f6c634300080a0033

Deployed Bytecode

0x6080604052600436106102b25760003560e01c80636c0360eb11610175578063a9689b4f116100dc578063c87b56dd11610095578063e985e9c51161006f578063e985e9c51461096e578063f2fde38b1461098e578063f45504cd146109ae578063f4a0a528146109c157600080fd5b8063c87b56dd14610918578063cb07e86c14610938578063e32498261461094e57600080fd5b8063a9689b4f14610882578063aa1b103f14610897578063aff39713146108ac578063b88d4fde146108cc578063bdf9253d146108ec578063c1424ff01461090257600080fd5b80638da5cb5b1161012e5780638da5cb5b146107cc5780638fb5bb25146107ea578063900b4a5414610818578063949820341461083857806395d89b411461084d578063a22cb4651461086257600080fd5b80636c0360eb1461071557806370a082311461072a578063711897421461074a578063715018a61461076a5780638462151c1461077f57806387145f59146107ac57600080fd5b806323b872dd1161021957806346b3f27f116101d257806346b3f27f1461058657806349df728c146105b957806355f804b3146105d95780635fb5fe3b146105f95780636352211e146106df57806367247433146106ff57600080fd5b806323b872dd146104b25780632a55205a146104d25780633ccfd60b14610511578063408fa43d1461052657806342842e0e1461054657806342966c681461056657600080fd5b80630ae7a3101161026b5780630ae7a310146103af57806315725e9c146103dc578063158626651461041357806315b4233b1461044e57806318160ddd146104615780631d7f1a901461048457600080fd5b806301ffc9a7146102be57806304634d8d146102f3578063046dc1661461031557806306fdde0314610335578063081812fc14610357578063095ea7b31461038f57600080fd5b366102b957005b600080fd5b3480156102ca57600080fd5b506102de6102d93660046136e6565b6109e1565b60405190151581526020015b60405180910390f35b3480156102ff57600080fd5b5061031361030e366004613718565b6109f2565b005b34801561032157600080fd5b5061031361033036600461375d565b610a33565b34801561034157600080fd5b5061034a610aa6565b6040516102ea91906137d2565b34801561036357600080fd5b506103776103723660046137e5565b610b38565b6040516001600160a01b0390911681526020016102ea565b34801561039b57600080fd5b506103136103aa3660046137fe565b610b7c565b3480156103bb57600080fd5b506103cf6103ca3660046137e5565b610c0a565b6040516102ea919061387c565b3480156103e857600080fd5b506103fc6103f73660046137e5565b610c1b565b6040805192151583529015156020830152016102ea565b34801561041f57600080fd5b5061043361042e3660046137e5565b610c41565b604080519384526020840192909252908201526060016102ea565b61031361045c3660046138a0565b610c86565b34801561046d57600080fd5b50600354600254035b6040519081526020016102ea565b34801561049057600080fd5b506104a461049f3660046138bc565b610d03565b6040516102ea929190613907565b3480156104be57600080fd5b506103136104cd366004613923565b610e08565b3480156104de57600080fd5b506104f26104ed366004613964565b610e13565b604080516001600160a01b0390931683526020830191909152016102ea565b34801561051d57600080fd5b50610313610ec1565b34801561053257600080fd5b50610313610541366004613994565b610f1a565b34801561055257600080fd5b50610313610561366004613923565b61100d565b34801561057257600080fd5b506103136105813660046137e5565b611028565b34801561059257600080fd5b506105a66105a13660046137e5565b611060565b60405161ffff90911681526020016102ea565b3480156105c557600080fd5b506103136105d436600461375d565b61108e565b3480156105e557600080fd5b506103136105f4366004613a44565b6111ac565b34801561060557600080fd5b5061069c61061436600461375d565b604080516080810182526000808252602082018190529181018290526060810191909152506001600160a01b0316600090815260076020908152604091829020825160808101845290546001600160401b038082168352600160401b8204811693830193909352600160801b8104831693820193909352600160c01b90920416606082015290565b6040516102ea919081516001600160401b039081168252602080840151821690830152604080840151821690830152606092830151169181019190915260800190565b3480156106eb57600080fd5b506103776106fa3660046137e5565b6111e9565b34801561070b57600080fd5b50610476600c5481565b34801561072157600080fd5b5061034a6111fb565b34801561073657600080fd5b5061047661074536600461375d565b611289565b34801561075657600080fd5b506103136107653660046137e5565b6112d7565b34801561077657600080fd5b50610313611306565b34801561078b57600080fd5b5061079f61079a36600461375d565b61133c565b6040516102ea9190613ac7565b3480156107b857600080fd5b506103136107c7366004613964565b611484565b3480156107d857600080fd5b50600a546001600160a01b0316610377565b3480156107f657600080fd5b5061080a61080536600461375d565b6118d4565b6040516102ea929190613ada565b34801561082457600080fd5b506103136108333660046137e5565b611a9c565b34801561084457600080fd5b50610476611b48565b34801561085957600080fd5b5061034a611b6d565b34801561086e57600080fd5b5061031361087d366004613b3b565b611b7c565b34801561088e57600080fd5b50610476600881565b3480156108a357600080fd5b50610313611c12565b3480156108b857600080fd5b506104766108c7366004613b69565b611c45565b3480156108d857600080fd5b506103136108e7366004613b95565b611c9f565b3480156108f857600080fd5b50610476600f5481565b34801561090e57600080fd5b50610476600e5481565b34801561092457600080fd5b5061034a6109333660046137e5565b611cf0565b34801561094457600080fd5b50610476600d5481565b34801561095a57600080fd5b506105a66109693660046138bc565b611db4565b34801561097a57600080fd5b506102de610989366004613c14565b611e88565b34801561099a57600080fd5b506103136109a936600461375d565b611eb6565b6103136109bc366004613c83565b611f4e565b3480156109cd57600080fd5b506103136109dc3660046137e5565b612167565b60006109ec82612196565b92915050565b600a546001600160a01b03163314610a255760405162461bcd60e51b8152600401610a1c90613d4b565b60405180910390fd5b610a2f82826121d6565b5050565b600a546001600160a01b03163314610a5d5760405162461bcd60e51b8152600401610a1c90613d4b565b6001600160a01b038116610a845760405163a8c2eaeb60e01b815260040160405180910390fd5b602980546001600160a01b0319166001600160a01b0392909216919091179055565b606060048054610ab590613d80565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae190613d80565b8015610b2e5780601f10610b0357610100808354040283529160200191610b2e565b820191906000526020600020905b815481529060010190602001808311610b1157829003601f168201915b5050505050905090565b6000610b43826122d3565b610b60576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b6000610b87826111e9565b9050806001600160a01b0316836001600160a01b03161415610bbc5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610bdc5750610bda8133611e88565b155b15610bfa576040516367d9dca160e11b815260040160405180910390fd5b610c058383836123cf565b505050565b610c126135e4565b6109ec8261242b565b60118160088110610c2b57600080fd5b600302015460ff80821692506101009091041682565b60008060006201ffff841115610c6a5760405163ec267a5760e01b815260040160405180910390fd5b505050600e81901c60071691600d82901c60011691611fff1690565b600d54610ca55760405162131aff60e51b815260040160405180910390fd5b600d54811115610cc857604051632b1ad96760e11b815260040160405180910390fd5b3481600c54610cd79190613dd1565b1115610cf657604051630edc004f60e41b815260040160405180910390fd5b610a2f3383600084612542565b610d0b613619565b610d13613619565b60118361ffff1660088110610d2a57610d2a613df0565b6040805160a08101918290529260039290920290910160010190600590826000855b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411610d4c5790505050505050915060118361ffff1660088110610da257610da2613df0565b6040805160a08101918290529260039290920290910160020190600590826000855b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411610dc457905050505050509050915091565b610c058383836126c7565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610e885750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610ea7906001600160601b031687613dd1565b610eb19190613e1c565b91519350909150505b9250929050565b600a546001600160a01b03163314610eeb5760405162461bcd60e51b8152600401610a1c90613d4b565b6040514790339082156108fc029083906000818181858888f19350505050158015610a2f573d6000803e3d6000fd5b600a546001600160a01b03163314610f445760405162461bcd60e51b8152600401610a1c90613d4b565b610f5060016008613e30565b8210610f6f576040516339ff29af60e11b815260040160405180910390fd5b8015610fc75760118260088110610f8857610f88613df0565b6003020154610100900460ff161560118360088110610fa957610fa9613df0565b6003020180549115156101000261ff00199092169190911790555050565b60118260088110610fda57610fda613df0565b600302015460ff161560118360088110610ff657610ff6613df0565b60030201805460ff19169115159190911790555050565b610c0583838360405180602001604052806000815250611c9f565b600a546001600160a01b031633146110525760405162461bcd60e51b8152600401610a1c90613d4b565b61105d81600161285c565b50565b6010816005811061107057600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b600a546001600160a01b031633146110b85760405162461bcd60e51b8152600401610a1c90613d4b565b6001600160a01b0381166110cb57600080fd5b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015611119573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113d9190613e47565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611188573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2f9190613e60565b600a546001600160a01b031633146111d65760405162461bcd60e51b8152600401610a1c90613d4b565b8051610a2f90600b906020840190613637565b60006111f48261242b565b5192915050565b600b805461120890613d80565b80601f016020809104026020016040519081016040528092919081815260200182805461123490613d80565b80156112815780601f1061125657610100808354040283529160200191611281565b820191906000526020600020905b81548152906001019060200180831161126457829003601f168201915b505050505081565b60006001600160a01b0382166112b2576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b600a546001600160a01b031633146113015760405162461bcd60e51b8152600401610a1c90613d4b565b600d55565b600a546001600160a01b031633146113305760405162461bcd60e51b8152600401610a1c90613d4b565b61133a6000612a53565b565b6060600061134983611289565b6001600160401b03811115611360576113606139b9565b604051908082528060200260200182016040528015611389578160200160208202803683370190505b506002549091506000805b8281101561147a576000600682815481106113b1576113b1613df0565b60009182526020918290206040805160c08101825291909201546001600160a01b0380821680845260ff600160a01b8404811696850196909652600160a81b8304861694840194909452600160b01b820485166060840152600160b81b8204909416608083015261ffff600160c01b9091041660a0820152925090881614156114715761144d816020015160ff16826080015160ff1684611c45565b855160018501948791811061146457611464613df0565b6020026020010181815250505b50600101611394565b5091949350505050565b600061148f83610c41565b92505050600061149e83610c41565b9250505060006114ad8561242b565b905060006114ba8561242b565b82519091506001600160a01b0316331415806114e0575080516001600160a01b03163314155b156114fe5760405163cc4f580d60e01b815260040160405180910390fd5b8486141561151f5760405163364d4f6160e21b815260040160405180910390fd5b806020015160ff16826020015160ff161461154d576040516314b3a2cb60e11b815260040160405180910390fd5b806040015160ff16826040015160ff161461157b57604051631b48944f60e21b815260040160405180910390fd5b806080015160ff16826080015160ff16146115a957604051634cf35c1560e01b815260040160405180910390fd5b6115b560016008613e30565b826020015160ff16106115db57604051631e6fe4cd60e11b815260040160405180910390fd5b6000826080015160ff16600014156116ee576011836020015160ff166008811061160757611607613df0565b600302015460ff1661162c576040516311cafa6f60e11b815260040160405180910390fd5b6001608084015261163d8784612aa5565b611656836020015160ff16846080015160ff1687611c45565b9050601182602001805161166990613e7d565b60ff16908190526008811061168057611680613df0565b60030201600101826040015160ff166005811061169f5761169f613df0565b6010918282040191900660020281819054906101000a900461ffff16809291906116c890613e9d565b82546101009290920a61ffff8181021990931691831602179091551660a083015261183d565b6011836020015160ff166008811061170857611708613df0565b6003020154610100900460ff16611732576040516311cafa6f60e11b815260040160405180910390fd5b61173b87612beb565b60008260200151600161174e9190613ebf565b611759906002613fc8565b6010846040015160ff166005811061177357611773613df0565b601091828204019190066002029054906101000a900461ffff1661ffff1661179b9190613e1c565b905060118360200180516117ae90613e7d565b60ff1690819052600881106117c5576117c5613df0565b60030201600201836040015160ff16600581106117e4576117e4613df0565b6010918282040191900660020281819054906101000a900461ffff168092919061180d90613e9d565b91906101000a81548161ffff021916908361ffff160217905550816118329190613fd7565b61ffff1660a0840152505b6001826060015160ff16901c6001846060015160ff16901c61185f9190613ebf565b60ff1660608301526118718683612aa5565b600061188c836020015160ff16846080015160ff1687611c45565b90508087897fdf4520e578ce23a683866649f87fabe5e770cce52757917d5851d89fb00dc15c856040516118c291815260200190565b60405180910390a45050505050505050565b60608060006118e284611289565b90506000816001600160401b038111156118fe576118fe6139b9565b604051908082528060200260200182016040528015611927578160200160208202803683370190505b5090506000826001600160401b03811115611944576119446139b9565b60405190808252806020026020018201604052801561197d57816020015b61196a6135e4565b8152602001906001900390816119625790505b506002549091506000805b82811015611a8d576000600682815481106119a5576119a5613df0565b60009182526020918290206040805160c08101825291909201546001600160a01b0380821680845260ff600160a01b8404811696850196909652600160a81b8304861694840194909452600160b01b820485166060840152600160b81b8204909416608083015261ffff600160c01b9091041660a08201529250908b161415611a8457611a41816020015160ff16826080015160ff1684611c45565b868481518110611a5357611a53613df0565b60200260200101818152505080858480600101955081518110611a7857611a78613df0565b60200260200101819052505b50600101611988565b50929791965090945050505050565b600a546001600160a01b03163314611ac65760405162461bcd60e51b8152600401610a1c90613d4b565b600f54811015611ae95760405163645a30c360e01b815260040160405180910390fd5b611af560016008613e30565b611b00906002613ffd565b611b0b90602a613dd1565b81611b166000611db4565b61ffff16611b249190614009565b1115611b435760405163645a30c360e01b815260040160405180910390fd5b600e55565b611b5460016008613e30565b611b5f906002613ffd565b611b6a90602a613dd1565b81565b606060058054610ab590613d80565b6001600160a01b038216331415611ba65760405163b06307db60e01b815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314611c3c5760405162461bcd60e51b8152600401610a1c90613d4b565b61133a60008055565b600060078411158015611c59575060018311155b8015611c675750611fff8211155b15611c7f5750600e83901b600d83901b178117611c98565b60405163ec267a5760e01b815260040160405180910390fd5b9392505050565b611caa8484846126c7565b6001600160a01b0383163b15158015611ccc5750611cca84848484612bf6565b155b15611cea576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611cfb826122d3565b611d1857604051630a14c4b560e41b815260040160405180910390fd5b6000611d238361242b565b90506000611d49826020015183604001518460a00151856080015160ff16600114612cdf565b90506000611d55612d73565b9050805160001415611d6957509392505050565b815115611d9c578082604051602001611d83929190614021565b6040516020818303038152906040529350505050919050565b50506040805160208101909152600081529392505050565b60008060118361ffff1660088110611dce57611dce613df0565b6040805160a08101918290529260039290920290910160010190600590826000855b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411611df05790505050505050905080600460058110611e4257611e42613df0565b602090810291909101516060830151604084015192840151845192939192611e6a9190613fd7565b611e749190613fd7565b611e7e9190613fd7565b611c989190613fd7565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b600a546001600160a01b03163314611ee05760405162461bcd60e51b8152600401610a1c90613d4b565b6001600160a01b038116611f455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a1c565b61105d81612a53565b84421080611f5b57508342115b15611f785760405162131aff60e51b815260040160405180910390fd5b6001600160a01b038c166000908152600760205260409020548790611fae908b90600160401b90046001600160401b0316614009565b1115611fcd5760405163012668db60e01b815260040160405180910390fd5b87891015611fee57604051631cf2efcf60e11b815260040160405180910390fd5b34611ff98a88613dd1565b111561201857604051630edc004f60e41b815260040160405180910390fd5b6040516bffffffffffffffffffffffff1960608e901b1660208201528a151560f81b60348201526035810189905260558101889052607581018790526095810186905260b5810185905260009060d5016040516020818303038152906040528051906020012090508084146120a05760405163da3e47d360e01b815260040160405180910390fd5b6120e08484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612d8292505050565b6120fd576040516304f186ef60e01b815260040160405180910390fd5b8661213e5789600f60008282546121149190614009565b9091555050600e54600f54111561213e57604051634171579960e01b815260040160405180910390fd5b6121588d8d8d61214f576000612152565b60805b8d612542565b50505050505050505050505050565b600a546001600160a01b031633146121915760405162461bcd60e51b8152600401610a1c90613d4b565b600c55565b60006001600160e01b031982166380ac58cd60e01b14806121c757506001600160e01b03198216635b5e139f60e01b145b806109ec57506109ec82612dfd565b6127106001600160601b03821611156122445760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a1c565b6001600160a01b03821661229a5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a1c565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6000806000806122e285610c41565b925092509250806122f1600090565b11158015612300575060025481105b156123c45760006006828154811061231a5761231a613df0565b60009182526020918290206040805160c08101825292909101546001600160a01b038116808452600160a01b820460ff90811695850195909552600160a81b8204851692840192909252600160b01b810484166060840152600160b81b81049093166080830152600160c01b90920461ffff1660a08201529150158015906123a8575083816020015160ff16145b80156123ba575082816080015160ff16145b9695505050505050565b506000949350505050565b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6124336135e4565b600080600061244185610c41565b92509250925080612450600090565b1115801561245f575060025481105b156125295760006006828154811061247957612479613df0565b60009182526020918290206040805160c08101825292909101546001600160a01b038116808452600160a01b820460ff90811695850195909552600160a81b8204851692840192909252600160b01b810484166060840152600160b81b81049093166080830152600160c01b90920461ffff1660a0820152915015801590612507575083816020015160ff16145b8015612519575082816080015160ff16145b156125275795945050505050565b505b604051636f96cda160e11b815260040160405180910390fd5b60048360ff1611156125675760405163c7f6d44560e01b815260040160405180910390fd5b6000601260ff85166005811061257f5761257f613df0565b601081049190910154600f9091166002026101000a900461ffff16905060006125a88383614009565b905060108560ff16600581106125c0576125c0613df0565b601091828204019190066002029054906101000a900461ffff1661ffff168111156125fe576040516352bccf5360e01b815260040160405180910390fd5b61260a60016008613e30565b612615906002613ffd565b61262090602a613dd1565b600f54600e54856126316000611db4565b61ffff1661263f9190614009565b6126499190614009565b6126539190613e30565b111561267257604051633e0866c760e01b815260040160405180910390fd5b612683868460008888600088612e32565b80601260ff87166005811061269a5761269a613df0565b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550505050505050565b60006126d282610c41565b9250505060006126e18361242b565b9050846001600160a01b031681600001516001600160a01b0316146127185760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038716148061273657506127368633611e88565b8061275157503361274685610b38565b6001600160a01b0316145b90508061277157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661279857604051633a954ecd60e21b815260040160405180910390fd5b6127a4600085886123cf565b6001600160a01b03868116600090815260076020526040808220805467ffffffffffffffff198082166001600160401b0392831660001901831617909255938916835291208054918216918316600101909216179055600680548691908590811061281157612811613df0565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051869288811692908a16916000805160206140dd8339815191529190a4505050505050565b600061286783610c41565b9250505060006128768461242b565b805190915083156128dc576000336001600160a01b038316148061289f575061289f8233611e88565b806128ba5750336128af87610b38565b6001600160a01b0316145b9050806128da57604051632ce44b5f60e11b815260040160405180910390fd5b505b6128e8600086836123cf565b6001600160a01b03811660009081526007602052604090208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff1984168117839004821660010190911690910277ffffffffffffffff0000000000000000ffffffffffffffff19909216171781556129606135e4565b806006868154811061297457612974613df0565b60009182526020808320845192018054918501516040808701516060880151608089015160a09099015161ffff16600160c01b0261ffff60c01b1960ff9a8b16600160b81b021662ffffff60b81b19928b16600160b01b0260ff60b01b19948c16600160a81b029490941661ffff60a81b199b909616600160a01b026001600160a81b03199098166001600160a01b03998a1617979097179990991693909317179190911692909217949094179093559151899450909250908416906000805160206140dd833981519152908390a45050600380546001019055505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000612ab083610c41565b925050506000612acf836020015160ff16846080015160ff1684611c45565b8351909150612ae0600086836123cf565b8360068481548110612af457612af4613df0565b60009182526020808320845192018054918501516040808701516060880151608089015160a09099015161ffff16600160c01b0261ffff60c01b1960ff9a8b16600160b81b021662ffffff60b81b19928b16600160b01b0260ff60b01b19948c16600160a81b029490941661ffff60a81b199b909616600160a01b026001600160a81b03199098166001600160a01b03998a161797909717999099169390931717919091169290921794909417909355915187928416906000805160206140dd833981519152908390a460405182906001600160a01b038316906000906000805160206140dd833981519152908290a45050505050565b61105d81600061285c565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612c2b903390899088908890600401614047565b6020604051808303816000875af1925050508015612c66575060408051601f3d908101601f19168201909252612c639181019061407a565b60015b612cc1573d808015612c94576040519150601f19603f3d011682016040523d82523d6000602084013e612c99565b606091505b508051612cb9576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60606000612d38612d2b612cfb612d1a612cfb8a60ff16612e5a565b604051806040016040528060018152602001602d60f81b815250612f57565b612d268960ff16612e5a565b612f57565b612d268661ffff16612e5a565b90508215612d6c57612d6481604051806040016040528060028152602001610b5160f21b815250612f57565b915050612cd7565b9050612cd7565b6060600b8054610ab590613d80565b6000612de582612ddf856040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612f83565b6029546001600160a01b039182169116149392505050565b60006001600160e01b0319821663152a902d60e11b14806109ec57506301ffc9a760e01b6001600160e01b03198316146109ec565b612e518787878787878760405180602001604052806000815250612fa7565b50505050505050565b606081612e7e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ea85780612e9281614097565b9150612ea19050600a83613e1c565b9150612e82565b6000816001600160401b03811115612ec257612ec26139b9565b6040519080825280601f01601f191660200182016040528015612eec576020820181803683370190505b5090505b8415612cd757612f01600183613e30565b9150612f0e600a866140b2565b612f19906030614009565b60f81b818381518110612f2e57612f2e613df0565b60200101906001600160f81b031916908160001a905350612f50600a86613e1c565b9450612ef0565b60608282604051602001612f6c929190614021565b604051602081830303815290604052905092915050565b6000806000612f928585612fc3565b91509150612f9f81613030565b509392505050565b612fb9888888888888888860016131eb565b5050505050505050565b600080825160411415612ffa5760208301516040840151606085015160001a612fee878285856134be565b94509450505050610eba565b82516040141561302457602083015160408401516130198683836135ab565b935093505050610eba565b50600090506002610eba565b6000816004811115613044576130446140c6565b141561304d5750565b6001816004811115613061576130616140c6565b14156130af5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a1c565b60028160048111156130c3576130c36140c6565b14156131115760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a1c565b6003816004811115613125576131256140c6565b141561317e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a1c565b6004816004811115613192576131926140c6565b141561105d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a1c565b6002546001600160a01b038a1661321457604051622e076360e81b815260040160405180910390fd5b886132325760405163b562e8dd60e01b815260040160405180910390fd5b60008860ff161180613247575060008560ff16115b1561326557604051636a41931b60e01b815260040160405180910390fd5b6001600160a01b038a1660009081526007602052604081208054600160401b6001600160401b038083168e01811667ffffffffffffffff198416811783900482168f019091169091026fffffffffffffffffffffffffffffffff19909216171790555b898110156133e8576132d86135e4565b6001600160a01b03808d16825260ff808c16602084019081528b8216604085019081528b8316606086019081528b84166080870190815261ffff8c8901811660a08901908152600680546001818101835560009290925299517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f909a01805497519651955194519251909316600160c01b0261ffff60c01b19928916600160b81b029290921662ffffff60b81b19948916600160b01b0260ff60b01b19968a16600160a81b029690961661ffff60a81b1997909916600160a01b026001600160a81b03199098169a90991699909917959095179390931694909417179290921692909217919091179055016132c8565b508089810183801561340357506001600160a01b038c163b15155b1561347a575b60405182906001600160a01b038e16906000906000805160206140dd833981519152908290a461344260008d8480600101955088612bf6565b61345f576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561340957826002541461347557600080fd5b6134ae565b5b6040516001830192906001600160a01b038e16906000906000805160206140dd833981519152908290a48082141561347b575b5060025550505050505050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156134f557506000905060036135a2565b8460ff16601b1415801561350d57508460ff16601c14155b1561351e57506000905060046135a2565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613572573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661359b576000600192509250506135a2565b9150600090505b94509492505050565b6000806001600160ff1b038316816135c860ff86901c601b614009565b90506135d6878288856134be565b935093505050935093915050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081019190915290565b6040518060a001604052806005906020820280368337509192915050565b82805461364390613d80565b90600052602060002090601f01602090048101928261366557600085556136ab565b82601f1061367e57805160ff19168380011785556136ab565b828001600101855582156136ab579182015b828111156136ab578251825591602001919060010190613690565b506136b79291506136bb565b5090565b5b808211156136b757600081556001016136bc565b6001600160e01b03198116811461105d57600080fd5b6000602082840312156136f857600080fd5b8135611c98816136d0565b6001600160a01b038116811461105d57600080fd5b6000806040838503121561372b57600080fd5b823561373681613703565b915060208301356001600160601b038116811461375257600080fd5b809150509250929050565b60006020828403121561376f57600080fd5b8135611c9881613703565b60005b8381101561379557818101518382015260200161377d565b83811115611cea5750506000910152565b600081518084526137be81602086016020860161377a565b601f01601f19169290920160200192915050565b602081526000611c9860208301846137a6565b6000602082840312156137f757600080fd5b5035919050565b6000806040838503121561381157600080fd5b823561381c81613703565b946020939093013593505050565b60018060a01b03815116825260ff602082015116602083015260ff604082015116604083015260ff606082015116606083015260ff608082015116608083015261ffff60a08201511660a08301525050565b60c081016109ec828461382a565b803560ff8116811461389b57600080fd5b919050565b600080604083850312156138b357600080fd5b61381c8361388a565b6000602082840312156138ce57600080fd5b813561ffff81168114611c9857600080fd5b8060005b6005811015611cea57815161ffff168452602093840193909101906001016138e4565b610140810161391682856138e0565b611c9860a08301846138e0565b60008060006060848603121561393857600080fd5b833561394381613703565b9250602084013561395381613703565b929592945050506040919091013590565b6000806040838503121561397757600080fd5b50508035926020909101359150565b801515811461105d57600080fd5b600080604083850312156139a757600080fd5b82359150602083013561375281613986565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156139e9576139e96139b9565b604051601f8501601f19908116603f01168101908282118183101715613a1157613a116139b9565b81604052809350858152868686011115613a2a57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613a5657600080fd5b81356001600160401b03811115613a6c57600080fd5b8201601f81018413613a7d57600080fd5b612cd7848235602084016139cf565b600081518084526020808501945080840160005b83811015613abc57815187529582019590820190600101613aa0565b509495945050505050565b602081526000611c986020830184613a8c565b604081526000613aed6040830185613a8c565b82810360208481019190915284518083528582019282019060005b81811015613b2e57613b1b83865161382a565b9383019360c09290920191600101613b08565b5090979650505050505050565b60008060408385031215613b4e57600080fd5b8235613b5981613703565b9150602083013561375281613986565b600080600060608486031215613b7e57600080fd5b505081359360208301359350604090920135919050565b60008060008060808587031215613bab57600080fd5b8435613bb681613703565b93506020850135613bc681613703565b92506040850135915060608501356001600160401b03811115613be857600080fd5b8501601f81018713613bf957600080fd5b613c08878235602084016139cf565b91505092959194509250565b60008060408385031215613c2757600080fd5b8235613c3281613703565b9150602083013561375281613703565b60008083601f840112613c5457600080fd5b5081356001600160401b03811115613c6b57600080fd5b602083019150836020828501011115610eba57600080fd5b6000806000806000806000806000806000806101608d8f031215613ca657600080fd5b613cb08d35613703565b8c359b50613cc060208e0161388a565b9a50613ccf60408e0135613986565b60408d0135995060608d0135985060808d0135975060a08d0135965060c08d0135955060e08d013594506101008d013593506101208d013592506001600160401b036101408e01351115613d2257600080fd5b613d338e6101408f01358f01613c42565b81935080925050509295989b509295989b509295989b565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680613d9457607f821691505b60208210811415613db557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613deb57613deb613dbb565b500290565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082613e2b57613e2b613e06565b500490565b600082821015613e4257613e42613dbb565b500390565b600060208284031215613e5957600080fd5b5051919050565b600060208284031215613e7257600080fd5b8151611c9881613986565b600060ff821660ff811415613e9457613e94613dbb565b60010192915050565b600061ffff80831681811415613eb557613eb5613dbb565b6001019392505050565b600060ff821660ff84168060ff03821115613edc57613edc613dbb565b019392505050565b600181815b80851115613f1f578160001904821115613f0557613f05613dbb565b80851615613f1257918102915b93841c9390800290613ee9565b509250929050565b600082613f36575060016109ec565b81613f43575060006109ec565b8160018114613f595760028114613f6357613f7f565b60019150506109ec565b60ff841115613f7457613f74613dbb565b50506001821b6109ec565b5060208310610133831016604e8410600b8410161715613fa2575081810a6109ec565b613fac8383613ee4565b8060001904821115613fc057613fc0613dbb565b029392505050565b6000611c9860ff841683613f27565b600061ffff808316818516808303821115613ff457613ff4613dbb565b01949350505050565b6000611c988383613f27565b6000821982111561401c5761401c613dbb565b500190565b6000835161403381846020880161377a565b835190830190613ff481836020880161377a565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906123ba908301846137a6565b60006020828403121561408c57600080fd5b8151611c98816136d0565b60006000198214156140ab576140ab613dbb565b5060010190565b6000826140c1576140c1613e06565b500690565b634e487b7160e01b600052602160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220e91e27b7e734e344eb8afaf5bf231e21120b6405ea2a7a747911dd94fe0e41f864736f6c634300080a0033

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.