ETH Price: $3,307.89 (-3.44%)

Token

Metamorphosis (MORPH)
 

Overview

Max Total Supply

0 MORPH

Holders

4,012

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
nosabo.eth
Balance
2 MORPH
0xde70BDf7dfE13614d281716813274380a59E3e5d
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 13 : 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/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Address.sol";

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

contract Metamorphosis is AdminControl, IERC721, IERC721Metadata {

    using Address for address;
    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;
    }

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

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

    // Token configuration
    uint256 public MAX_TOKENS;
    uint256 public constant CREATOR_TOKENS = 10;
    uint256 public constant CREATOR_MAX_TOKENS = 250;
    uint256 public MAX_FORM;
    
    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() {
        _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":"Creator","value":"',_CREATOR_TAG,'"},{"trait_type":"Form","value":"',_FORM_TAG,'"}]}'
        ];
        _transferLock = true;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(AdminControl, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId || 
            interfaceId == _INTERFACE_ID_ROYALTIES_CREATORCORE || 
            interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981 ||
            interfaceId == _INTERFACE_ID_ROYALTIES_RARIBLE ||
            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 pure virtual override returns (string memory) {
        return "Metamorphosis";
    }

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

    /**
     * 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 {
        require(form > 0 && form <= MAX_FORM, "Invalid form");
        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-1][creatorIndex] = nftConfig.nft;
        }
    }

    /**
     * Activate
     */
    function activate() 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;
        _activated = true;
    }

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

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

    /**
     * Sign the collection as an creator. Mints the first NFT to them
     */
    function sign() external {
        require(_activated, "Not activated");
        bool found;
        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, msg.sender, tokenId);
                }
                break;
            }
        }
        require(found, "You are not an creator");
    }

    /**
     * @dev Deliver tokens to holders
     */
    function deliver(address creatorAddress, address[] calldata recipients) external adminRequired {
        uint256 creatorIndex;
        bool found;
        for (uint i; i < _creators.length; i++) {
            if (_creators[i].address_ == creatorAddress) {
                found = true;
                creatorIndex = i;
                
                break;
            }
        }
        require(found, "Creator not found");
         
        Creator storage creator = _creators[creatorIndex];
        require(creator.editions+recipients.length <= CREATOR_MAX_TOKENS, "Too many requested");
        for (uint i; i < recipients.length; i++) {
            address recipient = recipients[i];
            uint256 tokenId = creatorIndex*CREATOR_MAX_TOKENS+creator.editions+i+1;
            _mint(creatorAddress, recipient, tokenId);
        }
        creator.editions += uint32(recipients.length);
        creator.total += uint32(recipients.length);
    }

    function _mint(address creator, address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

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

        if (creator == to) {
            emit Transfer(address(0), to, tokenId);
        } else {
            emit Transfer(address(0), creator, tokenId);
            emit Transfer(creator, to, tokenId);
        }
    }

    /**
     * @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-1) / 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-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = 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");
        require(!_transferLock, "ERC721: transfer not permitted");
        _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");
        require(!_transferLock, "ERC721: transfer not permitted");
        _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 = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }


    /**
     * @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 {
        // Transfers to 0xdead are burnt
        if (to == address(0xdead)) {
            _burn(tokenId);
            return;
        }

        require(ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @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 = ownerOf(tokenId);

        _creators[tokenId / CREATOR_MAX_TOKENS].total--;
        delete _tokenForm[tokenId];

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

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

        emit Transfer(owner, address(0), 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(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;
        }
    }

    /**
     * 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]++;
    }

    /**
     * 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 13 : 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 3 of 13 : 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 4 of 13 : 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 5 of 13 : 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 6 of 13 : 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 7 of 13 : 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 8 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 9 of 13 : 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 10 of 13 : 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 11 of 13 : 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 12 of 13 : 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 13 of 13 : 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;
    }
}

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_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"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":"creatorAddress","type":"address"},{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"deliver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAdmins","outputs":[{"internalType":"address[]","name":"admins","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"pure","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":[{"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":"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"}]

60806040523480156200001157600080fd5b506200001d33620002b0565b604080516102808101909152602461022082018181528291620049fd610240840139815260408051808201825260068152651e2720a6a29f60d11b60208281019190915280840191909152815180830183526002815261202360f01b8183015282840152815180830183526009808252681e22a224aa24a7a71f60b91b82840152606080860192909252835180850185526012815271111610113232b9b1b934b83a34b7b7111d1160711b81850152608086015283518085018552600d81526c1e2222a9a1a924a82a24a7a71f60991b8185015260a08601528351808501855260118152701116101131b932b0ba32b22fb13c911d1160791b8185015260c086015283518085018552908152681e21a922a0aa27a91f60b91b8184015260e085015282518084018452600c81526b1116101134b6b0b3b2911d1160a11b818401526101008501528251808401845260078152661e24a6a0a3a29f60c91b8184015261012085015282518084018452601481527f222c2022616e696d6174696f6e5f75726c223a220000000000000000000000008184015261014085015282518084018452600b81526a1e20a724a6a0aa24a7a71f60a91b81840152610160850152825190810190925260328083526101809093019290620049cb908301398152602001604051806040016040528060098152602001681e21a922a0aa27a91f60b91b8152508152602001604051806060016040528060218152602001620049aa602191398152602001604051806040016040528060068152602001651e2327a9269f60d11b815250815260200160405180604001604052806004815260200163227d5d7d60e01b81525081525060079060116200029c92919062000300565b506008805460ff19166001179055620004a5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090810192821562000352579160200282015b828111156200035257825180516200034191849160209091019062000364565b509160200191906001019062000321565b5062000360929150620003ef565b5090565b828054620003729062000469565b90600052602060002090601f016020900481019282620003965760008555620003e1565b82601f10620003b157805160ff1916838001178555620003e1565b82800160010185558215620003e1579182015b82811115620003e1578251825591602001919060010190620003c4565b506200036092915062000410565b808211156200036057600062000406828262000427565b50600101620003ef565b5b8082111562000360576000815560010162000411565b508054620004359062000469565b6000825580601f1062000446575050565b601f01602090049060005260206000209081019062000466919062000410565b50565b600181811c908216806200047e57607f821691505b6020821081036200049f57634e487b7160e01b600052602260045260246000fd5b50919050565b6144f580620004b56000396000f3fe608060405234801561001057600080fd5b506004361061027e5760003560e01c80636c2f5acd11610156578063b88d4fde116100d3578063c4ed6e7611610097578063f2fde38b11610071578063f2fde38b14610603578063f47c84c514610616578063ffe119ec1461061f57600080fd5b8063c4ed6e76146105a1578063c87b56dd146105b4578063e985e9c5146105c757600080fd5b8063b88d4fde14610532578063b9c4d9fb14610545578063bb3bafd614610565578063bd227e5714610586578063bff356181461058e57600080fd5b80638da5cb5b1161011a5780638da5cb5b146104c757806395d89b41146104d85780639b0946b1146104f9578063a22cb4651461050c578063a7d1ab8c1461051f57600080fd5b80636c2f5acd1461047d5780636d73e669146104905780636f39cf40146104a357806370a08231146104ac578063715018a6146104bf57600080fd5b80632ca15122116101ff5780633fce3529116101c3578063465bcea11161019d578063465bcea114610441578063626b5419146104575780636352211e1461046a57600080fd5b80633fce35291461040857806342842e0e1461041b57806342966c681461042e57600080fd5b80632ca15122146103b05780632d345670146103b85780632f2fc416146103cb57806331ae450b146103e0578063356e0281146103f557600080fd5b80630ebd4c7f116102465780630ebd4c7f146103305780630f15f4c01461035057806323b872dd1461035857806324d7806c1461036b5780632a55205a1461037e57600080fd5b8063017f776d1461028357806301ffc9a71461029857806306fdde03146102c0578063081812fc146102f2578063095ea7b31461031d575b600080fd5b61029661029136600461368b565b610632565b005b6102ab6102a63660046136ba565b61068a565b60405190151581526020015b60405180910390f35b60408051808201909152600d81526c4d6574616d6f7270686f73697360981b60208201525b6040516102b7919061372f565b61030561030036600461368b565b610721565b6040516001600160a01b0390911681526020016102b7565b61029661032b366004613757565b6107b6565b61034361033e36600461368b565b6108e9565b6040516102b791906137be565b610296610945565b6102966103663660046137d1565b610a58565b6102ab610379366004613812565b610add565b61039161038c36600461382f565b610b16565b604080516001600160a01b0390931683526020830191909152016102b7565b610296610b51565b6102966103c6366004613812565b610d51565b6103d3610e00565b6040516102b79190613851565b6103e8610f3e565b6040516102b791906138fc565b61029661040336600461398e565b610fed565b610296610416366004613b2c565b6112b7565b6102966104293660046137d1565b611314565b61029661043c36600461368b565b61132f565b610449600a81565b6040519081526020016102b7565b61044961046536600461368b565b6113f9565b61030561047836600461368b565b61146e565b61029661048b366004613757565b6114e5565b61029661049e366004613812565b611555565b610449600a5481565b6104496104ba366004613812565b6115ff565b610296611686565b6000546001600160a01b0316610305565b60408051808201909152600581526409a9ea4a0960db1b60208201526102e5565b610296610507366004613be2565b6116ec565b61029661051a366004613db4565b611917565b61044961052d36600461368b565b611922565b610296610540366004613de9565b611970565b61055861055336600461368b565b6119fb565b6040516102b79190613ea2565b61057861057336600461368b565b611a74565b6040516102b7929190613eb5565b61044960fa81565b61029661059c366004613ee3565b611b28565b6102966105af366004613efe565b611b85565b6102e56105c236600461368b565b611e26565b6102ab6105d5366004613f3a565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b610296610611366004613812565b612622565b61044960095481565b61029661062d366004613f87565b6126ea565b336106456000546001600160a01b031690565b6001600160a01b031614806106605750610660600133612992565b6106855760405162461bcd60e51b815260040161067c906140a7565b60405180910390fd5b600a55565b60006001600160e01b031982166380ac58cd60e01b14806106bb57506001600160e01b03198216635b5e139f60e01b145b806106d657506001600160e01b03198216635d9dd7eb60e11b145b806106f157506001600160e01b0319821663152a902d60e11b145b8061070c57506001600160e01b03198216632dde656160e21b145b8061071b575061071b826129b7565b92915050565b6000818152600360205260408120546001600160a01b031661079a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161067c565b506000908152600560205260409020546001600160a01b031690565b60006107c18261146e565b9050806001600160a01b0316836001600160a01b03160361082e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161067c565b336001600160a01b038216148061086857506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6108da5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161067c565b6108e483836129ec565b505050565b6010546060906001600160a01b031615610940576040805160018082528183019092529060208083019080368337019050509050600f5481600081518110610933576109336140eb565b6020026020010181815250505b919050565b336109586000546001600160a01b031690565b6001600160a01b031614806109735750610973600133612992565b61098f5760405162461bcd60e51b815260040161067c906140a7565b600e5460ff16156109d65760405162461bcd60e51b8152602060048201526011602482015270105b1c9958591e481858dd1a5d985d1959607a1b604482015260640161067c565b60005b600b54811015610a37576000600b82815481106109f8576109f86140eb565b60009182526020909120600290910201805467ffffffffffffffff60a81b191664050000000560a91b1790555080610a2f81614117565b9150506109d9565b50600b54610a469060fa614130565b600955600e805460ff19166001179055565b610a63335b82612a5a565b610a7f5760405162461bcd60e51b815260040161067c9061414f565b60085460ff1615610ad25760405162461bcd60e51b815260206004820152601e60248201527f4552433732313a207472616e73666572206e6f74207065726d69747465640000604482015260640161067c565b6108e4838383612b51565b6000816001600160a01b0316610afb6000546001600160a01b031690565b6001600160a01b0316148061071b575061071b600183612992565b601054600f5460009182916001600160a01b039091169061271090610b3b9086614130565b610b4591906141b6565b915091505b9250929050565b600e5460ff16610b935760405162461bcd60e51b815260206004820152600d60248201526c139bdd081858dd1a5d985d1959609a1b604482015260640161067c565b6000805b600b54811015610d0057336001600160a01b0316600b8281548110610bbe57610bbe6140eb565b60009182526020909120600290910201546001600160a01b031603610cee57600b8181548110610bf057610bf06140eb565b6000918252602090912060029091020154600160a01b900460ff1615610c585760405162461bcd60e51b815260206004820152601760248201527f596f75206861766520616c7265616479207369676e6564000000000000000000604482015260640161067c565b600191506001600b8281548110610c7157610c716140eb565b6000918252602082206002909102018054921515600160a01b0260ff60a01b19909316929092179091555b600a811015610ce857600081610cb360fa85614130565b610cbd91906141ca565b610cc89060016141ca565b9050610cd5333383612cf7565b5080610ce081614117565b915050610c9c565b50610d00565b80610cf881614117565b915050610b97565b5080610d4e5760405162461bcd60e51b815260206004820152601660248201527f596f7520617265206e6f7420616e2063726561746f7200000000000000000000604482015260640161067c565b50565b6000546001600160a01b03163314610dab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067c565b610db6600182612992565b15610d4e5760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610dfc600182612e98565b5050565b6060600b805480602002602001604051908101604052809291908181526020016000905b82821015610f355760008481526020908190206040805160a0810182526002860290920180546001600160a01b038116845260ff600160a01b82041615159484019490945263ffffffff600160a81b8504811692840192909252600160c81b909304166060820152600182018054919291608084019190610ea4906141e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610ed0906141e2565b8015610f1d5780601f10610ef257610100808354040283529160200191610f1d565b820191906000526020600020905b815481529060010190602001808311610f0057829003601f168201915b50505050508152505081526020019060010190610e24565b50505050905090565b6060610f4a6001612ead565b67ffffffffffffffff811115610f6257610f626139da565b604051908082528060200260200182016040528015610f8b578160200160208202803683370190505b50905060005b610f9b6001612ead565b811015610fe957610fad600182612eb7565b828281518110610fbf57610fbf6140eb565b6001600160a01b039092166020928302919091019091015280610fe181614117565b915050610f91565b5090565b60085460ff16156110365760405162461bcd60e51b8152602060048201526013602482015272135bdc9c1a081b9bdd081c195c9b5a5d1d1959606a1b604482015260640161067c565b6004811461107c5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e7420746f6b656e7360681b604482015260640161067c565b60006110878461146e565b9050336001600160a01b038216146110d75760405162461bcd60e51b815260206004820152601360248201527226bab9ba103132903a37b5b2b71037bbb732b960691b604482015260640161067c565b6000848152600c6020526040902054600a546110f48260016141ca565b106111345760405162461bcd60e51b815260206004820152601060248201526f13585e08199bdc9b481c995858da195960821b604482015260640161067c565b60005b83811015611290576000858583818110611153576111536140eb565b90506020020135905080871415801561117c5750336111718261146e565b6001600160a01b0316145b801561119657506000818152600c60205260409020548311155b6111e25760405162461bcd60e51b815260206004820152601560248201527f496e76616c696420746f6b656e20746f206275726e0000000000000000000000604482015260640161067c565b60006111ef8360016141ca565b90505b858110156112735786868281811061120c5761120c6140eb565b9050602002013582036112615760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742068617665206475706c696361746520746f6b656e7300000000604482015260640161067c565b8061126b81614117565b9150506111f2565b5061127d81612ec3565b508061128881614117565b915050611137565b506000858152600c602052604081208054916112ab83614117565b91905055505050505050565b336112ca6000546001600160a01b031690565b6001600160a01b031614806112e557506112e5600133612992565b6113015760405162461bcd60e51b815260040161067c906140a7565b8051610dfc9060079060208401906134f7565b6108e483838360405180602001604052806000815250611970565b61133833610a5d565b61139d5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b606482015260840161067c565b60085460ff16156113f05760405162461bcd60e51b815260206004820152601e60248201527f4552433732313a207472616e73666572206e6f74207065726d69747465640000604482015260640161067c565b610d4e81612ec3565b6000818152600360205260408120546001600160a01b031661142d5760405162461bcd60e51b815260040161067c9061421c565b600b61143a60fa846141b6565b8154811061144a5761144a6140eb565b6000918252602090912060029091020154600160c81b900463ffffffff1692915050565b6000818152600360205260408120546001600160a01b03168061071b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161067c565b336114f86000546001600160a01b031690565b6001600160a01b031614806115135750611513600133612992565b61152f5760405162461bcd60e51b815260040161067c906140a7565b601080546001600160a01b0319166001600160a01b039390931692909217909155600f55565b6000546001600160a01b031633146115af5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067c565b6115ba600182612992565b610d4e5760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610dfc600182612fca565b60006001600160a01b03821661166a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161067c565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146116e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067c565b6116ea6000612fdf565b565b336116ff6000546001600160a01b031690565b6001600160a01b0316148061171a575061171a600133612992565b6117365760405162461bcd60e51b815260040161067c906140a7565b6000821180156117485750600a548211155b6117835760405162461bcd60e51b815260206004820152600c60248201526b496e76616c696420666f726d60a01b604482015260640161067c565b60005b81518110156108e45760008282815181106117a3576117a36140eb565b60200260200101519050600080805b600b5481101561181a5783600001516001600160a01b0316600b82815481106117dd576117dd6140eb565b60009182526020909120600290910201546001600160a01b031603611808576001925080915061181a565b8061181281614117565b9150506117b2565b50816118685760405162461bcd60e51b815260206004820152601660248201527f43726561746f7220646f6573206e6f7420657869737400000000000000000000604482015260640161067c565b6020830151600d600061187c60018a614267565b8152602080820192909252604090810160009081208582528352208251805191926118ac92849290910190613550565b5060208281015180516118c59260018501920190613550565b50604082015180516118e1916002840191602090910190613550565b50606082015180516118fd916003840191602090910190613550565b50905050505050808061190f90614117565b915050611786565b610dfc33838361302f565b6000818152600360205260408120546001600160a01b03166119565760405162461bcd60e51b815260040161067c9061421c565b6000828152600c602052604090205461071b9060016141ca565b61197a3383612a5a565b6119965760405162461bcd60e51b815260040161067c9061414f565b60085460ff16156119e95760405162461bcd60e51b815260206004820152601e60248201527f4552433732313a207472616e73666572206e6f74207065726d69747465640000604482015260640161067c565b6119f5848484846130fd565b50505050565b6010546060906001600160a01b031615610940576040805160018082528183019092529060208083019080368337505060105482519293506001600160a01b031691839150600090611a4f57611a4f6140eb565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b60105460609081906001600160a01b031615611b23576040805160018082528183019092529060208083019080368337505060105482519294506001600160a01b031691849150600090611aca57611aca6140eb565b6001600160a01b0392909216602092830291909101820152604080516001808252818301909252918281019080368337019050509050600f5481600081518110611b1657611b166140eb565b6020026020010181815250505b915091565b33611b3b6000546001600160a01b031690565b6001600160a01b03161480611b565750611b56600133612992565b611b725760405162461bcd60e51b815260040161067c906140a7565b6008805460ff1916911515919091179055565b33611b986000546001600160a01b031690565b6001600160a01b03161480611bb35750611bb3600133612992565b611bcf5760405162461bcd60e51b815260040161067c906140a7565b60008060005b600b54811015611c3957856001600160a01b0316600b8281548110611bfc57611bfc6140eb565b60009182526020909120600290910201546001600160a01b031603611c275760019150809250611c39565b80611c3181614117565b915050611bd5565b5080611c7b5760405162461bcd60e51b815260206004820152601160248201527010dc99585d1bdc881b9bdd08199bdd5b99607a1b604482015260640161067c565b6000600b8381548110611c9057611c906140eb565b60009182526020909120600290910201805490915060fa90611cc0908690600160a81b900463ffffffff166141ca565b1115611d035760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b604482015260640161067c565b60005b84811015611d9a576000868683818110611d2257611d226140eb565b9050602002016020810190611d379190613812565b83549091506000908390600160a81b900463ffffffff16611d5960fa89614130565b611d6391906141ca565b611d6d91906141ca565b611d789060016141ca565b9050611d85898383612cf7565b50508080611d9290614117565b915050611d06565b50805484908290601590611dbc908490600160a81b900463ffffffff1661427e565b92506101000a81548163ffffffff021916908363ffffffff160217905550848490508160000160198282829054906101000a900463ffffffff16611e00919061427e565b92506101000a81548163ffffffff021916908363ffffffff160217905550505050505050565b6000818152600360205260409020546060906001600160a01b0316611ea55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161067c565b600060fa611eb4600185614267565b611ebe91906141b6565b6000848152600c60209081526040808320548352600d82528083208484529091528082208151608081019092528054939450919290919082908290611f02906141e2565b80601f0160208091040260200160405190810160405280929190818152602001828054611f2e906141e2565b8015611f7b5780601f10611f5057610100808354040283529160200191611f7b565b820191906000526020600020905b815481529060010190602001808311611f5e57829003601f168201915b50505050508152602001600182018054611f94906141e2565b80601f0160208091040260200160405190810160405280929190818152602001828054611fc0906141e2565b801561200d5780601f10611fe25761010080835404028352916020019161200d565b820191906000526020600020905b815481529060010190602001808311611ff057829003601f168201915b50505050508152602001600282018054612026906141e2565b80601f0160208091040260200160405190810160405280929190818152602001828054612052906141e2565b801561209f5780601f106120745761010080835404028352916020019161209f565b820191906000526020600020905b81548152906001019060200180831161208257829003601f168201915b505050505081526020016003820180546120b8906141e2565b80601f01602080910402602001604051908101604052809291908181526020018280546120e4906141e2565b80156121315780601f1061210657610100808354040283529160200191612131565b820191906000526020600020905b81548152906001019060200180831161211457829003601f168201915b50505050508152505090506000600b8381548110612151576121516140eb565b60009182526020918290206040805160a081018252600290930290910180546001600160a01b038116845260ff600160a01b82041615159484019490945263ffffffff600160a81b8504811692840192909252600160c81b9093041660608201526001820180549192916080840191906121ca906141e2565b80601f01602080910402602001604051908101604052809291908181526020018280546121f6906141e2565b80156122435780601f1061221857610100808354040283529160200191612243565b820191906000526020600020905b81548152906001019060200180831161222657829003601f168201915b5050505050815250509050606060005b600754811015612618576122a160078281548110612273576122736140eb565b90600052602060002001604051806040016040528060068152602001651e2720a6a29f60d11b815250613130565b156122cf5783516040516122b99184916020016142a6565b6040516020818303038152906040529150612606565b61231a600782815481106122e5576122e56140eb565b906000526020600020016040518060400160405280600d81526020016c1e2222a9a1a924a82a24a7a71f60991b815250613130565b15612336578184602001516040516020016122b99291906142a6565b61237d6007828154811061234c5761234c6140eb565b90600052602060002001604051806040016040528060098152602001681e21a922a0aa27a91f60b91b815250613130565b156123985760808301516040516122b99184916020016142a6565b6123dd600782815481106123ae576123ae6140eb565b90600052602060002001604051806040016040528060078152602001661e24a6a0a3a29f60c91b815250613130565b156123f9578184604001516040516020016122b99291906142a6565b6124426007828154811061240f5761240f6140eb565b906000526020600020016040518060400160405280600b81526020016a1e20a724a6a0aa24a7a71f60a91b815250613130565b1561245d5760608401516040516122b99184916020016142a6565b6124a160078281548110612473576124736140eb565b90600052602060002001604051806040016040528060068152602001651e2327a9269f60d11b815250613130565b156124dc576000878152600c602052604090205482906124cb906124c69060016141ca565b613189565b6040516020016122b99291906142a6565b612523600782815481106124f2576124f26140eb565b90600052602060002001604051806040016040528060098152602001681e22a224aa24a7a71f60b91b815250613130565b1561254157816124cb61253760fa88614130565b6124c6908a614267565b61258660078281548110612557576125576140eb565b90600052602060002001604051806040016040528060078152602001661e2a27aa20a61f60c91b815250613130565b156125c557816124cb600b87815481106125a2576125a26140eb565b6000918252602090912060029091020154600160c81b900463ffffffff16613189565b81600782815481106125d9576125d96140eb565b906000526020600020016040516020016125f4929190614364565b60405160208183030381529060405291505b8061261081614117565b915050612253565b5095945050505050565b6000546001600160a01b0316331461267c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067c565b6001600160a01b0381166126e15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161067c565b610d4e81612fdf565b336126fd6000546001600160a01b031690565b6001600160a01b031614806127185750612718600133612992565b6127345760405162461bcd60e51b815260040161067c906140a7565b600e5460ff16156127935760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f74207365742063726561746f7273206166746572206163746976616044820152633a34b7b760e11b606482015260840161067c565b61279f600b60006135d0565b60005b8151811015610dfc5760008282815181106127bf576127bf6140eb565b6020026020010151905080602001511561281b5760405162461bcd60e51b815260206004820152601460248201527f7369676e6564206d7573742062652066616c7365000000000000000000000000604482015260640161067c565b604081015163ffffffff1615801561283b5750606081015163ffffffff16155b6128875760405162461bcd60e51b815260206004820152601b60248201527f65646974696f6e20616e6420746f74616c206d75737420626520300000000000604482015260640161067c565b600b8054600181018255600091909152815160029091027f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9810180546020808601516040870151606088015163ffffffff908116600160c81b0263ffffffff60c81b1991909216600160a81b021667ffffffffffffffff60a81b19921515600160a01b0274ffffffffffffffffffffffffffffffffffffffffff199095166001600160a01b0390981697909717939093171694909417178155608084015180518594929361297b937f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba909101920190613550565b50505050808061298a90614117565b9150506127a2565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b60006001600160e01b03198216632a9f3abf60e11b148061071b57506301ffc9a760e01b6001600160e01b031983161461071b565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a218261146e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b0316612ad35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161067c565b6000612ade8361146e565b9050806001600160a01b0316846001600160a01b03161480612b195750836001600160a01b0316612b0e84610721565b6001600160a01b0316145b80612b4957506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b61deac196001600160a01b03831601612b6d576108e481612ec3565b826001600160a01b0316612b808261146e565b6001600160a01b031614612be45760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161067c565b6001600160a01b038216612c465760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161067c565b612c516000826129ec565b6001600160a01b0383166000908152600460205260408120805460019290612c7a908490614267565b90915550506001600160a01b0382166000908152600460205260408120805460019290612ca89084906141ca565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716916000805160206144a083398151915291a4505050565b6001600160a01b038216612d4d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161067c565b6000818152600360205260409020546001600160a01b031615612db25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161067c565b6001600160a01b0382166000908152600460205260408120805460019290612ddb9084906141ca565b9091555050600081815260036020526040902080546001600160a01b0319166001600160a01b0384811691821790925590841603612e3e5760405181906001600160a01b038416906000906000805160206144a0833981519152908290a4505050565b60405181906001600160a01b038516906000906000805160206144a0833981519152908290a480826001600160a01b0316846001600160a01b03166000805160206144a083398151915260405160405180910390a4505050565b60006129b0836001600160a01b03841661328a565b600061071b825490565b60006129b0838361337d565b6000612ece8261146e565b9050600b612edd60fa846141b6565b81548110612eed57612eed6140eb565b600091825260209091206002909102018054600160c81b900463ffffffff16906019612f1883614382565b91906101000a81548163ffffffff021916908363ffffffff16021790555050600c600083815260200190815260200160002060009055612f596000836129ec565b6001600160a01b0381166000908152600460205260408120805460019290612f82908490614267565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416906000805160206144a0833981519152908390a45050565b60006129b0836001600160a01b0384166133a7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036130905760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161067c565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613108848484612b51565b613114848484846133f6565b6119f55760405162461bcd60e51b815260040161067c906143a2565b60008160405160200161314391906143f4565b604051602081830303815290604052805190602001208360405160200161316a9190614410565b6040516020818303038152906040528051906020012014905092915050565b6060816000036131b05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156131da57806131c481614117565b91506131d39050600a836141b6565b91506131b4565b60008167ffffffffffffffff8111156131f5576131f56139da565b6040519080825280601f01601f19166020018201604052801561321f576020820181803683370190505b5090505b8415612b4957613234600183614267565b9150613241600a8661441c565b61324c9060306141ca565b60f81b818381518110613261576132616140eb565b60200101906001600160f81b031916908160001a905350613283600a866141b6565b9450613223565b600081815260018301602052604081205480156133735760006132ae600183614267565b85549091506000906132c290600190614267565b90508181146133275760008660000182815481106132e2576132e26140eb565b9060005260206000200154905080876000018481548110613305576133056140eb565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061333857613338614430565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061071b565b600091505061071b565b6000826000018281548110613394576133946140eb565b9060005260206000200154905092915050565b60008181526001830160205260408120546133ee5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561071b565b50600061071b565b60006001600160a01b0384163b156134ec57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061343a903390899088908890600401614446565b6020604051808303816000875af1925050508015613475575060408051601f3d908101601f1916820190925261347291810190614482565b60015b6134d2573d8080156134a3576040519150601f19603f3d011682016040523d82523d6000602084013e6134a8565b606091505b5080516000036134ca5760405162461bcd60e51b815260040161067c906143a2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612b49565b506001949350505050565b828054828255906000526020600020908101928215613544579160200282015b828111156135445782518051613534918491602090910190613550565b5091602001919060010190613517565b50610fe99291506135f1565b82805461355c906141e2565b90600052602060002090601f01602090048101928261357e57600085556135c4565b82601f1061359757805160ff19168380011785556135c4565b828001600101855582156135c4579182015b828111156135c45782518255916020019190600101906135a9565b50610fe992915061360e565b5080546000825560020290600052602060002090810190610d4e9190613623565b80821115610fe95760006136058282613651565b506001016135f1565b5b80821115610fe9576000815560010161360f565b80821115610fe95780546001600160e81b031916815560006136486001830182613651565b50600201613623565b50805461365d906141e2565b6000825580601f1061366d575050565b601f016020900490600052602060002090810190610d4e919061360e565b60006020828403121561369d57600080fd5b5035919050565b6001600160e01b031981168114610d4e57600080fd5b6000602082840312156136cc57600080fd5b81356129b0816136a4565b60005b838110156136f25781810151838201526020016136da565b838111156119f55750506000910152565b6000815180845261371b8160208601602086016136d7565b601f01601f19169290920160200192915050565b6020815260006129b06020830184613703565b6001600160a01b0381168114610d4e57600080fd5b6000806040838503121561376a57600080fd5b823561377581613742565b946020939093013593505050565b600081518084526020808501945080840160005b838110156137b357815187529582019590820190600101613797565b509495945050505050565b6020815260006129b06020830184613783565b6000806000606084860312156137e657600080fd5b83356137f181613742565b9250602084013561380181613742565b929592945050506040919091013590565b60006020828403121561382457600080fd5b81356129b081613742565b6000806040838503121561384257600080fd5b50508035926020909101359150565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b838110156138ee57888303603f19018552815180516001600160a01b03168452878101511515888501528681015163ffffffff908116888601526060808301519091169085015260809081015160a0918501829052906138da81860183613703565b968901969450505090860190600101613878565b509098975050505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561393d5783516001600160a01b031683529284019291840191600101613918565b50909695505050505050565b60008083601f84011261395b57600080fd5b50813567ffffffffffffffff81111561397357600080fd5b6020830191508360208260051b8501011115610b4a57600080fd5b6000806000604084860312156139a357600080fd5b83359250602084013567ffffffffffffffff8111156139c157600080fd5b6139cd86828701613949565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715613a1357613a136139da565b60405290565b6040516080810167ffffffffffffffff81118282101715613a1357613a136139da565b60405160a0810167ffffffffffffffff81118282101715613a1357613a136139da565b604051601f8201601f1916810167ffffffffffffffff81118282101715613a8857613a886139da565b604052919050565b600067ffffffffffffffff821115613aaa57613aaa6139da565b5060051b60200190565b600067ffffffffffffffff831115613ace57613ace6139da565b613ae1601f8401601f1916602001613a5f565b9050828152838383011115613af557600080fd5b828260208301376000602084830101529392505050565b600082601f830112613b1d57600080fd5b6129b083833560208501613ab4565b60006020808385031215613b3f57600080fd5b823567ffffffffffffffff80821115613b5757600080fd5b818501915085601f830112613b6b57600080fd5b8135613b7e613b7982613a90565b613a5f565b81815260059190911b83018401908481019088831115613b9d57600080fd5b8585015b83811015613bd557803585811115613bb95760008081fd5b613bc78b89838a0101613b0c565b845250918601918601613ba1565b5098975050505050505050565b60008060408385031215613bf557600080fd5b8235915067ffffffffffffffff8060208501351115613c1357600080fd5b6020840135840185601f820112613c2957600080fd5b613c36613b798235613a90565b81358082526020808301929160051b84010188811115613c5557600080fd5b602084015b81811015613d95578581351115613c7057600080fd5b80358501601f196040828d0382011215613c8957600080fd5b613c916139f0565b613c9e6020840135613742565b602083013581528860408401351115613cb657600080fd5b604083013583019250608082848f03011215613cd157600080fd5b613cd9613a19565b91508860208401351115613cec57600080fd5b613cfe8d602080860135860101613b0c565b82528860408401351115613d1157600080fd5b613d248d60206040860135860101613b0c565b60208301528860608401351115613d3a57600080fd5b613d4d8d60206060860135860101613b0c565b60408301528860808401351115613d6357600080fd5b613d768d60206080860135860101613b0c565b6060830152602081810192909252865294850194919091019050613c5a565b50959890975095505050505050565b8035801515811461094057600080fd5b60008060408385031215613dc757600080fd5b8235613dd281613742565b9150613de060208401613da4565b90509250929050565b60008060008060808587031215613dff57600080fd5b8435613e0a81613742565b93506020850135613e1a81613742565b925060408501359150606085013567ffffffffffffffff811115613e3d57600080fd5b8501601f81018713613e4e57600080fd5b613e5d87823560208401613ab4565b91505092959194509250565b600081518084526020808501945080840160005b838110156137b35781516001600160a01b031687529582019590820190600101613e7d565b6020815260006129b06020830184613e69565b604081526000613ec86040830185613e69565b8281036020840152613eda8185613783565b95945050505050565b600060208284031215613ef557600080fd5b6129b082613da4565b600080600060408486031215613f1357600080fd5b8335613f1e81613742565b9250602084013567ffffffffffffffff8111156139c157600080fd5b60008060408385031215613f4d57600080fd5b8235613f5881613742565b91506020830135613f6881613742565b809150509250929050565b803563ffffffff8116811461094057600080fd5b60006020808385031215613f9a57600080fd5b823567ffffffffffffffff80821115613fb257600080fd5b818501915085601f830112613fc657600080fd5b8135613fd4613b7982613a90565b81815260059190911b83018401908481019088831115613ff357600080fd5b8585015b83811015613bd55780358581111561400f5760008081fd5b860160a0818c03601f19018113156140275760008081fd5b61402f613a3c565b8983013561403c81613742565b8152604061404b848201613da4565b8b830152606061405c818601613f73565b828401526080915061406f828601613f73565b908301529183013591888311156140865760008081fd5b6140948e8c85870101613b0c565b9082015285525050918601918601613ff7565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161412957614129614101565b5060010190565b600081600019048311821515161561414a5761414a614101565b500290565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826141c5576141c56141a0565b500490565b600082198211156141dd576141dd614101565b500190565b600181811c908216806141f657607f821691505b60208210810361421657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602b908201527f4552433732314d657461646174613a20717565727920666f72206e6f6e65786960408201526a39ba32b73a103a37b5b2b760a91b606082015260800190565b60008282101561427957614279614101565b500390565b600063ffffffff80831681851680830382111561429d5761429d614101565b01949350505050565b600083516142b88184602088016136d7565b83519083019061429d8183602088016136d7565b8054600090600181811c90808316806142e657607f831692505b6020808410820361430757634e487b7160e01b600052602260045260246000fd5b81801561431b576001811461432c57614358565b60ff19861689528489019650614358565b876000528160002060005b868110156143505781548b820152908501908301614337565b505084890196505b50505050505092915050565b600083516143768184602088016136d7565b613eda818401856142cc565b600063ffffffff82168061439857614398614101565b6000190192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082516144068184602087016136d7565b9190910192915050565b60006129b082846142cc565b60008261442b5761442b6141a0565b500690565b634e487b7160e01b600052603160045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526144786080830184613703565b9695505050505050565b60006020828403121561449457600080fd5b81516129b0816136a456feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212209cfe2e926ad23af673ca9c31392ff82caddae6195623b922fc7f68a9c462427864736f6c634300080d0033227d2c7b2274726169745f74797065223a22466f726d222c2276616c7565223a22222c202261747472696275746573223a5b7b2274726169745f74797065223a2243726561746f72222c2276616c7565223a22646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d65223a22

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061027e5760003560e01c80636c2f5acd11610156578063b88d4fde116100d3578063c4ed6e7611610097578063f2fde38b11610071578063f2fde38b14610603578063f47c84c514610616578063ffe119ec1461061f57600080fd5b8063c4ed6e76146105a1578063c87b56dd146105b4578063e985e9c5146105c757600080fd5b8063b88d4fde14610532578063b9c4d9fb14610545578063bb3bafd614610565578063bd227e5714610586578063bff356181461058e57600080fd5b80638da5cb5b1161011a5780638da5cb5b146104c757806395d89b41146104d85780639b0946b1146104f9578063a22cb4651461050c578063a7d1ab8c1461051f57600080fd5b80636c2f5acd1461047d5780636d73e669146104905780636f39cf40146104a357806370a08231146104ac578063715018a6146104bf57600080fd5b80632ca15122116101ff5780633fce3529116101c3578063465bcea11161019d578063465bcea114610441578063626b5419146104575780636352211e1461046a57600080fd5b80633fce35291461040857806342842e0e1461041b57806342966c681461042e57600080fd5b80632ca15122146103b05780632d345670146103b85780632f2fc416146103cb57806331ae450b146103e0578063356e0281146103f557600080fd5b80630ebd4c7f116102465780630ebd4c7f146103305780630f15f4c01461035057806323b872dd1461035857806324d7806c1461036b5780632a55205a1461037e57600080fd5b8063017f776d1461028357806301ffc9a71461029857806306fdde03146102c0578063081812fc146102f2578063095ea7b31461031d575b600080fd5b61029661029136600461368b565b610632565b005b6102ab6102a63660046136ba565b61068a565b60405190151581526020015b60405180910390f35b60408051808201909152600d81526c4d6574616d6f7270686f73697360981b60208201525b6040516102b7919061372f565b61030561030036600461368b565b610721565b6040516001600160a01b0390911681526020016102b7565b61029661032b366004613757565b6107b6565b61034361033e36600461368b565b6108e9565b6040516102b791906137be565b610296610945565b6102966103663660046137d1565b610a58565b6102ab610379366004613812565b610add565b61039161038c36600461382f565b610b16565b604080516001600160a01b0390931683526020830191909152016102b7565b610296610b51565b6102966103c6366004613812565b610d51565b6103d3610e00565b6040516102b79190613851565b6103e8610f3e565b6040516102b791906138fc565b61029661040336600461398e565b610fed565b610296610416366004613b2c565b6112b7565b6102966104293660046137d1565b611314565b61029661043c36600461368b565b61132f565b610449600a81565b6040519081526020016102b7565b61044961046536600461368b565b6113f9565b61030561047836600461368b565b61146e565b61029661048b366004613757565b6114e5565b61029661049e366004613812565b611555565b610449600a5481565b6104496104ba366004613812565b6115ff565b610296611686565b6000546001600160a01b0316610305565b60408051808201909152600581526409a9ea4a0960db1b60208201526102e5565b610296610507366004613be2565b6116ec565b61029661051a366004613db4565b611917565b61044961052d36600461368b565b611922565b610296610540366004613de9565b611970565b61055861055336600461368b565b6119fb565b6040516102b79190613ea2565b61057861057336600461368b565b611a74565b6040516102b7929190613eb5565b61044960fa81565b61029661059c366004613ee3565b611b28565b6102966105af366004613efe565b611b85565b6102e56105c236600461368b565b611e26565b6102ab6105d5366004613f3a565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b610296610611366004613812565b612622565b61044960095481565b61029661062d366004613f87565b6126ea565b336106456000546001600160a01b031690565b6001600160a01b031614806106605750610660600133612992565b6106855760405162461bcd60e51b815260040161067c906140a7565b60405180910390fd5b600a55565b60006001600160e01b031982166380ac58cd60e01b14806106bb57506001600160e01b03198216635b5e139f60e01b145b806106d657506001600160e01b03198216635d9dd7eb60e11b145b806106f157506001600160e01b0319821663152a902d60e11b145b8061070c57506001600160e01b03198216632dde656160e21b145b8061071b575061071b826129b7565b92915050565b6000818152600360205260408120546001600160a01b031661079a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161067c565b506000908152600560205260409020546001600160a01b031690565b60006107c18261146e565b9050806001600160a01b0316836001600160a01b03160361082e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161067c565b336001600160a01b038216148061086857506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6108da5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161067c565b6108e483836129ec565b505050565b6010546060906001600160a01b031615610940576040805160018082528183019092529060208083019080368337019050509050600f5481600081518110610933576109336140eb565b6020026020010181815250505b919050565b336109586000546001600160a01b031690565b6001600160a01b031614806109735750610973600133612992565b61098f5760405162461bcd60e51b815260040161067c906140a7565b600e5460ff16156109d65760405162461bcd60e51b8152602060048201526011602482015270105b1c9958591e481858dd1a5d985d1959607a1b604482015260640161067c565b60005b600b54811015610a37576000600b82815481106109f8576109f86140eb565b60009182526020909120600290910201805467ffffffffffffffff60a81b191664050000000560a91b1790555080610a2f81614117565b9150506109d9565b50600b54610a469060fa614130565b600955600e805460ff19166001179055565b610a63335b82612a5a565b610a7f5760405162461bcd60e51b815260040161067c9061414f565b60085460ff1615610ad25760405162461bcd60e51b815260206004820152601e60248201527f4552433732313a207472616e73666572206e6f74207065726d69747465640000604482015260640161067c565b6108e4838383612b51565b6000816001600160a01b0316610afb6000546001600160a01b031690565b6001600160a01b0316148061071b575061071b600183612992565b601054600f5460009182916001600160a01b039091169061271090610b3b9086614130565b610b4591906141b6565b915091505b9250929050565b600e5460ff16610b935760405162461bcd60e51b815260206004820152600d60248201526c139bdd081858dd1a5d985d1959609a1b604482015260640161067c565b6000805b600b54811015610d0057336001600160a01b0316600b8281548110610bbe57610bbe6140eb565b60009182526020909120600290910201546001600160a01b031603610cee57600b8181548110610bf057610bf06140eb565b6000918252602090912060029091020154600160a01b900460ff1615610c585760405162461bcd60e51b815260206004820152601760248201527f596f75206861766520616c7265616479207369676e6564000000000000000000604482015260640161067c565b600191506001600b8281548110610c7157610c716140eb565b6000918252602082206002909102018054921515600160a01b0260ff60a01b19909316929092179091555b600a811015610ce857600081610cb360fa85614130565b610cbd91906141ca565b610cc89060016141ca565b9050610cd5333383612cf7565b5080610ce081614117565b915050610c9c565b50610d00565b80610cf881614117565b915050610b97565b5080610d4e5760405162461bcd60e51b815260206004820152601660248201527f596f7520617265206e6f7420616e2063726561746f7200000000000000000000604482015260640161067c565b50565b6000546001600160a01b03163314610dab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067c565b610db6600182612992565b15610d4e5760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610dfc600182612e98565b5050565b6060600b805480602002602001604051908101604052809291908181526020016000905b82821015610f355760008481526020908190206040805160a0810182526002860290920180546001600160a01b038116845260ff600160a01b82041615159484019490945263ffffffff600160a81b8504811692840192909252600160c81b909304166060820152600182018054919291608084019190610ea4906141e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610ed0906141e2565b8015610f1d5780601f10610ef257610100808354040283529160200191610f1d565b820191906000526020600020905b815481529060010190602001808311610f0057829003601f168201915b50505050508152505081526020019060010190610e24565b50505050905090565b6060610f4a6001612ead565b67ffffffffffffffff811115610f6257610f626139da565b604051908082528060200260200182016040528015610f8b578160200160208202803683370190505b50905060005b610f9b6001612ead565b811015610fe957610fad600182612eb7565b828281518110610fbf57610fbf6140eb565b6001600160a01b039092166020928302919091019091015280610fe181614117565b915050610f91565b5090565b60085460ff16156110365760405162461bcd60e51b8152602060048201526013602482015272135bdc9c1a081b9bdd081c195c9b5a5d1d1959606a1b604482015260640161067c565b6004811461107c5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e7420746f6b656e7360681b604482015260640161067c565b60006110878461146e565b9050336001600160a01b038216146110d75760405162461bcd60e51b815260206004820152601360248201527226bab9ba103132903a37b5b2b71037bbb732b960691b604482015260640161067c565b6000848152600c6020526040902054600a546110f48260016141ca565b106111345760405162461bcd60e51b815260206004820152601060248201526f13585e08199bdc9b481c995858da195960821b604482015260640161067c565b60005b83811015611290576000858583818110611153576111536140eb565b90506020020135905080871415801561117c5750336111718261146e565b6001600160a01b0316145b801561119657506000818152600c60205260409020548311155b6111e25760405162461bcd60e51b815260206004820152601560248201527f496e76616c696420746f6b656e20746f206275726e0000000000000000000000604482015260640161067c565b60006111ef8360016141ca565b90505b858110156112735786868281811061120c5761120c6140eb565b9050602002013582036112615760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742068617665206475706c696361746520746f6b656e7300000000604482015260640161067c565b8061126b81614117565b9150506111f2565b5061127d81612ec3565b508061128881614117565b915050611137565b506000858152600c602052604081208054916112ab83614117565b91905055505050505050565b336112ca6000546001600160a01b031690565b6001600160a01b031614806112e557506112e5600133612992565b6113015760405162461bcd60e51b815260040161067c906140a7565b8051610dfc9060079060208401906134f7565b6108e483838360405180602001604052806000815250611970565b61133833610a5d565b61139d5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b606482015260840161067c565b60085460ff16156113f05760405162461bcd60e51b815260206004820152601e60248201527f4552433732313a207472616e73666572206e6f74207065726d69747465640000604482015260640161067c565b610d4e81612ec3565b6000818152600360205260408120546001600160a01b031661142d5760405162461bcd60e51b815260040161067c9061421c565b600b61143a60fa846141b6565b8154811061144a5761144a6140eb565b6000918252602090912060029091020154600160c81b900463ffffffff1692915050565b6000818152600360205260408120546001600160a01b03168061071b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161067c565b336114f86000546001600160a01b031690565b6001600160a01b031614806115135750611513600133612992565b61152f5760405162461bcd60e51b815260040161067c906140a7565b601080546001600160a01b0319166001600160a01b039390931692909217909155600f55565b6000546001600160a01b031633146115af5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067c565b6115ba600182612992565b610d4e5760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610dfc600182612fca565b60006001600160a01b03821661166a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161067c565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146116e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067c565b6116ea6000612fdf565b565b336116ff6000546001600160a01b031690565b6001600160a01b0316148061171a575061171a600133612992565b6117365760405162461bcd60e51b815260040161067c906140a7565b6000821180156117485750600a548211155b6117835760405162461bcd60e51b815260206004820152600c60248201526b496e76616c696420666f726d60a01b604482015260640161067c565b60005b81518110156108e45760008282815181106117a3576117a36140eb565b60200260200101519050600080805b600b5481101561181a5783600001516001600160a01b0316600b82815481106117dd576117dd6140eb565b60009182526020909120600290910201546001600160a01b031603611808576001925080915061181a565b8061181281614117565b9150506117b2565b50816118685760405162461bcd60e51b815260206004820152601660248201527f43726561746f7220646f6573206e6f7420657869737400000000000000000000604482015260640161067c565b6020830151600d600061187c60018a614267565b8152602080820192909252604090810160009081208582528352208251805191926118ac92849290910190613550565b5060208281015180516118c59260018501920190613550565b50604082015180516118e1916002840191602090910190613550565b50606082015180516118fd916003840191602090910190613550565b50905050505050808061190f90614117565b915050611786565b610dfc33838361302f565b6000818152600360205260408120546001600160a01b03166119565760405162461bcd60e51b815260040161067c9061421c565b6000828152600c602052604090205461071b9060016141ca565b61197a3383612a5a565b6119965760405162461bcd60e51b815260040161067c9061414f565b60085460ff16156119e95760405162461bcd60e51b815260206004820152601e60248201527f4552433732313a207472616e73666572206e6f74207065726d69747465640000604482015260640161067c565b6119f5848484846130fd565b50505050565b6010546060906001600160a01b031615610940576040805160018082528183019092529060208083019080368337505060105482519293506001600160a01b031691839150600090611a4f57611a4f6140eb565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b60105460609081906001600160a01b031615611b23576040805160018082528183019092529060208083019080368337505060105482519294506001600160a01b031691849150600090611aca57611aca6140eb565b6001600160a01b0392909216602092830291909101820152604080516001808252818301909252918281019080368337019050509050600f5481600081518110611b1657611b166140eb565b6020026020010181815250505b915091565b33611b3b6000546001600160a01b031690565b6001600160a01b03161480611b565750611b56600133612992565b611b725760405162461bcd60e51b815260040161067c906140a7565b6008805460ff1916911515919091179055565b33611b986000546001600160a01b031690565b6001600160a01b03161480611bb35750611bb3600133612992565b611bcf5760405162461bcd60e51b815260040161067c906140a7565b60008060005b600b54811015611c3957856001600160a01b0316600b8281548110611bfc57611bfc6140eb565b60009182526020909120600290910201546001600160a01b031603611c275760019150809250611c39565b80611c3181614117565b915050611bd5565b5080611c7b5760405162461bcd60e51b815260206004820152601160248201527010dc99585d1bdc881b9bdd08199bdd5b99607a1b604482015260640161067c565b6000600b8381548110611c9057611c906140eb565b60009182526020909120600290910201805490915060fa90611cc0908690600160a81b900463ffffffff166141ca565b1115611d035760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b604482015260640161067c565b60005b84811015611d9a576000868683818110611d2257611d226140eb565b9050602002016020810190611d379190613812565b83549091506000908390600160a81b900463ffffffff16611d5960fa89614130565b611d6391906141ca565b611d6d91906141ca565b611d789060016141ca565b9050611d85898383612cf7565b50508080611d9290614117565b915050611d06565b50805484908290601590611dbc908490600160a81b900463ffffffff1661427e565b92506101000a81548163ffffffff021916908363ffffffff160217905550848490508160000160198282829054906101000a900463ffffffff16611e00919061427e565b92506101000a81548163ffffffff021916908363ffffffff160217905550505050505050565b6000818152600360205260409020546060906001600160a01b0316611ea55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161067c565b600060fa611eb4600185614267565b611ebe91906141b6565b6000848152600c60209081526040808320548352600d82528083208484529091528082208151608081019092528054939450919290919082908290611f02906141e2565b80601f0160208091040260200160405190810160405280929190818152602001828054611f2e906141e2565b8015611f7b5780601f10611f5057610100808354040283529160200191611f7b565b820191906000526020600020905b815481529060010190602001808311611f5e57829003601f168201915b50505050508152602001600182018054611f94906141e2565b80601f0160208091040260200160405190810160405280929190818152602001828054611fc0906141e2565b801561200d5780601f10611fe25761010080835404028352916020019161200d565b820191906000526020600020905b815481529060010190602001808311611ff057829003601f168201915b50505050508152602001600282018054612026906141e2565b80601f0160208091040260200160405190810160405280929190818152602001828054612052906141e2565b801561209f5780601f106120745761010080835404028352916020019161209f565b820191906000526020600020905b81548152906001019060200180831161208257829003601f168201915b505050505081526020016003820180546120b8906141e2565b80601f01602080910402602001604051908101604052809291908181526020018280546120e4906141e2565b80156121315780601f1061210657610100808354040283529160200191612131565b820191906000526020600020905b81548152906001019060200180831161211457829003601f168201915b50505050508152505090506000600b8381548110612151576121516140eb565b60009182526020918290206040805160a081018252600290930290910180546001600160a01b038116845260ff600160a01b82041615159484019490945263ffffffff600160a81b8504811692840192909252600160c81b9093041660608201526001820180549192916080840191906121ca906141e2565b80601f01602080910402602001604051908101604052809291908181526020018280546121f6906141e2565b80156122435780601f1061221857610100808354040283529160200191612243565b820191906000526020600020905b81548152906001019060200180831161222657829003601f168201915b5050505050815250509050606060005b600754811015612618576122a160078281548110612273576122736140eb565b90600052602060002001604051806040016040528060068152602001651e2720a6a29f60d11b815250613130565b156122cf5783516040516122b99184916020016142a6565b6040516020818303038152906040529150612606565b61231a600782815481106122e5576122e56140eb565b906000526020600020016040518060400160405280600d81526020016c1e2222a9a1a924a82a24a7a71f60991b815250613130565b15612336578184602001516040516020016122b99291906142a6565b61237d6007828154811061234c5761234c6140eb565b90600052602060002001604051806040016040528060098152602001681e21a922a0aa27a91f60b91b815250613130565b156123985760808301516040516122b99184916020016142a6565b6123dd600782815481106123ae576123ae6140eb565b90600052602060002001604051806040016040528060078152602001661e24a6a0a3a29f60c91b815250613130565b156123f9578184604001516040516020016122b99291906142a6565b6124426007828154811061240f5761240f6140eb565b906000526020600020016040518060400160405280600b81526020016a1e20a724a6a0aa24a7a71f60a91b815250613130565b1561245d5760608401516040516122b99184916020016142a6565b6124a160078281548110612473576124736140eb565b90600052602060002001604051806040016040528060068152602001651e2327a9269f60d11b815250613130565b156124dc576000878152600c602052604090205482906124cb906124c69060016141ca565b613189565b6040516020016122b99291906142a6565b612523600782815481106124f2576124f26140eb565b90600052602060002001604051806040016040528060098152602001681e22a224aa24a7a71f60b91b815250613130565b1561254157816124cb61253760fa88614130565b6124c6908a614267565b61258660078281548110612557576125576140eb565b90600052602060002001604051806040016040528060078152602001661e2a27aa20a61f60c91b815250613130565b156125c557816124cb600b87815481106125a2576125a26140eb565b6000918252602090912060029091020154600160c81b900463ffffffff16613189565b81600782815481106125d9576125d96140eb565b906000526020600020016040516020016125f4929190614364565b60405160208183030381529060405291505b8061261081614117565b915050612253565b5095945050505050565b6000546001600160a01b0316331461267c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067c565b6001600160a01b0381166126e15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161067c565b610d4e81612fdf565b336126fd6000546001600160a01b031690565b6001600160a01b031614806127185750612718600133612992565b6127345760405162461bcd60e51b815260040161067c906140a7565b600e5460ff16156127935760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f74207365742063726561746f7273206166746572206163746976616044820152633a34b7b760e11b606482015260840161067c565b61279f600b60006135d0565b60005b8151811015610dfc5760008282815181106127bf576127bf6140eb565b6020026020010151905080602001511561281b5760405162461bcd60e51b815260206004820152601460248201527f7369676e6564206d7573742062652066616c7365000000000000000000000000604482015260640161067c565b604081015163ffffffff1615801561283b5750606081015163ffffffff16155b6128875760405162461bcd60e51b815260206004820152601b60248201527f65646974696f6e20616e6420746f74616c206d75737420626520300000000000604482015260640161067c565b600b8054600181018255600091909152815160029091027f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9810180546020808601516040870151606088015163ffffffff908116600160c81b0263ffffffff60c81b1991909216600160a81b021667ffffffffffffffff60a81b19921515600160a01b0274ffffffffffffffffffffffffffffffffffffffffff199095166001600160a01b0390981697909717939093171694909417178155608084015180518594929361297b937f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba909101920190613550565b50505050808061298a90614117565b9150506127a2565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b60006001600160e01b03198216632a9f3abf60e11b148061071b57506301ffc9a760e01b6001600160e01b031983161461071b565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a218261146e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b0316612ad35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161067c565b6000612ade8361146e565b9050806001600160a01b0316846001600160a01b03161480612b195750836001600160a01b0316612b0e84610721565b6001600160a01b0316145b80612b4957506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b61deac196001600160a01b03831601612b6d576108e481612ec3565b826001600160a01b0316612b808261146e565b6001600160a01b031614612be45760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161067c565b6001600160a01b038216612c465760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161067c565b612c516000826129ec565b6001600160a01b0383166000908152600460205260408120805460019290612c7a908490614267565b90915550506001600160a01b0382166000908152600460205260408120805460019290612ca89084906141ca565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716916000805160206144a083398151915291a4505050565b6001600160a01b038216612d4d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161067c565b6000818152600360205260409020546001600160a01b031615612db25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161067c565b6001600160a01b0382166000908152600460205260408120805460019290612ddb9084906141ca565b9091555050600081815260036020526040902080546001600160a01b0319166001600160a01b0384811691821790925590841603612e3e5760405181906001600160a01b038416906000906000805160206144a0833981519152908290a4505050565b60405181906001600160a01b038516906000906000805160206144a0833981519152908290a480826001600160a01b0316846001600160a01b03166000805160206144a083398151915260405160405180910390a4505050565b60006129b0836001600160a01b03841661328a565b600061071b825490565b60006129b0838361337d565b6000612ece8261146e565b9050600b612edd60fa846141b6565b81548110612eed57612eed6140eb565b600091825260209091206002909102018054600160c81b900463ffffffff16906019612f1883614382565b91906101000a81548163ffffffff021916908363ffffffff16021790555050600c600083815260200190815260200160002060009055612f596000836129ec565b6001600160a01b0381166000908152600460205260408120805460019290612f82908490614267565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416906000805160206144a0833981519152908390a45050565b60006129b0836001600160a01b0384166133a7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036130905760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161067c565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613108848484612b51565b613114848484846133f6565b6119f55760405162461bcd60e51b815260040161067c906143a2565b60008160405160200161314391906143f4565b604051602081830303815290604052805190602001208360405160200161316a9190614410565b6040516020818303038152906040528051906020012014905092915050565b6060816000036131b05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156131da57806131c481614117565b91506131d39050600a836141b6565b91506131b4565b60008167ffffffffffffffff8111156131f5576131f56139da565b6040519080825280601f01601f19166020018201604052801561321f576020820181803683370190505b5090505b8415612b4957613234600183614267565b9150613241600a8661441c565b61324c9060306141ca565b60f81b818381518110613261576132616140eb565b60200101906001600160f81b031916908160001a905350613283600a866141b6565b9450613223565b600081815260018301602052604081205480156133735760006132ae600183614267565b85549091506000906132c290600190614267565b90508181146133275760008660000182815481106132e2576132e26140eb565b9060005260206000200154905080876000018481548110613305576133056140eb565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061333857613338614430565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061071b565b600091505061071b565b6000826000018281548110613394576133946140eb565b9060005260206000200154905092915050565b60008181526001830160205260408120546133ee5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561071b565b50600061071b565b60006001600160a01b0384163b156134ec57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061343a903390899088908890600401614446565b6020604051808303816000875af1925050508015613475575060408051601f3d908101601f1916820190925261347291810190614482565b60015b6134d2573d8080156134a3576040519150601f19603f3d011682016040523d82523d6000602084013e6134a8565b606091505b5080516000036134ca5760405162461bcd60e51b815260040161067c906143a2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612b49565b506001949350505050565b828054828255906000526020600020908101928215613544579160200282015b828111156135445782518051613534918491602090910190613550565b5091602001919060010190613517565b50610fe99291506135f1565b82805461355c906141e2565b90600052602060002090601f01602090048101928261357e57600085556135c4565b82601f1061359757805160ff19168380011785556135c4565b828001600101855582156135c4579182015b828111156135c45782518255916020019190600101906135a9565b50610fe992915061360e565b5080546000825560020290600052602060002090810190610d4e9190613623565b80821115610fe95760006136058282613651565b506001016135f1565b5b80821115610fe9576000815560010161360f565b80821115610fe95780546001600160e81b031916815560006136486001830182613651565b50600201613623565b50805461365d906141e2565b6000825580601f1061366d575050565b601f016020900490600052602060002090810190610d4e919061360e565b60006020828403121561369d57600080fd5b5035919050565b6001600160e01b031981168114610d4e57600080fd5b6000602082840312156136cc57600080fd5b81356129b0816136a4565b60005b838110156136f25781810151838201526020016136da565b838111156119f55750506000910152565b6000815180845261371b8160208601602086016136d7565b601f01601f19169290920160200192915050565b6020815260006129b06020830184613703565b6001600160a01b0381168114610d4e57600080fd5b6000806040838503121561376a57600080fd5b823561377581613742565b946020939093013593505050565b600081518084526020808501945080840160005b838110156137b357815187529582019590820190600101613797565b509495945050505050565b6020815260006129b06020830184613783565b6000806000606084860312156137e657600080fd5b83356137f181613742565b9250602084013561380181613742565b929592945050506040919091013590565b60006020828403121561382457600080fd5b81356129b081613742565b6000806040838503121561384257600080fd5b50508035926020909101359150565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b838110156138ee57888303603f19018552815180516001600160a01b03168452878101511515888501528681015163ffffffff908116888601526060808301519091169085015260809081015160a0918501829052906138da81860183613703565b968901969450505090860190600101613878565b509098975050505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561393d5783516001600160a01b031683529284019291840191600101613918565b50909695505050505050565b60008083601f84011261395b57600080fd5b50813567ffffffffffffffff81111561397357600080fd5b6020830191508360208260051b8501011115610b4a57600080fd5b6000806000604084860312156139a357600080fd5b83359250602084013567ffffffffffffffff8111156139c157600080fd5b6139cd86828701613949565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715613a1357613a136139da565b60405290565b6040516080810167ffffffffffffffff81118282101715613a1357613a136139da565b60405160a0810167ffffffffffffffff81118282101715613a1357613a136139da565b604051601f8201601f1916810167ffffffffffffffff81118282101715613a8857613a886139da565b604052919050565b600067ffffffffffffffff821115613aaa57613aaa6139da565b5060051b60200190565b600067ffffffffffffffff831115613ace57613ace6139da565b613ae1601f8401601f1916602001613a5f565b9050828152838383011115613af557600080fd5b828260208301376000602084830101529392505050565b600082601f830112613b1d57600080fd5b6129b083833560208501613ab4565b60006020808385031215613b3f57600080fd5b823567ffffffffffffffff80821115613b5757600080fd5b818501915085601f830112613b6b57600080fd5b8135613b7e613b7982613a90565b613a5f565b81815260059190911b83018401908481019088831115613b9d57600080fd5b8585015b83811015613bd557803585811115613bb95760008081fd5b613bc78b89838a0101613b0c565b845250918601918601613ba1565b5098975050505050505050565b60008060408385031215613bf557600080fd5b8235915067ffffffffffffffff8060208501351115613c1357600080fd5b6020840135840185601f820112613c2957600080fd5b613c36613b798235613a90565b81358082526020808301929160051b84010188811115613c5557600080fd5b602084015b81811015613d95578581351115613c7057600080fd5b80358501601f196040828d0382011215613c8957600080fd5b613c916139f0565b613c9e6020840135613742565b602083013581528860408401351115613cb657600080fd5b604083013583019250608082848f03011215613cd157600080fd5b613cd9613a19565b91508860208401351115613cec57600080fd5b613cfe8d602080860135860101613b0c565b82528860408401351115613d1157600080fd5b613d248d60206040860135860101613b0c565b60208301528860608401351115613d3a57600080fd5b613d4d8d60206060860135860101613b0c565b60408301528860808401351115613d6357600080fd5b613d768d60206080860135860101613b0c565b6060830152602081810192909252865294850194919091019050613c5a565b50959890975095505050505050565b8035801515811461094057600080fd5b60008060408385031215613dc757600080fd5b8235613dd281613742565b9150613de060208401613da4565b90509250929050565b60008060008060808587031215613dff57600080fd5b8435613e0a81613742565b93506020850135613e1a81613742565b925060408501359150606085013567ffffffffffffffff811115613e3d57600080fd5b8501601f81018713613e4e57600080fd5b613e5d87823560208401613ab4565b91505092959194509250565b600081518084526020808501945080840160005b838110156137b35781516001600160a01b031687529582019590820190600101613e7d565b6020815260006129b06020830184613e69565b604081526000613ec86040830185613e69565b8281036020840152613eda8185613783565b95945050505050565b600060208284031215613ef557600080fd5b6129b082613da4565b600080600060408486031215613f1357600080fd5b8335613f1e81613742565b9250602084013567ffffffffffffffff8111156139c157600080fd5b60008060408385031215613f4d57600080fd5b8235613f5881613742565b91506020830135613f6881613742565b809150509250929050565b803563ffffffff8116811461094057600080fd5b60006020808385031215613f9a57600080fd5b823567ffffffffffffffff80821115613fb257600080fd5b818501915085601f830112613fc657600080fd5b8135613fd4613b7982613a90565b81815260059190911b83018401908481019088831115613ff357600080fd5b8585015b83811015613bd55780358581111561400f5760008081fd5b860160a0818c03601f19018113156140275760008081fd5b61402f613a3c565b8983013561403c81613742565b8152604061404b848201613da4565b8b830152606061405c818601613f73565b828401526080915061406f828601613f73565b908301529183013591888311156140865760008081fd5b6140948e8c85870101613b0c565b9082015285525050918601918601613ff7565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161412957614129614101565b5060010190565b600081600019048311821515161561414a5761414a614101565b500290565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826141c5576141c56141a0565b500490565b600082198211156141dd576141dd614101565b500190565b600181811c908216806141f657607f821691505b60208210810361421657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602b908201527f4552433732314d657461646174613a20717565727920666f72206e6f6e65786960408201526a39ba32b73a103a37b5b2b760a91b606082015260800190565b60008282101561427957614279614101565b500390565b600063ffffffff80831681851680830382111561429d5761429d614101565b01949350505050565b600083516142b88184602088016136d7565b83519083019061429d8183602088016136d7565b8054600090600181811c90808316806142e657607f831692505b6020808410820361430757634e487b7160e01b600052602260045260246000fd5b81801561431b576001811461432c57614358565b60ff19861689528489019650614358565b876000528160002060005b868110156143505781548b820152908501908301614337565b505084890196505b50505050505092915050565b600083516143768184602088016136d7565b613eda818401856142cc565b600063ffffffff82168061439857614398614101565b6000190192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082516144068184602087016136d7565b9190910192915050565b60006129b082846142cc565b60008261442b5761442b6141a0565b500690565b634e487b7160e01b600052603160045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526144786080830184613703565b9695505050505050565b60006020828403121561449457600080fd5b81516129b0816136a456feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212209cfe2e926ad23af673ca9c31392ff82caddae6195623b922fc7f68a9c462427864736f6c634300080d0033

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.