ETH Price: $2,284.38 (-2.54%)

Token

RIPit by Lordcalder (RIPit)
 

Overview

Max Total Supply

76 RIPit

Holders

22

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 RIPit
0xc5e34e1c68f85f039fea75176b418124591ab506
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Ripit

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

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

import "@openzeppelin/[email protected]/token/ERC721/ERC721.sol";
import { Ownable } from "@openzeppelin/[email protected]/access/Ownable.sol";
import { ERC165Checker } from "@openzeppelin/[email protected]/utils/introspection/ERC165Checker.sol";
import "@openzeppelin/[email protected]/security/ReentrancyGuard.sol";
import "@openzeppelin/[email protected]/token/ERC721/extensions/ERC721URIStorage.sol";

/*



RRRRRRRRRRRRRRRRR     iiii                             iiii           tttt
R::::::::::::::::R   i::::i                           i::::i       ttt:::t
R::::::RRRRRR:::::R   iiii                             iiii        t:::::t
RR:::::R     R:::::R                                               t:::::t
  R::::R     R:::::Riiiiiii ppppp   ppppppppp        iiiiiii ttttttt:::::ttttttt
  R::::R     R:::::Ri:::::i p::::ppp:::::::::p       i:::::i t:::::::::::::::::t
  R::::RRRRRR:::::R  i::::i p:::::::::::::::::p       i::::i t:::::::::::::::::t
  R:::::::::::::RR   i::::i pp::::::ppppp::::::p      i::::i tttttt:::::::tttttt
  R::::RRRRRR:::::R  i::::i  p:::::p     p:::::p      i::::i       t:::::t
  R::::R     R:::::R i::::i  p:::::p     p:::::p      i::::i       t:::::t
  R::::R     R:::::R i::::i  p:::::p     p:::::p      i::::i       t:::::t
  R::::R     R:::::R i::::i  p:::::p    p::::::p      i::::i       t:::::t    tttttt
RR:::::R     R:::::Ri::::::i p:::::ppppp:::::::p     i::::::i      t::::::tttt:::::t
R::::::R     R:::::Ri::::::i p::::::::::::::::p      i::::::i      tt::::::::::::::t
R::::::R     R:::::Ri::::::i p::::::::::::::pp       i::::::i        tt:::::::::::tt
RRRRRRRR     RRRRRRRiiiiiiii p::::::pppppppp         iiiiiiii          ttttttttttt
                             p:::::p
                             p:::::p
                            p:::::::p
                            p:::::::p
                            p:::::::p
                            ppppppppp


*/

contract Ripit is ERC721, ERC721URIStorage, Ownable, ReentrancyGuard {

    // Tracks the RipId to the URI
    //mapping(uint => string) public transformations;

    // Contract address -> token id -> bool
    mapping(address => mapping(uint => bool)) public addressTokenRipped;
    mapping(uint256 => bool) public alreadyRipped;

    bytes4 private ERC721InterfaceId = 0x80ac58cd;
    bytes4 private ERC1155MetadataInterfaceId = 0x0e89341c;

    uint public price = 0.003 ether;
    uint public ripCount;
    uint public constant MAX_SUPPLY = 20000;
    uint256 public _royaltyFee = 1000;
    address private _owner;
    uint256 internal currentIndex = 1;

    string private ripEnabledURI = "https://lordcalder.com/ripit/token/";
    string private ripNotEnabledURI = "https://lordcalder.com/ripit/";
    string public _baseTokenURI = "https://lordcalder.com/ripit/";

    bool mintEnabled = true;
    bool ripEnabled = false;

    address public withdrawAddress = 0xa0270756B3a3E18AfA74dB7812367aF9E5e79BF3;

    // Events

    event Ripping(uint indexed ripId, address indexed usingContractNFT, uint indexed tokenId);

    // Constructor

    constructor() ERC721("RIPit by Lordcalder", "RIPit") {
        _owner = msg.sender;
        marketingMint(1);
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "Ripit :: Cannot be called by contracts!");
        _;
    }
    // Mint

    function mint(uint256 _numberToMint, uint256 _value) external payable callerIsUser nonReentrant {
        require(mintEnabled == true, "Mint is not enabled");
        require(totalSupply() + _numberToMint <= MAX_SUPPLY, "We have minted out");
        require(_value == (price * _numberToMint), string.concat("You have ",_value > (price * _numberToMint) ? "sent too much" : "not sent enough"," dosh! Expected: ", toString(3000000000000000 * _numberToMint)));
        for (uint256 i = 0; i < _numberToMint; ++i) {
            _safeMint(msg.sender, currentIndex);
            currentIndex += 1;
        }
    }

    function hasTargetBeenRipped(address _contractAddress, uint _tokenId) view public returns (bool){
        return addressTokenRipped[_contractAddress][_tokenId];
    }

    function ripIdHasBeenUsedAlready(uint256 _tokenId) view public returns (bool){
        return alreadyRipped[_tokenId];
    }

    // Only rip once
    function ripit(uint ripId, address usingContractNFT, uint usingTokenId) external {
        require(ripEnabled, "Ripping your NFTs is not enabled yet");
        require(_exists(ripId), "This RIP Token has not been minted yet!");
        // Prevents a token from being re-ripped
        require(hasTargetBeenRipped(usingContractNFT, usingTokenId) == false, "This nft has already been ripped!");
        require(ownerOf(ripId) == msg.sender, "Not your strip to rip!");
        require(ripIdHasBeenUsedAlready(ripId) == false, "This RIP Token has alread been used!");

        addressTokenRipped[usingContractNFT][usingTokenId] = true;
        alreadyRipped[ripId] = true;
        unchecked { ++ripCount; }

        emit Ripping(ripId, usingContractNFT, usingTokenId);

    }

    // Plucked from OpenZeppelin's Strings.sol
    function toString(uint 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";
        }
        uint temp = value;
        uint 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);
    }

    function marketingMint(uint256 _numberToMint) public payable callerIsUser onlyOwner nonReentrant {
        uint256 s = totalSupply();
        uint256 m = MAX_SUPPLY;
        require(_numberToMint > 0, "Cannot mint 0 Rips");
        require(s + _numberToMint <= m, "There are not enough strips to rip!");
        for (uint256 i = 0; i < _numberToMint; ++i) {
            _safeMint(msg.sender, currentIndex);
            currentIndex += 1;
        }
        delete m;
        delete s;
    }


    function totalSupply() public view returns (uint256) {
        return _totalSupply();
    }

    function _totalSupply() internal view returns (uint256) {
        return currentIndex - 1;
    }

    function tokenURI(uint256 tokenId)
    public
    view
    override(ERC721, ERC721URIStorage)
    returns (string memory)
    {
        // Just ensure the metadata 'value'... if this is traditional CDN with a json file, or a direct Link
        // update the currentBaseURI concatenation accordingly
        require(_exists(tokenId), "ERC721Metadata: Nonexistent token");
        string memory currentBaseURI = _baseURI();

        return
        (ripEnabled == true)
        // REMEMBER TO CHECK THE METADATA CDN's
        ? ripIdHasBeenUsedAlready(tokenId) 
            ? string(abi.encodePacked(currentBaseURI, toString(tokenId), ".json"))
            : string(abi.encodePacked(ripNotEnabledURI, "readytorip.json"))
        : string(abi.encodePacked(ripNotEnabledURI, "waitingforrip.json"));
    }


    // Setters

    // Use this function to update a single nft's metadata
    function setTokenURI(uint256 _tokenId, string memory _tokenURI) external onlyOwner {
        require(_exists(_tokenId), "Token does not exist!");
        _setTokenURI(_tokenId, _tokenURI);
    }

    function setBaseURI(string memory _newBaseURI) external onlyOwner {
        _baseTokenURI = _newBaseURI;
    }

    function setRipEnabledURI(string memory _ripEnabledURI) external onlyOwner {
        ripEnabledURI = _ripEnabledURI;
    }

    function setRipNotEnabledURI(string memory _ripNotEnabledURI) external onlyOwner {
        ripNotEnabledURI = _ripNotEnabledURI;
    }

    function setMintOpen(bool _val) external onlyOwner {
        mintEnabled = _val;
    }

    function setRipOpen(bool _val) external onlyOwner {
        ripEnabled = _val;
        if (_val == true) {
            _baseTokenURI = ripEnabledURI;
        }
    }

    function setPrice(uint _wei) external onlyOwner {
        price = _wei;
    }

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

    // Withdraw

    function withdraw() public payable onlyOwner {
        (bool success, ) = payable(msg.sender).call{
            value: address(this).balance
        }("");
        require(success);
    }

    function withdrawAny(uint256 _amount) public payable onlyOwner {
        (bool success, ) = payable(msg.sender).call{value: _amount}("");
        require(success);
    }

    // Required as override as two inherited contracts have a burn function
    function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
        super._burn(tokenId);
    }

    function burn(uint256 tokenId) public onlyOwner {
        _burn(tokenId);
    }

}

File 2 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 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 : ERC165Checker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.2) (utils/introspection/ERC165Checker.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Library used to query support of an interface declared via {IERC165}.
 *
 * Note that these functions return the actual result of the query: they do not
 * `revert` if an interface is not supported. It is up to the caller to decide
 * what to do in these cases.
 */
library ERC165Checker {
    // As per the EIP-165 spec, no interface should ever match 0xffffffff
    bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;

    /**
     * @dev Returns true if `account` supports the {IERC165} interface,
     */
    function supportsERC165(address account) internal view returns (bool) {
        // Any contract that implements ERC165 must explicitly indicate support of
        // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid
        return
            _supportsERC165Interface(account, type(IERC165).interfaceId) &&
            !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);
    }

    /**
     * @dev Returns true if `account` supports the interface defined by
     * `interfaceId`. Support for {IERC165} itself is queried automatically.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {
        // query support of both ERC165 as per the spec and support of _interfaceId
        return supportsERC165(account) && _supportsERC165Interface(account, interfaceId);
    }

    /**
     * @dev Returns a boolean array where each value corresponds to the
     * interfaces passed in and whether they're supported or not. This allows
     * you to batch check interfaces for a contract where your expectation
     * is that some interfaces may not be supported.
     *
     * See {IERC165-supportsInterface}.
     *
     * _Available since v3.4._
     */
    function getSupportedInterfaces(address account, bytes4[] memory interfaceIds)
        internal
        view
        returns (bool[] memory)
    {
        // an array of booleans corresponding to interfaceIds and whether they're supported or not
        bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length);

        // query support of ERC165 itself
        if (supportsERC165(account)) {
            // query support of each interface in interfaceIds
            for (uint256 i = 0; i < interfaceIds.length; i++) {
                interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]);
            }
        }

        return interfaceIdsSupported;
    }

    /**
     * @dev Returns true if `account` supports all the interfaces defined in
     * `interfaceIds`. Support for {IERC165} itself is queried automatically.
     *
     * Batch-querying can lead to gas savings by skipping repeated checks for
     * {IERC165} support.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {
        // query support of ERC165 itself
        if (!supportsERC165(account)) {
            return false;
        }

        // query support of each interface in _interfaceIds
        for (uint256 i = 0; i < interfaceIds.length; i++) {
            if (!_supportsERC165Interface(account, interfaceIds[i])) {
                return false;
            }
        }

        // all interfaces supported
        return true;
    }

    /**
     * @notice Query if a contract implements an interface, does not check ERC165 support
     * @param account The address of the contract to query for support of an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @return true if the contract at account indicates support of the interface with
     * identifier interfaceId, false otherwise
     * @dev Assumes that account contains a contract that supports ERC165, otherwise
     * the behavior of this method is undefined. This precondition can be checked
     * with {supportsERC165}.
     * Interface identification is specified in ERC-165.
     */
    function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {
        // prepare call
        bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId);

        // perform static call
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly {
            success := staticcall(30000, account, add(encodedParams, 0x20), mload(encodedParams), 0x00, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0x00)
        }

        return success && returnSize >= 0x20 && returnValue > 0;
    }
}

File 5 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 6 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 7 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 8 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 9 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 10 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 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 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 13 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 14 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);
}

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

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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"ripId","type":"uint256"},{"indexed":true,"internalType":"address","name":"usingContractNFT","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Ripping","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":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_royaltyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"addressTokenRipped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"alreadyRipped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","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":"_contractAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"hasTargetBeenRipped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberToMint","type":"uint256"}],"name":"marketingMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberToMint","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ripCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"ripIdHasBeenUsedAlready","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ripId","type":"uint256"},{"internalType":"address","name":"usingContractNFT","type":"address"},{"internalType":"uint256","name":"usingTokenId","type":"uint256"}],"name":"ripit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setMintOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wei","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ripEnabledURI","type":"string"}],"name":"setRipEnabledURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ripNotEnabledURI","type":"string"}],"name":"setRipNotEnabledURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setRipOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","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":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawAny","outputs":[],"stateMutability":"payable","type":"function"}]

600b80546001600160401b031916670e89341c80ac58cd179055660aa87bee538000600c556103e8600e55600160105560e060405260236080818152906200337260a03960119062000052908262000878565b5060408051808201909152601d81527f68747470733a2f2f6c6f726463616c6465722e636f6d2f72697069742f000000602082015260129062000096908262000878565b5060408051808201909152601d81527f68747470733a2f2f6c6f726463616c6465722e636f6d2f72697069742f0000006020820152601390620000da908262000878565b50601480546001600160b01b03191675a0270756b3a3e18afa74db7812367af9e5e79bf300011790553480156200011057600080fd5b506040518060400160405280601381526020017f5249506974206279204c6f726463616c64657200000000000000000000000000815250604051806040016040528060058152602001641492541a5d60da1b815250816000908162000176919062000878565b50600162000185828262000878565b505050620001a26200019c620001cc60201b60201c565b620001d0565b60016008819055600f80546001600160a01b03191633179055620001c69062000222565b62000a4e565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b323314620002875760405162461bcd60e51b815260206004820152602760248201527f5269706974203a3a2043616e6e6f742062652063616c6c656420627920636f6e6044820152667472616374732160c81b60648201526084015b60405180910390fd5b6200029162000401565b600260085403620002e55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016200027e565b60026008556000620002f66200045f565b9050614e20826200033f5760405162461bcd60e51b815260206004820152601260248201527143616e6e6f74206d696e742030205269707360701b60448201526064016200027e565b806200034c84846200095a565b1115620003a85760405162461bcd60e51b815260206004820152602360248201527f546865726520617265206e6f7420656e6f7567682073747269707320746f207260448201526269702160e81b60648201526084016200027e565b60005b83811015620003f657620003c8336010546200047060201b60201c565b600160106000828254620003dd91906200095a565b90915550620003ee90508162000976565b9050620003ab565b505060016008555050565b6007546001600160a01b031633146200045d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200027e565b565b60006200046b62000496565b905090565b62000492828260405180602001604052806000815250620004a960201b60201c565b5050565b600060016010546200046b919062000992565b620004b5838362000521565b620004c4600084848462000669565b6200051c5760405162461bcd60e51b815260206004820152603260248201526000805160206200335283398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016200027e565b505050565b6001600160a01b038216620005795760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016200027e565b6000818152600260205260409020546001600160a01b031615620005e05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016200027e565b6001600160a01b03821660009081526003602052604081208054600192906200060b9084906200095a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006200068a846001600160a01b0316620007c560201b620015561760201c565b15620007b957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290620006c4903390899088908890600401620009a8565b6020604051808303816000875af192505050801562000702575060408051601f3d908101601f19168201909252620006ff9181019062000a1b565b60015b6200079e573d80801562000733576040519150601f19603f3d011682016040523d82523d6000602084013e62000738565b606091505b508051600003620007965760405162461bcd60e51b815260206004820152603260248201526000805160206200335283398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016200027e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050620007bd565b5060015b949350505050565b6001600160a01b03163b151590565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620007ff57607f821691505b6020821081036200082057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200051c57600081815260208120601f850160051c810160208610156200084f5750805b601f850160051c820191505b8181101562000870578281556001016200085b565b505050505050565b81516001600160401b03811115620008945762000894620007d4565b620008ac81620008a58454620007ea565b8462000826565b602080601f831160018114620008e45760008415620008cb5750858301515b600019600386901b1c1916600185901b17855562000870565b600085815260208120601f198616915b828110156200091557888601518255948401946001909101908401620008f4565b5085821015620009345787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111562000970576200097062000944565b92915050565b6000600182016200098b576200098b62000944565b5060010190565b8181038181111562000970576200097062000944565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620009f75785810182015185820160a001528101620009d9565b5050600060a0828501015260a0601f19601f83011684010191505095945050505050565b60006020828403121562000a2e57600080fd5b81516001600160e01b03198116811462000a4757600080fd5b9392505050565b6128f48062000a5e6000396000f3fe60806040526004361061023b5760003560e01c806370a082311161012e578063a035b1fe116100ab578063d814a41b1161006f578063d814a41b14610691578063e9477981146106c1578063e985e9c5146106f1578063f2fde38b1461073a578063f8004d311461075a57600080fd5b8063a035b1fe14610606578063a22cb4651461061c578063b88d4fde1461063c578063c87b56dd1461065c578063cfc86f7b1461067c57600080fd5b80638da5cb5b116100f25780638da5cb5b14610558578063909b92521461057657806390e63d61146105b157806391b7f5ed146105d157806395d89b41146105f157600080fd5b806370a08231146104da578063715018a6146104fa578063769da9431461050f57806377ad99f014610525578063831e84611461053857600080fd5b806332cb6b0c116101bc57806355f804b31161018057806355f804b314610421578063591ba4f7146104415780636352211e14610487578063638bde0e146104a757806370707d51146104c757600080fd5b806332cb6b0c146103ad5780633ccfd60b146103c357806342842e0e146103cb57806342966c68146103eb578063530d95c01461040b57600080fd5b80631581b600116102035780631581b60014610311578063162094c41461033757806318160ddd146103575780631b2ef1ca1461037a57806323b872dd1461038d57600080fd5b806301ffc9a71461024057806306fdde0314610275578063081812fc14610297578063095ea7b3146102cf5780630b78a214146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b366004611f7d565b61077a565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a6107cc565b60405161026c9190611fea565b3480156102a357600080fd5b506102b76102b2366004611ffd565b61085e565b6040516001600160a01b03909116815260200161026c565b3480156102db57600080fd5b506102ef6102ea366004612032565b610885565b005b3480156102fd57600080fd5b506102ef61030c366004612108565b61099f565b34801561031d57600080fd5b506014546102b7906201000090046001600160a01b031681565b34801561034357600080fd5b506102ef61035236600461213d565b6109b7565b34801561036357600080fd5b5061036c610a16565b60405190815260200161026c565b6102ef610388366004612184565b610a25565b34801561039957600080fd5b506102ef6103a83660046121a6565b610c5b565b3480156103b957600080fd5b5061036c614e2081565b6102ef610c8c565b3480156103d757600080fd5b506102ef6103e63660046121a6565b610cec565b3480156103f757600080fd5b506102ef610406366004611ffd565b610d07565b34801561041757600080fd5b5061036c600d5481565b34801561042d57600080fd5b506102ef61043c366004612108565b610d18565b34801561044d57600080fd5b5061026061045c366004612032565b6001600160a01b03919091166000908152600960209081526040808320938352929052205460ff1690565b34801561049357600080fd5b506102b76104a2366004611ffd565b610d2c565b3480156104b357600080fd5b506102ef6104c2366004612108565b610d8c565b6102ef6104d5366004611ffd565b610da0565b3480156104e657600080fd5b5061036c6104f53660046121e2565b610f1f565b34801561050657600080fd5b506102ef610fa5565b34801561051b57600080fd5b5061036c600e5481565b6102ef610533366004611ffd565b610fb9565b34801561054457600080fd5b506102ef6105533660046121fd565b611016565b34801561056457600080fd5b506007546001600160a01b03166102b7565b34801561058257600080fd5b50610260610591366004612032565b600960209081526000928352604080842090915290825290205460ff1681565b3480156105bd57600080fd5b506102ef6105cc366004612232565b6112a0565b3480156105dd57600080fd5b506102ef6105ec366004611ffd565b6112d5565b3480156105fd57600080fd5b5061028a6112e2565b34801561061257600080fd5b5061036c600c5481565b34801561062857600080fd5b506102ef61063736600461224d565b6112f1565b34801561064857600080fd5b506102ef610657366004612280565b6112fc565b34801561066857600080fd5b5061028a610677366004611ffd565b611334565b34801561068857600080fd5b5061028a611437565b34801561069d57600080fd5b506102606106ac366004611ffd565b600a6020526000908152604090205460ff1681565b3480156106cd57600080fd5b506102606106dc366004611ffd565b6000908152600a602052604090205460ff1690565b3480156106fd57600080fd5b5061026061070c3660046122fc565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561074657600080fd5b506102ef6107553660046121e2565b6114c5565b34801561076657600080fd5b506102ef610775366004612232565b61153b565b60006001600160e01b031982166380ac58cd60e01b14806107ab57506001600160e01b03198216635b5e139f60e01b145b806107c657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546107db90612326565b80601f016020809104026020016040519081016040528092919081815260200182805461080790612326565b80156108545780601f1061082957610100808354040283529160200191610854565b820191906000526020600020905b81548152906001019060200180831161083757829003601f168201915b5050505050905090565b600061086982611565565b506000908152600460205260409020546001600160a01b031690565b600061089082610d2c565b9050806001600160a01b0316836001600160a01b0316036109025760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061091e575061091e813361070c565b6109905760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108f9565b61099a83836115b5565b505050565b6109a7611623565b60116109b382826123ae565b5050565b6109bf611623565b6109c88261167d565b610a0c5760405162461bcd60e51b8152602060048201526015602482015274546f6b656e20646f6573206e6f742065786973742160581b60448201526064016108f9565b6109b3828261169a565b6000610a2061171e565b905090565b323314610a445760405162461bcd60e51b81526004016108f99061246e565b600260085403610a965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108f9565b600260085560145460ff161515600114610ae85760405162461bcd60e51b8152602060048201526013602482015272135a5b9d081a5cc81b9bdd08195b98589b1959606a1b60448201526064016108f9565b614e2082610af4610a16565b610afe91906124cb565b1115610b415760405162461bcd60e51b815260206004820152601260248201527115d9481a185d99481b5a5b9d1959081bdd5d60721b60448201526064016108f9565b81600c54610b4f91906124de565b811482600c54610b5f91906124de565b8211610b92576040518060400160405280600f81526020016e0dcdee840e6cadce840cadcdeeaced608b1b815250610bb9565b6040518060400160405280600d81526020016c0e6cadce840e8dede40daeac6d609b1b8152505b610bd2610bcd85660aa87bee5380006124de565b61172f565b604051602001610be39291906124fd565b60405160208183030381529060405290610c105760405162461bcd60e51b81526004016108f99190611fea565b5060005b82811015610c5157610c2833601054611838565b600160106000828254610c3b91906124cb565b90915550610c4a90508161255e565b9050610c14565b5050600160085550565b610c653382611852565b610c815760405162461bcd60e51b81526004016108f990612577565b61099a8383836118d0565b610c94611623565b604051600090339047908381818185875af1925050503d8060008114610cd6576040519150601f19603f3d011682016040523d82523d6000602084013e610cdb565b606091505b5050905080610ce957600080fd5b50565b61099a838383604051806020016040528060008152506112fc565b610d0f611623565b610ce981611a6c565b610d20611623565b60136109b382826123ae565b6000818152600260205260408120546001600160a01b0316806107c65760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f9565b610d94611623565b60126109b382826123ae565b323314610dbf5760405162461bcd60e51b81526004016108f99061246e565b610dc7611623565b600260085403610e195760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108f9565b60026008556000610e28610a16565b9050614e2082610e6f5760405162461bcd60e51b815260206004820152601260248201527143616e6e6f74206d696e742030205269707360701b60448201526064016108f9565b80610e7a84846124cb565b1115610ed45760405162461bcd60e51b815260206004820152602360248201527f546865726520617265206e6f7420656e6f7567682073747269707320746f207260448201526269702160e81b60648201526084016108f9565b60005b83811015610f1457610eeb33601054611838565b600160106000828254610efe91906124cb565b90915550610f0d90508161255e565b9050610ed7565b505060016008555050565b60006001600160a01b038216610f895760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016108f9565b506001600160a01b031660009081526003602052604090205490565b610fad611623565b610fb76000611a75565b565b610fc1611623565b604051600090339083908381818185875af1925050503d8060008114611003576040519150601f19603f3d011682016040523d82523d6000602084013e611008565b606091505b50509050806109b357600080fd5b601454610100900460ff166110795760405162461bcd60e51b8152602060048201526024808201527f52697070696e6720796f7572204e465473206973206e6f7420656e61626c6564604482015263081e595d60e21b60648201526084016108f9565b6110828361167d565b6110de5760405162461bcd60e51b815260206004820152602760248201527f546869732052495020546f6b656e20686173206e6f74206265656e206d696e746044820152666564207965742160c81b60648201526084016108f9565b6001600160a01b038216600090815260096020908152604080832084845290915290205460ff161561115c5760405162461bcd60e51b815260206004820152602160248201527f54686973206e66742068617320616c7265616479206265656e207269707065646044820152602160f81b60648201526084016108f9565b3361116684610d2c565b6001600160a01b0316146111b55760405162461bcd60e51b81526020600482015260166024820152754e6f7420796f757220737472697020746f207269702160501b60448201526064016108f9565b6000838152600a602052604090205460ff16156112205760405162461bcd60e51b8152602060048201526024808201527f546869732052495020546f6b656e2068617320616c72656164206265656e20756044820152637365642160e01b60648201526084016108f9565b6001600160a01b038216600081815260096020908152604080832085845282528083208054600160ff199182168117909255888552600a90935281842080549093168117909255600d80549092019091555183929186917fa33cbdb43dc5fce07cf53b9157ad989d7377eb9787aa13d7914cfa815cbc29bd9190a4505050565b6112a8611623565b6014805461ff00191661010083151590810291909117909155600103610ce95760136109b36011826125c5565b6112dd611623565b600c55565b6060600180546107db90612326565b6109b3338383611ac7565b6113063383611852565b6113225760405162461bcd60e51b81526004016108f990612577565b61132e84848484611b95565b50505050565b606061133f8261167d565b6113955760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656044820152603760f91b60648201526084016108f9565b600061139f611bc8565b60145490915060ff6101009091041615156001146113dd5760126040516020016113c99190612713565b604051602081830303815290604052611430565b6000838152600a602052604090205460ff166114055760126040516020016113c99190612741565b8061140f8461172f565b60405160200161142092919061276c565b6040516020818303038152906040525b9392505050565b6013805461144490612326565b80601f016020809104026020016040519081016040528092919081815260200182805461147090612326565b80156114bd5780601f10611492576101008083540402835291602001916114bd565b820191906000526020600020905b8154815290600101906020018083116114a057829003601f168201915b505050505081565b6114cd611623565b6001600160a01b0381166115325760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f9565b610ce981611a75565b611543611623565b6014805460ff1916911515919091179055565b6001600160a01b03163b151590565b61156e8161167d565b610ce95760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f9565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115ea82610d2c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6007546001600160a01b03163314610fb75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108f9565b6000908152600260205260409020546001600160a01b0316151590565b6116a38261167d565b6117065760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016108f9565b600082815260066020526040902061099a82826123ae565b60006001601054610a2091906127ab565b6060816000036117565750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611780578061176a8161255e565b91506117799050600a836127d4565b915061175a565b60008167ffffffffffffffff81111561179b5761179b61205c565b6040519080825280601f01601f1916602001820160405280156117c5576020820181803683370190505b5090505b8415611830576117da6001836127ab565b91506117e7600a866127e8565b6117f29060306124cb565b60f81b818381518110611807576118076127fc565b60200101906001600160f81b031916908160001a905350611829600a866127d4565b94506117c9565b949350505050565b6109b3828260405180602001604052806000815250611bd7565b60008061185e83610d2c565b9050806001600160a01b0316846001600160a01b031614806118a557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806118305750836001600160a01b03166118be8461085e565b6001600160a01b031614949350505050565b826001600160a01b03166118e382610d2c565b6001600160a01b0316146119475760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108f9565b6001600160a01b0382166119a95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108f9565b6119b46000826115b5565b6001600160a01b03831660009081526003602052604081208054600192906119dd9084906127ab565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a0b9084906124cb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610ce981611c0a565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611b285760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108f9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ba08484846118d0565b611bac84848484611c4a565b61132e5760405162461bcd60e51b81526004016108f990612812565b6060601380546107db90612326565b611be18383611d4b565b611bee6000848484611c4a565b61099a5760405162461bcd60e51b81526004016108f990612812565b611c1381611e7e565b60008181526006602052604090208054611c2c90612326565b159050610ce9576000818152600660205260408120610ce991611f19565b60006001600160a01b0384163b15611d4057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611c8e903390899088908890600401612864565b6020604051808303816000875af1925050508015611cc9575060408051601f3d908101601f19168201909252611cc6918101906128a1565b60015b611d26573d808015611cf7576040519150601f19603f3d011682016040523d82523d6000602084013e611cfc565b606091505b508051600003611d1e5760405162461bcd60e51b81526004016108f990612812565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611830565b506001949350505050565b6001600160a01b038216611da15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108f9565b611daa8161167d565b15611df75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108f9565b6001600160a01b0382166000908152600360205260408120805460019290611e209084906124cb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611e8982610d2c565b9050611e966000836115b5565b6001600160a01b0381166000908152600360205260408120805460019290611ebf9084906127ab565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b508054611f2590612326565b6000825580601f10611f35575050565b601f016020900490600052602060002090810190610ce991905b80821115611f635760008155600101611f4f565b5090565b6001600160e01b031981168114610ce957600080fd5b600060208284031215611f8f57600080fd5b813561143081611f67565b60005b83811015611fb5578181015183820152602001611f9d565b50506000910152565b60008151808452611fd6816020860160208601611f9a565b601f01601f19169290920160200192915050565b6020815260006114306020830184611fbe565b60006020828403121561200f57600080fd5b5035919050565b80356001600160a01b038116811461202d57600080fd5b919050565b6000806040838503121561204557600080fd5b61204e83612016565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561208d5761208d61205c565b604051601f8501601f19908116603f011681019082821181831017156120b5576120b561205c565b816040528093508581528686860111156120ce57600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126120f957600080fd5b61143083833560208501612072565b60006020828403121561211a57600080fd5b813567ffffffffffffffff81111561213157600080fd5b611830848285016120e8565b6000806040838503121561215057600080fd5b82359150602083013567ffffffffffffffff81111561216e57600080fd5b61217a858286016120e8565b9150509250929050565b6000806040838503121561219757600080fd5b50508035926020909101359150565b6000806000606084860312156121bb57600080fd5b6121c484612016565b92506121d260208501612016565b9150604084013590509250925092565b6000602082840312156121f457600080fd5b61143082612016565b60008060006060848603121561221257600080fd5b833592506121d260208501612016565b8035801515811461202d57600080fd5b60006020828403121561224457600080fd5b61143082612222565b6000806040838503121561226057600080fd5b61226983612016565b915061227760208401612222565b90509250929050565b6000806000806080858703121561229657600080fd5b61229f85612016565b93506122ad60208601612016565b925060408501359150606085013567ffffffffffffffff8111156122d057600080fd5b8501601f810187136122e157600080fd5b6122f087823560208401612072565b91505092959194509250565b6000806040838503121561230f57600080fd5b61231883612016565b915061227760208401612016565b600181811c9082168061233a57607f821691505b60208210810361235a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561099a57600081815260208120601f850160051c810160208610156123875750805b601f850160051c820191505b818110156123a657828155600101612393565b505050505050565b815167ffffffffffffffff8111156123c8576123c861205c565b6123dc816123d68454612326565b84612360565b602080601f83116001811461241157600084156123f95750858301515b600019600386901b1c1916600185901b1785556123a6565b600085815260208120601f198616915b8281101561244057888601518255948401946001909101908401612421565b508582101561245e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526027908201527f5269706974203a3a2043616e6e6f742062652063616c6c656420627920636f6e6040820152667472616374732160c81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808201808211156107c6576107c66124b5565b60008160001904831182151516156124f8576124f86124b5565b500290565b6802cb7ba903430bb32960bd1b815260008351612521816009850160208801611f9a565b700103237b9b4109022bc3832b1ba32b21d1607d1b600991840191820152835161255281601a840160208801611f9a565b01601a01949350505050565b600060018201612570576125706124b5565b5060010190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b8181036125d0575050565b6125da8254612326565b67ffffffffffffffff8111156125f2576125f261205c565b612600816123d68454612326565b6000601f821160018114612634576000831561261c5750848201545b600019600385901b1c1916600184901b178455612699565b600085815260209020601f19841690600086815260209020845b8381101561266e578286015482556001958601959091019060200161264e565b508583101561268c5781850154600019600388901b60f8161c191681555b50505060018360011b0184555b5050505050565b600081546126ad81612326565b600182811680156126c557600181146126da57612709565b60ff1984168752821515830287019450612709565b8560005260208060002060005b858110156127005781548a8201529084019082016126e7565b50505082870194505b5050505092915050565b600061271f82846126a0565b713bb0b4ba34b733b337b93934b8173539b7b760711b81526012019392505050565b600061274d82846126a0565b6e3932b0b23cba37b934b8173539b7b760891b8152600f019392505050565b6000835161277e818460208801611f9a565b835190830190612792818360208801611f9a565b64173539b7b760d91b9101908152600501949350505050565b818103818111156107c6576107c66124b5565b634e487b7160e01b600052601260045260246000fd5b6000826127e3576127e36127be565b500490565b6000826127f7576127f76127be565b500690565b634e487b7160e01b600052603260045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061289790830184611fbe565b9695505050505050565b6000602082840312156128b357600080fd5b815161143081611f6756fea2646970667358221220b3309e87d76bf2dd26be552fdb7871758df7abe035440895875ea70bb97c0f8464736f6c634300081000334552433732313a207472616e7366657220746f206e6f6e20455243373231526568747470733a2f2f6c6f726463616c6465722e636f6d2f72697069742f746f6b656e2f

Deployed Bytecode

0x60806040526004361061023b5760003560e01c806370a082311161012e578063a035b1fe116100ab578063d814a41b1161006f578063d814a41b14610691578063e9477981146106c1578063e985e9c5146106f1578063f2fde38b1461073a578063f8004d311461075a57600080fd5b8063a035b1fe14610606578063a22cb4651461061c578063b88d4fde1461063c578063c87b56dd1461065c578063cfc86f7b1461067c57600080fd5b80638da5cb5b116100f25780638da5cb5b14610558578063909b92521461057657806390e63d61146105b157806391b7f5ed146105d157806395d89b41146105f157600080fd5b806370a08231146104da578063715018a6146104fa578063769da9431461050f57806377ad99f014610525578063831e84611461053857600080fd5b806332cb6b0c116101bc57806355f804b31161018057806355f804b314610421578063591ba4f7146104415780636352211e14610487578063638bde0e146104a757806370707d51146104c757600080fd5b806332cb6b0c146103ad5780633ccfd60b146103c357806342842e0e146103cb57806342966c68146103eb578063530d95c01461040b57600080fd5b80631581b600116102035780631581b60014610311578063162094c41461033757806318160ddd146103575780631b2ef1ca1461037a57806323b872dd1461038d57600080fd5b806301ffc9a71461024057806306fdde0314610275578063081812fc14610297578063095ea7b3146102cf5780630b78a214146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b366004611f7d565b61077a565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a6107cc565b60405161026c9190611fea565b3480156102a357600080fd5b506102b76102b2366004611ffd565b61085e565b6040516001600160a01b03909116815260200161026c565b3480156102db57600080fd5b506102ef6102ea366004612032565b610885565b005b3480156102fd57600080fd5b506102ef61030c366004612108565b61099f565b34801561031d57600080fd5b506014546102b7906201000090046001600160a01b031681565b34801561034357600080fd5b506102ef61035236600461213d565b6109b7565b34801561036357600080fd5b5061036c610a16565b60405190815260200161026c565b6102ef610388366004612184565b610a25565b34801561039957600080fd5b506102ef6103a83660046121a6565b610c5b565b3480156103b957600080fd5b5061036c614e2081565b6102ef610c8c565b3480156103d757600080fd5b506102ef6103e63660046121a6565b610cec565b3480156103f757600080fd5b506102ef610406366004611ffd565b610d07565b34801561041757600080fd5b5061036c600d5481565b34801561042d57600080fd5b506102ef61043c366004612108565b610d18565b34801561044d57600080fd5b5061026061045c366004612032565b6001600160a01b03919091166000908152600960209081526040808320938352929052205460ff1690565b34801561049357600080fd5b506102b76104a2366004611ffd565b610d2c565b3480156104b357600080fd5b506102ef6104c2366004612108565b610d8c565b6102ef6104d5366004611ffd565b610da0565b3480156104e657600080fd5b5061036c6104f53660046121e2565b610f1f565b34801561050657600080fd5b506102ef610fa5565b34801561051b57600080fd5b5061036c600e5481565b6102ef610533366004611ffd565b610fb9565b34801561054457600080fd5b506102ef6105533660046121fd565b611016565b34801561056457600080fd5b506007546001600160a01b03166102b7565b34801561058257600080fd5b50610260610591366004612032565b600960209081526000928352604080842090915290825290205460ff1681565b3480156105bd57600080fd5b506102ef6105cc366004612232565b6112a0565b3480156105dd57600080fd5b506102ef6105ec366004611ffd565b6112d5565b3480156105fd57600080fd5b5061028a6112e2565b34801561061257600080fd5b5061036c600c5481565b34801561062857600080fd5b506102ef61063736600461224d565b6112f1565b34801561064857600080fd5b506102ef610657366004612280565b6112fc565b34801561066857600080fd5b5061028a610677366004611ffd565b611334565b34801561068857600080fd5b5061028a611437565b34801561069d57600080fd5b506102606106ac366004611ffd565b600a6020526000908152604090205460ff1681565b3480156106cd57600080fd5b506102606106dc366004611ffd565b6000908152600a602052604090205460ff1690565b3480156106fd57600080fd5b5061026061070c3660046122fc565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561074657600080fd5b506102ef6107553660046121e2565b6114c5565b34801561076657600080fd5b506102ef610775366004612232565b61153b565b60006001600160e01b031982166380ac58cd60e01b14806107ab57506001600160e01b03198216635b5e139f60e01b145b806107c657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546107db90612326565b80601f016020809104026020016040519081016040528092919081815260200182805461080790612326565b80156108545780601f1061082957610100808354040283529160200191610854565b820191906000526020600020905b81548152906001019060200180831161083757829003601f168201915b5050505050905090565b600061086982611565565b506000908152600460205260409020546001600160a01b031690565b600061089082610d2c565b9050806001600160a01b0316836001600160a01b0316036109025760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061091e575061091e813361070c565b6109905760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108f9565b61099a83836115b5565b505050565b6109a7611623565b60116109b382826123ae565b5050565b6109bf611623565b6109c88261167d565b610a0c5760405162461bcd60e51b8152602060048201526015602482015274546f6b656e20646f6573206e6f742065786973742160581b60448201526064016108f9565b6109b3828261169a565b6000610a2061171e565b905090565b323314610a445760405162461bcd60e51b81526004016108f99061246e565b600260085403610a965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108f9565b600260085560145460ff161515600114610ae85760405162461bcd60e51b8152602060048201526013602482015272135a5b9d081a5cc81b9bdd08195b98589b1959606a1b60448201526064016108f9565b614e2082610af4610a16565b610afe91906124cb565b1115610b415760405162461bcd60e51b815260206004820152601260248201527115d9481a185d99481b5a5b9d1959081bdd5d60721b60448201526064016108f9565b81600c54610b4f91906124de565b811482600c54610b5f91906124de565b8211610b92576040518060400160405280600f81526020016e0dcdee840e6cadce840cadcdeeaced608b1b815250610bb9565b6040518060400160405280600d81526020016c0e6cadce840e8dede40daeac6d609b1b8152505b610bd2610bcd85660aa87bee5380006124de565b61172f565b604051602001610be39291906124fd565b60405160208183030381529060405290610c105760405162461bcd60e51b81526004016108f99190611fea565b5060005b82811015610c5157610c2833601054611838565b600160106000828254610c3b91906124cb565b90915550610c4a90508161255e565b9050610c14565b5050600160085550565b610c653382611852565b610c815760405162461bcd60e51b81526004016108f990612577565b61099a8383836118d0565b610c94611623565b604051600090339047908381818185875af1925050503d8060008114610cd6576040519150601f19603f3d011682016040523d82523d6000602084013e610cdb565b606091505b5050905080610ce957600080fd5b50565b61099a838383604051806020016040528060008152506112fc565b610d0f611623565b610ce981611a6c565b610d20611623565b60136109b382826123ae565b6000818152600260205260408120546001600160a01b0316806107c65760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f9565b610d94611623565b60126109b382826123ae565b323314610dbf5760405162461bcd60e51b81526004016108f99061246e565b610dc7611623565b600260085403610e195760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108f9565b60026008556000610e28610a16565b9050614e2082610e6f5760405162461bcd60e51b815260206004820152601260248201527143616e6e6f74206d696e742030205269707360701b60448201526064016108f9565b80610e7a84846124cb565b1115610ed45760405162461bcd60e51b815260206004820152602360248201527f546865726520617265206e6f7420656e6f7567682073747269707320746f207260448201526269702160e81b60648201526084016108f9565b60005b83811015610f1457610eeb33601054611838565b600160106000828254610efe91906124cb565b90915550610f0d90508161255e565b9050610ed7565b505060016008555050565b60006001600160a01b038216610f895760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016108f9565b506001600160a01b031660009081526003602052604090205490565b610fad611623565b610fb76000611a75565b565b610fc1611623565b604051600090339083908381818185875af1925050503d8060008114611003576040519150601f19603f3d011682016040523d82523d6000602084013e611008565b606091505b50509050806109b357600080fd5b601454610100900460ff166110795760405162461bcd60e51b8152602060048201526024808201527f52697070696e6720796f7572204e465473206973206e6f7420656e61626c6564604482015263081e595d60e21b60648201526084016108f9565b6110828361167d565b6110de5760405162461bcd60e51b815260206004820152602760248201527f546869732052495020546f6b656e20686173206e6f74206265656e206d696e746044820152666564207965742160c81b60648201526084016108f9565b6001600160a01b038216600090815260096020908152604080832084845290915290205460ff161561115c5760405162461bcd60e51b815260206004820152602160248201527f54686973206e66742068617320616c7265616479206265656e207269707065646044820152602160f81b60648201526084016108f9565b3361116684610d2c565b6001600160a01b0316146111b55760405162461bcd60e51b81526020600482015260166024820152754e6f7420796f757220737472697020746f207269702160501b60448201526064016108f9565b6000838152600a602052604090205460ff16156112205760405162461bcd60e51b8152602060048201526024808201527f546869732052495020546f6b656e2068617320616c72656164206265656e20756044820152637365642160e01b60648201526084016108f9565b6001600160a01b038216600081815260096020908152604080832085845282528083208054600160ff199182168117909255888552600a90935281842080549093168117909255600d80549092019091555183929186917fa33cbdb43dc5fce07cf53b9157ad989d7377eb9787aa13d7914cfa815cbc29bd9190a4505050565b6112a8611623565b6014805461ff00191661010083151590810291909117909155600103610ce95760136109b36011826125c5565b6112dd611623565b600c55565b6060600180546107db90612326565b6109b3338383611ac7565b6113063383611852565b6113225760405162461bcd60e51b81526004016108f990612577565b61132e84848484611b95565b50505050565b606061133f8261167d565b6113955760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656044820152603760f91b60648201526084016108f9565b600061139f611bc8565b60145490915060ff6101009091041615156001146113dd5760126040516020016113c99190612713565b604051602081830303815290604052611430565b6000838152600a602052604090205460ff166114055760126040516020016113c99190612741565b8061140f8461172f565b60405160200161142092919061276c565b6040516020818303038152906040525b9392505050565b6013805461144490612326565b80601f016020809104026020016040519081016040528092919081815260200182805461147090612326565b80156114bd5780601f10611492576101008083540402835291602001916114bd565b820191906000526020600020905b8154815290600101906020018083116114a057829003601f168201915b505050505081565b6114cd611623565b6001600160a01b0381166115325760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f9565b610ce981611a75565b611543611623565b6014805460ff1916911515919091179055565b6001600160a01b03163b151590565b61156e8161167d565b610ce95760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108f9565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115ea82610d2c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6007546001600160a01b03163314610fb75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108f9565b6000908152600260205260409020546001600160a01b0316151590565b6116a38261167d565b6117065760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016108f9565b600082815260066020526040902061099a82826123ae565b60006001601054610a2091906127ab565b6060816000036117565750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611780578061176a8161255e565b91506117799050600a836127d4565b915061175a565b60008167ffffffffffffffff81111561179b5761179b61205c565b6040519080825280601f01601f1916602001820160405280156117c5576020820181803683370190505b5090505b8415611830576117da6001836127ab565b91506117e7600a866127e8565b6117f29060306124cb565b60f81b818381518110611807576118076127fc565b60200101906001600160f81b031916908160001a905350611829600a866127d4565b94506117c9565b949350505050565b6109b3828260405180602001604052806000815250611bd7565b60008061185e83610d2c565b9050806001600160a01b0316846001600160a01b031614806118a557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806118305750836001600160a01b03166118be8461085e565b6001600160a01b031614949350505050565b826001600160a01b03166118e382610d2c565b6001600160a01b0316146119475760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108f9565b6001600160a01b0382166119a95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108f9565b6119b46000826115b5565b6001600160a01b03831660009081526003602052604081208054600192906119dd9084906127ab565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a0b9084906124cb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610ce981611c0a565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611b285760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108f9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ba08484846118d0565b611bac84848484611c4a565b61132e5760405162461bcd60e51b81526004016108f990612812565b6060601380546107db90612326565b611be18383611d4b565b611bee6000848484611c4a565b61099a5760405162461bcd60e51b81526004016108f990612812565b611c1381611e7e565b60008181526006602052604090208054611c2c90612326565b159050610ce9576000818152600660205260408120610ce991611f19565b60006001600160a01b0384163b15611d4057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611c8e903390899088908890600401612864565b6020604051808303816000875af1925050508015611cc9575060408051601f3d908101601f19168201909252611cc6918101906128a1565b60015b611d26573d808015611cf7576040519150601f19603f3d011682016040523d82523d6000602084013e611cfc565b606091505b508051600003611d1e5760405162461bcd60e51b81526004016108f990612812565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611830565b506001949350505050565b6001600160a01b038216611da15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108f9565b611daa8161167d565b15611df75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108f9565b6001600160a01b0382166000908152600360205260408120805460019290611e209084906124cb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611e8982610d2c565b9050611e966000836115b5565b6001600160a01b0381166000908152600360205260408120805460019290611ebf9084906127ab565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b508054611f2590612326565b6000825580601f10611f35575050565b601f016020900490600052602060002090810190610ce991905b80821115611f635760008155600101611f4f565b5090565b6001600160e01b031981168114610ce957600080fd5b600060208284031215611f8f57600080fd5b813561143081611f67565b60005b83811015611fb5578181015183820152602001611f9d565b50506000910152565b60008151808452611fd6816020860160208601611f9a565b601f01601f19169290920160200192915050565b6020815260006114306020830184611fbe565b60006020828403121561200f57600080fd5b5035919050565b80356001600160a01b038116811461202d57600080fd5b919050565b6000806040838503121561204557600080fd5b61204e83612016565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561208d5761208d61205c565b604051601f8501601f19908116603f011681019082821181831017156120b5576120b561205c565b816040528093508581528686860111156120ce57600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126120f957600080fd5b61143083833560208501612072565b60006020828403121561211a57600080fd5b813567ffffffffffffffff81111561213157600080fd5b611830848285016120e8565b6000806040838503121561215057600080fd5b82359150602083013567ffffffffffffffff81111561216e57600080fd5b61217a858286016120e8565b9150509250929050565b6000806040838503121561219757600080fd5b50508035926020909101359150565b6000806000606084860312156121bb57600080fd5b6121c484612016565b92506121d260208501612016565b9150604084013590509250925092565b6000602082840312156121f457600080fd5b61143082612016565b60008060006060848603121561221257600080fd5b833592506121d260208501612016565b8035801515811461202d57600080fd5b60006020828403121561224457600080fd5b61143082612222565b6000806040838503121561226057600080fd5b61226983612016565b915061227760208401612222565b90509250929050565b6000806000806080858703121561229657600080fd5b61229f85612016565b93506122ad60208601612016565b925060408501359150606085013567ffffffffffffffff8111156122d057600080fd5b8501601f810187136122e157600080fd5b6122f087823560208401612072565b91505092959194509250565b6000806040838503121561230f57600080fd5b61231883612016565b915061227760208401612016565b600181811c9082168061233a57607f821691505b60208210810361235a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561099a57600081815260208120601f850160051c810160208610156123875750805b601f850160051c820191505b818110156123a657828155600101612393565b505050505050565b815167ffffffffffffffff8111156123c8576123c861205c565b6123dc816123d68454612326565b84612360565b602080601f83116001811461241157600084156123f95750858301515b600019600386901b1c1916600185901b1785556123a6565b600085815260208120601f198616915b8281101561244057888601518255948401946001909101908401612421565b508582101561245e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526027908201527f5269706974203a3a2043616e6e6f742062652063616c6c656420627920636f6e6040820152667472616374732160c81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808201808211156107c6576107c66124b5565b60008160001904831182151516156124f8576124f86124b5565b500290565b6802cb7ba903430bb32960bd1b815260008351612521816009850160208801611f9a565b700103237b9b4109022bc3832b1ba32b21d1607d1b600991840191820152835161255281601a840160208801611f9a565b01601a01949350505050565b600060018201612570576125706124b5565b5060010190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b8181036125d0575050565b6125da8254612326565b67ffffffffffffffff8111156125f2576125f261205c565b612600816123d68454612326565b6000601f821160018114612634576000831561261c5750848201545b600019600385901b1c1916600184901b178455612699565b600085815260209020601f19841690600086815260209020845b8381101561266e578286015482556001958601959091019060200161264e565b508583101561268c5781850154600019600388901b60f8161c191681555b50505060018360011b0184555b5050505050565b600081546126ad81612326565b600182811680156126c557600181146126da57612709565b60ff1984168752821515830287019450612709565b8560005260208060002060005b858110156127005781548a8201529084019082016126e7565b50505082870194505b5050505092915050565b600061271f82846126a0565b713bb0b4ba34b733b337b93934b8173539b7b760711b81526012019392505050565b600061274d82846126a0565b6e3932b0b23cba37b934b8173539b7b760891b8152600f019392505050565b6000835161277e818460208801611f9a565b835190830190612792818360208801611f9a565b64173539b7b760d91b9101908152600501949350505050565b818103818111156107c6576107c66124b5565b634e487b7160e01b600052601260045260246000fd5b6000826127e3576127e36127be565b500490565b6000826127f7576127f76127be565b500690565b634e487b7160e01b600052603260045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061289790830184611fbe565b9695505050505050565b6000602082840312156128b357600080fd5b815161143081611f6756fea2646970667358221220b3309e87d76bf2dd26be552fdb7871758df7abe035440895875ea70bb97c0f8464736f6c63430008100033

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.