ETH Price: $3,277.27 (-0.28%)

Token

Flowers (FLW)
 

Overview

Max Total Supply

27 FLW

Holders

25

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
SuperRare: Auction House
Balance
1 FLW
0x8c9f364bf7a56ed058fc63ef81c6cf09c833e656
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Flower

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : 4_Flower.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";

contract Flower is ERC721Enumerable, Ownable {
    string public baseURI;

    mapping(address => bool) oneOfOneCollectors;

    mapping(address => bool) nonCollectors;

    address BuildABetterFutureContract;
    address TimePieceCommunityContract;

    // mintList
    mapping(address => bool) public oneOfOneMintList;
    mapping(address => bool) public nonCollectorsMintList;
    mapping(address => bool) public openEditionCollectorsMintList;
    // tokenId => minted
    mapping(uint256 => bool) public safeHavenTokenMintList;
    mapping(uint256 => bool) public graceIITokenMintList;

    // counters
    // tokenIds 1 to 14
    uint256 private oneOfOneMintedCount = 1;

    // tokenIds 15 to 24
    uint256 private nonCollectorsMintedCount = 15;

    // tokenIds 25 to 54
    uint256 private openEditionCollectorsMintedCount = 25;

    bool private mintOpen = false;

    //these tokens must exists, otherwise the check fails cos of _exists
    uint256[] safeHavenTokens = [4216, 4209, 4213, 4215, 4207, 4214, 4211, 4208, 4210, 4212, 4206]; //babF
    uint256[] graceIITokens = [
        4173, 4168, 4176, 4236, 4171, 4212, 4190, 4098, 4092, 4167, 4112, 4228, 4149, 4209, 4244,
        4146, 4222, 4165, 4158, 4153, 4136, 4139, 4100, 4217, 4208, 4178, 4152, 4221, 4141, 4218,
        4087, 4082, 4097, 4071, 4150, 4204, 4193, 4242, 4220, 4099, 4140, 4077, 4237, 4170, 4162,
        4073, 4101, 4240, 4142, 4085, 4148, 4191, 4129, 4128, 4172, 4253, 4070, 4095, 4199, 4081,
        4108, 4151, 4084, 4206, 4124, 4110, 4230, 4106, 4120, 4216, 4093, 4154, 4198, 4175, 4103,
        4137, 4117, 4118, 4192, 4185, 4076, 4078, 4223, 4213, 4186, 4225, 4159, 4210, 4134, 4116,
        4114, 4145, 4187, 4133, 4243, 4096, 4232, 4111, 4188, 4183, 4090, 4104, 4211, 4219, 4164,
        4089, 4161, 4113, 4235, 4197, 4147, 4207, 4229, 4086, 4094, 4224, 4122, 4157, 4109, 4251,
        4181, 4254, 4125, 4252, 4130, 4248, 4182, 4144, 4163, 4166, 4105, 4184, 4201, 4189, 4156,
        4249, 4123, 4169, 4115, 4231, 4215, 4138, 4234, 4131, 4119, 4247, 4074, 4179, 4202, 4246,
        4155, 4121, 4180, 4102, 4079, 4238, 4143, 4245, 4080, 4083, 4075, 4135, 4195, 4200, 4203,
        4239, 4233, 4196, 4227, 4132, 4250, 4107, 4174, 4160, 4177, 4226, 66, 67, 68, 4194, 4088,
        4205, 4072, 4214, 4241, 4126, 4127, 4091
      ]; // IRB

    modifier whenMintOpened() {
        require(mintOpen == true, "Mint is not yet open");
        _;
    }
    constructor(
        string memory _initBaseURI,
        address buildABetterFutureContract,
        address timePieceCommunityContract
    ) ERC721("Flowers", "FLW") {
        setBaseURI(_initBaseURI);

        BuildABetterFutureContract = buildABetterFutureContract;
        TimePieceCommunityContract = timePieceCommunityContract;

        // define one-of-one-collectors
        oneOfOneCollectors[0x8c9F364bf7a56Ed058fc63Ef81c6Cf09c833e656] = true;
        oneOfOneCollectors[0x9FDf724BcDF9392bD4b99A1C463EC674bC891bB9] = true;
        oneOfOneCollectors[0x1E815a8188F1b84564577C1c998f7E6B4706B752] = true;
        oneOfOneCollectors[0x109Ad81CA063fa1a8237189e31821d3114c52a4e] = true;
        oneOfOneCollectors[0x75259686c1C967399eDA0b4B16f16FB0990f9615] = true;
        oneOfOneCollectors[0xC571147a515a789eB23cbCBf92F86bc1485ab877] = true;
        oneOfOneCollectors[0x30a189710f75c6b60b96081F12B288AbEDeDa260] = true;
        oneOfOneCollectors[0x4E84a91a450aeEF23F0670Fb486d55b1d85A8dD0] = true;
        oneOfOneCollectors[0x3612b2e93b49F6c797066cA8c38b7f522b32c7cb] = true;
        oneOfOneCollectors[0xcF6f5A68d94165081A634AdA997BE3A93426C467] = true;
        oneOfOneCollectors[0x8C94072567b278b9fa12192CcA899B3Ce0ED5FDc] = true;
        oneOfOneCollectors[0x8139bA1a21dB4b924A81D5De90a98980B5D502E5] = true;
        oneOfOneCollectors[0xcA71c095Ac06c5f17e03Da013c8041701Ef438b6] = true;
        oneOfOneCollectors[0x0D48086911270b67bC973B7AA1A1332EF83DD472] = true;

        // define non-collectors
        nonCollectors[0x80Aa4AF1Fb6e8a381b73809cbf06AED2666A7b64] = true;
        nonCollectors[0x7E66dE1A57e6DC63B31FF03B50c103379c840d14] = true;
        nonCollectors[0xeb758d7b02eb8ADfAA553f49Cfa8b034Ab73c1C4] = true;
        nonCollectors[0xFC789C7927aC1cC8CaeFDE8bEbf493961AC5be9B] = true;
        nonCollectors[0x0f2f2F7bFC893aDa1714802924F96B82c9A1fFD3] = true;
        nonCollectors[0x215F7aDd9541Bc097679D9237DF7d42bb114134c] = true;
        nonCollectors[0xb3007FF3c3F40bDF0126fEc7c8E43c3Fc50Ea813] = true;
        nonCollectors[0x1Da98aa4FaEFB6eC93cC1bA6AdcFB59c8aF51152] = true;
        nonCollectors[0x2c11Cf38a6A5Ac74eA438d0037F7f880021FC66f] = true;
        nonCollectors[0x7ed90FDd530Ec92E90E197bA891378b1f9680e0A] = true;
        nonCollectors[0xDc1bc12a38206B010971859DC7177AfF9d27C454] = true;
        nonCollectors[0x5F0ACdE83F858014bc9723B356095E28fc8880B1] = true;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    function isOneOfOneCollector(address _wallet) public view returns (bool) {
        return oneOfOneCollectors[_wallet];
    }

    function isNonCollector(address _wallet) public view returns (bool) {
        return nonCollectors[_wallet];
    }
    function _safeHavenOwner(address _wallet)
        internal
        view
        returns (bool _holder, uint256 _tokenId)
    {
        ERC721 buildABetterFuture = ERC721(BuildABetterFutureContract);

        for (uint256 i = 0; i < safeHavenTokens.length; i++) {
            if (buildABetterFuture.ownerOf(safeHavenTokens[i]) == _wallet) {
                return (true, safeHavenTokens[i]);
            }
        }
        return (false, 0);
    }

    function _graceIIOwner(address _wallet)
        internal
        view
        returns (bool _holder, uint256 _tokenId)
    {
        ERC721 timePieceCommunity = ERC721(TimePieceCommunityContract);

        for (uint256 i = 0; i < graceIITokens.length; i++) {
            if (timePieceCommunity.ownerOf(graceIITokens[i]) == _wallet) {
                return (true, graceIITokens[i]);
            }
        }
        return (false, 0);
    }

    // below function and next following seems like a duplication of above,
    // but its intentional, as below 2 are used by FE cos of gas approximation issue explianed elsewhere
    function isSafeHavenOwner(address _wallet, uint256 _tokenId)
        public
        view
        returns (bool)
    {
        ERC721 buildABetterFuture = ERC721(BuildABetterFutureContract);

        if (buildABetterFuture.ownerOf(_tokenId) == _wallet) {
            return true;
        }
        return false;
    }

    function isGraceIIOwner(address _wallet, uint256 _tokenId)
        public
        view
        returns (bool)
    {
        ERC721 timePieceCommunity = ERC721(TimePieceCommunityContract);

        if (timePieceCommunity.ownerOf(_tokenId) == _wallet) {
            return true;
        }
        return false;
    }

    // function to determine if sender is open-edition collector
    // FYI: Last minute change made this not be used on FE as etherjs couldnot auto detect gas fees,
    function isOpenEditionCollector(address _wallet)
        public
        view
        returns (
            bool isHolder,
            uint256 safeHavenTokenId,
            uint256 graceIITokenId
        )
    {
        (bool _safeHavenHolder, uint256 _safeHavenTokenId) = _safeHavenOwner(
            _wallet
        );
        (bool _graceIIHolder, uint256 _graceIITokenId) = _graceIIOwner(_wallet);

        isHolder = _safeHavenHolder == true || _graceIIHolder == true;
        return (isHolder, _safeHavenTokenId, _graceIITokenId);
    }

    function mint1Of1Holder(address _wallet) external whenMintOpened {
        require(
            oneOfOneMintList[_wallet] == false,
            "Wallet already minted before for this category"
        );
        require(
            isOneOfOneCollector(_wallet) == true,
            "Wallet must be an open edition collector"
        );
        // this condition should actually never be triggered, but having it here incase
        // might remove later to save compiled code space.
        require(
            oneOfOneMintedCount <= 14,
            "INTERNAL ERROR: Reached max tokens allowed for this category"
        );
        uint256 tokenId = oneOfOneMintedCount;

        _safeMint(_wallet, tokenId);

        oneOfOneMintList[_wallet] = true;
        oneOfOneMintedCount += 1;

        emit LogMintOneOfOneHolder(_wallet, tokenId);
    }

    function mintNonCollector(address _wallet) external whenMintOpened {
        require(
            nonCollectorsMintList[_wallet] == false,
            "Wallet already minted before for this category"
        );
        require(
            isNonCollector(_wallet) == true,
            "Wallet must be part of the non-collector list"
        );

        // this condition should actually never be triggered, but having it here incase
        // might remove later to save compiled code space.
        require(
            nonCollectorsMintedCount <= 24,
            "INTERNAL ERROR: Reached max tokens allowed for this category"
        );
        uint256 tokenId = nonCollectorsMintedCount;

        _safeMint(_wallet, tokenId);

        nonCollectorsMintList[_wallet] = true;
        nonCollectorsMintedCount += 1;
        emit LogMintNonCollector(_wallet, tokenId);
    }

    function mintOpenEdition(address _wallet) external whenMintOpened {
        (
            bool isHolder,
            uint256 _safeHavenTokenId,
            uint256 _graceIITokenId
        ) = isOpenEditionCollector(_wallet);
        require(isHolder == true, "Must be a holder of GraceII or SafeHaven");
        require(
            safeHavenTokenMintList[_safeHavenTokenId] == false ||
                graceIITokenMintList[_graceIITokenId] == false,
            "Wallet minted already before for this category"
        );

        require(
            openEditionCollectorsMintedCount <= 54,
            "INTERNAL ERROR: Reached max tokens allowed for this category"
        );
        uint256 tokenId = openEditionCollectorsMintedCount;

        _safeMint(_wallet, tokenId);

        // -- store tokenId and address that minted
        if (_safeHavenTokenId != 0) {
            safeHavenTokenMintList[_safeHavenTokenId] = true;
        } else {
            graceIITokenMintList[_graceIITokenId] = true;
        }

        openEditionCollectorsMintedCount += 1;
        openEditionCollectorsMintList[_wallet] = true;
        emit LogMintOpenEdition(_wallet, tokenId);
    }

    // Only owner - admin methods
    function setBaseURI(string memory newURI) public onlyOwner {
        baseURI = newURI;
    }

    function setMintOpen(bool value) external onlyOwner {
        require(mintOpen != value, "mintOpen already this value");
        mintOpen = value;
    }

    // these method below should never reallybe used as they may reset the counters for available mints
    // only added here to prevent total lockout
    function addOneOfOneCollector(address _wallet) external onlyOwner {
        require(
            oneOfOneCollectors[_wallet] != true,
            "Wallet has already added to the one of one collector list"
        );
        oneOfOneCollectors[_wallet] = true;
    }

    function addNonCollector(address _wallet) external onlyOwner {
        require(
            nonCollectors[_wallet] != true,
            "Wallet has already added to the non collector list"
        );
        nonCollectors[_wallet] = true;
    }

    // Events
    event LogMintOneOfOneHolder(address indexed _address, uint256 _tokenId);
    event LogMintNonCollector(address indexed _address, uint256 _tokenId);
    event LogMintOpenEdition(address indexed _address, uint256 _tokenId);
}

File 2 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev 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 3 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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);
    }

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 4 of 13 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 5 of 13 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 6 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 7 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 8 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 9 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 11 of 13 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"address","name":"buildABetterFutureContract","type":"address"},{"internalType":"address","name":"timePieceCommunityContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"LogMintNonCollector","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"LogMintOneOfOneHolder","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"LogMintOpenEdition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"addNonCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"addOneOfOneCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"graceIITokenMintList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isGraceIIOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"isNonCollector","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"isOneOfOneCollector","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"isOpenEditionCollector","outputs":[{"internalType":"bool","name":"isHolder","type":"bool"},{"internalType":"uint256","name":"safeHavenTokenId","type":"uint256"},{"internalType":"uint256","name":"graceIITokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isSafeHavenOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"mint1Of1Holder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"mintNonCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"mintOpenEdition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonCollectorsMintList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"oneOfOneMintList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"openEditionCollectorsMintList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"safeHavenTokenMintList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setMintOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6001601555600f601655601960178190556018805460ff191690556101e0604052611078608090815261107160a05261107560c05261107760e05261106f61010052611076610120526110736101405261107061016052611072610180526110746101a05261106e6101c052620000799190600b62000d3d565b50604080516117808101825261104d815261104860208201526110509181019190915261108c606082015261104b608082015261107460a082015261105e60c082015261100260e0820152610ffc6101008201526110476101208201526110106101408201526110846101608201526110356101808201526110716101a08201526110946101c08201526110326101e082015261107e61020082015261104561022082015261103e61024082015261103961026082015261102861028082015261102b6102a08201526110046102c08201526110796102e082015261107061030082015261105261032082015261103861034082015261107d61036082015261102d61038082015261107a6103a0820152610ff76103c0820152610ff26103e0820152611001610400820152610fe761042082015261103661044082015261106c6104608201526110616104808201526110926104a082015261107c6104c08201526110036104e082015261102c610500820152610fed61052082015261108d61054082015261104a610560820152611042610580820152610fe96105a08201526110056105c08201526110906105e082015261102e610600820152610ff561062082015261103461064082015261105f6106608201526110216106808201526110206106a0820181905261104c6106c083015261109d6106e0830152610fe6610700830152610fff610720830152611067610740830152610ff161076083015261100c6107808301526110376107a0830152610ff46107c083015261106e6107e083015261101c61080083015261100e61082083015261108661084083015261100a6108608301526110186108808301526110786108a0830152610ffd6108c083015261103a6108e083015261106661090083015261104f6109208301526110076109408301526110296109608301526110156109808301526110166109a08301526110606109c083018190526110596109e0840152610fec610a00840152610fee610a2084015261107f610a40840152611075610a6084015261105a610a80840152611081610aa084015261103f610ac0840152611072610ae0840152611026610b00840152611014610b20840152611012610b40840152611031610b6084015261105b610b80840152611025610ba0840152611093610bc0840152611000610be08401819052611088610c0085015261100f610c2085015261105c610c40850152611057610c60850152610ffa610c80850152611008610ca0850152611073610cc085015261107b610ce0850152611044610d00850152610ff9610d20850152611041610d40850152611011610d6085015261108b610d80850152611065610da0850152611033610dc085015261106f610de0850152611085610e00850152610ff6610e20850152610ffe610e40850152611080610e60850181905261101a610e8086015261103d610ea086015261100d610ec086015261109b610ee0860152611055610f0086015261109e610f2086015261101d610f4086015261109c610f60860152611022610f80860152611098610fa0860152611056610fc0860152611030610fe0860152611043918501919091526110469284019290925261100961104080850191909152611058918401919091526110699183019190915261105d6110a083015261103c6110c08301526110996110e083015261101b61110083015261104961112083015261101361114083015261108761116083015261107761118083015261102a6111a083015261108a6111c08301526110236111e0830152611017611200830152611097611220830152610fea61124083015261105361126083015261106a6112808301526110966112a083015261103b6112c08301526110196112e0830152611054611300830152611006611320830152610fef61134083015261108e61136083015261102f6113808301526110956113a0830152610ff06113c0830152610ff36113e0830152610feb61140083015261102761142083015261106361144083015261106861146083015261106b61148083015261108f6114a08301526110896114c08301526110646114e083015261108361150083015261102461152083015261109a61154083015261100b61156083015261104e6115808301526115a08201526110516115c08201526110826115e0820152604261160082015260436116208201526044611640820152611062611660820152610ff861168082015261106d6116a0820152610fe86116c08201526110766116e082015261109161170082015261101e61172082015261101f611740820152610ffb6117608201526200073290601a9060bc62000d3d565b503480156200074057600080fd5b50604051620039ff380380620039ff833981016040819052620007639162000e44565b6040805180820182526007815266466c6f7765727360c81b602080830191825283518085019094526003845262464c5760e81b908401528151919291620007ad9160009162000d93565b508051620007c390600190602084019062000d93565b505050620007e0620007da62000c6f60201b60201c565b62000c73565b620007eb8362000cc5565b600e80546001600160a01b039384166001600160a01b031991821617909155600f8054929093169116179055507fd44edc5998be3204ac858446ed6d63e2590cec1247d0e132f0009c47edcddc05805460ff1990811660019081179092557fd477568ed21280e84fce9c393b0df59a5ad7f364a1f581d37c8177f8e25498eb80548216831790557f624bccee311c53c70a5fdb253f8e2c8d35b7a1a071cdd0760396d0059798554280548216831790557f8b8548e0911efa38f894f28101d294dccd6920403d32f14127694b5f688d560880548216831790557f10305f103eee96880c2d5ccb4e14b2183dfca9f25fce262e10412eac35b7666780548216831790557ff93b15f08454523d5754f9820b579e7a048a0a4708c3b75bc8638b82560a022380548216831790557fb9535cf97d69758297057785ae8ebaaea6c4e4a35a88130fec3b9f089d0ff1ff80548216831790557f5270d189d93a8972ca9d851004a861afb507131d61a36a2dada75e0529b017b480548216831790557f451e0a08eb01847f7e6b4ecee9589327acc1f19f014755056e9e287d0bd0a3a780548216831790557f3394b56ffbce08db45294748c88c9213f492332b6c445f95a07b541a7236876a80548216831790557f462db7fcfc3607cd0d5ab03c64fc1a183680b59a8898468ba97bde6c765969ad80548216831790557fe484f58c339868bcf2b264a722efd2cc2df637e1320d6540136bca39a083884580548216831790557f7e543872b20fb4833f7c9c88a7437a81f72fc00fd675baaf225548cbe48a340780548216831790557f99138068539ad9612424c0e5ffb6849a3f87c6ea7d1b511906bc817a3eea755d8054821683179055600d6020527f5436c972b4d8ba24f465e3425e8544b6ed584bfa5f939c05253ebd023428d4f080548216831790557f5fc0dad5ae3d8c6171bf5bfd60251bfdc6c8522d3e29d50993285c7a8387c00b80548216831790557fc66d389e46c62e7aeccf8c8f257aa064daf6021adba0c3fc6403a0f24a3a8c2580548216831790557f73d85de59b74fff49318f3e55c2217ebd8c06ccc69f9dad4c32ab14bf0f49a0c80548216831790557f9c3874e0be65f8597a71a3c708899d439ac5bb7b70f3a36e3eb45f8fb672551580548216831790557ff2f1610fbf40aa43fd72b0248849a3cf61bdfcd86c25142548348db3f577575b80548216831790557f2f2c2816c55f2ca94cf1c12dba743f728bce97723809f0e68730178794c9735780548216831790557fe848f6f44c724ccfcbf3e9ed4f60baa09c901b85ad90cbcffbf65b91e030beff80548216831790557fc72be115554eed19d607d9c5caccbb3415ad8d5bc1b58c5a362b936392ccdfda80548216831790557f17636756967bafa4c2d42826ee5e0a008ed1d834fbfe389bbc83ee6835a4b06b80548216831790557f1de28727a24c18231e553ba63a718bc256ceb94f54df3e996d01992801c682218054821683179055735f0acde83f858014bc9723b356095e28fc8880b16000527fda3a7ce65978f6e810ee9495703e5118877ebf393caf4620bf42bde9b21763288054909116909117905562000f9a565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a546001600160a01b0316331462000d245760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b805162000d3990600b90602084019062000d93565b5050565b82805482825590600052602060002090810192821562000d81579160200282015b8281111562000d81578251829061ffff1690559160200191906001019062000d5e565b5062000d8f92915062000e10565b5090565b82805462000da19062000f47565b90600052602060002090601f01602090048101928262000dc5576000855562000d81565b82601f1062000de057805160ff191683800117855562000d81565b8280016001018555821562000d81579182015b8281111562000d8157825182559160200191906001019062000df3565b5b8082111562000d8f576000815560010162000e11565b80516001600160a01b038116811462000e3f57600080fd5b919050565b60008060006060848603121562000e5a57600080fd5b83516001600160401b038082111562000e7257600080fd5b818601915086601f83011262000e8757600080fd5b81518181111562000e9c5762000e9c62000f84565b604051601f8201601f19908116603f0116810190838211818310171562000ec75762000ec762000f84565b8160405282815260209350898484870101111562000ee457600080fd5b600091505b8282101562000f08578482018401518183018501529083019062000ee9565b8282111562000f1a5760008484830101525b965062000f2c91505086820162000e27565b9350505062000f3e6040850162000e27565b90509250925092565b600181811c9082168062000f5c57607f821691505b6020821081141562000f7e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612a558062000faa6000396000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c8063715018a611610130578063a22cb465116100b8578063edbbbdf41161007c578063edbbbdf414610543578063eff230d214610556578063f2fde38b14610586578063f8004d3114610599578063fe3354d6146105ac57600080fd5b8063a22cb465146104ab578063b88d4fde146104be578063c87b56dd146104d1578063d6dc505e146104e4578063e985e9c51461050757600080fd5b806382e9099a116100ff57806382e9099a146104305780638d56ee01146104435780638da5cb5b1461046f57806395d89b41146104805780639915ced31461048857600080fd5b8063715018a6146103d6578063732c043d146103de5780637a8b575c146103f15780637d9204e91461041d57600080fd5b806342842e0e116101b357806355f804b31161018257806355f804b3146103825780636352211e14610395578063682b4ff2146103a85780636c0360eb146103bb57806370a08231146103c357600080fd5b806342842e0e1461031657806345c2867c1461032957806346aa5dcd1461034c5780634f6ccce71461036f57600080fd5b8063095ea7b3116101fa578063095ea7b3146102a857806318160ddd146102bb57806323b872dd146102cd5780632f1aee19146102e05780632f745c591461030357600080fd5b80629369161461022b57806301ffc9a71461024057806306fdde0314610268578063081812fc1461027d575b600080fd5b61023e610239366004612405565b6105bf565b005b61025361024e3660046125b5565b610757565b60405190151581526020015b60405180910390f35b610270610782565b60405161025f91906126e9565b61029061028b366004612638565b610814565b6040516001600160a01b03909116815260200161025f565b61023e6102b636600461256e565b6108a9565b6008545b60405190815260200161025f565b61023e6102db366004612478565b6109bf565b6102536102ee366004612405565b60116020526000908152604090205460ff1681565b6102bf61031136600461256e565b6109f0565b61023e610324366004612478565b610a86565b610253610337366004612638565b60146020526000908152604090205460ff1681565b61025361035a366004612638565b60136020526000908152604090205460ff1681565b6102bf61037d366004612638565b610aa1565b61023e6103903660046125ef565b610b34565b6102906103a3366004612638565b610b75565b6102536103b636600461256e565b610bec565b610270610c95565b6102bf6103d1366004612405565b610d23565b61023e610daa565b61023e6103ec366004612405565b610de0565b6102536103ff366004612405565b6001600160a01b03166000908152600c602052604090205460ff1690565b61023e61042b366004612405565b610ec2565b61023e61043e366004612405565b610f99565b610253610451366004612405565b6001600160a01b03166000908152600d602052604090205460ff1690565b600a546001600160a01b0316610290565b6102706111b2565b610253610496366004612405565b60106020526000908152604090205460ff1681565b61023e6104b9366004612539565b6111c1565b61023e6104cc3660046124b9565b6111cc565b6102706104df366004612638565b611204565b6102536104f2366004612405565b60126020526000908152604090205460ff1681565b61025361051536600461243f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61025361055136600461256e565b6112df565b610569610564366004612405565b611319565b60408051931515845260208401929092529082015260600161025f565b61023e610594366004612405565b611360565b61023e6105a736600461259a565b6113fb565b61023e6105ba366004612405565b611491565b60185460ff1615156001146105ef5760405162461bcd60e51b81526004016105e69061274e565b60405180910390fd5b6001600160a01b03811660009081526010602052604090205460ff16156106285760405162461bcd60e51b81526004016105e69061277c565b6001600160a01b0381166000908152600c602052604090205460ff1615156001146106a65760405162461bcd60e51b815260206004820152602860248201527f57616c6c6574206d75737420626520616e206f70656e2065646974696f6e206360448201526737b63632b1ba37b960c11b60648201526084016105e6565b600e60155411156106c95760405162461bcd60e51b81526004016105e690612850565b6015546106d6828261161d565b6001600160a01b0382166000908152601060205260408120805460ff19166001908117909155601580549192909161070f9084906128ad565b90915550506040518181526001600160a01b038316907f6ecf2eb9098248a69cc7abaac38e5dde0c18d6b1858a9ff7c308d60dd19214ee906020015b60405180910390a25050565b60006001600160e01b0319821663780e9d6360e01b148061077c575061077c82611637565b92915050565b6060600080546107919061291c565b80601f01602080910402602001604051908101604052809291908181526020018280546107bd9061291c565b801561080a5780601f106107df5761010080835404028352916020019161080a565b820191906000526020600020905b8154815290600101906020018083116107ed57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661088d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105e6565b506000908152600460205260409020546001600160a01b031690565b60006108b482610b75565b9050806001600160a01b0316836001600160a01b031614156109225760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105e6565b336001600160a01b038216148061093e575061093e8133610515565b6109b05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105e6565b6109ba8383611687565b505050565b6109c933826116f5565b6109e55760405162461bcd60e51b81526004016105e6906127ff565b6109ba8383836117ec565b60006109fb83610d23565b8210610a5d5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105e6565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6109ba838383604051806020016040528060008152506111cc565b6000610aac60085490565b8210610b0f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105e6565b60088281548110610b2257610b226129c8565b90600052602060002001549050919050565b600a546001600160a01b03163314610b5e5760405162461bcd60e51b81526004016105e6906127ca565b8051610b7190600b9060208401906122e1565b5050565b6000818152600260205260408120546001600160a01b03168061077c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105e6565b600e546040516331a9108f60e11b8152600481018390526000916001600160a01b0390811691908516908290636352211e906024015b60206040518083038186803b158015610c3a57600080fd5b505afa158015610c4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c729190612422565b6001600160a01b03161415610c8b57600191505061077c565b5060009392505050565b600b8054610ca29061291c565b80601f0160208091040260200160405190810160405280929190818152602001828054610cce9061291c565b8015610d1b5780601f10610cf057610100808354040283529160200191610d1b565b820191906000526020600020905b815481529060010190602001808311610cfe57829003601f168201915b505050505081565b60006001600160a01b038216610d8e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105e6565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610dd45760405162461bcd60e51b81526004016105e6906127ca565b610dde6000611997565b565b600a546001600160a01b03163314610e0a5760405162461bcd60e51b81526004016105e6906127ca565b6001600160a01b0381166000908152600c602052604090205460ff16151560011415610e9e5760405162461bcd60e51b815260206004820152603960248201527f57616c6c65742068617320616c726561647920616464656420746f207468652060448201527f6f6e65206f66206f6e6520636f6c6c6563746f72206c6973740000000000000060648201526084016105e6565b6001600160a01b03166000908152600c60205260409020805460ff19166001179055565b600a546001600160a01b03163314610eec5760405162461bcd60e51b81526004016105e6906127ca565b6001600160a01b0381166000908152600d602052604090205460ff16151560011415610f755760405162461bcd60e51b815260206004820152603260248201527f57616c6c65742068617320616c726561647920616464656420746f20746865206044820152711b9bdb8818dbdb1b1958dd1bdc881b1a5cdd60721b60648201526084016105e6565b6001600160a01b03166000908152600d60205260409020805460ff19166001179055565b60185460ff161515600114610fc05760405162461bcd60e51b81526004016105e69061274e565b6000806000610fce84611319565b919450925090506001831515146110385760405162461bcd60e51b815260206004820152602860248201527f4d757374206265206120686f6c646572206f662047726163654949206f72205360448201526730b332a430bb32b760c11b60648201526084016105e6565b60008281526013602052604090205460ff161580611065575060008181526014602052604090205460ff16155b6110c85760405162461bcd60e51b815260206004820152602e60248201527f57616c6c6574206d696e74656420616c7265616479206265666f726520666f7260448201526d20746869732063617465676f727960901b60648201526084016105e6565b603660175411156110eb5760405162461bcd60e51b81526004016105e690612850565b6017546110f8858261161d565b821561111c576000838152601360205260409020805460ff19166001179055611136565b6000828152601460205260409020805460ff191660011790555b60016017600082825461114991906128ad565b90915550506001600160a01b03851660008181526012602052604090819020805460ff19166001179055517fad8d2d503c921760ea86bfc65c166337e4c183e0a3d65882179babdb57bce42f906111a39084815260200190565b60405180910390a25050505050565b6060600180546107919061291c565b610b713383836119e9565b6111d633836116f5565b6111f25760405162461bcd60e51b81526004016105e6906127ff565b6111fe84848484611ab8565b50505050565b6000818152600260205260409020546060906001600160a01b03166112835760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105e6565b600061128d611aeb565b905060008151116112ad57604051806020016040528060008152506112d8565b806112b784611afa565b6040516020016112c892919061267d565b6040516020818303038152906040525b9392505050565b600f546040516331a9108f60e11b8152600481018390526000916001600160a01b0390811691908516908290636352211e90602401610c22565b600080600080600061132a86611bf8565b9150915060008061133a88611d13565b90925090506001841515148061135257506001821515145b989297509550909350505050565b600a546001600160a01b0316331461138a5760405162461bcd60e51b81526004016105e6906127ca565b6001600160a01b0381166113ef5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105e6565b6113f881611997565b50565b600a546001600160a01b031633146114255760405162461bcd60e51b81526004016105e6906127ca565b60185460ff161515811515141561147e5760405162461bcd60e51b815260206004820152601b60248201527f6d696e744f70656e20616c726561647920746869732076616c7565000000000060448201526064016105e6565b6018805460ff1916911515919091179055565b60185460ff1615156001146114b85760405162461bcd60e51b81526004016105e69061274e565b6001600160a01b03811660009081526011602052604090205460ff16156114f15760405162461bcd60e51b81526004016105e69061277c565b6001600160a01b0381166000908152600d602052604090205460ff1615156001146115745760405162461bcd60e51b815260206004820152602d60248201527f57616c6c6574206d7573742062652070617274206f6620746865206e6f6e2d6360448201526c1bdb1b1958dd1bdc881b1a5cdd609a1b60648201526084016105e6565b601860165411156115975760405162461bcd60e51b81526004016105e690612850565b6016546115a4828261161d565b6001600160a01b0382166000908152601160205260408120805460ff1916600190811790915560168054919290916115dd9084906128ad565b90915550506040518181526001600160a01b038316907f365357042f3f04c41ac17b906ce5964e537c182004793c10a23d432081da1e849060200161074b565b610b71828260405180602001604052806000815250611e0b565b60006001600160e01b031982166380ac58cd60e01b148061166857506001600160e01b03198216635b5e139f60e01b145b8061077c57506301ffc9a760e01b6001600160e01b031983161461077c565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116bc82610b75565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661176e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105e6565b600061177983610b75565b9050806001600160a01b0316846001600160a01b031614806117b45750836001600160a01b03166117a984610814565b6001600160a01b0316145b806117e457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166117ff82610b75565b6001600160a01b0316146118675760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105e6565b6001600160a01b0382166118c95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105e6565b6118d4838383611e3e565b6118df600082611687565b6001600160a01b03831660009081526003602052604081208054600192906119089084906128d9565b90915550506001600160a01b03821660009081526003602052604081208054600192906119369084906128ad565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611a4b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105e6565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ac38484846117ec565b611acf84848484611ef6565b6111fe5760405162461bcd60e51b81526004016105e6906126fc565b6060600b80546107919061291c565b606081611b1e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b485780611b3281612957565b9150611b419050600a836128c5565b9150611b22565b60008167ffffffffffffffff811115611b6357611b636129de565b6040519080825280601f01601f191660200182016040528015611b8d576020820181803683370190505b5090505b84156117e457611ba26001836128d9565b9150611baf600a86612972565b611bba9060306128ad565b60f81b818381518110611bcf57611bcf6129c8565b60200101906001600160f81b031916908160001a905350611bf1600a866128c5565b9450611b91565b600e5460009081906001600160a01b0316815b601954811015611d0657846001600160a01b0316826001600160a01b0316636352211e60198481548110611c4157611c416129c8565b90600052602060002001546040518263ffffffff1660e01b8152600401611c6a91815260200190565b60206040518083038186803b158015611c8257600080fd5b505afa158015611c96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cba9190612422565b6001600160a01b03161415611cf457600160198281548110611cde57611cde6129c8565b9060005260206000200154935093505050915091565b80611cfe81612957565b915050611c0b565b5060009485945092505050565b600f5460009081906001600160a01b0316815b601a54811015611d0657846001600160a01b0316826001600160a01b0316636352211e601a8481548110611d5c57611d5c6129c8565b90600052602060002001546040518263ffffffff1660e01b8152600401611d8591815260200190565b60206040518083038186803b158015611d9d57600080fd5b505afa158015611db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd59190612422565b6001600160a01b03161415611df9576001601a8281548110611cde57611cde6129c8565b80611e0381612957565b915050611d26565b611e158383612003565b611e226000848484611ef6565b6109ba5760405162461bcd60e51b81526004016105e6906126fc565b6001600160a01b038316611e9957611e9481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611ebc565b816001600160a01b0316836001600160a01b031614611ebc57611ebc8382612151565b6001600160a01b038216611ed3576109ba816121ee565b826001600160a01b0316826001600160a01b0316146109ba576109ba828261229d565b60006001600160a01b0384163b15611ff857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f3a9033908990889088906004016126ac565b602060405180830381600087803b158015611f5457600080fd5b505af1925050508015611f84575060408051601f3d908101601f19168201909252611f81918101906125d2565b60015b611fde573d808015611fb2576040519150601f19603f3d011682016040523d82523d6000602084013e611fb7565b606091505b508051611fd65760405162461bcd60e51b81526004016105e6906126fc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117e4565b506001949350505050565b6001600160a01b0382166120595760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105e6565b6000818152600260205260409020546001600160a01b0316156120be5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105e6565b6120ca60008383611e3e565b6001600160a01b03821660009081526003602052604081208054600192906120f39084906128ad565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161215e84610d23565b61216891906128d9565b6000838152600760205260409020549091508082146121bb576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612200906001906128d9565b60008381526009602052604081205460088054939450909284908110612228576122286129c8565b906000526020600020015490508060088381548110612249576122496129c8565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612281576122816129b2565b6001900381819060005260206000200160009055905550505050565b60006122a883610d23565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546122ed9061291c565b90600052602060002090601f01602090048101928261230f5760008555612355565b82601f1061232857805160ff1916838001178555612355565b82800160010185558215612355579182015b8281111561235557825182559160200191906001019061233a565b50612361929150612365565b5090565b5b808211156123615760008155600101612366565b600067ffffffffffffffff80841115612395576123956129de565b604051601f8501601f19908116603f011681019082821181831017156123bd576123bd6129de565b816040528093508581528686860111156123d657600080fd5b858560208301376000602087830101525050509392505050565b8035801515811461240057600080fd5b919050565b60006020828403121561241757600080fd5b81356112d8816129f4565b60006020828403121561243457600080fd5b81516112d8816129f4565b6000806040838503121561245257600080fd5b823561245d816129f4565b9150602083013561246d816129f4565b809150509250929050565b60008060006060848603121561248d57600080fd5b8335612498816129f4565b925060208401356124a8816129f4565b929592945050506040919091013590565b600080600080608085870312156124cf57600080fd5b84356124da816129f4565b935060208501356124ea816129f4565b925060408501359150606085013567ffffffffffffffff81111561250d57600080fd5b8501601f8101871361251e57600080fd5b61252d8782356020840161237a565b91505092959194509250565b6000806040838503121561254c57600080fd5b8235612557816129f4565b9150612565602084016123f0565b90509250929050565b6000806040838503121561258157600080fd5b823561258c816129f4565b946020939093013593505050565b6000602082840312156125ac57600080fd5b6112d8826123f0565b6000602082840312156125c757600080fd5b81356112d881612a09565b6000602082840312156125e457600080fd5b81516112d881612a09565b60006020828403121561260157600080fd5b813567ffffffffffffffff81111561261857600080fd5b8201601f8101841361262957600080fd5b6117e48482356020840161237a565b60006020828403121561264a57600080fd5b5035919050565b600081518084526126698160208601602086016128f0565b601f01601f19169290920160200192915050565b6000835161268f8184602088016128f0565b8351908301906126a38183602088016128f0565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126df90830184612651565b9695505050505050565b6020815260006112d86020830184612651565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526014908201527326b4b73a1034b9903737ba103cb2ba1037b832b760611b604082015260600190565b6020808252602e908201527f57616c6c657420616c7265616479206d696e746564206265666f726520666f7260408201526d20746869732063617465676f727960901b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252603c908201527f494e5445524e414c204552524f523a2052656163686564206d617820746f6b6560408201527f6e7320616c6c6f77656420666f7220746869732063617465676f727900000000606082015260800190565b600082198211156128c0576128c0612986565b500190565b6000826128d4576128d461299c565b500490565b6000828210156128eb576128eb612986565b500390565b60005b8381101561290b5781810151838201526020016128f3565b838111156111fe5750506000910152565b600181811c9082168061293057607f821691505b6020821081141561295157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561296b5761296b612986565b5060010190565b6000826129815761298161299c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113f857600080fd5b6001600160e01b0319811681146113f857600080fdfea2646970667358221220ae43e6ee4265f1d504a556fdd7a7a4c8be125df65453b9e74f2cde841fd60e0e64736f6c634300080700330000000000000000000000000000000000000000000000000000000000000060000000000000000000000000dd69da9a83cedc730bc4d3c56e96d29acc05ecde0000000000000000000000009307edc4f23d87f9783a999f870b728ab9d34fe5000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d527535724b75673572554d6e6e3773366b5039755079376d655a6353544d5a687054477435726b367738556a2f000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102265760003560e01c8063715018a611610130578063a22cb465116100b8578063edbbbdf41161007c578063edbbbdf414610543578063eff230d214610556578063f2fde38b14610586578063f8004d3114610599578063fe3354d6146105ac57600080fd5b8063a22cb465146104ab578063b88d4fde146104be578063c87b56dd146104d1578063d6dc505e146104e4578063e985e9c51461050757600080fd5b806382e9099a116100ff57806382e9099a146104305780638d56ee01146104435780638da5cb5b1461046f57806395d89b41146104805780639915ced31461048857600080fd5b8063715018a6146103d6578063732c043d146103de5780637a8b575c146103f15780637d9204e91461041d57600080fd5b806342842e0e116101b357806355f804b31161018257806355f804b3146103825780636352211e14610395578063682b4ff2146103a85780636c0360eb146103bb57806370a08231146103c357600080fd5b806342842e0e1461031657806345c2867c1461032957806346aa5dcd1461034c5780634f6ccce71461036f57600080fd5b8063095ea7b3116101fa578063095ea7b3146102a857806318160ddd146102bb57806323b872dd146102cd5780632f1aee19146102e05780632f745c591461030357600080fd5b80629369161461022b57806301ffc9a71461024057806306fdde0314610268578063081812fc1461027d575b600080fd5b61023e610239366004612405565b6105bf565b005b61025361024e3660046125b5565b610757565b60405190151581526020015b60405180910390f35b610270610782565b60405161025f91906126e9565b61029061028b366004612638565b610814565b6040516001600160a01b03909116815260200161025f565b61023e6102b636600461256e565b6108a9565b6008545b60405190815260200161025f565b61023e6102db366004612478565b6109bf565b6102536102ee366004612405565b60116020526000908152604090205460ff1681565b6102bf61031136600461256e565b6109f0565b61023e610324366004612478565b610a86565b610253610337366004612638565b60146020526000908152604090205460ff1681565b61025361035a366004612638565b60136020526000908152604090205460ff1681565b6102bf61037d366004612638565b610aa1565b61023e6103903660046125ef565b610b34565b6102906103a3366004612638565b610b75565b6102536103b636600461256e565b610bec565b610270610c95565b6102bf6103d1366004612405565b610d23565b61023e610daa565b61023e6103ec366004612405565b610de0565b6102536103ff366004612405565b6001600160a01b03166000908152600c602052604090205460ff1690565b61023e61042b366004612405565b610ec2565b61023e61043e366004612405565b610f99565b610253610451366004612405565b6001600160a01b03166000908152600d602052604090205460ff1690565b600a546001600160a01b0316610290565b6102706111b2565b610253610496366004612405565b60106020526000908152604090205460ff1681565b61023e6104b9366004612539565b6111c1565b61023e6104cc3660046124b9565b6111cc565b6102706104df366004612638565b611204565b6102536104f2366004612405565b60126020526000908152604090205460ff1681565b61025361051536600461243f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61025361055136600461256e565b6112df565b610569610564366004612405565b611319565b60408051931515845260208401929092529082015260600161025f565b61023e610594366004612405565b611360565b61023e6105a736600461259a565b6113fb565b61023e6105ba366004612405565b611491565b60185460ff1615156001146105ef5760405162461bcd60e51b81526004016105e69061274e565b60405180910390fd5b6001600160a01b03811660009081526010602052604090205460ff16156106285760405162461bcd60e51b81526004016105e69061277c565b6001600160a01b0381166000908152600c602052604090205460ff1615156001146106a65760405162461bcd60e51b815260206004820152602860248201527f57616c6c6574206d75737420626520616e206f70656e2065646974696f6e206360448201526737b63632b1ba37b960c11b60648201526084016105e6565b600e60155411156106c95760405162461bcd60e51b81526004016105e690612850565b6015546106d6828261161d565b6001600160a01b0382166000908152601060205260408120805460ff19166001908117909155601580549192909161070f9084906128ad565b90915550506040518181526001600160a01b038316907f6ecf2eb9098248a69cc7abaac38e5dde0c18d6b1858a9ff7c308d60dd19214ee906020015b60405180910390a25050565b60006001600160e01b0319821663780e9d6360e01b148061077c575061077c82611637565b92915050565b6060600080546107919061291c565b80601f01602080910402602001604051908101604052809291908181526020018280546107bd9061291c565b801561080a5780601f106107df5761010080835404028352916020019161080a565b820191906000526020600020905b8154815290600101906020018083116107ed57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661088d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105e6565b506000908152600460205260409020546001600160a01b031690565b60006108b482610b75565b9050806001600160a01b0316836001600160a01b031614156109225760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105e6565b336001600160a01b038216148061093e575061093e8133610515565b6109b05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105e6565b6109ba8383611687565b505050565b6109c933826116f5565b6109e55760405162461bcd60e51b81526004016105e6906127ff565b6109ba8383836117ec565b60006109fb83610d23565b8210610a5d5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105e6565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6109ba838383604051806020016040528060008152506111cc565b6000610aac60085490565b8210610b0f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105e6565b60088281548110610b2257610b226129c8565b90600052602060002001549050919050565b600a546001600160a01b03163314610b5e5760405162461bcd60e51b81526004016105e6906127ca565b8051610b7190600b9060208401906122e1565b5050565b6000818152600260205260408120546001600160a01b03168061077c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105e6565b600e546040516331a9108f60e11b8152600481018390526000916001600160a01b0390811691908516908290636352211e906024015b60206040518083038186803b158015610c3a57600080fd5b505afa158015610c4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c729190612422565b6001600160a01b03161415610c8b57600191505061077c565b5060009392505050565b600b8054610ca29061291c565b80601f0160208091040260200160405190810160405280929190818152602001828054610cce9061291c565b8015610d1b5780601f10610cf057610100808354040283529160200191610d1b565b820191906000526020600020905b815481529060010190602001808311610cfe57829003601f168201915b505050505081565b60006001600160a01b038216610d8e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105e6565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610dd45760405162461bcd60e51b81526004016105e6906127ca565b610dde6000611997565b565b600a546001600160a01b03163314610e0a5760405162461bcd60e51b81526004016105e6906127ca565b6001600160a01b0381166000908152600c602052604090205460ff16151560011415610e9e5760405162461bcd60e51b815260206004820152603960248201527f57616c6c65742068617320616c726561647920616464656420746f207468652060448201527f6f6e65206f66206f6e6520636f6c6c6563746f72206c6973740000000000000060648201526084016105e6565b6001600160a01b03166000908152600c60205260409020805460ff19166001179055565b600a546001600160a01b03163314610eec5760405162461bcd60e51b81526004016105e6906127ca565b6001600160a01b0381166000908152600d602052604090205460ff16151560011415610f755760405162461bcd60e51b815260206004820152603260248201527f57616c6c65742068617320616c726561647920616464656420746f20746865206044820152711b9bdb8818dbdb1b1958dd1bdc881b1a5cdd60721b60648201526084016105e6565b6001600160a01b03166000908152600d60205260409020805460ff19166001179055565b60185460ff161515600114610fc05760405162461bcd60e51b81526004016105e69061274e565b6000806000610fce84611319565b919450925090506001831515146110385760405162461bcd60e51b815260206004820152602860248201527f4d757374206265206120686f6c646572206f662047726163654949206f72205360448201526730b332a430bb32b760c11b60648201526084016105e6565b60008281526013602052604090205460ff161580611065575060008181526014602052604090205460ff16155b6110c85760405162461bcd60e51b815260206004820152602e60248201527f57616c6c6574206d696e74656420616c7265616479206265666f726520666f7260448201526d20746869732063617465676f727960901b60648201526084016105e6565b603660175411156110eb5760405162461bcd60e51b81526004016105e690612850565b6017546110f8858261161d565b821561111c576000838152601360205260409020805460ff19166001179055611136565b6000828152601460205260409020805460ff191660011790555b60016017600082825461114991906128ad565b90915550506001600160a01b03851660008181526012602052604090819020805460ff19166001179055517fad8d2d503c921760ea86bfc65c166337e4c183e0a3d65882179babdb57bce42f906111a39084815260200190565b60405180910390a25050505050565b6060600180546107919061291c565b610b713383836119e9565b6111d633836116f5565b6111f25760405162461bcd60e51b81526004016105e6906127ff565b6111fe84848484611ab8565b50505050565b6000818152600260205260409020546060906001600160a01b03166112835760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105e6565b600061128d611aeb565b905060008151116112ad57604051806020016040528060008152506112d8565b806112b784611afa565b6040516020016112c892919061267d565b6040516020818303038152906040525b9392505050565b600f546040516331a9108f60e11b8152600481018390526000916001600160a01b0390811691908516908290636352211e90602401610c22565b600080600080600061132a86611bf8565b9150915060008061133a88611d13565b90925090506001841515148061135257506001821515145b989297509550909350505050565b600a546001600160a01b0316331461138a5760405162461bcd60e51b81526004016105e6906127ca565b6001600160a01b0381166113ef5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105e6565b6113f881611997565b50565b600a546001600160a01b031633146114255760405162461bcd60e51b81526004016105e6906127ca565b60185460ff161515811515141561147e5760405162461bcd60e51b815260206004820152601b60248201527f6d696e744f70656e20616c726561647920746869732076616c7565000000000060448201526064016105e6565b6018805460ff1916911515919091179055565b60185460ff1615156001146114b85760405162461bcd60e51b81526004016105e69061274e565b6001600160a01b03811660009081526011602052604090205460ff16156114f15760405162461bcd60e51b81526004016105e69061277c565b6001600160a01b0381166000908152600d602052604090205460ff1615156001146115745760405162461bcd60e51b815260206004820152602d60248201527f57616c6c6574206d7573742062652070617274206f6620746865206e6f6e2d6360448201526c1bdb1b1958dd1bdc881b1a5cdd609a1b60648201526084016105e6565b601860165411156115975760405162461bcd60e51b81526004016105e690612850565b6016546115a4828261161d565b6001600160a01b0382166000908152601160205260408120805460ff1916600190811790915560168054919290916115dd9084906128ad565b90915550506040518181526001600160a01b038316907f365357042f3f04c41ac17b906ce5964e537c182004793c10a23d432081da1e849060200161074b565b610b71828260405180602001604052806000815250611e0b565b60006001600160e01b031982166380ac58cd60e01b148061166857506001600160e01b03198216635b5e139f60e01b145b8061077c57506301ffc9a760e01b6001600160e01b031983161461077c565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116bc82610b75565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661176e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105e6565b600061177983610b75565b9050806001600160a01b0316846001600160a01b031614806117b45750836001600160a01b03166117a984610814565b6001600160a01b0316145b806117e457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166117ff82610b75565b6001600160a01b0316146118675760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105e6565b6001600160a01b0382166118c95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105e6565b6118d4838383611e3e565b6118df600082611687565b6001600160a01b03831660009081526003602052604081208054600192906119089084906128d9565b90915550506001600160a01b03821660009081526003602052604081208054600192906119369084906128ad565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611a4b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105e6565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ac38484846117ec565b611acf84848484611ef6565b6111fe5760405162461bcd60e51b81526004016105e6906126fc565b6060600b80546107919061291c565b606081611b1e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b485780611b3281612957565b9150611b419050600a836128c5565b9150611b22565b60008167ffffffffffffffff811115611b6357611b636129de565b6040519080825280601f01601f191660200182016040528015611b8d576020820181803683370190505b5090505b84156117e457611ba26001836128d9565b9150611baf600a86612972565b611bba9060306128ad565b60f81b818381518110611bcf57611bcf6129c8565b60200101906001600160f81b031916908160001a905350611bf1600a866128c5565b9450611b91565b600e5460009081906001600160a01b0316815b601954811015611d0657846001600160a01b0316826001600160a01b0316636352211e60198481548110611c4157611c416129c8565b90600052602060002001546040518263ffffffff1660e01b8152600401611c6a91815260200190565b60206040518083038186803b158015611c8257600080fd5b505afa158015611c96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cba9190612422565b6001600160a01b03161415611cf457600160198281548110611cde57611cde6129c8565b9060005260206000200154935093505050915091565b80611cfe81612957565b915050611c0b565b5060009485945092505050565b600f5460009081906001600160a01b0316815b601a54811015611d0657846001600160a01b0316826001600160a01b0316636352211e601a8481548110611d5c57611d5c6129c8565b90600052602060002001546040518263ffffffff1660e01b8152600401611d8591815260200190565b60206040518083038186803b158015611d9d57600080fd5b505afa158015611db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd59190612422565b6001600160a01b03161415611df9576001601a8281548110611cde57611cde6129c8565b80611e0381612957565b915050611d26565b611e158383612003565b611e226000848484611ef6565b6109ba5760405162461bcd60e51b81526004016105e6906126fc565b6001600160a01b038316611e9957611e9481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611ebc565b816001600160a01b0316836001600160a01b031614611ebc57611ebc8382612151565b6001600160a01b038216611ed3576109ba816121ee565b826001600160a01b0316826001600160a01b0316146109ba576109ba828261229d565b60006001600160a01b0384163b15611ff857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f3a9033908990889088906004016126ac565b602060405180830381600087803b158015611f5457600080fd5b505af1925050508015611f84575060408051601f3d908101601f19168201909252611f81918101906125d2565b60015b611fde573d808015611fb2576040519150601f19603f3d011682016040523d82523d6000602084013e611fb7565b606091505b508051611fd65760405162461bcd60e51b81526004016105e6906126fc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117e4565b506001949350505050565b6001600160a01b0382166120595760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105e6565b6000818152600260205260409020546001600160a01b0316156120be5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105e6565b6120ca60008383611e3e565b6001600160a01b03821660009081526003602052604081208054600192906120f39084906128ad565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161215e84610d23565b61216891906128d9565b6000838152600760205260409020549091508082146121bb576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612200906001906128d9565b60008381526009602052604081205460088054939450909284908110612228576122286129c8565b906000526020600020015490508060088381548110612249576122496129c8565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612281576122816129b2565b6001900381819060005260206000200160009055905550505050565b60006122a883610d23565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546122ed9061291c565b90600052602060002090601f01602090048101928261230f5760008555612355565b82601f1061232857805160ff1916838001178555612355565b82800160010185558215612355579182015b8281111561235557825182559160200191906001019061233a565b50612361929150612365565b5090565b5b808211156123615760008155600101612366565b600067ffffffffffffffff80841115612395576123956129de565b604051601f8501601f19908116603f011681019082821181831017156123bd576123bd6129de565b816040528093508581528686860111156123d657600080fd5b858560208301376000602087830101525050509392505050565b8035801515811461240057600080fd5b919050565b60006020828403121561241757600080fd5b81356112d8816129f4565b60006020828403121561243457600080fd5b81516112d8816129f4565b6000806040838503121561245257600080fd5b823561245d816129f4565b9150602083013561246d816129f4565b809150509250929050565b60008060006060848603121561248d57600080fd5b8335612498816129f4565b925060208401356124a8816129f4565b929592945050506040919091013590565b600080600080608085870312156124cf57600080fd5b84356124da816129f4565b935060208501356124ea816129f4565b925060408501359150606085013567ffffffffffffffff81111561250d57600080fd5b8501601f8101871361251e57600080fd5b61252d8782356020840161237a565b91505092959194509250565b6000806040838503121561254c57600080fd5b8235612557816129f4565b9150612565602084016123f0565b90509250929050565b6000806040838503121561258157600080fd5b823561258c816129f4565b946020939093013593505050565b6000602082840312156125ac57600080fd5b6112d8826123f0565b6000602082840312156125c757600080fd5b81356112d881612a09565b6000602082840312156125e457600080fd5b81516112d881612a09565b60006020828403121561260157600080fd5b813567ffffffffffffffff81111561261857600080fd5b8201601f8101841361262957600080fd5b6117e48482356020840161237a565b60006020828403121561264a57600080fd5b5035919050565b600081518084526126698160208601602086016128f0565b601f01601f19169290920160200192915050565b6000835161268f8184602088016128f0565b8351908301906126a38183602088016128f0565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126df90830184612651565b9695505050505050565b6020815260006112d86020830184612651565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526014908201527326b4b73a1034b9903737ba103cb2ba1037b832b760611b604082015260600190565b6020808252602e908201527f57616c6c657420616c7265616479206d696e746564206265666f726520666f7260408201526d20746869732063617465676f727960901b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252603c908201527f494e5445524e414c204552524f523a2052656163686564206d617820746f6b6560408201527f6e7320616c6c6f77656420666f7220746869732063617465676f727900000000606082015260800190565b600082198211156128c0576128c0612986565b500190565b6000826128d4576128d461299c565b500490565b6000828210156128eb576128eb612986565b500390565b60005b8381101561290b5781810151838201526020016128f3565b838111156111fe5750506000910152565b600181811c9082168061293057607f821691505b6020821081141561295157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561296b5761296b612986565b5060010190565b6000826129815761298161299c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113f857600080fd5b6001600160e01b0319811681146113f857600080fdfea2646970667358221220ae43e6ee4265f1d504a556fdd7a7a4c8be125df65453b9e74f2cde841fd60e0e64736f6c63430008070033

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

0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000dd69da9a83cedc730bc4d3c56e96d29acc05ecde0000000000000000000000009307edc4f23d87f9783a999f870b728ab9d34fe5000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d527535724b75673572554d6e6e3773366b5039755079376d655a6353544d5a687054477435726b367738556a2f000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _initBaseURI (string): https://gateway.pinata.cloud/ipfs/QmRu5rKug5rUMnn7s6kP9uPy7meZcSTMZhpTGt5rk6w8Uj/
Arg [1] : buildABetterFutureContract (address): 0xDd69da9a83ceDc730bc4d3C56E96D29Acc05eCDE
Arg [2] : timePieceCommunityContract (address): 0x9307EDC4f23D87f9783a999f870B728AB9D34FE5

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 000000000000000000000000dd69da9a83cedc730bc4d3c56e96d29acc05ecde
Arg [2] : 0000000000000000000000009307edc4f23d87f9783a999f870b728ab9d34fe5
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [4] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [5] : 732f516d527535724b75673572554d6e6e3773366b5039755079376d655a6353
Arg [6] : 544d5a687054477435726b367738556a2f000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.