ETH Price: $3,898.01 (+1.88%)

Token

Lucky Roo (LUCKY)
 

Overview

Max Total Supply

1,049 LUCKY

Holders

146

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 LUCKY
0x0b4a5df5615bad8d646d38c410984e06d11cae07
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The Lucky Roo Card collection is a unique set of hand drawn casino playing cards and are a must have on the Ethereum block chain. NFT holders are granted access to exclusive benefits.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
LuckyRooNft

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 14 : LuckyRooNft.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/**
 * @author Brewlabs
 * This contract has been developed by brewlabs.info
 */
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract LuckyRooNft is Ownable, ERC721URIStorage, ReentrancyGuard {
  using Strings for uint256;

  uint256 public constant MAX_SUPPLY = 3048;

  string private _tokenBaseURI = "";
  string[2] private rareNames = ["Common", "Rare"];

  // Optional mapping for token URIs
  mapping(uint256 => string) private _tokenURIs;

  bool public mintAllowed = false;
  uint256 public oneTimeLimit = 50;

  uint256 public mintPrice = 0.5 ether;
  uint256 public totalSupply = 0;

  uint256 private numAvailableItems = 3048;
  uint256[3048] private availableItems;

  uint256 private premine;
  mapping(address => uint256[]) private premineTokenIds;
  mapping(address => bool) public preminted;

  address public treasury = 0x785466a12D832785D90D96a5229DCb104BE795d8;
  address public revenue = 0x219801ea6177acA2B6f3A812c07C8B0f6db1Ab35;
  uint256 public performanceFee = 0.0018 ether;

  event MintEnabled();
  event MintDisabled();
  event Mint(address indexed user, uint256 tokenId);
  event SetMintPrice(uint256 price);
  event SetOneTimeLimit(uint256 limit);
  event ServiceInfoUpadted(address addr, uint256 fee);
  event SetRevenueWallet(address addr);
  event BaseURIUpdated(string uri);

  modifier onlyMintable() {
    require(mintAllowed && totalSupply < MAX_SUPPLY, "Cannot mint");
    _;
  }

  constructor() ERC721("Lucky Roo", "LUCKY") {}

  function preMint(address _to) external onlyOwner {
    require(totalSupply < premine, "Premine already finished");
    require(!preminted[_to], "Already mint");
    require(premineTokenIds[_to].length > 0, "Not whitelisted");

    preminted[_to] = true;

    uint256 count = premineTokenIds[_to].length;
    for (uint256 i = 0; i < count; i++) {
      uint256 tokenId = premineTokenIds[_to][i] - 1;
      uint256 lastIndex = numAvailableItems - 1;
      if (tokenId != lastIndex) {
        uint256 lastValInArray = availableItems[lastIndex];
        if (lastValInArray == 0) {
          availableItems[tokenId] = lastIndex;
        } else {
          availableItems[tokenId] = lastValInArray;
        }
      }

      tokenId++;
      _safeMint(_to, tokenId);
      _setTokenURI(tokenId, tokenId.toString());
      super._setTokenURI(tokenId, tokenId.toString());

      totalSupply++;
      numAvailableItems--;

      emit Mint(_to, tokenId);
    }
  }

  function mint(uint256 _numToMint) external payable onlyMintable nonReentrant {
    require(_numToMint <= oneTimeLimit, "Exceed one time limit");

    if (totalSupply + _numToMint > MAX_SUPPLY) {
      _numToMint = MAX_SUPPLY - totalSupply;
    }
    require(_numToMint > 0, "Invalid count");
    require(msg.value >= mintPrice * _numToMint + performanceFee, "Try send more eth");

    payable(revenue).transfer(mintPrice * _numToMint);
    payable(treasury).transfer(performanceFee);
    if (msg.value > mintPrice * _numToMint + performanceFee) {
      payable(msg.sender).transfer(msg.value - mintPrice * _numToMint - performanceFee);
    }

    for (uint256 i = 0; i < _numToMint; i++) {
      uint256 tokenId = _randomAvailableTokenId(_numToMint, i);

      tokenId++;
      _safeMint(msg.sender, tokenId);
      _setTokenURI(tokenId, tokenId.toString());
      super._setTokenURI(tokenId, tokenId.toString());

      totalSupply++;
      if (totalSupply == MAX_SUPPLY) {
        mintAllowed = false;
      }
      numAvailableItems--;

      emit Mint(msg.sender, tokenId);
    }
  }

  function _randomAvailableTokenId(uint256 _numToFetch, uint256 _i) internal returns (uint256) {
    uint256 randomNum = uint256(
      keccak256(
        abi.encode(
          msg.sender,
          tx.gasprice,
          block.number,
          block.timestamp,
          blockhash(block.number - 1),
          _numToFetch,
          _i
        )
      )
    );

    uint256 randomIndex = randomNum % numAvailableItems;

    uint256 valAtIndex = availableItems[randomIndex];
    uint256 result;
    if (valAtIndex == 0) {
      // This means the index itself is still an available token
      result = randomIndex;
    } else {
      // This means the index itself is not an available token, but the val at that index is.
      result = valAtIndex;
    }

    uint256 lastIndex = numAvailableItems - 1;
    if (randomIndex != lastIndex) {
      // Replace the value at randomIndex, now that it's been used.
      // Replace it with the data from the last index in the array, since we are going to decrease the array size afterwards.
      uint256 lastValInArray = availableItems[lastIndex];
      if (lastValInArray == 0) {
        // This means the index itself is still an available token
        availableItems[randomIndex] = lastIndex;
      } else {
        // This means the index itself is not an available token, but the val at that index is.
        availableItems[randomIndex] = lastValInArray;
      }
    }

    return result;
  }

  function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
    require(_exists(tokenId), "RabblePass: URI query for nonexistent token");

    string memory _tokenURI = _tokenURIs[tokenId];
    string memory base = _baseURI();

    // If there is no base URI, return the token URI.
    if (bytes(base).length == 0) {
      return _tokenURI;
    }
    // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
    if (bytes(_tokenURI).length > 0) {
      return string(abi.encodePacked(_baseURI(), _tokenURI));
    }

    return super.tokenURI(tokenId);
  }

  function rarityOf(uint256 _tokenId) external view returns (string memory) {
    if (_tokenId <= 48) return rareNames[1];
    return rareNames[0];
  }

  function enableMint() external onlyOwner {
    require(premine > 0, "Not set premine tokenIds");
    require(totalSupply >= premine, "Premine not finished yet");
    require(!mintAllowed, "Mint already enabled");

    mintAllowed = true;
    emit MintEnabled();
  }

  function disableMint() external onlyOwner {
    require(mintAllowed, "Mint not enabled");

    mintAllowed = false;
    emit MintDisabled();
  }

  function setMintPrice(uint256 _price) external onlyOwner {
    require(!mintAllowed, "Mint already started");
    mintPrice = _price;
    emit SetMintPrice(_price);
  }

  function setOneTimeLimit(uint256 _limit) external onlyOwner {
    require(_limit > 0, "Invalid limit");
    oneTimeLimit = _limit;
    emit SetOneTimeLimit(_limit);
  }

  function setPremineTokenIds(address _user, uint256[] memory _tokenIds) external onlyOwner {
    require(totalSupply == 0, "Mint already started");

    premine += _tokenIds.length - premineTokenIds[_user].length;
    premineTokenIds[_user] = _tokenIds;
  }

  function setTokenBaseUri(string memory _uri) external onlyOwner {
    _tokenBaseURI = _uri;
    emit BaseURIUpdated(_uri);
  }

  function setServiceInfo(address _addr, uint256 _fee) external {
    require(msg.sender == treasury, "setServiceInfo: FORBIDDEN");
    require(_addr != address(0x0), "Invalid address");

    treasury = _addr;
    performanceFee = _fee;

    emit ServiceInfoUpadted(_addr, _fee);
  }

  function setRevenueWallet(address _addr) external onlyOwner {
    require(_addr != address(0x0), "Invalid address");
    revenue = _addr;
    emit SetRevenueWallet(_addr);
  }

  function rescueTokens(address _token) external onlyOwner {
    if (_token == address(0x0)) {
      uint256 _ethAmount = address(this).balance;
      payable(msg.sender).transfer(_ethAmount);
    } else {
      uint256 _tokenAmount = IERC20(_token).balanceOf(address(this));
      IERC20(_token).transfer(msg.sender, _tokenAmount);
    }
  }

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

  function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal override {
    require(_exists(tokenId), "LuckyRoo: URI set of nonexistent token");
    _tokenURIs[tokenId] = _tokenURI;
  }

  receive() external payable {}
}

File 2 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 5 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 7 of 14 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":false,"internalType":"string","name":"uri","type":"string"}],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[],"name":"MintDisabled","type":"event"},{"anonymous":false,"inputs":[],"name":"MintEnabled","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":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"ServiceInfoUpadted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"SetMintPrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"limit","type":"uint256"}],"name":"SetOneTimeLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"SetRevenueWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numToMint","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oneTimeLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"performanceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"preMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"preminted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"rarityOf","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revenue","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setOneTimeLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"setPremineTokenIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setRevenueWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setServiceInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setTokenBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040819052600060808190526200001b91600991620001e4565b506040805160808101825260068183019081526521b7b6b6b7b760d11b60608301528152815180830190925260048252635261726560e01b6020838101919091528101919091526200007290600a90600262000273565b50600d805460ff191690556032600e556706f05b59d3b20000600f556000601055610be8601155610bfd80546001600160a01b031990811673785466a12d832785d90d96a5229dcb104be795d817909155610bfe805490911673219801ea6177aca2b6f3a812c07c8b0f6db1ab351790556606651728988000610bff55348015620000fc57600080fd5b50604051806040016040528060098152602001684c75636b7920526f6f60b81b815250604051806040016040528060058152602001644c55434b5960d81b81525062000157620001516200019060201b60201c565b62000194565b81516200016c906001906020850190620001e4565b50805162000182906002906020840190620001e4565b50506001600855506200037c565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001f29062000340565b90600052602060002090601f01602090048101928262000216576000855562000261565b82601f106200023157805160ff191683800117855562000261565b8280016001018555821562000261579182015b828111156200026157825182559160200191906001019062000244565b506200026f929150620002c6565b5090565b8260028101928215620002b8579160200282015b82811115620002b85782518051620002a7918491602090910190620001e4565b509160200191906001019062000287565b506200026f929150620002dd565b5b808211156200026f5760008155600101620002c7565b808211156200026f576000620002f48282620002fe565b50600101620002dd565b5080546200030c9062000340565b6000825580601f106200031d575050565b601f0160209004906000526020600020908101906200033d9190620002c6565b50565b600181811c908216806200035557607f821691505b6020821081036200037657634e487b7160e01b600052602260045260246000fd5b50919050565b612c73806200038c6000396000f3fe6080604052600436106101ed5760003560e01c8063715018a611610113578063c467201e116100ab578063e985e9c51161006f578063e985e9c5146105ce578063f2fde38b146105ee578063f4a0a5281461060e578063fb235f341461062e578063fd955ed91461064e57600080fd5b8063c467201e14610523578063c87b56dd1461053d578063ccd682bc1461055d578063d80647a41461058e578063dd3b5f9a146105ae57600080fd5b8063715018a61461043b57806381b619481461045057806387788782146104705780638da5cb5b1461048757806395d89b41146104a5578063a0712d68146104ba578063a22cb465146104cd578063a2cd12d2146104ed578063b88d4fde1461050357600080fd5b806334452f381161018657806334452f38146103395780633e9491a21461034e5780633f87db251461036f57806342842e0e1461038f57806344b28d59146103af57806361d027b3146103c45780636352211e146103e55780636817c76c1461040557806370a082311461041b57600080fd5b8062ae3bf8146101f957806301ffc9a71461021b57806306fdde0314610250578063081812fc14610272578063095ea7b31461029f57806318160ddd146102bf57806323b872dd146102e3578063284a66401461030357806332cb6b0c1461032357600080fd5b366101f457005b600080fd5b34801561020557600080fd5b50610219610214366004612552565b61066e565b005b34801561022757600080fd5b5061023b610236366004612583565b61079f565b60405190151581526020015b60405180910390f35b34801561025c57600080fd5b506102656107f1565b60405161024791906125f8565b34801561027e57600080fd5b5061029261028d36600461260b565b610883565b6040516102479190612624565b3480156102ab57600080fd5b506102196102ba366004612638565b6108aa565b3480156102cb57600080fd5b506102d560105481565b604051908152602001610247565b3480156102ef57600080fd5b506102196102fe366004612662565b6109bf565b34801561030f57600080fd5b5061021961031e3660046126e5565b6109f0565b34801561032f57600080fd5b506102d5610be881565b34801561034557600080fd5b50610219610a7f565b34801561035a57600080fd5b50610bfe54610292906001600160a01b031681565b34801561037b57600080fd5b5061021961038a3660046127f6565b610b01565b34801561039b57600080fd5b506102196103aa366004612662565b610b57565b3480156103bb57600080fd5b50610219610b72565b3480156103d057600080fd5b50610bfd54610292906001600160a01b031681565b3480156103f157600080fd5b5061029261040036600461260b565b610c9a565b34801561041157600080fd5b506102d5600f5481565b34801561042757600080fd5b506102d5610436366004612552565b610ccf565b34801561044757600080fd5b50610219610d55565b34801561045c57600080fd5b5061021961046b366004612638565b610d69565b34801561047c57600080fd5b506102d5610bff5481565b34801561049357600080fd5b506000546001600160a01b0316610292565b3480156104b157600080fd5b50610265610e48565b6102196104c836600461260b565b610e57565b3480156104d957600080fd5b506102196104e836600461284d565b6111fe565b3480156104f957600080fd5b506102d5600e5481565b34801561050f57600080fd5b5061021961051e366004612884565b61120d565b34801561052f57600080fd5b50600d5461023b9060ff1681565b34801561054957600080fd5b5061026561055836600461260b565b611245565b34801561056957600080fd5b5061023b610578366004612552565b610bfc6020526000908152604090205460ff1681565b34801561059a57600080fd5b506102196105a936600461260b565b6113af565b3480156105ba57600080fd5b506102656105c936600461260b565b61142c565b3480156105da57600080fd5b5061023b6105e9366004612900565b6114d5565b3480156105fa57600080fd5b50610219610609366004612552565b611503565b34801561061a57600080fd5b5061021961062936600461260b565b611579565b34801561063a57600080fd5b50610219610649366004612552565b6115d9565b34801561065a57600080fd5b50610219610669366004612552565b611653565b610676611900565b6001600160a01b0381166106b8576040514790339082156108fc029083906000818181858888f193505050501580156106b3573d6000803e3d6000fd5b505050565b6040516370a0823160e01b81526000906001600160a01b038316906370a08231906106e7903090600401612624565b602060405180830381865afa158015610704573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107289190612933565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610778573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b3919061294c565b50565b60006001600160e01b031982166380ac58cd60e01b14806107d057506001600160e01b03198216635b5e139f60e01b145b806107eb57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461080090612969565b80601f016020809104026020016040519081016040528092919081815260200182805461082c90612969565b80156108795780601f1061084e57610100808354040283529160200191610879565b820191906000526020600020905b81548152906001019060200180831161085c57829003601f168201915b5050505050905090565b600061088e8261195a565b506000908152600560205260409020546001600160a01b031690565b60006108b582610c9a565b9050806001600160a01b0316836001600160a01b0316036109275760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610943575061094381336114d5565b6109b55760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161091e565b6106b3838361197f565b6109c933826119ed565b6109e55760405162461bcd60e51b815260040161091e906129a3565b6106b3838383611a4b565b6109f8611900565b60105415610a185760405162461bcd60e51b815260040161091e906129f1565b6001600160a01b0382166000908152610bfb60205260409020548151610a3e9190612a35565b610bfa6000828254610a509190612a4c565b90915550506001600160a01b0382166000908152610bfb6020908152604090912082516106b392840190612463565b610a87611900565b600d5460ff16610acc5760405162461bcd60e51b815260206004820152601060248201526f135a5b9d081b9bdd08195b98589b195960821b604482015260640161091e565b600d805460ff191690556040517f17efbd6b2e8991ff29e146fea37e7ba741bd44a56a0bf256779856f0cb0bf15290600090a1565b610b09611900565b8051610b1c9060099060208401906124ae565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad81604051610b4c91906125f8565b60405180910390a150565b6106b38383836040518060200160405280600081525061120d565b610b7a611900565b6000610bfa5411610bc85760405162461bcd60e51b81526020600482015260186024820152774e6f7420736574207072656d696e6520746f6b656e49647360401b604482015260640161091e565b610bfa546010541015610c185760405162461bcd60e51b8152602060048201526018602482015277141c995b5a5b99481b9bdd08199a5b9a5cda1959081e595d60421b604482015260640161091e565b600d5460ff1615610c625760405162461bcd60e51b8152602060048201526014602482015273135a5b9d08185b1c9958591e48195b98589b195960621b604482015260640161091e565b600d805460ff191660011790556040517f7d4c15f0a1a76cde938e0b5d3a1c1e9905f57401c4aed53ae344801d156736e690600090a1565b6000818152600360205260408120546001600160a01b0316806107eb5760405162461bcd60e51b815260040161091e90612a64565b60006001600160a01b038216610d395760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161091e565b506001600160a01b031660009081526004602052604090205490565b610d5d611900565b610d676000611be7565b565b610bfd546001600160a01b03163314610dc05760405162461bcd60e51b815260206004820152601960248201527839b2ba29b2b93b34b1b2a4b733379d102327a92124a22222a760391b604482015260640161091e565b6001600160a01b038216610de65760405162461bcd60e51b815260040161091e90612a96565b610bfd80546001600160a01b0319166001600160a01b038416908117909155610bff82905560408051918252602082018390527f232f2e6280d2064b1e439bf40ecdada042d84eefbb55039e4c49e8dc4f4c90c9910160405180910390a15050565b60606002805461080090612969565b600d5460ff168015610e6c5750610be8601054105b610ea65760405162461bcd60e51b815260206004820152600b60248201526a10d85b9b9bdd081b5a5b9d60aa1b604482015260640161091e565b600260085403610ef85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161091e565b6002600855600e54811115610f475760405162461bcd60e51b8152602060048201526015602482015274115e18d95959081bdb99481d1a5b59481b1a5b5a5d605a1b604482015260640161091e565b610be881601054610f589190612a4c565b1115610f7057601054610f6d90610be8612a35565b90505b60008111610fb05760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a590818dbdd5b9d609a1b604482015260640161091e565b610bff5481600f54610fc29190612abf565b610fcc9190612a4c565b34101561100f5760405162461bcd60e51b81526020600482015260116024820152700a8e4f240e6cadcc840dadee4ca40cae8d607b1b604482015260640161091e565b610bfe54600f546001600160a01b03909116906108fc90611031908490612abf565b6040518115909202916000818181858888f19350505050158015611059573d6000803e3d6000fd5b50610bfd54610bff546040516001600160a01b039092169181156108fc0291906000818181858888f19350505050158015611098573d6000803e3d6000fd5b50610bff5481600f546110ab9190612abf565b6110b59190612a4c565b34111561111957336001600160a01b03166108fc610bff5483600f546110db9190612abf565b6110e59034612a35565b6110ef9190612a35565b6040518115909202916000818181858888f19350505050158015611117573d6000803e3d6000fd5b505b60005b818110156111f55760006111308383611c37565b90508061113c81612ade565b9150506111493382611d60565b61115b8161115683611d7a565b611e7b565b61116d8161116883611d7a565b611efe565b6010805490600061117d83612ade565b9190505550610be86010540361119857600d805460ff191690555b601180549060006111a883612af7565b909155505060405181815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a250806111ed81612ade565b91505061111c565b50506001600855565b611209338383611f89565b5050565b61121733836119ed565b6112335760405162461bcd60e51b815260040161091e906129a3565b61123f84848484612053565b50505050565b606061125082612086565b6112b05760405162461bcd60e51b815260206004820152602b60248201527f526162626c65506173733a2055524920717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b606482015260840161091e565b6000828152600c6020526040812080546112c990612969565b80601f01602080910402602001604051908101604052809291908181526020018280546112f590612969565b80156113425780601f1061131757610100808354040283529160200191611342565b820191906000526020600020905b81548152906001019060200180831161132557829003601f168201915b5050505050905060006113536120a3565b90508051600003611365575092915050565b81511561139e576113746120a3565b82604051602001611386929190612b0e565b60405160208183030381529060405292505050919050565b6113a7846120b2565b949350505050565b6113b7611900565b600081116113f75760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081b1a5b5a5d609a1b604482015260640161091e565b600e8190556040518181527fe2829e0b58973a393a64fea85d3ecff10b2cce5a330ce077046a0aa39a580d3690602001610b4c565b6060603082116114cc57600a60015b01805461144790612969565b80601f016020809104026020016040519081016040528092919081815260200182805461147390612969565b80156114c05780601f10611495576101008083540402835291602001916114c0565b820191906000526020600020905b8154815290600101906020018083116114a357829003601f168201915b50505050509050919050565b600a600061143b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b61150b611900565b6001600160a01b0381166115705760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161091e565b61079c81611be7565b611581611900565b600d5460ff16156115a45760405162461bcd60e51b815260040161091e906129f1565b600f8190556040518181527f02ebcb79e897ca3a22313ba6de8fc964409964de565fb4bb6a0927871756b88c90602001610b4c565b6115e1611900565b6001600160a01b0381166116075760405162461bcd60e51b815260040161091e90612a96565b610bfe80546001600160a01b0319166001600160a01b0383161790556040517fce870239a5904c22ff0d7b0256291be259e41b0eae94db46816993ed204e37a090610b4c908390612624565b61165b611900565b610bfa54601054106116aa5760405162461bcd60e51b8152602060048201526018602482015277141c995b5a5b9948185b1c9958591e48199a5b9a5cda195960421b604482015260640161091e565b6001600160a01b0381166000908152610bfc602052604090205460ff16156117035760405162461bcd60e51b815260206004820152600c60248201526b105b1c9958591e481b5a5b9d60a21b604482015260640161091e565b6001600160a01b0381166000908152610bfb602052604090205461175b5760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b604482015260640161091e565b6001600160a01b0381166000908152610bfc60209081526040808320805460ff19166001179055610bfb909152812054905b818110156106b3576001600160a01b0383166000908152610bfb60205260408120805460019190849081106117c4576117c4612b3d565b90600052602060002001546117d99190612a35565b9050600060016011546117ec9190612a35565b905080821461184d576000601282610be8811061180b5761180b612b3d565b01549050806000036118335781601284610be8811061182c5761182c612b3d565b015561184b565b80601284610be8811061184857611848612b3d565b01555b505b8161185781612ade565b9250506118648583611d60565b6118718261115684611d7a565b61187e8261116884611d7a565b6010805490600061188e83612ade565b9091555050601180549060006118a383612af7565b9190505550846001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885836040516118e391815260200190565b60405180910390a2505080806118f890612ade565b91505061178d565b6000546001600160a01b03163314610d675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091e565b61196381612086565b61079c5760405162461bcd60e51b815260040161091e90612a64565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119b482610c9a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806119f983610c9a565b9050806001600160a01b0316846001600160a01b03161480611a205750611a2081856114d5565b806113a75750836001600160a01b0316611a3984610883565b6001600160a01b031614949350505050565b826001600160a01b0316611a5e82610c9a565b6001600160a01b031614611ac25760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161091e565b6001600160a01b038216611b245760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161091e565b611b2f60008261197f565b6001600160a01b0383166000908152600460205260408120805460019290611b58908490612a35565b90915550506001600160a01b0382166000908152600460205260408120805460019290611b86908490612a4c565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080333a4342611c49600183612a35565b604080516001600160a01b039096166020870152850193909352606084019190915260808301524060a082015260c0810185905260e08101849052610100016040516020818303038152906040528051906020012060001c9050600060115482611cb39190612b69565b90506000601282610be88110611ccb57611ccb612b3d565b01549050600081600003611ce0575081611ce3565b50805b60006001601154611cf49190612a35565b9050808414611d55576000601282610be88110611d1357611d13612b3d565b0154905080600003611d3b5781601286610be88110611d3457611d34612b3d565b0155611d53565b80601286610be88110611d5057611d50612b3d565b01555b505b509695505050505050565b611209828260405180602001604052806000815250612195565b606081600003611da15750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611dcb5780611db581612ade565b9150611dc49050600a83612b7d565b9150611da5565b60008167ffffffffffffffff811115611de657611de661269e565b6040519080825280601f01601f191660200182016040528015611e10576020820181803683370190505b5090505b84156113a757611e25600183612a35565b9150611e32600a86612b69565b611e3d906030612a4c565b60f81b818381518110611e5257611e52612b3d565b60200101906001600160f81b031916908160001a905350611e74600a86612b7d565b9450611e14565b611e8482612086565b611edf5760405162461bcd60e51b815260206004820152602660248201527f4c75636b79526f6f3a2055524920736574206f66206e6f6e6578697374656e74604482015265103a37b5b2b760d11b606482015260840161091e565b6000828152600c6020908152604090912082516106b3928401906124ae565b611f0782612086565b611f6a5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161091e565b600082815260076020908152604090912082516106b3928401906124ae565b816001600160a01b0316836001600160a01b031603611fe65760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161091e565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61205e848484611a4b565b61206a848484846121c8565b61123f5760405162461bcd60e51b815260040161091e90612b91565b6000908152600360205260409020546001600160a01b0316151590565b60606009805461080090612969565b60606120bd8261195a565b600082815260076020526040812080546120d690612969565b80601f016020809104026020016040519081016040528092919081815260200182805461210290612969565b801561214f5780601f106121245761010080835404028352916020019161214f565b820191906000526020600020905b81548152906001019060200180831161213257829003601f168201915b5050505050905060006121606120a3565b90508051600003612172575092915050565b81511561218c578082604051602001611386929190612b0e565b6113a7846122c9565b61219f8383612330565b6121ac60008484846121c8565b6106b35760405162461bcd60e51b815260040161091e90612b91565b60006001600160a01b0384163b156122be57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061220c903390899088908890600401612be3565b6020604051808303816000875af1925050508015612247575060408051601f3d908101601f1916820190925261224491810190612c20565b60015b6122a4573d808015612275576040519150601f19603f3d011682016040523d82523d6000602084013e61227a565b606091505b50805160000361229c5760405162461bcd60e51b815260040161091e90612b91565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506113a7565b506001949350505050565b60606122d48261195a565b60006122de6120a3565b905060008151116122fe5760405180602001604052806000815250612329565b8061230884611d7a565b604051602001612319929190612b0e565b6040516020818303038152906040525b9392505050565b6001600160a01b0382166123865760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161091e565b61238f81612086565b156123dc5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161091e565b6001600160a01b0382166000908152600460205260408120805460019290612405908490612a4c565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805482825590600052602060002090810192821561249e579160200282015b8281111561249e578251825591602001919060010190612483565b506124aa929150612521565b5090565b8280546124ba90612969565b90600052602060002090601f0160209004810192826124dc576000855561249e565b82601f106124f557805160ff191683800117855561249e565b8280016001018555821561249e579182018281111561249e578251825591602001919060010190612483565b5b808211156124aa5760008155600101612522565b80356001600160a01b038116811461254d57600080fd5b919050565b60006020828403121561256457600080fd5b61232982612536565b6001600160e01b03198116811461079c57600080fd5b60006020828403121561259557600080fd5b81356123298161256d565b60005b838110156125bb5781810151838201526020016125a3565b8381111561123f5750506000910152565b600081518084526125e48160208601602086016125a0565b601f01601f19169290920160200192915050565b60208152600061232960208301846125cc565b60006020828403121561261d57600080fd5b5035919050565b6001600160a01b0391909116815260200190565b6000806040838503121561264b57600080fd5b61265483612536565b946020939093013593505050565b60008060006060848603121561267757600080fd5b61268084612536565b925061268e60208501612536565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156126dd576126dd61269e565b604052919050565b600080604083850312156126f857600080fd5b61270183612536565b915060208084013567ffffffffffffffff8082111561271f57600080fd5b818601915086601f83011261273357600080fd5b8135818111156127455761274561269e565b8060051b91506127568483016126b4565b818152918301840191848101908984111561277057600080fd5b938501935b8385101561278e57843582529385019390850190612775565b8096505050505050509250929050565b600067ffffffffffffffff8311156127b8576127b861269e565b6127cb601f8401601f19166020016126b4565b90508281528383830111156127df57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561280857600080fd5b813567ffffffffffffffff81111561281f57600080fd5b8201601f8101841361283057600080fd5b6113a78482356020840161279e565b801515811461079c57600080fd5b6000806040838503121561286057600080fd5b61286983612536565b915060208301356128798161283f565b809150509250929050565b6000806000806080858703121561289a57600080fd5b6128a385612536565b93506128b160208601612536565b925060408501359150606085013567ffffffffffffffff8111156128d457600080fd5b8501601f810187136128e557600080fd5b6128f48782356020840161279e565b91505092959194509250565b6000806040838503121561291357600080fd5b61291c83612536565b915061292a60208401612536565b90509250929050565b60006020828403121561294557600080fd5b5051919050565b60006020828403121561295e57600080fd5b81516123298161283f565b600181811c9082168061297d57607f821691505b60208210810361299d57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b602080825260149082015273135a5b9d08185b1c9958591e481cdd185c9d195960621b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015612a4757612a47612a1f565b500390565b60008219821115612a5f57612a5f612a1f565b500190565b602080825260189082015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604082015260600190565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b6000816000190483118215151615612ad957612ad9612a1f565b500290565b600060018201612af057612af0612a1f565b5060010190565b600081612b0657612b06612a1f565b506000190190565b60008351612b208184602088016125a0565b835190830190612b348183602088016125a0565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082612b7857612b78612b53565b500690565b600082612b8c57612b8c612b53565b500490565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c16908301846125cc565b9695505050505050565b600060208284031215612c3257600080fd5b81516123298161256d56fea2646970667358221220c98c65ee06d6b88b821f47bb38ace30c499bb540f6b2cb1dc10f9ad212cf17cb64736f6c634300080e0033

Deployed Bytecode

0x6080604052600436106101ed5760003560e01c8063715018a611610113578063c467201e116100ab578063e985e9c51161006f578063e985e9c5146105ce578063f2fde38b146105ee578063f4a0a5281461060e578063fb235f341461062e578063fd955ed91461064e57600080fd5b8063c467201e14610523578063c87b56dd1461053d578063ccd682bc1461055d578063d80647a41461058e578063dd3b5f9a146105ae57600080fd5b8063715018a61461043b57806381b619481461045057806387788782146104705780638da5cb5b1461048757806395d89b41146104a5578063a0712d68146104ba578063a22cb465146104cd578063a2cd12d2146104ed578063b88d4fde1461050357600080fd5b806334452f381161018657806334452f38146103395780633e9491a21461034e5780633f87db251461036f57806342842e0e1461038f57806344b28d59146103af57806361d027b3146103c45780636352211e146103e55780636817c76c1461040557806370a082311461041b57600080fd5b8062ae3bf8146101f957806301ffc9a71461021b57806306fdde0314610250578063081812fc14610272578063095ea7b31461029f57806318160ddd146102bf57806323b872dd146102e3578063284a66401461030357806332cb6b0c1461032357600080fd5b366101f457005b600080fd5b34801561020557600080fd5b50610219610214366004612552565b61066e565b005b34801561022757600080fd5b5061023b610236366004612583565b61079f565b60405190151581526020015b60405180910390f35b34801561025c57600080fd5b506102656107f1565b60405161024791906125f8565b34801561027e57600080fd5b5061029261028d36600461260b565b610883565b6040516102479190612624565b3480156102ab57600080fd5b506102196102ba366004612638565b6108aa565b3480156102cb57600080fd5b506102d560105481565b604051908152602001610247565b3480156102ef57600080fd5b506102196102fe366004612662565b6109bf565b34801561030f57600080fd5b5061021961031e3660046126e5565b6109f0565b34801561032f57600080fd5b506102d5610be881565b34801561034557600080fd5b50610219610a7f565b34801561035a57600080fd5b50610bfe54610292906001600160a01b031681565b34801561037b57600080fd5b5061021961038a3660046127f6565b610b01565b34801561039b57600080fd5b506102196103aa366004612662565b610b57565b3480156103bb57600080fd5b50610219610b72565b3480156103d057600080fd5b50610bfd54610292906001600160a01b031681565b3480156103f157600080fd5b5061029261040036600461260b565b610c9a565b34801561041157600080fd5b506102d5600f5481565b34801561042757600080fd5b506102d5610436366004612552565b610ccf565b34801561044757600080fd5b50610219610d55565b34801561045c57600080fd5b5061021961046b366004612638565b610d69565b34801561047c57600080fd5b506102d5610bff5481565b34801561049357600080fd5b506000546001600160a01b0316610292565b3480156104b157600080fd5b50610265610e48565b6102196104c836600461260b565b610e57565b3480156104d957600080fd5b506102196104e836600461284d565b6111fe565b3480156104f957600080fd5b506102d5600e5481565b34801561050f57600080fd5b5061021961051e366004612884565b61120d565b34801561052f57600080fd5b50600d5461023b9060ff1681565b34801561054957600080fd5b5061026561055836600461260b565b611245565b34801561056957600080fd5b5061023b610578366004612552565b610bfc6020526000908152604090205460ff1681565b34801561059a57600080fd5b506102196105a936600461260b565b6113af565b3480156105ba57600080fd5b506102656105c936600461260b565b61142c565b3480156105da57600080fd5b5061023b6105e9366004612900565b6114d5565b3480156105fa57600080fd5b50610219610609366004612552565b611503565b34801561061a57600080fd5b5061021961062936600461260b565b611579565b34801561063a57600080fd5b50610219610649366004612552565b6115d9565b34801561065a57600080fd5b50610219610669366004612552565b611653565b610676611900565b6001600160a01b0381166106b8576040514790339082156108fc029083906000818181858888f193505050501580156106b3573d6000803e3d6000fd5b505050565b6040516370a0823160e01b81526000906001600160a01b038316906370a08231906106e7903090600401612624565b602060405180830381865afa158015610704573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107289190612933565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610778573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b3919061294c565b50565b60006001600160e01b031982166380ac58cd60e01b14806107d057506001600160e01b03198216635b5e139f60e01b145b806107eb57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461080090612969565b80601f016020809104026020016040519081016040528092919081815260200182805461082c90612969565b80156108795780601f1061084e57610100808354040283529160200191610879565b820191906000526020600020905b81548152906001019060200180831161085c57829003601f168201915b5050505050905090565b600061088e8261195a565b506000908152600560205260409020546001600160a01b031690565b60006108b582610c9a565b9050806001600160a01b0316836001600160a01b0316036109275760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610943575061094381336114d5565b6109b55760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161091e565b6106b3838361197f565b6109c933826119ed565b6109e55760405162461bcd60e51b815260040161091e906129a3565b6106b3838383611a4b565b6109f8611900565b60105415610a185760405162461bcd60e51b815260040161091e906129f1565b6001600160a01b0382166000908152610bfb60205260409020548151610a3e9190612a35565b610bfa6000828254610a509190612a4c565b90915550506001600160a01b0382166000908152610bfb6020908152604090912082516106b392840190612463565b610a87611900565b600d5460ff16610acc5760405162461bcd60e51b815260206004820152601060248201526f135a5b9d081b9bdd08195b98589b195960821b604482015260640161091e565b600d805460ff191690556040517f17efbd6b2e8991ff29e146fea37e7ba741bd44a56a0bf256779856f0cb0bf15290600090a1565b610b09611900565b8051610b1c9060099060208401906124ae565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad81604051610b4c91906125f8565b60405180910390a150565b6106b38383836040518060200160405280600081525061120d565b610b7a611900565b6000610bfa5411610bc85760405162461bcd60e51b81526020600482015260186024820152774e6f7420736574207072656d696e6520746f6b656e49647360401b604482015260640161091e565b610bfa546010541015610c185760405162461bcd60e51b8152602060048201526018602482015277141c995b5a5b99481b9bdd08199a5b9a5cda1959081e595d60421b604482015260640161091e565b600d5460ff1615610c625760405162461bcd60e51b8152602060048201526014602482015273135a5b9d08185b1c9958591e48195b98589b195960621b604482015260640161091e565b600d805460ff191660011790556040517f7d4c15f0a1a76cde938e0b5d3a1c1e9905f57401c4aed53ae344801d156736e690600090a1565b6000818152600360205260408120546001600160a01b0316806107eb5760405162461bcd60e51b815260040161091e90612a64565b60006001600160a01b038216610d395760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161091e565b506001600160a01b031660009081526004602052604090205490565b610d5d611900565b610d676000611be7565b565b610bfd546001600160a01b03163314610dc05760405162461bcd60e51b815260206004820152601960248201527839b2ba29b2b93b34b1b2a4b733379d102327a92124a22222a760391b604482015260640161091e565b6001600160a01b038216610de65760405162461bcd60e51b815260040161091e90612a96565b610bfd80546001600160a01b0319166001600160a01b038416908117909155610bff82905560408051918252602082018390527f232f2e6280d2064b1e439bf40ecdada042d84eefbb55039e4c49e8dc4f4c90c9910160405180910390a15050565b60606002805461080090612969565b600d5460ff168015610e6c5750610be8601054105b610ea65760405162461bcd60e51b815260206004820152600b60248201526a10d85b9b9bdd081b5a5b9d60aa1b604482015260640161091e565b600260085403610ef85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161091e565b6002600855600e54811115610f475760405162461bcd60e51b8152602060048201526015602482015274115e18d95959081bdb99481d1a5b59481b1a5b5a5d605a1b604482015260640161091e565b610be881601054610f589190612a4c565b1115610f7057601054610f6d90610be8612a35565b90505b60008111610fb05760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a590818dbdd5b9d609a1b604482015260640161091e565b610bff5481600f54610fc29190612abf565b610fcc9190612a4c565b34101561100f5760405162461bcd60e51b81526020600482015260116024820152700a8e4f240e6cadcc840dadee4ca40cae8d607b1b604482015260640161091e565b610bfe54600f546001600160a01b03909116906108fc90611031908490612abf565b6040518115909202916000818181858888f19350505050158015611059573d6000803e3d6000fd5b50610bfd54610bff546040516001600160a01b039092169181156108fc0291906000818181858888f19350505050158015611098573d6000803e3d6000fd5b50610bff5481600f546110ab9190612abf565b6110b59190612a4c565b34111561111957336001600160a01b03166108fc610bff5483600f546110db9190612abf565b6110e59034612a35565b6110ef9190612a35565b6040518115909202916000818181858888f19350505050158015611117573d6000803e3d6000fd5b505b60005b818110156111f55760006111308383611c37565b90508061113c81612ade565b9150506111493382611d60565b61115b8161115683611d7a565b611e7b565b61116d8161116883611d7a565b611efe565b6010805490600061117d83612ade565b9190505550610be86010540361119857600d805460ff191690555b601180549060006111a883612af7565b909155505060405181815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a250806111ed81612ade565b91505061111c565b50506001600855565b611209338383611f89565b5050565b61121733836119ed565b6112335760405162461bcd60e51b815260040161091e906129a3565b61123f84848484612053565b50505050565b606061125082612086565b6112b05760405162461bcd60e51b815260206004820152602b60248201527f526162626c65506173733a2055524920717565727920666f72206e6f6e65786960448201526a39ba32b73a103a37b5b2b760a91b606482015260840161091e565b6000828152600c6020526040812080546112c990612969565b80601f01602080910402602001604051908101604052809291908181526020018280546112f590612969565b80156113425780601f1061131757610100808354040283529160200191611342565b820191906000526020600020905b81548152906001019060200180831161132557829003601f168201915b5050505050905060006113536120a3565b90508051600003611365575092915050565b81511561139e576113746120a3565b82604051602001611386929190612b0e565b60405160208183030381529060405292505050919050565b6113a7846120b2565b949350505050565b6113b7611900565b600081116113f75760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081b1a5b5a5d609a1b604482015260640161091e565b600e8190556040518181527fe2829e0b58973a393a64fea85d3ecff10b2cce5a330ce077046a0aa39a580d3690602001610b4c565b6060603082116114cc57600a60015b01805461144790612969565b80601f016020809104026020016040519081016040528092919081815260200182805461147390612969565b80156114c05780601f10611495576101008083540402835291602001916114c0565b820191906000526020600020905b8154815290600101906020018083116114a357829003601f168201915b50505050509050919050565b600a600061143b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b61150b611900565b6001600160a01b0381166115705760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161091e565b61079c81611be7565b611581611900565b600d5460ff16156115a45760405162461bcd60e51b815260040161091e906129f1565b600f8190556040518181527f02ebcb79e897ca3a22313ba6de8fc964409964de565fb4bb6a0927871756b88c90602001610b4c565b6115e1611900565b6001600160a01b0381166116075760405162461bcd60e51b815260040161091e90612a96565b610bfe80546001600160a01b0319166001600160a01b0383161790556040517fce870239a5904c22ff0d7b0256291be259e41b0eae94db46816993ed204e37a090610b4c908390612624565b61165b611900565b610bfa54601054106116aa5760405162461bcd60e51b8152602060048201526018602482015277141c995b5a5b9948185b1c9958591e48199a5b9a5cda195960421b604482015260640161091e565b6001600160a01b0381166000908152610bfc602052604090205460ff16156117035760405162461bcd60e51b815260206004820152600c60248201526b105b1c9958591e481b5a5b9d60a21b604482015260640161091e565b6001600160a01b0381166000908152610bfb602052604090205461175b5760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b604482015260640161091e565b6001600160a01b0381166000908152610bfc60209081526040808320805460ff19166001179055610bfb909152812054905b818110156106b3576001600160a01b0383166000908152610bfb60205260408120805460019190849081106117c4576117c4612b3d565b90600052602060002001546117d99190612a35565b9050600060016011546117ec9190612a35565b905080821461184d576000601282610be8811061180b5761180b612b3d565b01549050806000036118335781601284610be8811061182c5761182c612b3d565b015561184b565b80601284610be8811061184857611848612b3d565b01555b505b8161185781612ade565b9250506118648583611d60565b6118718261115684611d7a565b61187e8261116884611d7a565b6010805490600061188e83612ade565b9091555050601180549060006118a383612af7565b9190505550846001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885836040516118e391815260200190565b60405180910390a2505080806118f890612ade565b91505061178d565b6000546001600160a01b03163314610d675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091e565b61196381612086565b61079c5760405162461bcd60e51b815260040161091e90612a64565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119b482610c9a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806119f983610c9a565b9050806001600160a01b0316846001600160a01b03161480611a205750611a2081856114d5565b806113a75750836001600160a01b0316611a3984610883565b6001600160a01b031614949350505050565b826001600160a01b0316611a5e82610c9a565b6001600160a01b031614611ac25760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161091e565b6001600160a01b038216611b245760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161091e565b611b2f60008261197f565b6001600160a01b0383166000908152600460205260408120805460019290611b58908490612a35565b90915550506001600160a01b0382166000908152600460205260408120805460019290611b86908490612a4c565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080333a4342611c49600183612a35565b604080516001600160a01b039096166020870152850193909352606084019190915260808301524060a082015260c0810185905260e08101849052610100016040516020818303038152906040528051906020012060001c9050600060115482611cb39190612b69565b90506000601282610be88110611ccb57611ccb612b3d565b01549050600081600003611ce0575081611ce3565b50805b60006001601154611cf49190612a35565b9050808414611d55576000601282610be88110611d1357611d13612b3d565b0154905080600003611d3b5781601286610be88110611d3457611d34612b3d565b0155611d53565b80601286610be88110611d5057611d50612b3d565b01555b505b509695505050505050565b611209828260405180602001604052806000815250612195565b606081600003611da15750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611dcb5780611db581612ade565b9150611dc49050600a83612b7d565b9150611da5565b60008167ffffffffffffffff811115611de657611de661269e565b6040519080825280601f01601f191660200182016040528015611e10576020820181803683370190505b5090505b84156113a757611e25600183612a35565b9150611e32600a86612b69565b611e3d906030612a4c565b60f81b818381518110611e5257611e52612b3d565b60200101906001600160f81b031916908160001a905350611e74600a86612b7d565b9450611e14565b611e8482612086565b611edf5760405162461bcd60e51b815260206004820152602660248201527f4c75636b79526f6f3a2055524920736574206f66206e6f6e6578697374656e74604482015265103a37b5b2b760d11b606482015260840161091e565b6000828152600c6020908152604090912082516106b3928401906124ae565b611f0782612086565b611f6a5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161091e565b600082815260076020908152604090912082516106b3928401906124ae565b816001600160a01b0316836001600160a01b031603611fe65760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161091e565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61205e848484611a4b565b61206a848484846121c8565b61123f5760405162461bcd60e51b815260040161091e90612b91565b6000908152600360205260409020546001600160a01b0316151590565b60606009805461080090612969565b60606120bd8261195a565b600082815260076020526040812080546120d690612969565b80601f016020809104026020016040519081016040528092919081815260200182805461210290612969565b801561214f5780601f106121245761010080835404028352916020019161214f565b820191906000526020600020905b81548152906001019060200180831161213257829003601f168201915b5050505050905060006121606120a3565b90508051600003612172575092915050565b81511561218c578082604051602001611386929190612b0e565b6113a7846122c9565b61219f8383612330565b6121ac60008484846121c8565b6106b35760405162461bcd60e51b815260040161091e90612b91565b60006001600160a01b0384163b156122be57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061220c903390899088908890600401612be3565b6020604051808303816000875af1925050508015612247575060408051601f3d908101601f1916820190925261224491810190612c20565b60015b6122a4573d808015612275576040519150601f19603f3d011682016040523d82523d6000602084013e61227a565b606091505b50805160000361229c5760405162461bcd60e51b815260040161091e90612b91565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506113a7565b506001949350505050565b60606122d48261195a565b60006122de6120a3565b905060008151116122fe5760405180602001604052806000815250612329565b8061230884611d7a565b604051602001612319929190612b0e565b6040516020818303038152906040525b9392505050565b6001600160a01b0382166123865760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161091e565b61238f81612086565b156123dc5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161091e565b6001600160a01b0382166000908152600460205260408120805460019290612405908490612a4c565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805482825590600052602060002090810192821561249e579160200282015b8281111561249e578251825591602001919060010190612483565b506124aa929150612521565b5090565b8280546124ba90612969565b90600052602060002090601f0160209004810192826124dc576000855561249e565b82601f106124f557805160ff191683800117855561249e565b8280016001018555821561249e579182018281111561249e578251825591602001919060010190612483565b5b808211156124aa5760008155600101612522565b80356001600160a01b038116811461254d57600080fd5b919050565b60006020828403121561256457600080fd5b61232982612536565b6001600160e01b03198116811461079c57600080fd5b60006020828403121561259557600080fd5b81356123298161256d565b60005b838110156125bb5781810151838201526020016125a3565b8381111561123f5750506000910152565b600081518084526125e48160208601602086016125a0565b601f01601f19169290920160200192915050565b60208152600061232960208301846125cc565b60006020828403121561261d57600080fd5b5035919050565b6001600160a01b0391909116815260200190565b6000806040838503121561264b57600080fd5b61265483612536565b946020939093013593505050565b60008060006060848603121561267757600080fd5b61268084612536565b925061268e60208501612536565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156126dd576126dd61269e565b604052919050565b600080604083850312156126f857600080fd5b61270183612536565b915060208084013567ffffffffffffffff8082111561271f57600080fd5b818601915086601f83011261273357600080fd5b8135818111156127455761274561269e565b8060051b91506127568483016126b4565b818152918301840191848101908984111561277057600080fd5b938501935b8385101561278e57843582529385019390850190612775565b8096505050505050509250929050565b600067ffffffffffffffff8311156127b8576127b861269e565b6127cb601f8401601f19166020016126b4565b90508281528383830111156127df57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561280857600080fd5b813567ffffffffffffffff81111561281f57600080fd5b8201601f8101841361283057600080fd5b6113a78482356020840161279e565b801515811461079c57600080fd5b6000806040838503121561286057600080fd5b61286983612536565b915060208301356128798161283f565b809150509250929050565b6000806000806080858703121561289a57600080fd5b6128a385612536565b93506128b160208601612536565b925060408501359150606085013567ffffffffffffffff8111156128d457600080fd5b8501601f810187136128e557600080fd5b6128f48782356020840161279e565b91505092959194509250565b6000806040838503121561291357600080fd5b61291c83612536565b915061292a60208401612536565b90509250929050565b60006020828403121561294557600080fd5b5051919050565b60006020828403121561295e57600080fd5b81516123298161283f565b600181811c9082168061297d57607f821691505b60208210810361299d57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b602080825260149082015273135a5b9d08185b1c9958591e481cdd185c9d195960621b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015612a4757612a47612a1f565b500390565b60008219821115612a5f57612a5f612a1f565b500190565b602080825260189082015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604082015260600190565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b6000816000190483118215151615612ad957612ad9612a1f565b500290565b600060018201612af057612af0612a1f565b5060010190565b600081612b0657612b06612a1f565b506000190190565b60008351612b208184602088016125a0565b835190830190612b348183602088016125a0565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082612b7857612b78612b53565b500690565b600082612b8c57612b8c612b53565b500490565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c16908301846125cc565b9695505050505050565b600060208284031215612c3257600080fd5b81516123298161256d56fea2646970667358221220c98c65ee06d6b88b821f47bb38ace30c499bb540f6b2cb1dc10f9ad212cf17cb64736f6c634300080e0033

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.