ETH Price: $2,017.84 (-4.79%)

Contract

0x765dc3F14F681E73CBAcc64dd2bAb8b8d2a1c2Af
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
_unstake Many177089822023-07-16 23:01:11963 days ago1689548471IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0113679614.03213193
_unstake Many167474822023-03-03 10:46:111099 days ago1677840371IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0187703318.67522591
_unstake Many167184152023-02-27 8:42:351103 days ago1677487355IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0308514716.30308923
_unstake Many165194722023-01-30 11:54:231131 days ago1675079663IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0037238115.82145725
_unstake Many165005172023-01-27 20:24:591133 days ago1674851099IN
0x765dc3F1...8d2a1c2Af
0 ETH0.037680920.65681651
_unstake Many161862522022-12-14 23:34:471177 days ago1671060887IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0122297713.8064576
_unstake Many161402892022-12-08 13:28:471184 days ago1670506127IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0216617414.28540577
Setxlarge Reward161339552022-12-07 16:15:471184 days ago1670429747IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0004202814.64884384
Setlarge Reward161339542022-12-07 16:15:351184 days ago1670429735IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0003945713.77434587
Setmedium Reward161339532022-12-07 16:15:231184 days ago1670429723IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0004076614.24140578
Setsmall Reward161339532022-12-07 16:15:231184 days ago1670429723IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0004076614.24140578
_unstake Many159993952022-11-18 20:50:231203 days ago1668804623IN
0x765dc3F1...8d2a1c2Af
0 ETH0.014672212.67587103
_unstake Many159486932022-11-11 18:54:351210 days ago1668192875IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0315191716.16769193
_unstake Many158965672022-11-04 12:11:351218 days ago1667563895IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0111164112.28238037
Stake158604942022-10-30 11:11:231223 days ago1667128283IN
0x765dc3F1...8d2a1c2Af
0 ETH0.003901939.64336924
_unstake Many158604662022-10-30 11:05:471223 days ago1667127947IN
0x765dc3F1...8d2a1c2Af
0 ETH0.006828017.08018938
_unstake Many158500182022-10-29 0:03:351224 days ago1667001815IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0145947816.12559203
_unstake Many158464092022-10-28 11:58:231225 days ago1666958303IN
0x765dc3F1...8d2a1c2Af
0 ETH0.016084389.77497229
_unstake Many158400652022-10-27 14:39:471225 days ago1666881587IN
0x765dc3F1...8d2a1c2Af
0 ETH0.02024517.91574019
_unstake Many158400622022-10-27 14:39:111225 days ago1666881551IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0249404119.11592736
_unstake Many158399832022-10-27 14:23:231225 days ago1666880603IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0134914418.38750266
_unstake Many158396522022-10-27 13:16:351226 days ago1666876595IN
0x765dc3F1...8d2a1c2Af
0 ETH0.002767819.44885711
_unstake Many158396492022-10-27 13:15:591226 days ago1666876559IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0078885719.07181554
_unstake Many158396472022-10-27 13:15:351226 days ago1666876535IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0028418517.71743576
Stake158396412022-10-27 13:14:231226 days ago1666876463IN
0x765dc3F1...8d2a1c2Af
0 ETH0.0300786720.9573641
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SUN_RISE_NFT_STAKING

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-06-27
*/

// File: @openzeppelin/contracts/utils/math/SafeMath.sol


// OpenZeppelin Contracts (last updated v4.6.0) (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 subtraction 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: @openzeppelin/contracts/utils/Strings.sol


// 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: @openzeppelin/contracts/utils/Context.sol


// 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: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// 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: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;


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

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

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

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/token/ERC721/ERC721.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;








/**
 * @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 overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not 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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits 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 {}

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

// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;



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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: Shadow_Descendants.sol

//SPDX-License-Identifier: MIT

pragma solidity >=0.7.0 <0.9.0;




contract Shadow_Descendants is ERC721Enumerable, Ownable {
  using Strings for uint256;

  string public baseURI;
  string public baseExtension = ".json";
  string public notRevealedUri;
  uint256 public cost = 0.000001 ether;
  uint256 public maxSupply = 10500;
  uint256 public nftPerAddressLimit = 15;
  bool public paused = false;
  bool public revealed = true;
  mapping(address => uint256) public addressMintedBalance;
  address payable private devguy = payable(0x41D413d4c5Ba84E37428e1de71cc0c74c6cb44f4);
  constructor() ERC721("Shadow Descendants", "SDS") {}

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

  // public mint
  function mint(uint256 _mintAmount) public payable {
    require(!paused, "the mint is paused");
    uint256 supply = totalSupply();
    //require(_mintAmount > 0, "need to mint at least 1 NFT");
    require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded");

    if (msg.sender != owner()) {
        require(addressMintedBalance[msg.sender] + _mintAmount <= nftPerAddressLimit, "max NFT per address exceeded");
        require(msg.value >= cost * _mintAmount, "insufficient funds");
    }
    
    for (uint256 i = 1; i <= _mintAmount; i++) {
      addressMintedBalance[msg.sender]++;
      _safeMint(msg.sender, supply + i);
    }
  }

  function walletOfOwner(address _owner)
    public
    view
    returns (uint256[] memory)
  {
    uint256 ownerTokenCount = balanceOf(_owner);
    uint256[] memory tokenIds = new uint256[](ownerTokenCount);
    for (uint256 i; i < ownerTokenCount; i++) {
      tokenIds[i] = tokenOfOwnerByIndex(_owner, i);
    }
    return tokenIds;
  }

  function tokenURI(uint256 tokenId)
    public
    view
    virtual
    override
    returns (string memory)
  {
    require(
      _exists(tokenId),
      "ERC721Metadata: URI query for nonexistent token"
    );
    
    if(revealed == false) {
        return notRevealedUri;
    }

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

  //only owner
  function reveal() public onlyOwner {
      revealed = true;
  }
  
  function setNftPerAddressLimit(uint256 _limit) public onlyOwner {
    nftPerAddressLimit = _limit;
  }
  
  function setCost(uint256 _newCost) public onlyOwner {
    cost = _newCost;
  }

  function setBaseURI(string memory _newBaseURI) public onlyOwner {
    baseURI = _newBaseURI;
  }

  function setBaseExtension(string memory _newBaseExtension) public onlyOwner {
    baseExtension = _newBaseExtension;
  }
  
  function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner {
    notRevealedUri = _notRevealedURI;
  }

  function pause(bool _state) public onlyOwner {
    paused = _state;
  }
 
  function withdraw() external onlyOwner {
    uint part = address(this).balance / 100 * 5;
    devguy.transfer(part);
   
    payable(owner()).transfer(address(this).balance);
  }
}
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File: Nftmint.sol



pragma solidity ^0.8.4 ;





contract SUN_RISE_NFT_STAKING is Ownable, IERC721Receiver {
    using SafeMath for uint256;
    IERC20 reward_token;
    Shadow_Descendants nft;

    enum period{SMALL, MEDIUM, LARGE, XLARGE}

    uint256 public totalStaked;
    uint256 public smallOpt = 30;
    uint256 public mediumOpt = 60;
    uint256 public largeOpt = 90;
    uint256 public xlargeOpt = 120;
    uint256 public smallReward = 5000000000000000;
    uint256 public mediumReward = 12000000000000000;
    uint256 public largeReward = 50000000000000000;
    uint256 public xlargeReward = 60000000000000000;

    struct Stake {
        uint24 tokenId; 
        uint256 timestamp;
        period stakingPeriod;
        address owner;
    }

    mapping(uint256 => Stake) public vault;

    event NFTStaked(address owner, uint256 tokenId, uint256 value);
    event NFTUnstaked(address owner, uint256 tokenId, uint256 value);
    event Claimed(address owner, uint256 amount);


    constructor(address _reward_token, Shadow_Descendants _nft) {
        reward_token = IERC20(_reward_token);
        nft = _nft;
    }

    function stake(uint256[] calldata tokenIds, period _stakingPeriod) external {
        uint256 tokenId;
        totalStaked += tokenIds.length;
        for (uint i = 0; i < tokenIds.length; i++) {
            tokenId = tokenIds[i];
            require(nft.ownerOf(tokenId) == msg.sender, "not your token");
            require(vault[tokenId].tokenId == 0, 'already staked');

            nft.transferFrom(msg.sender, address(this), tokenId);
            emit NFTStaked(msg.sender, tokenId, block.timestamp);

            vault[tokenId] = Stake({
                owner: msg.sender,
                tokenId: uint24(tokenId),
                timestamp: block.timestamp,
                stakingPeriod: _stakingPeriod
            });
        }
    }

    function _unstakeMany(uint256[] calldata tokenIds) external {
        uint256 tokenId;
        totalStaked -= tokenIds.length;
        uint256 earned = 0;
        for (uint i = 0; i < tokenIds.length; i++) {
            tokenId = tokenIds[i];
            Stake memory staked = vault[tokenId];
            require(staked.owner == msg.sender, "not an owner");
            if(validateStakingPeriod(staked)) {
                earned += getPeriodReward(staked.stakingPeriod) * 10**5; // multiply rewards to token decimals
            }
            delete vault[tokenId];
            emit NFTUnstaked(msg.sender, tokenId, block.timestamp);
            nft.transferFrom(address(this), msg.sender, tokenId);
        }
        if(earned > 0) {
            reward_token.transferFrom(owner(), msg.sender, earned);
            emit Claimed(msg.sender, earned);
        }
    }

    function validateStakingPeriod(Stake memory staked) internal view returns(bool) {
        uint256 periodValue = getPeriodValue(staked.stakingPeriod);
        return block.timestamp >= (staked.timestamp + (86400 * periodValue));
        // return block.timestamp >= (staked.timestamp + 900);
    }

    function getPeriodValue(period _stPeriod) internal view returns(uint256) {
        return _stPeriod == period.SMALL ? smallOpt : _stPeriod == period.MEDIUM ? mediumOpt : _stPeriod == period.LARGE ? largeOpt : _stPeriod == period.XLARGE ? xlargeOpt : 0;
    }


    function getNFTStakeReward(period _stPeriod, uint256 _stakeTimestamp) internal view returns (uint256) {
        uint256 totalStakeReward = getPeriodReward(_stPeriod);
        uint256 noOfDays = (block.timestamp - _stakeTimestamp).div(60).div(60).div(24);
        noOfDays = (noOfDays < 1) ? 1 : noOfDays;
        uint256 periodValue = getPeriodValue(_stPeriod);
        return totalStakeReward.div(periodValue).mul(noOfDays);
    }

    function getPeriodReward(period _stPeriod) internal view returns(uint256) {
        return _stPeriod == period.SMALL ? smallReward : _stPeriod == period.MEDIUM ? mediumReward : _stPeriod == period.LARGE ? largeReward : _stPeriod == period.XLARGE ? xlargeReward : 0;
    }

    function balanceOf(address account) public view returns (uint256) {
        uint256 balance = 0;
        uint256 supply = nft.totalSupply();
        for(uint i = 1; i <= supply; i++) {
            if (vault[i].owner == account) {
                balance += 1;
            }
        }
        return balance;
    }

    function getUserStakedTokens(address account) public view returns (uint256[] memory) {
        uint256 balance = balanceOf(account);
        uint256[] memory tokenIds = new uint[](balance);
        uint256 supply = nft.totalSupply();
        uint256 index = 0;
        for(uint i = 1; i <= supply; i++) {
            if (vault[i].owner == account) {
                tokenIds[index] = vault[i].tokenId;
                index++;
            }
        }
        return tokenIds;
    }


    function setSmallOpt(uint256 _periodOpt) public onlyOwner {
        smallOpt = _periodOpt;
    }

    function setMediumOpt(uint256 _periodOpt) public onlyOwner {
        mediumOpt = _periodOpt;
    }

    function setLargeOpt(uint256 _periodOpt) public onlyOwner {
        largeOpt = _periodOpt;
    }

    function setXlargeOpt(uint256 _periodOpt) public onlyOwner {
        xlargeOpt = _periodOpt;
    }

    
    function setsmallReward(uint256 _reward) public onlyOwner {
        smallReward = _reward;
    }

    function setmediumReward(uint256 _reward) public onlyOwner {
        mediumReward = _reward;
    }

    function setlargeReward(uint256 _reward) public onlyOwner {
        largeReward = _reward;
    }

    function setxlargeReward(uint256 _reward) public onlyOwner {
        xlargeReward = _reward;
    }

    function onERC721Received(
        address,
        address from,
        uint256,
        bytes calldata
    ) external pure override returns (bytes4) {
      require(from == address(0x0), "Cannot send nfts to Vault directly");
      return IERC721Receiver.onERC721Received.selector;
    }

}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_reward_token","type":"address"},{"internalType":"contract Shadow_Descendants","name":"_nft","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"NFTStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"NFTUnstaked","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"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"_unstakeMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getUserStakedTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"largeOpt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"largeReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mediumOpt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mediumReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_periodOpt","type":"uint256"}],"name":"setLargeOpt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_periodOpt","type":"uint256"}],"name":"setMediumOpt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_periodOpt","type":"uint256"}],"name":"setSmallOpt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_periodOpt","type":"uint256"}],"name":"setXlargeOpt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"setlargeReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"setmediumReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"setsmallReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"setxlargeReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"smallOpt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"smallReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"enum SUN_RISE_NFT_STAKING.period","name":"_stakingPeriod","type":"uint8"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vault","outputs":[{"internalType":"uint24","name":"tokenId","type":"uint24"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"enum SUN_RISE_NFT_STAKING.period","name":"stakingPeriod","type":"uint8"},{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"xlargeOpt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"xlargeReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052601e600455603c600555605a60065560786007556611c37937e08000600855662aa1efb94e000060095566b1a2bc2ec50000600a5566d529ae9e860000600b553480156200005157600080fd5b50604051620015d5380380620015d5833981016040819052620000749162000101565b6200007f33620000b1565b600180546001600160a01b039384166001600160a01b0319918216179091556002805492909316911617905562000159565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080604083850312156200011557600080fd5b8251620001228162000140565b6020840151909250620001358162000140565b809150509250929050565b6001600160a01b03811681146200015657600080fd5b50565b61146c80620001696000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c8063817b1cd2116100de578063aea4c11e11610097578063d1f1a8cf11610071578063d1f1a8cf14610362578063dec9395614610375578063ebbefa9214610388578063f2fde38b1461039157600080fd5b8063aea4c11e14610329578063ca31d79c1461033c578063d1ca41a91461034f57600080fd5b8063817b1cd21461027b57806381a36fb6146102845780638da5cb5b146102dc578063a5d8d7de146102f7578063a7f6488114610300578063ae1a01a21461030957600080fd5b80633646a87e1161014b5780635db5b7d1116101255780635db5b7d11461023a57806370a082311461024d578063715018a6146102605780638083a7fc1461026857600080fd5b80633646a87e1461021f5780634e077aa2146102285780635c420f1f1461023157600080fd5b80630d2721b114610193578063150b7a02146101a85780631e604463146101d95780631edd0169146101ec578063251abf701461020357806334a214b61461020c575b600080fd5b6101a66101a1366004611264565b6103a4565b005b6101bb6101b6366004611106565b6103dc565b6040516001600160e01b031990911681526020015b60405180910390f35b6101a66101e7366004611264565b610452565b6101f5600b5481565b6040519081526020016101d0565b6101f560095481565b6101a661021a366004611264565b610481565b6101f5600a5481565b6101f560085481565b6101f560055481565b6101a6610248366004611264565b6104b0565b6101f561025b3660046110c5565b6104df565b6101a66105cd565b6101a6610276366004611264565b610603565b6101f560035481565b6102cc610292366004611264565b600c6020526000908152604090208054600182015460029092015462ffffff909116919060ff81169061010090046001600160a01b031684565b6040516101d0949392919061130f565b6000546040516001600160a01b0390911681526020016101d0565b6101f560075481565b6101f560065481565b61031c6103173660046110c5565b610632565b6040516101d09190611296565b6101a6610337366004611264565b6107a9565b6101a661034a3660046111a5565b6107d8565b6101a661035d3660046111e7565b610afd565b6101a6610370366004611264565b610dde565b6101a6610383366004611264565b610e0d565b6101f560045481565b6101a661039f3660046110c5565b610e3c565b6000546001600160a01b031633146103d75760405162461bcd60e51b81526004016103ce906112da565b60405180910390fd5b600755565b60006001600160a01b038516156104405760405162461bcd60e51b815260206004820152602260248201527f43616e6e6f742073656e64206e66747320746f205661756c74206469726563746044820152616c7960f01b60648201526084016103ce565b50630a85bd0160e11b95945050505050565b6000546001600160a01b0316331461047c5760405162461bcd60e51b81526004016103ce906112da565b600655565b6000546001600160a01b031633146104ab5760405162461bcd60e51b81526004016103ce906112da565b600455565b6000546001600160a01b031633146104da5760405162461bcd60e51b81526004016103ce906112da565b600855565b600080600090506000600260009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561053657600080fd5b505afa15801561054a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056e919061127d565b905060015b8181116105c4576000818152600c60205260409020600201546001600160a01b038681166101009092041614156105b2576105af600184611360565b92505b806105bc816113ae565b915050610573565b50909392505050565b6000546001600160a01b031633146105f75760405162461bcd60e51b81526004016103ce906112da565b6106016000610ed7565b565b6000546001600160a01b0316331461062d5760405162461bcd60e51b81526004016103ce906112da565b600b55565b6060600061063f836104df565b905060008167ffffffffffffffff81111561065c5761065c61140b565b604051908082528060200260200182016040528015610685578160200160208202803683370190505b5090506000600260009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156106d857600080fd5b505afa1580156106ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610710919061127d565b9050600060015b82811161079e576000818152600c60205260409020600201546001600160a01b0388811661010090920416141561078c576000818152600c6020526040902054845162ffffff90911690859084908110610773576107736113f5565b602090810291909101015281610788816113ae565b9250505b80610796816113ae565b915050610717565b509195945050505050565b6000546001600160a01b031633146107d35760405162461bcd60e51b81526004016103ce906112da565b600955565b600082829050600360008282546107ef9190611397565b9091555060009050805b83811015610a0c57848482818110610813576108136113f5565b602090810292909201356000818152600c845260408082208151608081018352815462ffffff16815260018201549681019690965260028101549398509194935090919083019060ff16600381111561086e5761086e6113df565b600381111561087f5761087f6113df565b8152600291909101546001600160a01b03610100909104811660209092019190915260608201519192501633146108e75760405162461bcd60e51b815260206004820152600c60248201526b3737ba1030b71037bbb732b960a11b60448201526064016103ce565b6108f081610f27565b1561091c576109028160400151610f5f565b61090f90620186a0611378565b6109199084611360565b92505b6000848152600c60209081526040808320805462ffffff191681556001810193909355600290920180546001600160a81b03191690558151338152908101869052428183015290517fc486b9458a8637650d84d262414833a5a457bc91ae86b7da110386c8c3fa255b9181900360600190a16002546040516323b872dd60e01b8152306004820152336024820152604481018690526001600160a01b03909116906323b872dd90606401600060405180830381600087803b1580156109e057600080fd5b505af11580156109f4573d6000803e3d6000fd5b50505050508080610a04906113ae565b9150506107f9565b508015610af7576001546001600160a01b03166323b872dd610a366000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015233602482015260448101849052606401602060405180830381600087803b158015610a8457600080fd5b505af1158015610a98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abc9190611242565b5060408051338152602081018390527fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a910160405180910390a15b50505050565b60008383905060036000828254610b149190611360565b90915550600090505b83811015610dd757848482818110610b3757610b376113f5565b6002546040516331a9108f60e11b8152602092909202939093013560048201819052945033926001600160a01b03169150636352211e9060240160206040518083038186803b158015610b8957600080fd5b505afa158015610b9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc191906110e9565b6001600160a01b031614610c085760405162461bcd60e51b815260206004820152600e60248201526d3737ba103cb7bab9103a37b5b2b760911b60448201526064016103ce565b6000828152600c602052604090205462ffffff1615610c5a5760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481cdd185ad95960921b60448201526064016103ce565b6002546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd90606401600060405180830381600087803b158015610cac57600080fd5b505af1158015610cc0573d6000803e3d6000fd5b50506040805133815260208101869052428183015290517f36b3725f1783bad4ff05b7f4c077c3aa68eeb23a4d054ba189db4d01ac278d399350908190036060019150a160405180608001604052808362ffffff168152602001428152602001846003811115610d3257610d326113df565b8152336020918201526000848152600c82526040908190208351815462ffffff191662ffffff90911617815591830151600180840191909155908301516002830180549192909160ff191690836003811115610d9057610d906113df565b021790555060609190910151600290910180546001600160a01b0390921661010002610100600160a81b031990921691909117905580610dcf816113ae565b915050610b1d565b5050505050565b6000546001600160a01b03163314610e085760405162461bcd60e51b81526004016103ce906112da565b600555565b6000546001600160a01b03163314610e375760405162461bcd60e51b81526004016103ce906112da565b600a55565b6000546001600160a01b03163314610e665760405162461bcd60e51b81526004016103ce906112da565b6001600160a01b038116610ecb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103ce565b610ed481610ed7565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080610f378360400151610fed565b9050610f468162015180611378565b8360200151610f559190611360565b4210159392505050565b600080826003811115610f7457610f746113df565b14610fe3576001826003811115610f8d57610f8d6113df565b14610fdb576002826003811115610fa657610fa66113df565b14610fd3576003826003811115610fbf57610fbf6113df565b14610fcb576000610fe7565b600b54610fe7565b600a54610fe7565b600954610fe7565b6008545b92915050565b600080826003811115611002576110026113df565b1461107157600182600381111561101b5761101b6113df565b14611069576002826003811115611034576110346113df565b1461106157600382600381111561104d5761104d6113df565b14611059576000610fe7565b600754610fe7565b600654610fe7565b600554610fe7565b505060045490565b60008083601f84011261108b57600080fd5b50813567ffffffffffffffff8111156110a357600080fd5b6020830191508360208260051b85010111156110be57600080fd5b9250929050565b6000602082840312156110d757600080fd5b81356110e281611421565b9392505050565b6000602082840312156110fb57600080fd5b81516110e281611421565b60008060008060006080868803121561111e57600080fd5b853561112981611421565b9450602086013561113981611421565b935060408601359250606086013567ffffffffffffffff8082111561115d57600080fd5b818801915088601f83011261117157600080fd5b81358181111561118057600080fd5b89602082850101111561119257600080fd5b9699959850939650602001949392505050565b600080602083850312156111b857600080fd5b823567ffffffffffffffff8111156111cf57600080fd5b6111db85828601611079565b90969095509350505050565b6000806000604084860312156111fc57600080fd5b833567ffffffffffffffff81111561121357600080fd5b61121f86828701611079565b90945092505060208401356004811061123757600080fd5b809150509250925092565b60006020828403121561125457600080fd5b815180151581146110e257600080fd5b60006020828403121561127657600080fd5b5035919050565b60006020828403121561128f57600080fd5b5051919050565b6020808252825182820181905260009190848201906040850190845b818110156112ce578351835292840192918401916001016112b2565b50909695505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b62ffffff8516815260208101849052608081016004841061134057634e487b7160e01b600052602160045260246000fd5b60408201939093526001600160a01b039190911660609091015292915050565b60008219821115611373576113736113c9565b500190565b6000816000190483118215151615611392576113926113c9565b500290565b6000828210156113a9576113a96113c9565b500390565b60006000198214156113c2576113c26113c9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610ed457600080fdfea2646970667358221220528ecae2377596a8f2a56a5d81f7cdf2442e350ff34edd48bc2f6a67464f551b64736f6c6343000807003300000000000000000000000050522c769e01eb06c02bd299066509d8f97a69ae0000000000000000000000007340e290f9be98e879200e53da75469eb2f5ca42

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c8063817b1cd2116100de578063aea4c11e11610097578063d1f1a8cf11610071578063d1f1a8cf14610362578063dec9395614610375578063ebbefa9214610388578063f2fde38b1461039157600080fd5b8063aea4c11e14610329578063ca31d79c1461033c578063d1ca41a91461034f57600080fd5b8063817b1cd21461027b57806381a36fb6146102845780638da5cb5b146102dc578063a5d8d7de146102f7578063a7f6488114610300578063ae1a01a21461030957600080fd5b80633646a87e1161014b5780635db5b7d1116101255780635db5b7d11461023a57806370a082311461024d578063715018a6146102605780638083a7fc1461026857600080fd5b80633646a87e1461021f5780634e077aa2146102285780635c420f1f1461023157600080fd5b80630d2721b114610193578063150b7a02146101a85780631e604463146101d95780631edd0169146101ec578063251abf701461020357806334a214b61461020c575b600080fd5b6101a66101a1366004611264565b6103a4565b005b6101bb6101b6366004611106565b6103dc565b6040516001600160e01b031990911681526020015b60405180910390f35b6101a66101e7366004611264565b610452565b6101f5600b5481565b6040519081526020016101d0565b6101f560095481565b6101a661021a366004611264565b610481565b6101f5600a5481565b6101f560085481565b6101f560055481565b6101a6610248366004611264565b6104b0565b6101f561025b3660046110c5565b6104df565b6101a66105cd565b6101a6610276366004611264565b610603565b6101f560035481565b6102cc610292366004611264565b600c6020526000908152604090208054600182015460029092015462ffffff909116919060ff81169061010090046001600160a01b031684565b6040516101d0949392919061130f565b6000546040516001600160a01b0390911681526020016101d0565b6101f560075481565b6101f560065481565b61031c6103173660046110c5565b610632565b6040516101d09190611296565b6101a6610337366004611264565b6107a9565b6101a661034a3660046111a5565b6107d8565b6101a661035d3660046111e7565b610afd565b6101a6610370366004611264565b610dde565b6101a6610383366004611264565b610e0d565b6101f560045481565b6101a661039f3660046110c5565b610e3c565b6000546001600160a01b031633146103d75760405162461bcd60e51b81526004016103ce906112da565b60405180910390fd5b600755565b60006001600160a01b038516156104405760405162461bcd60e51b815260206004820152602260248201527f43616e6e6f742073656e64206e66747320746f205661756c74206469726563746044820152616c7960f01b60648201526084016103ce565b50630a85bd0160e11b95945050505050565b6000546001600160a01b0316331461047c5760405162461bcd60e51b81526004016103ce906112da565b600655565b6000546001600160a01b031633146104ab5760405162461bcd60e51b81526004016103ce906112da565b600455565b6000546001600160a01b031633146104da5760405162461bcd60e51b81526004016103ce906112da565b600855565b600080600090506000600260009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561053657600080fd5b505afa15801561054a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056e919061127d565b905060015b8181116105c4576000818152600c60205260409020600201546001600160a01b038681166101009092041614156105b2576105af600184611360565b92505b806105bc816113ae565b915050610573565b50909392505050565b6000546001600160a01b031633146105f75760405162461bcd60e51b81526004016103ce906112da565b6106016000610ed7565b565b6000546001600160a01b0316331461062d5760405162461bcd60e51b81526004016103ce906112da565b600b55565b6060600061063f836104df565b905060008167ffffffffffffffff81111561065c5761065c61140b565b604051908082528060200260200182016040528015610685578160200160208202803683370190505b5090506000600260009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156106d857600080fd5b505afa1580156106ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610710919061127d565b9050600060015b82811161079e576000818152600c60205260409020600201546001600160a01b0388811661010090920416141561078c576000818152600c6020526040902054845162ffffff90911690859084908110610773576107736113f5565b602090810291909101015281610788816113ae565b9250505b80610796816113ae565b915050610717565b509195945050505050565b6000546001600160a01b031633146107d35760405162461bcd60e51b81526004016103ce906112da565b600955565b600082829050600360008282546107ef9190611397565b9091555060009050805b83811015610a0c57848482818110610813576108136113f5565b602090810292909201356000818152600c845260408082208151608081018352815462ffffff16815260018201549681019690965260028101549398509194935090919083019060ff16600381111561086e5761086e6113df565b600381111561087f5761087f6113df565b8152600291909101546001600160a01b03610100909104811660209092019190915260608201519192501633146108e75760405162461bcd60e51b815260206004820152600c60248201526b3737ba1030b71037bbb732b960a11b60448201526064016103ce565b6108f081610f27565b1561091c576109028160400151610f5f565b61090f90620186a0611378565b6109199084611360565b92505b6000848152600c60209081526040808320805462ffffff191681556001810193909355600290920180546001600160a81b03191690558151338152908101869052428183015290517fc486b9458a8637650d84d262414833a5a457bc91ae86b7da110386c8c3fa255b9181900360600190a16002546040516323b872dd60e01b8152306004820152336024820152604481018690526001600160a01b03909116906323b872dd90606401600060405180830381600087803b1580156109e057600080fd5b505af11580156109f4573d6000803e3d6000fd5b50505050508080610a04906113ae565b9150506107f9565b508015610af7576001546001600160a01b03166323b872dd610a366000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015233602482015260448101849052606401602060405180830381600087803b158015610a8457600080fd5b505af1158015610a98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abc9190611242565b5060408051338152602081018390527fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a910160405180910390a15b50505050565b60008383905060036000828254610b149190611360565b90915550600090505b83811015610dd757848482818110610b3757610b376113f5565b6002546040516331a9108f60e11b8152602092909202939093013560048201819052945033926001600160a01b03169150636352211e9060240160206040518083038186803b158015610b8957600080fd5b505afa158015610b9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc191906110e9565b6001600160a01b031614610c085760405162461bcd60e51b815260206004820152600e60248201526d3737ba103cb7bab9103a37b5b2b760911b60448201526064016103ce565b6000828152600c602052604090205462ffffff1615610c5a5760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481cdd185ad95960921b60448201526064016103ce565b6002546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd90606401600060405180830381600087803b158015610cac57600080fd5b505af1158015610cc0573d6000803e3d6000fd5b50506040805133815260208101869052428183015290517f36b3725f1783bad4ff05b7f4c077c3aa68eeb23a4d054ba189db4d01ac278d399350908190036060019150a160405180608001604052808362ffffff168152602001428152602001846003811115610d3257610d326113df565b8152336020918201526000848152600c82526040908190208351815462ffffff191662ffffff90911617815591830151600180840191909155908301516002830180549192909160ff191690836003811115610d9057610d906113df565b021790555060609190910151600290910180546001600160a01b0390921661010002610100600160a81b031990921691909117905580610dcf816113ae565b915050610b1d565b5050505050565b6000546001600160a01b03163314610e085760405162461bcd60e51b81526004016103ce906112da565b600555565b6000546001600160a01b03163314610e375760405162461bcd60e51b81526004016103ce906112da565b600a55565b6000546001600160a01b03163314610e665760405162461bcd60e51b81526004016103ce906112da565b6001600160a01b038116610ecb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103ce565b610ed481610ed7565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080610f378360400151610fed565b9050610f468162015180611378565b8360200151610f559190611360565b4210159392505050565b600080826003811115610f7457610f746113df565b14610fe3576001826003811115610f8d57610f8d6113df565b14610fdb576002826003811115610fa657610fa66113df565b14610fd3576003826003811115610fbf57610fbf6113df565b14610fcb576000610fe7565b600b54610fe7565b600a54610fe7565b600954610fe7565b6008545b92915050565b600080826003811115611002576110026113df565b1461107157600182600381111561101b5761101b6113df565b14611069576002826003811115611034576110346113df565b1461106157600382600381111561104d5761104d6113df565b14611059576000610fe7565b600754610fe7565b600654610fe7565b600554610fe7565b505060045490565b60008083601f84011261108b57600080fd5b50813567ffffffffffffffff8111156110a357600080fd5b6020830191508360208260051b85010111156110be57600080fd5b9250929050565b6000602082840312156110d757600080fd5b81356110e281611421565b9392505050565b6000602082840312156110fb57600080fd5b81516110e281611421565b60008060008060006080868803121561111e57600080fd5b853561112981611421565b9450602086013561113981611421565b935060408601359250606086013567ffffffffffffffff8082111561115d57600080fd5b818801915088601f83011261117157600080fd5b81358181111561118057600080fd5b89602082850101111561119257600080fd5b9699959850939650602001949392505050565b600080602083850312156111b857600080fd5b823567ffffffffffffffff8111156111cf57600080fd5b6111db85828601611079565b90969095509350505050565b6000806000604084860312156111fc57600080fd5b833567ffffffffffffffff81111561121357600080fd5b61121f86828701611079565b90945092505060208401356004811061123757600080fd5b809150509250925092565b60006020828403121561125457600080fd5b815180151581146110e257600080fd5b60006020828403121561127657600080fd5b5035919050565b60006020828403121561128f57600080fd5b5051919050565b6020808252825182820181905260009190848201906040850190845b818110156112ce578351835292840192918401916001016112b2565b50909695505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b62ffffff8516815260208101849052608081016004841061134057634e487b7160e01b600052602160045260246000fd5b60408201939093526001600160a01b039190911660609091015292915050565b60008219821115611373576113736113c9565b500190565b6000816000190483118215151615611392576113926113c9565b500290565b6000828210156113a9576113a96113c9565b500390565b60006000198214156113c2576113c26113c9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610ed457600080fdfea2646970667358221220528ecae2377596a8f2a56a5d81f7cdf2442e350ff34edd48bc2f6a67464f551b64736f6c63430008070033

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

00000000000000000000000050522c769e01eb06c02bd299066509d8f97a69ae0000000000000000000000007340e290f9be98e879200e53da75469eb2f5ca42

-----Decoded View---------------
Arg [0] : _reward_token (address): 0x50522C769E01EB06c02BD299066509D8f97A69Ae
Arg [1] : _nft (address): 0x7340E290f9bE98E879200E53DA75469Eb2F5CA42

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000050522c769e01eb06c02bd299066509d8f97a69ae
Arg [1] : 0000000000000000000000007340e290f9be98e879200e53da75469eb2f5ca42


Deployed Bytecode Sourcemap

58761:6081:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63997:100;;;;;;:::i;:::-;;:::i;:::-;;64539:298;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;;5546:33:1;;;5528:52;;5516:2;5501:18;64539:298:0;;;;;;;;63891:98;;;;;;:::i;:::-;;:::i;59300:47::-;;;;;;;;;8532:25:1;;;8520:2;8505:18;59300:47:0;8386:177:1;59193:47:0;;;;;;63677:98;;;;;;:::i;:::-;;:::i;59247:46::-;;;;;;59141:45;;;;;;59033:29;;;;;;64111:98;;;;;;:::i;:::-;;:::i;62844:322::-;;;;;;:::i;:::-;;:::i;11771:103::-;;;:::i;64431:100::-;;;;;;:::i;:::-;;:::i;58965:26::-;;;;;;59494:38;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;59494:38:0;;;;;;;;;;;;;:::i;11120:87::-;11166:7;11193:6;11120:87;;-1:-1:-1;;;;;11193:6:0;;;3676:51:1;;3664:2;3649:18;11120:87:0;3530:203:1;59104:30:0;;;;;;59069:28;;;;;;63174:493;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;64217:100::-;;;;;;:::i;:::-;;:::i;60649:883::-;;;;;;:::i;:::-;;:::i;59880:761::-;;;;;;:::i;:::-;;:::i;63783:100::-;;;;;;:::i;:::-;;:::i;64325:98::-;;;;;;:::i;:::-;;:::i;58998:28::-;;;;;;12029:201;;;;;;:::i;:::-;;:::i;63997:100::-;11166:7;11193:6;-1:-1:-1;;;;;11193:6:0;9924:10;11340:23;11332:68;;;;-1:-1:-1;;;11332:68:0;;;;;;;:::i;:::-;;;;;;;;;64067:9:::1;:22:::0;63997:100::o;64539:298::-;64688:6;-1:-1:-1;;;;;64713:20:0;;;64705:67;;;;-1:-1:-1;;;64705:67:0;;7245:2:1;64705:67:0;;;7227:21:1;7284:2;7264:18;;;7257:30;7323:34;7303:18;;;7296:62;-1:-1:-1;;;7374:18:1;;;7367:32;7416:19;;64705:67:0;7043:398:1;64705:67:0;-1:-1:-1;;;;64539:298:0;;;;;;;:::o;63891:98::-;11166:7;11193:6;-1:-1:-1;;;;;11193:6:0;9924:10;11340:23;11332:68;;;;-1:-1:-1;;;11332:68:0;;;;;;;:::i;:::-;63960:8:::1;:21:::0;63891:98::o;63677:::-;11166:7;11193:6;-1:-1:-1;;;;;11193:6:0;9924:10;11340:23;11332:68;;;;-1:-1:-1;;;11332:68:0;;;;;;;:::i;:::-;63746:8:::1;:21:::0;63677:98::o;64111:::-;11166:7;11193:6;-1:-1:-1;;;;;11193:6:0;9924:10;11340:23;11332:68;;;;-1:-1:-1;;;11332:68:0;;;;;;;:::i;:::-;64180:11:::1;:21:::0;64111:98::o;62844:322::-;62901:7;62921:15;62939:1;62921:19;;62951:14;62968:3;;;;;;;;;-1:-1:-1;;;;;62968:3:0;-1:-1:-1;;;;;62968:15:0;;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;62951:34;-1:-1:-1;63009:1:0;62996:138;63017:6;63012:1;:11;62996:138;;63049:8;;;;:5;:8;;;;;:14;;;-1:-1:-1;;;;;63049:25:0;;;:14;;;;;:25;63045:78;;;63095:12;63106:1;63095:12;;:::i;:::-;;;63045:78;63025:3;;;;:::i;:::-;;;;62996:138;;;-1:-1:-1;63151:7:0;;62844:322;-1:-1:-1;;;62844:322:0:o;11771:103::-;11166:7;11193:6;-1:-1:-1;;;;;11193:6:0;9924:10;11340:23;11332:68;;;;-1:-1:-1;;;11332:68:0;;;;;;;:::i;:::-;11836:30:::1;11863:1;11836:18;:30::i;:::-;11771:103::o:0;64431:100::-;11166:7;11193:6;-1:-1:-1;;;;;11193:6:0;9924:10;11340:23;11332:68;;;;-1:-1:-1;;;11332:68:0;;;;;;;:::i;:::-;64501:12:::1;:22:::0;64431:100::o;63174:493::-;63241:16;63270:15;63288:18;63298:7;63288:9;:18::i;:::-;63270:36;;63317:25;63356:7;63345:19;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63345:19:0;;63317:47;;63375:14;63392:3;;;;;;;;;-1:-1:-1;;;;;63392:3:0;-1:-1:-1;;;;;63392:15:0;;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63375:34;-1:-1:-1;63420:13:0;63461:1;63448:186;63469:6;63464:1;:11;63448:186;;63501:8;;;;:5;:8;;;;;:14;;;-1:-1:-1;;;;;63501:25:0;;;:14;;;;;:25;63497:126;;;63565:8;;;;:5;:8;;;;;:16;63547:15;;63565:16;;;;;63547:8;;63556:5;;63547:15;;;;;;:::i;:::-;;;;;;;;;;:34;63600:7;;;;:::i;:::-;;;;63497:126;63477:3;;;;:::i;:::-;;;;63448:186;;;-1:-1:-1;63651:8:0;;63174:493;-1:-1:-1;;;;;63174:493:0:o;64217:100::-;11166:7;11193:6;-1:-1:-1;;;;;11193:6:0;9924:10;11340:23;11332:68;;;;-1:-1:-1;;;11332:68:0;;;;;;;:::i;:::-;64287:12:::1;:22:::0;64217:100::o;60649:883::-;60720:15;60761:8;;:15;;60746:11;;:30;;;;;;;:::i;:::-;;;;-1:-1:-1;60787:14:0;;-1:-1:-1;60787:14:0;60816:556;60833:19;;;60816:556;;;60884:8;;60893:1;60884:11;;;;;;;:::i;:::-;;;;;;;;;;60910:19;60932:14;;;:5;:14;;;;;;60910:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;60884:11;;-1:-1:-1;60910:19:0;;:36;-1:-1:-1;60932:14:0;;60910:36;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;60910:36:0;;;;;;;;;;;;;;60969:12;;;;60910:36;;-1:-1:-1;60969:26:0;60985:10;60969:26;60961:51;;;;-1:-1:-1;;;60961:51:0;;6904:2:1;60961:51:0;;;6886:21:1;6943:2;6923:18;;;6916:30;-1:-1:-1;;;6962:18:1;;;6955:42;7014:18;;60961:51:0;6702:336:1;60961:51:0;61030:29;61052:6;61030:21;:29::i;:::-;61027:162;;;61090:37;61106:6;:20;;;61090:15;:37::i;:::-;:45;;61130:5;61090:45;:::i;:::-;61080:55;;;;:::i;:::-;;;61027:162;61210:14;;;;:5;:14;;;;;;;;61203:21;;-1:-1:-1;;61203:21:0;;;-1:-1:-1;61203:21:0;;;;;;;;;;;;-1:-1:-1;;;;;;61203:21:0;;;61244:49;;61256:10;4599:51:1;;4666:18;;;4659:34;;;61277:15:0;4709:18:1;;;4702:34;61244:49:0;;;;;;;4587:2:1;61244:49:0;;;61308:3;;:52;;-1:-1:-1;;;61308:52:0;;61333:4;61308:52;;;3978:34:1;61340:10:0;4028:18:1;;;4021:43;4080:18;;;4073:34;;;-1:-1:-1;;;;;61308:3:0;;;;:16;;3913:18:1;;61308:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60859:513;60854:3;;;;;:::i;:::-;;;;60816:556;;;-1:-1:-1;61385:10:0;;61382:143;;61412:12;;-1:-1:-1;;;;;61412:12:0;:25;61438:7;11166;11193:6;-1:-1:-1;;;;;11193:6:0;;11120:87;61438:7;61412:54;;-1:-1:-1;;;;;;61412:54:0;;;;;;;-1:-1:-1;;;;;3996:15:1;;;61412:54:0;;;3978:34:1;61447:10:0;4028:18:1;;;4021:43;4080:18;;;4073:34;;;3913:18;;61412:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;61486:27:0;;;61494:10;4292:51:1;;4374:2;4359:18;;4352:34;;;61486:27:0;;4265:18:1;61486:27:0;;;;;;;61382:143;60709:823;;60649:883;;:::o;59880:761::-;59967:15;60008:8;;:15;;59993:11;;:30;;;;;;;:::i;:::-;;;;-1:-1:-1;60039:6:0;;-1:-1:-1;60034:600:0;60051:19;;;60034:600;;;60102:8;;60111:1;60102:11;;;;;;;:::i;:::-;60136:3;;:20;;-1:-1:-1;;;60136:20:0;;60102:11;;;;;;;;;;60136:20;;;8532:25:1;;;60102:11:0;-1:-1:-1;60160:10:0;;-1:-1:-1;;;;;60136:3:0;;-1:-1:-1;60136:11:0;;8505:18:1;;60136:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;60136:34:0;;60128:61;;;;-1:-1:-1;;;60128:61:0;;6200:2:1;60128:61:0;;;6182:21:1;6239:2;6219:18;;;6212:30;-1:-1:-1;;;6258:18:1;;;6251:44;6312:18;;60128:61:0;5998:338:1;60128:61:0;60212:14;;;;:5;:14;;;;;:22;;;:27;60204:54;;;;-1:-1:-1;;;60204:54:0;;7648:2:1;60204:54:0;;;7630:21:1;7687:2;7667:18;;;7660:30;-1:-1:-1;;;7706:18:1;;;7699:44;7760:18;;60204:54:0;7446:338:1;60204:54:0;60275:3;;:52;;-1:-1:-1;;;60275:52:0;;60292:10;60275:52;;;3978:34:1;60312:4:0;4028:18:1;;;4021:43;4080:18;;;4073:34;;;-1:-1:-1;;;;;60275:3:0;;;;:16;;3913:18:1;;60275:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;60347:47:0;;;60357:10;4599:51:1;;4681:2;4666:18;;4659:34;;;60378:15:0;4709:18:1;;;4702:34;60347:47:0;;;;-1:-1:-1;60347:47:0;;;;4587:2:1;60347:47:0;;-1:-1:-1;60347:47:0;60428:194;;;;;;;;60505:7;60428:194;;;;;;60543:15;60428:194;;;;60592:14;60428:194;;;;;;;;:::i;:::-;;;60460:10;60428:194;;;;;-1:-1:-1;60411:14:0;;;:5;:14;;;;;;;:211;;;;-1:-1:-1;;60411:211:0;;;;;;;;;;;;-1:-1:-1;60411:211:0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;60411:211:0;;;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;60411:211:0;;;;;;;;;;;;-1:-1:-1;;;;;60411:211:0;;;;;-1:-1:-1;;;;;;60411:211:0;;;;;;;;;60072:3;;;;:::i;:::-;;;;60034:600;;;;59956:685;59880:761;;;:::o;63783:100::-;11166:7;11193:6;-1:-1:-1;;;;;11193:6:0;9924:10;11340:23;11332:68;;;;-1:-1:-1;;;11332:68:0;;;;;;;:::i;:::-;63853:9:::1;:22:::0;63783:100::o;64325:98::-;11166:7;11193:6;-1:-1:-1;;;;;11193:6:0;9924:10;11340:23;11332:68;;;;-1:-1:-1;;;11332:68:0;;;;;;;:::i;:::-;64394:11:::1;:21:::0;64325:98::o;12029:201::-;11166:7;11193:6;-1:-1:-1;;;;;11193:6:0;9924:10;11340:23;11332:68;;;;-1:-1:-1;;;11332:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;12118:22:0;::::1;12110:73;;;::::0;-1:-1:-1;;;12110:73:0;;5793:2:1;12110:73:0::1;::::0;::::1;5775:21:1::0;5832:2;5812:18;;;5805:30;5871:34;5851:18;;;5844:62;-1:-1:-1;;;5922:18:1;;;5915:36;5968:19;;12110:73:0::1;5591:402:1::0;12110:73:0::1;12194:28;12213:8;12194:18;:28::i;:::-;12029:201:::0;:::o;12390:191::-;12464:16;12483:6;;-1:-1:-1;;;;;12500:17:0;;;-1:-1:-1;;;;;;12500:17:0;;;;;;12533:40;;12483:6;;;;;;;12533:40;;12464:16;12533:40;12453:128;12390:191;:::o;61540:300::-;61614:4;61631:19;61653:36;61668:6;:20;;;61653:14;:36::i;:::-;61631:58;-1:-1:-1;61747:19:0;61631:58;61747:5;:19;:::i;:::-;61727:6;:16;;;:40;;;;:::i;:::-;61707:15;:61;;;61540:300;-1:-1:-1;;;61540:300:0:o;62563:273::-;62628:7;;62655:9;:25;;;;;;;;:::i;:::-;;:173;;62710:13;62697:9;:26;;;;;;;;:::i;:::-;;:131;;62754:12;62741:9;:25;;;;;;;;:::i;:::-;;:87;;62796:13;62783:9;:26;;;;;;;;:::i;:::-;;:45;;62827:1;62655:173;;62783:45;62812:12;;62655:173;;62741:87;62769:11;;62655:173;;62697:131;62726:12;;62655:173;;;62683:11;;62655:173;62648:180;62563:273;-1:-1:-1;;62563:273:0:o;61848:260::-;61912:7;;61939:9;:25;;;;;;;;:::i;:::-;;:161;;61991:13;61978:9;:26;;;;;;;;:::i;:::-;;:122;;62032:12;62019:9;:25;;;;;;;;:::i;:::-;;:81;;62071:13;62058:9;:26;;;;;;;;:::i;:::-;;:42;;62099:1;62655:173;;62058:42;62087:9;;62655:173;;62019:81;62047:8;;61939:161;;61978:122;62007:9;;61939:161;;;-1:-1:-1;;61967:8:0;;;61848:260::o;14:367:1:-;77:8;87:6;141:3;134:4;126:6;122:17;118:27;108:55;;159:1;156;149:12;108:55;-1:-1:-1;182:20:1;;225:18;214:30;;211:50;;;257:1;254;247:12;211:50;294:4;286:6;282:17;270:29;;354:3;347:4;337:6;334:1;330:14;322:6;318:27;314:38;311:47;308:67;;;371:1;368;361:12;308:67;14:367;;;;;:::o;386:247::-;445:6;498:2;486:9;477:7;473:23;469:32;466:52;;;514:1;511;504:12;466:52;553:9;540:23;572:31;597:5;572:31;:::i;:::-;622:5;386:247;-1:-1:-1;;;386:247:1:o;638:251::-;708:6;761:2;749:9;740:7;736:23;732:32;729:52;;;777:1;774;767:12;729:52;809:9;803:16;828:31;853:5;828:31;:::i;894:936::-;991:6;999;1007;1015;1023;1076:3;1064:9;1055:7;1051:23;1047:33;1044:53;;;1093:1;1090;1083:12;1044:53;1132:9;1119:23;1151:31;1176:5;1151:31;:::i;:::-;1201:5;-1:-1:-1;1258:2:1;1243:18;;1230:32;1271:33;1230:32;1271:33;:::i;:::-;1323:7;-1:-1:-1;1377:2:1;1362:18;;1349:32;;-1:-1:-1;1432:2:1;1417:18;;1404:32;1455:18;1485:14;;;1482:34;;;1512:1;1509;1502:12;1482:34;1550:6;1539:9;1535:22;1525:32;;1595:7;1588:4;1584:2;1580:13;1576:27;1566:55;;1617:1;1614;1607:12;1566:55;1657:2;1644:16;1683:2;1675:6;1672:14;1669:34;;;1699:1;1696;1689:12;1669:34;1744:7;1739:2;1730:6;1726:2;1722:15;1718:24;1715:37;1712:57;;;1765:1;1762;1755:12;1712:57;894:936;;;;-1:-1:-1;894:936:1;;-1:-1:-1;1796:2:1;1788:11;;1818:6;894:936;-1:-1:-1;;;894:936:1:o;1835:437::-;1921:6;1929;1982:2;1970:9;1961:7;1957:23;1953:32;1950:52;;;1998:1;1995;1988:12;1950:52;2038:9;2025:23;2071:18;2063:6;2060:30;2057:50;;;2103:1;2100;2093:12;2057:50;2142:70;2204:7;2195:6;2184:9;2180:22;2142:70;:::i;:::-;2231:8;;2116:96;;-1:-1:-1;1835:437:1;-1:-1:-1;;;;1835:437:1:o;2277:592::-;2383:6;2391;2399;2452:2;2440:9;2431:7;2427:23;2423:32;2420:52;;;2468:1;2465;2458:12;2420:52;2508:9;2495:23;2541:18;2533:6;2530:30;2527:50;;;2573:1;2570;2563:12;2527:50;2612:70;2674:7;2665:6;2654:9;2650:22;2612:70;:::i;:::-;2701:8;;-1:-1:-1;2586:96:1;-1:-1:-1;;2786:2:1;2771:18;;2758:32;2819:1;2809:12;;2799:40;;2835:1;2832;2825:12;2799:40;2858:5;2848:15;;;2277:592;;;;;:::o;2874:277::-;2941:6;2994:2;2982:9;2973:7;2969:23;2965:32;2962:52;;;3010:1;3007;3000:12;2962:52;3042:9;3036:16;3095:5;3088:13;3081:21;3074:5;3071:32;3061:60;;3117:1;3114;3107:12;3156:180;3215:6;3268:2;3256:9;3247:7;3243:23;3239:32;3236:52;;;3284:1;3281;3274:12;3236:52;-1:-1:-1;3307:23:1;;3156:180;-1:-1:-1;3156:180:1:o;3341:184::-;3411:6;3464:2;3452:9;3443:7;3439:23;3435:32;3432:52;;;3480:1;3477;3470:12;3432:52;-1:-1:-1;3503:16:1;;3341:184;-1:-1:-1;3341:184:1:o;4747:632::-;4918:2;4970:21;;;5040:13;;4943:18;;;5062:22;;;4889:4;;4918:2;5141:15;;;;5115:2;5100:18;;;4889:4;5184:169;5198:6;5195:1;5192:13;5184:169;;;5259:13;;5247:26;;5328:15;;;;5293:12;;;;5220:1;5213:9;5184:169;;;-1:-1:-1;5370:3:1;;4747:632;-1:-1:-1;;;;;;4747:632:1:o;6341:356::-;6543:2;6525:21;;;6562:18;;;6555:30;6621:34;6616:2;6601:18;;6594:62;6688:2;6673:18;;6341:356::o;7789:592::-;8057:8;8045:21;;8027:40;;8098:2;8083:18;;8076:34;;;8014:3;7999:19;;8140:1;8129:13;;8119:144;;8185:10;8180:3;8176:20;8173:1;8166:31;8220:4;8217:1;8210:15;8248:4;8245:1;8238:15;8119:144;8294:2;8279:18;;8272:34;;;;-1:-1:-1;;;;;8342:32:1;;;;8337:2;8322:18;;;8315:60;7789:592;;-1:-1:-1;;7789:592:1:o;8568:128::-;8608:3;8639:1;8635:6;8632:1;8629:13;8626:39;;;8645:18;;:::i;:::-;-1:-1:-1;8681:9:1;;8568:128::o;8701:168::-;8741:7;8807:1;8803;8799:6;8795:14;8792:1;8789:21;8784:1;8777:9;8770:17;8766:45;8763:71;;;8814:18;;:::i;:::-;-1:-1:-1;8854:9:1;;8701:168::o;8874:125::-;8914:4;8942:1;8939;8936:8;8933:34;;;8947:18;;:::i;:::-;-1:-1:-1;8984:9:1;;8874:125::o;9004:135::-;9043:3;-1:-1:-1;;9064:17:1;;9061:43;;;9084:18;;:::i;:::-;-1:-1:-1;9131:1:1;9120:13;;9004:135::o;9144:127::-;9205:10;9200:3;9196:20;9193:1;9186:31;9236:4;9233:1;9226:15;9260:4;9257:1;9250:15;9276:127;9337:10;9332:3;9328:20;9325:1;9318:31;9368:4;9365:1;9358:15;9392:4;9389:1;9382:15;9408:127;9469:10;9464:3;9460:20;9457:1;9450:31;9500:4;9497:1;9490:15;9524:4;9521:1;9514:15;9540:127;9601:10;9596:3;9592:20;9589:1;9582:31;9632:4;9629:1;9622:15;9656:4;9653:1;9646:15;9672:131;-1:-1:-1;;;;;9747:31:1;;9737:42;;9727:70;;9793:1;9790;9783:12

Swarm Source

ipfs://528ecae2377596a8f2a56a5d81f7cdf2442e350ff34edd48bc2f6a67464f551b

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.