ETH Price: $3,395.92 (-1.08%)

Token

Mad Dog Jones (MDJ)
 

Overview

Max Total Supply

0 MDJ

Holders

221

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
perilousvault.eth
Balance
1 MDJ
0x06e13bd0a3Cba08E61028F2326b9eA2Ca2539900
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Michah Dowbak aka Mad Dog Jones is a multidisciplinary artist from Thunder Bay, Ontario. His works deftly interweave cyberpunk elements with the beauty and freedom of nature. As a lover of the wilderness, which was ever present where he grew up, he brings a fresh thematic to the metropolitan aesthetic, done up in citrus and neon tones of technology somehow rendered as a space naturally human. Over the last two years he has created artworks for Run The Jewels, Deadmau5, Jabbawockeez, Conor McGregor, Maroon 5 and Chromeo. His first and only IRL exhibit was AFTERL-IFE WORLD in Tokyo Sept-Nov 2019. His NG collection will be his first ever tokenized artworks!

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MDJ

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 300 runs

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

pragma solidity ^0.8.0;

/// @title: Mad Dog Jones
/// @author: manifold.xyz

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                                                                        //
//                                                                                                                                                        //
//      ####    ####    ####################### ######          #######   ##################                 ###### ###############    ####    ####       //
//      ####    ####    ###################### #######        ########   ####################               ###### ################    ####    ####       //
//  ####    ####    ####    ################# ########      #########   ######         ######              ###### #############    ####    ####    ####   //
//  ####    ####    ####    ################ #########    ##########   ######         ######              ###### ##############    ####    ####    ####   //
//      ####    ####    ################### ##########  ###########   ######         ######              ###### ###################    ####    ####       //
//      ####    ####    ################## ########### ###########   ######         ######              ###### ####################    ####    ####       //
//  ####    ####    ####    ############# #######################   ######         ######   ######     ###### #################    ####    ####    ####   //
//  ####    ####    ####    ############ ######  #######  ######   ######         ######   ######     ###### ##################    ####    ####    ####   //
//      ####    ####    ####    ####### ######   #####   ######   ####################    ################# ###############    ####    ####    ####       //
//      ####    ####    ####    ###### ######           ######   ##################       ############### #################    ####    ####    ####       //
//                                                                                                                                                        //
//                                                                                                                                                        //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

import "./ERC721Creator.sol";

contract MDJ is ERC721Creator {
    constructor() ERC721Creator("Mad Dog Jones", "MDJ") {}
}

File 2 of 26 : ERC721Creator.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

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

import "./access/AdminControl.sol";
import "./core/ERC721CreatorCore.sol";

/**
 * @dev ERC721Creator implementation
 */
contract ERC721Creator is AdminControl, ERC721, ERC721CreatorCore {

    constructor (string memory _name, string memory _symbol) ERC721(_name, _symbol) {
    }

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

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
        _approveTransfer(from, to, tokenId);    
    }

    /**
     * @dev See {ICreatorCore-registerExtension}.
     */
    function registerExtension(address extension, string calldata baseURI) external override adminRequired nonBlacklistRequired(extension) {
        _registerExtension(extension, baseURI, false);
    }

    /**
     * @dev See {ICreatorCore-registerExtension}.
     */
    function registerExtension(address extension, string calldata baseURI, bool baseURIIdentical) external override adminRequired nonBlacklistRequired(extension) {
        _registerExtension(extension, baseURI, baseURIIdentical);
    }


    /**
     * @dev See {ICreatorCore-unregisterExtension}.
     */
    function unregisterExtension(address extension) external override adminRequired {
        _unregisterExtension(extension);
    }

    /**
     * @dev See {ICreatorCore-blacklistExtension}.
     */
    function blacklistExtension(address extension) external override adminRequired {
        _blacklistExtension(extension);
    }

    /**
     * @dev See {ICreatorCore-setBaseTokenURIExtension}.
     */
    function setBaseTokenURIExtension(string calldata uri) external override extensionRequired {
        _setBaseTokenURIExtension(uri, false);
    }

    /**
     * @dev See {ICreatorCore-setBaseTokenURIExtension}.
     */
    function setBaseTokenURIExtension(string calldata uri, bool identical) external override extensionRequired {
        _setBaseTokenURIExtension(uri, identical);
    }

    /**
     * @dev See {ICreatorCore-setTokenURIPrefixExtension}.
     */
    function setTokenURIPrefixExtension(string calldata prefix) external override extensionRequired {
        _setTokenURIPrefixExtension(prefix);
    }

    /**
     * @dev See {ICreatorCore-setTokenURIExtension}.
     */
    function setTokenURIExtension(uint256 tokenId, string calldata uri) external override extensionRequired {
        _setTokenURIExtension(tokenId, uri);
    }

    /**
     * @dev See {ICreatorCore-setTokenURIExtension}.
     */
    function setTokenURIExtension(uint256[] memory tokenIds, string[] calldata uris) external override extensionRequired {
        require(tokenIds.length == uris.length, "ERC721Creator: Invalid input");
        for (uint i = 0; i < tokenIds.length; i++) {
            _setTokenURIExtension(tokenIds[i], uris[i]);            
        }
    }

    /**
     * @dev See {ICreatorCore-setBaseTokenURI}.
     */
    function setBaseTokenURI(string calldata uri) external override adminRequired {
        _setBaseTokenURI(uri);
    }

    /**
     * @dev See {ICreatorCore-setTokenURIPrefix}.
     */
    function setTokenURIPrefix(string calldata prefix) external override adminRequired {
        _setTokenURIPrefix(prefix);
    }

    /**
     * @dev See {ICreatorCore-setTokenURI}.
     */
    function setTokenURI(uint256 tokenId, string calldata uri) external override adminRequired {
        _setTokenURI(tokenId, uri);
    }

    /**
     * @dev See {ICreatorCore-setTokenURI}.
     */
    function setTokenURI(uint256[] memory tokenIds, string[] calldata uris) external override adminRequired {
        require(tokenIds.length == uris.length, "ERC721Creator: Invalid input");
        for (uint i = 0; i < tokenIds.length; i++) {
            _setTokenURI(tokenIds[i], uris[i]);            
        }
    }

    /**
     * @dev See {ICreatorCore-setMintPermissions}.
     */
    function setMintPermissions(address extension, address permissions) external override adminRequired {
        _setMintPermissions(extension, permissions);
    }

    /**
     * @dev See {IERC721CreatorCore-mintBase}.
     */
    function mintBase(address to) public virtual override nonReentrant adminRequired returns(uint256) {
        return _mintBase(to, "");
    }

    /**
     * @dev See {IERC721CreatorCore-mintBase}.
     */
    function mintBase(address to, string calldata uri) public virtual override nonReentrant adminRequired returns(uint256) {
        return _mintBase(to, uri);
    }

    /**
     * @dev See {IERC721CreatorCore-mintBaseBatch}.
     */
    function mintBaseBatch(address to, uint16 count) public virtual override nonReentrant adminRequired returns(uint256[] memory tokenIds) {
        tokenIds = new uint256[](count);
        for (uint16 i = 0; i < count; i++) {
            tokenIds[i] = _mintBase(to, "");
        }
        return tokenIds;
    }

    /**
     * @dev See {IERC721CreatorCore-mintBaseBatch}.
     */
    function mintBaseBatch(address to, string[] calldata uris) public virtual override nonReentrant adminRequired returns(uint256[] memory tokenIds) {
        tokenIds = new uint256[](uris.length);
        for (uint i = 0; i < uris.length; i++) {
            tokenIds[i] = _mintBase(to, uris[i]);
        }
        return tokenIds;
    }

    /**
     * @dev Mint token with no extension
     */
    function _mintBase(address to, string memory uri) internal virtual returns(uint256 tokenId) {
        _tokenCount++;
        tokenId = _tokenCount;

        // Track the extension that minted the token
        _tokensExtension[tokenId] = address(this);

        _safeMint(to, tokenId);

        if (bytes(uri).length > 0) {
            _tokenURIs[tokenId] = uri;
        }

        // Call post mint
        _postMintBase(to, tokenId);
        return tokenId;
    }


    /**
     * @dev See {IERC721CreatorCore-mintExtension}.
     */
    function mintExtension(address to) public virtual override nonReentrant extensionRequired returns(uint256) {
        return _mintExtension(to, "");
    }

    /**
     * @dev See {IERC721CreatorCore-mintExtension}.
     */
    function mintExtension(address to, string calldata uri) public virtual override nonReentrant extensionRequired returns(uint256) {
        return _mintExtension(to, uri);
    }

    /**
     * @dev See {IERC721CreatorCore-mintExtensionBatch}.
     */
    function mintExtensionBatch(address to, uint16 count) public virtual override nonReentrant extensionRequired returns(uint256[] memory tokenIds) {
        tokenIds = new uint256[](count);
        for (uint16 i = 0; i < count; i++) {
            tokenIds[i] = _mintExtension(to, "");
        }
        return tokenIds;
    }

    /**
     * @dev See {IERC721CreatorCore-mintExtensionBatch}.
     */
    function mintExtensionBatch(address to, string[] calldata uris) public virtual override nonReentrant extensionRequired returns(uint256[] memory tokenIds) {
        tokenIds = new uint256[](uris.length);
        for (uint i = 0; i < uris.length; i++) {
            tokenIds[i] = _mintExtension(to, uris[i]);
        }
    }
    
    /**
     * @dev Mint token via extension
     */
    function _mintExtension(address to, string memory uri) internal virtual returns(uint256 tokenId) {
        _tokenCount++;
        tokenId = _tokenCount;

        _checkMintPermissions(to, tokenId);

        // Track the extension that minted the token
        _tokensExtension[tokenId] = msg.sender;

        _safeMint(to, tokenId);

        if (bytes(uri).length > 0) {
            _tokenURIs[tokenId] = uri;
        }
        
        // Call post mint
        _postMintExtension(to, tokenId);
        return tokenId;
    }

    /**
     * @dev See {IERC721CreatorCore-tokenExtension}.
     */
    function tokenExtension(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "Nonexistent token");
        return _tokenExtension(tokenId);
    }

    /**
     * @dev See {IERC721CreatorCore-burn}.
     */
    function burn(uint256 tokenId) public virtual override nonReentrant {
        require(_isApprovedOrOwner(msg.sender, tokenId), "ERC721Creator: caller is not owner nor approved");
        address owner = ownerOf(tokenId);
        _burn(tokenId);
        _postBurn(owner, tokenId);
    }

    /**
     * @dev See {ICreatorCore-setRoyalties}.
     */
    function setRoyalties(address payable[] calldata receivers, uint256[] calldata basisPoints) external override adminRequired {
        _setRoyaltiesExtension(address(this), receivers, basisPoints);
    }

    /**
     * @dev See {ICreatorCore-setRoyalties}.
     */
    function setRoyalties(uint256 tokenId, address payable[] calldata receivers, uint256[] calldata basisPoints) external override adminRequired {
        require(_exists(tokenId), "Nonexistent token");
        _setRoyalties(tokenId, receivers, basisPoints);
    }

    /**
     * @dev See {ICreatorCore-setRoyaltiesExtension}.
     */
    function setRoyaltiesExtension(address extension, address payable[] calldata receivers, uint256[] calldata basisPoints) external override adminRequired {
        _setRoyaltiesExtension(extension, receivers, basisPoints);
    }

    /**
     * @dev {See ICreatorCore-getRoyalties}.
     */
    function getRoyalties(uint256 tokenId) external view virtual override returns (address payable[] memory, uint256[] memory) {
        require(_exists(tokenId), "Nonexistent token");
        return _getRoyalties(tokenId);
    }

    /**
     * @dev {See ICreatorCore-getFees}.
     */
    function getFees(uint256 tokenId) external view virtual override returns (address payable[] memory, uint256[] memory) {
        require(_exists(tokenId), "Nonexistent token");
        return _getRoyalties(tokenId);
    }

    /**
     * @dev {See ICreatorCore-getFeeRecipients}.
     */
    function getFeeRecipients(uint256 tokenId) external view virtual override returns (address payable[] memory) {
        require(_exists(tokenId), "Nonexistent token");
        return _getRoyaltyReceivers(tokenId);
    }

    /**
     * @dev {See ICreatorCore-getFeeBps}.
     */
    function getFeeBps(uint256 tokenId) external view virtual override returns (uint[] memory) {
        require(_exists(tokenId), "Nonexistent token");
        return _getRoyaltyBPS(tokenId);
    }
    
    /**
     * @dev {See ICreatorCore-royaltyInfo}.
     */
    function royaltyInfo(uint256 tokenId, uint256 value, bytes calldata) external view virtual override returns (address, uint256, bytes memory) {
        require(_exists(tokenId), "Nonexistent token");
        return _getRoyaltyInfo(tokenId, value);
    } 

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "Nonexistent token");
        return _tokenURI(tokenId);
    }
    
}

File 3 of 26 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 4 of 26 : AdminControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IAdminControl.sol";

abstract contract AdminControl is Ownable, IAdminControl, ERC165 {
    using EnumerableSet for EnumerableSet.AddressSet;

    // Track registered admins
    EnumerableSet.AddressSet private _admins;

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

    /**
     * @dev Only allows approved admins to call the specified function
     */
    modifier adminRequired() {
        require(owner() == msg.sender || _admins.contains(msg.sender), "AdminControl: Must be owner or admin");
        _;
    }   

    /**
     * @dev See {IAdminControl-getAdmins}.
     */
    function getAdmins() external view override returns (address[] memory admins) {
        admins = new address[](_admins.length());
        for (uint i = 0; i < _admins.length(); i++) {
            admins[i] = _admins.at(i);
        }
        return admins;
    }

    /**
     * @dev See {IAdminControl-approveAdmin}.
     */
    function approveAdmin(address admin) external override onlyOwner {
        if (!_admins.contains(admin)) {
            emit AdminApproved(admin, msg.sender);
            _admins.add(admin);
        }
    }

    /**
     * @dev See {IAdminControl-revokeAdmin}.
     */
    function revokeAdmin(address admin) external override onlyOwner {
        if (_admins.contains(admin)) {
            emit AdminRevoked(admin, msg.sender);
            _admins.remove(admin);
        }
    }

    /**
     * @dev See {IAdminControl-isAdmin}.
     */
    function isAdmin(address admin) public override view returns (bool) {
        return (owner() == admin || _admins.contains(admin));
    }

}

File 5 of 26 : ERC721CreatorCore.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";

import "../extensions/IERC721CreatorExtensionApproveTransfer.sol";
import "../extensions/IERC721CreatorExtensionBurnable.sol";
import "../permissions/IERC721CreatorMintPermissions.sol";
import "./IERC721CreatorCore.sol";
import "./CreatorCore.sol";

/**
 * @dev Core ERC721 creator implementation
 */
abstract contract ERC721CreatorCore is CreatorCore, IERC721CreatorCore {

    using EnumerableSet for EnumerableSet.AddressSet;

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

    /**
     * @dev See {ICreatorCore-setApproveTransferExtension}.
     */
    function setApproveTransferExtension(bool enabled) external override extensionRequired {
        require(!enabled || ERC165Checker.supportsInterface(msg.sender, type(IERC721CreatorExtensionApproveTransfer).interfaceId), "ERC721CreatorCore: Requires extension to implement IERC721CreatorExtensionApproveTransfer");
        if (_extensionApproveTransfers[msg.sender] != enabled) {
            _extensionApproveTransfers[msg.sender] = enabled;
            emit ExtensionApproveTransferUpdated(msg.sender, enabled);
        }
    }

    /**
     * @dev Set mint permissions for an extension
     */
    function _setMintPermissions(address extension, address permissions) internal {
        require(_extensions.contains(extension), "CreatorCore: Invalid extension");
        require(permissions == address(0x0) || ERC165Checker.supportsInterface(permissions, type(IERC721CreatorMintPermissions).interfaceId), "ERC721CreatorCore: Invalid address");
        if (_extensionPermissions[extension] != permissions) {
            _extensionPermissions[extension] = permissions;
            emit MintPermissionsUpdated(extension, permissions, msg.sender);
        }
    }

    /**
     * Check if an extension can mint
     */
    function _checkMintPermissions(address to, uint256 tokenId) internal {
        if (_extensionPermissions[msg.sender] != address(0x0)) {
            IERC721CreatorMintPermissions(_extensionPermissions[msg.sender]).approveMint(msg.sender, to, tokenId);
        }
    }

    /**
     * Override for post mint actions
     */
    function _postMintBase(address, uint256) internal virtual {}

    
    /**
     * Override for post mint actions
     */
    function _postMintExtension(address, uint256) internal virtual {}

    /**
     * Post-burning callback and metadata cleanup
     */
    function _postBurn(address owner, uint256 tokenId) internal virtual {
        // Callback to originating extension if needed
        if (_tokensExtension[tokenId] != address(this)) {
           if (ERC165Checker.supportsInterface(_tokensExtension[tokenId], type(IERC721CreatorExtensionBurnable).interfaceId)) {
               IERC721CreatorExtensionBurnable(_tokensExtension[tokenId]).onBurn(owner, tokenId);
           }
        }
        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }    
        // Delete token origin extension tracking
        delete _tokensExtension[tokenId];    
    }

    /**
     * Approve a transfer
     */
    function _approveTransfer(address from, address to, uint256 tokenId) internal {
       if (_extensionApproveTransfers[_tokensExtension[tokenId]]) {
           require(IERC721CreatorExtensionApproveTransfer(_tokensExtension[tokenId]).approveTransfer(from, to, tokenId), "ERC721Creator: Extension approval failure");
       }
    }

}

File 6 of 26 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 26 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 8 of 26 : 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 9 of 26 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 26 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 11 of 26 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

            bytes32 lastvalue = set._values[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

File 15 of 26 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

File 16 of 26 : IAdminControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Interface for admin control
 */
interface IAdminControl is IERC165 {

    event AdminApproved(address indexed account, address indexed sender);
    event AdminRevoked(address indexed account, address indexed sender);

    /**
     * @dev gets address of all admins
     */
    function getAdmins() external view returns (address[] memory);

    /**
     * @dev add an admin.  Can only be called by contract owner.
     */
    function approveAdmin(address admin) external;

    /**
     * @dev remove an admin.  Can only be called by contract owner.
     */
    function revokeAdmin(address admin) external;

    /**
     * @dev checks whether or not given address is an admin
     * Returns True if they are
     */
    function isAdmin(address admin) external view returns (bool);

}

File 17 of 26 : IERC721CreatorExtensionApproveTransfer.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "./ICreatorExtensionBase.sol";

/**
 * Implement this if you want your extension to approve a transfer
 */
interface IERC721CreatorExtensionApproveTransfer is ICreatorExtensionBase {

    /**
     * @dev Set whether or not the creator will check the extension for approval of token transfer
     */
    function setApproveTransfer(address creator, bool enabled) external;

    /**
     * Approve a transfer
     */
    function approveTransfer(address from, address to, uint256 tokenId) external returns (bool);
}

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

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "./ICreatorExtensionBase.sol";

/**
 * @dev Your extension is required to implement this interface if it wishes
 * to receive the onBurn callback whenever a token the extension created is
 * burned
 */
interface IERC721CreatorExtensionBurnable is ICreatorExtensionBase {
    event CreatorAdded(address indexed creator, address indexed sender);

    /**
     * @dev mint a token
     */
    function mint(address creator, address to) external returns (uint256);

    /**
     * @dev batch mint a token
     */
    function mintBatch(address creator, address to, uint16 count) external returns (uint256[] memory);

    /**
     * @dev callback handler for burn events
     */
    function onBurn(address owner, uint256 tokenId) external;
}

File 19 of 26 : IERC721CreatorMintPermissions.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "../access/IAdminControl.sol";

/**
 * @dev Required interface of an ERC721Creator compliant extension contracts.
 */
interface IERC721CreatorMintPermissions is IERC165, IAdminControl {

    /**
     * @dev get approval to mint
     */
    function approveMint(address extension, address to, uint256 tokenId) external;
}

File 20 of 26 : IERC721CreatorCore.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "./CreatorCore.sol";

/**
 * @dev Core ERC721 creator interface
 */
interface IERC721CreatorCore is ICreatorCore {

    /**
     * @dev mint a token with no extension. Can only be called by an admin.
     * Returns tokenId minted
     */
    function mintBase(address to) external returns (uint256);

    /**
     * @dev mint a token with no extension. Can only be called by an admin.
     * Returns tokenId minted
     */
    function mintBase(address to, string calldata uri) external returns (uint256);

    /**
     * @dev batch mint a token with no extension. Can only be called by an admin.
     * Returns tokenId minted
     */
    function mintBaseBatch(address to, uint16 count) external returns (uint256[] memory);

    /**
     * @dev batch mint a token with no extension. Can only be called by an admin.
     * Returns tokenId minted
     */
    function mintBaseBatch(address to, string[] calldata uris) external returns (uint256[] memory);

    /**
     * @dev mint a token. Can only be called by a registered extension.
     * Returns tokenId minted
     */
    function mintExtension(address to) external returns (uint256);

    /**
     * @dev mint a token. Can only be called by a registered extension.
     * Returns tokenId minted
     */
    function mintExtension(address to, string calldata uri) external returns (uint256);

    /**
     * @dev batch mint a token. Can only be called by a registered extension.
     * Returns tokenIds minted
     */
    function mintExtensionBatch(address to, uint16 count) external returns (uint256[] memory);

    /**
     * @dev batch mint a token. Can only be called by a registered extension.
     * Returns tokenId minted
     */
    function mintExtensionBatch(address to, string[] calldata uris) external returns (uint256[] memory);

    /**
     * @dev burn a token. Can only be called by token owner or approved address.
     * On burn, calls back to the registered extension's onBurn method
     */
    function burn(uint256 tokenId) external;

}

File 21 of 26 : CreatorCore.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";

import "../extensions/ICreatorExtensionBase.sol";
import "../extensions/ICreatorExtensionTokenURI.sol";

import "./ICreatorCore.sol";

/**
 * @dev Core creator implementation
 */
abstract contract CreatorCore is ReentrancyGuard, ICreatorCore, ERC165 {
    using Strings for uint256;
    using EnumerableSet for EnumerableSet.AddressSet;

    uint256 _tokenCount = 0;

    // Track registered extensions data
    EnumerableSet.AddressSet internal _extensions;
    EnumerableSet.AddressSet internal _blacklistedExtensions;
    mapping (address => address) internal _extensionPermissions;
    mapping (address => bool) internal _extensionApproveTransfers;
    
    // For tracking which extension a token was minted by
    mapping (uint256 => address) internal _tokensExtension;

    // The baseURI for a given extension
    mapping (address => string) private _extensionBaseURI;
    mapping (address => bool) private _extensionBaseURIIdentical;

    // The prefix for any tokens with a uri configured
    mapping (address => string) private _extensionURIPrefix;

    // Mapping for individual token URIs
    mapping (uint256 => string) internal _tokenURIs;

    
    // Royalty configurations
    mapping (address => address payable[]) internal _extensionRoyaltyReceivers;
    mapping (address => uint256[]) internal _extensionRoyaltyBPS;
    mapping (uint256 => address payable[]) internal _tokenRoyaltyReceivers;
    mapping (uint256 => uint256[]) internal _tokenRoyaltyBPS;

    /**
     * External interface identifiers for royalties
     */

    /**
     *  @dev CreatorCore
     *
     *  bytes4(keccak256('getRoyalties(uint256)')) == 0xbb3bafd6
     *
     *  => 0xbb3bafd6 = 0xbb3bafd6
     */
    bytes4 private constant _INTERFACE_ID_ROYALTIES_CREATORCORE = 0xbb3bafd6;

    /**
     *  @dev Rarible: RoyaltiesV1
     *
     *  bytes4(keccak256('getFeeRecipients(uint256)')) == 0xb9c4d9fb
     *  bytes4(keccak256('getFeeBps(uint256)')) == 0x0ebd4c7f
     *
     *  => 0xb9c4d9fb ^ 0x0ebd4c7f = 0xb7799584
     */
    bytes4 private constant _INTERFACE_ID_ROYALTIES_RARIBLE = 0xb7799584;

    /**
     *  @dev Foundation
     *
     *  bytes4(keccak256('getFees(uint256)')) == 0xd5a06d4c
     *
     *  => 0xd5a06d4c = 0xd5a06d4c
     */
    bytes4 private constant _INTERFACE_ID_ROYALTIES_FOUNDATION = 0xd5a06d4c;

    /**
     *  @dev EIP-2981
     *
     * bytes4(keccak256("royaltyInfo(uint256,uint256,bytes)")) == 0x6057361d
     *
     * => 0x6057361d = 0x6057361d
     */
    bytes4 private constant _INTERFACE_ID_ROYALTIES_EIP2981 = 0x6057361d;

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

    /**
     * @dev Only allows registered extensions to call the specified function
     */
    modifier extensionRequired() {
        require(_extensions.contains(msg.sender), "CreatorCore: Must be registered extension");
        _;
    }

    /**
     * @dev Only allows non-blacklisted extensions
     */
    modifier nonBlacklistRequired(address extension) {
        require(!_blacklistedExtensions.contains(extension), "CreatorCore: Extension blacklisted");
        _;
    }   

    /**
     * @dev See {ICreatorCore-getExtensions}.
     */
    function getExtensions() external view override returns (address[] memory extensions) {
        extensions = new address[](_extensions.length());
        for (uint i = 0; i < _extensions.length(); i++) {
            extensions[i] = _extensions.at(i);
        }
        return extensions;
    }

    /**
     * @dev Register an extension
     */
    function _registerExtension(address extension, string calldata baseURI, bool baseURIIdentical) internal {
        require(ERC165Checker.supportsInterface(extension, type(ICreatorExtensionBase).interfaceId), "Creator: Extension must implement ICreatorExtensionBase");
        if (!_extensions.contains(extension)) {
            _extensionBaseURI[extension] = baseURI;
            _extensionBaseURIIdentical[extension] = baseURIIdentical;
            emit ExtensionRegistered(extension, msg.sender);
            _extensions.add(extension);
        }
    }

    /**
     * @dev Unregister an extension
     */
    function _unregisterExtension(address extension) internal {
       if (_extensions.contains(extension)) {
           emit ExtensionUnregistered(extension, msg.sender);
           _extensions.remove(extension);
       }
    }

    /**
     * @dev Blacklist an extension
     */
    function _blacklistExtension(address extension) internal {
       require(extension != address(this), "CreatorCore: Cannot blacklist yourself");
       if (_extensions.contains(extension)) {
           emit ExtensionUnregistered(extension, msg.sender);
           _extensions.remove(extension);
       }
       if (!_blacklistedExtensions.contains(extension)) {
           emit ExtensionBlacklisted(extension, msg.sender);
           _blacklistedExtensions.add(extension);
       }
    }

    /**
     * @dev Set base token uri for an extension
     */
    function _setBaseTokenURIExtension(string calldata uri, bool identical) internal {
        _extensionBaseURI[msg.sender] = uri;
        _extensionBaseURIIdentical[msg.sender] = identical;
    }

    /**
     * @dev Set token uri prefix for an extension
     */
    function _setTokenURIPrefixExtension(string calldata prefix) internal {
        _extensionURIPrefix[msg.sender] = prefix;
    }

    /**
     * @dev Set token uri for a token of an extension
     */
    function _setTokenURIExtension(uint256 tokenId, string calldata uri) internal {
        require(_tokensExtension[tokenId] == msg.sender, "CreatorCore: Invalid token");
        _tokenURIs[tokenId] = uri;
    }

    /**
     * @dev Set base token uri for tokens with no extension
     */
    function _setBaseTokenURI(string calldata uri) internal {
        _extensionBaseURI[address(this)] = uri;
    }

    /**
     * @dev Set token uri prefix for tokens with no extension
     */
    function _setTokenURIPrefix(string calldata prefix) internal {
        _extensionURIPrefix[address(this)] = prefix;
    }


    /**
     * @dev Set token uri for a token with no extension
     */
    function _setTokenURI(uint256 tokenId, string calldata uri) internal {
        require(_tokensExtension[tokenId] == address(this), "CreatorCore: Invalid token");
        _tokenURIs[tokenId] = uri;
    }

    /**
     * @dev Retrieve a token's URI
     */
    function _tokenURI(uint256 tokenId) internal view returns (string memory) {
        address extension = _tokensExtension[tokenId];
        require(!_blacklistedExtensions.contains(extension), "CreatorCore: Extension blacklisted");

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            if (bytes(_extensionURIPrefix[extension]).length != 0) {
                return string(abi.encodePacked(_extensionURIPrefix[extension],_tokenURIs[tokenId]));
            }
            return _tokenURIs[tokenId];
        }

        if (ERC165Checker.supportsInterface(extension, type(ICreatorExtensionTokenURI).interfaceId)) {
            return ICreatorExtensionTokenURI(extension).tokenURI(address(this), tokenId);
        }

        if (!_extensionBaseURIIdentical[extension]) {
            return string(abi.encodePacked(_extensionBaseURI[extension], tokenId.toString()));
        } else {
            return _extensionBaseURI[extension];
        }
    }

    /**
     * Get token extension
     */
    function _tokenExtension(uint256 tokenId) internal view returns (address extension) {
        extension = _tokensExtension[tokenId];

        require(extension != address(this), "CreatorCore: No extension for token");
        require(!_blacklistedExtensions.contains(extension), "CreatorCore: Extension blacklisted");

        return extension;
    }

    /**
     * Helper to get royalties for a token
     */
    function _getRoyalties(uint256 tokenId) view internal returns (address payable[] storage, uint256[] storage) {
        return (_getRoyaltyReceivers(tokenId), _getRoyaltyBPS(tokenId));
    }

    /**
     * Helper to get royalty receivers for a token
     */
    function _getRoyaltyReceivers(uint256 tokenId) view internal returns (address payable[] storage) {
        if (_tokenRoyaltyReceivers[tokenId].length > 0) {
            return _tokenRoyaltyReceivers[tokenId];
        } else if (_extensionRoyaltyReceivers[_tokensExtension[tokenId]].length > 0) {
            return _extensionRoyaltyReceivers[_tokensExtension[tokenId]];
        }
        return _extensionRoyaltyReceivers[address(this)];        
    }

    /**
     * Helper to get royalty basis points for a token
     */
    function _getRoyaltyBPS(uint256 tokenId) view internal returns (uint256[] storage) {
        if (_tokenRoyaltyBPS[tokenId].length > 0) {
            return _tokenRoyaltyBPS[tokenId];
        } else if (_extensionRoyaltyBPS[_tokensExtension[tokenId]].length > 0) {
            return _extensionRoyaltyBPS[_tokensExtension[tokenId]];
        }
        return _extensionRoyaltyBPS[address(this)];        
    }

    function _getRoyaltyInfo(uint256 tokenId, uint256 value) view internal returns (address receiver, uint256 amount, bytes memory data){
        address payable[] storage receivers = _getRoyaltyReceivers(tokenId);
        require(receivers.length <= 1, "CreatorCore: Only works if there are at most 1 royalty receivers");
        
        if (receivers.length == 0) {
            return (address(this), 0, data);
        }
        return (receivers[0], _getRoyaltyBPS(tokenId)[0]*value/10000, data);
    }


    /**
     * Helper to shorten royalties arrays if it is too long
     */
    function _shortenRoyalties(address payable[] storage receivers, uint256[] storage basisPoints, uint256 targetLength) internal {
        require(receivers.length == basisPoints.length, "CreatorCore: Invalid input");
        if (targetLength < receivers.length) {
            for (uint i = receivers.length; i > targetLength; i--) {
                receivers.pop();
                basisPoints.pop();
            }
        }
    }

    /**
     * Helper to update royalites
     */
    function _updateRoyalties(address payable[] storage receivers, uint256[] storage basisPoints, address payable[] calldata newReceivers, uint256[] calldata newBPS) internal {
        require(receivers.length == basisPoints.length, "CreatorCore: Invalid input");
        require(newReceivers.length == newBPS.length, "CreatorCore: Invalid input");
        uint256 totalRoyalties;
        for (uint i = 0; i < newReceivers.length; i++) {
            if (i < receivers.length) {
                receivers[i] = newReceivers[i];
                basisPoints[i] = newBPS[i];
            } else {
                receivers.push(newReceivers[i]);
                basisPoints.push(newBPS[i]);
            }
            totalRoyalties += newBPS[i];
        }
        require(totalRoyalties < 10000, "CreatorCore: Invalid total royalties");
    }

    /**
     * Set royalties for a token
     */
    function _setRoyalties(uint256 tokenId, address payable[] calldata receivers, uint256[] calldata basisPoints) internal {
        require(receivers.length == basisPoints.length, "CreatorCore: Invalid input");
        _shortenRoyalties(_tokenRoyaltyReceivers[tokenId], _tokenRoyaltyBPS[tokenId], receivers.length);
        _updateRoyalties(_tokenRoyaltyReceivers[tokenId], _tokenRoyaltyBPS[tokenId], receivers, basisPoints);
        emit RoyaltiesUpdated(tokenId, receivers, basisPoints);
    }

    /**
     * Set royalties for all tokens of an extension
     */
    function _setRoyaltiesExtension(address extension, address payable[] calldata receivers, uint256[] calldata basisPoints) internal {
        require(receivers.length == basisPoints.length, "CreatorCore: Invalid input");
        _shortenRoyalties(_extensionRoyaltyReceivers[extension], _extensionRoyaltyBPS[extension], receivers.length);
        _updateRoyalties(_extensionRoyaltyReceivers[extension], _extensionRoyaltyBPS[extension], receivers, basisPoints);
        if (extension == address(this)) {
            emit DefaultRoyaltiesUpdated(receivers, basisPoints);
        } else {
            emit ExtensionRoyaltiesUpdated(extension, receivers, basisPoints);
        }
    }


}

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

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "../access/IAdminControl.sol";

/**
 * @dev Required interface of an CreatorCore compliant extension contracts.
 */
interface ICreatorExtensionBase is IERC165, IAdminControl {

    /**
     * @dev set the baseTokenURI of tokens generated by this extension.  Can only be called by admins.
     */
    function setBaseTokenURI(address creator, string calldata uri) external;

    /**
     * @dev set the baseTokenURI of tokens generated by this extension.  Can only be called by admins.
     */
    function setBaseTokenURI(address creator, string calldata uri, bool identical) external;

    /**
     * @dev set the tokenURI of a token generated by this extension.  Can only be called by admins.
     */
    function setTokenURI(address creator, uint256 tokenId, string calldata uri) external;

    /**
     * @dev set the tokenURI of multiple tokens generated by this extension.  Can only be called by admins.
     */
    function setTokenURI(address creator, uint256[] calldata tokenId, string[] calldata uri) external;

}

File 23 of 26 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 24 of 26 : ERC165Checker.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Library used to query support of an interface declared via {IERC165}.
 *
 * Note that these functions return the actual result of the query: they do not
 * `revert` if an interface is not supported. It is up to the caller to decide
 * what to do in these cases.
 */
library ERC165Checker {
    // As per the EIP-165 spec, no interface should ever match 0xffffffff
    bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;

    /**
     * @dev Returns true if `account` supports the {IERC165} interface,
     */
    function supportsERC165(address account) internal view returns (bool) {
        // Any contract that implements ERC165 must explicitly indicate support of
        // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid
        return _supportsERC165Interface(account, type(IERC165).interfaceId) &&
            !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);
    }

    /**
     * @dev Returns true if `account` supports the interface defined by
     * `interfaceId`. Support for {IERC165} itself is queried automatically.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {
        // query support of both ERC165 as per the spec and support of _interfaceId
        return supportsERC165(account) &&
            _supportsERC165Interface(account, interfaceId);
    }

    /**
     * @dev Returns a boolean array where each value corresponds to the
     * interfaces passed in and whether they're supported or not. This allows
     * you to batch check interfaces for a contract where your expectation
     * is that some interfaces may not be supported.
     *
     * See {IERC165-supportsInterface}.
     *
     * _Available since v3.4._
     */
    function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool[] memory) {
        // an array of booleans corresponding to interfaceIds and whether they're supported or not
        bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length);

        // query support of ERC165 itself
        if (supportsERC165(account)) {
            // query support of each interface in interfaceIds
            for (uint256 i = 0; i < interfaceIds.length; i++) {
                interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]);
            }
        }

        return interfaceIdsSupported;
    }

    /**
     * @dev Returns true if `account` supports all the interfaces defined in
     * `interfaceIds`. Support for {IERC165} itself is queried automatically.
     *
     * Batch-querying can lead to gas savings by skipping repeated checks for
     * {IERC165} support.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {
        // query support of ERC165 itself
        if (!supportsERC165(account)) {
            return false;
        }

        // query support of each interface in _interfaceIds
        for (uint256 i = 0; i < interfaceIds.length; i++) {
            if (!_supportsERC165Interface(account, interfaceIds[i])) {
                return false;
            }
        }

        // all interfaces supported
        return true;
    }

    /**
     * @notice Query if a contract implements an interface, does not check ERC165 support
     * @param account The address of the contract to query for support of an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @return true if the contract at account indicates support of the interface with
     * identifier interfaceId, false otherwise
     * @dev Assumes that account contains a contract that supports ERC165, otherwise
     * the behavior of this method is undefined. This precondition can be checked
     * with {supportsERC165}.
     * Interface identification is specified in ERC-165.
     */
    function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {
        bytes memory encodedParams = abi.encodeWithSelector(IERC165(account).supportsInterface.selector, interfaceId);
        (bool success, bytes memory result) = account.staticcall{ gas: 30000 }(encodedParams);
        if (result.length < 32) return false;
        return success && abi.decode(result, (bool));
    }
}

File 25 of 26 : ICreatorExtensionTokenURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * Implement this if you want your extension to have overloadable URI's
 */
interface ICreatorExtensionTokenURI is IERC165 {

    /**
     * Get the uri for a given creator/tokenId
     */
    function tokenURI(address creator, uint256 tokenId) external view returns (string memory);
}

File 26 of 26 : ICreatorCore.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Core creator interface
 */
interface ICreatorCore is IERC165 {

    event ExtensionRegistered(address indexed extension, address indexed sender);
    event ExtensionUnregistered(address indexed extension, address indexed sender);
    event ExtensionBlacklisted(address indexed extension, address indexed sender);
    event MintPermissionsUpdated(address indexed extension, address indexed permissions, address indexed sender);
    event RoyaltiesUpdated(uint256 indexed tokenId, address payable[] receivers, uint256[] basisPoints);
    event DefaultRoyaltiesUpdated(address payable[] receivers, uint256[] basisPoints);
    event ExtensionRoyaltiesUpdated(address indexed extension, address payable[] receivers, uint256[] basisPoints);
    event ExtensionApproveTransferUpdated(address indexed extension, bool enabled);

    /**
     * @dev gets address of all extensions
     */
    function getExtensions() external view returns (address[] memory);

    /**
     * @dev add an extension.  Can only be called by contract owner or admin.
     * extension address must point to a contract implementing ICreatorExtension.
     * Returns True if newly added, False if already added.
     */
    function registerExtension(address extension, string calldata baseURI) external;

    /**
     * @dev add an extension.  Can only be called by contract owner or admin.
     * extension address must point to a contract implementing ICreatorExtension.
     * Returns True if newly added, False if already added.
     */
    function registerExtension(address extension, string calldata baseURI, bool baseURIIdentical) external;

    /**
     * @dev add an extension.  Can only be called by contract owner or admin.
     * Returns True if removed, False if already removed.
     */
    function unregisterExtension(address extension) external;

    /**
     * @dev blacklist an extension.  Can only be called by contract owner or admin.
     * This function will destroy all ability to reference the metadata of any tokens created
     * by the specified extension. It will also unregister the extension if needed.
     * Returns True if removed, False if already removed.
     */
    function blacklistExtension(address extension) external;

    /**
     * @dev set the baseTokenURI of an extension.  Can only be called by extension.
     */
    function setBaseTokenURIExtension(string calldata uri) external;

    /**
     * @dev set the baseTokenURI of an extension.  Can only be called by extension.
     * For tokens with no uri configured, tokenURI will return "uri+tokenId"
     */
    function setBaseTokenURIExtension(string calldata uri, bool identical) external;

    /**
     * @dev set the common prefix of an extension.  Can only be called by extension.
     * If configured, and a token has a uri set, tokenURI will return "commonURI+tokenURI"
     * Useful if you want to use ipfs/arweave
     */
    function setTokenURIPrefixExtension(string calldata prefix) external;

    /**
     * @dev set the tokenURI of a token extension.  Can only be called by extension that minted token.
     */
    function setTokenURIExtension(uint256 tokenId, string calldata uri) external;

    /**
     * @dev set the tokenURI of a token extension for multiple tokens.  Can only be called by extension that minted token.
     */
    function setTokenURIExtension(uint256[] memory tokenId, string[] calldata uri) external;

    /**
     * @dev set the baseTokenURI for tokens with no extension.  Can only be called by owner/admin.
     * For tokens with no uri configured, tokenURI will return "uri+tokenId"
     */
    function setBaseTokenURI(string calldata uri) external;

    /**
     * @dev set the common prefix for tokens with no extension.  Can only be called by owner/admin.
     * If configured, and a token has a uri set, tokenURI will return "commonURI+tokenURI"
     * Useful if you want to use ipfs/arweave
     */
    function setTokenURIPrefix(string calldata prefix) external;

    /**
     * @dev set the tokenURI of a token with no extension.  Can only be called by owner/admin.
     */
    function setTokenURI(uint256 tokenId, string calldata uri) external;

    /**
     * @dev set the tokenURI of multiple tokens with no extension.  Can only be called by owner/admin.
     */
    function setTokenURI(uint256[] memory tokenIds, string[] calldata uris) external;

    /**
     * @dev set a permissions contract for an extension.  Used to control minting.
     */
    function setMintPermissions(address extension, address permissions) external;

    /**
     * @dev Configure so transfers of tokens created by the caller (must be extension) gets approval
     * from the extension before transferring
     */
    function setApproveTransferExtension(bool enabled) external;

    /**
     * @dev get the extension of a given token
     */
    function tokenExtension(uint256 tokenId) external view returns (address);

    /**
     * @dev Set default royalties
     */
    function setRoyalties(address payable[] calldata receivers, uint256[] calldata basisPoints) external;

    /**
     * @dev Set royalties of a token
     */
    function setRoyalties(uint256 tokenId, address payable[] calldata receivers, uint256[] calldata basisPoints) external;

    /**
     * @dev Set royalties of an extension
     */
    function setRoyaltiesExtension(address extension, address payable[] calldata receivers, uint256[] calldata basisPoints) external;

    /**
     * @dev Get royalites of a token.  Returns list of receivers and basisPoints
     */
    function getRoyalties(uint256 tokenId) external view returns (address payable[] memory, uint256[] memory);
    
    // Royalty support for various other standards
    function getFeeRecipients(uint256 tokenId) external view returns (address payable[] memory);
    function getFeeBps(uint256 tokenId) external view returns (uint[] memory);
    function getFees(uint256 tokenId) external view returns (address payable[] memory, uint256[] memory);
    function royaltyInfo(uint256 tokenId, uint256 value, bytes calldata data) external view returns (address, uint256, bytes memory);

}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address payable[]","name":"receivers","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"DefaultRoyaltiesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"extension","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"ExtensionApproveTransferUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"extension","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"ExtensionBlacklisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"extension","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"ExtensionRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"extension","type":"address"},{"indexed":false,"internalType":"address payable[]","name":"receivers","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"ExtensionRoyaltiesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"extension","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"ExtensionUnregistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"extension","type":"address"},{"indexed":true,"internalType":"address","name":"permissions","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"MintPermissionsUpdated","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":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address payable[]","name":"receivers","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"RoyaltiesUpdated","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"approveAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"extension","type":"address"}],"name":"blacklistExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAdmins","outputs":[{"internalType":"address[]","name":"admins","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getExtensions","outputs":[{"internalType":"address[]","name":"extensions","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFees","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRoyalties","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mintBase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"uri","type":"string"}],"name":"mintBase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"mintBaseBatch","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16","name":"count","type":"uint16"}],"name":"mintBaseBatch","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mintExtension","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"uri","type":"string"}],"name":"mintExtension","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"mintExtensionBatch","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16","name":"count","type":"uint16"}],"name":"mintExtensionBatch","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"extension","type":"address"},{"internalType":"string","name":"baseURI","type":"string"}],"name":"registerExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"extension","type":"address"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"bool","name":"baseURIIdentical","type":"bool"}],"name":"registerExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"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":"enabled","type":"bool"}],"name":"setApproveTransferExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseTokenURIExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"},{"internalType":"bool","name":"identical","type":"bool"}],"name":"setBaseTokenURIExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"extension","type":"address"},{"internalType":"address","name":"permissions","type":"address"}],"name":"setMintPermissions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address payable[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"extension","type":"address"},{"internalType":"address payable[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"setRoyaltiesExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"setTokenURIExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setTokenURIExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix","type":"string"}],"name":"setTokenURIPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix","type":"string"}],"name":"setTokenURIPrefixExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenExtension","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":"address","name":"extension","type":"address"}],"name":"unregisterExtension","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600a553480156200001657600080fd5b506040518060400160405280600d81526020016c4d616420446f67204a6f6e657360981b8152506040518060400160405280600381526020016226a22560e91b815250818160006200006d620000f160201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180558151620000d0906004906020850190620000f5565b508051620000e6906005906020840190620000f5565b5050505050620001d8565b3390565b82805462000103906200019b565b90600052602060002090601f01602090048101928262000127576000855562000172565b82601f106200014257805160ff191683800117855562000172565b8280016001018555821562000172579182015b828111156200017257825182559160200191906001019062000155565b506200018092915062000184565b5090565b5b8082111562000180576000815560010162000185565b600181811c90821680620001b057607f821691505b60208210811415620001d257634e487b7160e01b600052602260045260246000fd5b50919050565b61558280620001e86000396000f3fe608060405234801561001057600080fd5b50600436106103625760003560e01c8063715018a6116101c8578063b0fe87c911610104578063d5a06d4c116100a2578063e985e9c51161007c578063e985e9c51461075f578063f0cdc4991461079b578063f2fde38b146107ae578063fe2e1f58146107c157600080fd5b8063d5a06d4c146106d0578063e00aab4b14610739578063e92a89f61461074c57600080fd5b8063bb3bafd6116100de578063bb3bafd6146106d0578063c155531d146106f1578063c87b56dd14610713578063ce8aee9d1461072657600080fd5b8063b0fe87c91461068a578063b88d4fde1461069d578063b9c4d9fb146106b057600080fd5b80638da5cb5b11610171578063a22cb4651161014b578063a22cb4651461063e578063aafb2d4414610651578063ac0c8cfa14610664578063ad2d0ddd1461067757600080fd5b80638da5cb5b1461061257806395d89b411461062357806399e0dd7c1461062b57600080fd5b80637aa15f16116101a25780637aa15f16146105e457806382dcc0c8146105f757806383b7db631461060a57600080fd5b8063715018a6146105b657806372ff03d3146105be5780637884af44146105d157600080fd5b806330176e13116102a257806342842e0e116102405780636352211e1161021a5780636352211e1461056a57806366d1e9d01461057d5780636d73e6691461059057806370a08231146105a357600080fd5b806342842e0e1461053157806342966c681461054457806361e5bc6b1461055757600080fd5b8063332dd1ae1161027c578063332dd1ae146104e557806338e52e78146104f85780633e6134b81461050b5780633f0f37f61461051e57600080fd5b806330176e13146104aa5780633071a0f9146104bd57806331ae450b146104d057600080fd5b8063162094c41161030f57806323b872dd116102e957806323b872dd1461045057806324d7806c146104635780632928ca58146104765780632d3456701461049757600080fd5b8063162094c41461041757806320e4afe21461042a578063239be3171461043d57600080fd5b8063081812fc11610340578063081812fc146103b9578063095ea7b3146103e45780630ebd4c7f146103f757600080fd5b806301ffc9a71461036757806302e7afb71461038f57806306fdde03146103a4575b600080fd5b61037a610375366004614c0a565b6107d4565b60405190151581526020015b60405180910390f35b6103a261039d36600461476a565b610803565b005b6103ac610862565b6040516103869190615104565b6103cc6103c7366004614d47565b6108f4565b6040516001600160a01b039091168152602001610386565b6103a26103f2366004614a7f565b610989565b61040a610405366004614d47565b610abd565b60405161038691906150f1565b6103a2610425366004614d93565b610b53565b6103a2610438366004614d5f565b610ba8565b6103cc61044b366004614d47565b610c3a565b6103a261045e3660046147be565b610c77565b61037a61047136600461476a565b610ca8565b61048961048436600461476a565b610ce1565b604051908152602001610386565b6103a26104a536600461476a565b610d55565b6103a26104b8366004614c42565b610e04565b6103a26104cb3660046149a2565b610e58565b6104d8610ede565b6040516103869190614fed565b6103a26104f3366004614aaa565b610fa8565b61040a610506366004614923565b610fff565b6103a2610519366004614c42565b611166565b6103a261052c3660046149e7565b611199565b6103a261053f3660046147be565b611218565b6103a2610552366004614d47565b611233565b6103a2610565366004614b12565b6112f1565b6103cc610578366004614d47565b6113e8565b6103a261058b366004614c42565b61145f565b6103a261059e36600461476a565b611490565b6104896105b136600461476a565b61153a565b6103a26115c1565b6104896105cc36600461476a565b611665565b6104896105df3660046149a2565b6116f2565b61040a6105f2366004614923565b6117b2565b6103a2610605366004614c81565b611930565b6104d8611962565b6000546001600160a01b03166103cc565b6103ac611a28565b6103a2610639366004614c42565b611a37565b6103a261064c366004614975565b611a8b565b6103a261065f366004614b12565b611b50565b6103a2610672366004614bd2565b611c6a565b61040a610685366004614a4c565b611db4565b6103a26106983660046148a4565b611ef6565b6103a26106ab3660046147fe565b611f4d565b6106c36106be366004614d47565b611f7f565b60405161038691906150b9565b6106e36106de366004614d47565b61201e565b6040516103869291906150cc565b6107046106ff366004614dc3565b61211a565b60405161038693929190614fc5565b6103ac610721366004614d47565b61216d565b6103a261073436600461476a565b6121ad565b61040a610747366004614a4c565b612200565b6103a261075a366004614d93565b612314565b61037a61076d366004614786565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6103a26107a9366004614786565b612346565b6103a26107bc36600461476a565b61239a565b6104896107cf3660046149a2565b6124b4565b60006107df82612545565b806107ee57506107ee8261256a565b806107fd57506107fd826125a5565b92915050565b336108166000546001600160a01b031690565b6001600160a01b0316148061083157506108316002336125da565b6108565760405162461bcd60e51b815260040161084d9061522e565b60405180910390fd5b61085f816125ff565b50565b6060600480546108719061542b565b80601f016020809104026020016040519081016040528092919081815260200182805461089d9061542b565b80156108ea5780601f106108bf576101008083540402835291602001916108ea565b820191906000526020600020905b8154815290600101906020018083116108cd57829003601f168201915b5050505050905090565b6000818152600660205260408120546001600160a01b031661096d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161084d565b506000908152600860205260409020546001600160a01b031690565b6000610994826113e8565b9050806001600160a01b0316836001600160a01b03161415610a025760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161084d565b336001600160a01b0382161480610a3c57506001600160a01b038116600090815260096020908152604080832033845290915290205460ff165b610aae5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161084d565b610ab8838361270a565b505050565b6000818152600660205260409020546060906001600160a01b0316610af45760405162461bcd60e51b815260040161084d90615169565b610afd82612778565b805480602002602001604051908101604052809291908181526020018280548015610b4757602002820191906000526020600020905b815481526020019060010190808311610b33575b50505050509050919050565b33610b666000546001600160a01b031690565b6001600160a01b03161480610b815750610b816002336125da565b610b9d5760405162461bcd60e51b815260040161084d9061522e565b610ab8838383612804565b33610bbb6000546001600160a01b031690565b6001600160a01b03161480610bd65750610bd66002336125da565b610bf25760405162461bcd60e51b815260040161084d9061522e565b6000858152600660205260409020546001600160a01b0316610c265760405162461bcd60e51b815260040161084d90615169565b610c338585858585612883565b5050505050565b6000818152600660205260408120546001600160a01b0316610c6e5760405162461bcd60e51b815260040161084d90615169565b6107fd82612950565b610c8133826129f1565b610c9d5760405162461bcd60e51b815260040161084d906151dd565b610ab8838383612ae8565b6000816001600160a01b0316610cc66000546001600160a01b031690565b6001600160a01b031614806107fd57506107fd6002836125da565b600060026001541415610d065760405162461bcd60e51b815260040161084d906152b4565b6002600155610d16600b336125da565b610d325760405162461bcd60e51b815260040161084d90615194565b610d4b8260405180602001604052806000815250612c93565b6001805592915050565b6000546001600160a01b03163314610daf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161084d565b610dba6002826125da565b1561085f5760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610e00600282612d0d565b5050565b33610e176000546001600160a01b031690565b6001600160a01b03161480610e325750610e326002336125da565b610e4e5760405162461bcd60e51b815260040161084d9061522e565b610e008282612d22565b33610e6b6000546001600160a01b031690565b6001600160a01b03161480610e865750610e866002336125da565b610ea25760405162461bcd60e51b815260040161084d9061522e565b82610eae600d826125da565b15610ecb5760405162461bcd60e51b815260040161084d90615272565b610ed88484846000612d3c565b50505050565b6060610eea6002612e49565b6001600160401b03811115610f0f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f38578160200160208202803683370190505b50905060005b610f486002612e49565b811015610fa457610f5a600282612e53565b828281518110610f7a57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280610f9c81615482565b915050610f3e565b5090565b33610fbb6000546001600160a01b031690565b6001600160a01b03161480610fd65750610fd66002336125da565b610ff25760405162461bcd60e51b815260040161084d9061522e565b610ed83085858585612e5f565b6060600260015414156110245760405162461bcd60e51b815260040161084d906152b4565b6002600155611034600b336125da565b6110505760405162461bcd60e51b815260040161084d90615194565b816001600160401b0381111561107657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561109f578160200160208202803683370190505b50905060005b8281101561115a5761111d858585848181106110d157634e487b7160e01b600052603260045260246000fd5b90506020028101906110e391906152eb565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612c9392505050565b82828151811061113d57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061115281615482565b9150506110a5565b50600180559392505050565b611171600b336125da565b61118d5760405162461bcd60e51b815260040161084d90615194565b610e0082826000612f8d565b336111ac6000546001600160a01b031690565b6001600160a01b031614806111c757506111c76002336125da565b6111e35760405162461bcd60e51b815260040161084d9061522e565b836111ef600d826125da565b1561120c5760405162461bcd60e51b815260040161084d90615272565b610c3385858585612d3c565b610ab883838360405180602001604052806000815250611f4d565b600260015414156112565760405162461bcd60e51b815260040161084d906152b4565b600260015561126533826129f1565b6112c95760405162461bcd60e51b815260206004820152602f60248201527f45524337323143726561746f723a2063616c6c6572206973206e6f74206f776e60448201526e195c881b9bdc88185c1c1c9bdd9959608a1b606482015260840161084d565b60006112d4826113e8565b90506112df82612fca565b6112e98183613071565b505060018055565b6112fc600b336125da565b6113185760405162461bcd60e51b815260040161084d90615194565b825181146113685760405162461bcd60e51b815260206004820152601c60248201527f45524337323143726561746f723a20496e76616c696420696e70757400000000604482015260640161084d565b60005b8351811015610ed8576113d684828151811061139757634e487b7160e01b600052603260045260246000fd5b60200260200101518484848181106113bf57634e487b7160e01b600052603260045260246000fd5b90506020028101906113d191906152eb565b613187565b806113e081615482565b91505061136b565b6000818152600660205260408120546001600160a01b0316806107fd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161084d565b61146a600b336125da565b6114865760405162461bcd60e51b815260040161084d90615194565b610e0082826131ed565b6000546001600160a01b031633146114ea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161084d565b6114f56002826125da565b61085f5760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610e00600282613207565b60006001600160a01b0382166115a55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161084d565b506001600160a01b031660009081526007602052604090205490565b6000546001600160a01b0316331461161b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161084d565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006002600154141561168a5760405162461bcd60e51b815260040161084d906152b4565b6002600155336116a26000546001600160a01b031690565b6001600160a01b031614806116bd57506116bd6002336125da565b6116d95760405162461bcd60e51b815260040161084d9061522e565b610d4b826040518060200160405280600081525061321c565b6000600260015414156117175760405162461bcd60e51b815260040161084d906152b4565b60026001553361172f6000546001600160a01b031690565b6001600160a01b0316148061174a575061174a6002336125da565b6117665760405162461bcd60e51b815260040161084d9061522e565b6117a68484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061321c92505050565b60018055949350505050565b6060600260015414156117d75760405162461bcd60e51b815260040161084d906152b4565b6002600155336117ef6000546001600160a01b031690565b6001600160a01b0316148061180a575061180a6002336125da565b6118265760405162461bcd60e51b815260040161084d9061522e565b816001600160401b0381111561184c57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611875578160200160208202803683370190505b50905060005b8281101561115a576118f3858585848181106118a757634e487b7160e01b600052603260045260246000fd5b90506020028101906118b991906152eb565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061321c92505050565b82828151811061191357634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061192881615482565b91505061187b565b61193b600b336125da565b6119575760405162461bcd60e51b815260040161084d90615194565b610ab8838383612f8d565b606061196e600b612e49565b6001600160401b0381111561199357634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156119bc578160200160208202803683370190505b50905060005b6119cc600b612e49565b811015610fa4576119de600b82612e53565b8282815181106119fe57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280611a2081615482565b9150506119c2565b6060600580546108719061542b565b33611a4a6000546001600160a01b031690565b6001600160a01b03161480611a655750611a656002336125da565b611a815760405162461bcd60e51b815260040161084d9061522e565b610e00828261325f565b6001600160a01b038216331415611ae45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161084d565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b33611b636000546001600160a01b031690565b6001600160a01b03161480611b7e5750611b7e6002336125da565b611b9a5760405162461bcd60e51b815260040161084d9061522e565b82518114611bea5760405162461bcd60e51b815260206004820152601c60248201527f45524337323143726561746f723a20496e76616c696420696e70757400000000604482015260640161084d565b60005b8351811015610ed857611c58848281518110611c1957634e487b7160e01b600052603260045260246000fd5b6020026020010151848484818110611c4157634e487b7160e01b600052603260045260246000fd5b9050602002810190611c5391906152eb565b612804565b80611c6281615482565b915050611bed565b611c75600b336125da565b611c915760405162461bcd60e51b815260040161084d90615194565b801580611caa5750611caa33634ce6d51160e11b613279565b611d425760405162461bcd60e51b815260206004820152605960248201527f45524337323143726561746f72436f72653a205265717569726573206578746560448201527f6e73696f6e20746f20696d706c656d656e74204945524337323143726561746f60648201527f72457874656e73696f6e417070726f76655472616e7366657200000000000000608482015260a40161084d565b3360009081526010602052604090205460ff1615158115151461085f5733600081815260106020908152604091829020805460ff191685151590811790915591519182527f072a7592283e2c2d1d56d21517ff6013325e0f55483f4828373ff4d98b0a1a36910160405180910390a250565b606060026001541415611dd95760405162461bcd60e51b815260040161084d906152b4565b600260015533611df16000546001600160a01b031690565b6001600160a01b03161480611e0c5750611e0c6002336125da565b611e285760405162461bcd60e51b815260040161084d9061522e565b8161ffff166001600160401b03811115611e5257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611e7b578160200160208202803683370190505b50905060005b8261ffff168161ffff161015611eeb57611eaa846040518060200160405280600081525061321c565b828261ffff1681518110611ece57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611ee381615460565b915050611e81565b506001805592915050565b33611f096000546001600160a01b031690565b6001600160a01b03161480611f245750611f246002336125da565b611f405760405162461bcd60e51b815260040161084d9061522e565b610c338585858585612e5f565b611f5733836129f1565b611f735760405162461bcd60e51b815260040161084d906151dd565b610ed884848484613295565b6000818152600660205260409020546060906001600160a01b0316611fb65760405162461bcd60e51b815260040161084d90615169565b611fbf826132c8565b805480602002602001604051908101604052809291908181526020018280548015610b4757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611ff55750505050509050919050565b606080612042836000908152600660205260409020546001600160a01b0316151590565b61205e5760405162461bcd60e51b815260040161084d90615169565b61206783613354565b8154604080516020808402820181019092528281529184918301828280156120b857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161209a575b505050505091508080548060200260200160405190810160405280929190818152602001828054801561210a57602002820191906000526020600020905b8154815260200190600101908083116120f6575b5050505050905091509150915091565b60008481526006602052604081205481906060906001600160a01b03166121535760405162461bcd60e51b815260040161084d90615169565b61215d8787613372565b9250925092509450945094915050565b6000818152600660205260409020546060906001600160a01b03166121a45760405162461bcd60e51b815260040161084d90615169565b6107fd826134a1565b336121c06000546001600160a01b031690565b6001600160a01b031614806121db57506121db6002336125da565b6121f75760405162461bcd60e51b815260040161084d9061522e565b61085f8161372a565b6060600260015414156122255760405162461bcd60e51b815260040161084d906152b4565b6002600155612235600b336125da565b6122515760405162461bcd60e51b815260040161084d90615194565b8161ffff166001600160401b0381111561227b57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156122a4578160200160208202803683370190505b50905060005b8261ffff168161ffff161015611eeb576122d38460405180602001604052806000815250612c93565b828261ffff16815181106122f757634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061230c81615460565b9150506122aa565b61231f600b336125da565b61233b5760405162461bcd60e51b815260040161084d90615194565b610ab8838383613187565b336123596000546001600160a01b031690565b6001600160a01b0316148061237457506123746002336125da565b6123905760405162461bcd60e51b815260040161084d9061522e565b610e00828261377b565b6000546001600160a01b031633146123f45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161084d565b6001600160a01b0381166124595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161084d565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000600260015414156124d95760405162461bcd60e51b815260040161084d906152b4565b60026001556124e9600b336125da565b6125055760405162461bcd60e51b815260040161084d90615194565b6117a68484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612c9392505050565b60006001600160e01b03198216639088c20760e01b14806107fd57506107fd826138c9565b60006001600160e01b031982166380ac58cd60e01b14806107ee57506001600160e01b03198216635b5e139f60e01b14806107fd57506107fd825b60006001600160e01b03198216632a9f3abf60e11b14806107fd57506301ffc9a760e01b6001600160e01b03198316146107fd565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b6001600160a01b0381163014156126675760405162461bcd60e51b815260206004820152602660248201527f43726561746f72436f72653a2043616e6e6f7420626c61636b6c69737420796f6044820152653ab939b2b63360d11b606482015260840161084d565b612672600b826125da565b156126ba5760405133906001600160a01b038316907fd19cf84cf0fec6bec9ddfa29c63adf83a55707c712f32c8285d6180a7890147990600090a36126b8600b82612d0d565b505b6126c5600d826125da565b61085f5760405133906001600160a01b038316907f05ac7bc5a606cd92a63365f9fda244499b9add0526b22d99937b6bd88181059c90600090a3610e00600d82613207565b600081815260086020526040902080546001600160a01b0319166001600160a01b038416908117909155819061273f826113e8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152601960205260408120541561279e5750600090815260196020526040902090565b6000828152601160209081526040808320546001600160a01b031683526017909152902054156127f057506000908152601160209081526040808320546001600160a01b031683526017909152902090565b505030600090815260176020526040902090565b6000838152601160205260409020546001600160a01b0316301461286a5760405162461bcd60e51b815260206004820152601a60248201527f43726561746f72436f72653a20496e76616c696420746f6b656e000000000000604482015260640161084d565b6000838152601560205260409020610ed89083836145a3565b8281146128c05760405162461bcd60e51b815260206004820152601a602482015260008051602061552d833981519152604482015260640161084d565b600085815260186020908152604080832060199092529091206128e491908561395f565b6000858152601860209081526040808320601990925290912061290b919086868686613a3a565b847fabb46fe0761d77584bde75697647804ffd8113abd4d8d06bc664150395eccdee85858585604051612941949392919061503a565b60405180910390a25050505050565b6000818152601160205260409020546001600160a01b0316308114156129c45760405162461bcd60e51b815260206004820152602360248201527f43726561746f72436f72653a204e6f20657874656e73696f6e20666f7220746f60448201526235b2b760e91b606482015260840161084d565b6129cf600d826125da565b156129ec5760405162461bcd60e51b815260040161084d90615272565b919050565b6000818152600660205260408120546001600160a01b0316612a6a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161084d565b6000612a75836113e8565b9050806001600160a01b0316846001600160a01b03161480612ab05750836001600160a01b0316612aa5846108f4565b6001600160a01b0316145b80612ae057506001600160a01b0380821660009081526009602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612afb826113e8565b6001600160a01b031614612b635760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161084d565b6001600160a01b038216612bc55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161084d565b612bd0838383613cff565b612bdb60008261270a565b6001600160a01b0383166000908152600760205260408120805460019290612c049084906153d1565b90915550506001600160a01b0382166000908152600760205260408120805460019290612c32908490615386565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a805460009182612ca483615482565b9190505550600a549050612cb88382613d0a565b600081815260116020526040902080546001600160a01b03191633179055612ce08382613da6565b815115612d085760008181526015602090815260409091208351612d0692850190614623565b505b6107fd565b60006125f8836001600160a01b038416613dc0565b306000908152601260205260409020610ab89083836145a3565b612d4d84637005caad60e01b613279565b612dbf5760405162461bcd60e51b815260206004820152603760248201527f43726561746f723a20457874656e73696f6e206d75737420696d706c656d656e60448201527f74204943726561746f72457874656e73696f6e42617365000000000000000000606482015260840161084d565b612dca600b856125da565b610ed8576001600160a01b0384166000908152601260205260409020612df19084846145a3565b506001600160a01b038416600081815260136020526040808220805460ff1916851515179055513392917fd8cb8ba4086944eabf43c5535b7712015e4d4c714b24bf812c040ea5b7a3e42a91a3610c33600b85613207565b60006107fd825490565b60006125f88383613ed7565b828114612e9c5760405162461bcd60e51b815260206004820152601a602482015260008051602061552d833981519152604482015260640161084d565b6001600160a01b03851660009081526016602090815260408083206017909252909120612eca91908561395f565b6001600160a01b03851660009081526016602090815260408083206017909252909120612efb919086868686613a3a565b6001600160a01b038516301415612f4e577f2b6849d5976d799a5b0ca4dfd6b40a3d7afe9ea72c091fa01a958594f9a2659b84848484604051612f41949392919061503a565b60405180910390a1610c33565b846001600160a01b03167f535a93d2cb000582c0ebeaa9be4890ec6a287f98eb2df00c54c300612fd78d8f85858585604051612941949392919061503a565b336000908152601260205260409020612fa79084846145a3565b50336000908152601360205260409020805460ff19169115159190911790555050565b6000612fd5826113e8565b9050612fe381600084613cff565b612fee60008361270a565b6001600160a01b03811660009081526007602052604081208054600192906130179084906153d1565b909155505060008281526006602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000818152601160205260409020546001600160a01b03163014613131576000818152601160205260409020546130b8906001600160a01b031663f3f4e68b60e01b613279565b1561313157600081815260116020526040908190205490516311686e4b60e21b81526001600160a01b03848116600483015260248201849052909116906345a1b92c90604401600060405180830381600087803b15801561311857600080fd5b505af115801561312c573d6000803e3d6000fd5b505050505b6000818152601560205260409020805461314a9061542b565b15905061316857600081815260156020526040812061316891614697565b600090815260116020526040902080546001600160a01b031916905550565b6000838152601160205260409020546001600160a01b0316331461286a5760405162461bcd60e51b815260206004820152601a60248201527f43726561746f72436f72653a20496e76616c696420746f6b656e000000000000604482015260640161084d565b336000908152601460205260409020610ab89083836145a3565b60006125f8836001600160a01b038416613f6b565b600a80546000918261322d83615482565b9091555050600a54600081815260116020526040902080546001600160a01b031916301790559050612ce08382613da6565b306000908152601460205260409020610ab89083836145a3565b600061328483613fba565b80156125f857506125f88383613fed565b6132a0848484612ae8565b6132ac848484846140d6565b610ed85760405162461bcd60e51b815260040161084d90615117565b600081815260186020526040812054156132ee5750600090815260186020526040902090565b6000828152601160209081526040808320546001600160a01b0316835260169091529020541561334057506000908152601160209081526040808320546001600160a01b031683526016909152902090565b505030600090815260166020526040902090565b600080613360836132c8565b61336984612778565b91509150915091565b60008060606000613382866132c8565b8054909150600110156133ff576040805162461bcd60e51b81526020600482015260248101919091527f43726561746f72436f72653a204f6e6c7920776f726b7320696620746865726560448201527f20617265206174206d6f7374203120726f79616c747920726563656976657273606482015260840161084d565b805461341257306000935093505061349a565b8060008154811061343357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03166127108661345589612778565b60008154811061347557634e487b7160e01b600052603260045260246000fd5b906000526020600020015461348a91906153b2565b613494919061539e565b93509350505b9250925092565b6000818152601160205260409020546060906001600160a01b03166134c7600d826125da565b156134e45760405162461bcd60e51b815260040161084d90615272565b600083815260156020526040902080546134fd9061542b565b159050613617576001600160a01b038116600090815260146020526040902080546135279061542b565b159050613578576001600160a01b038116600090815260146020908152604080832086845260158352928190209051613561939201614f7e565b604051602081830303815290604052915050919050565b600083815260156020526040902080546135919061542b565b80601f01602080910402602001604051908101604052809291908181526020018280546135bd9061542b565b801561360a5780601f106135df5761010080835404028352916020019161360a565b820191906000526020600020905b8154815290600101906020018083116135ed57829003601f168201915b5050505050915050919050565b6136288163e9dc637560e01b613279565b156136af5760405163e9dc637560e01b8152306004820152602481018490526001600160a01b0382169063e9dc63759060440160006040518083038186803b15801561367357600080fd5b505afa158015613687573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125f89190810190614cd5565b6001600160a01b03811660009081526013602052604090205460ff16613701576001600160a01b03811660009081526012602052604090206136f0846141e3565b604051602001613561929190614f59565b6001600160a01b038116600090815260126020526040902080546135919061542b565b50919050565b613735600b826125da565b1561085f5760405133906001600160a01b038316907fd19cf84cf0fec6bec9ddfa29c63adf83a55707c712f32c8285d6180a7890147990600090a3610e00600b82612d0d565b613786600b836125da565b6137d25760405162461bcd60e51b815260206004820152601e60248201527f43726561746f72436f72653a20496e76616c696420657874656e73696f6e0000604482015260640161084d565b6001600160a01b03811615806137f457506137f481631e05385b60e31b613279565b61384b5760405162461bcd60e51b815260206004820152602260248201527f45524337323143726561746f72436f72653a20496e76616c6964206164647265604482015261737360f01b606482015260840161084d565b6001600160a01b038281166000908152600f6020526040902054811690821614610e00576001600160a01b038281166000818152600f602052604080822080546001600160a01b031916948616948517905551339392917f6a835c4fcf7e0d398db3762332fdaa1471814ad39f1e2d6d0b3fdabf8efee3e091a45050565b60006001600160e01b031982166361f8bcb360e11b14806138ee57506138ee8261256a565b8061390957506001600160e01b03198216635d9dd7eb60e11b145b8061392457506001600160e01b03198216636057361d60e01b145b8061393f57506001600160e01b031982166335681b5360e21b145b806107fd57506001600160e01b03198216636057361d60e01b1492915050565b815483541461399e5760405162461bcd60e51b815260206004820152601a602482015260008051602061552d833981519152604482015260640161084d565b8254811015610ab85782545b81811115610ed857838054806139d057634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190558254839080613a1157634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558080613a3290615414565b9150506139aa565b8454865414613a795760405162461bcd60e51b815260206004820152601a602482015260008051602061552d833981519152604482015260640161084d565b828114613ab65760405162461bcd60e51b815260206004820152601a602482015260008051602061552d833981519152604482015260640161084d565b6000805b84811015613c98578754811015613ba657858582818110613aeb57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190613b00919061476a565b888281548110613b2057634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550838382818110613b6e57634e487b7160e01b600052603260045260246000fd5b90506020020135878281548110613b9557634e487b7160e01b600052603260045260246000fd5b600091825260209091200155613c52565b87868683818110613bc757634e487b7160e01b600052603260045260246000fd5b9050602002016020810190613bdc919061476a565b81546001810183556000928352602090922090910180546001600160a01b0319166001600160a01b0390921691909117905586848483818110613c2f57634e487b7160e01b600052603260045260246000fd5b835460018101855560009485526020948590209190940292909201359190920155505b838382818110613c7257634e487b7160e01b600052603260045260246000fd5b9050602002013582613c849190615386565b915080613c9081615482565b915050613aba565b506127108110613cf65760405162461bcd60e51b8152602060048201526024808201527f43726561746f72436f72653a20496e76616c696420746f74616c20726f79616c6044820152637469657360e01b606482015260840161084d565b50505050505050565b610ab88383836142fc565b336000908152600f60205260409020546001600160a01b031615610e0057336000818152600f602052604090819020549051631e05385b60e31b815260048101929092526001600160a01b03848116602484015260448301849052169063f029c2d890606401600060405180830381600087803b158015613d8a57600080fd5b505af1158015613d9e573d6000803e3d6000fd5b505050505050565b610e00828260405180602001604052806000815250614422565b60008181526001830160205260408120548015613ecd576000613de46001836153d1565b8554909150600090613df8906001906153d1565b90506000866000018281548110613e1f57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110613e5057634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260018901909152604090208490558654879080613e9157634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506107fd565b60009150506107fd565b81546000908210613f355760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161084d565b826000018281548110613f5857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b6000818152600183016020526040812054613fb2575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107fd565b5060006107fd565b6000613fcd826301ffc9a760e01b613fed565b80156107fd5750613fe6826001600160e01b0319613fed565b1592915050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180516001600160e01b03166301ffc9a760e01b179052905160009190829081906001600160a01b0387169061753090614054908690614f3d565b6000604051808303818686fa925050503d8060008114614090576040519150601f19603f3d011682016040523d82523d6000602084013e614095565b606091505b50915091506020815110156140b057600093505050506107fd565b8180156140cc5750808060200190518101906140cc9190614bee565b9695505050505050565b60006001600160a01b0384163b156141d857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061411a903390899088908890600401614f93565b602060405180830381600087803b15801561413457600080fd5b505af1925050508015614164575060408051601f3d908101601f1916820190925261416191810190614c26565b60015b6141be573d808015614192576040519150601f19603f3d011682016040523d82523d6000602084013e614197565b606091505b5080516141b65760405162461bcd60e51b815260040161084d90615117565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612ae0565b506001949350505050565b6060816142075750506040805180820190915260018152600360fc1b602082015290565b8160005b8115614231578061421b81615482565b915061422a9050600a8361539e565b915061420b565b6000816001600160401b0381111561425957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015614283576020820181803683370190505b5090505b8415612ae0576142986001836153d1565b91506142a5600a8661549d565b6142b0906030615386565b60f81b8183815181106142d357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506142f5600a8661539e565b9450614287565b6000818152601160209081526040808320546001600160a01b03168352601090915290205460ff1615610ab85760008181526011602052604090819020549051638258080560e01b81526001600160a01b03858116600483015284811660248301526044820184905290911690638258080590606401602060405180830381600087803b15801561438c57600080fd5b505af11580156143a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143c49190614bee565b610ab85760405162461bcd60e51b815260206004820152602960248201527f45524337323143726561746f723a20457874656e73696f6e20617070726f76616044820152686c206661696c75726560b81b606482015260840161084d565b61442c8383614455565b61443960008484846140d6565b610ab85760405162461bcd60e51b815260040161084d90615117565b6001600160a01b0382166144ab5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161084d565b6000818152600660205260409020546001600160a01b0316156145105760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161084d565b61451c60008383613cff565b6001600160a01b0382166000908152600760205260408120805460019290614545908490615386565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546145af9061542b565b90600052602060002090601f0160209004810192826145d15760008555614617565b82601f106145ea5782800160ff19823516178555614617565b82800160010185558215614617579182015b828111156146175782358255916020019190600101906145fc565b50610fa49291506146cd565b82805461462f9061542b565b90600052602060002090601f0160209004810192826146515760008555614617565b82601f1061466a57805160ff1916838001178555614617565b82800160010185558215614617579182015b8281111561461757825182559160200191906001019061467c565b5080546146a39061542b565b6000825580601f106146b3575050565b601f01602090049060005260206000209081019061085f91905b5b80821115610fa457600081556001016146ce565b60008083601f8401126146f3578182fd5b5081356001600160401b03811115614709578182fd5b6020830191508360208260051b850101111561472457600080fd5b9250929050565b60008083601f84011261473c578182fd5b5081356001600160401b03811115614752578182fd5b60208301915083602082850101111561472457600080fd5b60006020828403121561477b578081fd5b81356125f8816154f3565b60008060408385031215614798578081fd5b82356147a3816154f3565b915060208301356147b3816154f3565b809150509250929050565b6000806000606084860312156147d2578081fd5b83356147dd816154f3565b925060208401356147ed816154f3565b929592945050506040919091013590565b60008060008060808587031215614813578081fd5b843561481e816154f3565b9350602085013561482e816154f3565b92506040850135915060608501356001600160401b0381111561484f578182fd5b8501601f8101871361485f578182fd5b803561487261486d8261535f565b61532f565b818152886020838501011115614886578384fd5b81602084016020830137908101602001929092525092959194509250565b6000806000806000606086880312156148bb578081fd5b85356148c6816154f3565b945060208601356001600160401b03808211156148e1578283fd5b6148ed89838a016146e2565b90965094506040880135915080821115614905578283fd5b50614912888289016146e2565b969995985093965092949392505050565b600080600060408486031215614937578081fd5b8335614942816154f3565b925060208401356001600160401b0381111561495c578182fd5b614968868287016146e2565b9497909650939450505050565b60008060408385031215614987578182fd5b8235614992816154f3565b915060208301356147b381615508565b6000806000604084860312156149b6578081fd5b83356149c1816154f3565b925060208401356001600160401b038111156149db578182fd5b6149688682870161472b565b600080600080606085870312156149fc578182fd5b8435614a07816154f3565b935060208501356001600160401b03811115614a21578283fd5b614a2d8782880161472b565b9094509250506040850135614a4181615508565b939692955090935050565b60008060408385031215614a5e578182fd5b8235614a69816154f3565b9150602083013561ffff811681146147b3578182fd5b60008060408385031215614a91578182fd5b8235614a9c816154f3565b946020939093013593505050565b60008060008060408587031215614abf578182fd5b84356001600160401b0380821115614ad5578384fd5b614ae1888389016146e2565b90965094506020870135915080821115614af9578384fd5b50614b06878288016146e2565b95989497509550505050565b600080600060408486031215614b26578081fd5b83356001600160401b0380821115614b3c578283fd5b818601915086601f830112614b4f578283fd5b8135602082821115614b6357614b636154dd565b8160051b614b7282820161532f565b8381528281019086840183880185018d1015614b8c578889fd5b8897505b85881015614bae578035835260019790970196918401918401614b90565b509850505087013592505080821115614bc5578283fd5b50614968868287016146e2565b600060208284031215614be3578081fd5b81356125f881615508565b600060208284031215614bff578081fd5b81516125f881615508565b600060208284031215614c1b578081fd5b81356125f881615516565b600060208284031215614c37578081fd5b81516125f881615516565b60008060208385031215614c54578182fd5b82356001600160401b03811115614c69578283fd5b614c758582860161472b565b90969095509350505050565b600080600060408486031215614c95578081fd5b83356001600160401b03811115614caa578182fd5b614cb68682870161472b565b9094509250506020840135614cca81615508565b809150509250925092565b600060208284031215614ce6578081fd5b81516001600160401b03811115614cfb578182fd5b8201601f81018413614d0b578182fd5b8051614d1961486d8261535f565b818152856020838501011115614d2d578384fd5b614d3e8260208301602086016153e8565b95945050505050565b600060208284031215614d58578081fd5b5035919050565b600080600080600060608688031215614d76578283fd5b8535945060208601356001600160401b03808211156148e1578485fd5b600080600060408486031215614da7578081fd5b8335925060208401356001600160401b038111156149db578182fd5b60008060008060608587031215614dd8578182fd5b843593506020850135925060408501356001600160401b03811115614dfb578283fd5b614b068782880161472b565b6000815180845260208085019450808401835b83811015614e3f5781516001600160a01b031687529582019590820190600101614e1a565b509495945050505050565b6000815180845260208085019450808401835b83811015614e3f57815187529582019590820190600101614e5d565b60008151808452614e918160208601602086016153e8565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680614ebf57607f831692505b6020808410821415614edf57634e487b7160e01b86526022600452602486fd5b818015614ef35760018114614f0457614f31565b60ff19861689528489019650614f31565b60008881526020902060005b86811015614f295781548b820152908501908301614f10565b505084890196505b50505050505092915050565b60008251614f4f8184602087016153e8565b9190910192915050565b6000614f658285614ea5565b8351614f758183602088016153e8565b01949350505050565b6000612ae0614f8d8386614ea5565b84614ea5565b60006001600160a01b038087168352808616602084015250836040830152608060608301526140cc6080830184614e79565b6001600160a01b0384168152826020820152606060408201526000614d3e6060830184614e79565b6020808252825182820181905260009190848201906040850190845b8181101561502e5783516001600160a01b031683529284019291840191600101615009565b50909695505050505050565b6040808252810184905260008560608301825b8781101561507d578235615060816154f3565b6001600160a01b031682526020928301929091019060010161504d565b5083810360208501528481526001600160fb1b0385111561509c578283fd5b8460051b9150818660208301370160200190815295945050505050565b6020815260006125f86020830184614e07565b6040815260006150df6040830185614e07565b8281036020840152614d3e8185614e4a565b6020815260006125f86020830184614e4a565b6020815260006125f86020830184614e79565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601190820152702737b732bc34b9ba32b73a103a37b5b2b760791b604082015260600190565b60208082526029908201527f43726561746f72436f72653a204d75737420626520726567697374657265642060408201526832bc3a32b739b4b7b760b91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b60208082526022908201527f43726561746f72436f72653a20457874656e73696f6e20626c61636b6c697374604082015261195960f21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000808335601e19843603018112615301578283fd5b8301803591506001600160401b0382111561531a578283fd5b60200191503681900382131561472457600080fd5b604051601f8201601f191681016001600160401b0381118282101715615357576153576154dd565b604052919050565b60006001600160401b03821115615378576153786154dd565b50601f01601f191660200190565b60008219821115615399576153996154b1565b500190565b6000826153ad576153ad6154c7565b500490565b60008160001904831182151516156153cc576153cc6154b1565b500290565b6000828210156153e3576153e36154b1565b500390565b60005b838110156154035781810151838201526020016153eb565b83811115610ed85750506000910152565b600081615423576154236154b1565b506000190190565b600181811c9082168061543f57607f821691505b6020821081141561372457634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415615478576154786154b1565b6001019392505050565b6000600019821415615496576154966154b1565b5060010190565b6000826154ac576154ac6154c7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461085f57600080fd5b801515811461085f57600080fd5b6001600160e01b03198116811461085f57600080fdfe43726561746f72436f72653a20496e76616c696420696e707574000000000000a2646970667358221220d052896c69e66412c04f10d00d0a2b137a16741e7802423cd4098076a228236c64736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103625760003560e01c8063715018a6116101c8578063b0fe87c911610104578063d5a06d4c116100a2578063e985e9c51161007c578063e985e9c51461075f578063f0cdc4991461079b578063f2fde38b146107ae578063fe2e1f58146107c157600080fd5b8063d5a06d4c146106d0578063e00aab4b14610739578063e92a89f61461074c57600080fd5b8063bb3bafd6116100de578063bb3bafd6146106d0578063c155531d146106f1578063c87b56dd14610713578063ce8aee9d1461072657600080fd5b8063b0fe87c91461068a578063b88d4fde1461069d578063b9c4d9fb146106b057600080fd5b80638da5cb5b11610171578063a22cb4651161014b578063a22cb4651461063e578063aafb2d4414610651578063ac0c8cfa14610664578063ad2d0ddd1461067757600080fd5b80638da5cb5b1461061257806395d89b411461062357806399e0dd7c1461062b57600080fd5b80637aa15f16116101a25780637aa15f16146105e457806382dcc0c8146105f757806383b7db631461060a57600080fd5b8063715018a6146105b657806372ff03d3146105be5780637884af44146105d157600080fd5b806330176e13116102a257806342842e0e116102405780636352211e1161021a5780636352211e1461056a57806366d1e9d01461057d5780636d73e6691461059057806370a08231146105a357600080fd5b806342842e0e1461053157806342966c681461054457806361e5bc6b1461055757600080fd5b8063332dd1ae1161027c578063332dd1ae146104e557806338e52e78146104f85780633e6134b81461050b5780633f0f37f61461051e57600080fd5b806330176e13146104aa5780633071a0f9146104bd57806331ae450b146104d057600080fd5b8063162094c41161030f57806323b872dd116102e957806323b872dd1461045057806324d7806c146104635780632928ca58146104765780632d3456701461049757600080fd5b8063162094c41461041757806320e4afe21461042a578063239be3171461043d57600080fd5b8063081812fc11610340578063081812fc146103b9578063095ea7b3146103e45780630ebd4c7f146103f757600080fd5b806301ffc9a71461036757806302e7afb71461038f57806306fdde03146103a4575b600080fd5b61037a610375366004614c0a565b6107d4565b60405190151581526020015b60405180910390f35b6103a261039d36600461476a565b610803565b005b6103ac610862565b6040516103869190615104565b6103cc6103c7366004614d47565b6108f4565b6040516001600160a01b039091168152602001610386565b6103a26103f2366004614a7f565b610989565b61040a610405366004614d47565b610abd565b60405161038691906150f1565b6103a2610425366004614d93565b610b53565b6103a2610438366004614d5f565b610ba8565b6103cc61044b366004614d47565b610c3a565b6103a261045e3660046147be565b610c77565b61037a61047136600461476a565b610ca8565b61048961048436600461476a565b610ce1565b604051908152602001610386565b6103a26104a536600461476a565b610d55565b6103a26104b8366004614c42565b610e04565b6103a26104cb3660046149a2565b610e58565b6104d8610ede565b6040516103869190614fed565b6103a26104f3366004614aaa565b610fa8565b61040a610506366004614923565b610fff565b6103a2610519366004614c42565b611166565b6103a261052c3660046149e7565b611199565b6103a261053f3660046147be565b611218565b6103a2610552366004614d47565b611233565b6103a2610565366004614b12565b6112f1565b6103cc610578366004614d47565b6113e8565b6103a261058b366004614c42565b61145f565b6103a261059e36600461476a565b611490565b6104896105b136600461476a565b61153a565b6103a26115c1565b6104896105cc36600461476a565b611665565b6104896105df3660046149a2565b6116f2565b61040a6105f2366004614923565b6117b2565b6103a2610605366004614c81565b611930565b6104d8611962565b6000546001600160a01b03166103cc565b6103ac611a28565b6103a2610639366004614c42565b611a37565b6103a261064c366004614975565b611a8b565b6103a261065f366004614b12565b611b50565b6103a2610672366004614bd2565b611c6a565b61040a610685366004614a4c565b611db4565b6103a26106983660046148a4565b611ef6565b6103a26106ab3660046147fe565b611f4d565b6106c36106be366004614d47565b611f7f565b60405161038691906150b9565b6106e36106de366004614d47565b61201e565b6040516103869291906150cc565b6107046106ff366004614dc3565b61211a565b60405161038693929190614fc5565b6103ac610721366004614d47565b61216d565b6103a261073436600461476a565b6121ad565b61040a610747366004614a4c565b612200565b6103a261075a366004614d93565b612314565b61037a61076d366004614786565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6103a26107a9366004614786565b612346565b6103a26107bc36600461476a565b61239a565b6104896107cf3660046149a2565b6124b4565b60006107df82612545565b806107ee57506107ee8261256a565b806107fd57506107fd826125a5565b92915050565b336108166000546001600160a01b031690565b6001600160a01b0316148061083157506108316002336125da565b6108565760405162461bcd60e51b815260040161084d9061522e565b60405180910390fd5b61085f816125ff565b50565b6060600480546108719061542b565b80601f016020809104026020016040519081016040528092919081815260200182805461089d9061542b565b80156108ea5780601f106108bf576101008083540402835291602001916108ea565b820191906000526020600020905b8154815290600101906020018083116108cd57829003601f168201915b5050505050905090565b6000818152600660205260408120546001600160a01b031661096d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161084d565b506000908152600860205260409020546001600160a01b031690565b6000610994826113e8565b9050806001600160a01b0316836001600160a01b03161415610a025760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161084d565b336001600160a01b0382161480610a3c57506001600160a01b038116600090815260096020908152604080832033845290915290205460ff165b610aae5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161084d565b610ab8838361270a565b505050565b6000818152600660205260409020546060906001600160a01b0316610af45760405162461bcd60e51b815260040161084d90615169565b610afd82612778565b805480602002602001604051908101604052809291908181526020018280548015610b4757602002820191906000526020600020905b815481526020019060010190808311610b33575b50505050509050919050565b33610b666000546001600160a01b031690565b6001600160a01b03161480610b815750610b816002336125da565b610b9d5760405162461bcd60e51b815260040161084d9061522e565b610ab8838383612804565b33610bbb6000546001600160a01b031690565b6001600160a01b03161480610bd65750610bd66002336125da565b610bf25760405162461bcd60e51b815260040161084d9061522e565b6000858152600660205260409020546001600160a01b0316610c265760405162461bcd60e51b815260040161084d90615169565b610c338585858585612883565b5050505050565b6000818152600660205260408120546001600160a01b0316610c6e5760405162461bcd60e51b815260040161084d90615169565b6107fd82612950565b610c8133826129f1565b610c9d5760405162461bcd60e51b815260040161084d906151dd565b610ab8838383612ae8565b6000816001600160a01b0316610cc66000546001600160a01b031690565b6001600160a01b031614806107fd57506107fd6002836125da565b600060026001541415610d065760405162461bcd60e51b815260040161084d906152b4565b6002600155610d16600b336125da565b610d325760405162461bcd60e51b815260040161084d90615194565b610d4b8260405180602001604052806000815250612c93565b6001805592915050565b6000546001600160a01b03163314610daf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161084d565b610dba6002826125da565b1561085f5760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610e00600282612d0d565b5050565b33610e176000546001600160a01b031690565b6001600160a01b03161480610e325750610e326002336125da565b610e4e5760405162461bcd60e51b815260040161084d9061522e565b610e008282612d22565b33610e6b6000546001600160a01b031690565b6001600160a01b03161480610e865750610e866002336125da565b610ea25760405162461bcd60e51b815260040161084d9061522e565b82610eae600d826125da565b15610ecb5760405162461bcd60e51b815260040161084d90615272565b610ed88484846000612d3c565b50505050565b6060610eea6002612e49565b6001600160401b03811115610f0f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f38578160200160208202803683370190505b50905060005b610f486002612e49565b811015610fa457610f5a600282612e53565b828281518110610f7a57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280610f9c81615482565b915050610f3e565b5090565b33610fbb6000546001600160a01b031690565b6001600160a01b03161480610fd65750610fd66002336125da565b610ff25760405162461bcd60e51b815260040161084d9061522e565b610ed83085858585612e5f565b6060600260015414156110245760405162461bcd60e51b815260040161084d906152b4565b6002600155611034600b336125da565b6110505760405162461bcd60e51b815260040161084d90615194565b816001600160401b0381111561107657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561109f578160200160208202803683370190505b50905060005b8281101561115a5761111d858585848181106110d157634e487b7160e01b600052603260045260246000fd5b90506020028101906110e391906152eb565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612c9392505050565b82828151811061113d57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061115281615482565b9150506110a5565b50600180559392505050565b611171600b336125da565b61118d5760405162461bcd60e51b815260040161084d90615194565b610e0082826000612f8d565b336111ac6000546001600160a01b031690565b6001600160a01b031614806111c757506111c76002336125da565b6111e35760405162461bcd60e51b815260040161084d9061522e565b836111ef600d826125da565b1561120c5760405162461bcd60e51b815260040161084d90615272565b610c3385858585612d3c565b610ab883838360405180602001604052806000815250611f4d565b600260015414156112565760405162461bcd60e51b815260040161084d906152b4565b600260015561126533826129f1565b6112c95760405162461bcd60e51b815260206004820152602f60248201527f45524337323143726561746f723a2063616c6c6572206973206e6f74206f776e60448201526e195c881b9bdc88185c1c1c9bdd9959608a1b606482015260840161084d565b60006112d4826113e8565b90506112df82612fca565b6112e98183613071565b505060018055565b6112fc600b336125da565b6113185760405162461bcd60e51b815260040161084d90615194565b825181146113685760405162461bcd60e51b815260206004820152601c60248201527f45524337323143726561746f723a20496e76616c696420696e70757400000000604482015260640161084d565b60005b8351811015610ed8576113d684828151811061139757634e487b7160e01b600052603260045260246000fd5b60200260200101518484848181106113bf57634e487b7160e01b600052603260045260246000fd5b90506020028101906113d191906152eb565b613187565b806113e081615482565b91505061136b565b6000818152600660205260408120546001600160a01b0316806107fd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161084d565b61146a600b336125da565b6114865760405162461bcd60e51b815260040161084d90615194565b610e0082826131ed565b6000546001600160a01b031633146114ea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161084d565b6114f56002826125da565b61085f5760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610e00600282613207565b60006001600160a01b0382166115a55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161084d565b506001600160a01b031660009081526007602052604090205490565b6000546001600160a01b0316331461161b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161084d565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006002600154141561168a5760405162461bcd60e51b815260040161084d906152b4565b6002600155336116a26000546001600160a01b031690565b6001600160a01b031614806116bd57506116bd6002336125da565b6116d95760405162461bcd60e51b815260040161084d9061522e565b610d4b826040518060200160405280600081525061321c565b6000600260015414156117175760405162461bcd60e51b815260040161084d906152b4565b60026001553361172f6000546001600160a01b031690565b6001600160a01b0316148061174a575061174a6002336125da565b6117665760405162461bcd60e51b815260040161084d9061522e565b6117a68484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061321c92505050565b60018055949350505050565b6060600260015414156117d75760405162461bcd60e51b815260040161084d906152b4565b6002600155336117ef6000546001600160a01b031690565b6001600160a01b0316148061180a575061180a6002336125da565b6118265760405162461bcd60e51b815260040161084d9061522e565b816001600160401b0381111561184c57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611875578160200160208202803683370190505b50905060005b8281101561115a576118f3858585848181106118a757634e487b7160e01b600052603260045260246000fd5b90506020028101906118b991906152eb565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061321c92505050565b82828151811061191357634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061192881615482565b91505061187b565b61193b600b336125da565b6119575760405162461bcd60e51b815260040161084d90615194565b610ab8838383612f8d565b606061196e600b612e49565b6001600160401b0381111561199357634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156119bc578160200160208202803683370190505b50905060005b6119cc600b612e49565b811015610fa4576119de600b82612e53565b8282815181106119fe57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280611a2081615482565b9150506119c2565b6060600580546108719061542b565b33611a4a6000546001600160a01b031690565b6001600160a01b03161480611a655750611a656002336125da565b611a815760405162461bcd60e51b815260040161084d9061522e565b610e00828261325f565b6001600160a01b038216331415611ae45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161084d565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b33611b636000546001600160a01b031690565b6001600160a01b03161480611b7e5750611b7e6002336125da565b611b9a5760405162461bcd60e51b815260040161084d9061522e565b82518114611bea5760405162461bcd60e51b815260206004820152601c60248201527f45524337323143726561746f723a20496e76616c696420696e70757400000000604482015260640161084d565b60005b8351811015610ed857611c58848281518110611c1957634e487b7160e01b600052603260045260246000fd5b6020026020010151848484818110611c4157634e487b7160e01b600052603260045260246000fd5b9050602002810190611c5391906152eb565b612804565b80611c6281615482565b915050611bed565b611c75600b336125da565b611c915760405162461bcd60e51b815260040161084d90615194565b801580611caa5750611caa33634ce6d51160e11b613279565b611d425760405162461bcd60e51b815260206004820152605960248201527f45524337323143726561746f72436f72653a205265717569726573206578746560448201527f6e73696f6e20746f20696d706c656d656e74204945524337323143726561746f60648201527f72457874656e73696f6e417070726f76655472616e7366657200000000000000608482015260a40161084d565b3360009081526010602052604090205460ff1615158115151461085f5733600081815260106020908152604091829020805460ff191685151590811790915591519182527f072a7592283e2c2d1d56d21517ff6013325e0f55483f4828373ff4d98b0a1a36910160405180910390a250565b606060026001541415611dd95760405162461bcd60e51b815260040161084d906152b4565b600260015533611df16000546001600160a01b031690565b6001600160a01b03161480611e0c5750611e0c6002336125da565b611e285760405162461bcd60e51b815260040161084d9061522e565b8161ffff166001600160401b03811115611e5257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611e7b578160200160208202803683370190505b50905060005b8261ffff168161ffff161015611eeb57611eaa846040518060200160405280600081525061321c565b828261ffff1681518110611ece57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611ee381615460565b915050611e81565b506001805592915050565b33611f096000546001600160a01b031690565b6001600160a01b03161480611f245750611f246002336125da565b611f405760405162461bcd60e51b815260040161084d9061522e565b610c338585858585612e5f565b611f5733836129f1565b611f735760405162461bcd60e51b815260040161084d906151dd565b610ed884848484613295565b6000818152600660205260409020546060906001600160a01b0316611fb65760405162461bcd60e51b815260040161084d90615169565b611fbf826132c8565b805480602002602001604051908101604052809291908181526020018280548015610b4757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611ff55750505050509050919050565b606080612042836000908152600660205260409020546001600160a01b0316151590565b61205e5760405162461bcd60e51b815260040161084d90615169565b61206783613354565b8154604080516020808402820181019092528281529184918301828280156120b857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161209a575b505050505091508080548060200260200160405190810160405280929190818152602001828054801561210a57602002820191906000526020600020905b8154815260200190600101908083116120f6575b5050505050905091509150915091565b60008481526006602052604081205481906060906001600160a01b03166121535760405162461bcd60e51b815260040161084d90615169565b61215d8787613372565b9250925092509450945094915050565b6000818152600660205260409020546060906001600160a01b03166121a45760405162461bcd60e51b815260040161084d90615169565b6107fd826134a1565b336121c06000546001600160a01b031690565b6001600160a01b031614806121db57506121db6002336125da565b6121f75760405162461bcd60e51b815260040161084d9061522e565b61085f8161372a565b6060600260015414156122255760405162461bcd60e51b815260040161084d906152b4565b6002600155612235600b336125da565b6122515760405162461bcd60e51b815260040161084d90615194565b8161ffff166001600160401b0381111561227b57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156122a4578160200160208202803683370190505b50905060005b8261ffff168161ffff161015611eeb576122d38460405180602001604052806000815250612c93565b828261ffff16815181106122f757634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061230c81615460565b9150506122aa565b61231f600b336125da565b61233b5760405162461bcd60e51b815260040161084d90615194565b610ab8838383613187565b336123596000546001600160a01b031690565b6001600160a01b0316148061237457506123746002336125da565b6123905760405162461bcd60e51b815260040161084d9061522e565b610e00828261377b565b6000546001600160a01b031633146123f45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161084d565b6001600160a01b0381166124595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161084d565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000600260015414156124d95760405162461bcd60e51b815260040161084d906152b4565b60026001556124e9600b336125da565b6125055760405162461bcd60e51b815260040161084d90615194565b6117a68484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612c9392505050565b60006001600160e01b03198216639088c20760e01b14806107fd57506107fd826138c9565b60006001600160e01b031982166380ac58cd60e01b14806107ee57506001600160e01b03198216635b5e139f60e01b14806107fd57506107fd825b60006001600160e01b03198216632a9f3abf60e11b14806107fd57506301ffc9a760e01b6001600160e01b03198316146107fd565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b6001600160a01b0381163014156126675760405162461bcd60e51b815260206004820152602660248201527f43726561746f72436f72653a2043616e6e6f7420626c61636b6c69737420796f6044820152653ab939b2b63360d11b606482015260840161084d565b612672600b826125da565b156126ba5760405133906001600160a01b038316907fd19cf84cf0fec6bec9ddfa29c63adf83a55707c712f32c8285d6180a7890147990600090a36126b8600b82612d0d565b505b6126c5600d826125da565b61085f5760405133906001600160a01b038316907f05ac7bc5a606cd92a63365f9fda244499b9add0526b22d99937b6bd88181059c90600090a3610e00600d82613207565b600081815260086020526040902080546001600160a01b0319166001600160a01b038416908117909155819061273f826113e8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152601960205260408120541561279e5750600090815260196020526040902090565b6000828152601160209081526040808320546001600160a01b031683526017909152902054156127f057506000908152601160209081526040808320546001600160a01b031683526017909152902090565b505030600090815260176020526040902090565b6000838152601160205260409020546001600160a01b0316301461286a5760405162461bcd60e51b815260206004820152601a60248201527f43726561746f72436f72653a20496e76616c696420746f6b656e000000000000604482015260640161084d565b6000838152601560205260409020610ed89083836145a3565b8281146128c05760405162461bcd60e51b815260206004820152601a602482015260008051602061552d833981519152604482015260640161084d565b600085815260186020908152604080832060199092529091206128e491908561395f565b6000858152601860209081526040808320601990925290912061290b919086868686613a3a565b847fabb46fe0761d77584bde75697647804ffd8113abd4d8d06bc664150395eccdee85858585604051612941949392919061503a565b60405180910390a25050505050565b6000818152601160205260409020546001600160a01b0316308114156129c45760405162461bcd60e51b815260206004820152602360248201527f43726561746f72436f72653a204e6f20657874656e73696f6e20666f7220746f60448201526235b2b760e91b606482015260840161084d565b6129cf600d826125da565b156129ec5760405162461bcd60e51b815260040161084d90615272565b919050565b6000818152600660205260408120546001600160a01b0316612a6a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161084d565b6000612a75836113e8565b9050806001600160a01b0316846001600160a01b03161480612ab05750836001600160a01b0316612aa5846108f4565b6001600160a01b0316145b80612ae057506001600160a01b0380821660009081526009602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612afb826113e8565b6001600160a01b031614612b635760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161084d565b6001600160a01b038216612bc55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161084d565b612bd0838383613cff565b612bdb60008261270a565b6001600160a01b0383166000908152600760205260408120805460019290612c049084906153d1565b90915550506001600160a01b0382166000908152600760205260408120805460019290612c32908490615386565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a805460009182612ca483615482565b9190505550600a549050612cb88382613d0a565b600081815260116020526040902080546001600160a01b03191633179055612ce08382613da6565b815115612d085760008181526015602090815260409091208351612d0692850190614623565b505b6107fd565b60006125f8836001600160a01b038416613dc0565b306000908152601260205260409020610ab89083836145a3565b612d4d84637005caad60e01b613279565b612dbf5760405162461bcd60e51b815260206004820152603760248201527f43726561746f723a20457874656e73696f6e206d75737420696d706c656d656e60448201527f74204943726561746f72457874656e73696f6e42617365000000000000000000606482015260840161084d565b612dca600b856125da565b610ed8576001600160a01b0384166000908152601260205260409020612df19084846145a3565b506001600160a01b038416600081815260136020526040808220805460ff1916851515179055513392917fd8cb8ba4086944eabf43c5535b7712015e4d4c714b24bf812c040ea5b7a3e42a91a3610c33600b85613207565b60006107fd825490565b60006125f88383613ed7565b828114612e9c5760405162461bcd60e51b815260206004820152601a602482015260008051602061552d833981519152604482015260640161084d565b6001600160a01b03851660009081526016602090815260408083206017909252909120612eca91908561395f565b6001600160a01b03851660009081526016602090815260408083206017909252909120612efb919086868686613a3a565b6001600160a01b038516301415612f4e577f2b6849d5976d799a5b0ca4dfd6b40a3d7afe9ea72c091fa01a958594f9a2659b84848484604051612f41949392919061503a565b60405180910390a1610c33565b846001600160a01b03167f535a93d2cb000582c0ebeaa9be4890ec6a287f98eb2df00c54c300612fd78d8f85858585604051612941949392919061503a565b336000908152601260205260409020612fa79084846145a3565b50336000908152601360205260409020805460ff19169115159190911790555050565b6000612fd5826113e8565b9050612fe381600084613cff565b612fee60008361270a565b6001600160a01b03811660009081526007602052604081208054600192906130179084906153d1565b909155505060008281526006602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000818152601160205260409020546001600160a01b03163014613131576000818152601160205260409020546130b8906001600160a01b031663f3f4e68b60e01b613279565b1561313157600081815260116020526040908190205490516311686e4b60e21b81526001600160a01b03848116600483015260248201849052909116906345a1b92c90604401600060405180830381600087803b15801561311857600080fd5b505af115801561312c573d6000803e3d6000fd5b505050505b6000818152601560205260409020805461314a9061542b565b15905061316857600081815260156020526040812061316891614697565b600090815260116020526040902080546001600160a01b031916905550565b6000838152601160205260409020546001600160a01b0316331461286a5760405162461bcd60e51b815260206004820152601a60248201527f43726561746f72436f72653a20496e76616c696420746f6b656e000000000000604482015260640161084d565b336000908152601460205260409020610ab89083836145a3565b60006125f8836001600160a01b038416613f6b565b600a80546000918261322d83615482565b9091555050600a54600081815260116020526040902080546001600160a01b031916301790559050612ce08382613da6565b306000908152601460205260409020610ab89083836145a3565b600061328483613fba565b80156125f857506125f88383613fed565b6132a0848484612ae8565b6132ac848484846140d6565b610ed85760405162461bcd60e51b815260040161084d90615117565b600081815260186020526040812054156132ee5750600090815260186020526040902090565b6000828152601160209081526040808320546001600160a01b0316835260169091529020541561334057506000908152601160209081526040808320546001600160a01b031683526016909152902090565b505030600090815260166020526040902090565b600080613360836132c8565b61336984612778565b91509150915091565b60008060606000613382866132c8565b8054909150600110156133ff576040805162461bcd60e51b81526020600482015260248101919091527f43726561746f72436f72653a204f6e6c7920776f726b7320696620746865726560448201527f20617265206174206d6f7374203120726f79616c747920726563656976657273606482015260840161084d565b805461341257306000935093505061349a565b8060008154811061343357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03166127108661345589612778565b60008154811061347557634e487b7160e01b600052603260045260246000fd5b906000526020600020015461348a91906153b2565b613494919061539e565b93509350505b9250925092565b6000818152601160205260409020546060906001600160a01b03166134c7600d826125da565b156134e45760405162461bcd60e51b815260040161084d90615272565b600083815260156020526040902080546134fd9061542b565b159050613617576001600160a01b038116600090815260146020526040902080546135279061542b565b159050613578576001600160a01b038116600090815260146020908152604080832086845260158352928190209051613561939201614f7e565b604051602081830303815290604052915050919050565b600083815260156020526040902080546135919061542b565b80601f01602080910402602001604051908101604052809291908181526020018280546135bd9061542b565b801561360a5780601f106135df5761010080835404028352916020019161360a565b820191906000526020600020905b8154815290600101906020018083116135ed57829003601f168201915b5050505050915050919050565b6136288163e9dc637560e01b613279565b156136af5760405163e9dc637560e01b8152306004820152602481018490526001600160a01b0382169063e9dc63759060440160006040518083038186803b15801561367357600080fd5b505afa158015613687573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125f89190810190614cd5565b6001600160a01b03811660009081526013602052604090205460ff16613701576001600160a01b03811660009081526012602052604090206136f0846141e3565b604051602001613561929190614f59565b6001600160a01b038116600090815260126020526040902080546135919061542b565b50919050565b613735600b826125da565b1561085f5760405133906001600160a01b038316907fd19cf84cf0fec6bec9ddfa29c63adf83a55707c712f32c8285d6180a7890147990600090a3610e00600b82612d0d565b613786600b836125da565b6137d25760405162461bcd60e51b815260206004820152601e60248201527f43726561746f72436f72653a20496e76616c696420657874656e73696f6e0000604482015260640161084d565b6001600160a01b03811615806137f457506137f481631e05385b60e31b613279565b61384b5760405162461bcd60e51b815260206004820152602260248201527f45524337323143726561746f72436f72653a20496e76616c6964206164647265604482015261737360f01b606482015260840161084d565b6001600160a01b038281166000908152600f6020526040902054811690821614610e00576001600160a01b038281166000818152600f602052604080822080546001600160a01b031916948616948517905551339392917f6a835c4fcf7e0d398db3762332fdaa1471814ad39f1e2d6d0b3fdabf8efee3e091a45050565b60006001600160e01b031982166361f8bcb360e11b14806138ee57506138ee8261256a565b8061390957506001600160e01b03198216635d9dd7eb60e11b145b8061392457506001600160e01b03198216636057361d60e01b145b8061393f57506001600160e01b031982166335681b5360e21b145b806107fd57506001600160e01b03198216636057361d60e01b1492915050565b815483541461399e5760405162461bcd60e51b815260206004820152601a602482015260008051602061552d833981519152604482015260640161084d565b8254811015610ab85782545b81811115610ed857838054806139d057634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190558254839080613a1157634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558080613a3290615414565b9150506139aa565b8454865414613a795760405162461bcd60e51b815260206004820152601a602482015260008051602061552d833981519152604482015260640161084d565b828114613ab65760405162461bcd60e51b815260206004820152601a602482015260008051602061552d833981519152604482015260640161084d565b6000805b84811015613c98578754811015613ba657858582818110613aeb57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190613b00919061476a565b888281548110613b2057634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550838382818110613b6e57634e487b7160e01b600052603260045260246000fd5b90506020020135878281548110613b9557634e487b7160e01b600052603260045260246000fd5b600091825260209091200155613c52565b87868683818110613bc757634e487b7160e01b600052603260045260246000fd5b9050602002016020810190613bdc919061476a565b81546001810183556000928352602090922090910180546001600160a01b0319166001600160a01b0390921691909117905586848483818110613c2f57634e487b7160e01b600052603260045260246000fd5b835460018101855560009485526020948590209190940292909201359190920155505b838382818110613c7257634e487b7160e01b600052603260045260246000fd5b9050602002013582613c849190615386565b915080613c9081615482565b915050613aba565b506127108110613cf65760405162461bcd60e51b8152602060048201526024808201527f43726561746f72436f72653a20496e76616c696420746f74616c20726f79616c6044820152637469657360e01b606482015260840161084d565b50505050505050565b610ab88383836142fc565b336000908152600f60205260409020546001600160a01b031615610e0057336000818152600f602052604090819020549051631e05385b60e31b815260048101929092526001600160a01b03848116602484015260448301849052169063f029c2d890606401600060405180830381600087803b158015613d8a57600080fd5b505af1158015613d9e573d6000803e3d6000fd5b505050505050565b610e00828260405180602001604052806000815250614422565b60008181526001830160205260408120548015613ecd576000613de46001836153d1565b8554909150600090613df8906001906153d1565b90506000866000018281548110613e1f57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110613e5057634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260018901909152604090208490558654879080613e9157634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506107fd565b60009150506107fd565b81546000908210613f355760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161084d565b826000018281548110613f5857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b6000818152600183016020526040812054613fb2575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107fd565b5060006107fd565b6000613fcd826301ffc9a760e01b613fed565b80156107fd5750613fe6826001600160e01b0319613fed565b1592915050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180516001600160e01b03166301ffc9a760e01b179052905160009190829081906001600160a01b0387169061753090614054908690614f3d565b6000604051808303818686fa925050503d8060008114614090576040519150601f19603f3d011682016040523d82523d6000602084013e614095565b606091505b50915091506020815110156140b057600093505050506107fd565b8180156140cc5750808060200190518101906140cc9190614bee565b9695505050505050565b60006001600160a01b0384163b156141d857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061411a903390899088908890600401614f93565b602060405180830381600087803b15801561413457600080fd5b505af1925050508015614164575060408051601f3d908101601f1916820190925261416191810190614c26565b60015b6141be573d808015614192576040519150601f19603f3d011682016040523d82523d6000602084013e614197565b606091505b5080516141b65760405162461bcd60e51b815260040161084d90615117565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612ae0565b506001949350505050565b6060816142075750506040805180820190915260018152600360fc1b602082015290565b8160005b8115614231578061421b81615482565b915061422a9050600a8361539e565b915061420b565b6000816001600160401b0381111561425957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015614283576020820181803683370190505b5090505b8415612ae0576142986001836153d1565b91506142a5600a8661549d565b6142b0906030615386565b60f81b8183815181106142d357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506142f5600a8661539e565b9450614287565b6000818152601160209081526040808320546001600160a01b03168352601090915290205460ff1615610ab85760008181526011602052604090819020549051638258080560e01b81526001600160a01b03858116600483015284811660248301526044820184905290911690638258080590606401602060405180830381600087803b15801561438c57600080fd5b505af11580156143a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143c49190614bee565b610ab85760405162461bcd60e51b815260206004820152602960248201527f45524337323143726561746f723a20457874656e73696f6e20617070726f76616044820152686c206661696c75726560b81b606482015260840161084d565b61442c8383614455565b61443960008484846140d6565b610ab85760405162461bcd60e51b815260040161084d90615117565b6001600160a01b0382166144ab5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161084d565b6000818152600660205260409020546001600160a01b0316156145105760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161084d565b61451c60008383613cff565b6001600160a01b0382166000908152600760205260408120805460019290614545908490615386565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546145af9061542b565b90600052602060002090601f0160209004810192826145d15760008555614617565b82601f106145ea5782800160ff19823516178555614617565b82800160010185558215614617579182015b828111156146175782358255916020019190600101906145fc565b50610fa49291506146cd565b82805461462f9061542b565b90600052602060002090601f0160209004810192826146515760008555614617565b82601f1061466a57805160ff1916838001178555614617565b82800160010185558215614617579182015b8281111561461757825182559160200191906001019061467c565b5080546146a39061542b565b6000825580601f106146b3575050565b601f01602090049060005260206000209081019061085f91905b5b80821115610fa457600081556001016146ce565b60008083601f8401126146f3578182fd5b5081356001600160401b03811115614709578182fd5b6020830191508360208260051b850101111561472457600080fd5b9250929050565b60008083601f84011261473c578182fd5b5081356001600160401b03811115614752578182fd5b60208301915083602082850101111561472457600080fd5b60006020828403121561477b578081fd5b81356125f8816154f3565b60008060408385031215614798578081fd5b82356147a3816154f3565b915060208301356147b3816154f3565b809150509250929050565b6000806000606084860312156147d2578081fd5b83356147dd816154f3565b925060208401356147ed816154f3565b929592945050506040919091013590565b60008060008060808587031215614813578081fd5b843561481e816154f3565b9350602085013561482e816154f3565b92506040850135915060608501356001600160401b0381111561484f578182fd5b8501601f8101871361485f578182fd5b803561487261486d8261535f565b61532f565b818152886020838501011115614886578384fd5b81602084016020830137908101602001929092525092959194509250565b6000806000806000606086880312156148bb578081fd5b85356148c6816154f3565b945060208601356001600160401b03808211156148e1578283fd5b6148ed89838a016146e2565b90965094506040880135915080821115614905578283fd5b50614912888289016146e2565b969995985093965092949392505050565b600080600060408486031215614937578081fd5b8335614942816154f3565b925060208401356001600160401b0381111561495c578182fd5b614968868287016146e2565b9497909650939450505050565b60008060408385031215614987578182fd5b8235614992816154f3565b915060208301356147b381615508565b6000806000604084860312156149b6578081fd5b83356149c1816154f3565b925060208401356001600160401b038111156149db578182fd5b6149688682870161472b565b600080600080606085870312156149fc578182fd5b8435614a07816154f3565b935060208501356001600160401b03811115614a21578283fd5b614a2d8782880161472b565b9094509250506040850135614a4181615508565b939692955090935050565b60008060408385031215614a5e578182fd5b8235614a69816154f3565b9150602083013561ffff811681146147b3578182fd5b60008060408385031215614a91578182fd5b8235614a9c816154f3565b946020939093013593505050565b60008060008060408587031215614abf578182fd5b84356001600160401b0380821115614ad5578384fd5b614ae1888389016146e2565b90965094506020870135915080821115614af9578384fd5b50614b06878288016146e2565b95989497509550505050565b600080600060408486031215614b26578081fd5b83356001600160401b0380821115614b3c578283fd5b818601915086601f830112614b4f578283fd5b8135602082821115614b6357614b636154dd565b8160051b614b7282820161532f565b8381528281019086840183880185018d1015614b8c578889fd5b8897505b85881015614bae578035835260019790970196918401918401614b90565b509850505087013592505080821115614bc5578283fd5b50614968868287016146e2565b600060208284031215614be3578081fd5b81356125f881615508565b600060208284031215614bff578081fd5b81516125f881615508565b600060208284031215614c1b578081fd5b81356125f881615516565b600060208284031215614c37578081fd5b81516125f881615516565b60008060208385031215614c54578182fd5b82356001600160401b03811115614c69578283fd5b614c758582860161472b565b90969095509350505050565b600080600060408486031215614c95578081fd5b83356001600160401b03811115614caa578182fd5b614cb68682870161472b565b9094509250506020840135614cca81615508565b809150509250925092565b600060208284031215614ce6578081fd5b81516001600160401b03811115614cfb578182fd5b8201601f81018413614d0b578182fd5b8051614d1961486d8261535f565b818152856020838501011115614d2d578384fd5b614d3e8260208301602086016153e8565b95945050505050565b600060208284031215614d58578081fd5b5035919050565b600080600080600060608688031215614d76578283fd5b8535945060208601356001600160401b03808211156148e1578485fd5b600080600060408486031215614da7578081fd5b8335925060208401356001600160401b038111156149db578182fd5b60008060008060608587031215614dd8578182fd5b843593506020850135925060408501356001600160401b03811115614dfb578283fd5b614b068782880161472b565b6000815180845260208085019450808401835b83811015614e3f5781516001600160a01b031687529582019590820190600101614e1a565b509495945050505050565b6000815180845260208085019450808401835b83811015614e3f57815187529582019590820190600101614e5d565b60008151808452614e918160208601602086016153e8565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680614ebf57607f831692505b6020808410821415614edf57634e487b7160e01b86526022600452602486fd5b818015614ef35760018114614f0457614f31565b60ff19861689528489019650614f31565b60008881526020902060005b86811015614f295781548b820152908501908301614f10565b505084890196505b50505050505092915050565b60008251614f4f8184602087016153e8565b9190910192915050565b6000614f658285614ea5565b8351614f758183602088016153e8565b01949350505050565b6000612ae0614f8d8386614ea5565b84614ea5565b60006001600160a01b038087168352808616602084015250836040830152608060608301526140cc6080830184614e79565b6001600160a01b0384168152826020820152606060408201526000614d3e6060830184614e79565b6020808252825182820181905260009190848201906040850190845b8181101561502e5783516001600160a01b031683529284019291840191600101615009565b50909695505050505050565b6040808252810184905260008560608301825b8781101561507d578235615060816154f3565b6001600160a01b031682526020928301929091019060010161504d565b5083810360208501528481526001600160fb1b0385111561509c578283fd5b8460051b9150818660208301370160200190815295945050505050565b6020815260006125f86020830184614e07565b6040815260006150df6040830185614e07565b8281036020840152614d3e8185614e4a565b6020815260006125f86020830184614e4a565b6020815260006125f86020830184614e79565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601190820152702737b732bc34b9ba32b73a103a37b5b2b760791b604082015260600190565b60208082526029908201527f43726561746f72436f72653a204d75737420626520726567697374657265642060408201526832bc3a32b739b4b7b760b91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b60208082526022908201527f43726561746f72436f72653a20457874656e73696f6e20626c61636b6c697374604082015261195960f21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000808335601e19843603018112615301578283fd5b8301803591506001600160401b0382111561531a578283fd5b60200191503681900382131561472457600080fd5b604051601f8201601f191681016001600160401b0381118282101715615357576153576154dd565b604052919050565b60006001600160401b03821115615378576153786154dd565b50601f01601f191660200190565b60008219821115615399576153996154b1565b500190565b6000826153ad576153ad6154c7565b500490565b60008160001904831182151516156153cc576153cc6154b1565b500290565b6000828210156153e3576153e36154b1565b500390565b60005b838110156154035781810151838201526020016153eb565b83811115610ed85750506000910152565b600081615423576154236154b1565b506000190190565b600181811c9082168061543f57607f821691505b6020821081141561372457634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415615478576154786154b1565b6001019392505050565b6000600019821415615496576154966154b1565b5060010190565b6000826154ac576154ac6154c7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461085f57600080fd5b801515811461085f57600080fd5b6001600160e01b03198116811461085f57600080fdfe43726561746f72436f72653a20496e76616c696420696e707574000000000000a2646970667358221220d052896c69e66412c04f10d00d0a2b137a16741e7802423cd4098076a228236c64736f6c63430008040033

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.