ETH Price: $3,386.33 (-1.61%)
Gas: 2 Gwei

Token

Metamorphosis (MORPH)
 

Overview

Max Total Supply

0 MORPH

Holders

3,922

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 MORPH
0xfbf84849894f848fca51f61a72bc1571eaed6731
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Metamorphosis

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 300 runs

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

pragma solidity ^0.8.0;

/// @creator: Pak
/// @author: manifold.xyz

import "@manifoldxyz/libraries-solidity/contracts/access/AdminControl.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

///////////////////////////////////////////////////////////////////////////////////////////////////
//   _____  _____  _____  _____  _____  _____  _____                                             //
//  |     ||  |  ||  _  ||  _  ||_   _||   __|| __  |                                            //
//  |   --||     ||     ||   __|  | |  |   __||    -|                                            //
//  |_____||__|__||__|__||__|     |_|  |_____||__|__|                                            //
//   _____  _ _ _  _____                                                                         //
//  |_   _|| | | ||     |                                                                        //
//    | |  | | | ||  |  |                                                                        //
//    |_|  |_____||_____|                                                                        //
//   _____  _____  _____  _____  _____  _____  _____  _____  _____  _____  _____  _____  _____   //
//  |     ||   __||_   _||  _  ||     ||     || __  ||  _  ||  |  ||     ||   __||     ||   __|  //
//  | | | ||   __|  | |  |     || | | ||  |  ||    -||   __||     ||  |  ||__   ||-   -||__   |  //
//  |_|_|_||_____|  |_|  |__|__||_|_|_||_____||__|__||__|   |__|__||_____||_____||_____||_____|  //
//                                                                                               //
///////////////////////////////////////////////////////////////////////////////////////////////////

contract Metamorphosis is AdminControl, ERC721 {

    using Strings for uint256;

    struct Creator {
        address address_;
        bool signed;
        uint32 editions;
        uint32 total;
        string name;
    }

    struct CreatorNFT {
        string name;
        string description;
        string imageURI;
        string animationURI;
    }

    struct CreatorNFTConfig {
      address creator;
      CreatorNFT nft;
    }

    // URI tags and data
    string constant private _NAME_TAG = '<NAME>';
    string constant private _DESCRIPTION_TAG = '<DESCRIPTION>';
    string constant private _CREATOR_TAG = '<CREATOR>';
    string constant private _EDITION_TAG = '<EDITION>';
    string constant private _TOTAL_TAG = '<TOTAL>';
    string constant private _IMAGE_TAG = '<IMAGE>';
    string constant private _ANIMATION_TAG = '<ANIMATION>';
    string constant private _FORM_TAG = '<FORM>';
    string[] private _uriParts;
    bool private _transferLock;

    // Marketplace configuration
    address private _marketplace;
    uint256 private _listingId;
    bytes4 private constant _INTERFACE_MARKETPLACE_LAZY_DELIVERY = 0xc83afbd0;
    string private _assetURI;

    // Token configuration
    uint256 public MAX_TOKENS;
    uint256 public constant CREATOR_TOKENS = 10;
    uint256 public constant CREATOR_MAX_TOKENS = 250;
    uint256 public MAX_PURCHASE;
    uint256 public MAX_FORM;
    uint256 private _mintCount;
    
    Creator[] private _creators;
    // tokenId -> form
    mapping(uint256 => uint256) private _tokenForm;
    // form -> creatorIndex -> CreatorNFT
    mapping(uint256 => mapping(uint256 => CreatorNFT)) private _creatorNFTs;

    bool private _activated;

    uint256 private _royaltyBps;
    address payable private _royaltyRecipient;
    bytes4 private constant _INTERFACE_ID_ROYALTIES_CREATORCORE = 0xbb3bafd6;
    bytes4 private constant _INTERFACE_ID_ROYALTIES_EIP2981 = 0x2a55205a;
    bytes4 private constant _INTERFACE_ID_ROYALTIES_RARIBLE = 0xb7799584;

    constructor() ERC721("Metamorphosis", "MORPH") {
        _uriParts = [
            'data:application/json;utf8,{"name":"',_NAME_TAG,' #',_EDITION_TAG,'", "description":"',_DESCRIPTION_TAG,
            '", "created_by":"',_CREATOR_TAG,'", "image":"',_IMAGE_TAG,'", "animation_url":"',_ANIMATION_TAG,
            '", "attributes":[{"trait_type":"Collection","value":"Metamorphosis"},',
            '{"trait_type":"Creator","value":"',_CREATOR_TAG,'"},{"trait_type":"Form","value":"',_FORM_TAG,'"}]}'
        ];
        _transferLock = true;
    }

    /**
     * View list of all creators
     */
    function creators() external view returns(Creator[] memory) {
        return _creators;
    }

    /**
     * Set participating creators
     */
    function setCreators(Creator[] memory creators_) external adminRequired {
        require(!_activated, "Cannot set creators after activation");
        delete _creators;
        for (uint i; i < creators_.length; i++) {
            Creator memory creator = creators_[i];
            require(!creator.signed, "signed must be false");
            require(creator.editions == 0 && creator.total == 0, "edition and total must be 0");
            _creators.push(creator);
        }
    }

    /**
     * Update nft configuration
     */
    function configureNFTs(uint256 form, CreatorNFTConfig[] memory nftConfigs) external adminRequired {
        for (uint i; i < nftConfigs.length; i++) {
            CreatorNFTConfig memory nftConfig = nftConfigs[i];
            bool found = false;
            uint creatorIndex;
            for (uint j; j < _creators.length; j++) {
              if (_creators[j].address_ == nftConfig.creator) {
                found = true;
                creatorIndex = j;
                break;
              }
            }
            require(found, "Creator does not exist");
            _creatorNFTs[form][creatorIndex] = nftConfig.nft;
        }
    }

    /**
     * Sign the collection as an creator. Mints the first NFT to them
     */
    function sign() external {
        require(_activated, "Not activated");
        bool found = false;
        for (uint i; i < _creators.length; i++) {
            if (_creators[i].address_ == msg.sender) {
                require(!_creators[i].signed, "You have already signed");
                found = true;
                _creators[i].signed = true;
                for (uint j; j < CREATOR_TOKENS; j++) {
                    uint256 tokenId = i*CREATOR_MAX_TOKENS+j+1;
                    _mint(msg.sender, tokenId);
                }
                break;
            }
        }
        require(found, "You are not an creator");
    }

    /**
     * Activate the sale
     */
    function activate(uint256 maxPurchase, uint256 maxForm) external adminRequired {
        require(!_activated, "Already activated");
        for (uint i; i < _creators.length; i++) {
            Creator storage creator = _creators[i];
            creator.editions = uint32(CREATOR_TOKENS);
            creator.total = uint32(CREATOR_TOKENS);
        }
        MAX_TOKENS = CREATOR_MAX_TOKENS*_creators.length;
        _mintCount = CREATOR_TOKENS*_creators.length;
        MAX_PURCHASE = maxPurchase;
        MAX_FORM = maxForm;
        _activated = true;        
    }

    /**
     * Set the max form
     */
    function setMaxForm(uint256 maxForm) external adminRequired {
        MAX_FORM = maxForm;
    }

    /**
     * Mint an NFT
     */
    function _mintNFT(address recipient, uint256 creatorIndex) private returns (uint256) {
        Creator storage creator = _creators[creatorIndex];
        address creatorAddress = creator.address_;
        creator.editions++;
        creator.total++;
        uint256 tokenId = creatorIndex*CREATOR_MAX_TOKENS+creator.editions;
        _mintCount++;
        _mint(creatorAddress, tokenId);
        if (creatorAddress != recipient) {
            _transfer(creatorAddress, recipient, tokenId);
        }
        return tokenId;
    }

    /**
     * @dev Set the listing
     */
    function setListing(address marketplace, uint256 listingId) external adminRequired {
        require(_activated, "Not activated");
        _marketplace = marketplace;
        _listingId = listingId;
    }

    /**
     * @dev Set the asset uri for unsold item
     */
    function setAssetURI(string calldata uri) external adminRequired {
        _assetURI = uri;
    }

    /**
     * @dev Return asset data for a marketplace sale
     */
    function assetURI(uint256 assetId) external view returns(string memory) {
        require(assetId == 1, "Invalid asset");
        return _assetURI;
    }

    function updateTokenURIParts(string[] memory uriParts) external adminRequired {
        _uriParts = uriParts;
    }

    /**
     * @dev Deliver token from a marketplace sale
     */
    function deliver(address, uint256 listingId, uint256 assetId, address to, uint256, uint256 index) external returns(uint256) {
        require(msg.sender == _marketplace && listingId == _listingId && assetId == 1 && index == 0, "Invalid call data");
        require(_mintCount + 1 <= MAX_TOKENS && (to == owner() || balanceOf(to) + 1 <= MAX_PURCHASE), "Too many requested");
        uint256 creatorCount = _creators.length;
        uint256 startIndex = uint256(keccak256(abi.encodePacked(block.difficulty, block.timestamp, _mintCount))) % creatorCount;
        uint256 creatorIndex = startIndex;
        bool minted = false;
        uint256 tokenId;
        do {
           if (_creators[creatorIndex].editions < CREATOR_MAX_TOKENS) {
              tokenId = _mintNFT(to, creatorIndex);
              minted = true;
              break;
           }
           creatorIndex = (creatorIndex + 1) % creatorCount;
        } while (creatorIndex != startIndex);

        require(minted, "Error minting token");
        return 0;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        uint256 creatorIndex = tokenId / CREATOR_MAX_TOKENS;
        CreatorNFT memory creatorNFT = _creatorNFTs[_tokenForm[tokenId]][creatorIndex];
        Creator memory creator = _creators[creatorIndex];
        bytes memory byteString;
        for (uint i; i < _uriParts.length; i++) {
            if (_checkTag(_uriParts[i], _NAME_TAG)) {
                byteString = abi.encodePacked(byteString, creatorNFT.name);
            } else if (_checkTag(_uriParts[i], _DESCRIPTION_TAG)) {
                byteString = abi.encodePacked(byteString, creatorNFT.description);
            } else if (_checkTag(_uriParts[i], _CREATOR_TAG)) {
                byteString = abi.encodePacked(byteString, creator.name);
            } else if (_checkTag(_uriParts[i], _IMAGE_TAG)) {
                byteString = abi.encodePacked(byteString, creatorNFT.imageURI);
            } else if (_checkTag(_uriParts[i], _ANIMATION_TAG)) {
                byteString = abi.encodePacked(byteString, creatorNFT.animationURI);
            } else if (_checkTag(_uriParts[i], _FORM_TAG)) {
                byteString = abi.encodePacked(byteString, (_tokenForm[tokenId]+1).toString());
            } else if (_checkTag(_uriParts[i], _EDITION_TAG)) {
                byteString = abi.encodePacked(byteString, (tokenId-creatorIndex*CREATOR_MAX_TOKENS).toString());
             } else if (_checkTag(_uriParts[i], _TOTAL_TAG)) {
                byteString = abi.encodePacked(byteString, uint256(_creators[creatorIndex].total).toString());
            } else {
                byteString = abi.encodePacked(byteString, _uriParts[i]);
            }
        }
        return string(byteString);
    }

    function _checkTag(string storage a, string memory b) private pure returns (bool) {
        return (keccak256(abi.encodePacked((a))) == keccak256(abi.encodePacked((b))));
    }

    function setTransferLock(bool lock) public adminRequired {
        _transferLock = lock;
    }

    /**
     * @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");
        require(!_transferLock, "ERC721: transfer not permitted");
        _transfer(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");
        require(!_transferLock, "ERC721: transfer not permitted");
        _safeTransfer(from, to, tokenId, _data);
    }

    function _transfer(address from, address to, uint256 tokenId) internal virtual override {
        if (to == address(0xdead)) {
            _burn(tokenId);
        } else {
            super._transfer(from, to, tokenId);
        }
    }

    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        require(!_transferLock, "ERC721: transfer not permitted");
        _burn(tokenId);
    }

    function _burn(uint256 tokenId) internal virtual override {
        _creators[tokenId / CREATOR_MAX_TOKENS].total--;
        delete _tokenForm[tokenId];
        super._burn(tokenId);
    }

    /**
     * Get token form
     */
    function tokenForm(uint256 tokenId) external view returns (uint256) {
        require(_exists(tokenId), "ERC721Metadata: query for nonexistent token");
        return _tokenForm[tokenId]+1;
    }

    /**
     * Get total count for a given token
    */
    function tokenTotalCount(uint256 tokenId) external view returns (uint256) {
        require(_exists(tokenId), "ERC721Metadata: query for nonexistent token");
        return _creators[tokenId / CREATOR_MAX_TOKENS].total;
    }

    /**
     * Morph a token
     */
    function morph(uint256 tokenId, uint256[] calldata burnedTokenIds) external {
        require(!_transferLock, "Morph not permitted");
        require(burnedTokenIds.length == 4, "Insufficient tokens");
        address tokenOwner = ownerOf(tokenId);
        require(msg.sender == tokenOwner, "Must be token owner");
        uint256 currentForm = _tokenForm[tokenId];
        require(currentForm+1 < MAX_FORM, "Max form reached");
        for (uint i; i < burnedTokenIds.length; i++) {
            uint256 burnedTokenId = burnedTokenIds[i];
            require(tokenId != burnedTokenId && ownerOf(burnedTokenId) == msg.sender && _tokenForm[burnedTokenId] >= currentForm, "Invalid token to burn");
            for (uint j=i+1; j < burnedTokenIds.length; j++) {
                require(burnedTokenId != burnedTokenIds[j], "Cannot have duplicate tokens");
            }
            _burn(burnedTokenId);
        }
        _tokenForm[tokenId]++;
    }
    
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(AdminControl, ERC721) returns (bool) {
        return ERC721.supportsInterface(interfaceId) || AdminControl.supportsInterface(interfaceId) 
            || interfaceId == _INTERFACE_ID_ROYALTIES_CREATORCORE || interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981 
            || interfaceId == _INTERFACE_ID_ROYALTIES_RARIBLE || interfaceId == _INTERFACE_MARKETPLACE_LAZY_DELIVERY;
    }

    /**
     * ROYALTY FUNCTIONS
     */    
    function updateRoyalties(address payable recipient, uint256 bps) external adminRequired {
        _royaltyRecipient = recipient;
        _royaltyBps = bps;
    }

    function getRoyalties(uint256) external view returns (address payable[] memory recipients, uint256[] memory bps) {
        if (_royaltyRecipient != address(0x0)) {
            recipients = new address payable[](1);
            recipients[0] = _royaltyRecipient;
            bps = new uint256[](1);
            bps[0] = _royaltyBps;
        }
        return (recipients, bps);
    }

    function getFeeRecipients(uint256) external view returns (address payable[] memory recipients) {
        if (_royaltyRecipient != address(0x0)) {
            recipients = new address payable[](1);
            recipients[0] = _royaltyRecipient;
        }
        return recipients;
    }

    function getFeeBps(uint256) external view returns (uint[] memory bps) {
        if (_royaltyRecipient != address(0x0)) {
            bps = new uint256[](1);
            bps[0] = _royaltyBps;
        }
        return bps;
    }

    function royaltyInfo(uint256, uint256 value) external view returns (address, uint256) {
        return (_royaltyRecipient, value*_royaltyBps/10000);
    }

}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 14 : 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 12 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 13 of 14 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

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;

            if (lastIndex != toDeleteIndex) {
                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) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 14 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CREATOR_MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CREATOR_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FORM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PURCHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPurchase","type":"uint256"},{"internalType":"uint256","name":"maxForm","type":"uint256"}],"name":"activate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"approveAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"assetURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"form","type":"uint256"},{"components":[{"internalType":"address","name":"creator","type":"address"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"imageURI","type":"string"},{"internalType":"string","name":"animationURI","type":"string"}],"internalType":"struct Metamorphosis.CreatorNFT","name":"nft","type":"tuple"}],"internalType":"struct Metamorphosis.CreatorNFTConfig[]","name":"nftConfigs","type":"tuple[]"}],"name":"configureNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"creators","outputs":[{"components":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"bool","name":"signed","type":"bool"},{"internalType":"uint32","name":"editions","type":"uint32"},{"internalType":"uint32","name":"total","type":"uint32"},{"internalType":"string","name":"name","type":"string"}],"internalType":"struct Metamorphosis.Creator[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"listingId","type":"uint256"},{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"deliver","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getRoyalties","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"bps","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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256[]","name":"burnedTokenIds","type":"uint256[]"}],"name":"morph","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setAssetURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"bool","name":"signed","type":"bool"},{"internalType":"uint32","name":"editions","type":"uint32"},{"internalType":"uint32","name":"total","type":"uint32"},{"internalType":"string","name":"name","type":"string"}],"internalType":"struct Metamorphosis.Creator[]","name":"creators_","type":"tuple[]"}],"name":"setCreators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"marketplace","type":"address"},{"internalType":"uint256","name":"listingId","type":"uint256"}],"name":"setListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxForm","type":"uint256"}],"name":"setMaxForm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"lock","type":"bool"}],"name":"setTransferLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sign","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":"tokenForm","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenTotalCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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 payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"bps","type":"uint256"}],"name":"updateRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"uriParts","type":"string[]"}],"name":"updateTokenURIParts","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040518060400160405280600d81526020016c4d6574616d6f7270686f73697360981b8152506040518060400160405280600581526020016409a9ea4a0960db1b815250620000706200006a6200038660201b60201c565b6200038a565b815162000085906003906020850190620003da565b5080516200009b906004906020840190620003da565b50505060405180610240016040528060405180606001604052806024815260200162004f05602491398152602001604051806040016040528060068152602001651e2720a6a29f60d11b815250815260200160405180604001604052806002815260200161202360f01b8152508152602001604051806040016040528060098152602001681e22a224aa24a7a71f60b91b815250815260200160405180604001604052806012815260200171111610113232b9b1b934b83a34b7b7111d1160711b81525081526020016040518060400160405280600d81526020016c1e2222a9a1a924a82a24a7a71f60991b8152508152602001604051806040016040528060118152602001701116101131b932b0ba32b22fb13c911d1160791b8152508152602001604051806040016040528060098152602001681e21a922a0aa27a91f60b91b81525081526020016040518060400160405280600c81526020016b1116101134b6b0b3b2911d1160a11b8152508152602001604051806040016040528060078152602001661e24a6a0a3a29f60c91b81525081526020016040518060400160405280601481526020017f222c2022616e696d6174696f6e5f75726c223a2200000000000000000000000081525081526020016040518060400160405280600b81526020016a1e20a724a6a0aa24a7a71f60a91b815250815260200160405180608001604052806045815260200162004e9f60459139815260200160405180606001604052806021815260200162004f29602191398152602001604051806040016040528060098152602001681e21a922a0aa27a91f60b91b815250815260200160405180606001604052806021815260200162004ee4602191398152602001604051806040016040528060068152602001651e2327a9269f60d11b815250815260200160405180604001604052806004815260200163227d5d7d60e01b81525081525060099060126200037292919062000469565b50600a805460ff191660011790556200057f565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620003e89062000543565b90600052602060002090601f0160209004810192826200040c576000855562000457565b82601f106200042757805160ff191683800117855562000457565b8280016001018555821562000457579182015b82811115620004575782518255916020019190600101906200043a565b5062000465929150620004c9565b5090565b828054828255906000526020600020908101928215620004bb579160200282015b82811115620004bb5782518051620004aa918491602090910190620003da565b50916020019190600101906200048a565b5062000465929150620004e0565b5b80821115620004655760008155600101620004ca565b8082111562000465576000620004f7828262000501565b50600101620004e0565b5080546200050f9062000543565b6000825580601f1062000520575050565b601f016020900490600052602060002090810190620005409190620004c9565b50565b600181811c908216806200055857607f821691505b6020821081036200057957634e487b7160e01b600052602260045260246000fd5b50919050565b614910806200058f6000396000f3fe608060405234801561001057600080fd5b50600436106102ea5760003560e01c80636d73e6691161018c578063b88d4fde116100ee578063c87b56dd11610097578063f2fde38b11610071578063f2fde38b14610686578063f47c84c514610699578063ffe119ec146106a257600080fd5b8063c87b56dd14610624578063e985e9c514610637578063f1c689821461067357600080fd5b8063bd227e57116100c8578063bd227e57146105f6578063bff35618146105fe578063c83afbd01461061157600080fd5b8063b88d4fde146105a2578063b9c4d9fb146105b5578063bb3bafd6146105d557600080fd5b80638da5cb5b116101505780639b0946b11161012a5780639b0946b114610569578063a22cb4651461057c578063a7d1ab8c1461058f57600080fd5b80638da5cb5b1461053d5780638ea8f83c1461054e57806395d89b411461056157600080fd5b80636d73e669146104fd5780636f39cf401461051057806370a08231146105195780637146bd081461052c578063715018a61461053557600080fd5b80632f2fc4161161025057806342cc9c73116101f95780636352211e116101d35780636352211e146104c4578063643b3ac0146104d75780636c2f5acd146104ea57600080fd5b806342cc9c7314610488578063465bcea11461049b578063626b5419146104b157600080fd5b80633fce35291161022a5780633fce35291461044f57806342842e0e1461046257806342966c681461047557600080fd5b80632f2fc4161461041257806331ae450b14610427578063356e02811461043c57600080fd5b80630ebd4c7f116102b25780632a55205a1161028c5780632a55205a146103c55780632ca15122146103f75780632d345670146103ff57600080fd5b80630ebd4c7f1461037f57806323b872dd1461039f57806324d7806c146103b257600080fd5b8063017f776d146102ef57806301ffc9a71461030457806306fdde031461032c578063081812fc14610341578063095ea7b31461036c575b600080fd5b6103026102fd366004613a4b565b6106b5565b005b610317610312366004613a7a565b61070d565b60405190151581526020015b60405180910390f35b610334610799565b6040516103239190613aef565b61035461034f366004613a4b565b61082b565b6040516001600160a01b039091168152602001610323565b61030261037a366004613b17565b6108c0565b61039261038d366004613a4b565b6109f3565b6040516103239190613b7e565b6103026103ad366004613b91565b610a4f565b6103176103c0366004613bd2565b610ad4565b6103d86103d3366004613bef565b610b0d565b604080516001600160a01b039093168352602083019190915201610323565b610302610b47565b61030261040d366004613bd2565b610d46565b61041a610df5565b6040516103239190613c11565b61042f610f33565b6040516103239190613cbc565b61030261044a366004613d09565b610fe2565b61030261045d366004613eda565b6112ac565b610302610470366004613b91565b611309565b610302610483366004613a4b565b611324565b610302610496366004613f90565b6113ee565b6104a3600a81565b604051908152602001610323565b6104a36104bf366004613a4b565b611444565b6103546104d2366004613a4b565b6114b9565b6103026104e5366004613b17565b611530565b6103026104f8366004613b17565b6115f5565b61030261050b366004613bd2565b611665565b6104a3600f5481565b6104a3610527366004613bd2565b61170f565b6104a3600e5481565b610302611796565b6000546001600160a01b0316610354565b61030261055c366004613bef565b6117fc565b610334611929565b610302610577366004614002565b611938565b61030261058a3660046141d4565b611b02565b6104a361059d366004613a4b565b611b0d565b6103026105b0366004614209565b611b5b565b6105c86105c3366004613a4b565b611be6565b60405161032391906142c2565b6105e86105e3366004613a4b565b611c5f565b6040516103239291906142d5565b6104a360fa81565b61030261060c3660046142fa565b611d13565b6104a361061f366004614315565b611d70565b610334610632366004613a4b565b611f8a565b610317610645366004614371565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b610334610681366004613a4b565b61277a565b610302610694366004613bd2565b61284e565b6104a3600d5481565b6103026106b03660046143be565b612916565b336106c86000546001600160a01b031690565b6001600160a01b031614806106e357506106e3600133612bbe565b6107085760405162461bcd60e51b81526004016106ff906144de565b60405180910390fd5b600f55565b600061071882612be3565b80610727575061072782612c1f565b8061074257506001600160e01b03198216635d9dd7eb60e11b145b8061075d57506001600160e01b0319821663152a902d60e11b145b8061077857506001600160e01b03198216632dde656160e21b145b8061079357506001600160e01b03198216630c83afbd60e41b145b92915050565b6060600380546107a890614522565b80601f01602080910402602001604051908101604052809291908181526020018280546107d490614522565b80156108215780601f106107f657610100808354040283529160200191610821565b820191906000526020600020905b81548152906001019060200180831161080457829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b03166108a45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106ff565b506000908152600760205260409020546001600160a01b031690565b60006108cb826114b9565b9050806001600160a01b0316836001600160a01b0316036109385760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106ff565b336001600160a01b038216148061097257506001600160a01b038116600090815260086020908152604080832033845290915290205460ff165b6109e45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106ff565b6109ee8383612c54565b505050565b6016546060906001600160a01b031615610a4a57604080516001808252818301909252906020808301908036833701905050905060155481600081518110610a3d57610a3d61455c565b6020026020010181815250505b919050565b610a5a335b82612cc2565b610a765760405162461bcd60e51b81526004016106ff90614572565b600a5460ff1615610ac95760405162461bcd60e51b815260206004820152601e60248201527f4552433732313a207472616e73666572206e6f74207065726d6974746564000060448201526064016106ff565b6109ee838383612db9565b6000816001600160a01b0316610af26000546001600160a01b031690565b6001600160a01b031614806107935750610793600183612bbe565b60165460155460009182916001600160a01b039091169061271090610b3290866145d9565b610b3c919061460e565b915091509250929050565b60145460ff16610b895760405162461bcd60e51b815260206004820152600d60248201526c139bdd081858dd1a5d985d1959609a1b60448201526064016106ff565b6000805b601154811015610cf557336001600160a01b031660118281548110610bb457610bb461455c565b60009182526020909120600290910201546001600160a01b031603610ce35760118181548110610be657610be661455c565b6000918252602090912060029091020154600160a01b900460ff1615610c4e5760405162461bcd60e51b815260206004820152601760248201527f596f75206861766520616c7265616479207369676e656400000000000000000060448201526064016106ff565b60019150600160118281548110610c6757610c6761455c565b6000918252602082206002909102018054921515600160a01b0260ff60a01b19909316929092179091555b600a811015610cdd57600081610ca960fa856145d9565b610cb39190614622565b610cbe906001614622565b9050610cca3382612de0565b5080610cd58161463a565b915050610c92565b50610cf5565b80610ced8161463a565b915050610b8d565b5080610d435760405162461bcd60e51b815260206004820152601660248201527f596f7520617265206e6f7420616e2063726561746f720000000000000000000060448201526064016106ff565b50565b6000546001600160a01b03163314610da05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ff565b610dab600182612bbe565b15610d435760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610df1600182612f22565b5050565b60606011805480602002602001604051908101604052809291908181526020016000905b82821015610f2a5760008481526020908190206040805160a0810182526002860290920180546001600160a01b038116845260ff600160a01b82041615159484019490945263ffffffff600160a81b8504811692840192909252600160c81b909304166060820152600182018054919291608084019190610e9990614522565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec590614522565b8015610f125780601f10610ee757610100808354040283529160200191610f12565b820191906000526020600020905b815481529060010190602001808311610ef557829003601f168201915b50505050508152505081526020019060010190610e19565b50505050905090565b6060610f3f6001612f37565b67ffffffffffffffff811115610f5757610f57613d88565b604051908082528060200260200182016040528015610f80578160200160208202803683370190505b50905060005b610f906001612f37565b811015610fde57610fa2600182612f41565b828281518110610fb457610fb461455c565b6001600160a01b039092166020928302919091019091015280610fd68161463a565b915050610f86565b5090565b600a5460ff161561102b5760405162461bcd60e51b8152602060048201526013602482015272135bdc9c1a081b9bdd081c195c9b5a5d1d1959606a1b60448201526064016106ff565b600481146110715760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e7420746f6b656e7360681b60448201526064016106ff565b600061107c846114b9565b9050336001600160a01b038216146110cc5760405162461bcd60e51b815260206004820152601360248201527226bab9ba103132903a37b5b2b71037bbb732b960691b60448201526064016106ff565b600084815260126020526040902054600f546110e9826001614622565b106111295760405162461bcd60e51b815260206004820152601060248201526f13585e08199bdc9b481c995858da195960821b60448201526064016106ff565b60005b838110156112855760008585838181106111485761114861455c565b905060200201359050808714158015611171575033611166826114b9565b6001600160a01b0316145b801561118b57506000818152601260205260409020548311155b6111d75760405162461bcd60e51b815260206004820152601560248201527f496e76616c696420746f6b656e20746f206275726e000000000000000000000060448201526064016106ff565b60006111e4836001614622565b90505b85811015611268578686828181106112015761120161455c565b9050602002013582036112565760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742068617665206475706c696361746520746f6b656e730000000060448201526064016106ff565b806112608161463a565b9150506111e7565b5061127281612f4d565b508061127d8161463a565b91505061112c565b5060008581526012602052604081208054916112a08361463a565b91905055505050505050565b336112bf6000546001600160a01b031690565b6001600160a01b031614806112da57506112da600133612bbe565b6112f65760405162461bcd60e51b81526004016106ff906144de565b8051610df1906009906020840190613843565b6109ee83838360405180602001604052806000815250611b5b565b61132d33610a54565b6113925760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016106ff565b600a5460ff16156113e55760405162461bcd60e51b815260206004820152601e60248201527f4552433732313a207472616e73666572206e6f74207065726d6974746564000060448201526064016106ff565b610d4381612f4d565b336114016000546001600160a01b031690565b6001600160a01b0316148061141c575061141c600133612bbe565b6114385760405162461bcd60e51b81526004016106ff906144de565b6109ee600c838361389c565b6000818152600560205260408120546001600160a01b03166114785760405162461bcd60e51b81526004016106ff90614653565b601161148560fa8461460e565b815481106114955761149561455c565b6000918252602090912060029091020154600160c81b900463ffffffff1692915050565b6000818152600560205260408120546001600160a01b0316806107935760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106ff565b336115436000546001600160a01b031690565b6001600160a01b0316148061155e575061155e600133612bbe565b61157a5760405162461bcd60e51b81526004016106ff906144de565b60145460ff166115bc5760405162461bcd60e51b815260206004820152600d60248201526c139bdd081858dd1a5d985d1959609a1b60448201526064016106ff565b600a80546001600160a01b039093166101000274ffffffffffffffffffffffffffffffffffffffff001990931692909217909155600b55565b336116086000546001600160a01b031690565b6001600160a01b031614806116235750611623600133612bbe565b61163f5760405162461bcd60e51b81526004016106ff906144de565b601680546001600160a01b0319166001600160a01b039390931692909217909155601555565b6000546001600160a01b031633146116bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ff565b6116ca600182612bbe565b610d435760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610df1600182612fcd565b60006001600160a01b03821661177a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106ff565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b031633146117f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ff565b6117fa6000612fe2565b565b3361180f6000546001600160a01b031690565b6001600160a01b0316148061182a575061182a600133612bbe565b6118465760405162461bcd60e51b81526004016106ff906144de565b60145460ff161561188d5760405162461bcd60e51b8152602060048201526011602482015270105b1c9958591e481858dd1a5d985d1959607a1b60448201526064016106ff565b60005b6011548110156118ee576000601182815481106118af576118af61455c565b60009182526020909120600290910201805467ffffffffffffffff60a81b191664050000000560a91b17905550806118e68161463a565b915050611890565b506011546118fd9060fa6145d9565b600d5560115461190e90600a6145d9565b601055600e91909155600f556014805460ff19166001179055565b6060600480546107a890614522565b3361194b6000546001600160a01b031690565b6001600160a01b031614806119665750611966600133612bbe565b6119825760405162461bcd60e51b81526004016106ff906144de565b60005b81518110156109ee5760008282815181106119a2576119a261455c565b60200260200101519050600080805b601154811015611a195783600001516001600160a01b0316601182815481106119dc576119dc61455c565b60009182526020909120600290910201546001600160a01b031603611a075760019250809150611a19565b80611a118161463a565b9150506119b1565b5081611a675760405162461bcd60e51b815260206004820152601660248201527f43726561746f7220646f6573206e6f742065786973740000000000000000000060448201526064016106ff565b6020808401516000888152601383526040808220858352845290208151805192939192611a97928492019061391c565b506020828101518051611ab0926001850192019061391c565b5060408201518051611acc91600284019160209091019061391c565b5060608201518051611ae891600384019160209091019061391c565b509050505050508080611afa9061463a565b915050611985565b610df1338383613032565b6000818152600560205260408120546001600160a01b0316611b415760405162461bcd60e51b81526004016106ff90614653565b600082815260126020526040902054610793906001614622565b611b653383612cc2565b611b815760405162461bcd60e51b81526004016106ff90614572565b600a5460ff1615611bd45760405162461bcd60e51b815260206004820152601e60248201527f4552433732313a207472616e73666572206e6f74207065726d6974746564000060448201526064016106ff565b611be084848484613100565b50505050565b6016546060906001600160a01b031615610a4a576040805160018082528183019092529060208083019080368337505060165482519293506001600160a01b031691839150600090611c3a57611c3a61455c565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b60165460609081906001600160a01b031615611d0e576040805160018082528183019092529060208083019080368337505060165482519294506001600160a01b031691849150600090611cb557611cb561455c565b6001600160a01b039290921660209283029190910182015260408051600180825281830190925291828101908036833701905050905060155481600081518110611d0157611d0161455c565b6020026020010181815250505b915091565b33611d266000546001600160a01b031690565b6001600160a01b03161480611d415750611d41600133612bbe565b611d5d5760405162461bcd60e51b81526004016106ff906144de565b600a805460ff1916911515919091179055565b600a5460009061010090046001600160a01b031633148015611d935750600b5486145b8015611d9f5750846001145b8015611da9575081155b611de95760405162461bcd60e51b8152602060048201526011602482015270496e76616c69642063616c6c206461746160781b60448201526064016106ff565b600d54601054611dfa906001614622565b11158015611e3457506000546001600160a01b0385811691161480611e345750600e54611e268561170f565b611e31906001614622565b11155b611e755760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016106ff565b601154601054604080514460208201524291810191909152606081019190915260009082906080016040516020818303038152906040528051906020012060001c611ec0919061469e565b9050806000805b60fa60118481548110611edc57611edc61455c565b6000918252602090912060029091020154600160a81b900463ffffffff161015611f1557611f0a8984613133565b905060019150611f35565b84611f21846001614622565b611f2b919061469e565b9250838303611ec7575b81611f785760405162461bcd60e51b815260206004820152601360248201527222b93937b91036b4b73a34b733903a37b5b2b760691b60448201526064016106ff565b5060009b9a5050505050505050505050565b6000818152600560205260409020546060906001600160a01b03166120095760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106ff565b600061201660fa8461460e565b600084815260126020908152604080832054835260138252808320848452909152808220815160808101909252805493945091929091908290829061205a90614522565b80601f016020809104026020016040519081016040528092919081815260200182805461208690614522565b80156120d35780601f106120a8576101008083540402835291602001916120d3565b820191906000526020600020905b8154815290600101906020018083116120b657829003601f168201915b505050505081526020016001820180546120ec90614522565b80601f016020809104026020016040519081016040528092919081815260200182805461211890614522565b80156121655780601f1061213a57610100808354040283529160200191612165565b820191906000526020600020905b81548152906001019060200180831161214857829003601f168201915b5050505050815260200160028201805461217e90614522565b80601f01602080910402602001604051908101604052809291908181526020018280546121aa90614522565b80156121f75780601f106121cc576101008083540402835291602001916121f7565b820191906000526020600020905b8154815290600101906020018083116121da57829003601f168201915b5050505050815260200160038201805461221090614522565b80601f016020809104026020016040519081016040528092919081815260200182805461223c90614522565b80156122895780601f1061225e57610100808354040283529160200191612289565b820191906000526020600020905b81548152906001019060200180831161226c57829003601f168201915b50505050508152505090506000601183815481106122a9576122a961455c565b60009182526020918290206040805160a081018252600290930290910180546001600160a01b038116845260ff600160a01b82041615159484019490945263ffffffff600160a81b8504811692840192909252600160c81b90930416606082015260018201805491929160808401919061232290614522565b80601f016020809104026020016040519081016040528092919081815260200182805461234e90614522565b801561239b5780601f106123705761010080835404028352916020019161239b565b820191906000526020600020905b81548152906001019060200180831161237e57829003601f168201915b5050505050815250509050606060005b600954811015612770576123f9600982815481106123cb576123cb61455c565b90600052602060002001604051806040016040528060068152602001651e2720a6a29f60d11b815250613245565b156124275783516040516124119184916020016146b2565b604051602081830303815290604052915061275e565b6124726009828154811061243d5761243d61455c565b906000526020600020016040518060400160405280600d81526020016c1e2222a9a1a924a82a24a7a71f60991b815250613245565b1561248e578184602001516040516020016124119291906146b2565b6124d5600982815481106124a4576124a461455c565b90600052602060002001604051806040016040528060098152602001681e21a922a0aa27a91f60b91b815250613245565b156124f05760808301516040516124119184916020016146b2565b612535600982815481106125065761250661455c565b90600052602060002001604051806040016040528060078152602001661e24a6a0a3a29f60c91b815250613245565b15612551578184604001516040516020016124119291906146b2565b61259a600982815481106125675761256761455c565b906000526020600020016040518060400160405280600b81526020016a1e20a724a6a0aa24a7a71f60a91b815250613245565b156125b55760608401516040516124119184916020016146b2565b6125f9600982815481106125cb576125cb61455c565b90600052602060002001604051806040016040528060068152602001651e2327a9269f60d11b815250613245565b156126345760008781526012602052604090205482906126239061261e906001614622565b61329e565b6040516020016124119291906146b2565b61267b6009828154811061264a5761264a61455c565b90600052602060002001604051806040016040528060098152602001681e22a224aa24a7a71f60b91b815250613245565b15612699578161262361268f60fa886145d9565b61261e908a6146e1565b6126de600982815481106126af576126af61455c565b90600052602060002001604051806040016040528060078152602001661e2a27aa20a61f60c91b815250613245565b1561271d5781612623601187815481106126fa576126fa61455c565b6000918252602090912060029091020154600160c81b900463ffffffff1661329e565b81600982815481106127315761273161455c565b9060005260206000200160405160200161274c929190614790565b60405160208183030381529060405291505b806127688161463a565b9150506123ab565b5095945050505050565b6060816001146127bc5760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a5908185cdcd95d609a1b60448201526064016106ff565b600c80546127c990614522565b80601f01602080910402602001604051908101604052809291908181526020018280546127f590614522565b80156128425780601f1061281757610100808354040283529160200191612842565b820191906000526020600020905b81548152906001019060200180831161282557829003601f168201915b50505050509050919050565b6000546001600160a01b031633146128a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ff565b6001600160a01b03811661290d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106ff565b610d4381612fe2565b336129296000546001600160a01b031690565b6001600160a01b031614806129445750612944600133612bbe565b6129605760405162461bcd60e51b81526004016106ff906144de565b60145460ff16156129bf5760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f74207365742063726561746f7273206166746572206163746976616044820152633a34b7b760e11b60648201526084016106ff565b6129cb60116000613990565b60005b8151811015610df15760008282815181106129eb576129eb61455c565b60200260200101519050806020015115612a475760405162461bcd60e51b815260206004820152601460248201527f7369676e6564206d7573742062652066616c736500000000000000000000000060448201526064016106ff565b604081015163ffffffff16158015612a675750606081015163ffffffff16155b612ab35760405162461bcd60e51b815260206004820152601b60248201527f65646974696f6e20616e6420746f74616c206d7573742062652030000000000060448201526064016106ff565b60118054600181018255600091909152815160029091027f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68810180546020808601516040870151606088015163ffffffff908116600160c81b0263ffffffff60c81b1991909216600160a81b021667ffffffffffffffff60a81b19921515600160a01b0274ffffffffffffffffffffffffffffffffffffffffff199095166001600160a01b03909816979097179390931716949094171781556080840151805185949293612ba7937f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6990910192019061391c565b505050508080612bb69061463a565b9150506129ce565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b60006001600160e01b031982166380ac58cd60e01b1480612c1457506001600160e01b03198216635b5e139f60e01b145b806107935750610793825b60006001600160e01b03198216632a9f3abf60e11b148061079357506301ffc9a760e01b6001600160e01b0319831614610793565b600081815260076020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612c89826114b9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b0316612d3b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106ff565b6000612d46836114b9565b9050806001600160a01b0316846001600160a01b03161480612d815750836001600160a01b0316612d768461082b565b6001600160a01b0316145b80612db157506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b949350505050565b61deac196001600160a01b03831601612dd5576109ee81612f4d565b6109ee83838361339f565b6001600160a01b038216612e365760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106ff565b6000818152600560205260409020546001600160a01b031615612e9b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106ff565b6001600160a01b0382166000908152600660205260408120805460019290612ec4908490614622565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000612bdc836001600160a01b03841661353b565b6000610793825490565b6000612bdc838361362e565b6011612f5a60fa8361460e565b81548110612f6a57612f6a61455c565b600091825260209091206002909102018054600160c81b900463ffffffff16906019612f95836147ae565b825463ffffffff9182166101009390930a928302919092021990911617905550600081815260126020526040812055610d4381613658565b6000612bdc836001600160a01b0384166136f3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036130935760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106ff565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61310b848484612db9565b61311784848484613742565b611be05760405162461bcd60e51b81526004016106ff906147ce565b600080601183815481106131495761314961455c565b6000918252602090912060029091020180549091506001600160a01b03811690600160a81b900463ffffffff1682601561318283614820565b82546101009290920a63ffffffff8181021990931691831602179091558354600160c81b90041690508260196131b783614820565b82546101009290920a63ffffffff818102199093169183160217909155835460009250600160a81b9004166131ed60fa876145d9565b6131f79190614622565b6010805491925060006132098361463a565b91905055506132188282612de0565b856001600160a01b0316826001600160a01b03161461323c5761323c828783612db9565b95945050505050565b6000816040516020016132589190614843565b604051602081830303815290604052805190602001208360405160200161327f919061485f565b6040516020818303038152906040528051906020012014905092915050565b6060816000036132c55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156132ef57806132d98161463a565b91506132e89050600a8361460e565b91506132c9565b60008167ffffffffffffffff81111561330a5761330a613d88565b6040519080825280601f01601f191660200182016040528015613334576020820181803683370190505b5090505b8415612db1576133496001836146e1565b9150613356600a8661469e565b613361906030614622565b60f81b8183815181106133765761337661455c565b60200101906001600160f81b031916908160001a905350613398600a8661460e565b9450613338565b826001600160a01b03166133b2826114b9565b6001600160a01b0316146134165760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016106ff565b6001600160a01b0382166134785760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106ff565b613483600082612c54565b6001600160a01b03831660009081526006602052604081208054600192906134ac9084906146e1565b90915550506001600160a01b03821660009081526006602052604081208054600192906134da908490614622565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818152600183016020526040812054801561362457600061355f6001836146e1565b8554909150600090613573906001906146e1565b90508181146135d85760008660000182815481106135935761359361455c565b90600052602060002001549050808760000184815481106135b6576135b661455c565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806135e9576135e961486b565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610793565b6000915050610793565b60008260000182815481106136455761364561455c565b9060005260206000200154905092915050565b6000613663826114b9565b9050613670600083612c54565b6001600160a01b03811660009081526006602052604081208054600192906136999084906146e1565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600081815260018301602052604081205461373a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610793565b506000610793565b60006001600160a01b0384163b1561383857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613786903390899088908890600401614881565b6020604051808303816000875af19250505080156137c1575060408051601f3d908101601f191682019092526137be918101906148bd565b60015b61381e573d8080156137ef576040519150601f19603f3d011682016040523d82523d6000602084013e6137f4565b606091505b5080516000036138165760405162461bcd60e51b81526004016106ff906147ce565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612db1565b506001949350505050565b828054828255906000526020600020908101928215613890579160200282015b82811115613890578251805161388091849160209091019061391c565b5091602001919060010190613863565b50610fde9291506139b1565b8280546138a890614522565b90600052602060002090601f0160209004810192826138ca5760008555613910565b82601f106138e35782800160ff19823516178555613910565b82800160010185558215613910579182015b828111156139105782358255916020019190600101906138f5565b50610fde9291506139ce565b82805461392890614522565b90600052602060002090601f01602090048101928261394a5760008555613910565b82601f1061396357805160ff1916838001178555613910565b82800160010185558215613910579182015b82811115613910578251825591602001919060010190613975565b5080546000825560020290600052602060002090810190610d4391906139e3565b80821115610fde5760006139c58282613a11565b506001016139b1565b5b80821115610fde57600081556001016139cf565b80821115610fde5780546001600160e81b03191681556000613a086001830182613a11565b506002016139e3565b508054613a1d90614522565b6000825580601f10613a2d575050565b601f016020900490600052602060002090810190610d4391906139ce565b600060208284031215613a5d57600080fd5b5035919050565b6001600160e01b031981168114610d4357600080fd5b600060208284031215613a8c57600080fd5b8135612bdc81613a64565b60005b83811015613ab2578181015183820152602001613a9a565b83811115611be05750506000910152565b60008151808452613adb816020860160208601613a97565b601f01601f19169290920160200192915050565b602081526000612bdc6020830184613ac3565b6001600160a01b0381168114610d4357600080fd5b60008060408385031215613b2a57600080fd5b8235613b3581613b02565b946020939093013593505050565b600081518084526020808501945080840160005b83811015613b7357815187529582019590820190600101613b57565b509495945050505050565b602081526000612bdc6020830184613b43565b600080600060608486031215613ba657600080fd5b8335613bb181613b02565b92506020840135613bc181613b02565b929592945050506040919091013590565b600060208284031215613be457600080fd5b8135612bdc81613b02565b60008060408385031215613c0257600080fd5b50508035926020909101359150565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b83811015613cae57888303603f19018552815180516001600160a01b03168452878101511515888501528681015163ffffffff908116888601526060808301519091169085015260809081015160a091850182905290613c9a81860183613ac3565b968901969450505090860190600101613c38565b509098975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613cfd5783516001600160a01b031683529284019291840191600101613cd8565b50909695505050505050565b600080600060408486031215613d1e57600080fd5b83359250602084013567ffffffffffffffff80821115613d3d57600080fd5b818601915086601f830112613d5157600080fd5b813581811115613d6057600080fd5b8760208260051b8501011115613d7557600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715613dc157613dc1613d88565b60405290565b6040516080810167ffffffffffffffff81118282101715613dc157613dc1613d88565b60405160a0810167ffffffffffffffff81118282101715613dc157613dc1613d88565b604051601f8201601f1916810167ffffffffffffffff81118282101715613e3657613e36613d88565b604052919050565b600067ffffffffffffffff821115613e5857613e58613d88565b5060051b60200190565b600067ffffffffffffffff831115613e7c57613e7c613d88565b613e8f601f8401601f1916602001613e0d565b9050828152838383011115613ea357600080fd5b828260208301376000602084830101529392505050565b600082601f830112613ecb57600080fd5b612bdc83833560208501613e62565b60006020808385031215613eed57600080fd5b823567ffffffffffffffff80821115613f0557600080fd5b818501915085601f830112613f1957600080fd5b8135613f2c613f2782613e3e565b613e0d565b81815260059190911b83018401908481019088831115613f4b57600080fd5b8585015b83811015613f8357803585811115613f675760008081fd5b613f758b89838a0101613eba565b845250918601918601613f4f565b5098975050505050505050565b60008060208385031215613fa357600080fd5b823567ffffffffffffffff80821115613fbb57600080fd5b818501915085601f830112613fcf57600080fd5b813581811115613fde57600080fd5b866020828501011115613ff057600080fd5b60209290920196919550909350505050565b6000806040838503121561401557600080fd5b8235915067ffffffffffffffff806020850135111561403357600080fd5b6020840135840185601f82011261404957600080fd5b614056613f278235613e3e565b81358082526020808301929160051b8401018881111561407557600080fd5b602084015b818110156141b557858135111561409057600080fd5b80358501601f196040828d03820112156140a957600080fd5b6140b1613d9e565b6140be6020840135613b02565b6020830135815288604084013511156140d657600080fd5b604083013583019250608082848f030112156140f157600080fd5b6140f9613dc7565b9150886020840135111561410c57600080fd5b61411e8d602080860135860101613eba565b8252886040840135111561413157600080fd5b6141448d60206040860135860101613eba565b6020830152886060840135111561415a57600080fd5b61416d8d60206060860135860101613eba565b6040830152886080840135111561418357600080fd5b6141968d60206080860135860101613eba565b606083015260208181019290925286529485019491909101905061407a565b50959890975095505050505050565b80358015158114610a4a57600080fd5b600080604083850312156141e757600080fd5b82356141f281613b02565b9150614200602084016141c4565b90509250929050565b6000806000806080858703121561421f57600080fd5b843561422a81613b02565b9350602085013561423a81613b02565b925060408501359150606085013567ffffffffffffffff81111561425d57600080fd5b8501601f8101871361426e57600080fd5b61427d87823560208401613e62565b91505092959194509250565b600081518084526020808501945080840160005b83811015613b735781516001600160a01b03168752958201959082019060010161429d565b602081526000612bdc6020830184614289565b6040815260006142e86040830185614289565b828103602084015261323c8185613b43565b60006020828403121561430c57600080fd5b612bdc826141c4565b60008060008060008060c0878903121561432e57600080fd5b863561433981613b02565b95506020870135945060408701359350606087013561435781613b02565b9598949750929560808101359460a0909101359350915050565b6000806040838503121561438457600080fd5b823561438f81613b02565b9150602083013561439f81613b02565b809150509250929050565b803563ffffffff81168114610a4a57600080fd5b600060208083850312156143d157600080fd5b823567ffffffffffffffff808211156143e957600080fd5b818501915085601f8301126143fd57600080fd5b813561440b613f2782613e3e565b81815260059190911b8301840190848101908883111561442a57600080fd5b8585015b83811015613f83578035858111156144465760008081fd5b860160a0818c03601f190181131561445e5760008081fd5b614466613dea565b8983013561447381613b02565b815260406144828482016141c4565b8b83015260606144938186016143aa565b82840152608091506144a68286016143aa565b908301529183013591888311156144bd5760008081fd5b6144cb8e8c85870101613eba565b908201528552505091860191860161442e565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b600181811c9082168061453657607f821691505b60208210810361455657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156145f3576145f36145c3565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261461d5761461d6145f8565b500490565b60008219821115614635576146356145c3565b500190565b60006001820161464c5761464c6145c3565b5060010190565b6020808252602b908201527f4552433732314d657461646174613a20717565727920666f72206e6f6e65786960408201526a39ba32b73a103a37b5b2b760a91b606082015260800190565b6000826146ad576146ad6145f8565b500690565b600083516146c4818460208801613a97565b8351908301906146d8818360208801613a97565b01949350505050565b6000828210156146f3576146f36145c3565b500390565b8054600090600181811c908083168061471257607f831692505b6020808410820361473357634e487b7160e01b600052602260045260246000fd5b818015614747576001811461475857614784565b60ff19861689528489019650614784565b876000528160002060005b8681101561477c5781548b820152908501908301614763565b505084890196505b50505050505092915050565b600083516147a2818460208801613a97565b61323c818401856146f8565b600063ffffffff8216806147c4576147c46145c3565b6000190192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600063ffffffff808316818103614839576148396145c3565b6001019392505050565b60008251614855818460208701613a97565b9190910192915050565b6000612bdc82846146f8565b634e487b7160e01b600052603160045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526148b36080830184613ac3565b9695505050505050565b6000602082840312156148cf57600080fd5b8151612bdc81613a6456fea264697066735822122005bd769a77a87a24da142fce8008b90d585c2ae7d8dcbd105e5510a68636ff0864736f6c634300080d0033222c202261747472696275746573223a5b7b2274726169745f74797065223a22436f6c6c656374696f6e222c2276616c7565223a224d6574616d6f7270686f736973227d2c227d2c7b2274726169745f74797065223a22466f726d222c2276616c7565223a22646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d65223a227b2274726169745f74797065223a2243726561746f72222c2276616c7565223a22

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102ea5760003560e01c80636d73e6691161018c578063b88d4fde116100ee578063c87b56dd11610097578063f2fde38b11610071578063f2fde38b14610686578063f47c84c514610699578063ffe119ec146106a257600080fd5b8063c87b56dd14610624578063e985e9c514610637578063f1c689821461067357600080fd5b8063bd227e57116100c8578063bd227e57146105f6578063bff35618146105fe578063c83afbd01461061157600080fd5b8063b88d4fde146105a2578063b9c4d9fb146105b5578063bb3bafd6146105d557600080fd5b80638da5cb5b116101505780639b0946b11161012a5780639b0946b114610569578063a22cb4651461057c578063a7d1ab8c1461058f57600080fd5b80638da5cb5b1461053d5780638ea8f83c1461054e57806395d89b411461056157600080fd5b80636d73e669146104fd5780636f39cf401461051057806370a08231146105195780637146bd081461052c578063715018a61461053557600080fd5b80632f2fc4161161025057806342cc9c73116101f95780636352211e116101d35780636352211e146104c4578063643b3ac0146104d75780636c2f5acd146104ea57600080fd5b806342cc9c7314610488578063465bcea11461049b578063626b5419146104b157600080fd5b80633fce35291161022a5780633fce35291461044f57806342842e0e1461046257806342966c681461047557600080fd5b80632f2fc4161461041257806331ae450b14610427578063356e02811461043c57600080fd5b80630ebd4c7f116102b25780632a55205a1161028c5780632a55205a146103c55780632ca15122146103f75780632d345670146103ff57600080fd5b80630ebd4c7f1461037f57806323b872dd1461039f57806324d7806c146103b257600080fd5b8063017f776d146102ef57806301ffc9a71461030457806306fdde031461032c578063081812fc14610341578063095ea7b31461036c575b600080fd5b6103026102fd366004613a4b565b6106b5565b005b610317610312366004613a7a565b61070d565b60405190151581526020015b60405180910390f35b610334610799565b6040516103239190613aef565b61035461034f366004613a4b565b61082b565b6040516001600160a01b039091168152602001610323565b61030261037a366004613b17565b6108c0565b61039261038d366004613a4b565b6109f3565b6040516103239190613b7e565b6103026103ad366004613b91565b610a4f565b6103176103c0366004613bd2565b610ad4565b6103d86103d3366004613bef565b610b0d565b604080516001600160a01b039093168352602083019190915201610323565b610302610b47565b61030261040d366004613bd2565b610d46565b61041a610df5565b6040516103239190613c11565b61042f610f33565b6040516103239190613cbc565b61030261044a366004613d09565b610fe2565b61030261045d366004613eda565b6112ac565b610302610470366004613b91565b611309565b610302610483366004613a4b565b611324565b610302610496366004613f90565b6113ee565b6104a3600a81565b604051908152602001610323565b6104a36104bf366004613a4b565b611444565b6103546104d2366004613a4b565b6114b9565b6103026104e5366004613b17565b611530565b6103026104f8366004613b17565b6115f5565b61030261050b366004613bd2565b611665565b6104a3600f5481565b6104a3610527366004613bd2565b61170f565b6104a3600e5481565b610302611796565b6000546001600160a01b0316610354565b61030261055c366004613bef565b6117fc565b610334611929565b610302610577366004614002565b611938565b61030261058a3660046141d4565b611b02565b6104a361059d366004613a4b565b611b0d565b6103026105b0366004614209565b611b5b565b6105c86105c3366004613a4b565b611be6565b60405161032391906142c2565b6105e86105e3366004613a4b565b611c5f565b6040516103239291906142d5565b6104a360fa81565b61030261060c3660046142fa565b611d13565b6104a361061f366004614315565b611d70565b610334610632366004613a4b565b611f8a565b610317610645366004614371565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b610334610681366004613a4b565b61277a565b610302610694366004613bd2565b61284e565b6104a3600d5481565b6103026106b03660046143be565b612916565b336106c86000546001600160a01b031690565b6001600160a01b031614806106e357506106e3600133612bbe565b6107085760405162461bcd60e51b81526004016106ff906144de565b60405180910390fd5b600f55565b600061071882612be3565b80610727575061072782612c1f565b8061074257506001600160e01b03198216635d9dd7eb60e11b145b8061075d57506001600160e01b0319821663152a902d60e11b145b8061077857506001600160e01b03198216632dde656160e21b145b8061079357506001600160e01b03198216630c83afbd60e41b145b92915050565b6060600380546107a890614522565b80601f01602080910402602001604051908101604052809291908181526020018280546107d490614522565b80156108215780601f106107f657610100808354040283529160200191610821565b820191906000526020600020905b81548152906001019060200180831161080457829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b03166108a45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106ff565b506000908152600760205260409020546001600160a01b031690565b60006108cb826114b9565b9050806001600160a01b0316836001600160a01b0316036109385760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106ff565b336001600160a01b038216148061097257506001600160a01b038116600090815260086020908152604080832033845290915290205460ff165b6109e45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106ff565b6109ee8383612c54565b505050565b6016546060906001600160a01b031615610a4a57604080516001808252818301909252906020808301908036833701905050905060155481600081518110610a3d57610a3d61455c565b6020026020010181815250505b919050565b610a5a335b82612cc2565b610a765760405162461bcd60e51b81526004016106ff90614572565b600a5460ff1615610ac95760405162461bcd60e51b815260206004820152601e60248201527f4552433732313a207472616e73666572206e6f74207065726d6974746564000060448201526064016106ff565b6109ee838383612db9565b6000816001600160a01b0316610af26000546001600160a01b031690565b6001600160a01b031614806107935750610793600183612bbe565b60165460155460009182916001600160a01b039091169061271090610b3290866145d9565b610b3c919061460e565b915091509250929050565b60145460ff16610b895760405162461bcd60e51b815260206004820152600d60248201526c139bdd081858dd1a5d985d1959609a1b60448201526064016106ff565b6000805b601154811015610cf557336001600160a01b031660118281548110610bb457610bb461455c565b60009182526020909120600290910201546001600160a01b031603610ce35760118181548110610be657610be661455c565b6000918252602090912060029091020154600160a01b900460ff1615610c4e5760405162461bcd60e51b815260206004820152601760248201527f596f75206861766520616c7265616479207369676e656400000000000000000060448201526064016106ff565b60019150600160118281548110610c6757610c6761455c565b6000918252602082206002909102018054921515600160a01b0260ff60a01b19909316929092179091555b600a811015610cdd57600081610ca960fa856145d9565b610cb39190614622565b610cbe906001614622565b9050610cca3382612de0565b5080610cd58161463a565b915050610c92565b50610cf5565b80610ced8161463a565b915050610b8d565b5080610d435760405162461bcd60e51b815260206004820152601660248201527f596f7520617265206e6f7420616e2063726561746f720000000000000000000060448201526064016106ff565b50565b6000546001600160a01b03163314610da05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ff565b610dab600182612bbe565b15610d435760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610df1600182612f22565b5050565b60606011805480602002602001604051908101604052809291908181526020016000905b82821015610f2a5760008481526020908190206040805160a0810182526002860290920180546001600160a01b038116845260ff600160a01b82041615159484019490945263ffffffff600160a81b8504811692840192909252600160c81b909304166060820152600182018054919291608084019190610e9990614522565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec590614522565b8015610f125780601f10610ee757610100808354040283529160200191610f12565b820191906000526020600020905b815481529060010190602001808311610ef557829003601f168201915b50505050508152505081526020019060010190610e19565b50505050905090565b6060610f3f6001612f37565b67ffffffffffffffff811115610f5757610f57613d88565b604051908082528060200260200182016040528015610f80578160200160208202803683370190505b50905060005b610f906001612f37565b811015610fde57610fa2600182612f41565b828281518110610fb457610fb461455c565b6001600160a01b039092166020928302919091019091015280610fd68161463a565b915050610f86565b5090565b600a5460ff161561102b5760405162461bcd60e51b8152602060048201526013602482015272135bdc9c1a081b9bdd081c195c9b5a5d1d1959606a1b60448201526064016106ff565b600481146110715760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e7420746f6b656e7360681b60448201526064016106ff565b600061107c846114b9565b9050336001600160a01b038216146110cc5760405162461bcd60e51b815260206004820152601360248201527226bab9ba103132903a37b5b2b71037bbb732b960691b60448201526064016106ff565b600084815260126020526040902054600f546110e9826001614622565b106111295760405162461bcd60e51b815260206004820152601060248201526f13585e08199bdc9b481c995858da195960821b60448201526064016106ff565b60005b838110156112855760008585838181106111485761114861455c565b905060200201359050808714158015611171575033611166826114b9565b6001600160a01b0316145b801561118b57506000818152601260205260409020548311155b6111d75760405162461bcd60e51b815260206004820152601560248201527f496e76616c696420746f6b656e20746f206275726e000000000000000000000060448201526064016106ff565b60006111e4836001614622565b90505b85811015611268578686828181106112015761120161455c565b9050602002013582036112565760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742068617665206475706c696361746520746f6b656e730000000060448201526064016106ff565b806112608161463a565b9150506111e7565b5061127281612f4d565b508061127d8161463a565b91505061112c565b5060008581526012602052604081208054916112a08361463a565b91905055505050505050565b336112bf6000546001600160a01b031690565b6001600160a01b031614806112da57506112da600133612bbe565b6112f65760405162461bcd60e51b81526004016106ff906144de565b8051610df1906009906020840190613843565b6109ee83838360405180602001604052806000815250611b5b565b61132d33610a54565b6113925760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016106ff565b600a5460ff16156113e55760405162461bcd60e51b815260206004820152601e60248201527f4552433732313a207472616e73666572206e6f74207065726d6974746564000060448201526064016106ff565b610d4381612f4d565b336114016000546001600160a01b031690565b6001600160a01b0316148061141c575061141c600133612bbe565b6114385760405162461bcd60e51b81526004016106ff906144de565b6109ee600c838361389c565b6000818152600560205260408120546001600160a01b03166114785760405162461bcd60e51b81526004016106ff90614653565b601161148560fa8461460e565b815481106114955761149561455c565b6000918252602090912060029091020154600160c81b900463ffffffff1692915050565b6000818152600560205260408120546001600160a01b0316806107935760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106ff565b336115436000546001600160a01b031690565b6001600160a01b0316148061155e575061155e600133612bbe565b61157a5760405162461bcd60e51b81526004016106ff906144de565b60145460ff166115bc5760405162461bcd60e51b815260206004820152600d60248201526c139bdd081858dd1a5d985d1959609a1b60448201526064016106ff565b600a80546001600160a01b039093166101000274ffffffffffffffffffffffffffffffffffffffff001990931692909217909155600b55565b336116086000546001600160a01b031690565b6001600160a01b031614806116235750611623600133612bbe565b61163f5760405162461bcd60e51b81526004016106ff906144de565b601680546001600160a01b0319166001600160a01b039390931692909217909155601555565b6000546001600160a01b031633146116bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ff565b6116ca600182612bbe565b610d435760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610df1600182612fcd565b60006001600160a01b03821661177a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106ff565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b031633146117f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ff565b6117fa6000612fe2565b565b3361180f6000546001600160a01b031690565b6001600160a01b0316148061182a575061182a600133612bbe565b6118465760405162461bcd60e51b81526004016106ff906144de565b60145460ff161561188d5760405162461bcd60e51b8152602060048201526011602482015270105b1c9958591e481858dd1a5d985d1959607a1b60448201526064016106ff565b60005b6011548110156118ee576000601182815481106118af576118af61455c565b60009182526020909120600290910201805467ffffffffffffffff60a81b191664050000000560a91b17905550806118e68161463a565b915050611890565b506011546118fd9060fa6145d9565b600d5560115461190e90600a6145d9565b601055600e91909155600f556014805460ff19166001179055565b6060600480546107a890614522565b3361194b6000546001600160a01b031690565b6001600160a01b031614806119665750611966600133612bbe565b6119825760405162461bcd60e51b81526004016106ff906144de565b60005b81518110156109ee5760008282815181106119a2576119a261455c565b60200260200101519050600080805b601154811015611a195783600001516001600160a01b0316601182815481106119dc576119dc61455c565b60009182526020909120600290910201546001600160a01b031603611a075760019250809150611a19565b80611a118161463a565b9150506119b1565b5081611a675760405162461bcd60e51b815260206004820152601660248201527f43726561746f7220646f6573206e6f742065786973740000000000000000000060448201526064016106ff565b6020808401516000888152601383526040808220858352845290208151805192939192611a97928492019061391c565b506020828101518051611ab0926001850192019061391c565b5060408201518051611acc91600284019160209091019061391c565b5060608201518051611ae891600384019160209091019061391c565b509050505050508080611afa9061463a565b915050611985565b610df1338383613032565b6000818152600560205260408120546001600160a01b0316611b415760405162461bcd60e51b81526004016106ff90614653565b600082815260126020526040902054610793906001614622565b611b653383612cc2565b611b815760405162461bcd60e51b81526004016106ff90614572565b600a5460ff1615611bd45760405162461bcd60e51b815260206004820152601e60248201527f4552433732313a207472616e73666572206e6f74207065726d6974746564000060448201526064016106ff565b611be084848484613100565b50505050565b6016546060906001600160a01b031615610a4a576040805160018082528183019092529060208083019080368337505060165482519293506001600160a01b031691839150600090611c3a57611c3a61455c565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b60165460609081906001600160a01b031615611d0e576040805160018082528183019092529060208083019080368337505060165482519294506001600160a01b031691849150600090611cb557611cb561455c565b6001600160a01b039290921660209283029190910182015260408051600180825281830190925291828101908036833701905050905060155481600081518110611d0157611d0161455c565b6020026020010181815250505b915091565b33611d266000546001600160a01b031690565b6001600160a01b03161480611d415750611d41600133612bbe565b611d5d5760405162461bcd60e51b81526004016106ff906144de565b600a805460ff1916911515919091179055565b600a5460009061010090046001600160a01b031633148015611d935750600b5486145b8015611d9f5750846001145b8015611da9575081155b611de95760405162461bcd60e51b8152602060048201526011602482015270496e76616c69642063616c6c206461746160781b60448201526064016106ff565b600d54601054611dfa906001614622565b11158015611e3457506000546001600160a01b0385811691161480611e345750600e54611e268561170f565b611e31906001614622565b11155b611e755760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016106ff565b601154601054604080514460208201524291810191909152606081019190915260009082906080016040516020818303038152906040528051906020012060001c611ec0919061469e565b9050806000805b60fa60118481548110611edc57611edc61455c565b6000918252602090912060029091020154600160a81b900463ffffffff161015611f1557611f0a8984613133565b905060019150611f35565b84611f21846001614622565b611f2b919061469e565b9250838303611ec7575b81611f785760405162461bcd60e51b815260206004820152601360248201527222b93937b91036b4b73a34b733903a37b5b2b760691b60448201526064016106ff565b5060009b9a5050505050505050505050565b6000818152600560205260409020546060906001600160a01b03166120095760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106ff565b600061201660fa8461460e565b600084815260126020908152604080832054835260138252808320848452909152808220815160808101909252805493945091929091908290829061205a90614522565b80601f016020809104026020016040519081016040528092919081815260200182805461208690614522565b80156120d35780601f106120a8576101008083540402835291602001916120d3565b820191906000526020600020905b8154815290600101906020018083116120b657829003601f168201915b505050505081526020016001820180546120ec90614522565b80601f016020809104026020016040519081016040528092919081815260200182805461211890614522565b80156121655780601f1061213a57610100808354040283529160200191612165565b820191906000526020600020905b81548152906001019060200180831161214857829003601f168201915b5050505050815260200160028201805461217e90614522565b80601f01602080910402602001604051908101604052809291908181526020018280546121aa90614522565b80156121f75780601f106121cc576101008083540402835291602001916121f7565b820191906000526020600020905b8154815290600101906020018083116121da57829003601f168201915b5050505050815260200160038201805461221090614522565b80601f016020809104026020016040519081016040528092919081815260200182805461223c90614522565b80156122895780601f1061225e57610100808354040283529160200191612289565b820191906000526020600020905b81548152906001019060200180831161226c57829003601f168201915b50505050508152505090506000601183815481106122a9576122a961455c565b60009182526020918290206040805160a081018252600290930290910180546001600160a01b038116845260ff600160a01b82041615159484019490945263ffffffff600160a81b8504811692840192909252600160c81b90930416606082015260018201805491929160808401919061232290614522565b80601f016020809104026020016040519081016040528092919081815260200182805461234e90614522565b801561239b5780601f106123705761010080835404028352916020019161239b565b820191906000526020600020905b81548152906001019060200180831161237e57829003601f168201915b5050505050815250509050606060005b600954811015612770576123f9600982815481106123cb576123cb61455c565b90600052602060002001604051806040016040528060068152602001651e2720a6a29f60d11b815250613245565b156124275783516040516124119184916020016146b2565b604051602081830303815290604052915061275e565b6124726009828154811061243d5761243d61455c565b906000526020600020016040518060400160405280600d81526020016c1e2222a9a1a924a82a24a7a71f60991b815250613245565b1561248e578184602001516040516020016124119291906146b2565b6124d5600982815481106124a4576124a461455c565b90600052602060002001604051806040016040528060098152602001681e21a922a0aa27a91f60b91b815250613245565b156124f05760808301516040516124119184916020016146b2565b612535600982815481106125065761250661455c565b90600052602060002001604051806040016040528060078152602001661e24a6a0a3a29f60c91b815250613245565b15612551578184604001516040516020016124119291906146b2565b61259a600982815481106125675761256761455c565b906000526020600020016040518060400160405280600b81526020016a1e20a724a6a0aa24a7a71f60a91b815250613245565b156125b55760608401516040516124119184916020016146b2565b6125f9600982815481106125cb576125cb61455c565b90600052602060002001604051806040016040528060068152602001651e2327a9269f60d11b815250613245565b156126345760008781526012602052604090205482906126239061261e906001614622565b61329e565b6040516020016124119291906146b2565b61267b6009828154811061264a5761264a61455c565b90600052602060002001604051806040016040528060098152602001681e22a224aa24a7a71f60b91b815250613245565b15612699578161262361268f60fa886145d9565b61261e908a6146e1565b6126de600982815481106126af576126af61455c565b90600052602060002001604051806040016040528060078152602001661e2a27aa20a61f60c91b815250613245565b1561271d5781612623601187815481106126fa576126fa61455c565b6000918252602090912060029091020154600160c81b900463ffffffff1661329e565b81600982815481106127315761273161455c565b9060005260206000200160405160200161274c929190614790565b60405160208183030381529060405291505b806127688161463a565b9150506123ab565b5095945050505050565b6060816001146127bc5760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a5908185cdcd95d609a1b60448201526064016106ff565b600c80546127c990614522565b80601f01602080910402602001604051908101604052809291908181526020018280546127f590614522565b80156128425780601f1061281757610100808354040283529160200191612842565b820191906000526020600020905b81548152906001019060200180831161282557829003601f168201915b50505050509050919050565b6000546001600160a01b031633146128a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106ff565b6001600160a01b03811661290d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106ff565b610d4381612fe2565b336129296000546001600160a01b031690565b6001600160a01b031614806129445750612944600133612bbe565b6129605760405162461bcd60e51b81526004016106ff906144de565b60145460ff16156129bf5760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f74207365742063726561746f7273206166746572206163746976616044820152633a34b7b760e11b60648201526084016106ff565b6129cb60116000613990565b60005b8151811015610df15760008282815181106129eb576129eb61455c565b60200260200101519050806020015115612a475760405162461bcd60e51b815260206004820152601460248201527f7369676e6564206d7573742062652066616c736500000000000000000000000060448201526064016106ff565b604081015163ffffffff16158015612a675750606081015163ffffffff16155b612ab35760405162461bcd60e51b815260206004820152601b60248201527f65646974696f6e20616e6420746f74616c206d7573742062652030000000000060448201526064016106ff565b60118054600181018255600091909152815160029091027f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68810180546020808601516040870151606088015163ffffffff908116600160c81b0263ffffffff60c81b1991909216600160a81b021667ffffffffffffffff60a81b19921515600160a01b0274ffffffffffffffffffffffffffffffffffffffffff199095166001600160a01b03909816979097179390931716949094171781556080840151805185949293612ba7937f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6990910192019061391c565b505050508080612bb69061463a565b9150506129ce565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b60006001600160e01b031982166380ac58cd60e01b1480612c1457506001600160e01b03198216635b5e139f60e01b145b806107935750610793825b60006001600160e01b03198216632a9f3abf60e11b148061079357506301ffc9a760e01b6001600160e01b0319831614610793565b600081815260076020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612c89826114b9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b0316612d3b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106ff565b6000612d46836114b9565b9050806001600160a01b0316846001600160a01b03161480612d815750836001600160a01b0316612d768461082b565b6001600160a01b0316145b80612db157506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b949350505050565b61deac196001600160a01b03831601612dd5576109ee81612f4d565b6109ee83838361339f565b6001600160a01b038216612e365760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106ff565b6000818152600560205260409020546001600160a01b031615612e9b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106ff565b6001600160a01b0382166000908152600660205260408120805460019290612ec4908490614622565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000612bdc836001600160a01b03841661353b565b6000610793825490565b6000612bdc838361362e565b6011612f5a60fa8361460e565b81548110612f6a57612f6a61455c565b600091825260209091206002909102018054600160c81b900463ffffffff16906019612f95836147ae565b825463ffffffff9182166101009390930a928302919092021990911617905550600081815260126020526040812055610d4381613658565b6000612bdc836001600160a01b0384166136f3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036130935760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106ff565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61310b848484612db9565b61311784848484613742565b611be05760405162461bcd60e51b81526004016106ff906147ce565b600080601183815481106131495761314961455c565b6000918252602090912060029091020180549091506001600160a01b03811690600160a81b900463ffffffff1682601561318283614820565b82546101009290920a63ffffffff8181021990931691831602179091558354600160c81b90041690508260196131b783614820565b82546101009290920a63ffffffff818102199093169183160217909155835460009250600160a81b9004166131ed60fa876145d9565b6131f79190614622565b6010805491925060006132098361463a565b91905055506132188282612de0565b856001600160a01b0316826001600160a01b03161461323c5761323c828783612db9565b95945050505050565b6000816040516020016132589190614843565b604051602081830303815290604052805190602001208360405160200161327f919061485f565b6040516020818303038152906040528051906020012014905092915050565b6060816000036132c55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156132ef57806132d98161463a565b91506132e89050600a8361460e565b91506132c9565b60008167ffffffffffffffff81111561330a5761330a613d88565b6040519080825280601f01601f191660200182016040528015613334576020820181803683370190505b5090505b8415612db1576133496001836146e1565b9150613356600a8661469e565b613361906030614622565b60f81b8183815181106133765761337661455c565b60200101906001600160f81b031916908160001a905350613398600a8661460e565b9450613338565b826001600160a01b03166133b2826114b9565b6001600160a01b0316146134165760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016106ff565b6001600160a01b0382166134785760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106ff565b613483600082612c54565b6001600160a01b03831660009081526006602052604081208054600192906134ac9084906146e1565b90915550506001600160a01b03821660009081526006602052604081208054600192906134da908490614622565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818152600183016020526040812054801561362457600061355f6001836146e1565b8554909150600090613573906001906146e1565b90508181146135d85760008660000182815481106135935761359361455c565b90600052602060002001549050808760000184815481106135b6576135b661455c565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806135e9576135e961486b565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610793565b6000915050610793565b60008260000182815481106136455761364561455c565b9060005260206000200154905092915050565b6000613663826114b9565b9050613670600083612c54565b6001600160a01b03811660009081526006602052604081208054600192906136999084906146e1565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600081815260018301602052604081205461373a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610793565b506000610793565b60006001600160a01b0384163b1561383857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613786903390899088908890600401614881565b6020604051808303816000875af19250505080156137c1575060408051601f3d908101601f191682019092526137be918101906148bd565b60015b61381e573d8080156137ef576040519150601f19603f3d011682016040523d82523d6000602084013e6137f4565b606091505b5080516000036138165760405162461bcd60e51b81526004016106ff906147ce565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612db1565b506001949350505050565b828054828255906000526020600020908101928215613890579160200282015b82811115613890578251805161388091849160209091019061391c565b5091602001919060010190613863565b50610fde9291506139b1565b8280546138a890614522565b90600052602060002090601f0160209004810192826138ca5760008555613910565b82601f106138e35782800160ff19823516178555613910565b82800160010185558215613910579182015b828111156139105782358255916020019190600101906138f5565b50610fde9291506139ce565b82805461392890614522565b90600052602060002090601f01602090048101928261394a5760008555613910565b82601f1061396357805160ff1916838001178555613910565b82800160010185558215613910579182015b82811115613910578251825591602001919060010190613975565b5080546000825560020290600052602060002090810190610d4391906139e3565b80821115610fde5760006139c58282613a11565b506001016139b1565b5b80821115610fde57600081556001016139cf565b80821115610fde5780546001600160e81b03191681556000613a086001830182613a11565b506002016139e3565b508054613a1d90614522565b6000825580601f10613a2d575050565b601f016020900490600052602060002090810190610d4391906139ce565b600060208284031215613a5d57600080fd5b5035919050565b6001600160e01b031981168114610d4357600080fd5b600060208284031215613a8c57600080fd5b8135612bdc81613a64565b60005b83811015613ab2578181015183820152602001613a9a565b83811115611be05750506000910152565b60008151808452613adb816020860160208601613a97565b601f01601f19169290920160200192915050565b602081526000612bdc6020830184613ac3565b6001600160a01b0381168114610d4357600080fd5b60008060408385031215613b2a57600080fd5b8235613b3581613b02565b946020939093013593505050565b600081518084526020808501945080840160005b83811015613b7357815187529582019590820190600101613b57565b509495945050505050565b602081526000612bdc6020830184613b43565b600080600060608486031215613ba657600080fd5b8335613bb181613b02565b92506020840135613bc181613b02565b929592945050506040919091013590565b600060208284031215613be457600080fd5b8135612bdc81613b02565b60008060408385031215613c0257600080fd5b50508035926020909101359150565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b83811015613cae57888303603f19018552815180516001600160a01b03168452878101511515888501528681015163ffffffff908116888601526060808301519091169085015260809081015160a091850182905290613c9a81860183613ac3565b968901969450505090860190600101613c38565b509098975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613cfd5783516001600160a01b031683529284019291840191600101613cd8565b50909695505050505050565b600080600060408486031215613d1e57600080fd5b83359250602084013567ffffffffffffffff80821115613d3d57600080fd5b818601915086601f830112613d5157600080fd5b813581811115613d6057600080fd5b8760208260051b8501011115613d7557600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715613dc157613dc1613d88565b60405290565b6040516080810167ffffffffffffffff81118282101715613dc157613dc1613d88565b60405160a0810167ffffffffffffffff81118282101715613dc157613dc1613d88565b604051601f8201601f1916810167ffffffffffffffff81118282101715613e3657613e36613d88565b604052919050565b600067ffffffffffffffff821115613e5857613e58613d88565b5060051b60200190565b600067ffffffffffffffff831115613e7c57613e7c613d88565b613e8f601f8401601f1916602001613e0d565b9050828152838383011115613ea357600080fd5b828260208301376000602084830101529392505050565b600082601f830112613ecb57600080fd5b612bdc83833560208501613e62565b60006020808385031215613eed57600080fd5b823567ffffffffffffffff80821115613f0557600080fd5b818501915085601f830112613f1957600080fd5b8135613f2c613f2782613e3e565b613e0d565b81815260059190911b83018401908481019088831115613f4b57600080fd5b8585015b83811015613f8357803585811115613f675760008081fd5b613f758b89838a0101613eba565b845250918601918601613f4f565b5098975050505050505050565b60008060208385031215613fa357600080fd5b823567ffffffffffffffff80821115613fbb57600080fd5b818501915085601f830112613fcf57600080fd5b813581811115613fde57600080fd5b866020828501011115613ff057600080fd5b60209290920196919550909350505050565b6000806040838503121561401557600080fd5b8235915067ffffffffffffffff806020850135111561403357600080fd5b6020840135840185601f82011261404957600080fd5b614056613f278235613e3e565b81358082526020808301929160051b8401018881111561407557600080fd5b602084015b818110156141b557858135111561409057600080fd5b80358501601f196040828d03820112156140a957600080fd5b6140b1613d9e565b6140be6020840135613b02565b6020830135815288604084013511156140d657600080fd5b604083013583019250608082848f030112156140f157600080fd5b6140f9613dc7565b9150886020840135111561410c57600080fd5b61411e8d602080860135860101613eba565b8252886040840135111561413157600080fd5b6141448d60206040860135860101613eba565b6020830152886060840135111561415a57600080fd5b61416d8d60206060860135860101613eba565b6040830152886080840135111561418357600080fd5b6141968d60206080860135860101613eba565b606083015260208181019290925286529485019491909101905061407a565b50959890975095505050505050565b80358015158114610a4a57600080fd5b600080604083850312156141e757600080fd5b82356141f281613b02565b9150614200602084016141c4565b90509250929050565b6000806000806080858703121561421f57600080fd5b843561422a81613b02565b9350602085013561423a81613b02565b925060408501359150606085013567ffffffffffffffff81111561425d57600080fd5b8501601f8101871361426e57600080fd5b61427d87823560208401613e62565b91505092959194509250565b600081518084526020808501945080840160005b83811015613b735781516001600160a01b03168752958201959082019060010161429d565b602081526000612bdc6020830184614289565b6040815260006142e86040830185614289565b828103602084015261323c8185613b43565b60006020828403121561430c57600080fd5b612bdc826141c4565b60008060008060008060c0878903121561432e57600080fd5b863561433981613b02565b95506020870135945060408701359350606087013561435781613b02565b9598949750929560808101359460a0909101359350915050565b6000806040838503121561438457600080fd5b823561438f81613b02565b9150602083013561439f81613b02565b809150509250929050565b803563ffffffff81168114610a4a57600080fd5b600060208083850312156143d157600080fd5b823567ffffffffffffffff808211156143e957600080fd5b818501915085601f8301126143fd57600080fd5b813561440b613f2782613e3e565b81815260059190911b8301840190848101908883111561442a57600080fd5b8585015b83811015613f83578035858111156144465760008081fd5b860160a0818c03601f190181131561445e5760008081fd5b614466613dea565b8983013561447381613b02565b815260406144828482016141c4565b8b83015260606144938186016143aa565b82840152608091506144a68286016143aa565b908301529183013591888311156144bd5760008081fd5b6144cb8e8c85870101613eba565b908201528552505091860191860161442e565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b600181811c9082168061453657607f821691505b60208210810361455657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156145f3576145f36145c3565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261461d5761461d6145f8565b500490565b60008219821115614635576146356145c3565b500190565b60006001820161464c5761464c6145c3565b5060010190565b6020808252602b908201527f4552433732314d657461646174613a20717565727920666f72206e6f6e65786960408201526a39ba32b73a103a37b5b2b760a91b606082015260800190565b6000826146ad576146ad6145f8565b500690565b600083516146c4818460208801613a97565b8351908301906146d8818360208801613a97565b01949350505050565b6000828210156146f3576146f36145c3565b500390565b8054600090600181811c908083168061471257607f831692505b6020808410820361473357634e487b7160e01b600052602260045260246000fd5b818015614747576001811461475857614784565b60ff19861689528489019650614784565b876000528160002060005b8681101561477c5781548b820152908501908301614763565b505084890196505b50505050505092915050565b600083516147a2818460208801613a97565b61323c818401856146f8565b600063ffffffff8216806147c4576147c46145c3565b6000190192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600063ffffffff808316818103614839576148396145c3565b6001019392505050565b60008251614855818460208701613a97565b9190910192915050565b6000612bdc82846146f8565b634e487b7160e01b600052603160045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526148b36080830184613ac3565b9695505050505050565b6000602082840312156148cf57600080fd5b8151612bdc81613a6456fea264697066735822122005bd769a77a87a24da142fce8008b90d585c2ae7d8dcbd105e5510a68636ff0864736f6c634300080d0033

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.