ETH Price: $3,436.82 (-0.51%)
Gas: 10 Gwei

Token

Blob Mob (BLOB)
 

Overview

Max Total Supply

0 BLOB

Holders

220

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
hhiker42.kongz.eth
Balance
3 BLOB
0xa4fcf064131db228cfa72bfb64f0f50b940538fc
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Blobs

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 23 : Blobs.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

import "./Imports.sol";

/*
BLOBLOBLOBLOBLOBBLOBLOBLOBLOBLOBBLOBLOBLOBLOBLOBBLOBLOBL
BLOBLOBLOBLOBLOBLOBB#=*+++++*=#BLOBLOBLOBLOBLOBLOBLOBLOB
BLOBLOBLOBLOBLO@*++::::::::::-----*@BLOBLOBLOBLOBLOBLOBB
BLOBLOBLOBLOB#++++::::::::::---------=BLOBLOBLOBLOBLOBLO
BLOBLOBLOBLO=+++++:::::::::-----------:@BLOBLOBLOBLOBLOB
BLOBLOBLOBB=++++++:::::::::-------------#BLOBLOBLOBLOBLO
BLOBLOBLOB@+++++++::::::::---------------@BLOBLOBLOBLOBL
BLOBLOBLOB*+++++++::+@WWWWW*------:@WWW@-:BLOBLOBLOBLOBL
BLOBLOBLOB++++++++::#@WWW=*W+-----:@WW*@=-=BLOBLOBLOBLOB
BLOBLOBLO@++++++++:*#@WWW= #=------@WW*+W:+BLOBLOBLOBLOB
BLOBLOBLO#++++++++:*#@@WW= *#------#WW= @+-@BLOBLOBLOBLO
BLOBLOBLO#++++++++:*#@@WW= *@------=WW# ==-=BLOBLOBLOBLO
BLOBLOBLO#+++++++++*#@@WW= +W------*WW@  @-*BLOBLOBLOBLO
BLOBLOBLO#+++++++++*#@@WW= +W------*WW@  @-*BLOBLOBLOBLO
BLOBLOBLO#++++++++++#@@WW= +W:-----*WWW+ W-+BLOBLOBLOBLO
BLOBLOBLO#++++++++++#@@WW= +W:-----+@WW+ W:+BLOBLOBLOBLO
BLOBLOBLO#++++++++++#@@WW# +W+::---:@WW+ W++BLOBLOBLOBLO
BLOBLOBLO#++++++++++#@@WW# +W+::::-:@WW* W++BLOBLOBLOBLO
BLOBLOBLO#++++++++++=@@WW@ *W:::::::#WW#+W++BLOBLOBLOBLO
BLOBLOBLO#++++++++++*@@WWW*@@:::::::=WWW@W:*BLOBLOBLOBLO
BLOBLOBLO#+++++++++++#@WWWWW=:::::::+WWWW*:=BLOBLOBLOBLO
BLOBLOBLO#++++++++++++*#@@=+::::::::::**:::#BLOBLOBLOBLO
BLOBLOBLO@++++++++++++++::;::::::::::;:::::@BLOBLOBLOBLO
BLOBLOBLO@+++++++++++++++::*@GMGMGM@*::::::BLOBLOBLOBLOB
BLOBLOBLOB+++++++++++++++:::::::::::::::::*BLOBLOBLOBLOB
BLOBLOBLOB++++++++++++++++::::::::::::::::=BLOBLOBLOBLOB
BLOBLOBLOB*+++++++++++++++++::::::::::::::@BLOBLOBLOBLOB
BLOBLOBLOB*++++++++++++++++++::::::::::::+BLOBLOBLOBLOBL
BLOBLOBLOB=++++++++++++++++++++::::::::::=BLOBLOBLOBLOBL
BLOBLOBLOB#++++++++++++++++++++++::::::::@BLOBLOBLOBLOBL
999BLOBS@0xb10BFAcE5bB225B04B0fCe0Ddb2F6f1075Af13A2#2022
*/
contract Blobs is
    BlobChecker,
    IERC1155Receiver,
    WithIPFSMetaData,
    WithFreezableMetadata,
    WithMarketOffers
{
    address constant private BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;

    constructor (string memory cid)
        ERC721("Blob Mob", "BLOB")
        WithIPFSMetaData(cid)
        WithMarketOffers(payable(BLOB_LAB), 1000)
    {}

    /// @notice Create a new blob
    /// @param tokenIDs The list of tokenIDs to mint
    /// @param owners The list of owners that the tokenIDs should be airdropped to
    /// @param cid The new IPFS collection content identifyer
    function mint (
        uint256[] memory tokenIDs,
        address[] memory owners,
        string memory cid
    ) external onlyOwner {
        require(_freeBlobs(tokenIDs), "Blob ID not allowed");

        for (uint256 index = 0; index < tokenIDs.length; index++) {
            _mint(owners[index], tokenIDs[index]);
        }

        _setCID(cid);
    }

    /// @notice Burns the received Blob to mint a new one.
    function setCID (string memory cid) external onlyOwner unfrozen {
        _setCID(cid);
    }

    /// @notice Burns the received Blob to mint a new one.
    function onERC1155Received(
        address,
        address from,
        uint256 id,
        uint256,
        bytes calldata
    ) public override returns (bytes4) {
        require(_isBlob(id), "Not a Blob");

        _migrateBlob(id, from);

        return IERC1155Receiver.onERC1155Received.selector;
    }

    /// @notice Burns received Blobs to mint new ones.
    function onERC1155BatchReceived(
        address,
        address from,
        uint256[] calldata ids,
        uint256[] calldata,
        bytes calldata
    ) external override returns (bytes4) {
        // First check whether all given IDs are actual Blobs...
        for (uint256 index = 0; index < ids.length; index++) {
            require(_isBlob(ids[index]), "Not a Blob");
        }

        // Then migrate them one by one.
        for (uint256 index = 0; index < ids.length; index++) {
            _migrateBlob(ids[index], from);
        }

        return IERC1155Receiver.onERC1155BatchReceived.selector;
    }

    /// @notice Get the tokenURI for a specific token
    function tokenURI(uint256 tokenId)
        public view override(WithIPFSMetaData, ERC721)
        returns (string memory)
    {
        return WithIPFSMetaData.tokenURI(tokenId);
    }

    /// @notice We support the `HasSecondarySalesFees` interface
    function supportsInterface(bytes4 interfaceId)
        public view override(WithMarketOffers, ERC721, IERC165)
        returns (bool)
    {
        return WithMarketOffers.supportsInterface(interfaceId);
    }

    function _migrateBlob(uint256 id, address owner) private {
        uint256 tokenId = _getBlobTokenId(id);

        storefront.safeTransferFrom(address(this), BURN_ADDRESS, id, 1, "");

        _safeMint(owner, tokenId);
    }

    function _baseURI()
        internal view override(WithIPFSMetaData, ERC721)
        returns (string memory)
    {
        return WithIPFSMetaData._baseURI();
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId)
        internal override(WithMarketOffers, ERC721)
    {
        return WithMarketOffers._beforeTokenTransfer(from, to, tokenId);
    }
}

File 2 of 23 : Imports.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

import "@1001-digital/erc721-extensions/contracts/WithFreezableMetadata.sol";
import "@1001-digital/erc721-extensions/contracts/WithIPFSMetaData.sol";
import "@1001-digital/erc721-extensions/contracts/WithMarketOffers.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";

import "./BlobChecker.sol";

File 3 of 23 : WithFreezableMetadata.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

/// @author 1001.digital
/// @title A small helper to handle freezing of metadata
contract WithFreezableMetadata is Ownable {
    // Whether metadata is frozen
    bool public frozen;

    /// @dev Freeze the metadata
    function freeze() external onlyOwner {
        frozen = true;
    }

    /// @dev Whether metadata is unfrozen
    modifier unfrozen() {
        require(! frozen, "Metadata already frozen");

        _;
    }
}

File 4 of 23 : WithIPFSMetaData.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

/// @author 1001.digital
/// @title Handle NFT Metadata stored on IPFS
abstract contract WithIPFSMetaData is ERC721 {
    using Strings for uint256;

    /// @dev Emitted when the content identifyer changes
    event MetadataURIChanged(string indexed baseURI);

    /// @dev The content identifier of the folder containing all JSON files.
    string public cid;

    /// Instantiate the contract
    /// @param _cid the content identifier for the token metadata.
    /// @dev be careful & make sure your metadata is correct - you can't change this
    constructor (string memory _cid) {
        _setCID(_cid);
    }

    /// Get the tokenURI for a tokenID
    /// @param tokenId the token id for which to get the matadata URL
    /// @dev links to the metadata json file on IPFS.
    /// @return the URL to the token metadata file
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        // We don't check whether the _baseURI is set like in the OpenZeppelin implementation
        // as we're deploying the contract with the CID.
        return string(abi.encodePacked(
            _baseURI(), "/", tokenId.toString(), "/metadata.json"
        ));
    }

    /// Configure the baseURI for the tokenURI method.
    /// @dev override the standard OpenZeppelin implementation
    /// @return the IPFS base uri
    function _baseURI() internal view virtual override returns (string memory) {
        return string(abi.encodePacked("ipfs://", cid));
    }

    /// Set the content identifier for this collection.
    /// @param _cid the new content identifier
    /// @dev update the content identifier for this nft.
    function _setCID(string memory _cid) internal virtual {
        cid = _cid;

        emit MetadataURIChanged(_baseURI());
    }
}

File 5 of 23 : WithMarketOffers.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@1001-digital/erc721-extensions/contracts/WithFees.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

/// @author 1001.digital
/// @title Implement a basic integrated marketplace with fees
abstract contract WithMarketOffers is ERC721, WithFees {

    event OfferCreated(uint256 indexed tokenId, uint256 indexed value, address indexed to);
    event OfferWithdrawn(uint256 indexed tokenId);
    event Sale(uint256 indexed tokenId, address indexed from, address indexed to, uint256 value);

    struct Offer {
        uint256 price;
        address payable specificBuyer;
    }

    /// @dev All active offers
    mapping (uint256 => Offer) private _offers;

    /// Instantiate the contract
    /// @param _feeRecipient the fee recipient for secondary sales
    /// @param _bps the basis points measure for the fees
    constructor (address payable _feeRecipient, uint256 _bps)
        WithFees(_feeRecipient, _bps)
    {}

    /// @dev All active offers
    function offerFor(uint256 tokenId) external view returns(Offer memory) {
        require(_offers[tokenId].price > 0, "No active offer for this item");

        return _offers[tokenId];
    }

    function _makeOffer(uint256 tokenId, uint256 price, address to) internal {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "Caller is neither owner nor approved");
        require(price > 0, "Price should be higher than 0");
        require(price > _offers[tokenId].price, "Price should be higher than existing offer");

        _offers[tokenId] = Offer(price, payable(to));
        emit OfferCreated(tokenId, price, to);
    }

    /// @dev Make a new offer
    function makeOffer(uint256 tokenId, uint256 price) external {
        _makeOffer(tokenId, price, address(0));
    }

    /// @dev Make a new offer to a specific person
    function makeOfferTo(uint256 tokenId, uint256 price, address to) external {
        _makeOffer(tokenId, price, to);
    }

    /// @dev Revoke an active offer
    function _cancelOffer(uint256 tokenId) private {
        delete _offers[tokenId];
        emit OfferWithdrawn(tokenId);
    }

    /// @dev Allow approved operators to cancel an offer
    function cancelOffer(uint256 tokenId) external {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "Caller is neither owner nor approved");
        _cancelOffer(tokenId);
    }

    /// @dev Buy an item that is for offer
    function buy(uint256 tokenId) external payable isForSale(tokenId) {
        Offer memory offer = _offers[tokenId];
        address payable seller = payable(ownerOf(tokenId));

        // If it is a private sale, make sure the buyer is the private sale recipient.
        if (offer.specificBuyer != address(0)) {
            require(offer.specificBuyer == msg.sender, "Can't buy a privately offered item");
        }

        require(msg.value >= offer.price, "Price not met");

        // Seller gets msg value - fees set as BPS.
        seller.transfer(msg.value - (offer.price * bps / 10000));

        // We transfer the token.
        _safeTransfer(seller, msg.sender, tokenId, "");
        emit Sale(tokenId, seller, msg.sender, offer.price);
    }

    /// @dev Check whether the token is for sale
    modifier isForSale(uint256 tokenId) {
        require(_offers[tokenId].price > 0, "Item not for sale");
        _;
    }

    /// We support the `HasSecondarySalesFees` interface
    function supportsInterface(bytes4 interfaceId)
        public view virtual override(WithFees, ERC721)
        returns (bool)
    {
        return WithFees.supportsInterface(interfaceId);
    }

    function _beforeTokenTransfer(address, address, uint256 tokenId) internal virtual override(ERC721) {
        if (_offers[tokenId].price > 0) {
            _cancelOffer(tokenId);
        }
    }

}

File 6 of 23 : 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 7 of 23 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 8 of 23 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

    /**
     * @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, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 9 of 23 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 10 of 23 : BlobChecker.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

import "./OpenSeaStorefrontInterface.sol";

contract BlobChecker {
    address constant private OPENSEA_STOREFRONT = 0x495f947276749Ce646f68AC8c248420045cb7b5e;
    address constant public BLOB_LAB = 0x9ac320589Def76E17C02a6436a1e8244d66998B7;

    OpenSeaStorefrontInterface internal storefront = OpenSeaStorefrontInterface(OPENSEA_STOREFRONT);

    function _freeBlobs (uint256[] memory ids) internal pure returns (bool) {
        for (uint256 index = 0; index < ids.length; index++) {
            if (! _isFreeBlob(ids[index])) return false;
        }
        return true;
    }

    function _isFreeBlob (uint256 id) internal pure returns (bool) {
        // Unclaimed Blobs
        if (
            id >= 918 && id <= 984 &&
            id != 983 // The zombie Blob is already alive :kek:
        ) {
            return true;
        }

        // Unclaimed golden Blobs
        if (id >= 993 && id <= 998) {
            return true;
        }

        return false;
    }

    // ReceivesOpenSeaBlobs
    function _isBlob (uint256 id) internal view returns (bool) {
        // Make sure it's a Blob created on the OpenSea storefront
        if (storefront.balanceOf(address(this), id) < 1) {
            return false;
        }

        // Make sure it's a Blob created by BlobLab
        if (id >> 96 != uint256(uint160(BLOB_LAB))) {
            return false;
        }
        return (id & 0xffffffffff) == 1;
    }

    function _getBlobTokenId (uint256 id) internal pure returns (uint256) {
        // Get only the token ID (without the token creator)
        uint256 _id = (id & 0xffffffffffffff0000000000) >> 40;

        // Special cases
        if (_id == 935) return 983;
        if (_id == 686) return 985;
        if (_id == 683) return 986;
        if (_id == 687) return 987;
        if (_id == 942) return 988;
        if (_id == 917) return 989;
        if (_id == 944) return 990;
        if (_id == 903) return 991;
        if (_id == 926) return 992;
        if (_id == 688) return 999;

        // Offsets (due to manual mint gaps)
        if (_id < 110) return _id - 9;
        if (_id < 190) return _id - 14;
        if (_id < 191) return _id - 20;
        if (_id < 216) return _id - 15;
        if (_id < 228) return _id - 17;
        if (_id < 335) return _id - 18;
        if (_id < 461) return _id - 19;
        if (_id < 575) return _id - 20;
        if (_id < 683) return _id - 21;
        if (_id < 686) return _id - 22;
        if (_id < 692) return _id - 25;
        if (_id < 800) return _id - 26;
        if (_id < 903) return _id - 27;
        if (_id < 917) return _id - 28;
        if (_id < 926) return _id - 29;
        if (_id < 935) return _id - 30;
        if (_id < 942) return _id - 31;
        if (_id < 944) return _id - 32;
        if (_id < 951) return _id - 33;

        revert("Token not found");
    }
}

File 11 of 23 : 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 12 of 23 : 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 13 of 23 : 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 14 of 23 : 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 15 of 23 : 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 16 of 23 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 17 of 23 : 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 18 of 23 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 19 of 23 : WithFees.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

import "./standards/HasSecondarySaleFees.sol";

/// @author 1001.digital
/// @title Implements the various fee standards that are floating around.
/// @dev We need a proper standard for this.
abstract contract WithFees is ERC721, HasSecondarySaleFees, Ownable {
    // The address to pay fees to
    address payable internal beneficiary;

    // The fee basis points
    uint256 internal bps;

    /// Instanciate the contract
    /// @param _beneficiary the address to send fees to
    /// @param _bps the basis points measure for the fees
    constructor (address payable _beneficiary, uint256 _bps) {
        beneficiary = _beneficiary;
        bps = _bps;
    }

    /// Implement the `HasSecondarySalesFees` Contract
    /// @dev implements the standard pushed by Rarible
    /// @return list of fee recipients, in our case always one
    function getFeeRecipients(uint256) public view override returns (address payable[] memory) {
        address payable[] memory recipients = new address payable[](1);
        recipients[0] = beneficiary;
        return recipients;
    }

    /// Implement the `HasSecondarySalesFees` Contract
    /// @dev implements the standard pushed by Rarible
    /// @return list of fee basis points, in our case always one
    function getFeeBps(uint256) public view override returns (uint256[] memory) {
        uint256[] memory bpsArray = new uint256[](1);
        bpsArray[0] = bps;
        return bpsArray;
    }

    /// Make sure the contract reports that it supportsthe `HasSecondarySalesFees` Interface
    /// @param interfaceId the interface to check
    /// @dev extends the ERC721 method
    /// @return whether the given interface is supported
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC165) returns (bool) {
        return interfaceId == type(HasSecondarySaleFees).interfaceId
            || ERC721.supportsInterface(interfaceId);
    }

    /// Exposes a way to update the secondary sale beneficiary
    /// @param _beneficiary the new beneficiary
    function setBeneficiary(address _beneficiary) public onlyOwner {
        beneficiary = payable(_beneficiary);
    }
}

File 20 of 23 : HasSecondarySaleFees.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

abstract contract HasSecondarySaleFees is ERC165 {
    function getFeeRecipients(uint256 id) public view virtual returns (address payable[] memory);
    function getFeeBps(uint256 id) public view virtual returns (uint256[] memory);
}

File 21 of 23 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 22 of 23 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 23 of 23 : OpenSeaStorefrontInterface.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

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

interface OpenSeaStorefrontInterface {
    function balanceOf(address _owner, uint256 _id)
        external
        view
        returns (uint256);

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"cid","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"baseURI","type":"string"}],"name":"MetadataURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"OfferCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"OfferWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Sale","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":"BLOB_LAB","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"cancelOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cid","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"frozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"makeOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"makeOfferTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"},{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"string","name":"cid","type":"string"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"offerFor","outputs":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address payable","name":"specificBuyer","type":"address"}],"internalType":"struct WithMarketOffers.Offer","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","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":"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":"address","name":"_beneficiary","type":"address"}],"name":"setBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"cid","type":"string"}],"name":"setCID","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"}]

6080604052600080546001600160a01b03191673495f947276749ce646f68ac8c248420045cb7b5e1790553480156200003757600080fd5b5060405162003865380380620038658339810160408190526200005a91620002cf565b739ac320589def76e17c02a6436a1e8244d66998b76103e881818460405180604001604052806008815260200167213637b11026b7b160c11b81525060405180604001604052806004815260200163212627a160e11b8152508160019080519060200190620000cb92919062000229565b508051620000e190600290602084019062000229565b505050620000f5816200012f60201b60201c565b50620001013362000191565b600980546001600160a01b0319166001600160a01b039390931692909217909155600a5550620004e2915050565b80516200014490600790602084019062000229565b506200014f620001e3565b6040516200015e919062000383565b604051908190038120907f7d54a9964a6e80cd8847f2d2f9089adad79dfe2945af7128f5b673e67c319d2390600090a250565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6060620001fa620001ff60201b620015dd1760201c565b905090565b60606007604051602001620002159190620003a1565b604051602081830303815290604052905090565b82805462000237906200048f565b90600052602060002090601f0160209004810192826200025b5760008555620002a6565b82601f106200027657805160ff1916838001178555620002a6565b82800160010185558215620002a6579182015b82811115620002a657825182559160200191906001019062000289565b50620002b4929150620002b8565b5090565b5b80821115620002b45760008155600101620002b9565b600060208284031215620002e1578081fd5b81516001600160401b0380821115620002f8578283fd5b818401915084601f8301126200030c578283fd5b815181811115620003215762000321620004cc565b604051601f8201601f19908116603f011681019083821181831017156200034c576200034c620004cc565b8160405282815287602084870101111562000365578586fd5b620003788360208301602088016200045c565b979650505050505050565b60008251620003978184602087016200045c565b9190910192915050565b66697066733a2f2f60c81b81526000600781845483600182811c915080831680620003cd57607f831692505b6020808410821415620003ee57634e487b7160e01b88526022600452602488fd5b8180156200040557600181146200041b576200044d565b60ff1986168a890152848a01880196506200044d565b60008b815260209020895b86811015620004435781548c82018b015290850190830162000426565b505087858b010196505b50949998505050505050505050565b60005b83811015620004795781810151838201526020016200045f565b8381111562000489576000848401525b50505050565b600181811c90821680620004a457607f821691505b60208210811415620004c657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61337380620004f26000396000f3fe6080604052600436106101e35760003560e01c8063a22cb46511610102578063d801d7e311610095578063f23a6e6111610064578063f23a6e61146105c9578063f2fde38b146105e9578063f5853f9a14610609578063fbc90c7e1461064d57600080fd5b8063d801d7e31461052d578063d96a094a1461054d578063e985e9c514610560578063ef706adf146105a957600080fd5b8063bc197c81116100d1578063bc197c8114610494578063c3d6ee7f146104cd578063c87b56dd146104ed578063cbd10c011461050d57600080fd5b8063a22cb46514610412578063aa3ec0a914610432578063b88d4fde14610447578063b9c4d9fb1461046757600080fd5b806323b872dd1161017a57806370a082311161014957806370a082311461039c578063715018a6146103ca5780638da5cb5b146103df57806395d89b41146103fd57600080fd5b806323b872dd1461032757806342842e0e1461034757806362a5af3b146103675780636352211e1461037c57600080fd5b8063081812fc116101b6578063081812fc14610282578063095ea7b3146102ba5780630ebd4c7f146102da5780631c31f7101461030757600080fd5b806301ffc9a7146101e8578063054f7d9c1461021d57806305b7cdd31461023e57806306fdde0314610260575b600080fd5b3480156101f457600080fd5b50610208610203366004612e41565b610675565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b5060085461020890600160a01b900460ff1681565b34801561024a57600080fd5b5061025e610259366004612edc565b610686565b005b34801561026c57600080fd5b50610275610696565b6040516102149190613185565b34801561028e57600080fd5b506102a261029d366004612eac565b610728565b6040516001600160a01b039091168152602001610214565b3480156102c657600080fd5b5061025e6102d5366004612d3b565b6107c2565b3480156102e657600080fd5b506102fa6102f5366004612eac565b6108f4565b604051610214919061314d565b34801561031357600080fd5b5061025e610322366004612ad4565b61094f565b34801561033357600080fd5b5061025e610342366004612bd7565b6109cb565b34801561035357600080fd5b5061025e610362366004612bd7565b610a53565b34801561037357600080fd5b5061025e610a6e565b34801561038857600080fd5b506102a2610397366004612eac565b610af8565b3480156103a857600080fd5b506103bc6103b7366004612ad4565b610b83565b604051908152602001610214565b3480156103d657600080fd5b5061025e610c1d565b3480156103eb57600080fd5b506008546001600160a01b03166102a2565b34801561040957600080fd5b50610275610c83565b34801561041e57600080fd5b5061025e61042d366004612d01565b610c92565b34801561043e57600080fd5b50610275610c9d565b34801561045357600080fd5b5061025e610462366004612c12565b610d2b565b34801561047357600080fd5b50610487610482366004612eac565b610db9565b6040516102149190613100565b3480156104a057600080fd5b506104b46104af366004612b20565b610e2b565b6040516001600160e01b03199091168152602001610214565b3480156104d957600080fd5b5061025e6104e8366004612e79565b610f2e565b3480156104f957600080fd5b50610275610508366004612eac565b610fee565b34801561051957600080fd5b5061025e610528366004612d64565b610ff9565b34801561053957600080fd5b5061025e610548366004612efd565b611128565b61025e61055b366004612eac565b611133565b34801561056c57600080fd5b5061020861057b366004612aee565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156105b557600080fd5b5061025e6105c4366004612eac565b611378565b3480156105d557600080fd5b506104b46105e4366004612c8b565b6113e2565b3480156105f557600080fd5b5061025e610604366004612ad4565b61145c565b34801561061557600080fd5b50610629610624366004612eac565b61153b565b60408051825181526020928301516001600160a01b03169281019290925201610214565b34801561065957600080fd5b506102a2739ac320589def76e17c02a6436a1e8244d66998b781565b600061068082611605565b92915050565b61069282826000611610565b5050565b6060600180546106a59061327b565b80601f01602080910402602001604051908101604052809291908181526020018280546106d19061327b565b801561071e5780601f106106f35761010080835404028352916020019161071e565b820191906000526020600020905b81548152906001019060200180831161070157829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166107a65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006107cd82610af8565b9050806001600160a01b0316836001600160a01b031614156108575760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161079d565b336001600160a01b03821614806108735750610873813361057b565b6108e55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161079d565b6108ef83836117c1565b505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050600a548160008151811061093e57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6008546001600160a01b031633146109a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079d565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6109d6335b8261182f565b610a485760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161079d565b6108ef838383611926565b6108ef83838360405180602001604052806000815250610d2b565b6008546001600160a01b03163314610ac85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079d565b600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b179055565b6000818152600360205260408120546001600160a01b0316806106805760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161079d565b60006001600160a01b038216610c015760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161079d565b506001600160a01b031660009081526004602052604090205490565b6008546001600160a01b03163314610c775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079d565b610c816000611afe565b565b6060600280546106a59061327b565b610692338383611b50565b60078054610caa9061327b565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd69061327b565b8015610d235780601f10610cf857610100808354040283529160200191610d23565b820191906000526020600020905b815481529060010190602001808311610d0657829003601f168201915b505050505081565b610d35338361182f565b610da75760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161079d565b610db384848484611c1f565b50505050565b6040805160018082528183019092526060916000919060208083019080368337505060095482519293506001600160a01b031691839150600090610e0d57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015292915050565b6000805b86811015610eb157610e66888883818110610e5a57634e487b7160e01b600052603260045260246000fd5b90506020020135611c9d565b610e9f5760405162461bcd60e51b815260206004820152600a6024820152692737ba103090213637b160b11b604482015260640161079d565b80610ea9816132b6565b915050610e2f565b5060005b86811015610eff57610eed888883818110610ee057634e487b7160e01b600052603260045260246000fd5b905060200201358a611d7b565b80610ef7816132b6565b915050610eb5565b507fbc197c81000000000000000000000000000000000000000000000000000000009998505050505050505050565b6008546001600160a01b03163314610f885760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079d565b600854600160a01b900460ff1615610fe25760405162461bcd60e51b815260206004820152601760248201527f4d6574616461746120616c72656164792066726f7a656e000000000000000000604482015260640161079d565b610feb81611e2f565b50565b606061068082611e8b565b6008546001600160a01b031633146110535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079d565b61105c83611f50565b6110a85760405162461bcd60e51b815260206004820152601360248201527f426c6f62204944206e6f7420616c6c6f77656400000000000000000000000000604482015260640161079d565b60005b835181101561111e5761110c8382815181106110d757634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106110ff57634e487b7160e01b600052603260045260246000fd5b6020026020010151611fb5565b80611116816132b6565b9150506110ab565b506108ef81611e2f565b6108ef838383611610565b6000818152600b602052604090205481906111905760405162461bcd60e51b815260206004820152601160248201527f4974656d206e6f7420666f722073616c65000000000000000000000000000000604482015260640161079d565b6000828152600b60209081526040808320815180830190925280548252600101546001600160a01b031691810191909152906111cb84610af8565b60208301519091506001600160a01b0316156112635760208201516001600160a01b031633146112635760405162461bcd60e51b815260206004820152602260248201527f43616e277420627579206120707269766174656c79206f66666572656420697460448201527f656d000000000000000000000000000000000000000000000000000000000000606482015260840161079d565b81513410156112b45760405162461bcd60e51b815260206004820152600d60248201527f5072696365206e6f74206d657400000000000000000000000000000000000000604482015260640161079d565b806001600160a01b03166108fc612710600a5485600001516112d69190613219565b6112e09190613205565b6112ea9034613238565b6040518115909202916000818181858888f19350505050158015611312573d6000803e3d6000fd5b5061132e81338660405180602001604052806000815250611c1f565b815160405190815233906001600160a01b0383169086907f88863d5e20f64464b554931394e2e4b6f09c10015147215bf26b3ba5070acebe9060200160405180910390a450505050565b611381336109d0565b6113d95760405162461bcd60e51b8152602060048201526024808201527f43616c6c6572206973206e656974686572206f776e6572206e6f7220617070726044820152631bdd995960e21b606482015260840161079d565b610feb81612103565b60006113ed85611c9d565b6114265760405162461bcd60e51b815260206004820152600a6024820152692737ba103090213637b160b11b604482015260640161079d565b6114308587611d7b565b507ff23a6e61000000000000000000000000000000000000000000000000000000009695505050505050565b6008546001600160a01b031633146114b65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079d565b6001600160a01b0381166115325760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161079d565b610feb81611afe565b60408051808201909152600080825260208201526000828152600b60205260409020546115aa5760405162461bcd60e51b815260206004820152601d60248201527f4e6f20616374697665206f6666657220666f722074686973206974656d000000604482015260640161079d565b506000908152600b6020908152604091829020825180840190935280548352600101546001600160a01b03169082015290565b606060076040516020016115f19190612ffb565b604051602081830303815290604052905090565b60006106808261214f565b61161a338461182f565b6116725760405162461bcd60e51b8152602060048201526024808201527f43616c6c6572206973206e656974686572206f776e6572206e6f7220617070726044820152631bdd995960e21b606482015260840161079d565b600082116116c25760405162461bcd60e51b815260206004820152601d60248201527f50726963652073686f756c6420626520686967686572207468616e2030000000604482015260640161079d565b6000838152600b602052604090205482116117455760405162461bcd60e51b815260206004820152602a60248201527f50726963652073686f756c6420626520686967686572207468616e206578697360448201527f74696e67206f6666657200000000000000000000000000000000000000000000606482015260840161079d565b6040805180820182528381526001600160a01b0383811660208084018281526000898152600b9092528582209451855551600190940180546001600160a01b03191694909316939093179091559151849186917f1be7385e5a960aabd206224f90e23bb92719f1749fa15a10c0e39302eec9ab589190a4505050565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117f682610af8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b03166118a85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161079d565b60006118b383610af8565b9050806001600160a01b0316846001600160a01b031614806118ee5750836001600160a01b03166118e384610728565b6001600160a01b0316145b8061191e57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661193982610af8565b6001600160a01b0316146119b55760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161079d565b6001600160a01b038216611a305760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161079d565b611a3b83838361218d565b611a466000826117c1565b6001600160a01b0383166000908152600460205260408120805460019290611a6f908490613238565b90915550506001600160a01b0382166000908152600460205260408120805460019290611a9d9084906131ed565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611bb25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161079d565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611c2a848484611926565b611c3684848484612198565b610db35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161079d565b600080546040517efdd58e000000000000000000000000000000000000000000000000000000008152306004820152602481018490526001916001600160a01b03169062fdd58e9060440160206040518083038186803b158015611d0057600080fd5b505afa158015611d14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d389190612ec4565b1015611d4657506000919050565b606082901c739ac320589def76e17c02a6436a1e8244d66998b714611d6d57506000919050565b5064ffffffffff1660011490565b6000611d86836122f0565b600080546040517ff242432a00000000000000000000000000000000000000000000000000000000815230600482015261dead6024820152604481018790526001606482015260a0608482015260a48101929092529192506001600160a01b039091169063f242432a9060c401600060405180830381600087803b158015611e0d57600080fd5b505af1158015611e21573d6000803e3d6000fd5b505050506108ef82826125a1565b8051611e429060079060208401906128a8565b50611e4b6125bb565b604051611e589190612f5d565b604051908190038120907f7d54a9964a6e80cd8847f2d2f9089adad79dfe2945af7128f5b673e67c319d2390600090a250565b6000818152600360205260409020546060906001600160a01b0316611f185760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161079d565b611f206125bb565b611f29836125ca565b604051602001611f3a929190612f79565b6040516020818303038152906040529050919050565b6000805b8251811015611fac57611f8d838281518110611f8057634e487b7160e01b600052603260045260246000fd5b6020026020010151612718565b611f9a5750600092915050565b80611fa4816132b6565b915050611f54565b50600192915050565b6001600160a01b03821661200b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161079d565b6000818152600360205260409020546001600160a01b0316156120705760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161079d565b61207c6000838361218d565b6001600160a01b03821660009081526004602052604081208054600192906120a59084906131ed565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600b602052604080822082815560010180546001600160a01b03191690555182917facbc44b7f46dc350c99fc0d9e5f61ed5c588cb4cdc6b69ea0deb0c5b28e5efc491a250565b60006001600160e01b031982167fb7799584000000000000000000000000000000000000000000000000000000001480610680575061068082612772565b6108ef83838361280d565b60006001600160a01b0384163b156122e557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121dc9033908990889088906004016130c4565b602060405180830381600087803b1580156121f657600080fd5b505af1925050508015612226575060408051601f3d908101601f1916820190925261222391810190612e5d565b60015b6122cb573d808015612254576040519150601f19603f3d011682016040523d82523d6000602084013e612259565b606091505b5080516122c35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161079d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061191e565b506001949350505050565b600066ffffffffffffff602883901c166103a781141561231457506103d792915050565b806102ae141561232857506103d992915050565b806102ab141561233c57506103da92915050565b806102af141561235057506103db92915050565b806103ae141561236457506103dc92915050565b80610395141561237857506103dd92915050565b806103b0141561238c57506103de92915050565b8061038714156123a057506103df92915050565b8061039e14156123b457506103e092915050565b806102b014156123c857506103e792915050565b606e8110156123e3576123dc600982613238565b9392505050565b60be8110156123f7576123dc600e82613238565b60bf81101561240b576123dc601482613238565b60d881101561241f576123dc600f82613238565b60e4811015612433576123dc601182613238565b61014f811015612448576123dc601282613238565b6101cd81101561245d576123dc601382613238565b61023f811015612472576123dc601482613238565b6102ab811015612487576123dc601582613238565b6102ae81101561249c576123dc601682613238565b6102b48110156124b1576123dc601982613238565b6103208110156124c6576123dc601a82613238565b6103878110156124db576123dc601b82613238565b6103958110156124f0576123dc601c82613238565b61039e811015612505576123dc601d82613238565b6103a781101561251a576123dc601e82613238565b6103ae81101561252f576123dc601f82613238565b6103b0811015612544576123dc602082613238565b6103b7811015612559576123dc602182613238565b60405162461bcd60e51b815260206004820152600f60248201527f546f6b656e206e6f7420666f756e640000000000000000000000000000000000604482015260640161079d565b61069282826040518060200160405280600081525061282a565b60606125c56115dd565b905090565b60608161260a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612634578061261e816132b6565b915061262d9050600a83613205565b915061260e565b60008167ffffffffffffffff81111561265d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612687576020820181803683370190505b5090505b841561191e5761269c600183613238565b91506126a9600a866132d1565b6126b49060306131ed565b60f81b8183815181106126d757634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612711600a86613205565b945061268b565b6000610396821015801561272e57506103d88211155b801561273c5750816103d714155b1561274957506001919050565b6103e1821015801561275d57506103e68211155b1561276a57506001919050565b506000919050565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806127d557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061068057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610680565b6000818152600b6020526040902054156108ef576108ef81612103565b6128348383611fb5565b6128416000848484612198565b6108ef5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161079d565b8280546128b49061327b565b90600052602060002090601f0160209004810192826128d6576000855561291c565b82601f106128ef57805160ff191683800117855561291c565b8280016001018555821561291c579182015b8281111561291c578251825591602001919060010190612901565b5061292892915061292c565b5090565b5b80821115612928576000815560010161292d565b600067ffffffffffffffff83111561295b5761295b613311565b61296e601f8401601f1916602001613198565b905082815283838301111561298257600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146129b057600080fd5b919050565b600082601f8301126129c5578081fd5b813560206129da6129d5836131c9565b613198565b80838252828201915082860187848660051b89010111156129f9578586fd5b855b85811015612a1e57612a0c82612999565b845292840192908401906001016129fb565b5090979650505050505050565b60008083601f840112612a3c578182fd5b50813567ffffffffffffffff811115612a53578182fd5b6020830191508360208260051b8501011115612a6e57600080fd5b9250929050565b60008083601f840112612a86578182fd5b50813567ffffffffffffffff811115612a9d578182fd5b602083019150836020828501011115612a6e57600080fd5b600082601f830112612ac5578081fd5b6123dc83833560208501612941565b600060208284031215612ae5578081fd5b6123dc82612999565b60008060408385031215612b00578081fd5b612b0983612999565b9150612b1760208401612999565b90509250929050565b60008060008060008060008060a0898b031215612b3b578384fd5b612b4489612999565b9750612b5260208a01612999565b9650604089013567ffffffffffffffff80821115612b6e578586fd5b612b7a8c838d01612a2b565b909850965060608b0135915080821115612b92578586fd5b612b9e8c838d01612a2b565b909650945060808b0135915080821115612bb6578384fd5b50612bc38b828c01612a75565b999c989b5096995094979396929594505050565b600080600060608486031215612beb578283fd5b612bf484612999565b9250612c0260208501612999565b9150604084013590509250925092565b60008060008060808587031215612c27578384fd5b612c3085612999565b9350612c3e60208601612999565b925060408501359150606085013567ffffffffffffffff811115612c60578182fd5b8501601f81018713612c70578182fd5b612c7f87823560208401612941565b91505092959194509250565b60008060008060008060a08789031215612ca3578182fd5b612cac87612999565b9550612cba60208801612999565b94506040870135935060608701359250608087013567ffffffffffffffff811115612ce3578283fd5b612cef89828a01612a75565b979a9699509497509295939492505050565b60008060408385031215612d13578182fd5b612d1c83612999565b915060208301358015158114612d30578182fd5b809150509250929050565b60008060408385031215612d4d578182fd5b612d5683612999565b946020939093013593505050565b600080600060608486031215612d78578081fd5b833567ffffffffffffffff80821115612d8f578283fd5b818601915086601f830112612da2578283fd5b81356020612db26129d5836131c9565b8083825282820191508286018b848660051b8901011115612dd1578788fd5b8796505b84871015612df3578035835260019690960195918301918301612dd5565b5097505087013592505080821115612e09578283fd5b612e15878388016129b5565b93506040860135915080821115612e2a578283fd5b50612e3786828701612ab5565b9150509250925092565b600060208284031215612e52578081fd5b81356123dc81613327565b600060208284031215612e6e578081fd5b81516123dc81613327565b600060208284031215612e8a578081fd5b813567ffffffffffffffff811115612ea0578182fd5b61191e84828501612ab5565b600060208284031215612ebd578081fd5b5035919050565b600060208284031215612ed5578081fd5b5051919050565b60008060408385031215612eee578182fd5b50508035926020909101359150565b600080600060608486031215612f11578081fd5b8335925060208401359150612f2860408501612999565b90509250925092565b60008151808452612f4981602086016020860161324f565b601f01601f19169290920160200192915050565b60008251612f6f81846020870161324f565b9190910192915050565b60008351612f8b81846020880161324f565b7f2f000000000000000000000000000000000000000000000000000000000000009083019081528351612fc581600184016020880161324f565b7f2f6d657461646174612e6a736f6e00000000000000000000000000000000000060019290910191820152600f01949350505050565b7f697066733a2f2f0000000000000000000000000000000000000000000000000081526000600781845483600182811c91508083168061303c57607f831692505b602080841082141561305c57634e487b7160e01b88526022600452602488fd5b8180156130705760018114613085576130b5565b60ff1986168a890152848a01880196506130b5565b60008b815260209020895b868110156130ab5781548c82018b0152908501908301613090565b505087858b010196505b50949998505050505050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526130f66080830184612f31565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156131415783516001600160a01b03168352928401929184019160010161311c565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561314157835183529284019291840191600101613169565b6020815260006123dc6020830184612f31565b604051601f8201601f1916810167ffffffffffffffff811182821017156131c1576131c1613311565b604052919050565b600067ffffffffffffffff8211156131e3576131e3613311565b5060051b60200190565b60008219821115613200576132006132e5565b500190565b600082613214576132146132fb565b500490565b6000816000190483118215151615613233576132336132e5565b500290565b60008282101561324a5761324a6132e5565b500390565b60005b8381101561326a578181015183820152602001613252565b83811115610db35750506000910152565b600181811c9082168061328f57607f821691505b602082108114156132b057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156132ca576132ca6132e5565b5060010190565b6000826132e0576132e06132fb565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610feb57600080fdfea26469706673582212201ce7a25f3b44fe8e6fc3170b2b2d59938ac25dc1e25596b6e86b2da46b51db3464736f6c634300080400330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002e516d5348365854505a71516b753367643456365279434b685a476245323253593546354e616f655169537a6d6971000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101e35760003560e01c8063a22cb46511610102578063d801d7e311610095578063f23a6e6111610064578063f23a6e61146105c9578063f2fde38b146105e9578063f5853f9a14610609578063fbc90c7e1461064d57600080fd5b8063d801d7e31461052d578063d96a094a1461054d578063e985e9c514610560578063ef706adf146105a957600080fd5b8063bc197c81116100d1578063bc197c8114610494578063c3d6ee7f146104cd578063c87b56dd146104ed578063cbd10c011461050d57600080fd5b8063a22cb46514610412578063aa3ec0a914610432578063b88d4fde14610447578063b9c4d9fb1461046757600080fd5b806323b872dd1161017a57806370a082311161014957806370a082311461039c578063715018a6146103ca5780638da5cb5b146103df57806395d89b41146103fd57600080fd5b806323b872dd1461032757806342842e0e1461034757806362a5af3b146103675780636352211e1461037c57600080fd5b8063081812fc116101b6578063081812fc14610282578063095ea7b3146102ba5780630ebd4c7f146102da5780631c31f7101461030757600080fd5b806301ffc9a7146101e8578063054f7d9c1461021d57806305b7cdd31461023e57806306fdde0314610260575b600080fd5b3480156101f457600080fd5b50610208610203366004612e41565b610675565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b5060085461020890600160a01b900460ff1681565b34801561024a57600080fd5b5061025e610259366004612edc565b610686565b005b34801561026c57600080fd5b50610275610696565b6040516102149190613185565b34801561028e57600080fd5b506102a261029d366004612eac565b610728565b6040516001600160a01b039091168152602001610214565b3480156102c657600080fd5b5061025e6102d5366004612d3b565b6107c2565b3480156102e657600080fd5b506102fa6102f5366004612eac565b6108f4565b604051610214919061314d565b34801561031357600080fd5b5061025e610322366004612ad4565b61094f565b34801561033357600080fd5b5061025e610342366004612bd7565b6109cb565b34801561035357600080fd5b5061025e610362366004612bd7565b610a53565b34801561037357600080fd5b5061025e610a6e565b34801561038857600080fd5b506102a2610397366004612eac565b610af8565b3480156103a857600080fd5b506103bc6103b7366004612ad4565b610b83565b604051908152602001610214565b3480156103d657600080fd5b5061025e610c1d565b3480156103eb57600080fd5b506008546001600160a01b03166102a2565b34801561040957600080fd5b50610275610c83565b34801561041e57600080fd5b5061025e61042d366004612d01565b610c92565b34801561043e57600080fd5b50610275610c9d565b34801561045357600080fd5b5061025e610462366004612c12565b610d2b565b34801561047357600080fd5b50610487610482366004612eac565b610db9565b6040516102149190613100565b3480156104a057600080fd5b506104b46104af366004612b20565b610e2b565b6040516001600160e01b03199091168152602001610214565b3480156104d957600080fd5b5061025e6104e8366004612e79565b610f2e565b3480156104f957600080fd5b50610275610508366004612eac565b610fee565b34801561051957600080fd5b5061025e610528366004612d64565b610ff9565b34801561053957600080fd5b5061025e610548366004612efd565b611128565b61025e61055b366004612eac565b611133565b34801561056c57600080fd5b5061020861057b366004612aee565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156105b557600080fd5b5061025e6105c4366004612eac565b611378565b3480156105d557600080fd5b506104b46105e4366004612c8b565b6113e2565b3480156105f557600080fd5b5061025e610604366004612ad4565b61145c565b34801561061557600080fd5b50610629610624366004612eac565b61153b565b60408051825181526020928301516001600160a01b03169281019290925201610214565b34801561065957600080fd5b506102a2739ac320589def76e17c02a6436a1e8244d66998b781565b600061068082611605565b92915050565b61069282826000611610565b5050565b6060600180546106a59061327b565b80601f01602080910402602001604051908101604052809291908181526020018280546106d19061327b565b801561071e5780601f106106f35761010080835404028352916020019161071e565b820191906000526020600020905b81548152906001019060200180831161070157829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166107a65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006107cd82610af8565b9050806001600160a01b0316836001600160a01b031614156108575760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161079d565b336001600160a01b03821614806108735750610873813361057b565b6108e55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161079d565b6108ef83836117c1565b505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050600a548160008151811061093e57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6008546001600160a01b031633146109a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079d565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6109d6335b8261182f565b610a485760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161079d565b6108ef838383611926565b6108ef83838360405180602001604052806000815250610d2b565b6008546001600160a01b03163314610ac85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079d565b600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b179055565b6000818152600360205260408120546001600160a01b0316806106805760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161079d565b60006001600160a01b038216610c015760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161079d565b506001600160a01b031660009081526004602052604090205490565b6008546001600160a01b03163314610c775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079d565b610c816000611afe565b565b6060600280546106a59061327b565b610692338383611b50565b60078054610caa9061327b565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd69061327b565b8015610d235780601f10610cf857610100808354040283529160200191610d23565b820191906000526020600020905b815481529060010190602001808311610d0657829003601f168201915b505050505081565b610d35338361182f565b610da75760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161079d565b610db384848484611c1f565b50505050565b6040805160018082528183019092526060916000919060208083019080368337505060095482519293506001600160a01b031691839150600090610e0d57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015292915050565b6000805b86811015610eb157610e66888883818110610e5a57634e487b7160e01b600052603260045260246000fd5b90506020020135611c9d565b610e9f5760405162461bcd60e51b815260206004820152600a6024820152692737ba103090213637b160b11b604482015260640161079d565b80610ea9816132b6565b915050610e2f565b5060005b86811015610eff57610eed888883818110610ee057634e487b7160e01b600052603260045260246000fd5b905060200201358a611d7b565b80610ef7816132b6565b915050610eb5565b507fbc197c81000000000000000000000000000000000000000000000000000000009998505050505050505050565b6008546001600160a01b03163314610f885760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079d565b600854600160a01b900460ff1615610fe25760405162461bcd60e51b815260206004820152601760248201527f4d6574616461746120616c72656164792066726f7a656e000000000000000000604482015260640161079d565b610feb81611e2f565b50565b606061068082611e8b565b6008546001600160a01b031633146110535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079d565b61105c83611f50565b6110a85760405162461bcd60e51b815260206004820152601360248201527f426c6f62204944206e6f7420616c6c6f77656400000000000000000000000000604482015260640161079d565b60005b835181101561111e5761110c8382815181106110d757634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106110ff57634e487b7160e01b600052603260045260246000fd5b6020026020010151611fb5565b80611116816132b6565b9150506110ab565b506108ef81611e2f565b6108ef838383611610565b6000818152600b602052604090205481906111905760405162461bcd60e51b815260206004820152601160248201527f4974656d206e6f7420666f722073616c65000000000000000000000000000000604482015260640161079d565b6000828152600b60209081526040808320815180830190925280548252600101546001600160a01b031691810191909152906111cb84610af8565b60208301519091506001600160a01b0316156112635760208201516001600160a01b031633146112635760405162461bcd60e51b815260206004820152602260248201527f43616e277420627579206120707269766174656c79206f66666572656420697460448201527f656d000000000000000000000000000000000000000000000000000000000000606482015260840161079d565b81513410156112b45760405162461bcd60e51b815260206004820152600d60248201527f5072696365206e6f74206d657400000000000000000000000000000000000000604482015260640161079d565b806001600160a01b03166108fc612710600a5485600001516112d69190613219565b6112e09190613205565b6112ea9034613238565b6040518115909202916000818181858888f19350505050158015611312573d6000803e3d6000fd5b5061132e81338660405180602001604052806000815250611c1f565b815160405190815233906001600160a01b0383169086907f88863d5e20f64464b554931394e2e4b6f09c10015147215bf26b3ba5070acebe9060200160405180910390a450505050565b611381336109d0565b6113d95760405162461bcd60e51b8152602060048201526024808201527f43616c6c6572206973206e656974686572206f776e6572206e6f7220617070726044820152631bdd995960e21b606482015260840161079d565b610feb81612103565b60006113ed85611c9d565b6114265760405162461bcd60e51b815260206004820152600a6024820152692737ba103090213637b160b11b604482015260640161079d565b6114308587611d7b565b507ff23a6e61000000000000000000000000000000000000000000000000000000009695505050505050565b6008546001600160a01b031633146114b65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161079d565b6001600160a01b0381166115325760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161079d565b610feb81611afe565b60408051808201909152600080825260208201526000828152600b60205260409020546115aa5760405162461bcd60e51b815260206004820152601d60248201527f4e6f20616374697665206f6666657220666f722074686973206974656d000000604482015260640161079d565b506000908152600b6020908152604091829020825180840190935280548352600101546001600160a01b03169082015290565b606060076040516020016115f19190612ffb565b604051602081830303815290604052905090565b60006106808261214f565b61161a338461182f565b6116725760405162461bcd60e51b8152602060048201526024808201527f43616c6c6572206973206e656974686572206f776e6572206e6f7220617070726044820152631bdd995960e21b606482015260840161079d565b600082116116c25760405162461bcd60e51b815260206004820152601d60248201527f50726963652073686f756c6420626520686967686572207468616e2030000000604482015260640161079d565b6000838152600b602052604090205482116117455760405162461bcd60e51b815260206004820152602a60248201527f50726963652073686f756c6420626520686967686572207468616e206578697360448201527f74696e67206f6666657200000000000000000000000000000000000000000000606482015260840161079d565b6040805180820182528381526001600160a01b0383811660208084018281526000898152600b9092528582209451855551600190940180546001600160a01b03191694909316939093179091559151849186917f1be7385e5a960aabd206224f90e23bb92719f1749fa15a10c0e39302eec9ab589190a4505050565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117f682610af8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b03166118a85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161079d565b60006118b383610af8565b9050806001600160a01b0316846001600160a01b031614806118ee5750836001600160a01b03166118e384610728565b6001600160a01b0316145b8061191e57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661193982610af8565b6001600160a01b0316146119b55760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161079d565b6001600160a01b038216611a305760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161079d565b611a3b83838361218d565b611a466000826117c1565b6001600160a01b0383166000908152600460205260408120805460019290611a6f908490613238565b90915550506001600160a01b0382166000908152600460205260408120805460019290611a9d9084906131ed565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611bb25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161079d565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611c2a848484611926565b611c3684848484612198565b610db35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161079d565b600080546040517efdd58e000000000000000000000000000000000000000000000000000000008152306004820152602481018490526001916001600160a01b03169062fdd58e9060440160206040518083038186803b158015611d0057600080fd5b505afa158015611d14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d389190612ec4565b1015611d4657506000919050565b606082901c739ac320589def76e17c02a6436a1e8244d66998b714611d6d57506000919050565b5064ffffffffff1660011490565b6000611d86836122f0565b600080546040517ff242432a00000000000000000000000000000000000000000000000000000000815230600482015261dead6024820152604481018790526001606482015260a0608482015260a48101929092529192506001600160a01b039091169063f242432a9060c401600060405180830381600087803b158015611e0d57600080fd5b505af1158015611e21573d6000803e3d6000fd5b505050506108ef82826125a1565b8051611e429060079060208401906128a8565b50611e4b6125bb565b604051611e589190612f5d565b604051908190038120907f7d54a9964a6e80cd8847f2d2f9089adad79dfe2945af7128f5b673e67c319d2390600090a250565b6000818152600360205260409020546060906001600160a01b0316611f185760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161079d565b611f206125bb565b611f29836125ca565b604051602001611f3a929190612f79565b6040516020818303038152906040529050919050565b6000805b8251811015611fac57611f8d838281518110611f8057634e487b7160e01b600052603260045260246000fd5b6020026020010151612718565b611f9a5750600092915050565b80611fa4816132b6565b915050611f54565b50600192915050565b6001600160a01b03821661200b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161079d565b6000818152600360205260409020546001600160a01b0316156120705760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161079d565b61207c6000838361218d565b6001600160a01b03821660009081526004602052604081208054600192906120a59084906131ed565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600b602052604080822082815560010180546001600160a01b03191690555182917facbc44b7f46dc350c99fc0d9e5f61ed5c588cb4cdc6b69ea0deb0c5b28e5efc491a250565b60006001600160e01b031982167fb7799584000000000000000000000000000000000000000000000000000000001480610680575061068082612772565b6108ef83838361280d565b60006001600160a01b0384163b156122e557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121dc9033908990889088906004016130c4565b602060405180830381600087803b1580156121f657600080fd5b505af1925050508015612226575060408051601f3d908101601f1916820190925261222391810190612e5d565b60015b6122cb573d808015612254576040519150601f19603f3d011682016040523d82523d6000602084013e612259565b606091505b5080516122c35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161079d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061191e565b506001949350505050565b600066ffffffffffffff602883901c166103a781141561231457506103d792915050565b806102ae141561232857506103d992915050565b806102ab141561233c57506103da92915050565b806102af141561235057506103db92915050565b806103ae141561236457506103dc92915050565b80610395141561237857506103dd92915050565b806103b0141561238c57506103de92915050565b8061038714156123a057506103df92915050565b8061039e14156123b457506103e092915050565b806102b014156123c857506103e792915050565b606e8110156123e3576123dc600982613238565b9392505050565b60be8110156123f7576123dc600e82613238565b60bf81101561240b576123dc601482613238565b60d881101561241f576123dc600f82613238565b60e4811015612433576123dc601182613238565b61014f811015612448576123dc601282613238565b6101cd81101561245d576123dc601382613238565b61023f811015612472576123dc601482613238565b6102ab811015612487576123dc601582613238565b6102ae81101561249c576123dc601682613238565b6102b48110156124b1576123dc601982613238565b6103208110156124c6576123dc601a82613238565b6103878110156124db576123dc601b82613238565b6103958110156124f0576123dc601c82613238565b61039e811015612505576123dc601d82613238565b6103a781101561251a576123dc601e82613238565b6103ae81101561252f576123dc601f82613238565b6103b0811015612544576123dc602082613238565b6103b7811015612559576123dc602182613238565b60405162461bcd60e51b815260206004820152600f60248201527f546f6b656e206e6f7420666f756e640000000000000000000000000000000000604482015260640161079d565b61069282826040518060200160405280600081525061282a565b60606125c56115dd565b905090565b60608161260a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612634578061261e816132b6565b915061262d9050600a83613205565b915061260e565b60008167ffffffffffffffff81111561265d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612687576020820181803683370190505b5090505b841561191e5761269c600183613238565b91506126a9600a866132d1565b6126b49060306131ed565b60f81b8183815181106126d757634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612711600a86613205565b945061268b565b6000610396821015801561272e57506103d88211155b801561273c5750816103d714155b1561274957506001919050565b6103e1821015801561275d57506103e68211155b1561276a57506001919050565b506000919050565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806127d557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061068057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610680565b6000818152600b6020526040902054156108ef576108ef81612103565b6128348383611fb5565b6128416000848484612198565b6108ef5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161079d565b8280546128b49061327b565b90600052602060002090601f0160209004810192826128d6576000855561291c565b82601f106128ef57805160ff191683800117855561291c565b8280016001018555821561291c579182015b8281111561291c578251825591602001919060010190612901565b5061292892915061292c565b5090565b5b80821115612928576000815560010161292d565b600067ffffffffffffffff83111561295b5761295b613311565b61296e601f8401601f1916602001613198565b905082815283838301111561298257600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146129b057600080fd5b919050565b600082601f8301126129c5578081fd5b813560206129da6129d5836131c9565b613198565b80838252828201915082860187848660051b89010111156129f9578586fd5b855b85811015612a1e57612a0c82612999565b845292840192908401906001016129fb565b5090979650505050505050565b60008083601f840112612a3c578182fd5b50813567ffffffffffffffff811115612a53578182fd5b6020830191508360208260051b8501011115612a6e57600080fd5b9250929050565b60008083601f840112612a86578182fd5b50813567ffffffffffffffff811115612a9d578182fd5b602083019150836020828501011115612a6e57600080fd5b600082601f830112612ac5578081fd5b6123dc83833560208501612941565b600060208284031215612ae5578081fd5b6123dc82612999565b60008060408385031215612b00578081fd5b612b0983612999565b9150612b1760208401612999565b90509250929050565b60008060008060008060008060a0898b031215612b3b578384fd5b612b4489612999565b9750612b5260208a01612999565b9650604089013567ffffffffffffffff80821115612b6e578586fd5b612b7a8c838d01612a2b565b909850965060608b0135915080821115612b92578586fd5b612b9e8c838d01612a2b565b909650945060808b0135915080821115612bb6578384fd5b50612bc38b828c01612a75565b999c989b5096995094979396929594505050565b600080600060608486031215612beb578283fd5b612bf484612999565b9250612c0260208501612999565b9150604084013590509250925092565b60008060008060808587031215612c27578384fd5b612c3085612999565b9350612c3e60208601612999565b925060408501359150606085013567ffffffffffffffff811115612c60578182fd5b8501601f81018713612c70578182fd5b612c7f87823560208401612941565b91505092959194509250565b60008060008060008060a08789031215612ca3578182fd5b612cac87612999565b9550612cba60208801612999565b94506040870135935060608701359250608087013567ffffffffffffffff811115612ce3578283fd5b612cef89828a01612a75565b979a9699509497509295939492505050565b60008060408385031215612d13578182fd5b612d1c83612999565b915060208301358015158114612d30578182fd5b809150509250929050565b60008060408385031215612d4d578182fd5b612d5683612999565b946020939093013593505050565b600080600060608486031215612d78578081fd5b833567ffffffffffffffff80821115612d8f578283fd5b818601915086601f830112612da2578283fd5b81356020612db26129d5836131c9565b8083825282820191508286018b848660051b8901011115612dd1578788fd5b8796505b84871015612df3578035835260019690960195918301918301612dd5565b5097505087013592505080821115612e09578283fd5b612e15878388016129b5565b93506040860135915080821115612e2a578283fd5b50612e3786828701612ab5565b9150509250925092565b600060208284031215612e52578081fd5b81356123dc81613327565b600060208284031215612e6e578081fd5b81516123dc81613327565b600060208284031215612e8a578081fd5b813567ffffffffffffffff811115612ea0578182fd5b61191e84828501612ab5565b600060208284031215612ebd578081fd5b5035919050565b600060208284031215612ed5578081fd5b5051919050565b60008060408385031215612eee578182fd5b50508035926020909101359150565b600080600060608486031215612f11578081fd5b8335925060208401359150612f2860408501612999565b90509250925092565b60008151808452612f4981602086016020860161324f565b601f01601f19169290920160200192915050565b60008251612f6f81846020870161324f565b9190910192915050565b60008351612f8b81846020880161324f565b7f2f000000000000000000000000000000000000000000000000000000000000009083019081528351612fc581600184016020880161324f565b7f2f6d657461646174612e6a736f6e00000000000000000000000000000000000060019290910191820152600f01949350505050565b7f697066733a2f2f0000000000000000000000000000000000000000000000000081526000600781845483600182811c91508083168061303c57607f831692505b602080841082141561305c57634e487b7160e01b88526022600452602488fd5b8180156130705760018114613085576130b5565b60ff1986168a890152848a01880196506130b5565b60008b815260209020895b868110156130ab5781548c82018b0152908501908301613090565b505087858b010196505b50949998505050505050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526130f66080830184612f31565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156131415783516001600160a01b03168352928401929184019160010161311c565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561314157835183529284019291840191600101613169565b6020815260006123dc6020830184612f31565b604051601f8201601f1916810167ffffffffffffffff811182821017156131c1576131c1613311565b604052919050565b600067ffffffffffffffff8211156131e3576131e3613311565b5060051b60200190565b60008219821115613200576132006132e5565b500190565b600082613214576132146132fb565b500490565b6000816000190483118215151615613233576132336132e5565b500290565b60008282101561324a5761324a6132e5565b500390565b60005b8381101561326a578181015183820152602001613252565b83811115610db35750506000910152565b600181811c9082168061328f57607f821691505b602082108114156132b057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156132ca576132ca6132e5565b5060010190565b6000826132e0576132e06132fb565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610feb57600080fdfea26469706673582212201ce7a25f3b44fe8e6fc3170b2b2d59938ac25dc1e25596b6e86b2da46b51db3464736f6c63430008040033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002e516d5348365854505a71516b753367643456365279434b685a476245323253593546354e616f655169537a6d6971000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : cid (string): QmSH6XTPZqQku3gd4V6RyCKhZGbE22SY5F5NaoeQiSzmiq

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [2] : 516d5348365854505a71516b753367643456365279434b685a47624532325359
Arg [3] : 3546354e616f655169537a6d6971000000000000000000000000000000000000


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.