ETH Price: $3,408.03 (+2.64%)

Token

Blitpop (BLITPOP)
 

Overview

Max Total Supply

188 BLITPOP

Holders

96

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
dievardump.eth
Balance
1 BLITPOP
0xD1edDfcc4596CC8bD0bd7495beaB9B979fc50336
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:
Blitpops

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

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

pragma solidity >=0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

import {IBlitmap} from "../Interfaces/IBlitmap.sol";
import {Base64} from "../Base64.sol";
import {strings} from "../StringUtils.sol";


contract Blitpops is ERC721Enumerable, Ownable, ERC165Storage {
    using strings for *;
    using Strings for uint256;

    struct FilterMatrix {
        uint256 revisions;
        string filter1;
        string filter2;
        string filter3;
    }

    mapping(uint256 => FilterMatrix) internal filterMap;
    uint256 public constant MINT_PRICE = 0.02 ether;
    uint256 public constant ROYALTY_AMOUNT = 10;
    bytes4 private constant _INTERFACE_ID_ERC2981 = 0xc155531d;
    address public BLITMAP_ADDRESS;
    uint256 public ownerSaleEnd;
    bool public editingAllowed;
    mapping(string => string) internal filters;
    string[] internal filterNames;

    constructor(address blitmapAddress) payable ERC721("Blitpop", "BLITPOP") {
        _registerInterface(_INTERFACE_ID_ERC2981);
        BLITMAP_ADDRESS = blitmapAddress;
        filters['og'] = '<svg>';
        filters['campbells'] = '<filter id="campbells"><feColorMatrix type="matrix" values="1 0 0 1.9 -2.2 0 1 0 0.0 0.3 0 0 1 0 0.5 0 0 0 1 0.2"></feColorMatrix></filter><svg filter="url(#campbells)">';
        filters['electric-chair'] = '<filter id="ec"><feColorMatrix type="matrix" values="1 0 0 0 0 -0.4 1.3 -0.4 0.2 -0.1 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter><svg filter="url(#ec)">';
        filters['marilyn'] = '<filter id="marilyn"><feColorMatrix type="matrix" values="1 0 0 1.7 -1.6 0 1 0 0.0 0.3 -0.7 0 1 0 0.5 0 0 0 1 0.2"></feColorMatrix></filter><svg filter="url(#marilyn)">';
        filters['brillo'] = '<filter id="brillo"><feColorMatrix type="matrix" values="0 1.0 0 0 0 0 1.0 0 0 0 0 0.6 1 0 0 0 0 0 1 0 "/></filter><svg filter="url(#brillo)">';
        filters['b&w'] = '<filter id="bw"><feColorMatrix type="matrix" values="0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 1 0 "/></filter><svg filter="url(#bw)">';
        filterNames = ['og', 'campbells', 'electric-chair', 'marilyn', 'brillo', 'b&w'];
        ownerSaleEnd = block.timestamp + 7 days;
    }

    function addFilter(string memory name, string memory filter) public onlyOwner {
        filterNames.push(name);
        filters[name] = filter;
    }

    function setEditingAllowed(bool allowed) public onlyOwner {
        editingAllowed = allowed;
    }

    function listFilters() public view returns(string[] memory) {
        return filterNames;
    }

    function filtersFor(uint256 tokenId) public view returns (FilterMatrix memory) {
        return filterMap[tokenId];
    }

    function ownerMint(
        uint256 tokenId,
        string memory filter1,
        string memory filter2,
        string memory filter3) public payable {
        if (block.timestamp <= ownerSaleEnd){
            require(msg.value == MINT_PRICE, "Bp:oM:402");
            require(msg.sender == IBlitmap(BLITMAP_ADDRESS).ownerOf(tokenId), "Bp:oM:403");
        }

        if (block.timestamp > ownerSaleEnd) {
            require(msg.sender == owner(), "Bp:oM:403");
        }

        filterMap[tokenId] = FilterMatrix({
            revisions: 0,
            filter1: filter1,
            filter2: filter2,
            filter3: filter3
        });

        _safeMint(msg.sender, tokenId);
    }

    function updateFilters(
        uint256 tokenId,
        string memory filter1,
        string memory filter2,
        string memory filter3
    ) public {
        require(editingAllowed, "Bp:uF:400");
        require(msg.sender == ownerOf(tokenId), "Bp:uF:403");
        filterMap[tokenId] = FilterMatrix({
            revisions: filterMap[tokenId].revisions + 1,
            filter1: filter1,
            filter2: filter2,
            filter3: filter3
        });
    }

    /* solhint-disable quotes */

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "Bp:tU:404");

        FilterMatrix memory tokenFilters = filterMap[tokenId];
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        bytes(
                            abi.encodePacked(
                                '{"name":"Blitpop ',
                                IBlitmap(BLITMAP_ADDRESS).tokenNameOf(tokenId),
                                '", "description":"Blitpops are onchain Blitmap derivatives. To construct the artwork, the original Blitmap with corresponding token ID is fetched, collaged and filtered to return a modified onchain SVG.", "image": "',
                                svgBase64Data(tokenId, tokenFilters.filter1, tokenFilters.filter2, tokenFilters.filter3),
                                '", ',
                                tokenProperties(tokenFilters),
                                '"}}'
                            )
                        )
                    )
                )
            );
    }

    function tokenProperties(FilterMatrix memory tokenFilters) internal view returns (bytes memory) {
        return abi.encodePacked(
            '"properties": { "revisions": "',
            tokenFilters.revisions.toString(),
            '", "Top Right": "',
            tokenFilters.filter1,
            '", "Bottom Left": "',
            tokenFilters.filter2,
            '", "Bottom Right": "',
            tokenFilters.filter3
        );
    }

    function svgBase64Data(
        uint256 tokenId,
        string memory filter1,
        string memory filter2,
        string memory filter3
    ) public view returns (string memory) {
        return string(
            abi.encodePacked(
                'data:image/svg+xml;base64,',
                Base64.encode(svgRaw(tokenId, filter1, filter2, filter3))
            )
        );
    }

    function svgRaw(
        uint256 tokenId,
        string memory filter1,
        string memory filter2,
        string memory filter3
    ) internal view returns (bytes memory) {
        string memory viewbox = 'viewBox="0 0 32 32">';
        strings.slice memory main = IBlitmap(BLITMAP_ADDRESS).tokenSvgDataOf(tokenId).toSlice();
        strings.slice memory start = main.split(viewbox.toSlice());

        return abi.encodePacked(
            '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><svg viewBox="0 0 32 32" width="32" height="32">',
            main.toString(),
            '<svg viewBox="0 0 32 32" width="32" height="32" x="32">',
            filters[filter1],
            main.toString(),
            '</svg><svg viewBox="0 0 32 32" width="32" height="32" y="32">',
            filters[filter2],
            main.toString(),
            '</svg><svg viewBox="0 0 32 32" width="32" height="32" x="32" y="32">',
            filters[filter3],
            main.toString(),
            '</svg></svg>'
        );
    }

    function royaltyInfo(
        uint256 tokenId,
        uint256 value,
        bytes calldata _data
    ) external view returns (address _receiver, uint256 royaltyAmount) {
        royaltyAmount = (value * ROYALTY_AMOUNT) / 100;

        return (owner(), royaltyAmount);
    }

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

    function supportsInterface(bytes4 interfaceId) public view override(ERC165Storage, ERC721Enumerable) returns (bool) {
        return ERC721Enumerable.supportsInterface(interfaceId) || ERC165Storage.supportsInterface(interfaceId);
    }
}

File 2 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 18 : ERC165Storage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC165.sol";

/**
 * @dev Storage based implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165Storage is ERC165 {
    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

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

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

File 5 of 18 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 18 : IBlitmap.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";


interface IBlitmap is IERC721 {
    function tokenNameOf(uint256 tokenId) external view returns (string memory);
    function tokenSvgDataOf(uint256 tokenId) external view returns (string memory);
}

File 7 of 18 : Base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;

/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 8 of 18 : StringUtils.sol
/*
 * @title String & slice utility library for Solidity contracts.
 * @author Nick Johnson <[email protected]>
 *
 * @dev Functionality in this library is largely implemented using an
 *      abstraction called a 'slice'. A slice represents a part of a string -
 *      anything from the entire string to a single character, or even no
 *      characters at all (a 0-length slice). Since a slice only has to specify
 *      an offset and a length, copying and manipulating slices is a lot less
 *      expensive than copying and manipulating the strings they reference.
 *
 *      To further reduce gas costs, most functions on slice that need to return
 *      a slice modify the original one instead of allocating a new one; for
 *      instance, `s.split(".")` will return the text up to the first '.',
 *      modifying s to only contain the remainder of the string after the '.'.
 *      In situations where you do not want to modify the original slice, you
 *      can make a copy first with `.copy()`, for example:
 *      `s.copy().split(".")`. Try and avoid using this idiom in loops; since
 *      Solidity has no memory management, it will result in allocating many
 *      short-lived slices that are later discarded.
 *
 *      Functions that return two slices come in two versions: a non-allocating
 *      version that takes the second slice as an argument, modifying it in
 *      place, and an allocating version that allocates and returns the second
 *      slice; see `nextRune` for example.
 *
 *      Functions that have to copy string data will return strings rather than
 *      slices; these can be cast back to slices for further processing if
 *      required.
 *
 *      For convenience, some functions are provided with non-modifying
 *      variants that create a new slice and return both; for instance,
 *      `s.splitNew('.')` leaves s unmodified, and returns two values
 *      corresponding to the left and right parts of the string.
 */

pragma solidity >=0.8.0;

library strings {
    struct slice {
        uint _len;
        uint _ptr;
    }

    function memcpy(uint dest, uint src, uint len) private pure {
        // Copy word-length chunks while possible
        for(; len >= 32; len -= 32) {
            assembly {
                mstore(dest, mload(src))
            }
            dest += 32;
            src += 32;
        }

        // Copy remaining bytes
        uint mask = 256 ** (32 - len) - 1;
        assembly {
            let srcpart := and(mload(src), not(mask))
            let destpart := and(mload(dest), mask)
            mstore(dest, or(destpart, srcpart))
        }
    }

    /*
     * @dev Returns a slice containing the entire string.
     * @param self The string to make a slice from.
     * @return A newly allocated slice containing the entire string.
     */
    function toSlice(string memory self) internal pure returns (slice memory) {
        uint ptr;
        assembly {
            ptr := add(self, 0x20)
        }
        return slice(bytes(self).length, ptr);
    }

    /*
     * @dev Returns the length of a null-terminated bytes32 string.
     * @param self The value to find the length of.
     * @return The length of the string, from 0 to 32.
     */
    function len(bytes32 self) internal pure returns (uint) {
        uint ret;
        if (self == 0)
            return 0;
        if (uint(self) & 0xffffffffffffffffffffffffffffffff == 0) {
            ret += 16;
            self = bytes32(uint(self) / 0x100000000000000000000000000000000);
        }
        if (uint(self) & 0xffffffffffffffff == 0) {
            ret += 8;
            self = bytes32(uint(self) / 0x10000000000000000);
        }
        if (uint(self) & 0xffffffff == 0) {
            ret += 4;
            self = bytes32(uint(self) / 0x100000000);
        }
        if (uint(self) & 0xffff == 0) {
            ret += 2;
            self = bytes32(uint(self) / 0x10000);
        }
        if (uint(self) & 0xff == 0) {
            ret += 1;
        }
        return 32 - ret;
    }

    /*
     * @dev Returns a slice containing the entire bytes32, interpreted as a
     *      null-terminated utf-8 string.
     * @param self The bytes32 value to convert to a slice.
     * @return A new slice containing the value of the input argument up to the
     *         first null.
     */
    function toSliceB32(bytes32 self) internal pure returns (slice memory ret) {
        // Allocate space for `self` in memory, copy it there, and point ret at it
        assembly {
            let ptr := mload(0x40)
            mstore(0x40, add(ptr, 0x20))
            mstore(ptr, self)
            mstore(add(ret, 0x20), ptr)
        }
        ret._len = len(self);
    }

    /*
     * @dev Returns a new slice containing the same data as the current slice.
     * @param self The slice to copy.
     * @return A new slice containing the same data as `self`.
     */
    function copy(slice memory self) internal pure returns (slice memory) {
        return slice(self._len, self._ptr);
    }

    /*
     * @dev Copies a slice to a new string.
     * @param self The slice to copy.
     * @return A newly allocated string containing the slice's text.
     */
    function toString(slice memory self) internal pure returns (string memory) {
        string memory ret = new string(self._len);
        uint retptr;
        assembly { retptr := add(ret, 32) }

        memcpy(retptr, self._ptr, self._len);
        return ret;
    }

    /*
     * @dev Returns the length in runes of the slice. Note that this operation
     *      takes time proportional to the length of the slice; avoid using it
     *      in loops, and call `slice.empty()` if you only need to know whether
     *      the slice is empty or not.
     * @param self The slice to operate on.
     * @return The length of the slice in runes.
     */
    function len(slice memory self) internal pure returns (uint l) {
        // Starting at ptr-31 means the LSB will be the byte we care about
        uint ptr = self._ptr - 31;
        uint end = ptr + self._len;
        for (l = 0; ptr < end; l++) {
            uint8 b;
            assembly { b := and(mload(ptr), 0xFF) }
            if (b < 0x80) {
                ptr += 1;
            } else if(b < 0xE0) {
                ptr += 2;
            } else if(b < 0xF0) {
                ptr += 3;
            } else if(b < 0xF8) {
                ptr += 4;
            } else if(b < 0xFC) {
                ptr += 5;
            } else {
                ptr += 6;
            }
        }
    }

    /*
     * @dev Returns true if the slice is empty (has a length of 0).
     * @param self The slice to operate on.
     * @return True if the slice is empty, False otherwise.
     */
    function empty(slice memory self) internal pure returns (bool) {
        return self._len == 0;
    }

    /*
     * @dev Returns a positive number if `other` comes lexicographically after
     *      `self`, a negative number if it comes before, or zero if the
     *      contents of the two slices are equal. Comparison is done per-rune,
     *      on unicode codepoints.
     * @param self The first slice to compare.
     * @param other The second slice to compare.
     * @return The result of the comparison.
     */
    function compare(slice memory self, slice memory other) internal pure returns (int) {
        uint shortest = self._len;
        if (other._len < self._len)
            shortest = other._len;

        uint selfptr = self._ptr;
        uint otherptr = other._ptr;
        for (uint idx = 0; idx < shortest; idx += 32) {
            int a;
            int b;
            assembly {
                a := mload(selfptr)
                b := mload(otherptr)
            }
            if (a != b) {
                // Mask out irrelevant bytes and check again
                int256 mask = int256(-1); // 0xffff...
                if(shortest < 32) {
                  mask = int256(~(2 ** (8 * (32 - shortest + idx)) - 1));
                }
                int256 diff = (a & mask) - (b & mask);
                if (diff != 0)
                    return int(diff);
            }
            selfptr += 32;
            otherptr += 32;
        }
        return int(self._len) - int(other._len);
    }

    /*
     * @dev Returns true if the two slices contain the same text.
     * @param self The first slice to compare.
     * @param self The second slice to compare.
     * @return True if the slices are equal, false otherwise.
     */
    function equals(slice memory self, slice memory other) internal pure returns (bool) {
        return compare(self, other) == 0;
    }

    /*
     * @dev Extracts the first rune in the slice into `rune`, advancing the
     *      slice to point to the next rune and returning `self`.
     * @param self The slice to operate on.
     * @param rune The slice that will contain the first rune.
     * @return `rune`.
     */
    function nextRune(slice memory self, slice memory rune) internal pure returns (slice memory) {
        rune._ptr = self._ptr;

        if (self._len == 0) {
            rune._len = 0;
            return rune;
        }

        uint l;
        uint b;
        // Load the first byte of the rune into the LSBs of b
        assembly { b := and(mload(sub(mload(add(self, 32)), 31)), 0xFF) }
        if (b < 0x80) {
            l = 1;
        } else if(b < 0xE0) {
            l = 2;
        } else if(b < 0xF0) {
            l = 3;
        } else {
            l = 4;
        }

        // Check for truncated codepoints
        if (l > self._len) {
            rune._len = self._len;
            self._ptr += self._len;
            self._len = 0;
            return rune;
        }

        self._ptr += l;
        self._len -= l;
        rune._len = l;
        return rune;
    }

    /*
     * @dev Returns the first rune in the slice, advancing the slice to point
     *      to the next rune.
     * @param self The slice to operate on.
     * @return A slice containing only the first rune from `self`.
     */
    function nextRune(slice memory self) internal pure returns (slice memory ret) {
        nextRune(self, ret);
    }

    /*
     * @dev Returns the number of the first codepoint in the slice.
     * @param self The slice to operate on.
     * @return The number of the first codepoint in the slice.
     */
    function ord(slice memory self) internal pure returns (uint ret) {
        if (self._len == 0) {
            return 0;
        }

        uint word;
        uint length;
        uint divisor = 2 ** 248;

        // Load the rune into the MSBs of b
        assembly { word:= mload(mload(add(self, 32))) }
        uint b = word / divisor;
        if (b < 0x80) {
            ret = b;
            length = 1;
        } else if(b < 0xE0) {
            ret = b & 0x1F;
            length = 2;
        } else if(b < 0xF0) {
            ret = b & 0x0F;
            length = 3;
        } else {
            ret = b & 0x07;
            length = 4;
        }

        // Check for truncated codepoints
        if (length > self._len) {
            return 0;
        }

        for (uint i = 1; i < length; i++) {
            divisor = divisor / 256;
            b = (word / divisor) & 0xFF;
            if (b & 0xC0 != 0x80) {
                // Invalid UTF-8 sequence
                return 0;
            }
            ret = (ret * 64) | (b & 0x3F);
        }

        return ret;
    }

    /*
     * @dev Returns the keccak-256 hash of the slice.
     * @param self The slice to hash.
     * @return The hash of the slice.
     */
    function keccak(slice memory self) internal pure returns (bytes32 ret) {
        assembly {
            ret := keccak256(mload(add(self, 32)), mload(self))
        }
    }

    /*
     * @dev Returns true if `self` starts with `needle`.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return True if the slice starts with the provided text, false otherwise.
     */
    function startsWith(slice memory self, slice memory needle) internal pure returns (bool) {
        if (self._len < needle._len) {
            return false;
        }

        if (self._ptr == needle._ptr) {
            return true;
        }

        bool equal;
        assembly {
            let length := mload(needle)
            let selfptr := mload(add(self, 0x20))
            let needleptr := mload(add(needle, 0x20))
            equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
        }
        return equal;
    }

    /*
     * @dev If `self` starts with `needle`, `needle` is removed from the
     *      beginning of `self`. Otherwise, `self` is unmodified.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return `self`
     */
    function beyond(slice memory self, slice memory needle) internal pure returns (slice memory) {
        if (self._len < needle._len) {
            return self;
        }

        bool equal = true;
        if (self._ptr != needle._ptr) {
            assembly {
                let length := mload(needle)
                let selfptr := mload(add(self, 0x20))
                let needleptr := mload(add(needle, 0x20))
                equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
            }
        }

        if (equal) {
            self._len -= needle._len;
            self._ptr += needle._len;
        }

        return self;
    }

    /*
     * @dev Returns true if the slice ends with `needle`.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return True if the slice starts with the provided text, false otherwise.
     */
    function endsWith(slice memory self, slice memory needle) internal pure returns (bool) {
        if (self._len < needle._len) {
            return false;
        }

        uint selfptr = self._ptr + self._len - needle._len;

        if (selfptr == needle._ptr) {
            return true;
        }

        bool equal;
        assembly {
            let length := mload(needle)
            let needleptr := mload(add(needle, 0x20))
            equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
        }

        return equal;
    }

    /*
     * @dev If `self` ends with `needle`, `needle` is removed from the
     *      end of `self`. Otherwise, `self` is unmodified.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return `self`
     */
    function until(slice memory self, slice memory needle) internal pure returns (slice memory) {
        if (self._len < needle._len) {
            return self;
        }

        uint selfptr = self._ptr + self._len - needle._len;
        bool equal = true;
        if (selfptr != needle._ptr) {
            assembly {
                let length := mload(needle)
                let needleptr := mload(add(needle, 0x20))
                equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
            }
        }

        if (equal) {
            self._len -= needle._len;
        }

        return self;
    }

    // Returns the memory address of the first byte of the first occurrence of
    // `needle` in `self`, or the first byte after `self` if not found.
    function findPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private pure returns (uint) {
        uint ptr = selfptr;
        uint idx;

        if (needlelen <= selflen) {
            if (needlelen <= 32) {
                bytes32 mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1));

                bytes32 needledata;
                assembly { needledata := and(mload(needleptr), mask) }

                uint end = selfptr + selflen - needlelen;
                bytes32 ptrdata;
                assembly { ptrdata := and(mload(ptr), mask) }

                while (ptrdata != needledata) {
                    if (ptr >= end)
                        return selfptr + selflen;
                    ptr++;
                    assembly { ptrdata := and(mload(ptr), mask) }
                }
                return ptr;
            } else {
                // For long needles, use hashing
                bytes32 hash;
                assembly { hash := keccak256(needleptr, needlelen) }

                for (idx = 0; idx <= selflen - needlelen; idx++) {
                    bytes32 testHash;
                    assembly { testHash := keccak256(ptr, needlelen) }
                    if (hash == testHash)
                        return ptr;
                    ptr += 1;
                }
            }
        }
        return selfptr + selflen;
    }

    // Returns the memory address of the first byte after the last occurrence of
    // `needle` in `self`, or the address of `self` if not found.
    function rfindPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private pure returns (uint) {
        uint ptr;

        if (needlelen <= selflen) {
            if (needlelen <= 32) {
                bytes32 mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1));

                bytes32 needledata;
                assembly { needledata := and(mload(needleptr), mask) }

                ptr = selfptr + selflen - needlelen;
                bytes32 ptrdata;
                assembly { ptrdata := and(mload(ptr), mask) }

                while (ptrdata != needledata) {
                    if (ptr <= selfptr)
                        return selfptr;
                    ptr--;
                    assembly { ptrdata := and(mload(ptr), mask) }
                }
                return ptr + needlelen;
            } else {
                // For long needles, use hashing
                bytes32 hash;
                assembly { hash := keccak256(needleptr, needlelen) }
                ptr = selfptr + (selflen - needlelen);
                while (ptr >= selfptr) {
                    bytes32 testHash;
                    assembly { testHash := keccak256(ptr, needlelen) }
                    if (hash == testHash)
                        return ptr + needlelen;
                    ptr -= 1;
                }
            }
        }
        return selfptr;
    }

    /*
     * @dev Modifies `self` to contain everything from the first occurrence of
     *      `needle` to the end of the slice. `self` is set to the empty slice
     *      if `needle` is not found.
     * @param self The slice to search and modify.
     * @param needle The text to search for.
     * @return `self`.
     */
    function find(slice memory self, slice memory needle) internal pure returns (slice memory) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr);
        self._len -= ptr - self._ptr;
        self._ptr = ptr;
        return self;
    }

    /*
     * @dev Modifies `self` to contain the part of the string from the start of
     *      `self` to the end of the first occurrence of `needle`. If `needle`
     *      is not found, `self` is set to the empty slice.
     * @param self The slice to search and modify.
     * @param needle The text to search for.
     * @return `self`.
     */
    function rfind(slice memory self, slice memory needle) internal pure returns (slice memory) {
        uint ptr = rfindPtr(self._len, self._ptr, needle._len, needle._ptr);
        self._len = ptr - self._ptr;
        return self;
    }

    /*
     * @dev Splits the slice, setting `self` to everything after the first
     *      occurrence of `needle`, and `token` to everything before it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and `token` is set to the entirety of `self`.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @param token An output parameter to which the first token is written.
     * @return `token`.
     */
    function split(slice memory self, slice memory needle, slice memory token) internal pure returns (slice memory) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr);
        token._ptr = self._ptr;
        token._len = ptr - self._ptr;
        if (ptr == self._ptr + self._len) {
            // Not found
            self._len = 0;
        } else {
            self._len -= token._len + needle._len;
            self._ptr = ptr + needle._len;
        }
        return token;
    }

    /*
     * @dev Splits the slice, setting `self` to everything after the first
     *      occurrence of `needle`, and returning everything before it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and the entirety of `self` is returned.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @return The part of `self` up to the first occurrence of `delim`.
     */
    function split(slice memory self, slice memory needle) internal pure returns (slice memory token) {
        split(self, needle, token);
    }

    /*
     * @dev Splits the slice, setting `self` to everything before the last
     *      occurrence of `needle`, and `token` to everything after it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and `token` is set to the entirety of `self`.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @param token An output parameter to which the first token is written.
     * @return `token`.
     */
    function rsplit(slice memory self, slice memory needle, slice memory token) internal pure returns (slice memory) {
        uint ptr = rfindPtr(self._len, self._ptr, needle._len, needle._ptr);
        token._ptr = ptr;
        token._len = self._len - (ptr - self._ptr);
        if (ptr == self._ptr) {
            // Not found
            self._len = 0;
        } else {
            self._len -= token._len + needle._len;
        }
        return token;
    }

    /*
     * @dev Splits the slice, setting `self` to everything before the last
     *      occurrence of `needle`, and returning everything after it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and the entirety of `self` is returned.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @return The part of `self` after the last occurrence of `delim`.
     */
    function rsplit(slice memory self, slice memory needle) internal pure returns (slice memory token) {
        rsplit(self, needle, token);
    }

    /*
     * @dev Counts the number of nonoverlapping occurrences of `needle` in `self`.
     * @param self The slice to search.
     * @param needle The text to search for in `self`.
     * @return The number of occurrences of `needle` found in `self`.
     */
    function count(slice memory self, slice memory needle) internal pure returns (uint cnt) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr) + needle._len;
        while (ptr <= self._ptr + self._len) {
            cnt++;
            ptr = findPtr(self._len - (ptr - self._ptr), ptr, needle._len, needle._ptr) + needle._len;
        }
    }

    /*
     * @dev Returns True if `self` contains `needle`.
     * @param self The slice to search.
     * @param needle The text to search for in `self`.
     * @return True if `needle` is found in `self`, false otherwise.
     */
    function contains(slice memory self, slice memory needle) internal pure returns (bool) {
        return rfindPtr(self._len, self._ptr, needle._len, needle._ptr) != self._ptr;
    }

    /*
     * @dev Returns a newly allocated string containing the concatenation of
     *      `self` and `other`.
     * @param self The first slice to concatenate.
     * @param other The second slice to concatenate.
     * @return The concatenation of the two strings.
     */
    function concat(slice memory self, slice memory other) internal pure returns (string memory) {
        string memory ret = new string(self._len + other._len);
        uint retptr;
        assembly { retptr := add(ret, 32) }
        memcpy(retptr, self._ptr, self._len);
        memcpy(retptr + self._len, other._ptr, other._len);
        return ret;
    }

    /*
     * @dev Joins an array of slices, using `self` as a delimiter, returning a
     *      newly allocated string.
     * @param self The delimiter to use.
     * @param parts A list of slices to join.
     * @return A newly allocated string containing all the slices in `parts`,
     *         joined with `self`.
     */
    function join(slice memory self, slice[] memory parts) internal pure returns (string memory) {
        if (parts.length == 0)
            return "";

        uint length = self._len * (parts.length - 1);
        for(uint i = 0; i < parts.length; i++)
            length += parts[i]._len;

        string memory ret = new string(length);
        uint retptr;
        assembly { retptr := add(ret, 32) }

        for(uint i = 0; i < parts.length; i++) {
            memcpy(retptr, parts[i]._ptr, parts[i]._len);
            retptr += parts[i]._len;
            if (i < parts.length - 1) {
                memcpy(retptr, self._ptr, self._len);
                retptr += self._len;
            }
        }

        return ret;
    }
}

File 9 of 18 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 10 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 11 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 12 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 14 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 16 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 17 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity >=0.8.0;

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

import {IBlitmap} from "../Interfaces/IBlitmap.sol";
import {Base64} from "../Base64.sol";
import {strings} from "../StringUtils.sol";

contract MockBlitmap is ERC721, Ownable {

    constructor() payable ERC721("MockBlitmap", "BLIT") {}

    function tokenNameOf(uint256 _tokenId) public view returns (string memory) {
        return "Mock Blitmap";
    }

    function tokenSvgDataOf(uint256 tokenId) public view returns (string memory) {
        return '<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><rect fill="#000000" x="0" y="0" width="1.5" height="1.5" /><rect fill="#000000" x="1" y="0" width="1.5" height="1.5" /><rect fill="#000000" x="2" y="0" width="1.5" height="1.5" /></svg>';
    }

    function ownerOf(uint256 tokenId) public override view returns (address) {
        return tx.origin;
    }

}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"blitmapAddress","type":"address"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"BLITMAP_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"filter","type":"string"}],"name":"addFilter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"editingAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"filtersFor","outputs":[{"components":[{"internalType":"uint256","name":"revisions","type":"uint256"},{"internalType":"string","name":"filter1","type":"string"},{"internalType":"string","name":"filter2","type":"string"},{"internalType":"string","name":"filter3","type":"string"}],"internalType":"struct Blitpops.FilterMatrix","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"listFilters","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"filter1","type":"string"},{"internalType":"string","name":"filter2","type":"string"},{"internalType":"string","name":"filter3","type":"string"}],"name":"ownerMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerSaleEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setEditingAllowed","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"filter1","type":"string"},{"internalType":"string","name":"filter2","type":"string"},{"internalType":"string","name":"filter3","type":"string"}],"name":"svgBase64Data","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"filter1","type":"string"},{"internalType":"string","name":"filter2","type":"string"},{"internalType":"string","name":"filter3","type":"string"}],"name":"updateFilters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526040516200444c3803806200444c8339810160408190526200002691620005e2565b604051806040016040528060078152602001660426c6974706f760cc1b815250604051806040016040528060078152602001660424c4954504f560cc1b81525081600090805190602001906200007e92919062000476565b5080516200009490600190602084019062000476565b505050620000b1620000ab620003c560201b60201c565b620003c9565b620000c363c155531d60e01b6200041b565b600d80546001600160a01b0319166001600160a01b03831617905560408051808201825260058152641e39bb339f60d91b60208201529051601090620001099062000675565b908152602001604051809103902090805190602001906200012c92919062000476565b506040518060e0016040528060a981526020016200430860a991396010604051620001579062000660565b908152602001604051809103902090805190602001906200017a92919062000476565b506040518060c00160405280609b8152602001620043b1609b91396010604051620001a59062000634565b90815260200160405180910390209080519060200190620001c892919062000476565b506040518060e0016040528060a88152602001620041e060a891396010604051620001f39062000612565b908152602001604051809103902090805190602001906200021692919062000476565b506040518060c00160405280608e815260200162004152608e9139601060405162000241906200064e565b908152602001604051809103902090805190602001906200026492919062000476565b506040518060a0016040528060808152602001620042886080913960106040516200028f9062000625565b90815260200160405180910390209080519060200190620002b292919062000476565b506040518060c00160405280604051806040016040528060028152602001616f6760f01b81525081526020016040518060400160405280600981526020016863616d7062656c6c7360b81b81525081526020016040518060400160405280600e81526020016d32b632b1ba3934b196b1b430b4b960911b81525081526020016040518060400160405280600781526020016636b0b934b63cb760c91b8152508152602001604051806040016040528060068152602001656272696c6c6f60d01b81525081526020016040518060400160405280600381526020016262267760e81b8152508152506011906006620003ab92919062000505565b50620003bb4262093a80620006ba565b600e55506200071c565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160e01b03198082161415620004515760405162461bcd60e51b8152600401620004489062000683565b60405180910390fd5b6001600160e01b0319166000908152600b60205260409020805460ff19166001179055565b8280546200048490620006df565b90600052602060002090601f016020900481019282620004a85760008555620004f3565b82601f10620004c357805160ff1916838001178555620004f3565b82800160010185558215620004f3579182015b82811115620004f3578251825591602001919060010190620004d6565b506200050192915062000565565b5090565b82805482825590600052602060002090810192821562000557579160200282015b828111156200055757825180516200054691849160209091019062000476565b509160200191906001019062000526565b50620005019291506200057c565b5b8082111562000501576000815560010162000566565b80821115620005015760006200059382826200059d565b506001016200057c565b508054620005ab90620006df565b6000825580601f10620005bf5750620005df565b601f016020900490600052602060002090810190620005df919062000565565b50565b600060208284031215620005f4578081fd5b81516001600160a01b03811681146200060b578182fd5b9392505050565b6636b0b934b63cb760c91b815260070190565b6262267760e81b815260030190565b6d32b632b1ba3934b196b1b430b4b960911b8152600e0190565b656272696c6c6f60d01b815260060190565b6863616d7062656c6c7360b81b815260090190565b616f6760f01b815260020190565b6020808252601c908201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604082015260600190565b60008219821115620006da57634e487b7160e01b81526011600452602481fd5b500190565b600281046001821680620006f457607f821691505b602082108114156200071657634e487b7160e01b600052602260045260246000fd5b50919050565b613a26806200072c6000396000f3fe6080604052600436106101ee5760003560e01c80638da5cb5b1161010d578063c155531d116100a0578063e985e9c51161006f578063e985e9c51461053c578063f22998a81461055c578063f2fde38b1461057c578063f61f6e031461059c578063fc194cf6146105c9576101ee565b8063c155531d146104b9578063c56ec2a1146104e7578063c87b56dd14610507578063d9f7ce8214610527576101ee565b8063a22cb465116100dc578063a22cb4651461044f578063b2c751721461046f578063b88d4fde14610484578063c002d23d146104a4576101ee565b80638da5cb5b146103f25780639143bafc1461040757806395d89b4114610427578063a13170e81461043c576101ee565b80633ccfd60b116101855780636352211e116101545780636352211e1461038857806366d6cbc4146103a857806370a08231146103bd578063715018a6146103dd576101ee565b80633ccfd60b1461031157806342842e0e146103265780634f6ccce71461034657806350a1151d14610366576101ee565b806318160ddd116101c157806318160ddd1461029a57806323b872dd146102bc5780632f745c59146102dc5780633472aaa0146102fc576101ee565b806301ffc9a7146101f357806306fdde0314610229578063081812fc1461024b578063095ea7b314610278575b600080fd5b3480156101ff57600080fd5b5061021361020e366004612812565b6105e9565b60405161022091906130fc565b60405180910390f35b34801561023557600080fd5b5061023e61060b565b6040516102209190613107565b34801561025757600080fd5b5061026b61026636600461291e565b61069d565b6040516102209190613032565b34801561028457600080fd5b506102986102933660046127cd565b6106e9565b005b3480156102a657600080fd5b506102af610781565b60405161022091906136d9565b3480156102c857600080fd5b506102986102d73660046126dc565b610787565b3480156102e857600080fd5b506102af6102f73660046127cd565b6107bf565b34801561030857600080fd5b506102af610811565b34801561031d57600080fd5b50610298610817565b34801561033257600080fd5b506102986103413660046126dc565b610885565b34801561035257600080fd5b506102af61036136600461291e565b6108a0565b34801561037257600080fd5b5061037b6108fb565b604051610220919061309c565b34801561039457600080fd5b5061026b6103a336600461291e565b6109d4565b3480156103b457600080fd5b50610213610a09565b3480156103c957600080fd5b506102af6103d836600461266c565b610a12565b3480156103e957600080fd5b50610298610a56565b3480156103fe57600080fd5b5061026b610aa1565b34801561041357600080fd5b50610298610422366004612936565b610ab0565b34801561043357600080fd5b5061023e610bb7565b61029861044a366004612936565b610bc6565b34801561045b57600080fd5b5061029861046a366004612799565b610d7d565b34801561047b57600080fd5b506102af610e4b565b34801561049057600080fd5b5061029861049f36600461271c565b610e50565b3480156104b057600080fd5b506102af610e89565b3480156104c557600080fd5b506104d96104d43660046129b8565b610e94565b604051610220929190613083565b3480156104f357600080fd5b506102986105023660046127f8565b610ec4565b34801561051357600080fd5b5061023e61052236600461291e565b610f16565b34801561053357600080fd5b5061026b611217565b34801561054857600080fd5b506102136105573660046126a4565b611226565b34801561056857600080fd5b506102986105773660046128bd565b611254565b34801561058857600080fd5b5061029861059736600461266c565b611309565b3480156105a857600080fd5b506105bc6105b736600461291e565b611377565b6040516102209190613677565b3480156105d557600080fd5b5061023e6105e4366004612936565b611564565b60006105f4826115a4565b806106035750610603826115c9565b90505b919050565b60606000805461061a906138d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610646906138d9565b80156106935780601f1061066857610100808354040283529160200191610693565b820191906000526020600020905b81548152906001019060200180831161067657829003601f168201915b5050505050905090565b60006106a8826115fa565b6106cd5760405162461bcd60e51b81526004016106c490613466565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106f4826109d4565b9050806001600160a01b0316836001600160a01b031614156107285760405162461bcd60e51b81526004016106c490613530565b806001600160a01b031661073a611617565b6001600160a01b03161480610756575061075681610557611617565b6107725760405162461bcd60e51b81526004016106c490613341565b61077c838361161b565b505050565b60085490565b610798610792611617565b82611689565b6107b45760405162461bcd60e51b81526004016106c490613594565b61077c838383611706565b60006107ca83610a12565b82106107e85760405162461bcd60e51b81526004016106c49061311a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600e5481565b61081f611617565b6001600160a01b0316610830610aa1565b6001600160a01b0316146108565760405162461bcd60e51b81526004016106c4906134b2565b60405133904780156108fc02916000818181858888f19350505050158015610882573d6000803e3d6000fd5b50565b61077c83838360405180602001604052806000815250610e50565b60006108aa610781565b82106108c85760405162461bcd60e51b81526004016106c4906135e5565b600882815481106108e957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b60606011805480602002602001604051908101604052809291908181526020016000905b828210156109cb57838290600052602060002001805461093e906138d9565b80601f016020809104026020016040519081016040528092919081815260200182805461096a906138d9565b80156109b75780601f1061098c576101008083540402835291602001916109b7565b820191906000526020600020905b81548152906001019060200180831161099a57829003601f168201915b50505050508152602001906001019061091f565b50505050905090565b6000818152600260205260408120546001600160a01b0316806106035760405162461bcd60e51b81526004016106c4906133e8565b600f5460ff1681565b60006001600160a01b038216610a3a5760405162461bcd60e51b81526004016106c49061339e565b506001600160a01b031660009081526003602052604090205490565b610a5e611617565b6001600160a01b0316610a6f610aa1565b6001600160a01b031614610a955760405162461bcd60e51b81526004016106c4906134b2565b610a9f6000611833565b565b600a546001600160a01b031690565b600f5460ff16610ad25760405162461bcd60e51b81526004016106c49061331e565b610adb846109d4565b6001600160a01b0316336001600160a01b031614610b0b5760405162461bcd60e51b81526004016106c490613631565b604080516080810182526000868152600c60205291909120548190610b31906001613740565b81526020808201869052604080830186905260609092018490526000878152600c825291909120825181558282015180519192610b7692600185019290910190612524565b5060408201518051610b92916002840191602090910190612524565b5060608201518051610bae916003840191602090910190612524565b50505050505050565b60606001805461061a906138d9565b600e544211610ca55766470de4df8200003414610bf55760405162461bcd60e51b81526004016106c490613654565b600d546040516331a9108f60e11b81526001600160a01b0390911690636352211e90610c259087906004016136d9565b60206040518083038186803b158015610c3d57600080fd5b505afa158015610c51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c759190612688565b6001600160a01b0316336001600160a01b031614610ca55760405162461bcd60e51b81526004016106c490613571565b600e54421115610ce757610cb7610aa1565b6001600160a01b0316336001600160a01b031614610ce75760405162461bcd60e51b81526004016106c490613571565b604080516080810182526000808252602080830187815283850187905260608401869052888352600c8252939091208251815592518051929392610d319260018501920190612524565b5060408201518051610d4d916002840191602090910190612524565b5060608201518051610d69916003840191602090910190612524565b50905050610d773385611885565b50505050565b610d85611617565b6001600160a01b0316826001600160a01b03161415610db65760405162461bcd60e51b81526004016106c490613278565b8060056000610dc3611617565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610e07611617565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610e3f91906130fc565b60405180910390a35050565b600a81565b610e61610e5b611617565b83611689565b610e7d5760405162461bcd60e51b81526004016106c490613594565b610d77848484846118a3565b66470de4df82000081565b6000806064610ea4600a87613877565b610eae9190613758565b9050610eb8610aa1565b91505b94509492505050565b610ecc611617565b6001600160a01b0316610edd610aa1565b6001600160a01b031614610f035760405162461bcd60e51b81526004016106c4906134b2565b600f805460ff1916911515919091179055565b6060610f21826115fa565b610f3d5760405162461bcd60e51b81526004016106c4906132fb565b6000600c600084815260200190815260200160002060405180608001604052908160008201548152602001600182018054610f77906138d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa3906138d9565b8015610ff05780601f10610fc557610100808354040283529160200191610ff0565b820191906000526020600020905b815481529060010190602001808311610fd357829003601f168201915b50505050508152602001600282018054611009906138d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611035906138d9565b80156110825780601f1061105757610100808354040283529160200191611082565b820191906000526020600020905b81548152906001019060200180831161106557829003601f168201915b5050505050815260200160038201805461109b906138d9565b80601f01602080910402602001604051908101604052809291908181526020018280546110c7906138d9565b80156111145780601f106110e957610100808354040283529160200191611114565b820191906000526020600020905b8154815290600101906020018083116110f757829003601f168201915b505050919092525050600d546040516338c9319960e21b81529293506111f0926001600160a01b03909116915063e324c664906111559087906004016136d9565b60006040518083038186803b15801561116d57600080fd5b505afa158015611181573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111a9919081019061284a565b6111c185846020015185604001518660600151611564565b6111ca846118d6565b6040516020016111dc93929190612bc1565b60405160208183030381529060405261191d565b6040516020016112009190612ec8565b604051602081830303815290604052915050919050565b600d546001600160a01b031681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61125c611617565b6001600160a01b031661126d610aa1565b6001600160a01b0316146112935760405162461bcd60e51b81526004016106c4906134b2565b6011805460018101825560009190915282516112d6917f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6801906020850190612524565b50806010836040516112e89190612ba5565b9081526020016040518091039020908051906020019061077c929190612524565b611311611617565b6001600160a01b0316611322610aa1565b6001600160a01b0316146113485760405162461bcd60e51b81526004016106c4906134b2565b6001600160a01b03811661136e5760405162461bcd60e51b81526004016106c4906131b7565b61088281611833565b61137f6125a8565b600c6000838152602001908152602001600020604051806080016040529081600082015481526020016001820180546113b7906138d9565b80601f01602080910402602001604051908101604052809291908181526020018280546113e3906138d9565b80156114305780601f1061140557610100808354040283529160200191611430565b820191906000526020600020905b81548152906001019060200180831161141357829003601f168201915b50505050508152602001600282018054611449906138d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611475906138d9565b80156114c25780601f10611497576101008083540402835291602001916114c2565b820191906000526020600020905b8154815290600101906020018083116114a557829003601f168201915b505050505081526020016003820180546114db906138d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611507906138d9565b80156115545780601f1061152957610100808354040283529160200191611554565b820191906000526020600020905b81548152906001019060200180831161153757829003601f168201915b5050505050815250509050919050565b606061157a61157586868686611a91565b61191d565b60405160200161158a9190612fed565b60405160208183030381529060405290505b949350505050565b60006001600160e01b0319821663780e9d6360e01b1480610603575061060382611c14565b60006115d4826115a4565b806106035750506001600160e01b0319166000908152600b602052604090205460ff1690565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611650826109d4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611694826115fa565b6116b05760405162461bcd60e51b81526004016106c4906132af565b60006116bb836109d4565b9050806001600160a01b0316846001600160a01b031614806116f65750836001600160a01b03166116eb8461069d565b6001600160a01b0316145b8061159c575061159c8185611226565b826001600160a01b0316611719826109d4565b6001600160a01b03161461173f5760405162461bcd60e51b81526004016106c4906134e7565b6001600160a01b0382166117655760405162461bcd60e51b81526004016106c490613234565b611770838383611c54565b61177b60008261161b565b6001600160a01b03831660009081526003602052604081208054600192906117a4908490613896565b90915550506001600160a01b03821660009081526003602052604081208054600192906117d2908490613740565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61189f828260405180602001604052806000815250611cdd565b5050565b6118ae848484611706565b6118ba84848484611d10565b610d775760405162461bcd60e51b81526004016106c490613165565b60606118e58260000151611e28565b8260200151836040015184606001516040516020016119079493929190612f0d565b6040516020818303038152906040529050919050565b80516060908061193d575050604080516020810190915260008152610606565b6000600361194c836002613740565b6119569190613758565b611961906004613877565b90506000611970826020613740565b67ffffffffffffffff81111561199657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156119c0576020820181803683370190505b50905060006040518060600160405280604081526020016139b1604091399050600181016020830160005b86811015611a4c576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016119eb565b506003860660018114611a665760028114611a7757611a83565b613d3d60f01b600119830152611a83565b603d60f81b6000198301525b505050918152949350505050565b60408051808201825260148152733b34b2bba137bc1e91181018101999101999111f60611b6020820152600d54915163a78d070f60e01b8152606092600091611b4b916001600160a01b03169063a78d070f90611af2908b906004016136d9565b60006040518083038186803b158015611b0a57600080fd5b505afa158015611b1e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b46919081019061284a565b611f43565b90506000611b62611b5b84611f43565b8390611f68565b9050611b6d82611f82565b601088604051611b7d9190612ba5565b9081526020016040518091039020611b9484611f82565b601089604051611ba49190612ba5565b9081526020016040518091039020611bbb86611f82565b60108a604051611bcb9190612ba5565b9081526020016040518091039020611be288611f82565b604051602001611bf89796959493929190612d2e565b6040516020818303038152906040529350505050949350505050565b60006001600160e01b031982166380ac58cd60e01b1480611c4557506001600160e01b03198216635b5e139f60e01b145b80610603575061060382611ff9565b611c5f83838361077c565b6001600160a01b038316611c7b57611c7681612012565b611c9e565b816001600160a01b0316836001600160a01b031614611c9e57611c9e8382612056565b6001600160a01b038216611cba57611cb5816120f3565b61077c565b826001600160a01b0316826001600160a01b03161461077c5761077c82826121cc565b611ce78383612210565b611cf46000848484611d10565b61077c5760405162461bcd60e51b81526004016106c490613165565b6000611d24846001600160a01b03166122ef565b15611e2057836001600160a01b031663150b7a02611d40611617565b8786866040518563ffffffff1660e01b8152600401611d629493929190613046565b602060405180830381600087803b158015611d7c57600080fd5b505af1925050508015611dac575060408051601f3d908101601f19168201909252611da99181019061282e565b60015b611e06573d808015611dda576040519150601f19603f3d011682016040523d82523d6000602084013e611ddf565b606091505b508051611dfe5760405162461bcd60e51b81526004016106c490613165565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061159c565b50600161159c565b606081611e4d57506040805180820190915260018152600360fc1b6020820152610606565b8160005b8115611e775780611e6181613914565b9150611e709050600a83613758565b9150611e51565b60008167ffffffffffffffff811115611ea057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611eca576020820181803683370190505b5090505b841561159c57611edf600183613896565b9150611eec600a8661392f565b611ef7906030613740565b60f81b818381518110611f1a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f3c600a86613758565b9450611ece565b611f4b6125d0565b506040805180820190915281518152602082810190820152919050565b611f706125d0565b611f7b8383836122f5565b5092915050565b60606000826000015167ffffffffffffffff811115611fb157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611fdb576020820181803683370190505b5090506000602082019050611f7b8185602001518660000151612398565b6001600160e01b031981166301ffc9a760e01b14919050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161206384610a12565b61206d9190613896565b6000838152600760205260409020549091508082146120c0576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061210590600190613896565b6000838152600960205260408120546008805493945090928490811061213b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061216a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806121b057634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006121d783610a12565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166122365760405162461bcd60e51b81526004016106c490613431565b61223f816115fa565b1561225c5760405162461bcd60e51b81526004016106c4906131fd565b61226860008383611c54565b6001600160a01b0382166000908152600360205260408120805460019290612291908490613740565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b6122fd6125d0565b600061231b8560000151866020015186600001518760200151612409565b6020808701805191860191909152519091506123379082613896565b83528451602086015161234a9190613740565b81141561235a576000855261238c565b835183516123689190613740565b85518690612377908390613896565b90525083516123869082613740565b60208601525b829150505b9392505050565b602081106123d057815183526123af602084613740565b92506123bc602083613740565b91506123c9602082613896565b9050612398565b600060016123df836020613896565b6123eb906101006137a9565b6123f59190613896565b925184518416931916929092179092525050565b6000838186851161250f57602085116124bd576000600161242b876020613896565b612436906008613877565b6124419060026137a9565b61244b9190613896565b85519019915081166000876124608b8b613740565b61246a9190613896565b855190915083165b8281146124af578186106124975761248a8b8b613740565b965050505050505061159c565b856124a181613914565b965050838651169050612472565b85965050505050505061159c565b508383206000905b6124cf8689613896565b821161250d57858320818114156124ec578394505050505061159c565b6124f7600185613740565b935050818061250590613914565b9250506124c5565b505b6125198787613740565b979650505050505050565b828054612530906138d9565b90600052602060002090601f0160209004810192826125525760008555612598565b82601f1061256b57805160ff1916838001178555612598565b82800160010185558215612598579182015b8281111561259857825182559160200191906001019061257d565b506125a49291506125ea565b5090565b6040518060800160405280600081526020016060815260200160608152602001606081525090565b604051806040016040528060008152602001600081525090565b5b808211156125a457600081556001016125eb565b600061261261260d8461370c565b6136e2565b905082815283838301111561262657600080fd5b828260208301376000602084830101529392505050565b8035801515811461060657600080fd5b600082601f83011261265d578081fd5b612391838335602085016125ff565b60006020828403121561267d578081fd5b813561239181613985565b600060208284031215612699578081fd5b815161239181613985565b600080604083850312156126b6578081fd5b82356126c181613985565b915060208301356126d181613985565b809150509250929050565b6000806000606084860312156126f0578081fd5b83356126fb81613985565b9250602084013561270b81613985565b929592945050506040919091013590565b60008060008060808587031215612731578081fd5b843561273c81613985565b9350602085013561274c81613985565b925060408501359150606085013567ffffffffffffffff81111561276e578182fd5b8501601f8101871361277e578182fd5b61278d878235602084016125ff565b91505092959194509250565b600080604083850312156127ab578182fd5b82356127b681613985565b91506127c46020840161263d565b90509250929050565b600080604083850312156127df578182fd5b82356127ea81613985565b946020939093013593505050565b600060208284031215612809578081fd5b6123918261263d565b600060208284031215612823578081fd5b81356123918161399a565b60006020828403121561283f578081fd5b81516123918161399a565b60006020828403121561285b578081fd5b815167ffffffffffffffff811115612871578182fd5b8201601f81018413612881578182fd5b805161288f61260d8261370c565b8181528560208385010111156128a3578384fd5b6128b48260208301602086016138ad565b95945050505050565b600080604083850312156128cf578182fd5b823567ffffffffffffffff808211156128e6578384fd5b6128f28683870161264d565b93506020850135915080821115612907578283fd5b506129148582860161264d565b9150509250929050565b60006020828403121561292f578081fd5b5035919050565b6000806000806080858703121561294b578182fd5b84359350602085013567ffffffffffffffff80821115612969578384fd5b6129758883890161264d565b9450604087013591508082111561298a578384fd5b6129968883890161264d565b935060608701359150808211156129ab578283fd5b5061278d8782880161264d565b600080600080606085870312156129cd578182fd5b8435935060208501359250604085013567ffffffffffffffff808211156129f2578384fd5b818701915087601f830112612a05578384fd5b813581811115612a13578485fd5b886020828501011115612a24578485fd5b95989497505060200194505050565b60008151808452612a4b8160208601602086016138ad565b601f01601f19169290920160200192915050565b60008151612a718185602086016138ad565b9290920192915050565b805460009060028104600180831680612a9557607f831692505b6020808410821415612ab557634e487b7160e01b86526022600452602486fd5b818015612ac95760018114612ada57612b07565b60ff19861689528489019650612b07565b612ae388613734565b60005b86811015612aff5781548b820152908501908301612ae6565b505084890196505b50505050505092915050565b6b1e17b9bb339f1e17b9bb339f60a11b8152600c0190565b7f3c2f7376673e3c7376672076696577426f783d2230203020333220333222207781527f696474683d22333222206865696768743d2233322220783d2233322220793d226020820152631999111f60e11b604082015260440190565b62227d7d60e81b815260030190565b6201116160ed1b815260030190565b60008251612bb78184602087016138ad565b9190910192915050565b7003d913730b6b2911d11213634ba3837b81607d1b81528351600090612bee8160118501602089016138ad565b7f222c20226465736372697074696f6e223a22426c6974706f707320617265206f6011918401918201527f6e636861696e20426c69746d61702064657269766174697665732e20546f206360318201527f6f6e7374727563742074686520617274776f726b2c20746865206f726967696e60518201527f616c20426c69746d6170207769746820636f72726573706f6e64696e6720746f60718201527f6b656e20494420697320666574636865642c20636f6c6c6167656420616e642060918201527f66696c746572656420746f2072657475726e2061206d6f646966696564206f6e60b18201527f636861696e205356472e222c2022696d616765223a202200000000000000000060d18201528451612d0f8160e88401602089016138ad565b612519612d29612d2360e884860101612b96565b87612a5f565b612b87565b60007f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323082527f30302f737667222076696577426f783d22302030203634203634223e3c73766760208301527f2076696577426f783d22302030203332203332222077696474683d223332222060408301526b3432b4b3b43a1e911999111f60a11b60608301528851612dc781606c850160208d016138ad565b7f3c7376672076696577426f783d22302030203332203332222077696474683d22606c918401918201527f333222206865696768743d2233322220783d223332223e000000000000000000608c820152612e2460a382018a612a7b565b90508751612e36818360208c016138ad565b7f3c2f7376673e3c7376672076696577426f783d2230203020333220333222207791019081527f696474683d22333222206865696768743d2233322220793d223332223e0000006020820152612eba612eb5612eaf612ea9612ea4612e9e603d87018d612a7b565b8b612a5f565b612b2b565b88612a7b565b86612a5f565b612b13565b9a9950505050505050505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251612f0081601d8501602087016138ad565b91909101601d0192915050565b60007f2270726f70657274696573223a207b20227265766973696f6e73223a2022000082528551612f4581601e850160208a016138ad565b70111610112a37b8102934b3b43a111d101160791b601e918401918201528551612f7681602f840160208a016138ad565b72111610112137ba3a37b6902632b33a111d101160691b602f92909101918201528451612faa8160428401602089016138ad565b73111610112137ba3a37b6902934b3b43a111d101160611b604292909101918201528351612fdf8160568401602088016138ad565b016056019695505050505050565b60007f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000008252825161302581601a8501602087016138ad565b91909101601a0192915050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061307990830184612a33565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b6000602080830181845280855180835260408601915060408482028701019250838701855b828110156130ef57603f198886030184526130dd858351612a33565b945092850192908501906001016130c1565b5092979650505050505050565b901515815260200190565b6000602082526123916020830184612a33565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b602080825260099082015268109c0e9d154e8d0c0d60ba1b604082015260600190565b602080825260099082015268042703a75463a3430360bc1b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526009908201526842703a6f4d3a34303360b81b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b60208082526009908201526842703a75463a34303360b81b604082015260600190565b60208082526009908201526821381d37a69d1a181960b91b604082015260600190565b6000602082528251602083015260208301516080604084015261369d60a0840182612a33565b90506040840151601f19808584030160608601526136bb8383612a33565b92506060860151915080858403016080860152506128b48282612a33565b90815260200190565b60405181810167ffffffffffffffff811182821017156137045761370461396f565b604052919050565b600067ffffffffffffffff8211156137265761372661396f565b50601f01601f191660200190565b60009081526020902090565b6000821982111561375357613753613943565b500190565b60008261376757613767613959565b500490565b80825b600180861161377e5750610ebb565b81870482111561379057613790613943565b8086161561379d57918102915b9490941c93800261376f565b600061239160001984846000826137c257506001612391565b816137cf57506000612391565b81600181146137e557600281146137ef5761381c565b6001915050612391565b60ff84111561380057613800613943565b6001841b91508482111561381657613816613943565b50612391565b5060208310610133831016604e8410600b841016171561384f575081810a8381111561384a5761384a613943565b612391565b61385c848484600161376c565b80860482111561386e5761386e613943565b02949350505050565b600081600019048311821515161561389157613891613943565b500290565b6000828210156138a8576138a8613943565b500390565b60005b838110156138c85781810151838201526020016138b0565b83811115610d775750506000910152565b6002810460018216806138ed57607f821691505b6020821081141561390e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561392857613928613943565b5060010190565b60008261393e5761393e613959565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461088257600080fd5b6001600160e01b03198116811461088257600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220910c5bd25a2d6303a29bcb38d6ed0e4303527171756bdd1f3edcfd336d4cae3364736f6c634300080000333c66696c7465722069643d226272696c6c6f223e3c6665436f6c6f724d617472697820747970653d226d6174726978222076616c7565733d223020312e30203020302030203020312e30203020302030203020302e362031203020302030203020302031203020222f3e3c2f66696c7465723e3c7376672066696c7465723d2275726c28236272696c6c6f29223e3c66696c7465722069643d226d6172696c796e223e3c6665436f6c6f724d617472697820747970653d226d6174726978222076616c7565733d22312030203020312e37202d312e3620302031203020302e3020302e33202d302e3720302031203020302e35203020302030203120302e32223e3c2f6665436f6c6f724d61747269783e3c2f66696c7465723e3c7376672066696c7465723d2275726c28236d6172696c796e29223e3c66696c7465722069643d226277223e3c6665436f6c6f724d617472697820747970653d226d6174726978222076616c7565733d2230203120302030203020302031203020302030203020312030203020302030203120302031203020222f3e3c2f66696c7465723e3c7376672066696c7465723d2275726c2823627729223e3c66696c7465722069643d2263616d7062656c6c73223e3c6665436f6c6f724d617472697820747970653d226d6174726978222076616c7565733d22312030203020312e39202d322e3220302031203020302e3020302e33203020302031203020302e35203020302030203120302e32223e3c2f6665436f6c6f724d61747269783e3c2f66696c7465723e3c7376672066696c7465723d2275726c282363616d7062656c6c7329223e3c66696c7465722069643d226563223e3c6665436f6c6f724d617472697820747970653d226d6174726978222076616c7565733d22312030203020302030202d302e3420312e33202d302e3420302e32202d302e312030203020312030203020302030203020312030223e3c2f6665436f6c6f724d61747269783e3c2f66696c7465723e3c7376672066696c7465723d2275726c2823656329223e0000000000000000000000008d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63

Deployed Bytecode

0x6080604052600436106101ee5760003560e01c80638da5cb5b1161010d578063c155531d116100a0578063e985e9c51161006f578063e985e9c51461053c578063f22998a81461055c578063f2fde38b1461057c578063f61f6e031461059c578063fc194cf6146105c9576101ee565b8063c155531d146104b9578063c56ec2a1146104e7578063c87b56dd14610507578063d9f7ce8214610527576101ee565b8063a22cb465116100dc578063a22cb4651461044f578063b2c751721461046f578063b88d4fde14610484578063c002d23d146104a4576101ee565b80638da5cb5b146103f25780639143bafc1461040757806395d89b4114610427578063a13170e81461043c576101ee565b80633ccfd60b116101855780636352211e116101545780636352211e1461038857806366d6cbc4146103a857806370a08231146103bd578063715018a6146103dd576101ee565b80633ccfd60b1461031157806342842e0e146103265780634f6ccce71461034657806350a1151d14610366576101ee565b806318160ddd116101c157806318160ddd1461029a57806323b872dd146102bc5780632f745c59146102dc5780633472aaa0146102fc576101ee565b806301ffc9a7146101f357806306fdde0314610229578063081812fc1461024b578063095ea7b314610278575b600080fd5b3480156101ff57600080fd5b5061021361020e366004612812565b6105e9565b60405161022091906130fc565b60405180910390f35b34801561023557600080fd5b5061023e61060b565b6040516102209190613107565b34801561025757600080fd5b5061026b61026636600461291e565b61069d565b6040516102209190613032565b34801561028457600080fd5b506102986102933660046127cd565b6106e9565b005b3480156102a657600080fd5b506102af610781565b60405161022091906136d9565b3480156102c857600080fd5b506102986102d73660046126dc565b610787565b3480156102e857600080fd5b506102af6102f73660046127cd565b6107bf565b34801561030857600080fd5b506102af610811565b34801561031d57600080fd5b50610298610817565b34801561033257600080fd5b506102986103413660046126dc565b610885565b34801561035257600080fd5b506102af61036136600461291e565b6108a0565b34801561037257600080fd5b5061037b6108fb565b604051610220919061309c565b34801561039457600080fd5b5061026b6103a336600461291e565b6109d4565b3480156103b457600080fd5b50610213610a09565b3480156103c957600080fd5b506102af6103d836600461266c565b610a12565b3480156103e957600080fd5b50610298610a56565b3480156103fe57600080fd5b5061026b610aa1565b34801561041357600080fd5b50610298610422366004612936565b610ab0565b34801561043357600080fd5b5061023e610bb7565b61029861044a366004612936565b610bc6565b34801561045b57600080fd5b5061029861046a366004612799565b610d7d565b34801561047b57600080fd5b506102af610e4b565b34801561049057600080fd5b5061029861049f36600461271c565b610e50565b3480156104b057600080fd5b506102af610e89565b3480156104c557600080fd5b506104d96104d43660046129b8565b610e94565b604051610220929190613083565b3480156104f357600080fd5b506102986105023660046127f8565b610ec4565b34801561051357600080fd5b5061023e61052236600461291e565b610f16565b34801561053357600080fd5b5061026b611217565b34801561054857600080fd5b506102136105573660046126a4565b611226565b34801561056857600080fd5b506102986105773660046128bd565b611254565b34801561058857600080fd5b5061029861059736600461266c565b611309565b3480156105a857600080fd5b506105bc6105b736600461291e565b611377565b6040516102209190613677565b3480156105d557600080fd5b5061023e6105e4366004612936565b611564565b60006105f4826115a4565b806106035750610603826115c9565b90505b919050565b60606000805461061a906138d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610646906138d9565b80156106935780601f1061066857610100808354040283529160200191610693565b820191906000526020600020905b81548152906001019060200180831161067657829003601f168201915b5050505050905090565b60006106a8826115fa565b6106cd5760405162461bcd60e51b81526004016106c490613466565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106f4826109d4565b9050806001600160a01b0316836001600160a01b031614156107285760405162461bcd60e51b81526004016106c490613530565b806001600160a01b031661073a611617565b6001600160a01b03161480610756575061075681610557611617565b6107725760405162461bcd60e51b81526004016106c490613341565b61077c838361161b565b505050565b60085490565b610798610792611617565b82611689565b6107b45760405162461bcd60e51b81526004016106c490613594565b61077c838383611706565b60006107ca83610a12565b82106107e85760405162461bcd60e51b81526004016106c49061311a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600e5481565b61081f611617565b6001600160a01b0316610830610aa1565b6001600160a01b0316146108565760405162461bcd60e51b81526004016106c4906134b2565b60405133904780156108fc02916000818181858888f19350505050158015610882573d6000803e3d6000fd5b50565b61077c83838360405180602001604052806000815250610e50565b60006108aa610781565b82106108c85760405162461bcd60e51b81526004016106c4906135e5565b600882815481106108e957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b60606011805480602002602001604051908101604052809291908181526020016000905b828210156109cb57838290600052602060002001805461093e906138d9565b80601f016020809104026020016040519081016040528092919081815260200182805461096a906138d9565b80156109b75780601f1061098c576101008083540402835291602001916109b7565b820191906000526020600020905b81548152906001019060200180831161099a57829003601f168201915b50505050508152602001906001019061091f565b50505050905090565b6000818152600260205260408120546001600160a01b0316806106035760405162461bcd60e51b81526004016106c4906133e8565b600f5460ff1681565b60006001600160a01b038216610a3a5760405162461bcd60e51b81526004016106c49061339e565b506001600160a01b031660009081526003602052604090205490565b610a5e611617565b6001600160a01b0316610a6f610aa1565b6001600160a01b031614610a955760405162461bcd60e51b81526004016106c4906134b2565b610a9f6000611833565b565b600a546001600160a01b031690565b600f5460ff16610ad25760405162461bcd60e51b81526004016106c49061331e565b610adb846109d4565b6001600160a01b0316336001600160a01b031614610b0b5760405162461bcd60e51b81526004016106c490613631565b604080516080810182526000868152600c60205291909120548190610b31906001613740565b81526020808201869052604080830186905260609092018490526000878152600c825291909120825181558282015180519192610b7692600185019290910190612524565b5060408201518051610b92916002840191602090910190612524565b5060608201518051610bae916003840191602090910190612524565b50505050505050565b60606001805461061a906138d9565b600e544211610ca55766470de4df8200003414610bf55760405162461bcd60e51b81526004016106c490613654565b600d546040516331a9108f60e11b81526001600160a01b0390911690636352211e90610c259087906004016136d9565b60206040518083038186803b158015610c3d57600080fd5b505afa158015610c51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c759190612688565b6001600160a01b0316336001600160a01b031614610ca55760405162461bcd60e51b81526004016106c490613571565b600e54421115610ce757610cb7610aa1565b6001600160a01b0316336001600160a01b031614610ce75760405162461bcd60e51b81526004016106c490613571565b604080516080810182526000808252602080830187815283850187905260608401869052888352600c8252939091208251815592518051929392610d319260018501920190612524565b5060408201518051610d4d916002840191602090910190612524565b5060608201518051610d69916003840191602090910190612524565b50905050610d773385611885565b50505050565b610d85611617565b6001600160a01b0316826001600160a01b03161415610db65760405162461bcd60e51b81526004016106c490613278565b8060056000610dc3611617565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610e07611617565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610e3f91906130fc565b60405180910390a35050565b600a81565b610e61610e5b611617565b83611689565b610e7d5760405162461bcd60e51b81526004016106c490613594565b610d77848484846118a3565b66470de4df82000081565b6000806064610ea4600a87613877565b610eae9190613758565b9050610eb8610aa1565b91505b94509492505050565b610ecc611617565b6001600160a01b0316610edd610aa1565b6001600160a01b031614610f035760405162461bcd60e51b81526004016106c4906134b2565b600f805460ff1916911515919091179055565b6060610f21826115fa565b610f3d5760405162461bcd60e51b81526004016106c4906132fb565b6000600c600084815260200190815260200160002060405180608001604052908160008201548152602001600182018054610f77906138d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa3906138d9565b8015610ff05780601f10610fc557610100808354040283529160200191610ff0565b820191906000526020600020905b815481529060010190602001808311610fd357829003601f168201915b50505050508152602001600282018054611009906138d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611035906138d9565b80156110825780601f1061105757610100808354040283529160200191611082565b820191906000526020600020905b81548152906001019060200180831161106557829003601f168201915b5050505050815260200160038201805461109b906138d9565b80601f01602080910402602001604051908101604052809291908181526020018280546110c7906138d9565b80156111145780601f106110e957610100808354040283529160200191611114565b820191906000526020600020905b8154815290600101906020018083116110f757829003601f168201915b505050919092525050600d546040516338c9319960e21b81529293506111f0926001600160a01b03909116915063e324c664906111559087906004016136d9565b60006040518083038186803b15801561116d57600080fd5b505afa158015611181573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111a9919081019061284a565b6111c185846020015185604001518660600151611564565b6111ca846118d6565b6040516020016111dc93929190612bc1565b60405160208183030381529060405261191d565b6040516020016112009190612ec8565b604051602081830303815290604052915050919050565b600d546001600160a01b031681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61125c611617565b6001600160a01b031661126d610aa1565b6001600160a01b0316146112935760405162461bcd60e51b81526004016106c4906134b2565b6011805460018101825560009190915282516112d6917f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6801906020850190612524565b50806010836040516112e89190612ba5565b9081526020016040518091039020908051906020019061077c929190612524565b611311611617565b6001600160a01b0316611322610aa1565b6001600160a01b0316146113485760405162461bcd60e51b81526004016106c4906134b2565b6001600160a01b03811661136e5760405162461bcd60e51b81526004016106c4906131b7565b61088281611833565b61137f6125a8565b600c6000838152602001908152602001600020604051806080016040529081600082015481526020016001820180546113b7906138d9565b80601f01602080910402602001604051908101604052809291908181526020018280546113e3906138d9565b80156114305780601f1061140557610100808354040283529160200191611430565b820191906000526020600020905b81548152906001019060200180831161141357829003601f168201915b50505050508152602001600282018054611449906138d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611475906138d9565b80156114c25780601f10611497576101008083540402835291602001916114c2565b820191906000526020600020905b8154815290600101906020018083116114a557829003601f168201915b505050505081526020016003820180546114db906138d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611507906138d9565b80156115545780601f1061152957610100808354040283529160200191611554565b820191906000526020600020905b81548152906001019060200180831161153757829003601f168201915b5050505050815250509050919050565b606061157a61157586868686611a91565b61191d565b60405160200161158a9190612fed565b60405160208183030381529060405290505b949350505050565b60006001600160e01b0319821663780e9d6360e01b1480610603575061060382611c14565b60006115d4826115a4565b806106035750506001600160e01b0319166000908152600b602052604090205460ff1690565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611650826109d4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611694826115fa565b6116b05760405162461bcd60e51b81526004016106c4906132af565b60006116bb836109d4565b9050806001600160a01b0316846001600160a01b031614806116f65750836001600160a01b03166116eb8461069d565b6001600160a01b0316145b8061159c575061159c8185611226565b826001600160a01b0316611719826109d4565b6001600160a01b03161461173f5760405162461bcd60e51b81526004016106c4906134e7565b6001600160a01b0382166117655760405162461bcd60e51b81526004016106c490613234565b611770838383611c54565b61177b60008261161b565b6001600160a01b03831660009081526003602052604081208054600192906117a4908490613896565b90915550506001600160a01b03821660009081526003602052604081208054600192906117d2908490613740565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61189f828260405180602001604052806000815250611cdd565b5050565b6118ae848484611706565b6118ba84848484611d10565b610d775760405162461bcd60e51b81526004016106c490613165565b60606118e58260000151611e28565b8260200151836040015184606001516040516020016119079493929190612f0d565b6040516020818303038152906040529050919050565b80516060908061193d575050604080516020810190915260008152610606565b6000600361194c836002613740565b6119569190613758565b611961906004613877565b90506000611970826020613740565b67ffffffffffffffff81111561199657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156119c0576020820181803683370190505b50905060006040518060600160405280604081526020016139b1604091399050600181016020830160005b86811015611a4c576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016119eb565b506003860660018114611a665760028114611a7757611a83565b613d3d60f01b600119830152611a83565b603d60f81b6000198301525b505050918152949350505050565b60408051808201825260148152733b34b2bba137bc1e91181018101999101999111f60611b6020820152600d54915163a78d070f60e01b8152606092600091611b4b916001600160a01b03169063a78d070f90611af2908b906004016136d9565b60006040518083038186803b158015611b0a57600080fd5b505afa158015611b1e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b46919081019061284a565b611f43565b90506000611b62611b5b84611f43565b8390611f68565b9050611b6d82611f82565b601088604051611b7d9190612ba5565b9081526020016040518091039020611b9484611f82565b601089604051611ba49190612ba5565b9081526020016040518091039020611bbb86611f82565b60108a604051611bcb9190612ba5565b9081526020016040518091039020611be288611f82565b604051602001611bf89796959493929190612d2e565b6040516020818303038152906040529350505050949350505050565b60006001600160e01b031982166380ac58cd60e01b1480611c4557506001600160e01b03198216635b5e139f60e01b145b80610603575061060382611ff9565b611c5f83838361077c565b6001600160a01b038316611c7b57611c7681612012565b611c9e565b816001600160a01b0316836001600160a01b031614611c9e57611c9e8382612056565b6001600160a01b038216611cba57611cb5816120f3565b61077c565b826001600160a01b0316826001600160a01b03161461077c5761077c82826121cc565b611ce78383612210565b611cf46000848484611d10565b61077c5760405162461bcd60e51b81526004016106c490613165565b6000611d24846001600160a01b03166122ef565b15611e2057836001600160a01b031663150b7a02611d40611617565b8786866040518563ffffffff1660e01b8152600401611d629493929190613046565b602060405180830381600087803b158015611d7c57600080fd5b505af1925050508015611dac575060408051601f3d908101601f19168201909252611da99181019061282e565b60015b611e06573d808015611dda576040519150601f19603f3d011682016040523d82523d6000602084013e611ddf565b606091505b508051611dfe5760405162461bcd60e51b81526004016106c490613165565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061159c565b50600161159c565b606081611e4d57506040805180820190915260018152600360fc1b6020820152610606565b8160005b8115611e775780611e6181613914565b9150611e709050600a83613758565b9150611e51565b60008167ffffffffffffffff811115611ea057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611eca576020820181803683370190505b5090505b841561159c57611edf600183613896565b9150611eec600a8661392f565b611ef7906030613740565b60f81b818381518110611f1a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611f3c600a86613758565b9450611ece565b611f4b6125d0565b506040805180820190915281518152602082810190820152919050565b611f706125d0565b611f7b8383836122f5565b5092915050565b60606000826000015167ffffffffffffffff811115611fb157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611fdb576020820181803683370190505b5090506000602082019050611f7b8185602001518660000151612398565b6001600160e01b031981166301ffc9a760e01b14919050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161206384610a12565b61206d9190613896565b6000838152600760205260409020549091508082146120c0576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061210590600190613896565b6000838152600960205260408120546008805493945090928490811061213b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061216a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806121b057634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006121d783610a12565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166122365760405162461bcd60e51b81526004016106c490613431565b61223f816115fa565b1561225c5760405162461bcd60e51b81526004016106c4906131fd565b61226860008383611c54565b6001600160a01b0382166000908152600360205260408120805460019290612291908490613740565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b6122fd6125d0565b600061231b8560000151866020015186600001518760200151612409565b6020808701805191860191909152519091506123379082613896565b83528451602086015161234a9190613740565b81141561235a576000855261238c565b835183516123689190613740565b85518690612377908390613896565b90525083516123869082613740565b60208601525b829150505b9392505050565b602081106123d057815183526123af602084613740565b92506123bc602083613740565b91506123c9602082613896565b9050612398565b600060016123df836020613896565b6123eb906101006137a9565b6123f59190613896565b925184518416931916929092179092525050565b6000838186851161250f57602085116124bd576000600161242b876020613896565b612436906008613877565b6124419060026137a9565b61244b9190613896565b85519019915081166000876124608b8b613740565b61246a9190613896565b855190915083165b8281146124af578186106124975761248a8b8b613740565b965050505050505061159c565b856124a181613914565b965050838651169050612472565b85965050505050505061159c565b508383206000905b6124cf8689613896565b821161250d57858320818114156124ec578394505050505061159c565b6124f7600185613740565b935050818061250590613914565b9250506124c5565b505b6125198787613740565b979650505050505050565b828054612530906138d9565b90600052602060002090601f0160209004810192826125525760008555612598565b82601f1061256b57805160ff1916838001178555612598565b82800160010185558215612598579182015b8281111561259857825182559160200191906001019061257d565b506125a49291506125ea565b5090565b6040518060800160405280600081526020016060815260200160608152602001606081525090565b604051806040016040528060008152602001600081525090565b5b808211156125a457600081556001016125eb565b600061261261260d8461370c565b6136e2565b905082815283838301111561262657600080fd5b828260208301376000602084830101529392505050565b8035801515811461060657600080fd5b600082601f83011261265d578081fd5b612391838335602085016125ff565b60006020828403121561267d578081fd5b813561239181613985565b600060208284031215612699578081fd5b815161239181613985565b600080604083850312156126b6578081fd5b82356126c181613985565b915060208301356126d181613985565b809150509250929050565b6000806000606084860312156126f0578081fd5b83356126fb81613985565b9250602084013561270b81613985565b929592945050506040919091013590565b60008060008060808587031215612731578081fd5b843561273c81613985565b9350602085013561274c81613985565b925060408501359150606085013567ffffffffffffffff81111561276e578182fd5b8501601f8101871361277e578182fd5b61278d878235602084016125ff565b91505092959194509250565b600080604083850312156127ab578182fd5b82356127b681613985565b91506127c46020840161263d565b90509250929050565b600080604083850312156127df578182fd5b82356127ea81613985565b946020939093013593505050565b600060208284031215612809578081fd5b6123918261263d565b600060208284031215612823578081fd5b81356123918161399a565b60006020828403121561283f578081fd5b81516123918161399a565b60006020828403121561285b578081fd5b815167ffffffffffffffff811115612871578182fd5b8201601f81018413612881578182fd5b805161288f61260d8261370c565b8181528560208385010111156128a3578384fd5b6128b48260208301602086016138ad565b95945050505050565b600080604083850312156128cf578182fd5b823567ffffffffffffffff808211156128e6578384fd5b6128f28683870161264d565b93506020850135915080821115612907578283fd5b506129148582860161264d565b9150509250929050565b60006020828403121561292f578081fd5b5035919050565b6000806000806080858703121561294b578182fd5b84359350602085013567ffffffffffffffff80821115612969578384fd5b6129758883890161264d565b9450604087013591508082111561298a578384fd5b6129968883890161264d565b935060608701359150808211156129ab578283fd5b5061278d8782880161264d565b600080600080606085870312156129cd578182fd5b8435935060208501359250604085013567ffffffffffffffff808211156129f2578384fd5b818701915087601f830112612a05578384fd5b813581811115612a13578485fd5b886020828501011115612a24578485fd5b95989497505060200194505050565b60008151808452612a4b8160208601602086016138ad565b601f01601f19169290920160200192915050565b60008151612a718185602086016138ad565b9290920192915050565b805460009060028104600180831680612a9557607f831692505b6020808410821415612ab557634e487b7160e01b86526022600452602486fd5b818015612ac95760018114612ada57612b07565b60ff19861689528489019650612b07565b612ae388613734565b60005b86811015612aff5781548b820152908501908301612ae6565b505084890196505b50505050505092915050565b6b1e17b9bb339f1e17b9bb339f60a11b8152600c0190565b7f3c2f7376673e3c7376672076696577426f783d2230203020333220333222207781527f696474683d22333222206865696768743d2233322220783d2233322220793d226020820152631999111f60e11b604082015260440190565b62227d7d60e81b815260030190565b6201116160ed1b815260030190565b60008251612bb78184602087016138ad565b9190910192915050565b7003d913730b6b2911d11213634ba3837b81607d1b81528351600090612bee8160118501602089016138ad565b7f222c20226465736372697074696f6e223a22426c6974706f707320617265206f6011918401918201527f6e636861696e20426c69746d61702064657269766174697665732e20546f206360318201527f6f6e7374727563742074686520617274776f726b2c20746865206f726967696e60518201527f616c20426c69746d6170207769746820636f72726573706f6e64696e6720746f60718201527f6b656e20494420697320666574636865642c20636f6c6c6167656420616e642060918201527f66696c746572656420746f2072657475726e2061206d6f646966696564206f6e60b18201527f636861696e205356472e222c2022696d616765223a202200000000000000000060d18201528451612d0f8160e88401602089016138ad565b612519612d29612d2360e884860101612b96565b87612a5f565b612b87565b60007f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323082527f30302f737667222076696577426f783d22302030203634203634223e3c73766760208301527f2076696577426f783d22302030203332203332222077696474683d223332222060408301526b3432b4b3b43a1e911999111f60a11b60608301528851612dc781606c850160208d016138ad565b7f3c7376672076696577426f783d22302030203332203332222077696474683d22606c918401918201527f333222206865696768743d2233322220783d223332223e000000000000000000608c820152612e2460a382018a612a7b565b90508751612e36818360208c016138ad565b7f3c2f7376673e3c7376672076696577426f783d2230203020333220333222207791019081527f696474683d22333222206865696768743d2233322220793d223332223e0000006020820152612eba612eb5612eaf612ea9612ea4612e9e603d87018d612a7b565b8b612a5f565b612b2b565b88612a7b565b86612a5f565b612b13565b9a9950505050505050505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251612f0081601d8501602087016138ad565b91909101601d0192915050565b60007f2270726f70657274696573223a207b20227265766973696f6e73223a2022000082528551612f4581601e850160208a016138ad565b70111610112a37b8102934b3b43a111d101160791b601e918401918201528551612f7681602f840160208a016138ad565b72111610112137ba3a37b6902632b33a111d101160691b602f92909101918201528451612faa8160428401602089016138ad565b73111610112137ba3a37b6902934b3b43a111d101160611b604292909101918201528351612fdf8160568401602088016138ad565b016056019695505050505050565b60007f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000008252825161302581601a8501602087016138ad565b91909101601a0192915050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061307990830184612a33565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b6000602080830181845280855180835260408601915060408482028701019250838701855b828110156130ef57603f198886030184526130dd858351612a33565b945092850192908501906001016130c1565b5092979650505050505050565b901515815260200190565b6000602082526123916020830184612a33565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b602080825260099082015268109c0e9d154e8d0c0d60ba1b604082015260600190565b602080825260099082015268042703a75463a3430360bc1b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526009908201526842703a6f4d3a34303360b81b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b60208082526009908201526842703a75463a34303360b81b604082015260600190565b60208082526009908201526821381d37a69d1a181960b91b604082015260600190565b6000602082528251602083015260208301516080604084015261369d60a0840182612a33565b90506040840151601f19808584030160608601526136bb8383612a33565b92506060860151915080858403016080860152506128b48282612a33565b90815260200190565b60405181810167ffffffffffffffff811182821017156137045761370461396f565b604052919050565b600067ffffffffffffffff8211156137265761372661396f565b50601f01601f191660200190565b60009081526020902090565b6000821982111561375357613753613943565b500190565b60008261376757613767613959565b500490565b80825b600180861161377e5750610ebb565b81870482111561379057613790613943565b8086161561379d57918102915b9490941c93800261376f565b600061239160001984846000826137c257506001612391565b816137cf57506000612391565b81600181146137e557600281146137ef5761381c565b6001915050612391565b60ff84111561380057613800613943565b6001841b91508482111561381657613816613943565b50612391565b5060208310610133831016604e8410600b841016171561384f575081810a8381111561384a5761384a613943565b612391565b61385c848484600161376c565b80860482111561386e5761386e613943565b02949350505050565b600081600019048311821515161561389157613891613943565b500290565b6000828210156138a8576138a8613943565b500390565b60005b838110156138c85781810151838201526020016138b0565b83811115610d775750506000910152565b6002810460018216806138ed57607f821691505b6020821081141561390e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561392857613928613943565b5060010190565b60008261393e5761393e613959565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461088257600080fd5b6001600160e01b03198116811461088257600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220910c5bd25a2d6303a29bcb38d6ed0e4303527171756bdd1f3edcfd336d4cae3364736f6c63430008000033

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

0000000000000000000000008d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63

-----Decoded View---------------
Arg [0] : blitmapAddress (address): 0x8d04a8c79cEB0889Bdd12acdF3Fa9D207eD3Ff63

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63


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.