ETH Price: $2,626.62 (+7.40%)

Contract

0x505DEBdde33613D5f05141415a4388719a76d98e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...206934302024-09-06 18:46:1137 days ago1725648371IN
Tiny Sketches: TS Token
0 ETH0.000309156.69585685
Set Approval For...205259952024-08-14 9:32:2361 days ago1723627943IN
Tiny Sketches: TS Token
0 ETH0.000213744.62946006
Set Approval For...201762672024-06-26 13:49:11110 days ago1719409751IN
Tiny Sketches: TS Token
0 ETH0.000165576.82518234
Safe Transfer Fr...197425602024-04-26 22:40:23170 days ago1714171223IN
Tiny Sketches: TS Token
0 ETH0.000292785.3351207
Safe Transfer Fr...197425562024-04-26 22:39:35170 days ago1714171175IN
Tiny Sketches: TS Token
0 ETH0.000339525.68920875
Safe Transfer Fr...197425522024-04-26 22:38:47170 days ago1714171127IN
Tiny Sketches: TS Token
0 ETH0.00046116.00572435
Set Approval For...196369992024-04-12 3:59:11185 days ago1712894351IN
Tiny Sketches: TS Token
0 ETH0.0005088311.02058575
Set Approval For...195826792024-04-04 13:24:35193 days ago1712237075IN
Tiny Sketches: TS Token
0 ETH0.0014372331.12847429
Set Approval For...189255532024-01-03 8:09:11285 days ago1704269351IN
Tiny Sketches: TS Token
0 ETH0.0005751312.45661028
Set Approval For...188895582023-12-29 6:48:35290 days ago1703832515IN
Tiny Sketches: TS Token
0 ETH0.001229826.63588395
Set Approval For...186072322023-11-19 17:05:47330 days ago1700413547IN
Tiny Sketches: TS Token
0 ETH0.0009864121.36439044
Set Approval For...186063512023-11-19 14:08:23330 days ago1700402903IN
Tiny Sketches: TS Token
0 ETH0.001000521.66964672
Set Approval For...183190292023-10-10 9:01:47370 days ago1696928507IN
Tiny Sketches: TS Token
0 ETH0.000323016.99603927
Set Approval For...182521382023-10-01 0:34:59379 days ago1696120499IN
Tiny Sketches: TS Token
0 ETH0.000286436.20385444
Set Approval For...176677252023-07-11 3:32:59461 days ago1689046379IN
Tiny Sketches: TS Token
0 ETH0.0008430318.25899364
Set Approval For...176599862023-07-10 1:24:35462 days ago1688952275IN
Tiny Sketches: TS Token
0 ETH0.0006119413.25390207
Set Approval For...175274542023-06-21 10:31:11481 days ago1687343471IN
Tiny Sketches: TS Token
0 ETH0.0004868620
Set Approval For...174667172023-06-12 21:44:35489 days ago1686606275IN
Tiny Sketches: TS Token
0 ETH0.0006491114.05893412
Set Approval For...167754522023-03-07 9:11:11587 days ago1678180271IN
Tiny Sketches: TS Token
0 ETH0.001067823.1271274
Set Approval For...167638342023-03-05 17:59:47588 days ago1678039187IN
Tiny Sketches: TS Token
0 ETH0.0014020430.36632613
Set Approval For...167576932023-03-04 21:17:59589 days ago1677964679IN
Tiny Sketches: TS Token
0 ETH0.0006790727.99290054
Set Approval For...167576672023-03-04 21:12:47589 days ago1677964367IN
Tiny Sketches: TS Token
0 ETH0.001184125.64613159
Safe Transfer Fr...167576342023-03-04 21:06:11589 days ago1677963971IN
Tiny Sketches: TS Token
0 ETH0.0016992227.80460222
Set Approval For...167575942023-03-04 20:57:59589 days ago1677963479IN
Tiny Sketches: TS Token
0 ETH0.0011827825.61747319
Set Approval For...167154782023-02-26 22:48:59595 days ago1677451739IN
Tiny Sketches: TS Token
0 ETH0.0013773229.83091533
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
150487642022-06-30 5:19:17837 days ago1656566357
Tiny Sketches: TS Token
11.8 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TinySketches

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 1000 runs

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

pragma solidity 0.8.12;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

interface iTinySketches {
  function mintedTokenIdList() external view returns (uint256[] memory);

  function tokenIds(address _owner) external view returns (uint256[] memory);

  function setStartDate(uint256 startDateInSec) external;

  function mint(uint256 tokenId) external payable;

  function mintForFree(address to, uint256[] memory tokenIdList) external;

  function setIsOnSale(bool isOnSale) external;

  function setBaseTokenURI(string calldata newBaseURI) external;

  function withdraw() external;
}

contract TinySketches is iTinySketches, ERC721, ReentrancyGuard, Ownable {
  uint256 public constant TOTAL_ART_NUM = 4;
  uint256 public constant EACH_SUPPLY = 60;
  uint256 public constant MAX_SUPPLY = TOTAL_ART_NUM * EACH_SUPPLY;
  uint256 public constant PRICE = 0.05 ether;
  bool public isOnSale;
  uint256 public startDate;

  uint256 private constant A_WEEK = 604800; // 60 * 60 * 24 * 7

  uint256[] private _mintedTokenIdList;
  string private _baseTokenURI;

  constructor(string memory baseTokenURI, uint256 startDateInSec)
    ERC721("Tiny Sketches", "TS")
  {
    _baseTokenURI = baseTokenURI;
    startDate = startDateInSec;
  }

  modifier checkMintable(uint256 tokenId) {
    uint256 _mintableLastTokenId = mintableLastTokenId();
    require(
      tokenId <= _mintableLastTokenId,
      "TinySketches: The tokenId is not available yet."
    );
    _;
  }

  function mintableLastTokenId() public view returns (uint256) {
    uint256 t = block.timestamp;
    require(t > startDate, "TinySketches: no tokens are on sale yet.");
    uint256 passedWeeks = (t - startDate) / A_WEEK + 1;
    if (passedWeeks > 3) {
      return 239;
    } else {
      return passedWeeks * EACH_SUPPLY - 1;
    }
  }

  function tokenIds(address _owner)
    external
    view
    override
    returns (uint256[] memory)
  {
    uint256 tokenCount = balanceOf(_owner);
    uint256[] memory ids = new uint256[](tokenCount);
    uint256 count;
    for (uint256 i = 0; i < MAX_SUPPLY; i++) {
      if (_exists(i) && ownerOf(i) == _owner) {
        ids[count] = i;
        count++;
      }
    }
    return ids;
  }

  function tokenURI(uint256 tokenId)
    public
    view
    override
    returns (string memory)
  {
    require(_exists(tokenId), "TinySketches: URI query for nonexistent token");
    return
      string(
        bytes.concat(
          bytes(_baseTokenURI),
          bytes(Strings.toString(tokenId)),
          bytes(".json")
        )
      );
  }

  function mintedTokenIdList()
    external
    view
    override
    returns (uint256[] memory)
  {
    return _mintedTokenIdList;
  }

  function setStartDate(uint256 startDateInSec) external override onlyOwner {
    startDate = startDateInSec;
  }

  function mint(uint256 tokenId)
    external
    payable
    override
    nonReentrant
    checkMintable(tokenId)
  {
    require(isOnSale, "TinySketches: Not on sale");
    require(msg.value == PRICE, "TinySketches: Invalid value");

    _mintedTokenIdList.push(tokenId);
    _safeMint(_msgSender(), tokenId);
  }

  function mintForFree(address to, uint256[] memory tokenIdList)
    external
    override
    onlyOwner
  {
    uint256 count = tokenIdList.length;
    for (uint256 i; i < count; i++) {
      uint256 id = tokenIdList[i];
      require(id < MAX_SUPPLY, "TinySketches: Invalid token id");
      _mintedTokenIdList.push(id);
      _safeMint(to, id);
    }
  }

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

  function setBaseTokenURI(string memory baseTokenURI) external onlyOwner {
    _baseTokenURI = baseTokenURI;
  }

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"uint256","name":"startDateInSec","type":"uint256"}],"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":[],"name":"EACH_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_ART_NUM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","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":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIdList","type":"uint256[]"}],"name":"mintForFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintableLastTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOnSale","type":"bool"}],"name":"setIsOnSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startDateInSec","type":"uint256"}],"name":"setStartDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"address","name":"_owner","type":"address"}],"name":"tokenIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002924380380620029248339810160408190526200003491620001da565b604080518082018252600d81526c54696e7920536b65746368657360981b602080830191825283518085019094526002845261545360f01b90840152815191929162000083916000916200011e565b508051620000999060019060208401906200011e565b5050600160065550620000ac33620000cc565b8151620000c190600a9060208501906200011e565b5060085550620002fc565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012c90620002bf565b90600052602060002090601f0160209004810192826200015057600085556200019b565b82601f106200016b57805160ff19168380011785556200019b565b828001600101855582156200019b579182015b828111156200019b5782518255916020019190600101906200017e565b50620001a9929150620001ad565b5090565b5b80821115620001a95760008155600101620001ae565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215620001ee57600080fd5b82516001600160401b03808211156200020657600080fd5b818501915085601f8301126200021b57600080fd5b815181811115620002305762000230620001c4565b604051601f8201601f19908116603f011681019083821181831017156200025b576200025b620001c4565b816040528281526020935088848487010111156200027857600080fd5b600091505b828210156200029c57848201840151818301850152908301906200027d565b82821115620002ae5760008484830101525b969092015195979596505050505050565b600181811c90821680620002d457607f821691505b60208210811415620002f657634e487b7160e01b600052602260045260246000fd5b50919050565b612618806200030c6000396000f3fe6080604052600436106101d85760003560e01c8063715018a611610102578063a0712d6811610095578063e985e9c511610064578063e985e9c514610514578063f2fde38b1461055d578063fc97a3031461057d578063fd57fca51461059d57600080fd5b8063a0712d68146104a1578063a22cb465146104b4578063b88d4fde146104d4578063c87b56dd146104f457600080fd5b80638a882706116100d15780638a8827061461043e5780638d859f3e146104535780638da5cb5b1461046e57806395d89b411461048c57600080fd5b8063715018a6146103c857806382d95df5146103dd578063877c0d89146103fd578063890e839f1461041d57600080fd5b806330176e131161017a57806348ba8ef41161014957806348ba8ef4146103515780634af0a420146103735780636352211e1461038857806370a08231146103a857600080fd5b806330176e13146102e757806332cb6b0c146103075780633ccfd60b1461031c57806342842e0e1461033157600080fd5b8063095ea7b3116101b6578063095ea7b31461026c5780630b97bc861461028e5780630ea67403146102b257806323b872dd146102c757600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f8366004611f8a565b6105bd565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b5061022761065a565b6040516102099190612006565b34801561024057600080fd5b5061025461024f366004612019565b6106ec565b6040516001600160a01b039091168152602001610209565b34801561027857600080fd5b5061028c61028736600461204e565b610786565b005b34801561029a57600080fd5b506102a460085481565b604051908152602001610209565b3480156102be57600080fd5b506102a46108b8565b3480156102d357600080fd5b5061028c6102e2366004612078565b61098f565b3480156102f357600080fd5b5061028c610302366004612153565b610a16565b34801561031357600080fd5b506102a4610a87565b34801561032857600080fd5b5061028c610a96565b34801561033d57600080fd5b5061028c61034c366004612078565b610afc565b34801561035d57600080fd5b50610366610b17565b604051610209919061219c565b34801561037f57600080fd5b506102a4603c81565b34801561039457600080fd5b506102546103a3366004612019565b610b6e565b3480156103b457600080fd5b506102a46103c33660046121e0565b610bf9565b3480156103d457600080fd5b5061028c610c93565b3480156103e957600080fd5b5061028c6103f8366004612019565b610cf7565b34801561040957600080fd5b5061028c6104183660046121fb565b610d56565b34801561042957600080fd5b506007546101fd90600160a01b900460ff1681565b34801561044a57600080fd5b506102a4600481565b34801561045f57600080fd5b506102a466b1a2bc2ec5000081565b34801561047a57600080fd5b506007546001600160a01b0316610254565b34801561049857600080fd5b50610227610e8f565b61028c6104af366004612019565b610e9e565b3480156104c057600080fd5b5061028c6104cf3660046122c4565b611071565b3480156104e057600080fd5b5061028c6104ef3660046122f7565b61107c565b34801561050057600080fd5b5061022761050f366004612019565b611104565b34801561052057600080fd5b506101fd61052f366004612373565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561056957600080fd5b5061028c6105783660046121e0565b6111fa565b34801561058957600080fd5b506103666105983660046121e0565b6112dc565b3480156105a957600080fd5b5061028c6105b836600461239d565b6113d5565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061062057506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061065457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060008054610669906123b8565b80601f0160208091040260200160405190810160405280929190818152602001828054610695906123b8565b80156106e25780601f106106b7576101008083540402835291602001916106e2565b820191906000526020600020905b8154815290600101906020018083116106c557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661076a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061079182610b6e565b9050806001600160a01b0316836001600160a01b0316141561081b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610761565b336001600160a01b03821614806108375750610837813361052f565b6108a95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610761565b6108b38383611468565b505050565b600854600090429081116109345760405162461bcd60e51b815260206004820152602860248201527f54696e79536b6574636865733a206e6f20746f6b656e7320617265206f6e207360448201527f616c65207965742e0000000000000000000000000000000000000000000000006064820152608401610761565b600062093a80600854836109489190612409565b6109529190612436565b61095d90600161244a565b905060038111156109715760ef9250505090565b600161097e603c83612462565b6109889190612409565b9250505090565b61099933826114e3565b610a0b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610761565b6108b38383836115da565b6007546001600160a01b03163314610a705760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b8051610a8390600a906020840190611edb565b5050565b610a93603c6004612462565b81565b6007546001600160a01b03163314610af05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b610afa33476117b4565b565b6108b38383836040518060200160405280600081525061107c565b606060098054806020026020016040519081016040528092919081815260200182805480156106e257602002820191906000526020600020905b815481526020019060010190808311610b51575050505050905090565b6000818152600260205260408120546001600160a01b0316806106545760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610761565b60006001600160a01b038216610c775760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610761565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314610ced5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b610afa60006118cd565b6007546001600160a01b03163314610d515760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b600855565b6007546001600160a01b03163314610db05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b805160005b81811015610e89576000838281518110610dd157610dd1612481565b60200260200101519050603c6004610de99190612462565b8110610e375760405162461bcd60e51b815260206004820152601e60248201527f54696e79536b6574636865733a20496e76616c696420746f6b656e20696400006044820152606401610761565b600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af01819055610e76858261192c565b5080610e8181612497565b915050610db5565b50505050565b606060018054610669906123b8565b60026006541415610ef15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610761565b6002600655806000610f016108b8565b905080821115610f795760405162461bcd60e51b815260206004820152602f60248201527f54696e79536b6574636865733a2054686520746f6b656e4964206973206e6f7460448201527f20617661696c61626c65207965742e00000000000000000000000000000000006064820152608401610761565b600754600160a01b900460ff16610fd25760405162461bcd60e51b815260206004820152601960248201527f54696e79536b6574636865733a204e6f74206f6e2073616c65000000000000006044820152606401610761565b66b1a2bc2ec5000034146110285760405162461bcd60e51b815260206004820152601b60248201527f54696e79536b6574636865733a20496e76616c69642076616c756500000000006044820152606401610761565b600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af01839055611067338461192c565b5050600160065550565b610a83338383611946565b61108633836114e3565b6110f85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610761565b610e8984848484611a15565b6000818152600260205260409020546060906001600160a01b03166111915760405162461bcd60e51b815260206004820152602d60248201527f54696e79536b6574636865733a2055524920717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610761565b600a61119c83611a93565b6040518060400160405280600581526020017f2e6a736f6e0000000000000000000000000000000000000000000000000000008152506040516020016111e4939291906124ce565b6040516020818303038152906040529050919050565b6007546001600160a01b031633146112545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b6001600160a01b0381166112d05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610761565b6112d9816118cd565b50565b606060006112e983610bf9565b905060008167ffffffffffffffff811115611306576113066120b4565b60405190808252806020026020018201604052801561132f578160200160208202803683370190505b5090506000805b611342603c6004612462565b8110156113cb576000818152600260205260409020546001600160a01b0316151580156113885750856001600160a01b031661137d82610b6e565b6001600160a01b0316145b156113b957808383815181106113a0576113a0612481565b6020908102919091010152816113b581612497565b9250505b806113c381612497565b915050611336565b5090949350505050565b6007546001600160a01b0316331461142f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b60078054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906114aa82610b6e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661155c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610761565b600061156783610b6e565b9050806001600160a01b0316846001600160a01b031614806115a25750836001600160a01b0316611597846106ec565b6001600160a01b0316145b806115d257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166115ed82610b6e565b6001600160a01b0316146116695760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610761565b6001600160a01b0382166116e45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610761565b6116ef600082611468565b6001600160a01b0383166000908152600360205260408120805460019290611718908490612409565b90915550506001600160a01b038216600090815260036020526040812080546001929061174690849061244a565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b804710156118045760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610761565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611851576040519150601f19603f3d011682016040523d82523d6000602084013e611856565b606091505b50509050806108b35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610761565b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a83828260405180602001604052806000815250611bc5565b816001600160a01b0316836001600160a01b031614156119a85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610761565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611a208484846115da565b611a2c84848484611c43565b610e895760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610761565b606081611ad357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611afd5780611ae781612497565b9150611af69050600a83612436565b9150611ad7565b60008167ffffffffffffffff811115611b1857611b186120b4565b6040519080825280601f01601f191660200182016040528015611b42576020820181803683370190505b5090505b84156115d257611b57600183612409565b9150611b64600a8661257f565b611b6f90603061244a565b60f81b818381518110611b8457611b84612481565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611bbe600a86612436565b9450611b46565b611bcf8383611d8c565b611bdc6000848484611c43565b6108b35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610761565b60006001600160a01b0384163b15611d8157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611c87903390899088908890600401612593565b6020604051808303816000875af1925050508015611cc2575060408051601f3d908101601f19168201909252611cbf918101906125c5565b60015b611d67573d808015611cf0576040519150601f19603f3d011682016040523d82523d6000602084013e611cf5565b606091505b508051611d5f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610761565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115d2565b506001949350505050565b6001600160a01b038216611de25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610761565b6000818152600260205260409020546001600160a01b031615611e475760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610761565b6001600160a01b0382166000908152600360205260408120805460019290611e7090849061244a565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611ee7906123b8565b90600052602060002090601f016020900481019282611f095760008555611f4f565b82601f10611f2257805160ff1916838001178555611f4f565b82800160010185558215611f4f579182015b82811115611f4f578251825591602001919060010190611f34565b50611f5b929150611f5f565b5090565b5b80821115611f5b5760008155600101611f60565b6001600160e01b0319811681146112d957600080fd5b600060208284031215611f9c57600080fd5b8135611fa781611f74565b9392505050565b60005b83811015611fc9578181015183820152602001611fb1565b83811115610e895750506000910152565b60008151808452611ff2816020860160208601611fae565b601f01601f19169290920160200192915050565b602081526000611fa76020830184611fda565b60006020828403121561202b57600080fd5b5035919050565b80356001600160a01b038116811461204957600080fd5b919050565b6000806040838503121561206157600080fd5b61206a83612032565b946020939093013593505050565b60008060006060848603121561208d57600080fd5b61209684612032565b92506120a460208501612032565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156120f3576120f36120b4565b604052919050565b600067ffffffffffffffff831115612115576121156120b4565b612128601f8401601f19166020016120ca565b905082815283838301111561213c57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561216557600080fd5b813567ffffffffffffffff81111561217c57600080fd5b8201601f8101841361218d57600080fd5b6115d2848235602084016120fb565b6020808252825182820181905260009190848201906040850190845b818110156121d4578351835292840192918401916001016121b8565b50909695505050505050565b6000602082840312156121f257600080fd5b611fa782612032565b6000806040838503121561220e57600080fd5b61221783612032565b915060208084013567ffffffffffffffff8082111561223557600080fd5b818601915086601f83011261224957600080fd5b81358181111561225b5761225b6120b4565b8060051b915061226c8483016120ca565b818152918301840191848101908984111561228657600080fd5b938501935b838510156122a45784358252938501939085019061228b565b8096505050505050509250929050565b8035801515811461204957600080fd5b600080604083850312156122d757600080fd5b6122e083612032565b91506122ee602084016122b4565b90509250929050565b6000806000806080858703121561230d57600080fd5b61231685612032565b935061232460208601612032565b925060408501359150606085013567ffffffffffffffff81111561234757600080fd5b8501601f8101871361235857600080fd5b612367878235602084016120fb565b91505092959194509250565b6000806040838503121561238657600080fd5b61238f83612032565b91506122ee60208401612032565b6000602082840312156123af57600080fd5b611fa7826122b4565b600181811c908216806123cc57607f821691505b602082108114156123ed57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561241b5761241b6123f3565b500390565b634e487b7160e01b600052601260045260246000fd5b60008261244557612445612420565b500490565b6000821982111561245d5761245d6123f3565b500190565b600081600019048311821515161561247c5761247c6123f3565b500290565b634e487b7160e01b600052603260045260246000fd5b60006000198214156124ab576124ab6123f3565b5060010190565b600081516124c4818560208601611fae565b9290920192915050565b600080855481600182811c9150808316806124ea57607f831692505b602080841082141561250a57634e487b7160e01b86526022600452602486fd5b81801561251e576001811461252f5761255c565b60ff1986168952848901965061255c565b60008c81526020902060005b868110156125545781548b82015290850190830161253b565b505084890196505b50505050505061257561256f82876124b2565b856124b2565b9695505050505050565b60008261258e5761258e612420565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526125756080830184611fda565b6000602082840312156125d757600080fd5b8151611fa781611f7456fea264697066735822122079640cf41f3907db6d0c70423ac448ecdf5595014f4f610dbe0e2bd43f63911f64736f6c634300080c0033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000628258e0000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f6e656f72742e6d7970696e6174612e636c6f75642f697066732f516d634853584744447938545753386244464d6b7953436f343536353971514b5966716e4d6269596e325957564b2f000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101d85760003560e01c8063715018a611610102578063a0712d6811610095578063e985e9c511610064578063e985e9c514610514578063f2fde38b1461055d578063fc97a3031461057d578063fd57fca51461059d57600080fd5b8063a0712d68146104a1578063a22cb465146104b4578063b88d4fde146104d4578063c87b56dd146104f457600080fd5b80638a882706116100d15780638a8827061461043e5780638d859f3e146104535780638da5cb5b1461046e57806395d89b411461048c57600080fd5b8063715018a6146103c857806382d95df5146103dd578063877c0d89146103fd578063890e839f1461041d57600080fd5b806330176e131161017a57806348ba8ef41161014957806348ba8ef4146103515780634af0a420146103735780636352211e1461038857806370a08231146103a857600080fd5b806330176e13146102e757806332cb6b0c146103075780633ccfd60b1461031c57806342842e0e1461033157600080fd5b8063095ea7b3116101b6578063095ea7b31461026c5780630b97bc861461028e5780630ea67403146102b257806323b872dd146102c757600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f8366004611f8a565b6105bd565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b5061022761065a565b6040516102099190612006565b34801561024057600080fd5b5061025461024f366004612019565b6106ec565b6040516001600160a01b039091168152602001610209565b34801561027857600080fd5b5061028c61028736600461204e565b610786565b005b34801561029a57600080fd5b506102a460085481565b604051908152602001610209565b3480156102be57600080fd5b506102a46108b8565b3480156102d357600080fd5b5061028c6102e2366004612078565b61098f565b3480156102f357600080fd5b5061028c610302366004612153565b610a16565b34801561031357600080fd5b506102a4610a87565b34801561032857600080fd5b5061028c610a96565b34801561033d57600080fd5b5061028c61034c366004612078565b610afc565b34801561035d57600080fd5b50610366610b17565b604051610209919061219c565b34801561037f57600080fd5b506102a4603c81565b34801561039457600080fd5b506102546103a3366004612019565b610b6e565b3480156103b457600080fd5b506102a46103c33660046121e0565b610bf9565b3480156103d457600080fd5b5061028c610c93565b3480156103e957600080fd5b5061028c6103f8366004612019565b610cf7565b34801561040957600080fd5b5061028c6104183660046121fb565b610d56565b34801561042957600080fd5b506007546101fd90600160a01b900460ff1681565b34801561044a57600080fd5b506102a4600481565b34801561045f57600080fd5b506102a466b1a2bc2ec5000081565b34801561047a57600080fd5b506007546001600160a01b0316610254565b34801561049857600080fd5b50610227610e8f565b61028c6104af366004612019565b610e9e565b3480156104c057600080fd5b5061028c6104cf3660046122c4565b611071565b3480156104e057600080fd5b5061028c6104ef3660046122f7565b61107c565b34801561050057600080fd5b5061022761050f366004612019565b611104565b34801561052057600080fd5b506101fd61052f366004612373565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561056957600080fd5b5061028c6105783660046121e0565b6111fa565b34801561058957600080fd5b506103666105983660046121e0565b6112dc565b3480156105a957600080fd5b5061028c6105b836600461239d565b6113d5565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061062057506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061065457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060008054610669906123b8565b80601f0160208091040260200160405190810160405280929190818152602001828054610695906123b8565b80156106e25780601f106106b7576101008083540402835291602001916106e2565b820191906000526020600020905b8154815290600101906020018083116106c557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661076a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061079182610b6e565b9050806001600160a01b0316836001600160a01b0316141561081b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610761565b336001600160a01b03821614806108375750610837813361052f565b6108a95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610761565b6108b38383611468565b505050565b600854600090429081116109345760405162461bcd60e51b815260206004820152602860248201527f54696e79536b6574636865733a206e6f20746f6b656e7320617265206f6e207360448201527f616c65207965742e0000000000000000000000000000000000000000000000006064820152608401610761565b600062093a80600854836109489190612409565b6109529190612436565b61095d90600161244a565b905060038111156109715760ef9250505090565b600161097e603c83612462565b6109889190612409565b9250505090565b61099933826114e3565b610a0b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610761565b6108b38383836115da565b6007546001600160a01b03163314610a705760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b8051610a8390600a906020840190611edb565b5050565b610a93603c6004612462565b81565b6007546001600160a01b03163314610af05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b610afa33476117b4565b565b6108b38383836040518060200160405280600081525061107c565b606060098054806020026020016040519081016040528092919081815260200182805480156106e257602002820191906000526020600020905b815481526020019060010190808311610b51575050505050905090565b6000818152600260205260408120546001600160a01b0316806106545760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610761565b60006001600160a01b038216610c775760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610761565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314610ced5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b610afa60006118cd565b6007546001600160a01b03163314610d515760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b600855565b6007546001600160a01b03163314610db05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b805160005b81811015610e89576000838281518110610dd157610dd1612481565b60200260200101519050603c6004610de99190612462565b8110610e375760405162461bcd60e51b815260206004820152601e60248201527f54696e79536b6574636865733a20496e76616c696420746f6b656e20696400006044820152606401610761565b600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af01819055610e76858261192c565b5080610e8181612497565b915050610db5565b50505050565b606060018054610669906123b8565b60026006541415610ef15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610761565b6002600655806000610f016108b8565b905080821115610f795760405162461bcd60e51b815260206004820152602f60248201527f54696e79536b6574636865733a2054686520746f6b656e4964206973206e6f7460448201527f20617661696c61626c65207965742e00000000000000000000000000000000006064820152608401610761565b600754600160a01b900460ff16610fd25760405162461bcd60e51b815260206004820152601960248201527f54696e79536b6574636865733a204e6f74206f6e2073616c65000000000000006044820152606401610761565b66b1a2bc2ec5000034146110285760405162461bcd60e51b815260206004820152601b60248201527f54696e79536b6574636865733a20496e76616c69642076616c756500000000006044820152606401610761565b600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af01839055611067338461192c565b5050600160065550565b610a83338383611946565b61108633836114e3565b6110f85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610761565b610e8984848484611a15565b6000818152600260205260409020546060906001600160a01b03166111915760405162461bcd60e51b815260206004820152602d60248201527f54696e79536b6574636865733a2055524920717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610761565b600a61119c83611a93565b6040518060400160405280600581526020017f2e6a736f6e0000000000000000000000000000000000000000000000000000008152506040516020016111e4939291906124ce565b6040516020818303038152906040529050919050565b6007546001600160a01b031633146112545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b6001600160a01b0381166112d05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610761565b6112d9816118cd565b50565b606060006112e983610bf9565b905060008167ffffffffffffffff811115611306576113066120b4565b60405190808252806020026020018201604052801561132f578160200160208202803683370190505b5090506000805b611342603c6004612462565b8110156113cb576000818152600260205260409020546001600160a01b0316151580156113885750856001600160a01b031661137d82610b6e565b6001600160a01b0316145b156113b957808383815181106113a0576113a0612481565b6020908102919091010152816113b581612497565b9250505b806113c381612497565b915050611336565b5090949350505050565b6007546001600160a01b0316331461142f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b60078054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906114aa82610b6e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661155c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610761565b600061156783610b6e565b9050806001600160a01b0316846001600160a01b031614806115a25750836001600160a01b0316611597846106ec565b6001600160a01b0316145b806115d257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166115ed82610b6e565b6001600160a01b0316146116695760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610761565b6001600160a01b0382166116e45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610761565b6116ef600082611468565b6001600160a01b0383166000908152600360205260408120805460019290611718908490612409565b90915550506001600160a01b038216600090815260036020526040812080546001929061174690849061244a565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b804710156118045760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610761565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611851576040519150601f19603f3d011682016040523d82523d6000602084013e611856565b606091505b50509050806108b35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610761565b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610a83828260405180602001604052806000815250611bc5565b816001600160a01b0316836001600160a01b031614156119a85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610761565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611a208484846115da565b611a2c84848484611c43565b610e895760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610761565b606081611ad357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611afd5780611ae781612497565b9150611af69050600a83612436565b9150611ad7565b60008167ffffffffffffffff811115611b1857611b186120b4565b6040519080825280601f01601f191660200182016040528015611b42576020820181803683370190505b5090505b84156115d257611b57600183612409565b9150611b64600a8661257f565b611b6f90603061244a565b60f81b818381518110611b8457611b84612481565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611bbe600a86612436565b9450611b46565b611bcf8383611d8c565b611bdc6000848484611c43565b6108b35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610761565b60006001600160a01b0384163b15611d8157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611c87903390899088908890600401612593565b6020604051808303816000875af1925050508015611cc2575060408051601f3d908101601f19168201909252611cbf918101906125c5565b60015b611d67573d808015611cf0576040519150601f19603f3d011682016040523d82523d6000602084013e611cf5565b606091505b508051611d5f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610761565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115d2565b506001949350505050565b6001600160a01b038216611de25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610761565b6000818152600260205260409020546001600160a01b031615611e475760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610761565b6001600160a01b0382166000908152600360205260408120805460019290611e7090849061244a565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611ee7906123b8565b90600052602060002090601f016020900481019282611f095760008555611f4f565b82601f10611f2257805160ff1916838001178555611f4f565b82800160010185558215611f4f579182015b82811115611f4f578251825591602001919060010190611f34565b50611f5b929150611f5f565b5090565b5b80821115611f5b5760008155600101611f60565b6001600160e01b0319811681146112d957600080fd5b600060208284031215611f9c57600080fd5b8135611fa781611f74565b9392505050565b60005b83811015611fc9578181015183820152602001611fb1565b83811115610e895750506000910152565b60008151808452611ff2816020860160208601611fae565b601f01601f19169290920160200192915050565b602081526000611fa76020830184611fda565b60006020828403121561202b57600080fd5b5035919050565b80356001600160a01b038116811461204957600080fd5b919050565b6000806040838503121561206157600080fd5b61206a83612032565b946020939093013593505050565b60008060006060848603121561208d57600080fd5b61209684612032565b92506120a460208501612032565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156120f3576120f36120b4565b604052919050565b600067ffffffffffffffff831115612115576121156120b4565b612128601f8401601f19166020016120ca565b905082815283838301111561213c57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561216557600080fd5b813567ffffffffffffffff81111561217c57600080fd5b8201601f8101841361218d57600080fd5b6115d2848235602084016120fb565b6020808252825182820181905260009190848201906040850190845b818110156121d4578351835292840192918401916001016121b8565b50909695505050505050565b6000602082840312156121f257600080fd5b611fa782612032565b6000806040838503121561220e57600080fd5b61221783612032565b915060208084013567ffffffffffffffff8082111561223557600080fd5b818601915086601f83011261224957600080fd5b81358181111561225b5761225b6120b4565b8060051b915061226c8483016120ca565b818152918301840191848101908984111561228657600080fd5b938501935b838510156122a45784358252938501939085019061228b565b8096505050505050509250929050565b8035801515811461204957600080fd5b600080604083850312156122d757600080fd5b6122e083612032565b91506122ee602084016122b4565b90509250929050565b6000806000806080858703121561230d57600080fd5b61231685612032565b935061232460208601612032565b925060408501359150606085013567ffffffffffffffff81111561234757600080fd5b8501601f8101871361235857600080fd5b612367878235602084016120fb565b91505092959194509250565b6000806040838503121561238657600080fd5b61238f83612032565b91506122ee60208401612032565b6000602082840312156123af57600080fd5b611fa7826122b4565b600181811c908216806123cc57607f821691505b602082108114156123ed57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561241b5761241b6123f3565b500390565b634e487b7160e01b600052601260045260246000fd5b60008261244557612445612420565b500490565b6000821982111561245d5761245d6123f3565b500190565b600081600019048311821515161561247c5761247c6123f3565b500290565b634e487b7160e01b600052603260045260246000fd5b60006000198214156124ab576124ab6123f3565b5060010190565b600081516124c4818560208601611fae565b9290920192915050565b600080855481600182811c9150808316806124ea57607f831692505b602080841082141561250a57634e487b7160e01b86526022600452602486fd5b81801561251e576001811461252f5761255c565b60ff1986168952848901965061255c565b60008c81526020902060005b868110156125545781548b82015290850190830161253b565b505084890196505b50505050505061257561256f82876124b2565b856124b2565b9695505050505050565b60008261258e5761258e612420565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526125756080830184611fda565b6000602082840312156125d757600080fd5b8151611fa781611f7456fea264697066735822122079640cf41f3907db6d0c70423ac448ecdf5595014f4f610dbe0e2bd43f63911f64736f6c634300080c0033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000628258e0000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f6e656f72742e6d7970696e6174612e636c6f75642f697066732f516d634853584744447938545753386244464d6b7953436f343536353971514b5966716e4d6269596e325957564b2f000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseTokenURI (string): https://neort.mypinata.cloud/ipfs/QmcHSXGDDy8TWS8bDFMkySCo45659qQKYfqnMbiYn2YWVK/
Arg [1] : startDateInSec (uint256): 1652709600

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000628258e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [3] : 68747470733a2f2f6e656f72742e6d7970696e6174612e636c6f75642f697066
Arg [4] : 732f516d634853584744447938545753386244464d6b7953436f343536353971
Arg [5] : 514b5966716e4d6269596e325957564b2f000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

Newly produced 240 editions of artworks by creative coder Shunsuke Takawo for his first solo exhibition "Tiny Sketches" at NEORT++.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.