ETH Price: $2,612.83 (+0.74%)

Token

OccultaVerba (VRBA)
 

Overview

Max Total Supply

0 VRBA

Holders

14

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
fairymercury.eth
Balance
1 VRBA
0xdab86752Eae07F5c85C04be9915335a263dc2aA4
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:
OccultaVerba

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 18 runs

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

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

contract OccultaVerba is Ownable, ERC721 {
    using Counters for Counters.Counter;
    using SafeMath for uint256;

    enum TokenType { CMinor, AMinor, FSharpMajor, Prize }

    uint256 public constant price = 0.1 ether;
    bool public isMintable;
    uint256 public maxSupply;
    string public baseTokenURI = "ipfs://QmeJq9kntM8YGjfjcVAXPb4dC97ZgaExcZN5u9K8zqRNL6/";
    address public winner;

    bytes32 private _secret;
    address private _payoutAddress;
    string private _clueCMinor;
    string private _clueAMinor;
    string private _clueFSharpMinor;
    uint256 private _winnerSentAmount;
    bool private _prizeTokenSentToWinner;
    Counters.Counter private _tokenIdTracker;

    mapping(TokenType => Counters.Counter) minted;
    mapping(uint256 => TokenType) tokenTypeById;

    constructor(
        bytes32 secret, 
        uint256 max, 
        address payoutAddress, 
        string memory clueCMinor, 
        string memory clueAMinor, 
        string memory clueFSharpMinor
    ) ERC721("OccultaVerba", "VRBA") {
        _secret = secret;
        maxSupply = max;
        _payoutAddress = payoutAddress;
        _clueCMinor = clueCMinor;
        _clueAMinor = clueAMinor;
        _clueFSharpMinor = clueFSharpMinor;
        _doMint(TokenType.Prize);
    }

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

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        return _getUrl(tokenTypeById[tokenId]);
    }

    function _getUrl(TokenType t) private view returns (string memory) {
        if (t == TokenType.CMinor) return string(abi.encodePacked(baseTokenURI, "cminor"));
        if (t == TokenType.AMinor) return string(abi.encodePacked(baseTokenURI, "aminor"));
        if (t == TokenType.FSharpMajor) return string(abi.encodePacked(baseTokenURI, "fsharpmajor"));
        if (t == TokenType.Prize) return string(abi.encodePacked(baseTokenURI, "prize"));
        else return "";
    }

    function openMinting() public onlyOwner {
        require(isMintable == false, "Minting needs to be closed first");
        isMintable = true;
    }

    function closeMinting() public onlyOwner {
        require(isMintable, "Minting needs to be open first");
        isMintable = false;
    }

    function claim(bool cm, bool am, bool fsharp) public payable {
        require(msg.sender != owner(), "Owner can not call this function");
        require(isMintable, "Minting is not allowed yet");
        require(cm || am || fsharp, "Need to pick at least one song");

        uint256 counter;

        if (cm) {
            require(minted[TokenType.CMinor].current() < maxSupply, "Sold out");
            counter++;
            _doMint(TokenType.CMinor);
        }
        if (am) {
            require(minted[TokenType.AMinor].current() < maxSupply, "Sold out");
            counter++;
            _doMint(TokenType.AMinor);
        }
        if (fsharp) {
            require(minted[TokenType.FSharpMajor].current() < maxSupply, "Sold out");
            counter++;
            _doMint(TokenType.FSharpMajor);
        }

        uint256 total = price.mul(counter);
        require(msg.value == total, "Incorrect price");
    }

    function _doMint(TokenType tokenType) private {
        _tokenIdTracker.increment();
        uint256 tokenId = _tokenIdTracker.current();
        tokenTypeById[tokenId] = tokenType;
        minted[tokenType].increment();
        _safeMint(msg.sender, tokenId);
    }

    function guess(string memory solution) public view returns (bool) {
        require(balanceOf(msg.sender) > 0, "Need to own one or more songs");
        return _isGuessCorrect(solution, _secret);
    }

    function _isGuessCorrect(string memory secretGuess, bytes32 secret) private pure returns (bool) {
        bytes32 solutionHash = keccak256(abi.encodePacked(secretGuess));
        bytes32 solutionDoubleHash = keccak256(abi.encodePacked(solutionHash));
        return solutionDoubleHash == secret;
    }

    function markSenderAsWinner(string memory secretGuess) public {
        require(winner == address(0), "Has been solved already");
        require(msg.sender != owner(), "Owner can not call this function");
        require(balanceOf(msg.sender) > 0, "Need to own one or more songs");

        bool isGuessCorrect = _isGuessCorrect(secretGuess, _secret);
        require(isGuessCorrect, "Incorrect guess");
        
        winner = msg.sender;
    }

    function sendPrizeAndEthToWinner() public { 
        require(winner != address(0), "No winner yet");
        require(winner == msg.sender, "You need to be the winner");

        uint256 amountToPay = _getWinnerMaxAmount().sub(_winnerSentAmount); 
        require(amountToPay > 0, "Amount is 0");

        _winnerSentAmount = _winnerSentAmount.add(amountToPay); 

        if (_prizeTokenSentToWinner == false) {
            _prizeTokenSentToWinner = true;
            _safeTransfer(ownerOf(1), msg.sender, 1, "");
        }

        (bool success, ) = msg.sender.call{value: amountToPay}("");
        require(success, "Transfer failed");
    }

    function withdrawForTeam() public onlyOwner { 
        uint256 amountToPay = address(this).balance
            .sub(_getWinnerMaxAmount())
            .add(_winnerSentAmount);

        require(amountToPay > 0, "Amount is 0");
        
        (bool success, ) = _payoutAddress.call{value: amountToPay}("");
        require(success, "Transfer failed");
    }

    function _getWinnerMaxAmount() private view returns (uint256) {
        uint256 numberOfSoldTokens = getTotalTokenCount().sub(1);
        return numberOfSoldTokens.mul(price).mul(5).div(100);
    }

    function getTokenTypeById(uint256 tokenId) public view returns (TokenType tokenType) {
        require(_exists(tokenId), "Token not minted");
        tokenType = tokenTypeById[tokenId];
    }

    function getNumberOfTokensByType(TokenType tokenType) public view returns (uint256) {
        return minted[tokenType].current();
    }

    function getTotalTokenCount() public view returns (uint256) {
        return _tokenIdTracker.current();
    }

    function getTokenIdsByAddress(address inputAddress) public view returns (uint256[] memory) {
        uint256 limit = balanceOf(inputAddress);
        if (limit == 0) return new uint256[](0);
        
        uint256[] memory tokens = new uint256[](limit);
        uint256 cnt;

        for (uint256 i = 1; i <= maxSupply.mul(3); i++) {
            if (ownerOf(i) == inputAddress) {
                tokens[cnt] = i;
                if (cnt == limit - 1) {
                    break;
                } else {
                    cnt++;
                }
            }
        }

        return tokens;
    }

    function getClue(uint256 tokenId) public view returns (string memory) {
        require(ownerOf(tokenId) == msg.sender, "You need to own the token"); 

        TokenType tokenType = tokenTypeById[tokenId];
        require(tokenType != TokenType.Prize, "There are only clues for songs");

        if (tokenType == TokenType.AMinor) return _clueAMinor;
        if (tokenType == TokenType.CMinor) return _clueCMinor;
        if (tokenType == TokenType.FSharpMajor) return _clueFSharpMinor;
        else return "";
    }

    function approve(address to, uint256 tokenId) public virtual override {
        require(msg.sender != owner(), "Owner can not call this function");
        super.approve(to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
        require(msg.sender != owner(), "Owner can not call this function");
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
        require(msg.sender != owner(), "Owner can not call this function");
        super.safeTransferFrom(from, to, tokenId, _data);
    }

    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(msg.sender != owner(), "Owner can not call this function");
        super.setApprovalForAll(operator, approved);
    }

    function transferFrom(address from, address to, uint256 tokenId) public virtual override {
        require(msg.sender != owner(), "Owner can not call this function");
        super.transferFrom(from, to, tokenId);
    }

    function renounceOwnership() public override onlyOwner {
        require(false, "Not supported");
        super.renounceOwnership();
    }

    function transferOwnership(address newOwner) public override onlyOwner {
        if (ownerOf(1) == owner()) {
            _safeTransfer(owner(), newOwner, 1, "");
        }
        super.transferOwnership(newOwner);
    }

    function changePayoutAddress(address newAddress) public onlyOwner {
        require(newAddress != address(0), "Address is empty");
        _payoutAddress = newAddress;
    }
}

File 2 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bytes32","name":"secret","type":"bytes32"},{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"address","name":"payoutAddress","type":"address"},{"internalType":"string","name":"clueCMinor","type":"string"},{"internalType":"string","name":"clueAMinor","type":"string"},{"internalType":"string","name":"clueFSharpMinor","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"changePayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"cm","type":"bool"},{"internalType":"bool","name":"am","type":"bool"},{"internalType":"bool","name":"fsharp","type":"bool"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"closeMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getClue","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum OccultaVerba.TokenType","name":"tokenType","type":"uint8"}],"name":"getNumberOfTokensByType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"inputAddress","type":"address"}],"name":"getTokenIdsByAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenTypeById","outputs":[{"internalType":"enum OccultaVerba.TokenType","name":"tokenType","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"solution","type":"string"}],"name":"guess","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"secretGuess","type":"string"}],"name":"markSenderAsWinner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":[],"name":"sendPrizeAndEthToWinner","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"winner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawForTeam","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e060405260366080818152906200335f60a0398051620000299160099160209091019062000561565b503480156200003757600080fd5b5060405162003395380380620033958339810160408190526200005a91620006e1565b6040518060400160405280600c81526020016b4f6363756c7461566572626160a01b815250604051806040016040528060048152602001635652424160e01b815250620000b6620000b06200016360201b60201c565b62000167565b8151620000cb90600190602085019062000561565b508051620000e190600290602084019062000561565b505050600b8690556008859055600c80546001600160a01b0319166001600160a01b03861617905582516200011e90600d90602086019062000561565b5081516200013490600e90602085019062000561565b5080516200014a90600f90602084019062000561565b50620001576003620001b7565b505050505050620008fb565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620001ce60126200027c60201b620016d91760201c565b6000620001e760126200028560201b620016e21760201c565b60008181526014602052604090208054919250839160ff19166001836003811115620002175762000217620007a6565b02179055506200026c60136000846003811115620002395762000239620007a6565b60038111156200024d576200024d620007a6565b81526020019081526020016000206200027c60201b620016d91760201c565b62000278338262000289565b5050565b80546001019055565b5490565b62000278828260405180602001604052806000815250620002ab60201b60201c565b620002b78383620002f3565b620002c660008484846200043b565b620002ee5760405162461bcd60e51b8152600401620002e590620007bc565b60405180910390fd5b505050565b6001600160a01b0382166200034b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620002e5565b6000818152600360205260409020546001600160a01b031615620003b25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620002e5565b6001600160a01b0382166000908152600460205260408120805460019290620003dd9084906200080e565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006200045c846001600160a01b03166200055b60201b620016e61760201c565b156200054f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906200049690339089908890889060040162000835565b6020604051808303816000875af1925050508015620004d4575060408051601f3d908101601f19168201909252620004d1918101906200088b565b60015b62000534573d80801562000505576040519150601f19603f3d011682016040523d82523d6000602084013e6200050a565b606091505b5080516200052c5760405162461bcd60e51b8152600401620002e590620007bc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000553565b5060015b949350505050565b3b151590565b8280546200056f90620008be565b90600052602060002090601f016020900481019282620005935760008555620005de565b82601f10620005ae57805160ff1916838001178555620005de565b82800160010185558215620005de579182015b82811115620005de578251825591602001919060010190620005c1565b50620005ec929150620005f0565b5090565b5b80821115620005ec5760008155600101620005f1565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200063a57818101518382015260200162000620565b838111156200064a576000848401525b50505050565b600082601f8301126200066257600080fd5b81516001600160401b03808211156200067f576200067f62000607565b604051601f8301601f19908116603f01168101908282118183101715620006aa57620006aa62000607565b81604052838152866020858801011115620006c457600080fd5b620006d78460208301602089016200061d565b9695505050505050565b60008060008060008060c08789031215620006fb57600080fd5b86516020880151604089015191975095506001600160a01b03811681146200072257600080fd5b60608801519094506001600160401b03808211156200074057600080fd5b6200074e8a838b0162000650565b945060808901519150808211156200076557600080fd5b620007738a838b0162000650565b935060a08901519150808211156200078a57600080fd5b506200079989828a0162000650565b9150509295509295509295565b634e487b7160e01b600052602160045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082198211156200083057634e487b7160e01b600052601160045260246000fd5b500190565b600060018060a01b038087168352808616602084015250836040830152608060608301528251806080840152620008748160a08501602087016200061d565b601f01601f19169190910160a00195945050505050565b6000602082840312156200089e57600080fd5b81516001600160e01b031981168114620008b757600080fd5b9392505050565b600181811c90821680620008d357607f821691505b60208210811415620008f557634e487b7160e01b600052602260045260246000fd5b50919050565b612a54806200090b6000396000f3fe6080604052600436106101895760003560e01c806301ffc9a71461018e5780630426c697146101c357806306fdde03146101e5578063081812fc14610207578063095ea7b31461023f57806323b872dd1461025f57806342842e0e1461027f57806346b45af71461029f5780634b4ce512146102b95780634e4500aa146102e65780634eee59b314610306578063582d2abd146103265780636352211e1461033b5780636ba9fd381461035b57806370a0823114610370578063715018a61461039e57806387491c60146103b357806389d5feee146103c85780638da5cb5b146103f557806392843fdb1461040a57806395d89b411461041d578063995e9ce314610432578063a035b1fe14610447578063a22cb46514610463578063b88d4fde14610483578063c87b56dd146104a3578063d547cfb7146104c3578063d5abeb01146104d8578063da7c834f146104ee578063dfbf53ae1461050e578063e53626671461052e578063e985e9c514610543578063f2fde38b14610563578063fde4334014610583575b600080fd5b34801561019a57600080fd5b506101ae6101a9366004612231565b6105a3565b60405190151581526020015b60405180910390f35b3480156101cf57600080fd5b506101e36101de366004612265565b6105f5565b005b3480156101f157600080fd5b506101fa610698565b6040516101ba91906122d8565b34801561021357600080fd5b506102276102223660046122eb565b61072a565b6040516001600160a01b0390911681526020016101ba565b34801561024b57600080fd5b506101e361025a366004612304565b6107b2565b34801561026b57600080fd5b506101e361027a36600461232e565b6107f9565b34801561028b57600080fd5b506101e361029a36600461232e565b610842565b3480156102ab57600080fd5b506007546101ae9060ff1681565b3480156102c557600080fd5b506102d96102d43660046122eb565b610886565b6040516101ba9190612380565b3480156102f257600080fd5b506101fa6103013660046122eb565b6108e6565b34801561031257600080fd5b506101ae610321366004612433565b610acf565b34801561033257600080fd5b506101e3610b04565b34801561034757600080fd5b506102276103563660046122eb565b610c10565b34801561036757600080fd5b506101e3610c87565b34801561037c57600080fd5b5061039061038b366004612265565b610d18565b6040519081526020016101ba565b3480156103aa57600080fd5b506101e3610d9f565b3480156103bf57600080fd5b506101e3610e06565b3480156103d457600080fd5b506103e86103e3366004612265565b610e93565b6040516101ba919061247b565b34801561040157600080fd5b50610227610f9d565b6101e36104183660046124cf565b610fac565b34801561042957600080fd5b506101fa6111f0565b34801561043e57600080fd5b506101e36111ff565b34801561045357600080fd5b5061039067016345785d8a000081565b34801561046f57600080fd5b506101e361047e366004612512565b611339565b34801561048f57600080fd5b506101e361049e366004612545565b61137c565b3480156104af57600080fd5b506101fa6104be3660046122eb565b6113c7565b3480156104cf57600080fd5b506101fa611451565b3480156104e457600080fd5b5061039060085481565b3480156104fa57600080fd5b506103906105093660046125c0565b6114df565b34801561051a57600080fd5b50600a54610227906001600160a01b031681565b34801561053a57600080fd5b506103906114fa565b34801561054f57600080fd5b506101ae61055e3660046125e1565b61150a565b34801561056f57600080fd5b506101e361057e366004612265565b611538565b34801561058f57600080fd5b506101e361059e366004612433565b6115c0565b60006001600160e01b031982166380ac58cd60e01b14806105d457506001600160e01b03198216635b5e139f60e01b145b806105ef57506301ffc9a760e01b6001600160e01b03198316145b92915050565b336105fe610f9d565b6001600160a01b03161461062d5760405162461bcd60e51b81526004016106249061260b565b60405180910390fd5b6001600160a01b0381166106765760405162461bcd60e51b815260206004820152601060248201526f4164647265737320697320656d70747960801b6044820152606401610624565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600180546106a790612640565b80601f01602080910402602001604051908101604052809291908181526020018280546106d390612640565b80156107205780601f106106f557610100808354040283529160200191610720565b820191906000526020600020905b81548152906001019060200180831161070357829003601f168201915b5050505050905090565b6000610735826116ec565b6107965760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610624565b506000908152600560205260409020546001600160a01b031690565b6107ba610f9d565b6001600160a01b0316336001600160a01b031614156107eb5760405162461bcd60e51b815260040161062490612675565b6107f58282611709565b5050565b610801610f9d565b6001600160a01b0316336001600160a01b031614156108325760405162461bcd60e51b815260040161062490612675565b61083d838383611815565b505050565b61084a610f9d565b6001600160a01b0316336001600160a01b0316141561087b5760405162461bcd60e51b815260040161062490612675565b61083d838383611846565b6000610891826116ec565b6108d05760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881b9bdd081b5a5b9d195960821b6044820152606401610624565b5060009081526014602052604090205460ff1690565b6060336108f283610c10565b6001600160a01b0316146109445760405162461bcd60e51b81526020600482015260196024820152782cb7ba903732b2b2103a379037bbb7103a3432903a37b5b2b760391b6044820152606401610624565b60008281526014602052604090205460ff16600381600381111561096a5761096a61236a565b14156109b85760405162461bcd60e51b815260206004820152601e60248201527f546865726520617265206f6e6c7920636c75657320666f7220736f6e677300006044820152606401610624565b60018160038111156109cc576109cc61236a565b1415610a6557600e80546109df90612640565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0b90612640565b8015610a585780601f10610a2d57610100808354040283529160200191610a58565b820191906000526020600020905b815481529060010190602001808311610a3b57829003601f168201915b5050505050915050919050565b6000816003811115610a7957610a7961236a565b1415610a8c57600d80546109df90612640565b6002816003811115610aa057610aa061236a565b1415610ab357600f80546109df90612640565b5050604080516020810190915260008152919050565b50919050565b600080610adb33610d18565b11610af85760405162461bcd60e51b8152600401610624906126aa565b6105ef82600b54611861565b33610b0d610f9d565b6001600160a01b031614610b335760405162461bcd60e51b81526004016106249061260b565b6000610b53601054610b4d610b466118b0565b47906118f0565b90611903565b905060008111610b755760405162461bcd60e51b8152600401610624906126e1565b600c546040516000916001600160a01b03169083905b60006040518083038185875af1925050503d8060008114610bc8576040519150601f19603f3d011682016040523d82523d6000602084013e610bcd565b606091505b50509050806107f55760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610624565b6000818152600360205260408120546001600160a01b0316806105ef5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610624565b33610c90610f9d565b6001600160a01b031614610cb65760405162461bcd60e51b81526004016106249061260b565b60075460ff1615610d095760405162461bcd60e51b815260206004820181905260248201527f4d696e74696e67206e6565647320746f20626520636c6f7365642066697273746044820152606401610624565b6007805460ff19166001179055565b60006001600160a01b038216610d835760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610624565b506001600160a01b031660009081526004602052604090205490565b33610da8610f9d565b6001600160a01b031614610dce5760405162461bcd60e51b81526004016106249061260b565b60405162461bcd60e51b815260206004820152600d60248201526c139bdd081cdd5c1c1bdc9d1959609a1b6044820152606401610624565b33610e0f610f9d565b6001600160a01b031614610e355760405162461bcd60e51b81526004016106249061260b565b60075460ff16610e875760405162461bcd60e51b815260206004820152601e60248201527f4d696e74696e67206e6565647320746f206265206f70656e20666972737400006044820152606401610624565b6007805460ff19169055565b60606000610ea083610d18565b905080610ebd575050604080516000815260208101909152919050565b6000816001600160401b03811115610ed757610ed76123a8565b604051908082528060200260200182016040528015610f00578160200160208202803683370190505b509050600060015b600854610f1690600361190f565b8111610f9357856001600160a01b0316610f2f82610c10565b6001600160a01b03161415610f815780838381518110610f5157610f51612706565b6020908102919091010152610f67600185612732565b821415610f7357610f93565b81610f7d81612749565b9250505b80610f8b81612749565b915050610f08565b5090949350505050565b6000546001600160a01b031690565b610fb4610f9d565b6001600160a01b0316336001600160a01b03161415610fe55760405162461bcd60e51b815260040161062490612675565b60075460ff166110345760405162461bcd60e51b815260206004820152601a602482015279135a5b9d1a5b99c81a5cc81b9bdd08185b1b1bddd959081e595d60321b6044820152606401610624565b828061103d5750815b806110455750805b6110915760405162461bcd60e51b815260206004820152601e60248201527f4e65656420746f207069636b206174206c65617374206f6e6520736f6e6700006044820152606401610624565b600083156110fc576008546110c860136000805b60038111156110b6576110b661236a565b81526020019081526020016000205490565b106110e55760405162461bcd60e51b815260040161062490612764565b806110ef81612749565b9150506110fc600061191b565b8215611147576008546111136013600060016110a5565b106111305760405162461bcd60e51b815260040161062490612764565b8061113a81612749565b915050611147600161191b565b81156111925760085461115e6013600060026110a5565b1061117b5760405162461bcd60e51b815260040161062490612764565b8061118581612749565b915050611192600261191b565b60006111a667016345785d8a00008361190f565b90508034146111e95760405162461bcd60e51b815260206004820152600f60248201526e496e636f727265637420707269636560881b6044820152606401610624565b5050505050565b6060600280546106a790612640565b600a546001600160a01b03166112475760405162461bcd60e51b815260206004820152600d60248201526c139bc81dda5b9b995c881e595d609a1b6044820152606401610624565b600a546001600160a01b0316331461129d5760405162461bcd60e51b81526020600482015260196024820152782cb7ba903732b2b2103a37903132903a3432903bb4b73732b960391b6044820152606401610624565b60006112b36010546112ad6118b0565b906118f0565b9050600081116112d55760405162461bcd60e51b8152600401610624906126e1565b6010546112e29082611903565b60105560115460ff16611324576011805460ff191660019081179091556113249061130c90610c10565b336001604051806020016040528060008152506119b1565b6000336001600160a01b031682604051610b8b565b611341610f9d565b6001600160a01b0316336001600160a01b031614156113725760405162461bcd60e51b815260040161062490612675565b6107f582826119e4565b611384610f9d565b6001600160a01b0316336001600160a01b031614156113b55760405162461bcd60e51b815260040161062490612675565b6113c1848484846119ef565b50505050565b60606113d2826116ec565b6114365760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610624565b6000828152601460205260409020546105ef9060ff16611a21565b6009805461145e90612640565b80601f016020809104026020016040519081016040528092919081815260200182805461148a90612640565b80156114d75780601f106114ac576101008083540402835291602001916114d7565b820191906000526020600020905b8154815290600101906020018083116114ba57829003601f168201915b505050505081565b60006105ef601360008460038111156110a5576110a561236a565b600061150560125490565b905090565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b33611541610f9d565b6001600160a01b0316146115675760405162461bcd60e51b81526004016106249061260b565b61156f610f9d565b6001600160a01b03166115826001610c10565b6001600160a01b031614156115b4576115b461159c610f9d565b826001604051806020016040528060008152506119b1565b6115bd81611b02565b50565b600a546001600160a01b0316156116135760405162461bcd60e51b8152602060048201526017602482015276486173206265656e20736f6c76656420616c726561647960481b6044820152606401610624565b61161b610f9d565b6001600160a01b0316336001600160a01b0316141561164c5760405162461bcd60e51b815260040161062490612675565b600061165733610d18565b116116745760405162461bcd60e51b8152600401610624906126aa565b600061168282600b54611861565b9050806116c35760405162461bcd60e51b815260206004820152600f60248201526e496e636f727265637420677565737360881b6044820152606401610624565b5050600a80546001600160a01b03191633179055565b80546001019055565b5490565b3b151590565b6000908152600360205260409020546001600160a01b0316151590565b600061171482610c10565b9050806001600160a01b0316836001600160a01b031614156117825760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610624565b336001600160a01b038216148061179e575061179e813361150a565b61180b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610624565b61083d8383611b9f565b61181f3382611c0d565b61183b5760405162461bcd60e51b815260040161062490612786565b61083d838383611cd7565b61083d8383836040518060200160405280600081525061137c565b6000808360405160200161187591906127d7565b60408051808303601f190181528282528051602091820120818401528151808403820181529282019091528151910120929092149392505050565b6000806118c060016112ad6114fa565b90506118ea60646118e460056118de8567016345785d8a000061190f565b9061190f565b90611e77565b91505090565b60006118fc8284612732565b9392505050565b60006118fc82846127f3565b60006118fc828461280b565b611929601280546001019055565b600061193460125490565b60008181526014602052604090208054919250839160ff191660018360038111156119615761196161236a565b02179055506119a76013600084600381111561197f5761197f61236a565b60038111156119905761199061236a565b815260200190815260200160002080546001019055565b6107f53382611ed3565b6119bc848484611cd7565b6119c884848484611eed565b6113c15760405162461bcd60e51b81526004016106249061282a565b6107f5338383611feb565b6119f93383611c0d565b611a155760405162461bcd60e51b815260040161062490612786565b6113c1848484846119b1565b60606000826003811115611a3757611a3761236a565b1415611a65576009604051602001611a4f9190612916565b6040516020818303038152906040529050919050565b6001826003811115611a7957611a7961236a565b1415611a91576009604051602001611a4f9190612938565b6002826003811115611aa557611aa561236a565b1415611abd576009604051602001611a4f919061295a565b6003826003811115611ad157611ad161236a565b1415611ae9576009604051602001611a4f9190612981565b505060408051602081019091526000815290565b919050565b33611b0b610f9d565b6001600160a01b031614611b315760405162461bcd60e51b81526004016106249061260b565b6001600160a01b038116611b965760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610624565b6115bd81611e83565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611bd482610c10565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611c18826116ec565b611c795760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610624565b6000611c8483610c10565b9050806001600160a01b0316846001600160a01b03161480611cbf5750836001600160a01b0316611cb48461072a565b6001600160a01b0316145b80611ccf5750611ccf818561150a565b949350505050565b826001600160a01b0316611cea82610c10565b6001600160a01b031614611d525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610624565b6001600160a01b038216611db45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610624565b611dbf600082611b9f565b6001600160a01b0383166000908152600460205260408120805460019290611de8908490612732565b90915550506001600160a01b0382166000908152600460205260408120805460019290611e169084906127f3565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006118fc82846129a2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6107f58282604051806020016040528060008152506120b6565b60006001600160a01b0384163b15611fe057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f319033908990889088906004016129c4565b6020604051808303816000875af1925050508015611f6c575060408051601f3d908101601f19168201909252611f6991810190612a01565b60015b611fc6573d808015611f9a576040519150601f19603f3d011682016040523d82523d6000602084013e611f9f565b606091505b508051611fbe5760405162461bcd60e51b81526004016106249061282a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ccf565b506001949350505050565b816001600160a01b0316836001600160a01b031614156120495760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610624565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6120c083836120e9565b6120cd6000848484611eed565b61083d5760405162461bcd60e51b81526004016106249061282a565b6001600160a01b03821661213f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610624565b612148816116ec565b156121945760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610624565b6001600160a01b03821660009081526004602052604081208054600192906121bd9084906127f3565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b0319811681146115bd57600080fd5b60006020828403121561224357600080fd5b81356118fc8161221b565b80356001600160a01b0381168114611afd57600080fd5b60006020828403121561227757600080fd5b6118fc8261224e565b60005b8381101561229b578181015183820152602001612283565b838111156113c15750506000910152565b600081518084526122c4816020860160208601612280565b601f01601f19169290920160200192915050565b6020815260006118fc60208301846122ac565b6000602082840312156122fd57600080fd5b5035919050565b6000806040838503121561231757600080fd5b6123208361224e565b946020939093013593505050565b60008060006060848603121561234357600080fd5b61234c8461224e565b925061235a6020850161224e565b9150604084013590509250925092565b634e487b7160e01b600052602160045260246000fd5b60208101600483106123a257634e487b7160e01b600052602160045260246000fd5b91905290565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156123d8576123d86123a8565b604051601f8501601f19908116603f01168101908282118183101715612400576124006123a8565b8160405280935085815286868601111561241957600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561244557600080fd5b81356001600160401b0381111561245b57600080fd5b8201601f8101841361246c57600080fd5b611ccf848235602084016123be565b6020808252825182820181905260009190848201906040850190845b818110156124b357835183529284019291840191600101612497565b50909695505050505050565b80358015158114611afd57600080fd5b6000806000606084860312156124e457600080fd5b6124ed846124bf565b92506124fb602085016124bf565b9150612509604085016124bf565b90509250925092565b6000806040838503121561252557600080fd5b61252e8361224e565b915061253c602084016124bf565b90509250929050565b6000806000806080858703121561255b57600080fd5b6125648561224e565b93506125726020860161224e565b92506040850135915060608501356001600160401b0381111561259457600080fd5b8501601f810187136125a557600080fd5b6125b4878235602084016123be565b91505092959194509250565b6000602082840312156125d257600080fd5b8135600481106118fc57600080fd5b600080604083850312156125f457600080fd5b6125fd8361224e565b915061253c6020840161224e565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061265457607f821691505b60208210811415610ac957634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e65722063616e206e6f742063616c6c20746869732066756e6374696f6e604082015260600190565b6020808252601d908201527f4e65656420746f206f776e206f6e65206f72206d6f726520736f6e6773000000604082015260600190565b6020808252600b908201526a0416d6f756e7420697320360ac1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156127445761274461271c565b500390565b600060001982141561275d5761275d61271c565b5060010190565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082516127e9818460208701612280565b9190910192915050565b600082198211156128065761280661271c565b500190565b60008160001904831182151516156128255761282561271c565b500290565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b8054600090600181811c908083168061289657607f831692505b60208084108214156128b857634e487b7160e01b600052602260045260246000fd5b8180156128cc57600181146128dd5761290a565b60ff1986168952848901965061290a565b60008881526020902060005b868110156129025781548b8201529085019083016128e9565b505084890196505b50505050505092915050565b6000612922828461287c565b6531b6b4b737b960d11b81526006019392505050565b6000612944828461287c565b6530b6b4b737b960d11b81526006019392505050565b6000612966828461287c565b6a3339b430b93836b0b537b960a91b8152600b019392505050565b600061298d828461287c565b647072697a6560d81b81526005019392505050565b6000826129bf57634e487b7160e01b600052601260045260246000fd5b500490565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129f7908301846122ac565b9695505050505050565b600060208284031215612a1357600080fd5b81516118fc8161221b56fea2646970667358221220b34fffb7b09a68b9ad476007f8ea354ebc4f388ddf55a1ff43fb58a2454cdb2864736f6c634300080a0033697066733a2f2f516d654a71396b6e744d3859476a666a63564158506234644339375a67614578635a4e3575394b387a71524e4c362f636a46f33c225ee18c425aba0a70eab95b33b4626233bf401b85f0321082a9b400000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000e686af613e86a0e381a3e598e1f76e89e9dc171100000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000005a697066733a2f2f516d634a704a6a76535678734341505667576b756975655371694753706a5a696a774a5639376a59646f784631442f30326133306161316130303334353739386362333732623962336664346235652e706e67000000000000000000000000000000000000000000000000000000000000000000000000005a697066733a2f2f516d634a704a6a76535678734341505667576b756975655371694753706a5a696a774a5639376a59646f784631442f63303232366230336361363934346265383334356662316231643062666135322e706e67000000000000000000000000000000000000000000000000000000000000000000000000005a697066733a2f2f516d634a704a6a76535678734341505667576b756975655371694753706a5a696a774a5639376a59646f784631442f32633663323833336332613334623039623765386436633765316666356538612e706e67000000000000

Deployed Bytecode

0x6080604052600436106101895760003560e01c806301ffc9a71461018e5780630426c697146101c357806306fdde03146101e5578063081812fc14610207578063095ea7b31461023f57806323b872dd1461025f57806342842e0e1461027f57806346b45af71461029f5780634b4ce512146102b95780634e4500aa146102e65780634eee59b314610306578063582d2abd146103265780636352211e1461033b5780636ba9fd381461035b57806370a0823114610370578063715018a61461039e57806387491c60146103b357806389d5feee146103c85780638da5cb5b146103f557806392843fdb1461040a57806395d89b411461041d578063995e9ce314610432578063a035b1fe14610447578063a22cb46514610463578063b88d4fde14610483578063c87b56dd146104a3578063d547cfb7146104c3578063d5abeb01146104d8578063da7c834f146104ee578063dfbf53ae1461050e578063e53626671461052e578063e985e9c514610543578063f2fde38b14610563578063fde4334014610583575b600080fd5b34801561019a57600080fd5b506101ae6101a9366004612231565b6105a3565b60405190151581526020015b60405180910390f35b3480156101cf57600080fd5b506101e36101de366004612265565b6105f5565b005b3480156101f157600080fd5b506101fa610698565b6040516101ba91906122d8565b34801561021357600080fd5b506102276102223660046122eb565b61072a565b6040516001600160a01b0390911681526020016101ba565b34801561024b57600080fd5b506101e361025a366004612304565b6107b2565b34801561026b57600080fd5b506101e361027a36600461232e565b6107f9565b34801561028b57600080fd5b506101e361029a36600461232e565b610842565b3480156102ab57600080fd5b506007546101ae9060ff1681565b3480156102c557600080fd5b506102d96102d43660046122eb565b610886565b6040516101ba9190612380565b3480156102f257600080fd5b506101fa6103013660046122eb565b6108e6565b34801561031257600080fd5b506101ae610321366004612433565b610acf565b34801561033257600080fd5b506101e3610b04565b34801561034757600080fd5b506102276103563660046122eb565b610c10565b34801561036757600080fd5b506101e3610c87565b34801561037c57600080fd5b5061039061038b366004612265565b610d18565b6040519081526020016101ba565b3480156103aa57600080fd5b506101e3610d9f565b3480156103bf57600080fd5b506101e3610e06565b3480156103d457600080fd5b506103e86103e3366004612265565b610e93565b6040516101ba919061247b565b34801561040157600080fd5b50610227610f9d565b6101e36104183660046124cf565b610fac565b34801561042957600080fd5b506101fa6111f0565b34801561043e57600080fd5b506101e36111ff565b34801561045357600080fd5b5061039067016345785d8a000081565b34801561046f57600080fd5b506101e361047e366004612512565b611339565b34801561048f57600080fd5b506101e361049e366004612545565b61137c565b3480156104af57600080fd5b506101fa6104be3660046122eb565b6113c7565b3480156104cf57600080fd5b506101fa611451565b3480156104e457600080fd5b5061039060085481565b3480156104fa57600080fd5b506103906105093660046125c0565b6114df565b34801561051a57600080fd5b50600a54610227906001600160a01b031681565b34801561053a57600080fd5b506103906114fa565b34801561054f57600080fd5b506101ae61055e3660046125e1565b61150a565b34801561056f57600080fd5b506101e361057e366004612265565b611538565b34801561058f57600080fd5b506101e361059e366004612433565b6115c0565b60006001600160e01b031982166380ac58cd60e01b14806105d457506001600160e01b03198216635b5e139f60e01b145b806105ef57506301ffc9a760e01b6001600160e01b03198316145b92915050565b336105fe610f9d565b6001600160a01b03161461062d5760405162461bcd60e51b81526004016106249061260b565b60405180910390fd5b6001600160a01b0381166106765760405162461bcd60e51b815260206004820152601060248201526f4164647265737320697320656d70747960801b6044820152606401610624565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600180546106a790612640565b80601f01602080910402602001604051908101604052809291908181526020018280546106d390612640565b80156107205780601f106106f557610100808354040283529160200191610720565b820191906000526020600020905b81548152906001019060200180831161070357829003601f168201915b5050505050905090565b6000610735826116ec565b6107965760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610624565b506000908152600560205260409020546001600160a01b031690565b6107ba610f9d565b6001600160a01b0316336001600160a01b031614156107eb5760405162461bcd60e51b815260040161062490612675565b6107f58282611709565b5050565b610801610f9d565b6001600160a01b0316336001600160a01b031614156108325760405162461bcd60e51b815260040161062490612675565b61083d838383611815565b505050565b61084a610f9d565b6001600160a01b0316336001600160a01b0316141561087b5760405162461bcd60e51b815260040161062490612675565b61083d838383611846565b6000610891826116ec565b6108d05760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881b9bdd081b5a5b9d195960821b6044820152606401610624565b5060009081526014602052604090205460ff1690565b6060336108f283610c10565b6001600160a01b0316146109445760405162461bcd60e51b81526020600482015260196024820152782cb7ba903732b2b2103a379037bbb7103a3432903a37b5b2b760391b6044820152606401610624565b60008281526014602052604090205460ff16600381600381111561096a5761096a61236a565b14156109b85760405162461bcd60e51b815260206004820152601e60248201527f546865726520617265206f6e6c7920636c75657320666f7220736f6e677300006044820152606401610624565b60018160038111156109cc576109cc61236a565b1415610a6557600e80546109df90612640565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0b90612640565b8015610a585780601f10610a2d57610100808354040283529160200191610a58565b820191906000526020600020905b815481529060010190602001808311610a3b57829003601f168201915b5050505050915050919050565b6000816003811115610a7957610a7961236a565b1415610a8c57600d80546109df90612640565b6002816003811115610aa057610aa061236a565b1415610ab357600f80546109df90612640565b5050604080516020810190915260008152919050565b50919050565b600080610adb33610d18565b11610af85760405162461bcd60e51b8152600401610624906126aa565b6105ef82600b54611861565b33610b0d610f9d565b6001600160a01b031614610b335760405162461bcd60e51b81526004016106249061260b565b6000610b53601054610b4d610b466118b0565b47906118f0565b90611903565b905060008111610b755760405162461bcd60e51b8152600401610624906126e1565b600c546040516000916001600160a01b03169083905b60006040518083038185875af1925050503d8060008114610bc8576040519150601f19603f3d011682016040523d82523d6000602084013e610bcd565b606091505b50509050806107f55760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610624565b6000818152600360205260408120546001600160a01b0316806105ef5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610624565b33610c90610f9d565b6001600160a01b031614610cb65760405162461bcd60e51b81526004016106249061260b565b60075460ff1615610d095760405162461bcd60e51b815260206004820181905260248201527f4d696e74696e67206e6565647320746f20626520636c6f7365642066697273746044820152606401610624565b6007805460ff19166001179055565b60006001600160a01b038216610d835760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610624565b506001600160a01b031660009081526004602052604090205490565b33610da8610f9d565b6001600160a01b031614610dce5760405162461bcd60e51b81526004016106249061260b565b60405162461bcd60e51b815260206004820152600d60248201526c139bdd081cdd5c1c1bdc9d1959609a1b6044820152606401610624565b33610e0f610f9d565b6001600160a01b031614610e355760405162461bcd60e51b81526004016106249061260b565b60075460ff16610e875760405162461bcd60e51b815260206004820152601e60248201527f4d696e74696e67206e6565647320746f206265206f70656e20666972737400006044820152606401610624565b6007805460ff19169055565b60606000610ea083610d18565b905080610ebd575050604080516000815260208101909152919050565b6000816001600160401b03811115610ed757610ed76123a8565b604051908082528060200260200182016040528015610f00578160200160208202803683370190505b509050600060015b600854610f1690600361190f565b8111610f9357856001600160a01b0316610f2f82610c10565b6001600160a01b03161415610f815780838381518110610f5157610f51612706565b6020908102919091010152610f67600185612732565b821415610f7357610f93565b81610f7d81612749565b9250505b80610f8b81612749565b915050610f08565b5090949350505050565b6000546001600160a01b031690565b610fb4610f9d565b6001600160a01b0316336001600160a01b03161415610fe55760405162461bcd60e51b815260040161062490612675565b60075460ff166110345760405162461bcd60e51b815260206004820152601a602482015279135a5b9d1a5b99c81a5cc81b9bdd08185b1b1bddd959081e595d60321b6044820152606401610624565b828061103d5750815b806110455750805b6110915760405162461bcd60e51b815260206004820152601e60248201527f4e65656420746f207069636b206174206c65617374206f6e6520736f6e6700006044820152606401610624565b600083156110fc576008546110c860136000805b60038111156110b6576110b661236a565b81526020019081526020016000205490565b106110e55760405162461bcd60e51b815260040161062490612764565b806110ef81612749565b9150506110fc600061191b565b8215611147576008546111136013600060016110a5565b106111305760405162461bcd60e51b815260040161062490612764565b8061113a81612749565b915050611147600161191b565b81156111925760085461115e6013600060026110a5565b1061117b5760405162461bcd60e51b815260040161062490612764565b8061118581612749565b915050611192600261191b565b60006111a667016345785d8a00008361190f565b90508034146111e95760405162461bcd60e51b815260206004820152600f60248201526e496e636f727265637420707269636560881b6044820152606401610624565b5050505050565b6060600280546106a790612640565b600a546001600160a01b03166112475760405162461bcd60e51b815260206004820152600d60248201526c139bc81dda5b9b995c881e595d609a1b6044820152606401610624565b600a546001600160a01b0316331461129d5760405162461bcd60e51b81526020600482015260196024820152782cb7ba903732b2b2103a37903132903a3432903bb4b73732b960391b6044820152606401610624565b60006112b36010546112ad6118b0565b906118f0565b9050600081116112d55760405162461bcd60e51b8152600401610624906126e1565b6010546112e29082611903565b60105560115460ff16611324576011805460ff191660019081179091556113249061130c90610c10565b336001604051806020016040528060008152506119b1565b6000336001600160a01b031682604051610b8b565b611341610f9d565b6001600160a01b0316336001600160a01b031614156113725760405162461bcd60e51b815260040161062490612675565b6107f582826119e4565b611384610f9d565b6001600160a01b0316336001600160a01b031614156113b55760405162461bcd60e51b815260040161062490612675565b6113c1848484846119ef565b50505050565b60606113d2826116ec565b6114365760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610624565b6000828152601460205260409020546105ef9060ff16611a21565b6009805461145e90612640565b80601f016020809104026020016040519081016040528092919081815260200182805461148a90612640565b80156114d75780601f106114ac576101008083540402835291602001916114d7565b820191906000526020600020905b8154815290600101906020018083116114ba57829003601f168201915b505050505081565b60006105ef601360008460038111156110a5576110a561236a565b600061150560125490565b905090565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b33611541610f9d565b6001600160a01b0316146115675760405162461bcd60e51b81526004016106249061260b565b61156f610f9d565b6001600160a01b03166115826001610c10565b6001600160a01b031614156115b4576115b461159c610f9d565b826001604051806020016040528060008152506119b1565b6115bd81611b02565b50565b600a546001600160a01b0316156116135760405162461bcd60e51b8152602060048201526017602482015276486173206265656e20736f6c76656420616c726561647960481b6044820152606401610624565b61161b610f9d565b6001600160a01b0316336001600160a01b0316141561164c5760405162461bcd60e51b815260040161062490612675565b600061165733610d18565b116116745760405162461bcd60e51b8152600401610624906126aa565b600061168282600b54611861565b9050806116c35760405162461bcd60e51b815260206004820152600f60248201526e496e636f727265637420677565737360881b6044820152606401610624565b5050600a80546001600160a01b03191633179055565b80546001019055565b5490565b3b151590565b6000908152600360205260409020546001600160a01b0316151590565b600061171482610c10565b9050806001600160a01b0316836001600160a01b031614156117825760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610624565b336001600160a01b038216148061179e575061179e813361150a565b61180b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610624565b61083d8383611b9f565b61181f3382611c0d565b61183b5760405162461bcd60e51b815260040161062490612786565b61083d838383611cd7565b61083d8383836040518060200160405280600081525061137c565b6000808360405160200161187591906127d7565b60408051808303601f190181528282528051602091820120818401528151808403820181529282019091528151910120929092149392505050565b6000806118c060016112ad6114fa565b90506118ea60646118e460056118de8567016345785d8a000061190f565b9061190f565b90611e77565b91505090565b60006118fc8284612732565b9392505050565b60006118fc82846127f3565b60006118fc828461280b565b611929601280546001019055565b600061193460125490565b60008181526014602052604090208054919250839160ff191660018360038111156119615761196161236a565b02179055506119a76013600084600381111561197f5761197f61236a565b60038111156119905761199061236a565b815260200190815260200160002080546001019055565b6107f53382611ed3565b6119bc848484611cd7565b6119c884848484611eed565b6113c15760405162461bcd60e51b81526004016106249061282a565b6107f5338383611feb565b6119f93383611c0d565b611a155760405162461bcd60e51b815260040161062490612786565b6113c1848484846119b1565b60606000826003811115611a3757611a3761236a565b1415611a65576009604051602001611a4f9190612916565b6040516020818303038152906040529050919050565b6001826003811115611a7957611a7961236a565b1415611a91576009604051602001611a4f9190612938565b6002826003811115611aa557611aa561236a565b1415611abd576009604051602001611a4f919061295a565b6003826003811115611ad157611ad161236a565b1415611ae9576009604051602001611a4f9190612981565b505060408051602081019091526000815290565b919050565b33611b0b610f9d565b6001600160a01b031614611b315760405162461bcd60e51b81526004016106249061260b565b6001600160a01b038116611b965760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610624565b6115bd81611e83565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611bd482610c10565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611c18826116ec565b611c795760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610624565b6000611c8483610c10565b9050806001600160a01b0316846001600160a01b03161480611cbf5750836001600160a01b0316611cb48461072a565b6001600160a01b0316145b80611ccf5750611ccf818561150a565b949350505050565b826001600160a01b0316611cea82610c10565b6001600160a01b031614611d525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610624565b6001600160a01b038216611db45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610624565b611dbf600082611b9f565b6001600160a01b0383166000908152600460205260408120805460019290611de8908490612732565b90915550506001600160a01b0382166000908152600460205260408120805460019290611e169084906127f3565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006118fc82846129a2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6107f58282604051806020016040528060008152506120b6565b60006001600160a01b0384163b15611fe057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f319033908990889088906004016129c4565b6020604051808303816000875af1925050508015611f6c575060408051601f3d908101601f19168201909252611f6991810190612a01565b60015b611fc6573d808015611f9a576040519150601f19603f3d011682016040523d82523d6000602084013e611f9f565b606091505b508051611fbe5760405162461bcd60e51b81526004016106249061282a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ccf565b506001949350505050565b816001600160a01b0316836001600160a01b031614156120495760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610624565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6120c083836120e9565b6120cd6000848484611eed565b61083d5760405162461bcd60e51b81526004016106249061282a565b6001600160a01b03821661213f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610624565b612148816116ec565b156121945760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610624565b6001600160a01b03821660009081526004602052604081208054600192906121bd9084906127f3565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b0319811681146115bd57600080fd5b60006020828403121561224357600080fd5b81356118fc8161221b565b80356001600160a01b0381168114611afd57600080fd5b60006020828403121561227757600080fd5b6118fc8261224e565b60005b8381101561229b578181015183820152602001612283565b838111156113c15750506000910152565b600081518084526122c4816020860160208601612280565b601f01601f19169290920160200192915050565b6020815260006118fc60208301846122ac565b6000602082840312156122fd57600080fd5b5035919050565b6000806040838503121561231757600080fd5b6123208361224e565b946020939093013593505050565b60008060006060848603121561234357600080fd5b61234c8461224e565b925061235a6020850161224e565b9150604084013590509250925092565b634e487b7160e01b600052602160045260246000fd5b60208101600483106123a257634e487b7160e01b600052602160045260246000fd5b91905290565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156123d8576123d86123a8565b604051601f8501601f19908116603f01168101908282118183101715612400576124006123a8565b8160405280935085815286868601111561241957600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561244557600080fd5b81356001600160401b0381111561245b57600080fd5b8201601f8101841361246c57600080fd5b611ccf848235602084016123be565b6020808252825182820181905260009190848201906040850190845b818110156124b357835183529284019291840191600101612497565b50909695505050505050565b80358015158114611afd57600080fd5b6000806000606084860312156124e457600080fd5b6124ed846124bf565b92506124fb602085016124bf565b9150612509604085016124bf565b90509250925092565b6000806040838503121561252557600080fd5b61252e8361224e565b915061253c602084016124bf565b90509250929050565b6000806000806080858703121561255b57600080fd5b6125648561224e565b93506125726020860161224e565b92506040850135915060608501356001600160401b0381111561259457600080fd5b8501601f810187136125a557600080fd5b6125b4878235602084016123be565b91505092959194509250565b6000602082840312156125d257600080fd5b8135600481106118fc57600080fd5b600080604083850312156125f457600080fd5b6125fd8361224e565b915061253c6020840161224e565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061265457607f821691505b60208210811415610ac957634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e65722063616e206e6f742063616c6c20746869732066756e6374696f6e604082015260600190565b6020808252601d908201527f4e65656420746f206f776e206f6e65206f72206d6f726520736f6e6773000000604082015260600190565b6020808252600b908201526a0416d6f756e7420697320360ac1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156127445761274461271c565b500390565b600060001982141561275d5761275d61271c565b5060010190565b60208082526008908201526714dbdb19081bdd5d60c21b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082516127e9818460208701612280565b9190910192915050565b600082198211156128065761280661271c565b500190565b60008160001904831182151516156128255761282561271c565b500290565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b8054600090600181811c908083168061289657607f831692505b60208084108214156128b857634e487b7160e01b600052602260045260246000fd5b8180156128cc57600181146128dd5761290a565b60ff1986168952848901965061290a565b60008881526020902060005b868110156129025781548b8201529085019083016128e9565b505084890196505b50505050505092915050565b6000612922828461287c565b6531b6b4b737b960d11b81526006019392505050565b6000612944828461287c565b6530b6b4b737b960d11b81526006019392505050565b6000612966828461287c565b6a3339b430b93836b0b537b960a91b8152600b019392505050565b600061298d828461287c565b647072697a6560d81b81526005019392505050565b6000826129bf57634e487b7160e01b600052601260045260246000fd5b500490565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129f7908301846122ac565b9695505050505050565b600060208284031215612a1357600080fd5b81516118fc8161221b56fea2646970667358221220b34fffb7b09a68b9ad476007f8ea354ebc4f388ddf55a1ff43fb58a2454cdb2864736f6c634300080a0033

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

636a46f33c225ee18c425aba0a70eab95b33b4626233bf401b85f0321082a9b400000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000e686af613e86a0e381a3e598e1f76e89e9dc171100000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000005a697066733a2f2f516d634a704a6a76535678734341505667576b756975655371694753706a5a696a774a5639376a59646f784631442f30326133306161316130303334353739386362333732623962336664346235652e706e67000000000000000000000000000000000000000000000000000000000000000000000000005a697066733a2f2f516d634a704a6a76535678734341505667576b756975655371694753706a5a696a774a5639376a59646f784631442f63303232366230336361363934346265383334356662316231643062666135322e706e67000000000000000000000000000000000000000000000000000000000000000000000000005a697066733a2f2f516d634a704a6a76535678734341505667576b756975655371694753706a5a696a774a5639376a59646f784631442f32633663323833336332613334623039623765386436633765316666356538612e706e67000000000000

-----Decoded View---------------
Arg [0] : secret (bytes32): 0x636a46f33c225ee18c425aba0a70eab95b33b4626233bf401b85f0321082a9b4
Arg [1] : max (uint256): 500
Arg [2] : payoutAddress (address): 0xe686af613e86A0e381A3e598e1F76e89E9dC1711
Arg [3] : clueCMinor (string): ipfs://QmcJpJjvSVxsCAPVgWkuiueSqiGSpjZijwJV97jYdoxF1D/02a30aa1a00345798cb372b9b3fd4b5e.png
Arg [4] : clueAMinor (string): ipfs://QmcJpJjvSVxsCAPVgWkuiueSqiGSpjZijwJV97jYdoxF1D/c0226b03ca6944be8345fb1b1d0bfa52.png
Arg [5] : clueFSharpMinor (string): ipfs://QmcJpJjvSVxsCAPVgWkuiueSqiGSpjZijwJV97jYdoxF1D/2c6c2833c2a34b09b7e8d6c7e1ff5e8a.png

-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 636a46f33c225ee18c425aba0a70eab95b33b4626233bf401b85f0321082a9b4
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [2] : 000000000000000000000000e686af613e86a0e381a3e598e1f76e89e9dc1711
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [6] : 000000000000000000000000000000000000000000000000000000000000005a
Arg [7] : 697066733a2f2f516d634a704a6a76535678734341505667576b756975655371
Arg [8] : 694753706a5a696a774a5639376a59646f784631442f30326133306161316130
Arg [9] : 303334353739386362333732623962336664346235652e706e67000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000005a
Arg [11] : 697066733a2f2f516d634a704a6a76535678734341505667576b756975655371
Arg [12] : 694753706a5a696a774a5639376a59646f784631442f63303232366230336361
Arg [13] : 363934346265383334356662316231643062666135322e706e67000000000000
Arg [14] : 000000000000000000000000000000000000000000000000000000000000005a
Arg [15] : 697066733a2f2f516d634a704a6a76535678734341505667576b756975655371
Arg [16] : 694753706a5a696a774a5639376a59646f784631442f32633663323833336332
Arg [17] : 613334623039623765386436633765316666356538612e706e67000000000000


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.