ETH Price: $3,419.96 (+1.39%)

Token

Carbon (C)
 

Overview

Max Total Supply

0 C

Holders

527

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
#LetsWalk: Deployer
Balance
1 C
0x7B640407513Bc16167ef3450FD6339803982e976
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

ASH CHAPTER ONE: CARBON

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Carbon

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 500 runs

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

pragma solidity ^0.8.0;

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

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

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

contract Carbon is AdminControl, ERC721 {

    using Strings for uint256;

    uint256 public constant MAX_TOKENS = 1000;
    uint256 _tokenIndex;
    mapping(uint256 => string) private _tokenURIs;
    string private _commonURI;
    string private _prefixURI;
    string private _assetURI;

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

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

    constructor() ERC721("Carbon", "C") {
        _tokenIndex++;
        _mint(msg.sender, _tokenIndex);
    }

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

    /**
     * @dev Mint tokens
     */
    function mint(address[] calldata receivers, string[] calldata uris) public adminRequired {
        require(uris.length == 0 || receivers.length == uris.length, "Invalid input");
        require(_tokenIndex + receivers.length <= MAX_TOKENS, "Too many requested");
        
        bool setURIs = uris.length > 0;
        for (uint i = 0; i < receivers.length; i++) {
            _tokenIndex++;
            _mint(receivers[i], _tokenIndex);
            if (setURIs) {
                _tokenURIs[_tokenIndex] = uris[i];
            }
        }
    }

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            return _tokenURIs[tokenId];
        }
        if (bytes(_commonURI).length != 0) {
            return _commonURI;
        }
        return string(abi.encodePacked(_prefixURI, tokenId.toString()));
    }

    /**
     * @dev Set the image base uri (prefix)
     */
    function setPrefixURI(string calldata uri) external adminRequired {
        _commonURI = '';
        _prefixURI = uri;
    }

    /**
     * @dev Set the image base uri (common for all tokens)
     */
    function setCommonURI(string calldata uri) external adminRequired {
        _commonURI = uri;
        _prefixURI = '';
    }

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

    /**
     * @dev Deliver token from a marketplace sale
     */
    function deliver(address, uint256 listingId, uint256 assetId, address to, uint256, uint256 index) external returns(uint256) {
        require(msg.sender == _marketplace && listingId == _listingId && assetId == 1 && index == 0, "Invalid call data");
        require(_tokenIndex + 1 <= MAX_TOKENS, "Too many requested");
        _tokenIndex++;
        _mint(to, _tokenIndex);
        return _tokenIndex;
    }

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

    /**
     * @dev Set token uri
     */
    function setTokenURIs(uint256[] calldata tokenIds, string[] calldata uris) external adminRequired {
        require(tokenIds.length == uris.length, "Invalid input");
        for (uint i = 0; i < tokenIds.length; i++) {
            _tokenURIs[tokenIds[i]] = uris[i];
        }
    }
    
    /**
     * @dev Update royalties
     */
    function updateRoyalties(address payable recipient, uint256 bps) external adminRequired {
        _royaltyRecipient = recipient;
        _royaltyBps = bps;
    }

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

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

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

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

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


}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

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

pragma solidity ^0.8.0;

/// @author: manifold.xyz

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

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

    // Track registered admins
    EnumerableSet.AddressSet private _admins;

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

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

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

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

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

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

}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 14 : IAdminControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

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

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

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

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

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

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

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

}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 500
  },
  "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":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"approveAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"assetURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"listingId","type":"uint256"},{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"deliver","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAdmins","outputs":[{"internalType":"address[]","name":"admins","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getRoyalties","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setAssetURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setCommonURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"marketplace","type":"address"},{"internalType":"uint256","name":"listingId","type":"uint256"}],"name":"setListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setPrefixURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"setTokenURIs","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":"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"}]

60806040523480156200001157600080fd5b506040518060400160405280600681526020016521b0b93137b760d11b815250604051806040016040528060018152602001604360f81b815250620000656200005f620000c460201b60201c565b620000c8565b81516200007a90600390602085019062000264565b5080516200009090600490602084019062000264565b50506009805491506000620000a58362000320565b9190505550620000be336009546200011860201b60201c565b62000396565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620001745760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064015b60405180910390fd5b6000818152600560205260409020546001600160a01b031615620001db5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016200016b565b6001600160a01b0382166000908152600660205260408120805460019290620002069084906200033e565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054620002729062000359565b90600052602060002090601f016020900481019282620002965760008555620002e1565b82601f10620002b157805160ff1916838001178555620002e1565b82800160010185558215620002e1579182015b82811115620002e1578251825591602001919060010190620002c4565b50620002ef929150620002f3565b5090565b5b80821115620002ef5760008155600101620002f4565b634e487b7160e01b600052601160045260246000fd5b60006000198214156200033757620003376200030a565b5060010190565b600082198211156200035457620003546200030a565b500190565b600181811c908216806200036e57607f821691505b602082108114156200039057634e487b7160e01b600052602260045260246000fd5b50919050565b612bee80620003a66000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80636d73e6691161011a578063b9c4d9fb116100ad578063db3e4c841161007c578063db3e4c84146104a2578063e985e9c5146104b5578063f1c68982146104f1578063f2fde38b14610504578063f47c84c51461051757600080fd5b8063b9c4d9fb1461043b578063bb3bafd61461045b578063c83afbd01461047c578063c87b56dd1461048f57600080fd5b806395d89b41116100e957806395d89b41146103fa578063a22cb46514610402578063b2c94ee614610415578063b88d4fde1461042857600080fd5b80636d73e669146103ad57806370a08231146103c0578063715018a6146103e15780638da5cb5b146103e957600080fd5b80632d3456701161019d5780634c7bc5cf1161016c5780634c7bc5cf1461034e57806355fc9893146103615780636352211e14610374578063643b3ac0146103875780636c2f5acd1461039a57600080fd5b80632d3456701461030057806331ae450b1461031357806342842e0e1461032857806342cc9c731461033b57600080fd5b80630ebd4c7f116101d95780630ebd4c7f1461028857806323b872dd146102a857806324d7806c146102bb5780632a55205a146102ce57600080fd5b806301ffc9a71461020b57806306fdde0314610233578063081812fc14610248578063095ea7b314610273575b600080fd5b61021e61021936600461239e565b610520565b60405190151581526020015b60405180910390f35b61023b6105ac565b60405161022a9190612413565b61025b610256366004612426565b61063e565b6040516001600160a01b03909116815260200161022a565b610286610281366004612454565b6106d8565b005b61029b610296366004612426565b61080c565b60405161022a91906124bb565b6102866102b63660046124ce565b610868565b61021e6102c936600461250f565b6108e3565b6102e16102dc36600461252c565b61091c565b604080516001600160a01b03909316835260208301919091520161022a565b61028661030e36600461250f565b610957565b61031b610a07565b60405161022a919061254e565b6102866103363660046124ce565b610ab6565b61028661034936600461259b565b610ad1565b61028661035c366004612652565b610b27565b61028661036f36600461259b565b610cc5565b61025b610382366004612426565b610d3a565b610286610395366004612454565b610db1565b6102866103a8366004612454565b610e21565b6102866103bb36600461250f565b610e91565b6103d36103ce36600461250f565b610f3b565b60405190815260200161022a565b610286610fc2565b6000546001600160a01b031661025b565b61023b611028565b6102866104103660046126be565b611037565b61028661042336600461259b565b611042565b610286610436366004612712565b6110b7565b61044e610449366004612426565b611139565b60405161022a919061282b565b61046e610469366004612426565b6111b2565b60405161022a92919061283e565b6103d361048a36600461286c565b611266565b61023b61049d366004612426565b61136a565b6102866104b0366004612652565b611508565b61021e6104c33660046128c8565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b61023b6104ff366004612426565b611612565b61028661051236600461250f565b611661565b6103d36103e881565b600061052b82611729565b8061053a575061053a82611765565b8061055557506001600160e01b03198216635d9dd7eb60e11b145b8061057057506001600160e01b0319821663152a902d60e11b145b8061058b57506001600160e01b03198216632dde656160e21b145b806105a657506001600160e01b03198216630c83afbd60e41b145b92915050565b6060600380546105bb906128f6565b80601f01602080910402602001604051908101604052809291908181526020018280546105e7906128f6565b80156106345780601f1061060957610100808354040283529160200191610634565b820191906000526020600020905b81548152906001019060200180831161061757829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b03166106bc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006106e382610d3a565b9050806001600160a01b0316836001600160a01b031614156107515760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106b3565b336001600160a01b038216148061078b57506001600160a01b038116600090815260086020908152604080832033845290915290205460ff165b6107fd5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106b3565b610807838361179a565b505050565b6011546060906001600160a01b0316156108635760408051600180825281830190925290602080830190803683370190505090506010548160008151811061085657610856612931565b6020026020010181815250505b919050565b6108723382611808565b6108d85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60648201526084016106b3565b6108078383836118ff565b6000816001600160a01b03166109016000546001600160a01b031690565b6001600160a01b031614806105a657506105a6600183611926565b60115460105460009182916001600160a01b039091169061271090610941908661295d565b61094b9190612992565b915091505b9250929050565b6000546001600160a01b031633146109b15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b3565b6109bc600182611926565b15610a045760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610a0260018261194b565b505b50565b6060610a136001611960565b67ffffffffffffffff811115610a2b57610a2b6126fc565b604051908082528060200260200182016040528015610a54578160200160208202803683370190505b50905060005b610a646001611960565b811015610ab257610a7660018261196a565b828281518110610a8857610a88612931565b6001600160a01b039092166020928302919091019091015280610aaa816129a6565b915050610a5a565b5090565b610807838383604051806020016040528060008152506110b7565b33610ae46000546001600160a01b031690565b6001600160a01b03161480610aff5750610aff600133611926565b610b1b5760405162461bcd60e51b81526004016106b3906129c1565b610807600d838361227f565b33610b3a6000546001600160a01b031690565b6001600160a01b03161480610b555750610b55600133611926565b610b715760405162461bcd60e51b81526004016106b3906129c1565b801580610b7d57508281145b610bb95760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b60448201526064016106b3565b6009546103e890610bcb908590612a05565b1115610c0e5760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016106b3565b80151560005b84811015610cbd5760098054906000610c2c836129a6565b9190505550610c63868683818110610c4657610c46612931565b9050602002016020810190610c5b919061250f565b600954611976565b8115610cab57838382818110610c7b57610c7b612931565b9050602002810190610c8d9190612a1d565b6009546000908152600a60205260409020610ca992909161227f565b505b80610cb5816129a6565b915050610c14565b505050505050565b33610cd86000546001600160a01b031690565b6001600160a01b03161480610cf35750610cf3600133611926565b610d0f5760405162461bcd60e51b81526004016106b3906129c1565b610d1b600b838361227f565b5060408051602081019182905260009081905261080791600c916122ff565b6000818152600560205260408120546001600160a01b0316806105a65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106b3565b33610dc46000546001600160a01b031690565b6001600160a01b03161480610ddf5750610ddf600133611926565b610dfb5760405162461bcd60e51b81526004016106b3906129c1565b600e80546001600160a01b0319166001600160a01b039390931692909217909155600f55565b33610e346000546001600160a01b031690565b6001600160a01b03161480610e4f5750610e4f600133611926565b610e6b5760405162461bcd60e51b81526004016106b3906129c1565b601180546001600160a01b0319166001600160a01b039390931692909217909155601055565b6000546001600160a01b03163314610eeb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b3565b610ef6600182611926565b610a045760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610a02600182611ab8565b60006001600160a01b038216610fa65760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106b3565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b0316331461101c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b3565b6110266000611acd565b565b6060600480546105bb906128f6565b610a02338383611b1d565b336110556000546001600160a01b031690565b6001600160a01b031614806110705750611070600133611926565b61108c5760405162461bcd60e51b81526004016106b3906129c1565b6040805160208101918290526000908190526110aa91600b916122ff565b50610807600c838361227f565b6110c13383611808565b6111275760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60648201526084016106b3565b61113384848484611bec565b50505050565b6011546060906001600160a01b031615610863576040805160018082528183019092529060208083019080368337505060115482519293506001600160a01b03169183915060009061118d5761118d612931565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b60115460609081906001600160a01b031615611261576040805160018082528183019092529060208083019080368337505060115482519294506001600160a01b03169184915060009061120857611208612931565b6001600160a01b03929092166020928302919091018201526040805160018082528183019092529182810190803683370190505090506010548160008151811061125457611254612931565b6020026020010181815250505b915091565b600e546000906001600160a01b0316331480156112845750600f5486145b80156112905750846001145b801561129a575081155b6112e65760405162461bcd60e51b815260206004820152601160248201527f496e76616c69642063616c6c206461746100000000000000000000000000000060448201526064016106b3565b6103e860095460016112f89190612a05565b111561133b5760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016106b3565b6009805490600061134b836129a6565b919050555061135c84600954611976565b506009549695505050505050565b6000818152600560205260409020546060906001600160a01b03166113f75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016106b3565b6000828152600a602052604090208054611410906128f6565b1590506114b5576000828152600a602052604090208054611430906128f6565b80601f016020809104026020016040519081016040528092919081815260200182805461145c906128f6565b80156114a95780601f1061147e576101008083540402835291602001916114a9565b820191906000526020600020905b81548152906001019060200180831161148c57829003601f168201915b50505050509050919050565b600b80546114c2906128f6565b1590506114d657600b8054611430906128f6565b600c6114e183611c6a565b6040516020016114f2929190612a80565b6040516020818303038152906040529050919050565b3361151b6000546001600160a01b031690565b6001600160a01b031614806115365750611536600133611926565b6115525760405162461bcd60e51b81526004016106b3906129c1565b8281146115915760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b60448201526064016106b3565b60005b8381101561160b578282828181106115ae576115ae612931565b90506020028101906115c09190612a1d565b600a60008888868181106115d6576115d6612931565b90506020020135815260200190815260200160002091906115f892919061227f565b5080611603816129a6565b915050611594565b5050505050565b6060816001146116545760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a5908185cdcd95d609a1b60448201526064016106b3565b600d8054611430906128f6565b6000546001600160a01b031633146116bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b3565b6001600160a01b0381166117205760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106b3565b610a0481611acd565b60006001600160e01b031982166380ac58cd60e01b148061175a57506001600160e01b03198216635b5e139f60e01b145b806105a657506105a6825b60006001600160e01b03198216632a9f3abf60e11b14806105a657506301ffc9a760e01b6001600160e01b03198316146105a6565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117cf82610d3a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b03166118815760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106b3565b600061188c83610d3a565b9050806001600160a01b0316846001600160a01b031614806118c75750836001600160a01b03166118bc8461063e565b6001600160a01b0316145b806118f757506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b949350505050565b6001600160a01b03821661dead141561191b5761080781611d80565b610807838383611e1b565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b6000611944836001600160a01b038416611fbb565b60006105a6825490565b600061194483836120ae565b6001600160a01b0382166119cc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106b3565b6000818152600560205260409020546001600160a01b031615611a315760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106b3565b6001600160a01b0382166000908152600660205260408120805460019290611a5a908490612a05565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611944836001600160a01b0384166120d8565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b03161415611b7f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106b3565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611bf78484846118ff565b611c0384848484612127565b6111335760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016106b3565b606081611c8e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611cb85780611ca2816129a6565b9150611cb19050600a83612992565b9150611c92565b60008167ffffffffffffffff811115611cd357611cd36126fc565b6040519080825280601f01601f191660200182016040528015611cfd576020820181803683370190505b5090505b84156118f757611d12600183612b1e565b9150611d1f600a86612b35565b611d2a906030612a05565b60f81b818381518110611d3f57611d3f612931565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611d79600a86612992565b9450611d01565b6000611d8b82610d3a565b9050611d9860008361179a565b6001600160a01b0381166000908152600660205260408120805460019290611dc1908490612b1e565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b826001600160a01b0316611e2e82610d3a565b6001600160a01b031614611e965760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106b3565b6001600160a01b038216611ef85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106b3565b611f0360008261179a565b6001600160a01b0383166000908152600660205260408120805460019290611f2c908490612b1e565b90915550506001600160a01b0382166000908152600660205260408120805460019290611f5a908490612a05565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081815260018301602052604081205480156120a4576000611fdf600183612b1e565b8554909150600090611ff390600190612b1e565b905081811461205857600086600001828154811061201357612013612931565b906000526020600020015490508087600001848154811061203657612036612931565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061206957612069612b49565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105a6565b60009150506105a6565b60008260000182815481106120c5576120c5612931565b9060005260206000200154905092915050565b600081815260018301602052604081205461211f575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105a6565b5060006105a6565b60006001600160a01b0384163b1561227457604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061216b903390899088908890600401612b5f565b602060405180830381600087803b15801561218557600080fd5b505af19250505080156121b5575060408051601f3d908101601f191682019092526121b291810190612b9b565b60015b61225a573d8080156121e3576040519150601f19603f3d011682016040523d82523d6000602084013e6121e8565b606091505b5080516122525760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016106b3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118f7565b506001949350505050565b82805461228b906128f6565b90600052602060002090601f0160209004810192826122ad57600085556122f3565b82601f106122c65782800160ff198235161785556122f3565b828001600101855582156122f3579182015b828111156122f35782358255916020019190600101906122d8565b50610ab2929150612373565b82805461230b906128f6565b90600052602060002090601f01602090048101928261232d57600085556122f3565b82601f1061234657805160ff19168380011785556122f3565b828001600101855582156122f3579182015b828111156122f3578251825591602001919060010190612358565b5b80821115610ab25760008155600101612374565b6001600160e01b031981168114610a0457600080fd5b6000602082840312156123b057600080fd5b813561194481612388565b60005b838110156123d65781810151838201526020016123be565b838111156111335750506000910152565b600081518084526123ff8160208601602086016123bb565b601f01601f19169290920160200192915050565b60208152600061194460208301846123e7565b60006020828403121561243857600080fd5b5035919050565b6001600160a01b0381168114610a0457600080fd5b6000806040838503121561246757600080fd5b82356124728161243f565b946020939093013593505050565b600081518084526020808501945080840160005b838110156124b057815187529582019590820190600101612494565b509495945050505050565b6020815260006119446020830184612480565b6000806000606084860312156124e357600080fd5b83356124ee8161243f565b925060208401356124fe8161243f565b929592945050506040919091013590565b60006020828403121561252157600080fd5b81356119448161243f565b6000806040838503121561253f57600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b8181101561258f5783516001600160a01b03168352928401929184019160010161256a565b50909695505050505050565b600080602083850312156125ae57600080fd5b823567ffffffffffffffff808211156125c657600080fd5b818501915085601f8301126125da57600080fd5b8135818111156125e957600080fd5b8660208285010111156125fb57600080fd5b60209290920196919550909350505050565b60008083601f84011261261f57600080fd5b50813567ffffffffffffffff81111561263757600080fd5b6020830191508360208260051b850101111561095057600080fd5b6000806000806040858703121561266857600080fd5b843567ffffffffffffffff8082111561268057600080fd5b61268c8883890161260d565b909650945060208701359150808211156126a557600080fd5b506126b28782880161260d565b95989497509550505050565b600080604083850312156126d157600080fd5b82356126dc8161243f565b9150602083013580151581146126f157600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561272857600080fd5b84356127338161243f565b935060208501356127438161243f565b925060408501359150606085013567ffffffffffffffff8082111561276757600080fd5b818701915087601f83011261277b57600080fd5b81358181111561278d5761278d6126fc565b604051601f8201601f19908116603f011681019083821181831017156127b5576127b56126fc565b816040528281528a60208487010111156127ce57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600081518084526020808501945080840160005b838110156124b05781516001600160a01b031687529582019590820190600101612806565b60208152600061194460208301846127f2565b60408152600061285160408301856127f2565b82810360208401526128638185612480565b95945050505050565b60008060008060008060c0878903121561288557600080fd5b86356128908161243f565b9550602087013594506040870135935060608701356128ae8161243f565b9598949750929560808101359460a0909101359350915050565b600080604083850312156128db57600080fd5b82356128e68161243f565b915060208301356126f18161243f565b600181811c9082168061290a57607f821691505b6020821081141561292b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561297757612977612947565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826129a1576129a161297c565b500490565b60006000198214156129ba576129ba612947565b5060010190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b60008219821115612a1857612a18612947565b500190565b6000808335601e19843603018112612a3457600080fd5b83018035915067ffffffffffffffff821115612a4f57600080fd5b60200191503681900382131561095057600080fd5b60008151612a768185602086016123bb565b9290920192915050565b600080845481600182811c915080831680612a9c57607f831692505b6020808410821415612abc57634e487b7160e01b86526022600452602486fd5b818015612ad05760018114612ae157612b0e565b60ff19861689528489019650612b0e565b60008b81526020902060005b86811015612b065781548b820152908501908301612aed565b505084890196505b5050505050506128638185612a64565b600082821015612b3057612b30612947565b500390565b600082612b4457612b4461297c565b500690565b634e487b7160e01b600052603160045260246000fd5b60006001600160a01b03808716835280861660208401525083604083015260806060830152612b9160808301846123e7565b9695505050505050565b600060208284031215612bad57600080fd5b81516119448161238856fea2646970667358221220c87097fc7b8ccf04d6ba01b224b323e46d9a7018fd6935687100be4e5a2c3ffb64736f6c63430008090033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102065760003560e01c80636d73e6691161011a578063b9c4d9fb116100ad578063db3e4c841161007c578063db3e4c84146104a2578063e985e9c5146104b5578063f1c68982146104f1578063f2fde38b14610504578063f47c84c51461051757600080fd5b8063b9c4d9fb1461043b578063bb3bafd61461045b578063c83afbd01461047c578063c87b56dd1461048f57600080fd5b806395d89b41116100e957806395d89b41146103fa578063a22cb46514610402578063b2c94ee614610415578063b88d4fde1461042857600080fd5b80636d73e669146103ad57806370a08231146103c0578063715018a6146103e15780638da5cb5b146103e957600080fd5b80632d3456701161019d5780634c7bc5cf1161016c5780634c7bc5cf1461034e57806355fc9893146103615780636352211e14610374578063643b3ac0146103875780636c2f5acd1461039a57600080fd5b80632d3456701461030057806331ae450b1461031357806342842e0e1461032857806342cc9c731461033b57600080fd5b80630ebd4c7f116101d95780630ebd4c7f1461028857806323b872dd146102a857806324d7806c146102bb5780632a55205a146102ce57600080fd5b806301ffc9a71461020b57806306fdde0314610233578063081812fc14610248578063095ea7b314610273575b600080fd5b61021e61021936600461239e565b610520565b60405190151581526020015b60405180910390f35b61023b6105ac565b60405161022a9190612413565b61025b610256366004612426565b61063e565b6040516001600160a01b03909116815260200161022a565b610286610281366004612454565b6106d8565b005b61029b610296366004612426565b61080c565b60405161022a91906124bb565b6102866102b63660046124ce565b610868565b61021e6102c936600461250f565b6108e3565b6102e16102dc36600461252c565b61091c565b604080516001600160a01b03909316835260208301919091520161022a565b61028661030e36600461250f565b610957565b61031b610a07565b60405161022a919061254e565b6102866103363660046124ce565b610ab6565b61028661034936600461259b565b610ad1565b61028661035c366004612652565b610b27565b61028661036f36600461259b565b610cc5565b61025b610382366004612426565b610d3a565b610286610395366004612454565b610db1565b6102866103a8366004612454565b610e21565b6102866103bb36600461250f565b610e91565b6103d36103ce36600461250f565b610f3b565b60405190815260200161022a565b610286610fc2565b6000546001600160a01b031661025b565b61023b611028565b6102866104103660046126be565b611037565b61028661042336600461259b565b611042565b610286610436366004612712565b6110b7565b61044e610449366004612426565b611139565b60405161022a919061282b565b61046e610469366004612426565b6111b2565b60405161022a92919061283e565b6103d361048a36600461286c565b611266565b61023b61049d366004612426565b61136a565b6102866104b0366004612652565b611508565b61021e6104c33660046128c8565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b61023b6104ff366004612426565b611612565b61028661051236600461250f565b611661565b6103d36103e881565b600061052b82611729565b8061053a575061053a82611765565b8061055557506001600160e01b03198216635d9dd7eb60e11b145b8061057057506001600160e01b0319821663152a902d60e11b145b8061058b57506001600160e01b03198216632dde656160e21b145b806105a657506001600160e01b03198216630c83afbd60e41b145b92915050565b6060600380546105bb906128f6565b80601f01602080910402602001604051908101604052809291908181526020018280546105e7906128f6565b80156106345780601f1061060957610100808354040283529160200191610634565b820191906000526020600020905b81548152906001019060200180831161061757829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b03166106bc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006106e382610d3a565b9050806001600160a01b0316836001600160a01b031614156107515760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106b3565b336001600160a01b038216148061078b57506001600160a01b038116600090815260086020908152604080832033845290915290205460ff165b6107fd5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106b3565b610807838361179a565b505050565b6011546060906001600160a01b0316156108635760408051600180825281830190925290602080830190803683370190505090506010548160008151811061085657610856612931565b6020026020010181815250505b919050565b6108723382611808565b6108d85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60648201526084016106b3565b6108078383836118ff565b6000816001600160a01b03166109016000546001600160a01b031690565b6001600160a01b031614806105a657506105a6600183611926565b60115460105460009182916001600160a01b039091169061271090610941908661295d565b61094b9190612992565b915091505b9250929050565b6000546001600160a01b031633146109b15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b3565b6109bc600182611926565b15610a045760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610a0260018261194b565b505b50565b6060610a136001611960565b67ffffffffffffffff811115610a2b57610a2b6126fc565b604051908082528060200260200182016040528015610a54578160200160208202803683370190505b50905060005b610a646001611960565b811015610ab257610a7660018261196a565b828281518110610a8857610a88612931565b6001600160a01b039092166020928302919091019091015280610aaa816129a6565b915050610a5a565b5090565b610807838383604051806020016040528060008152506110b7565b33610ae46000546001600160a01b031690565b6001600160a01b03161480610aff5750610aff600133611926565b610b1b5760405162461bcd60e51b81526004016106b3906129c1565b610807600d838361227f565b33610b3a6000546001600160a01b031690565b6001600160a01b03161480610b555750610b55600133611926565b610b715760405162461bcd60e51b81526004016106b3906129c1565b801580610b7d57508281145b610bb95760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b60448201526064016106b3565b6009546103e890610bcb908590612a05565b1115610c0e5760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016106b3565b80151560005b84811015610cbd5760098054906000610c2c836129a6565b9190505550610c63868683818110610c4657610c46612931565b9050602002016020810190610c5b919061250f565b600954611976565b8115610cab57838382818110610c7b57610c7b612931565b9050602002810190610c8d9190612a1d565b6009546000908152600a60205260409020610ca992909161227f565b505b80610cb5816129a6565b915050610c14565b505050505050565b33610cd86000546001600160a01b031690565b6001600160a01b03161480610cf35750610cf3600133611926565b610d0f5760405162461bcd60e51b81526004016106b3906129c1565b610d1b600b838361227f565b5060408051602081019182905260009081905261080791600c916122ff565b6000818152600560205260408120546001600160a01b0316806105a65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106b3565b33610dc46000546001600160a01b031690565b6001600160a01b03161480610ddf5750610ddf600133611926565b610dfb5760405162461bcd60e51b81526004016106b3906129c1565b600e80546001600160a01b0319166001600160a01b039390931692909217909155600f55565b33610e346000546001600160a01b031690565b6001600160a01b03161480610e4f5750610e4f600133611926565b610e6b5760405162461bcd60e51b81526004016106b3906129c1565b601180546001600160a01b0319166001600160a01b039390931692909217909155601055565b6000546001600160a01b03163314610eeb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b3565b610ef6600182611926565b610a045760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610a02600182611ab8565b60006001600160a01b038216610fa65760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106b3565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b0316331461101c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b3565b6110266000611acd565b565b6060600480546105bb906128f6565b610a02338383611b1d565b336110556000546001600160a01b031690565b6001600160a01b031614806110705750611070600133611926565b61108c5760405162461bcd60e51b81526004016106b3906129c1565b6040805160208101918290526000908190526110aa91600b916122ff565b50610807600c838361227f565b6110c13383611808565b6111275760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60648201526084016106b3565b61113384848484611bec565b50505050565b6011546060906001600160a01b031615610863576040805160018082528183019092529060208083019080368337505060115482519293506001600160a01b03169183915060009061118d5761118d612931565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b60115460609081906001600160a01b031615611261576040805160018082528183019092529060208083019080368337505060115482519294506001600160a01b03169184915060009061120857611208612931565b6001600160a01b03929092166020928302919091018201526040805160018082528183019092529182810190803683370190505090506010548160008151811061125457611254612931565b6020026020010181815250505b915091565b600e546000906001600160a01b0316331480156112845750600f5486145b80156112905750846001145b801561129a575081155b6112e65760405162461bcd60e51b815260206004820152601160248201527f496e76616c69642063616c6c206461746100000000000000000000000000000060448201526064016106b3565b6103e860095460016112f89190612a05565b111561133b5760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016106b3565b6009805490600061134b836129a6565b919050555061135c84600954611976565b506009549695505050505050565b6000818152600560205260409020546060906001600160a01b03166113f75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016106b3565b6000828152600a602052604090208054611410906128f6565b1590506114b5576000828152600a602052604090208054611430906128f6565b80601f016020809104026020016040519081016040528092919081815260200182805461145c906128f6565b80156114a95780601f1061147e576101008083540402835291602001916114a9565b820191906000526020600020905b81548152906001019060200180831161148c57829003601f168201915b50505050509050919050565b600b80546114c2906128f6565b1590506114d657600b8054611430906128f6565b600c6114e183611c6a565b6040516020016114f2929190612a80565b6040516020818303038152906040529050919050565b3361151b6000546001600160a01b031690565b6001600160a01b031614806115365750611536600133611926565b6115525760405162461bcd60e51b81526004016106b3906129c1565b8281146115915760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b60448201526064016106b3565b60005b8381101561160b578282828181106115ae576115ae612931565b90506020028101906115c09190612a1d565b600a60008888868181106115d6576115d6612931565b90506020020135815260200190815260200160002091906115f892919061227f565b5080611603816129a6565b915050611594565b5050505050565b6060816001146116545760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a5908185cdcd95d609a1b60448201526064016106b3565b600d8054611430906128f6565b6000546001600160a01b031633146116bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b3565b6001600160a01b0381166117205760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106b3565b610a0481611acd565b60006001600160e01b031982166380ac58cd60e01b148061175a57506001600160e01b03198216635b5e139f60e01b145b806105a657506105a6825b60006001600160e01b03198216632a9f3abf60e11b14806105a657506301ffc9a760e01b6001600160e01b03198316146105a6565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117cf82610d3a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b03166118815760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106b3565b600061188c83610d3a565b9050806001600160a01b0316846001600160a01b031614806118c75750836001600160a01b03166118bc8461063e565b6001600160a01b0316145b806118f757506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b949350505050565b6001600160a01b03821661dead141561191b5761080781611d80565b610807838383611e1b565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b6000611944836001600160a01b038416611fbb565b60006105a6825490565b600061194483836120ae565b6001600160a01b0382166119cc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106b3565b6000818152600560205260409020546001600160a01b031615611a315760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106b3565b6001600160a01b0382166000908152600660205260408120805460019290611a5a908490612a05565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611944836001600160a01b0384166120d8565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b03161415611b7f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106b3565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611bf78484846118ff565b611c0384848484612127565b6111335760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016106b3565b606081611c8e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611cb85780611ca2816129a6565b9150611cb19050600a83612992565b9150611c92565b60008167ffffffffffffffff811115611cd357611cd36126fc565b6040519080825280601f01601f191660200182016040528015611cfd576020820181803683370190505b5090505b84156118f757611d12600183612b1e565b9150611d1f600a86612b35565b611d2a906030612a05565b60f81b818381518110611d3f57611d3f612931565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611d79600a86612992565b9450611d01565b6000611d8b82610d3a565b9050611d9860008361179a565b6001600160a01b0381166000908152600660205260408120805460019290611dc1908490612b1e565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b826001600160a01b0316611e2e82610d3a565b6001600160a01b031614611e965760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106b3565b6001600160a01b038216611ef85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106b3565b611f0360008261179a565b6001600160a01b0383166000908152600660205260408120805460019290611f2c908490612b1e565b90915550506001600160a01b0382166000908152600660205260408120805460019290611f5a908490612a05565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081815260018301602052604081205480156120a4576000611fdf600183612b1e565b8554909150600090611ff390600190612b1e565b905081811461205857600086600001828154811061201357612013612931565b906000526020600020015490508087600001848154811061203657612036612931565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061206957612069612b49565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105a6565b60009150506105a6565b60008260000182815481106120c5576120c5612931565b9060005260206000200154905092915050565b600081815260018301602052604081205461211f575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105a6565b5060006105a6565b60006001600160a01b0384163b1561227457604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061216b903390899088908890600401612b5f565b602060405180830381600087803b15801561218557600080fd5b505af19250505080156121b5575060408051601f3d908101601f191682019092526121b291810190612b9b565b60015b61225a573d8080156121e3576040519150601f19603f3d011682016040523d82523d6000602084013e6121e8565b606091505b5080516122525760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016106b3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118f7565b506001949350505050565b82805461228b906128f6565b90600052602060002090601f0160209004810192826122ad57600085556122f3565b82601f106122c65782800160ff198235161785556122f3565b828001600101855582156122f3579182015b828111156122f35782358255916020019190600101906122d8565b50610ab2929150612373565b82805461230b906128f6565b90600052602060002090601f01602090048101928261232d57600085556122f3565b82601f1061234657805160ff19168380011785556122f3565b828001600101855582156122f3579182015b828111156122f3578251825591602001919060010190612358565b5b80821115610ab25760008155600101612374565b6001600160e01b031981168114610a0457600080fd5b6000602082840312156123b057600080fd5b813561194481612388565b60005b838110156123d65781810151838201526020016123be565b838111156111335750506000910152565b600081518084526123ff8160208601602086016123bb565b601f01601f19169290920160200192915050565b60208152600061194460208301846123e7565b60006020828403121561243857600080fd5b5035919050565b6001600160a01b0381168114610a0457600080fd5b6000806040838503121561246757600080fd5b82356124728161243f565b946020939093013593505050565b600081518084526020808501945080840160005b838110156124b057815187529582019590820190600101612494565b509495945050505050565b6020815260006119446020830184612480565b6000806000606084860312156124e357600080fd5b83356124ee8161243f565b925060208401356124fe8161243f565b929592945050506040919091013590565b60006020828403121561252157600080fd5b81356119448161243f565b6000806040838503121561253f57600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b8181101561258f5783516001600160a01b03168352928401929184019160010161256a565b50909695505050505050565b600080602083850312156125ae57600080fd5b823567ffffffffffffffff808211156125c657600080fd5b818501915085601f8301126125da57600080fd5b8135818111156125e957600080fd5b8660208285010111156125fb57600080fd5b60209290920196919550909350505050565b60008083601f84011261261f57600080fd5b50813567ffffffffffffffff81111561263757600080fd5b6020830191508360208260051b850101111561095057600080fd5b6000806000806040858703121561266857600080fd5b843567ffffffffffffffff8082111561268057600080fd5b61268c8883890161260d565b909650945060208701359150808211156126a557600080fd5b506126b28782880161260d565b95989497509550505050565b600080604083850312156126d157600080fd5b82356126dc8161243f565b9150602083013580151581146126f157600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561272857600080fd5b84356127338161243f565b935060208501356127438161243f565b925060408501359150606085013567ffffffffffffffff8082111561276757600080fd5b818701915087601f83011261277b57600080fd5b81358181111561278d5761278d6126fc565b604051601f8201601f19908116603f011681019083821181831017156127b5576127b56126fc565b816040528281528a60208487010111156127ce57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600081518084526020808501945080840160005b838110156124b05781516001600160a01b031687529582019590820190600101612806565b60208152600061194460208301846127f2565b60408152600061285160408301856127f2565b82810360208401526128638185612480565b95945050505050565b60008060008060008060c0878903121561288557600080fd5b86356128908161243f565b9550602087013594506040870135935060608701356128ae8161243f565b9598949750929560808101359460a0909101359350915050565b600080604083850312156128db57600080fd5b82356128e68161243f565b915060208301356126f18161243f565b600181811c9082168061290a57607f821691505b6020821081141561292b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561297757612977612947565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826129a1576129a161297c565b500490565b60006000198214156129ba576129ba612947565b5060010190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b60008219821115612a1857612a18612947565b500190565b6000808335601e19843603018112612a3457600080fd5b83018035915067ffffffffffffffff821115612a4f57600080fd5b60200191503681900382131561095057600080fd5b60008151612a768185602086016123bb565b9290920192915050565b600080845481600182811c915080831680612a9c57607f831692505b6020808410821415612abc57634e487b7160e01b86526022600452602486fd5b818015612ad05760018114612ae157612b0e565b60ff19861689528489019650612b0e565b60008b81526020902060005b86811015612b065781548b820152908501908301612aed565b505084890196505b5050505050506128638185612a64565b600082821015612b3057612b30612947565b500390565b600082612b4457612b4461297c565b500690565b634e487b7160e01b600052603160045260246000fd5b60006001600160a01b03808716835280861660208401525083604083015260806060830152612b9160808301846123e7565b9695505050505050565b600060208284031215612bad57600080fd5b81516119448161238856fea2646970667358221220c87097fc7b8ccf04d6ba01b224b323e46d9a7018fd6935687100be4e5a2c3ffb64736f6c63430008090033

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.