ETH Price: $3,689.20 (+3.36%)

Token

ERC-20: Painting Over (PO)
 

Overview

Max Total Supply

0 PO

Holders

19

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
mactuitui.eth
Balance
1 PO
0x2776621ff536af829919ab6cba8db434aeba43f9
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:
PaintingOver

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 1000 runs

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

pragma solidity 0.8.13;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract PaintingOver is ERC721, ERC2981, ReentrancyGuard, Ownable {
  uint256 private constant ONE_MILLION = 1_000_000;

  struct Collection {
    uint256 id;
    string baseMetadataUrl;
    uint256 totalSupply;
    uint256 price;
    uint256[] mintedTokenIdList;
  }

  mapping(uint256 => Collection) public collections;
  address public artist;
  bool public isOnSale = true;

  constructor(address artistAddress) ERC721("Painting Over", "PO") {
    _setDefaultRoyalty(owner(), 1000);
    artist = artistAddress;
  }

  modifier onlyOwnerOrArtist() {
    require(
      msg.sender == owner() || msg.sender == artist,
      "Painting Over: Only the owner or artist can call this function."
    );
    _;
  }

  function tokenURI(uint256 tokenId)
    public
    view
    override
    returns (string memory)
  {
    require(_exists(tokenId), "Painting Over: URI query for nonexistent token");
    uint256 collectionId = toCollectionId(tokenId);
    string memory baseMetadataUrl = collections[collectionId].baseMetadataUrl;

    return
      string(
        bytes.concat(
          bytes(baseMetadataUrl),
          bytes(Strings.toString(tokenId)),
          bytes(".json")
        )
      );
  }

  function toCollectionId(uint256 tokenId) public pure returns (uint256) {
    return tokenId / ONE_MILLION;
  }

  function toTokenId(uint256 collectionId, uint256 edition)
    public
    pure
    returns (uint256)
  {
    return collectionId * ONE_MILLION + edition;
  }

  function mintedTokenIdList(uint256 collectionId)
    public
    view
    returns (uint256[] memory)
  {
    return collections[collectionId].mintedTokenIdList;
  }

  function mint(uint256 collectionId, uint256 edition)
    external
    payable
    nonReentrant
  {
    Collection memory collection = collections[collectionId];
    require(
      bytes(collections[collection.id].baseMetadataUrl).length > 0,
      "Painting Over: Collection does not exist"
    );
    require(isOnSale, "Painting Over: Not on sale");
    require(msg.value == collection.price, "Painting Over: Invalid value");
    _mintAndTransfer(_msgSender(), collection, edition);
  }

  function mintByOwner(
    address to,
    uint256 collectionId,
    uint256[] memory editions
  ) external onlyOwnerOrArtist {
    Collection memory collection = collections[collectionId];
    require(
      bytes(collections[collection.id].baseMetadataUrl).length > 0,
      "Painting Over: Collection does not exist"
    );
    uint256 count = editions.length;
    for (uint256 i; i < count; i++) {
      uint256 edition = editions[i];
      _mintAndTransfer(to, collection, edition);
    }
  }

  function setCollection(
    uint256 collectionId,
    string memory baseMetadataUrl,
    uint256 totalSupply,
    uint256 price
  ) external onlyOwnerOrArtist {
    require(
      bytes(collections[collectionId].baseMetadataUrl).length == 0,
      "Painting Over: Collection already exists"
    );
    collections[collectionId] = Collection(
      collectionId,
      baseMetadataUrl,
      totalSupply,
      price,
      new uint256[](0)
    );
  }

  function setIsOnSale(bool _isOnSale) external onlyOwnerOrArtist {
    isOnSale = _isOnSale;
  }

  function setBaseMetadataUrl(
    uint256 collectionId,
    string memory baseMetadataUrl
  ) external onlyOwnerOrArtist {
    collections[collectionId].baseMetadataUrl = baseMetadataUrl;
  }

  function withdraw() external onlyOwner {
    Address.sendValue(payable(msg.sender), address(this).balance);
  }

  function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override(ERC721, ERC2981)
    returns (bool)
  {
    return super.supportsInterface(interfaceId);
  }

  function _mintAndTransfer(
    address to,
    Collection memory collection,
    uint256 edition
  ) internal {
    require(
      collection.mintedTokenIdList.length < collection.totalSupply,
      "Painting Over: Sold out"
    );
    require(
      edition > 0 && edition <= collection.totalSupply,
      "Painting Over: Invalid edition"
    );

    uint256 tokenId = toTokenId(collection.id, edition);

    collections[collection.id].mintedTokenIdList.push(tokenId);
    _safeMint(to, tokenId);
  }
}

File 2 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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 an {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 an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` 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 3 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 4 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 5 of 14 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 6 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 7 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 8 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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`.
     *
     * 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;

    /**
     * @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 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 14 of 14 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"artistAddress","type":"address"}],"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"collections","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"baseMetadataUrl","type":"string"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOnSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"edition","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256[]","name":"editions","type":"uint256[]"}],"name":"mintByOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"}],"name":"mintedTokenIdList","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"string","name":"baseMetadataUrl","type":"string"}],"name":"setBaseMetadataUrl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"string","name":"baseMetadataUrl","type":"string"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOnSale","type":"bool"}],"name":"setIsOnSale","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":"toCollectionId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"edition","type":"uint256"}],"name":"toTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600b805460ff60a01b1916600160a01b1790553480156200002457600080fd5b5060405162002f2738038062002f27833981016040819052620000479162000302565b604080518082018252600d81526c2830b4b73a34b7339027bb32b960991b602080830191825283518085019094526002845261504f60f01b90840152815191929162000096916000916200025c565b508051620000ac9060019060208401906200025c565b5050600160085550620000bf3362000105565b620000df620000d66009546001600160a01b031690565b6103e862000157565b600b80546001600160a01b0319166001600160a01b039290921691909117905562000370565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620001cb5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002235760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001c2565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b8280546200026a9062000334565b90600052602060002090601f0160209004810192826200028e5760008555620002d9565b82601f10620002a957805160ff1916838001178555620002d9565b82800160010185558215620002d9579182015b82811115620002d9578251825591602001919060010190620002bc565b50620002e7929150620002eb565b5090565b5b80821115620002e75760008155600101620002ec565b6000602082840312156200031557600080fd5b81516001600160a01b03811681146200032d57600080fd5b9392505050565b600181811c908216806200034957607f821691505b6020821081036200036a57634e487b7160e01b600052602260045260246000fd5b50919050565b612ba780620003806000396000f3fe6080604052600436106101c25760003560e01c80636352211e116100f7578063a22cb46511610095578063e985e9c511610064578063e985e9c514610523578063f2fde38b1461056c578063fd57fca51461058c578063fdbda0ec146105ac57600080fd5b8063a22cb465146104a3578063b88d4fde146104c3578063c87b56dd146104e3578063e14a903f1461050357600080fd5b8063715018a6116100d1578063715018a61461043a578063890e839f1461044f5780638da5cb5b1461047057806395d89b411461048e57600080fd5b80636352211e146103da57806365fafb60146103fa57806370a082311461041a57600080fd5b80631b2ef1ca1161016457806333aa822e1161013e57806333aa822e146103655780633ccfd60b1461038557806342842e0e1461039a57806343bc1612146103ba57600080fd5b80631b2ef1ca146102f357806323b872dd146103065780632a55205a1461032657600080fd5b8063081812fc116101a0578063081812fc14610240578063095ea7b3146102785780630a294bf71461029857806317aad129146102c557600080fd5b806301ffc9a7146101c757806305a6d0ab146101fc57806306fdde031461021e575b600080fd5b3480156101d357600080fd5b506101e76101e23660046124d7565b6105dc565b60405190151581526020015b60405180910390f35b34801561020857600080fd5b5061021c610217366004612557565b6105ed565b005b34801561022a57600080fd5b50610233610889565b6040516101f39190612671565b34801561024c57600080fd5b5061026061025b366004612684565b61091b565b6040516001600160a01b0390911681526020016101f3565b34801561028457600080fd5b5061021c61029336600461269d565b610942565b3480156102a457600080fd5b506102b86102b3366004612684565b610a73565b6040516101f391906126c7565b3480156102d157600080fd5b506102e56102e0366004612684565b610ad8565b6040519081526020016101f3565b61021c61030136600461270b565b610ae7565b34801561031257600080fd5b5061021c61032136600461272d565b610dab565b34801561033257600080fd5b5061034661034136600461270b565b610e32565b604080516001600160a01b0390931683526020830191909152016101f3565b34801561037157600080fd5b506102e561038036600461270b565b610eed565b34801561039157600080fd5b5061021c610f0e565b3480156103a657600080fd5b5061021c6103b536600461272d565b610f22565b3480156103c657600080fd5b50600b54610260906001600160a01b031681565b3480156103e657600080fd5b506102606103f5366004612684565b610f3d565b34801561040657600080fd5b5061021c6104153660046127e1565b610fa2565b34801561042657600080fd5b506102e5610435366004612828565b61105c565b34801561044657600080fd5b5061021c6110f6565b34801561045b57600080fd5b50600b546101e790600160a01b900460ff1681565b34801561047c57600080fd5b506009546001600160a01b0316610260565b34801561049a57600080fd5b50610233611108565b3480156104af57600080fd5b5061021c6104be366004612853565b611117565b3480156104cf57600080fd5b5061021c6104de366004612886565b611126565b3480156104ef57600080fd5b506102336104fe366004612684565b6111b4565b34801561050f57600080fd5b5061021c61051e366004612902565b611357565b34801561052f57600080fd5b506101e761053e366004612959565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561057857600080fd5b5061021c610587366004612828565b61154e565b34801561059857600080fd5b5061021c6105a7366004612983565b6115de565b3480156105b857600080fd5b506105cc6105c7366004612684565b6116ac565b6040516101f3949392919061299e565b60006105e78261175d565b92915050565b6009546001600160a01b03163314806106105750600b546001600160a01b031633145b6106875760405162461bcd60e51b815260206004820152603f60248201527f5061696e74696e67204f7665723a204f6e6c7920746865206f776e6572206f7260448201527f206172746973742063616e2063616c6c20746869732066756e6374696f6e2e0060648201526084015b60405180910390fd5b6000600a60008481526020019081526020016000206040518060a0016040529081600082015481526020016001820180546106c1906129ca565b80601f01602080910402602001604051908101604052809291908181526020018280546106ed906129ca565b801561073a5780601f1061070f5761010080835404028352916020019161073a565b820191906000526020600020905b81548152906001019060200180831161071d57829003601f168201915b505050505081526020016002820154815260200160038201548152602001600482018054806020026020016040519081016040528092919081815260200182805480156107a657602002820191906000526020600020905b815481526020019060010190808311610792575b50505050508152505090506000600a60008360000151815260200190815260200160002060010180546107d8906129ca565b9050116108385760405162461bcd60e51b815260206004820152602860248201527f5061696e74696e67204f7665723a20436f6c6c656374696f6e20646f6573206e6044820152671bdd08195e1a5cdd60c21b606482015260840161067e565b815160005b8181101561088157600084828151811061085957610859612a04565b6020026020010151905061086e87858361179b565b508061087981612a30565b91505061083d565b505050505050565b606060008054610898906129ca565b80601f01602080910402602001604051908101604052809291908181526020018280546108c4906129ca565b80156109115780601f106108e657610100808354040283529160200191610911565b820191906000526020600020905b8154815290600101906020018083116108f457829003601f168201915b5050505050905090565b600061092682611895565b506000908152600460205260409020546001600160a01b031690565b600061094d82610f3d565b9050806001600160a01b0316836001600160a01b0316036109d65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161067e565b336001600160a01b03821614806109f257506109f2813361053e565b610a645760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161067e565b610a6e83836118f9565b505050565b6000818152600a6020908152604091829020600401805483518184028101840190945280845260609392830182828015610acc57602002820191906000526020600020905b815481526020019060010190808311610ab8575b50505050509050919050565b60006105e7620f424083612a5f565b600260085403610b395760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161067e565b60026008556000828152600a60209081526040808320815160a08101909252805482526001810180549293919291840191610b73906129ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9f906129ca565b8015610bec5780601f10610bc157610100808354040283529160200191610bec565b820191906000526020600020905b815481529060010190602001808311610bcf57829003601f168201915b50505050508152602001600282015481526020016003820154815260200160048201805480602002602001604051908101604052809291908181526020018280548015610c5857602002820191906000526020600020905b815481526020019060010190808311610c44575b50505050508152505090506000600a6000836000015181526020019081526020016000206001018054610c8a906129ca565b905011610cea5760405162461bcd60e51b815260206004820152602860248201527f5061696e74696e67204f7665723a20436f6c6c656374696f6e20646f6573206e6044820152671bdd08195e1a5cdd60c21b606482015260840161067e565b600b54600160a01b900460ff16610d435760405162461bcd60e51b815260206004820152601a60248201527f5061696e74696e67204f7665723a204e6f74206f6e2073616c65000000000000604482015260640161067e565b80606001513414610d965760405162461bcd60e51b815260206004820152601c60248201527f5061696e74696e67204f7665723a20496e76616c69642076616c756500000000604482015260640161067e565b610da133828461179b565b5050600160085550565b610db53382611974565b610e275760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f766564000000000000000000000000000000000000606482015260840161067e565b610a6e8383836119f3565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610eb15750604080518082019091526006546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610ed5906bffffffffffffffffffffffff1687612a73565b610edf9190612a5f565b915196919550909350505050565b600081610efd620f424085612a73565b610f079190612a92565b9392505050565b610f16611bcd565b610f203347611c27565b565b610a6e83838360405180602001604052806000815250611126565b6000818152600260205260408120546001600160a01b0316806105e75760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604482015260640161067e565b6009546001600160a01b0316331480610fc55750600b546001600160a01b031633145b6110375760405162461bcd60e51b815260206004820152603f60248201527f5061696e74696e67204f7665723a204f6e6c7920746865206f776e6572206f7260448201527f206172746973742063616e2063616c6c20746869732066756e6374696f6e2e00606482015260840161067e565b6000828152600a602090815260409091208251610a6e926001909201918401906123ee565b60006001600160a01b0382166110da5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e65720000000000000000000000000000000000000000000000606482015260840161067e565b506001600160a01b031660009081526003602052604090205490565b6110fe611bcd565b610f206000611d40565b606060018054610898906129ca565b611122338383611d9f565b5050565b6111303383611974565b6111a25760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f766564000000000000000000000000000000000000606482015260840161067e565b6111ae84848484611e6d565b50505050565b6000818152600260205260409020546060906001600160a01b03166112415760405162461bcd60e51b815260206004820152602e60248201527f5061696e74696e67204f7665723a2055524920717565727920666f72206e6f6e60448201527f6578697374656e7420746f6b656e000000000000000000000000000000000000606482015260840161067e565b600061124c83610ad8565b6000818152600a602052604081206001018054929350909161126d906129ca565b80601f0160208091040260200160405190810160405280929190818152602001828054611299906129ca565b80156112e65780601f106112bb576101008083540402835291602001916112e6565b820191906000526020600020905b8154815290600101906020018083116112c957829003601f168201915b50505050509050806112f785611eeb565b6040518060400160405280600581526020017f2e6a736f6e00000000000000000000000000000000000000000000000000000081525060405160200161133f93929190612aaa565b60405160208183030381529060405292505050919050565b6009546001600160a01b031633148061137a5750600b546001600160a01b031633145b6113ec5760405162461bcd60e51b815260206004820152603f60248201527f5061696e74696e67204f7665723a204f6e6c7920746865206f776e6572206f7260448201527f206172746973742063616e2063616c6c20746869732066756e6374696f6e2e00606482015260840161067e565b6000848152600a602052604090206001018054611408906129ca565b15905061147d5760405162461bcd60e51b815260206004820152602860248201527f5061696e74696e67204f7665723a20436f6c6c656374696f6e20616c7265616460448201527f7920657869737473000000000000000000000000000000000000000000000000606482015260840161067e565b6040518060a00160405280858152602001848152602001838152602001828152602001600067ffffffffffffffff8111156114ba576114ba612510565b6040519080825280602002602001820160405280156114e3578160200160208202803683370190505b5090526000858152600a60209081526040909120825181558282015180519192611515926001850192909101906123ee565b50604082015160028201556060820151600382015560808201518051611545916004840191602090910190612472565b50505050505050565b611556611bcd565b6001600160a01b0381166115d25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161067e565b6115db81611d40565b50565b6009546001600160a01b03163314806116015750600b546001600160a01b031633145b6116735760405162461bcd60e51b815260206004820152603f60248201527f5061696e74696e67204f7665723a204f6e6c7920746865206f776e6572206f7260448201527f206172746973742063616e2063616c6c20746869732066756e6374696f6e2e00606482015260840161067e565b600b8054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b600a60205260009081526040902080546001820180549192916116ce906129ca565b80601f01602080910402602001604051908101604052809291908181526020018280546116fa906129ca565b80156117475780601f1061171c57610100808354040283529160200191611747565b820191906000526020600020905b81548152906001019060200180831161172a57829003601f168201915b5050505050908060020154908060030154905084565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806105e757506105e782612020565b8160400151826080015151106117f35760405162461bcd60e51b815260206004820152601760248201527f5061696e74696e67204f7665723a20536f6c64206f7574000000000000000000604482015260640161067e565b600081118015611807575081604001518111155b6118535760405162461bcd60e51b815260206004820152601e60248201527f5061696e74696e67204f7665723a20496e76616c69642065646974696f6e0000604482015260640161067e565b6000611863836000015183610eed565b83516000908152600a602090815260408220600401805460018101825590835291200181905590506111ae84826120bb565b6000818152600260205260409020546001600160a01b03166115db5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604482015260640161067e565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061193b82610f3d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061198083610f3d565b9050806001600160a01b0316846001600160a01b031614806119c757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806119eb5750836001600160a01b03166119e08461091b565b6001600160a01b0316145b949350505050565b826001600160a01b0316611a0682610f3d565b6001600160a01b031614611a825760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161067e565b6001600160a01b038216611afd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161067e565b611b086000826118f9565b6001600160a01b0383166000908152600360205260408120805460019290611b31908490612aed565b90915550506001600160a01b0382166000908152600360205260408120805460019290611b5f908490612a92565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6009546001600160a01b03163314610f205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067e565b80471015611c775760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161067e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611cc4576040519150601f19603f3d011682016040523d82523d6000602084013e611cc9565b606091505b5050905080610a6e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161067e565b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611e005760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161067e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611e788484846119f3565b611e84848484846120d5565b6111ae5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161067e565b606081600003611f2e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611f585780611f4281612a30565b9150611f519050600a83612a5f565b9150611f32565b60008167ffffffffffffffff811115611f7357611f73612510565b6040519080825280601f01601f191660200182016040528015611f9d576020820181803683370190505b5090505b84156119eb57611fb2600183612aed565b9150611fbf600a86612b04565b611fca906030612a92565b60f81b818381518110611fdf57611fdf612a04565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612019600a86612a5f565b9450611fa1565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061208357506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806105e757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146105e7565b611122828260405180602001604052806000815250612221565b60006001600160a01b0384163b1561221657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612119903390899088908890600401612b18565b6020604051808303816000875af1925050508015612154575060408051601f3d908101601f1916820190925261215191810190612b54565b60015b6121fc573d808015612182576040519150601f19603f3d011682016040523d82523d6000602084013e612187565b606091505b5080516000036121f45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161067e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506119eb565b506001949350505050565b61222b838361229f565b61223860008484846120d5565b610a6e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161067e565b6001600160a01b0382166122f55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161067e565b6000818152600260205260409020546001600160a01b03161561235a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161067e565b6001600160a01b0382166000908152600360205260408120805460019290612383908490612a92565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546123fa906129ca565b90600052602060002090601f01602090048101928261241c5760008555612462565b82601f1061243557805160ff1916838001178555612462565b82800160010185558215612462579182015b82811115612462578251825591602001919060010190612447565b5061246e9291506124ac565b5090565b8280548282559060005260206000209081019282156124625791602002820182811115612462578251825591602001919060010190612447565b5b8082111561246e57600081556001016124ad565b6001600160e01b0319811681146115db57600080fd5b6000602082840312156124e957600080fd5b8135610f07816124c1565b80356001600160a01b038116811461250b57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254f5761254f612510565b604052919050565b60008060006060848603121561256c57600080fd5b612575846124f4565b92506020808501359250604085013567ffffffffffffffff8082111561259a57600080fd5b818701915087601f8301126125ae57600080fd5b8135818111156125c0576125c0612510565b8060051b91506125d1848301612526565b818152918301840191848101908a8411156125eb57600080fd5b938501935b83851015612609578435825293850193908501906125f0565b8096505050505050509250925092565b60005b8381101561263457818101518382015260200161261c565b838111156111ae5750506000910152565b6000815180845261265d816020860160208601612619565b601f01601f19169290920160200192915050565b602081526000610f076020830184612645565b60006020828403121561269657600080fd5b5035919050565b600080604083850312156126b057600080fd5b6126b9836124f4565b946020939093013593505050565b6020808252825182820181905260009190848201906040850190845b818110156126ff578351835292840192918401916001016126e3565b50909695505050505050565b6000806040838503121561271e57600080fd5b50508035926020909101359150565b60008060006060848603121561274257600080fd5b61274b846124f4565b9250612759602085016124f4565b9150604084013590509250925092565b600067ffffffffffffffff83111561278357612783612510565b612796601f8401601f1916602001612526565b90508281528383830111156127aa57600080fd5b828260208301376000602084830101529392505050565b600082601f8301126127d257600080fd5b610f0783833560208501612769565b600080604083850312156127f457600080fd5b82359150602083013567ffffffffffffffff81111561281257600080fd5b61281e858286016127c1565b9150509250929050565b60006020828403121561283a57600080fd5b610f07826124f4565b8035801515811461250b57600080fd5b6000806040838503121561286657600080fd5b61286f836124f4565b915061287d60208401612843565b90509250929050565b6000806000806080858703121561289c57600080fd5b6128a5856124f4565b93506128b3602086016124f4565b925060408501359150606085013567ffffffffffffffff8111156128d657600080fd5b8501601f810187136128e757600080fd5b6128f687823560208401612769565b91505092959194509250565b6000806000806080858703121561291857600080fd5b84359350602085013567ffffffffffffffff81111561293657600080fd5b612942878288016127c1565b949794965050505060408301359260600135919050565b6000806040838503121561296c57600080fd5b612975836124f4565b915061287d602084016124f4565b60006020828403121561299557600080fd5b610f0782612843565b8481526080602082015260006129b76080830186612645565b6040830194909452506060015292915050565b600181811c908216806129de57607f821691505b6020821081036129fe57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612a4257612a42612a1a565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082612a6e57612a6e612a49565b500490565b6000816000190483118215151615612a8d57612a8d612a1a565b500290565b60008219821115612aa557612aa5612a1a565b500190565b60008451612abc818460208901612619565b845190830190612ad0818360208901612619565b8451910190612ae3818360208801612619565b0195945050505050565b600082821015612aff57612aff612a1a565b500390565b600082612b1357612b13612a49565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612b4a6080830184612645565b9695505050505050565b600060208284031215612b6657600080fd5b8151610f07816124c156fea264697066735822122028c3d36b12358a4783e8c4c46a989edb3d595cdb9738b57ebc46d84ba4f68b9664736f6c634300080d003300000000000000000000000035b7b7c40de5cff2f89a6648b88c1c9c0257742c

Deployed Bytecode

0x6080604052600436106101c25760003560e01c80636352211e116100f7578063a22cb46511610095578063e985e9c511610064578063e985e9c514610523578063f2fde38b1461056c578063fd57fca51461058c578063fdbda0ec146105ac57600080fd5b8063a22cb465146104a3578063b88d4fde146104c3578063c87b56dd146104e3578063e14a903f1461050357600080fd5b8063715018a6116100d1578063715018a61461043a578063890e839f1461044f5780638da5cb5b1461047057806395d89b411461048e57600080fd5b80636352211e146103da57806365fafb60146103fa57806370a082311461041a57600080fd5b80631b2ef1ca1161016457806333aa822e1161013e57806333aa822e146103655780633ccfd60b1461038557806342842e0e1461039a57806343bc1612146103ba57600080fd5b80631b2ef1ca146102f357806323b872dd146103065780632a55205a1461032657600080fd5b8063081812fc116101a0578063081812fc14610240578063095ea7b3146102785780630a294bf71461029857806317aad129146102c557600080fd5b806301ffc9a7146101c757806305a6d0ab146101fc57806306fdde031461021e575b600080fd5b3480156101d357600080fd5b506101e76101e23660046124d7565b6105dc565b60405190151581526020015b60405180910390f35b34801561020857600080fd5b5061021c610217366004612557565b6105ed565b005b34801561022a57600080fd5b50610233610889565b6040516101f39190612671565b34801561024c57600080fd5b5061026061025b366004612684565b61091b565b6040516001600160a01b0390911681526020016101f3565b34801561028457600080fd5b5061021c61029336600461269d565b610942565b3480156102a457600080fd5b506102b86102b3366004612684565b610a73565b6040516101f391906126c7565b3480156102d157600080fd5b506102e56102e0366004612684565b610ad8565b6040519081526020016101f3565b61021c61030136600461270b565b610ae7565b34801561031257600080fd5b5061021c61032136600461272d565b610dab565b34801561033257600080fd5b5061034661034136600461270b565b610e32565b604080516001600160a01b0390931683526020830191909152016101f3565b34801561037157600080fd5b506102e561038036600461270b565b610eed565b34801561039157600080fd5b5061021c610f0e565b3480156103a657600080fd5b5061021c6103b536600461272d565b610f22565b3480156103c657600080fd5b50600b54610260906001600160a01b031681565b3480156103e657600080fd5b506102606103f5366004612684565b610f3d565b34801561040657600080fd5b5061021c6104153660046127e1565b610fa2565b34801561042657600080fd5b506102e5610435366004612828565b61105c565b34801561044657600080fd5b5061021c6110f6565b34801561045b57600080fd5b50600b546101e790600160a01b900460ff1681565b34801561047c57600080fd5b506009546001600160a01b0316610260565b34801561049a57600080fd5b50610233611108565b3480156104af57600080fd5b5061021c6104be366004612853565b611117565b3480156104cf57600080fd5b5061021c6104de366004612886565b611126565b3480156104ef57600080fd5b506102336104fe366004612684565b6111b4565b34801561050f57600080fd5b5061021c61051e366004612902565b611357565b34801561052f57600080fd5b506101e761053e366004612959565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561057857600080fd5b5061021c610587366004612828565b61154e565b34801561059857600080fd5b5061021c6105a7366004612983565b6115de565b3480156105b857600080fd5b506105cc6105c7366004612684565b6116ac565b6040516101f3949392919061299e565b60006105e78261175d565b92915050565b6009546001600160a01b03163314806106105750600b546001600160a01b031633145b6106875760405162461bcd60e51b815260206004820152603f60248201527f5061696e74696e67204f7665723a204f6e6c7920746865206f776e6572206f7260448201527f206172746973742063616e2063616c6c20746869732066756e6374696f6e2e0060648201526084015b60405180910390fd5b6000600a60008481526020019081526020016000206040518060a0016040529081600082015481526020016001820180546106c1906129ca565b80601f01602080910402602001604051908101604052809291908181526020018280546106ed906129ca565b801561073a5780601f1061070f5761010080835404028352916020019161073a565b820191906000526020600020905b81548152906001019060200180831161071d57829003601f168201915b505050505081526020016002820154815260200160038201548152602001600482018054806020026020016040519081016040528092919081815260200182805480156107a657602002820191906000526020600020905b815481526020019060010190808311610792575b50505050508152505090506000600a60008360000151815260200190815260200160002060010180546107d8906129ca565b9050116108385760405162461bcd60e51b815260206004820152602860248201527f5061696e74696e67204f7665723a20436f6c6c656374696f6e20646f6573206e6044820152671bdd08195e1a5cdd60c21b606482015260840161067e565b815160005b8181101561088157600084828151811061085957610859612a04565b6020026020010151905061086e87858361179b565b508061087981612a30565b91505061083d565b505050505050565b606060008054610898906129ca565b80601f01602080910402602001604051908101604052809291908181526020018280546108c4906129ca565b80156109115780601f106108e657610100808354040283529160200191610911565b820191906000526020600020905b8154815290600101906020018083116108f457829003601f168201915b5050505050905090565b600061092682611895565b506000908152600460205260409020546001600160a01b031690565b600061094d82610f3d565b9050806001600160a01b0316836001600160a01b0316036109d65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161067e565b336001600160a01b03821614806109f257506109f2813361053e565b610a645760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161067e565b610a6e83836118f9565b505050565b6000818152600a6020908152604091829020600401805483518184028101840190945280845260609392830182828015610acc57602002820191906000526020600020905b815481526020019060010190808311610ab8575b50505050509050919050565b60006105e7620f424083612a5f565b600260085403610b395760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161067e565b60026008556000828152600a60209081526040808320815160a08101909252805482526001810180549293919291840191610b73906129ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9f906129ca565b8015610bec5780601f10610bc157610100808354040283529160200191610bec565b820191906000526020600020905b815481529060010190602001808311610bcf57829003601f168201915b50505050508152602001600282015481526020016003820154815260200160048201805480602002602001604051908101604052809291908181526020018280548015610c5857602002820191906000526020600020905b815481526020019060010190808311610c44575b50505050508152505090506000600a6000836000015181526020019081526020016000206001018054610c8a906129ca565b905011610cea5760405162461bcd60e51b815260206004820152602860248201527f5061696e74696e67204f7665723a20436f6c6c656374696f6e20646f6573206e6044820152671bdd08195e1a5cdd60c21b606482015260840161067e565b600b54600160a01b900460ff16610d435760405162461bcd60e51b815260206004820152601a60248201527f5061696e74696e67204f7665723a204e6f74206f6e2073616c65000000000000604482015260640161067e565b80606001513414610d965760405162461bcd60e51b815260206004820152601c60248201527f5061696e74696e67204f7665723a20496e76616c69642076616c756500000000604482015260640161067e565b610da133828461179b565b5050600160085550565b610db53382611974565b610e275760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f766564000000000000000000000000000000000000606482015260840161067e565b610a6e8383836119f3565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610eb15750604080518082019091526006546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610ed5906bffffffffffffffffffffffff1687612a73565b610edf9190612a5f565b915196919550909350505050565b600081610efd620f424085612a73565b610f079190612a92565b9392505050565b610f16611bcd565b610f203347611c27565b565b610a6e83838360405180602001604052806000815250611126565b6000818152600260205260408120546001600160a01b0316806105e75760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604482015260640161067e565b6009546001600160a01b0316331480610fc55750600b546001600160a01b031633145b6110375760405162461bcd60e51b815260206004820152603f60248201527f5061696e74696e67204f7665723a204f6e6c7920746865206f776e6572206f7260448201527f206172746973742063616e2063616c6c20746869732066756e6374696f6e2e00606482015260840161067e565b6000828152600a602090815260409091208251610a6e926001909201918401906123ee565b60006001600160a01b0382166110da5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e65720000000000000000000000000000000000000000000000606482015260840161067e565b506001600160a01b031660009081526003602052604090205490565b6110fe611bcd565b610f206000611d40565b606060018054610898906129ca565b611122338383611d9f565b5050565b6111303383611974565b6111a25760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f766564000000000000000000000000000000000000606482015260840161067e565b6111ae84848484611e6d565b50505050565b6000818152600260205260409020546060906001600160a01b03166112415760405162461bcd60e51b815260206004820152602e60248201527f5061696e74696e67204f7665723a2055524920717565727920666f72206e6f6e60448201527f6578697374656e7420746f6b656e000000000000000000000000000000000000606482015260840161067e565b600061124c83610ad8565b6000818152600a602052604081206001018054929350909161126d906129ca565b80601f0160208091040260200160405190810160405280929190818152602001828054611299906129ca565b80156112e65780601f106112bb576101008083540402835291602001916112e6565b820191906000526020600020905b8154815290600101906020018083116112c957829003601f168201915b50505050509050806112f785611eeb565b6040518060400160405280600581526020017f2e6a736f6e00000000000000000000000000000000000000000000000000000081525060405160200161133f93929190612aaa565b60405160208183030381529060405292505050919050565b6009546001600160a01b031633148061137a5750600b546001600160a01b031633145b6113ec5760405162461bcd60e51b815260206004820152603f60248201527f5061696e74696e67204f7665723a204f6e6c7920746865206f776e6572206f7260448201527f206172746973742063616e2063616c6c20746869732066756e6374696f6e2e00606482015260840161067e565b6000848152600a602052604090206001018054611408906129ca565b15905061147d5760405162461bcd60e51b815260206004820152602860248201527f5061696e74696e67204f7665723a20436f6c6c656374696f6e20616c7265616460448201527f7920657869737473000000000000000000000000000000000000000000000000606482015260840161067e565b6040518060a00160405280858152602001848152602001838152602001828152602001600067ffffffffffffffff8111156114ba576114ba612510565b6040519080825280602002602001820160405280156114e3578160200160208202803683370190505b5090526000858152600a60209081526040909120825181558282015180519192611515926001850192909101906123ee565b50604082015160028201556060820151600382015560808201518051611545916004840191602090910190612472565b50505050505050565b611556611bcd565b6001600160a01b0381166115d25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161067e565b6115db81611d40565b50565b6009546001600160a01b03163314806116015750600b546001600160a01b031633145b6116735760405162461bcd60e51b815260206004820152603f60248201527f5061696e74696e67204f7665723a204f6e6c7920746865206f776e6572206f7260448201527f206172746973742063616e2063616c6c20746869732066756e6374696f6e2e00606482015260840161067e565b600b8054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b600a60205260009081526040902080546001820180549192916116ce906129ca565b80601f01602080910402602001604051908101604052809291908181526020018280546116fa906129ca565b80156117475780601f1061171c57610100808354040283529160200191611747565b820191906000526020600020905b81548152906001019060200180831161172a57829003601f168201915b5050505050908060020154908060030154905084565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806105e757506105e782612020565b8160400151826080015151106117f35760405162461bcd60e51b815260206004820152601760248201527f5061696e74696e67204f7665723a20536f6c64206f7574000000000000000000604482015260640161067e565b600081118015611807575081604001518111155b6118535760405162461bcd60e51b815260206004820152601e60248201527f5061696e74696e67204f7665723a20496e76616c69642065646974696f6e0000604482015260640161067e565b6000611863836000015183610eed565b83516000908152600a602090815260408220600401805460018101825590835291200181905590506111ae84826120bb565b6000818152600260205260409020546001600160a01b03166115db5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604482015260640161067e565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061193b82610f3d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061198083610f3d565b9050806001600160a01b0316846001600160a01b031614806119c757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806119eb5750836001600160a01b03166119e08461091b565b6001600160a01b0316145b949350505050565b826001600160a01b0316611a0682610f3d565b6001600160a01b031614611a825760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161067e565b6001600160a01b038216611afd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161067e565b611b086000826118f9565b6001600160a01b0383166000908152600360205260408120805460019290611b31908490612aed565b90915550506001600160a01b0382166000908152600360205260408120805460019290611b5f908490612a92565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6009546001600160a01b03163314610f205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067e565b80471015611c775760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161067e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611cc4576040519150601f19603f3d011682016040523d82523d6000602084013e611cc9565b606091505b5050905080610a6e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161067e565b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611e005760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161067e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611e788484846119f3565b611e84848484846120d5565b6111ae5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161067e565b606081600003611f2e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611f585780611f4281612a30565b9150611f519050600a83612a5f565b9150611f32565b60008167ffffffffffffffff811115611f7357611f73612510565b6040519080825280601f01601f191660200182016040528015611f9d576020820181803683370190505b5090505b84156119eb57611fb2600183612aed565b9150611fbf600a86612b04565b611fca906030612a92565b60f81b818381518110611fdf57611fdf612a04565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612019600a86612a5f565b9450611fa1565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061208357506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806105e757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146105e7565b611122828260405180602001604052806000815250612221565b60006001600160a01b0384163b1561221657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612119903390899088908890600401612b18565b6020604051808303816000875af1925050508015612154575060408051601f3d908101601f1916820190925261215191810190612b54565b60015b6121fc573d808015612182576040519150601f19603f3d011682016040523d82523d6000602084013e612187565b606091505b5080516000036121f45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161067e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506119eb565b506001949350505050565b61222b838361229f565b61223860008484846120d5565b610a6e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161067e565b6001600160a01b0382166122f55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161067e565b6000818152600260205260409020546001600160a01b03161561235a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161067e565b6001600160a01b0382166000908152600360205260408120805460019290612383908490612a92565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546123fa906129ca565b90600052602060002090601f01602090048101928261241c5760008555612462565b82601f1061243557805160ff1916838001178555612462565b82800160010185558215612462579182015b82811115612462578251825591602001919060010190612447565b5061246e9291506124ac565b5090565b8280548282559060005260206000209081019282156124625791602002820182811115612462578251825591602001919060010190612447565b5b8082111561246e57600081556001016124ad565b6001600160e01b0319811681146115db57600080fd5b6000602082840312156124e957600080fd5b8135610f07816124c1565b80356001600160a01b038116811461250b57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254f5761254f612510565b604052919050565b60008060006060848603121561256c57600080fd5b612575846124f4565b92506020808501359250604085013567ffffffffffffffff8082111561259a57600080fd5b818701915087601f8301126125ae57600080fd5b8135818111156125c0576125c0612510565b8060051b91506125d1848301612526565b818152918301840191848101908a8411156125eb57600080fd5b938501935b83851015612609578435825293850193908501906125f0565b8096505050505050509250925092565b60005b8381101561263457818101518382015260200161261c565b838111156111ae5750506000910152565b6000815180845261265d816020860160208601612619565b601f01601f19169290920160200192915050565b602081526000610f076020830184612645565b60006020828403121561269657600080fd5b5035919050565b600080604083850312156126b057600080fd5b6126b9836124f4565b946020939093013593505050565b6020808252825182820181905260009190848201906040850190845b818110156126ff578351835292840192918401916001016126e3565b50909695505050505050565b6000806040838503121561271e57600080fd5b50508035926020909101359150565b60008060006060848603121561274257600080fd5b61274b846124f4565b9250612759602085016124f4565b9150604084013590509250925092565b600067ffffffffffffffff83111561278357612783612510565b612796601f8401601f1916602001612526565b90508281528383830111156127aa57600080fd5b828260208301376000602084830101529392505050565b600082601f8301126127d257600080fd5b610f0783833560208501612769565b600080604083850312156127f457600080fd5b82359150602083013567ffffffffffffffff81111561281257600080fd5b61281e858286016127c1565b9150509250929050565b60006020828403121561283a57600080fd5b610f07826124f4565b8035801515811461250b57600080fd5b6000806040838503121561286657600080fd5b61286f836124f4565b915061287d60208401612843565b90509250929050565b6000806000806080858703121561289c57600080fd5b6128a5856124f4565b93506128b3602086016124f4565b925060408501359150606085013567ffffffffffffffff8111156128d657600080fd5b8501601f810187136128e757600080fd5b6128f687823560208401612769565b91505092959194509250565b6000806000806080858703121561291857600080fd5b84359350602085013567ffffffffffffffff81111561293657600080fd5b612942878288016127c1565b949794965050505060408301359260600135919050565b6000806040838503121561296c57600080fd5b612975836124f4565b915061287d602084016124f4565b60006020828403121561299557600080fd5b610f0782612843565b8481526080602082015260006129b76080830186612645565b6040830194909452506060015292915050565b600181811c908216806129de57607f821691505b6020821081036129fe57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612a4257612a42612a1a565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082612a6e57612a6e612a49565b500490565b6000816000190483118215151615612a8d57612a8d612a1a565b500290565b60008219821115612aa557612aa5612a1a565b500190565b60008451612abc818460208901612619565b845190830190612ad0818360208901612619565b8451910190612ae3818360208801612619565b0195945050505050565b600082821015612aff57612aff612a1a565b500390565b600082612b1357612b13612a49565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612b4a6080830184612645565b9695505050505050565b600060208284031215612b6657600080fd5b8151610f07816124c156fea264697066735822122028c3d36b12358a4783e8c4c46a989edb3d595cdb9738b57ebc46d84ba4f68b9664736f6c634300080d0033

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

00000000000000000000000035b7b7c40de5cff2f89a6648b88c1c9c0257742c

-----Decoded View---------------
Arg [0] : artistAddress (address): 0x35b7b7C40de5cFF2F89A6648b88c1C9c0257742c

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000035b7b7c40de5cff2f89a6648b88c1c9c0257742c


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.