ETH Price: $3,338.78 (-2.54%)

Token

Asprey Bugatti LVN Airdrop (AB:C3)
 

Overview

Max Total Supply

261 AB:C3

Holders

175

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 AB:C3
0x42E250824bDf98F3E450784b0C1CDC3ac2f157E2
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:
Airdrop

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : Airdrop.sol
//SPDX-License-Identifier: Unlicense
pragma solidity 0.8.4;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract Airdrop is Ownable, ReentrancyGuard, ERC721Enumerable {
    string public baseURI;
    using Counters for Counters.Counter;
    using Strings for uint256;
    Counters.Counter private _tokenIdCounter;
    bool public isSalePaused = false;
    uint256 public redeemCost;
    uint256 public redeemTime;
    address public depositAddress;
    uint256 public constant MAX_SUPPLY = 261;

    mapping(uint256 => address) public redeemed;

    /**
     * @dev Emitted when `contract owner` updates the base URI.
     */
    event BaseURI(string uri);

    /**
     * @dev Emitted when `contract owner` updates the redeem cost/token .
     */
    event RedeeemCost(uint256 indexed redeemAmount);

    /**
     * @dev Emitted when `contract owner` updates the ETH deposit Address .
     */
    event DepositAddress(address indexed depositAddress);

    /**
     * @dev Emitted when `tokenOwner` redeemed the particular token with given tokenId.
     */
    event TokenRedeem(uint256 indexed tokenId, address indexed tokenHolder, address indexed depositAddresss);

    /**
     * @dev Emitted when `tokenOwner` updates the redeemTime (Unix timestamps in seconds).
     */
    event TokenRedeeemTime(uint256 indexed tokenRedeemTime);

    constructor(
        string memory _uri,
        uint256 _weiAmount,
        uint256 _redeemTime
    ) ERC721("Asprey Bugatti LVN Airdrop", "AB:C3") {
        baseURI = _uri;
        depositAddress = owner();
        redeemCost = _weiAmount;
        redeemTime = _redeemTime;
    }

    function adminMint() external onlyOwner {
        _tokenIdCounter.increment();
        uint256 tokenId = _tokenIdCounter.current();
        require(tokenId <= MAX_SUPPLY, "Total supply reached");
        _safeMint(msg.sender, tokenId);
    }

    // Perform minting to mltiple address as per provided sequence.
    function multiMint(address[] calldata _addressList) external onlyOwner nonReentrant {
        require(_addressList.length > 0, "Invalid address-list");
        require((totalSupply() + _addressList.length) <= MAX_SUPPLY, "Max Supply Reached");
        for (uint256 i = 0; i < _addressList.length; i = uncheckInc(i)) {
            if (_addressList[i] != address(0)) {
                _tokenIdCounter.increment();
                uint256 tokenId = _tokenIdCounter.current();
                _safeMint(_addressList[i], tokenId);
            }
        }
    }

    function redeemToken(uint256 _tokenId) external payable nonReentrant {
        require(!isSalePaused, "Sale paused");
        require(redeemTime >= block.timestamp, "RedeemTime already passed");
        require(redeemed[_tokenId] == address(0), "Token already redeemed");
        require(ownerOf(_tokenId) == msg.sender, "Non Owner");
        require(msg.value == redeemCost, "Invalid amount");
        redeemed[_tokenId] = msg.sender;
        emit TokenRedeem(_tokenId, msg.sender, depositAddress);
        (bool sent, ) = payable(depositAddress).call{ value: msg.value }("");
        require(sent, "Failed to send Ether");
    }

    function updateBaseURI(string memory _uri) external onlyOwner {
        baseURI = _uri;
        emit BaseURI(_uri);
    }

    function updateDepositAddress(address _depositAddress) external onlyOwner {
        require(_depositAddress != address(0) && _depositAddress != depositAddress, "Invalid Deposit Address");
        depositAddress = _depositAddress;
        emit DepositAddress(depositAddress);
    }

    function updateredeemCost(uint256 _updatedRedeemCost) external onlyOwner {
        require(_updatedRedeemCost != 0 && _updatedRedeemCost != redeemCost, "Invalid Redeem Cost");
        redeemCost = _updatedRedeemCost;
        emit RedeeemCost(_updatedRedeemCost);
    }

    function updateRedeemTime(uint256 _redeemTime) external onlyOwner {
        require(_redeemTime > block.timestamp, "Invalid Redeem Time ");
        redeemTime = _redeemTime;
        emit TokenRedeeemTime(redeemTime);
    }

    function setSaleState(bool _saleStatus) external onlyOwner {
        require(_saleStatus != isSalePaused, "Invalid input");
        isSalePaused = _saleStatus;
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

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

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

    function getUnredeemedTokens(address _user) external view returns (uint256[] memory) {
        uint256 numTokens = balanceOf(_user);
        uint256[] memory tokenIds = new uint256[](numTokens);
        for (uint256 i = 0; i < numTokens; i++) {
            uint256 tok = tokenOfOwnerByIndex(_user, i);
            if (redeemed[tok] == address(0)) {
                tokenIds[i] = tok;
            } else {
                tokenIds[i] = 0;
            }
        }
        return (tokenIds);
    }

    function supportsInterface(bytes4 interfaceId) public view override(ERC721Enumerable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    function uncheckInc(uint256 x) private pure returns (uint256) {
        unchecked {
            return x + 1;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 15 : 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 4 of 15 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 5 of 15 : 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 6 of 15 : 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 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"uint256","name":"_weiAmount","type":"uint256"},{"internalType":"uint256","name":"_redeemTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"BaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"depositAddress","type":"address"}],"name":"DepositAddress","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":"redeemAmount","type":"uint256"}],"name":"RedeeemCost","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenRedeemTime","type":"uint256"}],"name":"TokenRedeeemTime","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"},{"indexed":true,"internalType":"address","name":"depositAddresss","type":"address"}],"name":"TokenRedeem","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":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUnredeemedTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSalePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addressList","type":"address[]"}],"name":"multiMint","outputs":[],"stateMutability":"nonpayable","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":"redeemCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"redeemToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"redeemed","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_saleStatus","type":"bool"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_depositAddress","type":"address"}],"name":"updateDepositAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_redeemTime","type":"uint256"}],"name":"updateRedeemTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_updatedRedeemCost","type":"uint256"}],"name":"updateredeemCost","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600e805460ff191690553480156200001b57600080fd5b5060405162002bb238038062002bb28339810160408190526200003e9162000220565b6040518060400160405280601a81526020017f4173707265792042756761747469204c564e2041697264726f700000000000008152506040518060400160405280600581526020016441423a433360d81b815250620000ac620000a66200012660201b60201c565b6200012a565b600180558151620000c59060029060208501906200017a565b508051620000db9060039060208401906200017a565b50508351620000f39150600c9060208601906200017a565b50600054601180546001600160a01b0319166001600160a01b03909216919091179055600f91909155601055506200035d565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805462000188906200030a565b90600052602060002090601f016020900481019282620001ac5760008555620001f7565b82601f10620001c757805160ff1916838001178555620001f7565b82800160010185558215620001f7579182015b82811115620001f7578251825591602001919060010190620001da565b506200020592915062000209565b5090565b5b808211156200020557600081556001016200020a565b60008060006060848603121562000235578283fd5b83516001600160401b03808211156200024c578485fd5b818601915086601f83011262000260578485fd5b81518181111562000275576200027562000347565b604051601f8201601f19908116603f01168101908382118183101715620002a057620002a062000347565b81604052828152602093508984848701011115620002bc578788fd5b8791505b82821015620002df5784820184015181830185015290830190620002c0565b82821115620002f057878484830101525b928801516040909801519299979850919695505050505050565b600181811c908216806200031f57607f821691505b602082108114156200034157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612845806200036d6000396000f3fe6080604052600436106102035760003560e01c80634f6ccce711610118578063931688cb116100a0578063b88d4fde1161006f578063b88d4fde146105c0578063c4e37095146105e0578063c87b56dd14610600578063e985e9c514610620578063f2fde38b1461066957600080fd5b8063931688cb1461054b57806395d89b411461056b578063a22cb46514610580578063a83cd948146105a057600080fd5b8063715018a6116100e7578063715018a6146104a057806371e910ff146104b55780637ed0f1c1146104e2578063895fc788146105185780638da5cb5b1461052d57600080fd5b80634f6ccce71461042b5780636352211e1461044b5780636c0360eb1461046b57806370a082311461048057600080fd5b80631ba853d01161019b5780632b3e6a021161016a5780632b3e6a02146103955780632f745c59146103b557806332cb6b0c146103d557806342842e0e146103eb578063438098d01461040b57600080fd5b80631ba853d01461031f57806323b872dd1461033f5780632584c8891461035f57806328f833b71461037557600080fd5b806306fdde03116101d757806306fdde0314610290578063081812fc146102b2578063095ea7b3146102ea57806318160ddd1461030a57600080fd5b80628ca81614610208578063013054c21461023757806301ffc9a71461024c57806306a41c451461026c575b600080fd5b34801561021457600080fd5b50600e546102229060ff1681565b60405190151581526020015b60405180910390f35b61024a6102453660046124b9565b610689565b005b34801561025857600080fd5b5061022261026736600461243b565b610962565b34801561027857600080fd5b50610282600f5481565b60405190815260200161022e565b34801561029c57600080fd5b506102a5610973565b60405161022e9190612654565b3480156102be57600080fd5b506102d26102cd3660046124b9565b610a05565b6040516001600160a01b03909116815260200161022e565b3480156102f657600080fd5b5061024a610305366004612388565b610a2c565b34801561031657600080fd5b50600a54610282565b34801561032b57600080fd5b5061024a61033a366004612258565b610b42565b34801561034b57600080fd5b5061024a61035a3660046122ab565b610c06565b34801561036b57600080fd5b5061028260105481565b34801561038157600080fd5b506011546102d2906001600160a01b031681565b3480156103a157600080fd5b5061024a6103b03660046124b9565b610c37565b3480156103c157600080fd5b506102826103d0366004612388565b610cc5565b3480156103e157600080fd5b5061028261010581565b3480156103f757600080fd5b5061024a6104063660046122ab565b610d5b565b34801561041757600080fd5b5061024a6104263660046123b1565b610d76565b34801561043757600080fd5b506102826104463660046124b9565b610f30565b34801561045757600080fd5b506102d26104663660046124b9565b610fd1565b34801561047757600080fd5b506102a5611031565b34801561048c57600080fd5b5061028261049b366004612258565b6110bf565b3480156104ac57600080fd5b5061024a611145565b3480156104c157600080fd5b506104d56104d0366004612258565b611159565b60405161022e9190612610565b3480156104ee57600080fd5b506102d26104fd3660046124b9565b6012602052600090815260409020546001600160a01b031681565b34801561052457600080fd5b5061024a61126f565b34801561053957600080fd5b506000546001600160a01b03166102d2565b34801561055757600080fd5b5061024a610566366004612473565b6112e8565b34801561057757600080fd5b506102a561133e565b34801561058c57600080fd5b5061024a61059b36600461235f565b61134d565b3480156105ac57600080fd5b5061024a6105bb3660046124b9565b61135c565b3480156105cc57600080fd5b5061024a6105db3660046122e6565b6113dd565b3480156105ec57600080fd5b5061024a6105fb366004612421565b611415565b34801561060c57600080fd5b506102a561061b3660046124b9565b611479565b34801561062c57600080fd5b5061022261063b366004612279565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561067557600080fd5b5061024a610684366004612258565b611554565b600260015414156106e15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155600e5460ff16156107275760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b60448201526064016106d8565b4260105410156107795760405162461bcd60e51b815260206004820152601960248201527f52656465656d54696d6520616c7265616479207061737365640000000000000060448201526064016106d8565b6000818152601260205260409020546001600160a01b0316156107d75760405162461bcd60e51b8152602060048201526016602482015275151bdad95b88185b1c9958591e481c995919595b595960521b60448201526064016106d8565b336107e182610fd1565b6001600160a01b0316146108235760405162461bcd60e51b81526020600482015260096024820152682737b71027bbb732b960b91b60448201526064016106d8565b600f5434146108655760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016106d8565b60008181526012602052604080822080546001600160a01b0319163390811790915560115491516001600160a01b039290921692909184917f30c52e773687cbeff7a4bdfd16bf68a5fcb6ef90e0d042390ec432a74cf1a07691a46011546040516000916001600160a01b03169034908381818185875af1925050503d806000811461090d576040519150601f19603f3d011682016040523d82523d6000602084013e610912565b606091505b505090508061095a5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064016106d8565b505060018055565b600061096d826115ca565b92915050565b60606002805461098290612776565b80601f01602080910402602001604051908101604052809291908181526020018280546109ae90612776565b80156109fb5780601f106109d0576101008083540402835291602001916109fb565b820191906000526020600020905b8154815290600101906020018083116109de57829003601f168201915b5050505050905090565b6000610a10826115ef565b506000908152600660205260409020546001600160a01b031690565b6000610a3782610fd1565b9050806001600160a01b0316836001600160a01b03161415610aa55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106d8565b336001600160a01b0382161480610ac15750610ac1813361063b565b610b335760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016106d8565b610b3d838361164e565b505050565b610b4a6116bc565b6001600160a01b03811615801590610b7057506011546001600160a01b03828116911614155b610bbc5760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964204465706f736974204164647265737300000000000000000060448201526064016106d8565b601180546001600160a01b0319166001600160a01b0383169081179091556040517f92d627d74e72085caa3e53f640b10ff82ff72cf4165ee39a298a79bcdb4e911490600090a250565b610c103382611716565b610c2c5760405162461bcd60e51b81526004016106d8906126b9565b610b3d838383611795565b610c3f6116bc565b8015801590610c505750600f548114155b610c925760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a590814995919595b4810dbdcdd606a1b60448201526064016106d8565b600f81905560405181907f30e11e2b8bbbcd9fc0979dee4974c4570f552cb23c88cdbb4175b17a40d73c4890600090a250565b6000610cd0836110bf565b8210610d325760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016106d8565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b610b3d838383604051806020016040528060008152506113dd565b610d7e6116bc565b60026001541415610dd15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106d8565b600260015580610e1a5760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081859191c995cdccb5b1a5cdd60621b60448201526064016106d8565b61010581610e27600a5490565b610e319190612707565b1115610e745760405162461bcd60e51b815260206004820152601260248201527113585e0814dd5c1c1b1e4814995858da195960721b60448201526064016106d8565b60005b81811015610f27576000838383818110610ea157634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610eb69190612258565b6001600160a01b031614610f1f57610ed2600d80546001019055565b6000610edd600d5490565b9050610f1d848484818110610f0257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610f179190612258565b8261193c565b505b600101610e77565b50506001805550565b6000610f3b600a5490565b8210610f9e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016106d8565b600a8281548110610fbf57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600460205260408120546001600160a01b03168061096d5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016106d8565b600c805461103e90612776565b80601f016020809104026020016040519081016040528092919081815260200182805461106a90612776565b80156110b75780601f1061108c576101008083540402835291602001916110b7565b820191906000526020600020905b81548152906001019060200180831161109a57829003601f168201915b505050505081565b60006001600160a01b0382166111295760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016106d8565b506001600160a01b031660009081526005602052604090205490565b61114d6116bc565b6111576000611956565b565b60606000611166836110bf565b905060008167ffffffffffffffff81111561119157634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156111ba578160200160208202803683370190505b50905060005b828110156112675760006111d48683610cc5565b6000818152601260205260409020549091506001600160a01b0316611225578083838151811061121457634e487b7160e01b600052603260045260246000fd5b602002602001018181525050611254565b600083838151811061124757634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b508061125f816127b1565b9150506111c0565b509392505050565b6112776116bc565b611285600d80546001019055565b6000611290600d5490565b90506101058111156112db5760405162461bcd60e51b8152602060048201526014602482015273151bdd185b081cdd5c1c1b1e481c995858da195960621b60448201526064016106d8565b6112e5338261193c565b50565b6112f06116bc565b805161130390600c90602084019061211d565b507f01e56a02aca7f26a28165a040851ba78f30282b55ca81c63a804cdc1e2dcea72816040516113339190612654565b60405180910390a150565b60606003805461098290612776565b6113583383836119a6565b5050565b6113646116bc565b4281116113aa5760405162461bcd60e51b8152602060048201526014602482015273024b73b30b634b2102932b232b2b6902a34b6b2960651b60448201526064016106d8565b601081905560405181907ffafa4732e13c49c8533941bbf79671bcd9b2e8aab380b44087315dbbeeb015cb90600090a250565b6113e73383611716565b6114035760405162461bcd60e51b81526004016106d8906126b9565b61140f84848484611a75565b50505050565b61141d6116bc565b600e5460ff16151581151514156114665760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b60448201526064016106d8565b600e805460ff1916911515919091179055565b6000818152600460205260409020546060906001600160a01b03166114f85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106d8565b6000600c805461150790612776565b905011611523576040518060200160405280600081525061096d565b600c61152e83611aa8565b60405160200161153f929190612519565b60405160208183030381529060405292915050565b61155c6116bc565b6001600160a01b0381166115c15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106d8565b6112e581611956565b60006001600160e01b0319821663780e9d6360e01b148061096d575061096d82611bc2565b6000818152600460205260409020546001600160a01b03166112e55760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016106d8565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061168382610fd1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000546001600160a01b031633146111575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106d8565b60008061172283610fd1565b9050806001600160a01b0316846001600160a01b0316148061176957506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b8061178d5750836001600160a01b031661178284610a05565b6001600160a01b0316145b949350505050565b826001600160a01b03166117a882610fd1565b6001600160a01b03161461180c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016106d8565b6001600160a01b03821661186e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106d8565b611879838383611c12565b61188460008261164e565b6001600160a01b03831660009081526005602052604081208054600192906118ad908490612733565b90915550506001600160a01b03821660009081526005602052604081208054600192906118db908490612707565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611358828260405180602001604052806000815250611c1d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b03161415611a085760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106d8565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611a80848484611795565b611a8c84848484611c50565b61140f5760405162461bcd60e51b81526004016106d890612667565b606081611acc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611af65780611ae0816127b1565b9150611aef9050600a8361271f565b9150611ad0565b60008167ffffffffffffffff811115611b1f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b49576020820181803683370190505b5090505b841561178d57611b5e600183612733565b9150611b6b600a866127cc565b611b76906030612707565b60f81b818381518110611b9957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611bbb600a8661271f565b9450611b4d565b60006001600160e01b031982166380ac58cd60e01b1480611bf357506001600160e01b03198216635b5e139f60e01b145b8061096d57506301ffc9a760e01b6001600160e01b031983161461096d565b610b3d838383611d5d565b611c278383611e15565b611c346000848484611c50565b610b3d5760405162461bcd60e51b81526004016106d890612667565b60006001600160a01b0384163b15611d5257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611c949033908990889088906004016125d3565b602060405180830381600087803b158015611cae57600080fd5b505af1925050508015611cde575060408051601f3d908101601f19168201909252611cdb91810190612457565b60015b611d38573d808015611d0c576040519150601f19603f3d011682016040523d82523d6000602084013e611d11565b606091505b508051611d305760405162461bcd60e51b81526004016106d890612667565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061178d565b506001949350505050565b6001600160a01b038316611db857611db381600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b611ddb565b816001600160a01b0316836001600160a01b031614611ddb57611ddb8382611f63565b6001600160a01b038216611df257610b3d81612000565b826001600160a01b0316826001600160a01b031614610b3d57610b3d82826120d9565b6001600160a01b038216611e6b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106d8565b6000818152600460205260409020546001600160a01b031615611ed05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106d8565b611edc60008383611c12565b6001600160a01b0382166000908152600560205260408120805460019290611f05908490612707565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001611f70846110bf565b611f7a9190612733565b600083815260096020526040902054909150808214611fcd576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a5460009061201290600190612733565b6000838152600b6020526040812054600a805493945090928490811061204857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600a838154811061207757634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a8054806120bd57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006120e4836110bf565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b82805461212990612776565b90600052602060002090601f01602090048101928261214b5760008555612191565b82601f1061216457805160ff1916838001178555612191565b82800160010185558215612191579182015b82811115612191578251825591602001919060010190612176565b5061219d9291506121a1565b5090565b5b8082111561219d57600081556001016121a2565b600067ffffffffffffffff808411156121d1576121d161280c565b604051601f8501601f19908116603f011681019082821181831017156121f9576121f961280c565b8160405280935085815286868601111561221257600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461224357600080fd5b919050565b8035801515811461224357600080fd5b600060208284031215612269578081fd5b6122728261222c565b9392505050565b6000806040838503121561228b578081fd5b6122948361222c565b91506122a26020840161222c565b90509250929050565b6000806000606084860312156122bf578081fd5b6122c88461222c565b92506122d66020850161222c565b9150604084013590509250925092565b600080600080608085870312156122fb578081fd5b6123048561222c565b93506123126020860161222c565b925060408501359150606085013567ffffffffffffffff811115612334578182fd5b8501601f81018713612344578182fd5b612353878235602084016121b6565b91505092959194509250565b60008060408385031215612371578182fd5b61237a8361222c565b91506122a260208401612248565b6000806040838503121561239a578182fd5b6123a38361222c565b946020939093013593505050565b600080602083850312156123c3578182fd5b823567ffffffffffffffff808211156123da578384fd5b818501915085601f8301126123ed578384fd5b8135818111156123fb578485fd5b8660208260051b850101111561240f578485fd5b60209290920196919550909350505050565b600060208284031215612432578081fd5b61227282612248565b60006020828403121561244c578081fd5b813561227281612822565b600060208284031215612468578081fd5b815161227281612822565b600060208284031215612484578081fd5b813567ffffffffffffffff81111561249a578182fd5b8201601f810184136124aa578182fd5b61178d848235602084016121b6565b6000602082840312156124ca578081fd5b5035919050565b600081518084526124e981602086016020860161274a565b601f01601f19169290920160200192915050565b6000815161250f81856020860161274a565b9290920192915050565b600080845482600182811c91508083168061253557607f831692505b602080841082141561255557634e487b7160e01b87526022600452602487fd5b818015612569576001811461257a576125a6565b60ff198616895284890196506125a6565b60008b815260209020885b8681101561259e5781548b820152908501908301612585565b505084890196505b5050505050506125ca6125b982866124fd565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612606908301846124d1565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156126485783518352928401929184019160010161262c565b50909695505050505050565b60208152600061227260208301846124d1565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6000821982111561271a5761271a6127e0565b500190565b60008261272e5761272e6127f6565b500490565b600082821015612745576127456127e0565b500390565b60005b8381101561276557818101518382015260200161274d565b8381111561140f5750506000910152565b600181811c9082168061278a57607f821691505b602082108114156127ab57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156127c5576127c56127e0565b5060010190565b6000826127db576127db6127f6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146112e557600080fdfea164736f6c6343000804000a000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000014d1120d7b1600000000000000000000000000000000000000000000000000000000000063b0cd3d000000000000000000000000000000000000000000000000000000000000004b68747470733a2f2f6173707265792d6e66742d6d696e74696e672d6d657461646174612d61622d30312e73332e65752d776573742d322e616d617a6f6e6177732e636f6d2f61622d63332f000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102035760003560e01c80634f6ccce711610118578063931688cb116100a0578063b88d4fde1161006f578063b88d4fde146105c0578063c4e37095146105e0578063c87b56dd14610600578063e985e9c514610620578063f2fde38b1461066957600080fd5b8063931688cb1461054b57806395d89b411461056b578063a22cb46514610580578063a83cd948146105a057600080fd5b8063715018a6116100e7578063715018a6146104a057806371e910ff146104b55780637ed0f1c1146104e2578063895fc788146105185780638da5cb5b1461052d57600080fd5b80634f6ccce71461042b5780636352211e1461044b5780636c0360eb1461046b57806370a082311461048057600080fd5b80631ba853d01161019b5780632b3e6a021161016a5780632b3e6a02146103955780632f745c59146103b557806332cb6b0c146103d557806342842e0e146103eb578063438098d01461040b57600080fd5b80631ba853d01461031f57806323b872dd1461033f5780632584c8891461035f57806328f833b71461037557600080fd5b806306fdde03116101d757806306fdde0314610290578063081812fc146102b2578063095ea7b3146102ea57806318160ddd1461030a57600080fd5b80628ca81614610208578063013054c21461023757806301ffc9a71461024c57806306a41c451461026c575b600080fd5b34801561021457600080fd5b50600e546102229060ff1681565b60405190151581526020015b60405180910390f35b61024a6102453660046124b9565b610689565b005b34801561025857600080fd5b5061022261026736600461243b565b610962565b34801561027857600080fd5b50610282600f5481565b60405190815260200161022e565b34801561029c57600080fd5b506102a5610973565b60405161022e9190612654565b3480156102be57600080fd5b506102d26102cd3660046124b9565b610a05565b6040516001600160a01b03909116815260200161022e565b3480156102f657600080fd5b5061024a610305366004612388565b610a2c565b34801561031657600080fd5b50600a54610282565b34801561032b57600080fd5b5061024a61033a366004612258565b610b42565b34801561034b57600080fd5b5061024a61035a3660046122ab565b610c06565b34801561036b57600080fd5b5061028260105481565b34801561038157600080fd5b506011546102d2906001600160a01b031681565b3480156103a157600080fd5b5061024a6103b03660046124b9565b610c37565b3480156103c157600080fd5b506102826103d0366004612388565b610cc5565b3480156103e157600080fd5b5061028261010581565b3480156103f757600080fd5b5061024a6104063660046122ab565b610d5b565b34801561041757600080fd5b5061024a6104263660046123b1565b610d76565b34801561043757600080fd5b506102826104463660046124b9565b610f30565b34801561045757600080fd5b506102d26104663660046124b9565b610fd1565b34801561047757600080fd5b506102a5611031565b34801561048c57600080fd5b5061028261049b366004612258565b6110bf565b3480156104ac57600080fd5b5061024a611145565b3480156104c157600080fd5b506104d56104d0366004612258565b611159565b60405161022e9190612610565b3480156104ee57600080fd5b506102d26104fd3660046124b9565b6012602052600090815260409020546001600160a01b031681565b34801561052457600080fd5b5061024a61126f565b34801561053957600080fd5b506000546001600160a01b03166102d2565b34801561055757600080fd5b5061024a610566366004612473565b6112e8565b34801561057757600080fd5b506102a561133e565b34801561058c57600080fd5b5061024a61059b36600461235f565b61134d565b3480156105ac57600080fd5b5061024a6105bb3660046124b9565b61135c565b3480156105cc57600080fd5b5061024a6105db3660046122e6565b6113dd565b3480156105ec57600080fd5b5061024a6105fb366004612421565b611415565b34801561060c57600080fd5b506102a561061b3660046124b9565b611479565b34801561062c57600080fd5b5061022261063b366004612279565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561067557600080fd5b5061024a610684366004612258565b611554565b600260015414156106e15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155600e5460ff16156107275760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b60448201526064016106d8565b4260105410156107795760405162461bcd60e51b815260206004820152601960248201527f52656465656d54696d6520616c7265616479207061737365640000000000000060448201526064016106d8565b6000818152601260205260409020546001600160a01b0316156107d75760405162461bcd60e51b8152602060048201526016602482015275151bdad95b88185b1c9958591e481c995919595b595960521b60448201526064016106d8565b336107e182610fd1565b6001600160a01b0316146108235760405162461bcd60e51b81526020600482015260096024820152682737b71027bbb732b960b91b60448201526064016106d8565b600f5434146108655760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016106d8565b60008181526012602052604080822080546001600160a01b0319163390811790915560115491516001600160a01b039290921692909184917f30c52e773687cbeff7a4bdfd16bf68a5fcb6ef90e0d042390ec432a74cf1a07691a46011546040516000916001600160a01b03169034908381818185875af1925050503d806000811461090d576040519150601f19603f3d011682016040523d82523d6000602084013e610912565b606091505b505090508061095a5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064016106d8565b505060018055565b600061096d826115ca565b92915050565b60606002805461098290612776565b80601f01602080910402602001604051908101604052809291908181526020018280546109ae90612776565b80156109fb5780601f106109d0576101008083540402835291602001916109fb565b820191906000526020600020905b8154815290600101906020018083116109de57829003601f168201915b5050505050905090565b6000610a10826115ef565b506000908152600660205260409020546001600160a01b031690565b6000610a3782610fd1565b9050806001600160a01b0316836001600160a01b03161415610aa55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106d8565b336001600160a01b0382161480610ac15750610ac1813361063b565b610b335760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016106d8565b610b3d838361164e565b505050565b610b4a6116bc565b6001600160a01b03811615801590610b7057506011546001600160a01b03828116911614155b610bbc5760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964204465706f736974204164647265737300000000000000000060448201526064016106d8565b601180546001600160a01b0319166001600160a01b0383169081179091556040517f92d627d74e72085caa3e53f640b10ff82ff72cf4165ee39a298a79bcdb4e911490600090a250565b610c103382611716565b610c2c5760405162461bcd60e51b81526004016106d8906126b9565b610b3d838383611795565b610c3f6116bc565b8015801590610c505750600f548114155b610c925760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a590814995919595b4810dbdcdd606a1b60448201526064016106d8565b600f81905560405181907f30e11e2b8bbbcd9fc0979dee4974c4570f552cb23c88cdbb4175b17a40d73c4890600090a250565b6000610cd0836110bf565b8210610d325760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016106d8565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b610b3d838383604051806020016040528060008152506113dd565b610d7e6116bc565b60026001541415610dd15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106d8565b600260015580610e1a5760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081859191c995cdccb5b1a5cdd60621b60448201526064016106d8565b61010581610e27600a5490565b610e319190612707565b1115610e745760405162461bcd60e51b815260206004820152601260248201527113585e0814dd5c1c1b1e4814995858da195960721b60448201526064016106d8565b60005b81811015610f27576000838383818110610ea157634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610eb69190612258565b6001600160a01b031614610f1f57610ed2600d80546001019055565b6000610edd600d5490565b9050610f1d848484818110610f0257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610f179190612258565b8261193c565b505b600101610e77565b50506001805550565b6000610f3b600a5490565b8210610f9e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016106d8565b600a8281548110610fbf57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600460205260408120546001600160a01b03168061096d5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016106d8565b600c805461103e90612776565b80601f016020809104026020016040519081016040528092919081815260200182805461106a90612776565b80156110b75780601f1061108c576101008083540402835291602001916110b7565b820191906000526020600020905b81548152906001019060200180831161109a57829003601f168201915b505050505081565b60006001600160a01b0382166111295760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016106d8565b506001600160a01b031660009081526005602052604090205490565b61114d6116bc565b6111576000611956565b565b60606000611166836110bf565b905060008167ffffffffffffffff81111561119157634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156111ba578160200160208202803683370190505b50905060005b828110156112675760006111d48683610cc5565b6000818152601260205260409020549091506001600160a01b0316611225578083838151811061121457634e487b7160e01b600052603260045260246000fd5b602002602001018181525050611254565b600083838151811061124757634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b508061125f816127b1565b9150506111c0565b509392505050565b6112776116bc565b611285600d80546001019055565b6000611290600d5490565b90506101058111156112db5760405162461bcd60e51b8152602060048201526014602482015273151bdd185b081cdd5c1c1b1e481c995858da195960621b60448201526064016106d8565b6112e5338261193c565b50565b6112f06116bc565b805161130390600c90602084019061211d565b507f01e56a02aca7f26a28165a040851ba78f30282b55ca81c63a804cdc1e2dcea72816040516113339190612654565b60405180910390a150565b60606003805461098290612776565b6113583383836119a6565b5050565b6113646116bc565b4281116113aa5760405162461bcd60e51b8152602060048201526014602482015273024b73b30b634b2102932b232b2b6902a34b6b2960651b60448201526064016106d8565b601081905560405181907ffafa4732e13c49c8533941bbf79671bcd9b2e8aab380b44087315dbbeeb015cb90600090a250565b6113e73383611716565b6114035760405162461bcd60e51b81526004016106d8906126b9565b61140f84848484611a75565b50505050565b61141d6116bc565b600e5460ff16151581151514156114665760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b60448201526064016106d8565b600e805460ff1916911515919091179055565b6000818152600460205260409020546060906001600160a01b03166114f85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106d8565b6000600c805461150790612776565b905011611523576040518060200160405280600081525061096d565b600c61152e83611aa8565b60405160200161153f929190612519565b60405160208183030381529060405292915050565b61155c6116bc565b6001600160a01b0381166115c15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106d8565b6112e581611956565b60006001600160e01b0319821663780e9d6360e01b148061096d575061096d82611bc2565b6000818152600460205260409020546001600160a01b03166112e55760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016106d8565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061168382610fd1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000546001600160a01b031633146111575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106d8565b60008061172283610fd1565b9050806001600160a01b0316846001600160a01b0316148061176957506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b8061178d5750836001600160a01b031661178284610a05565b6001600160a01b0316145b949350505050565b826001600160a01b03166117a882610fd1565b6001600160a01b03161461180c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016106d8565b6001600160a01b03821661186e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106d8565b611879838383611c12565b61188460008261164e565b6001600160a01b03831660009081526005602052604081208054600192906118ad908490612733565b90915550506001600160a01b03821660009081526005602052604081208054600192906118db908490612707565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611358828260405180602001604052806000815250611c1d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b03161415611a085760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106d8565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611a80848484611795565b611a8c84848484611c50565b61140f5760405162461bcd60e51b81526004016106d890612667565b606081611acc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611af65780611ae0816127b1565b9150611aef9050600a8361271f565b9150611ad0565b60008167ffffffffffffffff811115611b1f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b49576020820181803683370190505b5090505b841561178d57611b5e600183612733565b9150611b6b600a866127cc565b611b76906030612707565b60f81b818381518110611b9957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611bbb600a8661271f565b9450611b4d565b60006001600160e01b031982166380ac58cd60e01b1480611bf357506001600160e01b03198216635b5e139f60e01b145b8061096d57506301ffc9a760e01b6001600160e01b031983161461096d565b610b3d838383611d5d565b611c278383611e15565b611c346000848484611c50565b610b3d5760405162461bcd60e51b81526004016106d890612667565b60006001600160a01b0384163b15611d5257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611c949033908990889088906004016125d3565b602060405180830381600087803b158015611cae57600080fd5b505af1925050508015611cde575060408051601f3d908101601f19168201909252611cdb91810190612457565b60015b611d38573d808015611d0c576040519150601f19603f3d011682016040523d82523d6000602084013e611d11565b606091505b508051611d305760405162461bcd60e51b81526004016106d890612667565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061178d565b506001949350505050565b6001600160a01b038316611db857611db381600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b611ddb565b816001600160a01b0316836001600160a01b031614611ddb57611ddb8382611f63565b6001600160a01b038216611df257610b3d81612000565b826001600160a01b0316826001600160a01b031614610b3d57610b3d82826120d9565b6001600160a01b038216611e6b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106d8565b6000818152600460205260409020546001600160a01b031615611ed05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106d8565b611edc60008383611c12565b6001600160a01b0382166000908152600560205260408120805460019290611f05908490612707565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001611f70846110bf565b611f7a9190612733565b600083815260096020526040902054909150808214611fcd576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a5460009061201290600190612733565b6000838152600b6020526040812054600a805493945090928490811061204857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600a838154811061207757634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a8054806120bd57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006120e4836110bf565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b82805461212990612776565b90600052602060002090601f01602090048101928261214b5760008555612191565b82601f1061216457805160ff1916838001178555612191565b82800160010185558215612191579182015b82811115612191578251825591602001919060010190612176565b5061219d9291506121a1565b5090565b5b8082111561219d57600081556001016121a2565b600067ffffffffffffffff808411156121d1576121d161280c565b604051601f8501601f19908116603f011681019082821181831017156121f9576121f961280c565b8160405280935085815286868601111561221257600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461224357600080fd5b919050565b8035801515811461224357600080fd5b600060208284031215612269578081fd5b6122728261222c565b9392505050565b6000806040838503121561228b578081fd5b6122948361222c565b91506122a26020840161222c565b90509250929050565b6000806000606084860312156122bf578081fd5b6122c88461222c565b92506122d66020850161222c565b9150604084013590509250925092565b600080600080608085870312156122fb578081fd5b6123048561222c565b93506123126020860161222c565b925060408501359150606085013567ffffffffffffffff811115612334578182fd5b8501601f81018713612344578182fd5b612353878235602084016121b6565b91505092959194509250565b60008060408385031215612371578182fd5b61237a8361222c565b91506122a260208401612248565b6000806040838503121561239a578182fd5b6123a38361222c565b946020939093013593505050565b600080602083850312156123c3578182fd5b823567ffffffffffffffff808211156123da578384fd5b818501915085601f8301126123ed578384fd5b8135818111156123fb578485fd5b8660208260051b850101111561240f578485fd5b60209290920196919550909350505050565b600060208284031215612432578081fd5b61227282612248565b60006020828403121561244c578081fd5b813561227281612822565b600060208284031215612468578081fd5b815161227281612822565b600060208284031215612484578081fd5b813567ffffffffffffffff81111561249a578182fd5b8201601f810184136124aa578182fd5b61178d848235602084016121b6565b6000602082840312156124ca578081fd5b5035919050565b600081518084526124e981602086016020860161274a565b601f01601f19169290920160200192915050565b6000815161250f81856020860161274a565b9290920192915050565b600080845482600182811c91508083168061253557607f831692505b602080841082141561255557634e487b7160e01b87526022600452602487fd5b818015612569576001811461257a576125a6565b60ff198616895284890196506125a6565b60008b815260209020885b8681101561259e5781548b820152908501908301612585565b505084890196505b5050505050506125ca6125b982866124fd565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612606908301846124d1565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156126485783518352928401929184019160010161262c565b50909695505050505050565b60208152600061227260208301846124d1565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6000821982111561271a5761271a6127e0565b500190565b60008261272e5761272e6127f6565b500490565b600082821015612745576127456127e0565b500390565b60005b8381101561276557818101518382015260200161274d565b8381111561140f5750506000910152565b600181811c9082168061278a57607f821691505b602082108114156127ab57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156127c5576127c56127e0565b5060010190565b6000826127db576127db6127f6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146112e557600080fdfea164736f6c6343000804000a

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000014d1120d7b1600000000000000000000000000000000000000000000000000000000000063b0cd3d000000000000000000000000000000000000000000000000000000000000004b68747470733a2f2f6173707265792d6e66742d6d696e74696e672d6d657461646174612d61622d30312e73332e65752d776573742d322e616d617a6f6e6177732e636f6d2f61622d63332f000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _uri (string): https://asprey-nft-minting-metadata-ab-01.s3.eu-west-2.amazonaws.com/ab-c3/
Arg [1] : _weiAmount (uint256): 1500000000000000000
Arg [2] : _redeemTime (uint256): 1672531261

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000014d1120d7b160000
Arg [2] : 0000000000000000000000000000000000000000000000000000000063b0cd3d
Arg [3] : 000000000000000000000000000000000000000000000000000000000000004b
Arg [4] : 68747470733a2f2f6173707265792d6e66742d6d696e74696e672d6d65746164
Arg [5] : 6174612d61622d30312e73332e65752d776573742d322e616d617a6f6e617773
Arg [6] : 2e636f6d2f61622d63332f000000000000000000000000000000000000000000


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.