false
true
0

Contract Address Details

0xA7A6c00b842fbE9061C8A9Bab390b7E8e2733433

Token
SOSA NFT Daytona.Finance (SOSA NFT)
Creator
0x9030b8–cc3942 at 0x31c663–77ba3d
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
3,250 Transactions
Transfers
0 Transfers
Gas Used
0
Last Balance Update
26513878
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
SosaNFT




Optimization enabled
false
Compiler version
v0.8.22+commit.4fc1097e




EVM Version
default




Verified at
2023-12-09T20:37:31.691021Z

Contract source code

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

// File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

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


// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

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


// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    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.
     */
    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.
     */
    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.
     */
    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.
     */
    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 largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

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


// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;



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

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        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_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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


// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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 (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;


/**
 * @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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.20;

/**
 * @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 (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @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/interfaces/IERC165.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;


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


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;


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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 address zero.
     *
     * 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/interfaces/IERC721.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC721.sol)

pragma solidity ^0.8.20;


// File: @openzeppelin/contracts/interfaces/IERC4906.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC4906.sol)

pragma solidity ^0.8.20;



/// @title EIP-721 Metadata Update Extension
interface IERC4906 is IERC165, IERC721 {
    /// @dev This event emits when the metadata of a token is changed.
    /// So that the third-party platforms such as NFT market could
    /// timely update the images and related attributes of the NFT.
    event MetadataUpdate(uint256 _tokenId);

    /// @dev This event emits when the metadata of a range of tokens is changed.
    /// So that the third-party platforms such as NFT market could
    /// timely update the images and related attributes of the NFTs.
    event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId);
}

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


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.20;


/**
 * @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/utils/introspection/ERC165.sol


// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;


/**
 * @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);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

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


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.20;








/**
 * @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}.
 */
abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors {
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    mapping(uint256 tokenId => address) private _owners;

    mapping(address owner => uint256) private _balances;

    mapping(uint256 tokenId => address) private _tokenApprovals;

    mapping(address owner => mapping(address operator => 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 returns (uint256) {
        if (owner == address(0)) {
            revert ERC721InvalidOwner(address(0));
        }
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual returns (address) {
        return _requireOwned(tokenId);
    }

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

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

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

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string.concat(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 {
        _approve(to, tokenId, _msgSender());
    }

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

        return _getApproved(tokenId);
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists
        // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.
        address previousOwner = _update(to, tokenId, _msgSender());
        if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual {
        transferFrom(from, to, tokenId);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     *
     * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the
     * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances
     * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by
     * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`.
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.
     */
    function _getApproved(uint256 tokenId) internal view virtual returns (address) {
        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in
     * particular (ignoring whether it is owned by `owner`).
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {
        return
            spender != address(0) &&
            (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);
    }

    /**
     * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.
     * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets
     * the `spender` for the specific `tokenId`.
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {
        if (!_isAuthorized(owner, spender, tokenId)) {
            if (owner == address(0)) {
                revert ERC721NonexistentToken(tokenId);
            } else {
                revert ERC721InsufficientApproval(spender, tokenId);
            }
        }
    }

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that
     * a uint256 would ever overflow from increments when these increments are bounded to uint128 values.
     *
     * WARNING: Increasing an account's balance using this function tends to be paired with an override of the
     * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership
     * remain consistent with one another.
     */
    function _increaseBalance(address account, uint128 value) internal virtual {
        unchecked {
            _balances[account] += value;
        }
    }

    /**
     * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner
     * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that
     * `auth` is either the owner of the token, or approved to operate on the token (by the owner).
     *
     * Emits a {Transfer} event.
     *
     * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.
     */
    function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {
        address from = _ownerOf(tokenId);

        // Perform (optional) operator check
        if (auth != address(0)) {
            _checkAuthorized(from, auth, tokenId);
        }

        // Execute the update
        if (from != address(0)) {
            // Clear approval. No need to re-authorize or emit the Approval event
            _approve(address(0), tokenId, address(0), false);

            unchecked {
                _balances[from] -= 1;
            }
        }

        if (to != address(0)) {
            unchecked {
                _balances[to] += 1;
            }
        }

        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        return from;
    }

    /**
     * @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 {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        address previousOwner = _update(to, tokenId, address(0));
        if (previousOwner != address(0)) {
            revert ERC721InvalidSender(address(0));
        }
    }

    /**
     * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance.
     *
     * 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 {
        _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);
        _checkOnERC721Received(address(0), to, tokenId, data);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal {
        address previousOwner = _update(address(0), tokenId, address(0));
        if (previousOwner == address(0)) {
            revert ERC721NonexistentToken(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 {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        address previousOwner = _update(to, tokenId, address(0));
        if (previousOwner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        } else if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients
     * are aware of the ERC721 standard 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 like {safeTransferFrom} in the sense that it invokes
     * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `tokenId` token must exist and be owned by `from`.
     * - `to` cannot be the zero address.
     * - `from` cannot be the zero address.
     * - 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) internal {
        _safeTransfer(from, to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {
        _transfer(from, to, tokenId);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is
     * either the owner of the token, or approved to operate on all tokens held by this owner.
     *
     * Emits an {Approval} event.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address to, uint256 tokenId, address auth) internal {
        _approve(to, tokenId, auth, true);
    }

    /**
     * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not
     * emitted in the context of transfers.
     */
    function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {
        // Avoid reading the owner unless necessary
        if (emitEvent || auth != address(0)) {
            address owner = _requireOwned(tokenId);

            // We do not use _isAuthorized because single-token approvals should not be able to call approve
            if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {
                revert ERC721InvalidApprover(auth);
            }

            if (emitEvent) {
                emit Approval(owner, to, tokenId);
            }
        }

        _tokenApprovals[tokenId] = to;
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Requirements:
     * - operator can't be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        if (operator == address(0)) {
            revert ERC721InvalidOperator(operator);
        }
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).
     * Returns the owner.
     *
     * Overrides to ownership logic should be done to {_ownerOf}.
     */
    function _requireOwned(uint256 tokenId) internal view returns (address) {
        address owner = _ownerOf(tokenId);
        if (owner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        }
        return owner;
    }

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the
     * recipient doesn't accept the token transfer. 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
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private {
        if (to.code.length > 0) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                if (retval != IERC721Receiver.onERC721Received.selector) {
                    revert ERC721InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert ERC721InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }
}

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


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.20;





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

    // Interface ID as defined in ERC-4906. This does not correspond to a traditional interface ID as ERC-4906 only
    // defines events and does not include any external function.
    bytes4 private constant ERC4906_INTERFACE_ID = bytes4(0x49064906);

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

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

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

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

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

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Emits {MetadataUpdate}.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        _tokenURIs[tokenId] = _tokenURI;
        emit MetadataUpdate(tokenId);
    }
}

// File: @openzeppelin/contracts/interfaces/IERC2981.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.20;


/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount);
}

// File: @openzeppelin/contracts/token/common/ERC2981.sol


// OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.20;



/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo;

    /**
     * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);

    /**
     * @dev The default royalty receiver is invalid.
     */
    error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);

    /**
     * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator);

    /**
     * @dev The royalty receiver for `tokenId` is invalid.
     */
    error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));
        }

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));
        }

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

// File: contracts/SosaNFT.sol



pragma solidity ^0.8.20;






interface IYieldManager {
    function updateReward(address _from, address _to, uint256 _tokenId) external;
    function getTokenReward(address _user) external;
    function getTotalClaimable(address _user) external view returns (uint256);
}

//┈ ┏━━━━┓
//┈ |━━━₿╋━
//┈╭┫▊┃┃▊┣╮┈╭╯
//┈┃┃▔╰╯▔┃┃╭╯
//┈╰┫┏━━▂▂▂*
//┈┈╭╰━━╯╮
//┈@0xSlashd0t

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

    string public constant Author = "@0xSlashd0t";
    uint256 private _totalSupply;
    string private _baseTokenURI;
    string private _uriSuffix;
    address public constant BURN_ADDRESS = address(0x0000000000000000000000000000000000000369);
    mapping(address => uint256) public balanceToken;
    IYieldManager public yieldManager;

    constructor() ERC721("SOSA NFT Daytona.Finance", "SOSA NFT") Ownable(msg.sender) {
       _baseTokenURI = "https://daytonafinance.blob.core.windows.net/sosa-nft-metadata/";
       _uriSuffix = ".json";
       _setDefaultRoyalty(msg.sender, 500);
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721URIStorage, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
        _requireOwned(_tokenId);
        string memory currentBaseURI = _baseTokenURI;
        return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), _uriSuffix)) : "";
    }

    function updateURISuffix(string memory newSuffix) public onlyOwner {
        _uriSuffix = newSuffix;
    }


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

    function updateURI(string memory newURI) public onlyOwner {
        _baseTokenURI = newURI;
    }

    function setYieldManager(address _yield) external onlyOwner {
        yieldManager = IYieldManager(_yield);
    }

    function getTotalClaimable() external view returns (uint256)
    {
        return yieldManager.getTotalClaimable(msg.sender);
    }

    function getReward() external nonReentrant {
        yieldManager.getTokenReward(msg.sender);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override(ERC721, IERC721) nonReentrant {
        yieldManager.updateReward(from, to, tokenId);
        balanceToken[from]--;
        balanceToken[to]++;
        ERC721.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override(ERC721, IERC721) nonReentrant {
        yieldManager.updateReward(from, to, tokenId);
        balanceToken[from]--;
        balanceToken[to]++;
        ERC721.safeTransferFrom(from, to, tokenId, _data);
    }

    function mintNFT(address owner, uint256 index) public onlyOwner nonReentrant {
        _totalSupply += 1;
        _mint(owner, index);
        yieldManager.updateReward(address(0), owner, index);
        balanceToken[owner]++;
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"error","name":"ERC2981InvalidDefaultRoyalty","inputs":[{"type":"uint256","name":"numerator","internalType":"uint256"},{"type":"uint256","name":"denominator","internalType":"uint256"}]},{"type":"error","name":"ERC2981InvalidDefaultRoyaltyReceiver","inputs":[{"type":"address","name":"receiver","internalType":"address"}]},{"type":"error","name":"ERC2981InvalidTokenRoyalty","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"numerator","internalType":"uint256"},{"type":"uint256","name":"denominator","internalType":"uint256"}]},{"type":"error","name":"ERC2981InvalidTokenRoyaltyReceiver","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"receiver","internalType":"address"}]},{"type":"error","name":"ERC721IncorrectOwner","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"ERC721InsufficientApproval","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"error","name":"ERC721InvalidApprover","inputs":[{"type":"address","name":"approver","internalType":"address"}]},{"type":"error","name":"ERC721InvalidOperator","inputs":[{"type":"address","name":"operator","internalType":"address"}]},{"type":"error","name":"ERC721InvalidOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"ERC721InvalidReceiver","inputs":[{"type":"address","name":"receiver","internalType":"address"}]},{"type":"error","name":"ERC721InvalidSender","inputs":[{"type":"address","name":"sender","internalType":"address"}]},{"type":"error","name":"ERC721NonexistentToken","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"error","name":"OwnableInvalidOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"OwnableUnauthorizedAccount","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"approved","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"BatchMetadataUpdate","inputs":[{"type":"uint256","name":"_fromTokenId","internalType":"uint256","indexed":false},{"type":"uint256","name":"_toTokenId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"MetadataUpdate","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"Author","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"BURN_ADDRESS","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceToken","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"getReward","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getTotalClaimable","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mintNFT","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"ownerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"royaltyInfo","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"salePrice","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"_data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setYieldManager","inputs":[{"type":"address","name":"_yield","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenURI","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateURI","inputs":[{"type":"string","name":"newURI","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateURISuffix","inputs":[{"type":"string","name":"newSuffix","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IYieldManager"}],"name":"yieldManager","inputs":[]}]
              

Contract Creation Code

Verify & Publish
0x608060405234801562000010575f80fd5b50336040518060400160405280601881526020017f534f5341204e465420446179746f6e612e46696e616e636500000000000000008152506040518060400160405280600881526020017f534f5341204e4654000000000000000000000000000000000000000000000000815250815f90816200008e919062000695565b508060019081620000a0919062000695565b5050505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000116575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016200010d9190620007bc565b60405180910390fd5b6200012781620001bc60201b60201c565b506001600a819055506040518060600160405280603f815260200162003a23603f9139600c90816200015a919062000695565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600d9081620001a1919062000695565b50620001b6336101f46200027f60201b60201c565b62000862565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f620002906200042860201b60201c565b6bffffffffffffffffffffffff16905080826bffffffffffffffffffffffff161115620002f85781816040517f6f483d09000000000000000000000000000000000000000000000000000000008152600401620002ef92919062000837565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036200036b575f6040517fb6d9900a000000000000000000000000000000000000000000000000000000008152600401620003629190620007bc565b60405180910390fd5b60405180604001604052808473ffffffffffffffffffffffffffffffffffffffff168152602001836bffffffffffffffffffffffff1681525060075f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151815f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b5f612710905090565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620004ad57607f821691505b602082108103620004c357620004c262000468565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620005277fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620004ea565b620005338683620004ea565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6200057d6200057762000571846200054b565b62000554565b6200054b565b9050919050565b5f819050919050565b62000598836200055d565b620005b0620005a78262000584565b848454620004f6565b825550505050565b5f90565b620005c6620005b8565b620005d38184846200058d565b505050565b5b81811015620005fa57620005ee5f82620005bc565b600181019050620005d9565b5050565b601f82111562000649576200061381620004c9565b6200061e84620004db565b810160208510156200062e578190505b620006466200063d85620004db565b830182620005d8565b50505b505050565b5f82821c905092915050565b5f6200066b5f19846008026200064e565b1980831691505092915050565b5f6200068583836200065a565b9150826002028217905092915050565b620006a08262000431565b67ffffffffffffffff811115620006bc57620006bb6200043b565b5b620006c8825462000495565b620006d5828285620005fe565b5f60209050601f8311600181146200070b575f8415620006f6578287015190505b62000702858262000678565b86555062000771565b601f1984166200071b86620004c9565b5f5b8281101562000744578489015182556001820191506020850194506020810190506200071d565b8683101562000764578489015162000760601f8916826200065a565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620007a48262000779565b9050919050565b620007b68162000798565b82525050565b5f602082019050620007d15f830184620007ab565b92915050565b5f6bffffffffffffffffffffffff82169050919050565b5f6200080e620008086200080284620007d7565b62000554565b6200054b565b9050919050565b6200082081620007ee565b82525050565b62000831816200054b565b82525050565b5f6040820190506200084c5f83018562000815565b6200085b602083018462000826565b9392505050565b6131b380620008705f395ff3fe608060405234801561000f575f80fd5b50600436106101c2575f3560e01c806370a08231116100f7578063a22cb46511610095578063c87b56dd1161006f578063c87b56dd146104c9578063e985e9c5146104f9578063f2fde38b14610529578063fccc281314610545576101c2565b8063a22cb46514610475578063b88d4fde14610491578063c30f4a5a146104ad576101c2565b806380b7af18116100d157806380b7af18146103ff5780638da5cb5b1461041d57806395d89b411461043b5780639cd7cdad14610459576101c2565b806370a08231146103a9578063715018a6146103d957806374ce962c146103e3576101c2565b806323b872dd116101645780633d18b9121161013e5780633d18b9121461033557806342842e0e1461033f5780636180c6091461035b5780636352211e14610379576101c2565b806323b872dd146102cc5780632a55205a146102e85780633c168eab14610319576101c2565b8063081812fc116101a0578063081812fc14610244578063095ea7b31461027457806318160ddd1461029057806320b2af52146102ae576101c2565b806301ffc9a7146101c657806304599012146101f657806306fdde0314610226575b5f80fd5b6101e060048036038101906101db91906123a2565b610563565b6040516101ed91906123e7565b60405180910390f35b610210600480360381019061020b919061245a565b610574565b60405161021d919061249d565b60405180910390f35b61022e610589565b60405161023b9190612540565b60405180910390f35b61025e6004803603810190610259919061258a565b610618565b60405161026b91906125c4565b60405180910390f35b61028e600480360381019061028991906125dd565b610633565b005b610298610649565b6040516102a5919061249d565b60405180910390f35b6102b6610652565b6040516102c39190612540565b60405180910390f35b6102e660048036038101906102e1919061261b565b61068b565b005b61030260048036038101906102fd919061266b565b6107da565b6040516103109291906126a9565b60405180910390f35b610333600480360381019061032e91906125dd565b6109b6565b005b61033d610ad2565b005b6103596004803603810190610354919061261b565b610b6b565b005b610363610b8a565b604051610370919061249d565b60405180910390f35b610393600480360381019061038e919061258a565b610c29565b6040516103a091906125c4565b60405180910390f35b6103c360048036038101906103be919061245a565b610c3a565b6040516103d0919061249d565b60405180910390f35b6103e1610cf0565b005b6103fd60048036038101906103f8919061245a565b610d03565b005b610407610d4e565b604051610414919061272b565b60405180910390f35b610425610d73565b60405161043291906125c4565b60405180910390f35b610443610d9b565b6040516104509190612540565b60405180910390f35b610473600480360381019061046e9190612870565b610e2b565b005b61048f600480360381019061048a91906128e1565b610e46565b005b6104ab60048036038101906104a691906129bd565b610e5c565b005b6104c760048036038101906104c29190612870565b610fad565b005b6104e360048036038101906104de919061258a565b610fc8565b6040516104f09190612540565b60405180910390f35b610513600480360381019061050e9190612a3d565b6110b2565b60405161052091906123e7565b60405180910390f35b610543600480360381019061053e919061245a565b611140565b005b61054d6111c4565b60405161055a91906125c4565b60405180910390f35b5f61056d826111ca565b9050919050565b600e602052805f5260405f205f915090505481565b60605f805461059790612aa8565b80601f01602080910402602001604051908101604052809291908181526020018280546105c390612aa8565b801561060e5780601f106105e55761010080835404028352916020019161060e565b820191905f5260205f20905b8154815290600101906020018083116105f157829003601f168201915b5050505050905090565b5f61062282611243565b5061062c826112c9565b9050919050565b6106458282610640611302565b611309565b5050565b5f600b54905090565b6040518060400160405280600b81526020017f403078536c61736864307400000000000000000000000000000000000000000081525081565b61069361131b565b600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632c8e8dfa8484846040518463ffffffff1660e01b81526004016106f193929190612ad8565b5f604051808303815f87803b158015610708575f80fd5b505af115801561071a573d5f803e3d5ffd5b50505050600e5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f81548092919061076b90612b3a565b9190505550600e5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154809291906107bd90612b61565b91905055506107cd83838361136a565b6107d5611469565b505050565b5f805f60085f8681526020019081526020015f206040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505f73ffffffffffffffffffffffffffffffffffffffff16815f015173ffffffffffffffffffffffffffffffffffffffff16036109635760076040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b5f61096c611473565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866109989190612ba8565b6109a29190612c16565b9050815f0151819350935050509250929050565b6109be61147c565b6109c661131b565b6001600b5f8282546109d89190612c46565b925050819055506109e98282611503565b600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632c8e8dfa5f84846040518463ffffffff1660e01b8152600401610a4793929190612ad8565b5f604051808303815f87803b158015610a5e575f80fd5b505af1158015610a70573d5f803e3d5ffd5b50505050600e5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815480929190610ac190612b61565b9190505550610ace611469565b5050565b610ada61131b565b600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fea99c4b336040518263ffffffff1660e01b8152600401610b3491906125c4565b5f604051808303815f87803b158015610b4b575f80fd5b505af1158015610b5d573d5f803e3d5ffd5b50505050610b69611469565b565b610b8583838360405180602001604052805f815250610e5c565b505050565b5f600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663267e8ab6336040518263ffffffff1660e01b8152600401610be591906125c4565b602060405180830381865afa158015610c00573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c249190612c8d565b905090565b5f610c3382611243565b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610cab575f6040517f89c62b64000000000000000000000000000000000000000000000000000000008152600401610ca291906125c4565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610cf861147c565b610d015f6115f6565b565b610d0b61147c565b80600f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610daa90612aa8565b80601f0160208091040260200160405190810160405280929190818152602001828054610dd690612aa8565b8015610e215780601f10610df857610100808354040283529160200191610e21565b820191905f5260205f20905b815481529060010190602001808311610e0457829003601f168201915b5050505050905090565b610e3361147c565b80600d9081610e429190612e4c565b5050565b610e58610e51611302565b83836116b9565b5050565b610e6461131b565b600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632c8e8dfa8585856040518463ffffffff1660e01b8152600401610ec293929190612ad8565b5f604051808303815f87803b158015610ed9575f80fd5b505af1158015610eeb573d5f803e3d5ffd5b50505050600e5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815480929190610f3c90612b3a565b9190505550600e5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815480929190610f8e90612b61565b9190505550610f9f84848484611822565b610fa7611469565b50505050565b610fb561147c565b80600c9081610fc49190612e4c565b5050565b6060610fd382611243565b505f600c8054610fe290612aa8565b80601f016020809104026020016040519081016040528092919081815260200182805461100e90612aa8565b80156110595780601f1061103057610100808354040283529160200191611059565b820191905f5260205f20905b81548152906001019060200180831161103c57829003601f168201915b505050505090505f81511161107c5760405180602001604052805f8152506110aa565b806110868461183f565b600d60405160200161109a93929190612fd5565b6040516020818303038152906040525b915050919050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b61114861147c565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111b8575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016111af91906125c4565b60405180910390fd5b6111c1816115f6565b50565b61036981565b5f7f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061123c575061123b82611909565b5b9050919050565b5f8061124e83611969565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112c057826040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016112b7919061249d565b60405180910390fd5b80915050919050565b5f60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f33905090565b61131683838360016119a2565b505050565b6002600a5403611360576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113579061304f565b60405180910390fd5b6002600a81905550565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113da575f6040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016113d191906125c4565b60405180910390fd5b5f6113ed83836113e8611302565b611b61565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611463578382826040517f64283d7b00000000000000000000000000000000000000000000000000000000815260040161145a9392919061306d565b60405180910390fd5b50505050565b6001600a81905550565b5f612710905090565b611484611302565b73ffffffffffffffffffffffffffffffffffffffff166114a2610d73565b73ffffffffffffffffffffffffffffffffffffffff1614611501576114c5611302565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016114f891906125c4565b60405180910390fd5b565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611573575f6040517f64a0ae9200000000000000000000000000000000000000000000000000000000815260040161156a91906125c4565b60405180910390fd5b5f61157f83835f611b61565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115f1575f6040517f73c6ac6e0000000000000000000000000000000000000000000000000000000081526004016115e891906125c4565b60405180910390fd5b505050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361172957816040517f5b08ba1800000000000000000000000000000000000000000000000000000000815260040161172091906125c4565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161181591906123e7565b60405180910390a3505050565b61182d84848461068b565b61183984848484611d6c565b50505050565b60605f600161184d84611f1e565b0190505f8167ffffffffffffffff81111561186b5761186a61274c565b5b6040519080825280601f01601f19166020018201604052801561189d5781602001600182028036833780820191505090505b5090505f82602001820190505b6001156118fe578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816118f3576118f2612be9565b5b0494505f85036118aa575b819350505050919050565b5f634906490660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061196257506119618261206f565b5b9050919050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b80806119da57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611b0c575f6119e984611243565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611a5357508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015611a665750611a6481846110b2565b155b15611aa857826040517fa9fbf51f000000000000000000000000000000000000000000000000000000008152600401611a9f91906125c4565b60405180910390fd5b8115611b0a57838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b8360045f8581526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b5f80611b6c84611969565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611bad57611bac818486612150565b5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611c3857611bec5f855f806119a2565b600160035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825403925050819055505b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611cb757600160035f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8460025f8681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b5f8373ffffffffffffffffffffffffffffffffffffffff163b1115611f18578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02611daf611302565b8685856040518563ffffffff1660e01b8152600401611dd194939291906130f4565b6020604051808303815f875af1925050508015611e0c57506040513d601f19601f82011682018060405250810190611e099190613152565b60015b611e8d573d805f8114611e3a576040519150601f19603f3d011682016040523d82523d5f602084013e611e3f565b606091505b505f815103611e8557836040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401611e7c91906125c4565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611f1657836040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401611f0d91906125c4565b60405180910390fd5b505b50505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611f7a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611f7057611f6f612be9565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310611fb7576d04ee2d6d415b85acef81000000008381611fad57611fac612be9565b5b0492506020810190505b662386f26fc100008310611fe657662386f26fc100008381611fdc57611fdb612be9565b5b0492506010810190505b6305f5e100831061200f576305f5e100838161200557612004612be9565b5b0492506008810190505b612710831061203457612710838161202a57612029612be9565b5b0492506004810190505b60648310612057576064838161204d5761204c612be9565b5b0492506002810190505b600a8310612066576001810190505b80915050919050565b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061213957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612149575061214882612213565b5b9050919050565b61215b83838361227c565b61220e575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036121cf57806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016121c6919061249d565b60405180910390fd5b81816040517f177e802f0000000000000000000000000000000000000000000000000000000081526004016122059291906126a9565b60405180910390fd5b505050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561233357508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806122f457506122f384846110b2565b5b8061233257508273ffffffffffffffffffffffffffffffffffffffff1661231a836112c9565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6123818161234d565b811461238b575f80fd5b50565b5f8135905061239c81612378565b92915050565b5f602082840312156123b7576123b6612345565b5b5f6123c48482850161238e565b91505092915050565b5f8115159050919050565b6123e1816123cd565b82525050565b5f6020820190506123fa5f8301846123d8565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61242982612400565b9050919050565b6124398161241f565b8114612443575f80fd5b50565b5f8135905061245481612430565b92915050565b5f6020828403121561246f5761246e612345565b5b5f61247c84828501612446565b91505092915050565b5f819050919050565b61249781612485565b82525050565b5f6020820190506124b05f83018461248e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156124ed5780820151818401526020810190506124d2565b5f8484015250505050565b5f601f19601f8301169050919050565b5f612512826124b6565b61251c81856124c0565b935061252c8185602086016124d0565b612535816124f8565b840191505092915050565b5f6020820190508181035f8301526125588184612508565b905092915050565b61256981612485565b8114612573575f80fd5b50565b5f8135905061258481612560565b92915050565b5f6020828403121561259f5761259e612345565b5b5f6125ac84828501612576565b91505092915050565b6125be8161241f565b82525050565b5f6020820190506125d75f8301846125b5565b92915050565b5f80604083850312156125f3576125f2612345565b5b5f61260085828601612446565b925050602061261185828601612576565b9150509250929050565b5f805f6060848603121561263257612631612345565b5b5f61263f86828701612446565b935050602061265086828701612446565b925050604061266186828701612576565b9150509250925092565b5f806040838503121561268157612680612345565b5b5f61268e85828601612576565b925050602061269f85828601612576565b9150509250929050565b5f6040820190506126bc5f8301856125b5565b6126c9602083018461248e565b9392505050565b5f819050919050565b5f6126f36126ee6126e984612400565b6126d0565b612400565b9050919050565b5f612704826126d9565b9050919050565b5f612715826126fa565b9050919050565b6127258161270b565b82525050565b5f60208201905061273e5f83018461271c565b92915050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612782826124f8565b810181811067ffffffffffffffff821117156127a1576127a061274c565b5b80604052505050565b5f6127b361233c565b90506127bf8282612779565b919050565b5f67ffffffffffffffff8211156127de576127dd61274c565b5b6127e7826124f8565b9050602081019050919050565b828183375f83830152505050565b5f61281461280f846127c4565b6127aa565b9050828152602081018484840111156128305761282f612748565b5b61283b8482856127f4565b509392505050565b5f82601f83011261285757612856612744565b5b8135612867848260208601612802565b91505092915050565b5f6020828403121561288557612884612345565b5b5f82013567ffffffffffffffff8111156128a2576128a1612349565b5b6128ae84828501612843565b91505092915050565b6128c0816123cd565b81146128ca575f80fd5b50565b5f813590506128db816128b7565b92915050565b5f80604083850312156128f7576128f6612345565b5b5f61290485828601612446565b9250506020612915858286016128cd565b9150509250929050565b5f67ffffffffffffffff8211156129395761293861274c565b5b612942826124f8565b9050602081019050919050565b5f61296161295c8461291f565b6127aa565b90508281526020810184848401111561297d5761297c612748565b5b6129888482856127f4565b509392505050565b5f82601f8301126129a4576129a3612744565b5b81356129b484826020860161294f565b91505092915050565b5f805f80608085870312156129d5576129d4612345565b5b5f6129e287828801612446565b94505060206129f387828801612446565b9350506040612a0487828801612576565b925050606085013567ffffffffffffffff811115612a2557612a24612349565b5b612a3187828801612990565b91505092959194509250565b5f8060408385031215612a5357612a52612345565b5b5f612a6085828601612446565b9250506020612a7185828601612446565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612abf57607f821691505b602082108103612ad257612ad1612a7b565b5b50919050565b5f606082019050612aeb5f8301866125b5565b612af860208301856125b5565b612b05604083018461248e565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612b4482612485565b91505f8203612b5657612b55612b0d565b5b600182039050919050565b5f612b6b82612485565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612b9d57612b9c612b0d565b5b600182019050919050565b5f612bb282612485565b9150612bbd83612485565b9250828202612bcb81612485565b91508282048414831517612be257612be1612b0d565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f612c2082612485565b9150612c2b83612485565b925082612c3b57612c3a612be9565b5b828204905092915050565b5f612c5082612485565b9150612c5b83612485565b9250828201905080821115612c7357612c72612b0d565b5b92915050565b5f81519050612c8781612560565b92915050565b5f60208284031215612ca257612ca1612345565b5b5f612caf84828501612c79565b91505092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302612d147fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612cd9565b612d1e8683612cd9565b95508019841693508086168417925050509392505050565b5f612d50612d4b612d4684612485565b6126d0565b612485565b9050919050565b5f819050919050565b612d6983612d36565b612d7d612d7582612d57565b848454612ce5565b825550505050565b5f90565b612d91612d85565b612d9c818484612d60565b505050565b5b81811015612dbf57612db45f82612d89565b600181019050612da2565b5050565b601f821115612e0457612dd581612cb8565b612dde84612cca565b81016020851015612ded578190505b612e01612df985612cca565b830182612da1565b50505b505050565b5f82821c905092915050565b5f612e245f1984600802612e09565b1980831691505092915050565b5f612e3c8383612e15565b9150826002028217905092915050565b612e55826124b6565b67ffffffffffffffff811115612e6e57612e6d61274c565b5b612e788254612aa8565b612e83828285612dc3565b5f60209050601f831160018114612eb4575f8415612ea2578287015190505b612eac8582612e31565b865550612f13565b601f198416612ec286612cb8565b5f5b82811015612ee957848901518255600182019150602085019450602081019050612ec4565b86831015612f065784890151612f02601f891682612e15565b8355505b6001600288020188555050505b505050505050565b5f81905092915050565b5f612f2f826124b6565b612f398185612f1b565b9350612f498185602086016124d0565b80840191505092915050565b5f8154612f6181612aa8565b612f6b8186612f1b565b9450600182165f8114612f855760018114612f9a57612fcc565b60ff1983168652811515820286019350612fcc565b612fa385612cb8565b5f5b83811015612fc457815481890152600182019150602081019050612fa5565b838801955050505b50505092915050565b5f612fe08286612f25565b9150612fec8285612f25565b9150612ff88284612f55565b9150819050949350505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f613039601f836124c0565b915061304482613005565b602082019050919050565b5f6020820190508181035f8301526130668161302d565b9050919050565b5f6060820190506130805f8301866125b5565b61308d602083018561248e565b61309a60408301846125b5565b949350505050565b5f81519050919050565b5f82825260208201905092915050565b5f6130c6826130a2565b6130d081856130ac565b93506130e08185602086016124d0565b6130e9816124f8565b840191505092915050565b5f6080820190506131075f8301876125b5565b61311460208301866125b5565b613121604083018561248e565b818103606083015261313381846130bc565b905095945050505050565b5f8151905061314c81612378565b92915050565b5f6020828403121561316757613166612345565b5b5f6131748482850161313e565b9150509291505056fea26469706673582212200a3588291b36bce9a9f33caa0f88e77ba989ac66613ca2a91123460a9ed60c4164736f6c6343000816003368747470733a2f2f646179746f6e6166696e616e63652e626c6f622e636f72652e77696e646f77732e6e65742f736f73612d6e66742d6d657461646174612f

Deployed ByteCode

0x608060405234801561000f575f80fd5b50600436106101c2575f3560e01c806370a08231116100f7578063a22cb46511610095578063c87b56dd1161006f578063c87b56dd146104c9578063e985e9c5146104f9578063f2fde38b14610529578063fccc281314610545576101c2565b8063a22cb46514610475578063b88d4fde14610491578063c30f4a5a146104ad576101c2565b806380b7af18116100d157806380b7af18146103ff5780638da5cb5b1461041d57806395d89b411461043b5780639cd7cdad14610459576101c2565b806370a08231146103a9578063715018a6146103d957806374ce962c146103e3576101c2565b806323b872dd116101645780633d18b9121161013e5780633d18b9121461033557806342842e0e1461033f5780636180c6091461035b5780636352211e14610379576101c2565b806323b872dd146102cc5780632a55205a146102e85780633c168eab14610319576101c2565b8063081812fc116101a0578063081812fc14610244578063095ea7b31461027457806318160ddd1461029057806320b2af52146102ae576101c2565b806301ffc9a7146101c657806304599012146101f657806306fdde0314610226575b5f80fd5b6101e060048036038101906101db91906123a2565b610563565b6040516101ed91906123e7565b60405180910390f35b610210600480360381019061020b919061245a565b610574565b60405161021d919061249d565b60405180910390f35b61022e610589565b60405161023b9190612540565b60405180910390f35b61025e6004803603810190610259919061258a565b610618565b60405161026b91906125c4565b60405180910390f35b61028e600480360381019061028991906125dd565b610633565b005b610298610649565b6040516102a5919061249d565b60405180910390f35b6102b6610652565b6040516102c39190612540565b60405180910390f35b6102e660048036038101906102e1919061261b565b61068b565b005b61030260048036038101906102fd919061266b565b6107da565b6040516103109291906126a9565b60405180910390f35b610333600480360381019061032e91906125dd565b6109b6565b005b61033d610ad2565b005b6103596004803603810190610354919061261b565b610b6b565b005b610363610b8a565b604051610370919061249d565b60405180910390f35b610393600480360381019061038e919061258a565b610c29565b6040516103a091906125c4565b60405180910390f35b6103c360048036038101906103be919061245a565b610c3a565b6040516103d0919061249d565b60405180910390f35b6103e1610cf0565b005b6103fd60048036038101906103f8919061245a565b610d03565b005b610407610d4e565b604051610414919061272b565b60405180910390f35b610425610d73565b60405161043291906125c4565b60405180910390f35b610443610d9b565b6040516104509190612540565b60405180910390f35b610473600480360381019061046e9190612870565b610e2b565b005b61048f600480360381019061048a91906128e1565b610e46565b005b6104ab60048036038101906104a691906129bd565b610e5c565b005b6104c760048036038101906104c29190612870565b610fad565b005b6104e360048036038101906104de919061258a565b610fc8565b6040516104f09190612540565b60405180910390f35b610513600480360381019061050e9190612a3d565b6110b2565b60405161052091906123e7565b60405180910390f35b610543600480360381019061053e919061245a565b611140565b005b61054d6111c4565b60405161055a91906125c4565b60405180910390f35b5f61056d826111ca565b9050919050565b600e602052805f5260405f205f915090505481565b60605f805461059790612aa8565b80601f01602080910402602001604051908101604052809291908181526020018280546105c390612aa8565b801561060e5780601f106105e55761010080835404028352916020019161060e565b820191905f5260205f20905b8154815290600101906020018083116105f157829003601f168201915b5050505050905090565b5f61062282611243565b5061062c826112c9565b9050919050565b6106458282610640611302565b611309565b5050565b5f600b54905090565b6040518060400160405280600b81526020017f403078536c61736864307400000000000000000000000000000000000000000081525081565b61069361131b565b600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632c8e8dfa8484846040518463ffffffff1660e01b81526004016106f193929190612ad8565b5f604051808303815f87803b158015610708575f80fd5b505af115801561071a573d5f803e3d5ffd5b50505050600e5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f81548092919061076b90612b3a565b9190505550600e5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154809291906107bd90612b61565b91905055506107cd83838361136a565b6107d5611469565b505050565b5f805f60085f8681526020019081526020015f206040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505f73ffffffffffffffffffffffffffffffffffffffff16815f015173ffffffffffffffffffffffffffffffffffffffff16036109635760076040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b5f61096c611473565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866109989190612ba8565b6109a29190612c16565b9050815f0151819350935050509250929050565b6109be61147c565b6109c661131b565b6001600b5f8282546109d89190612c46565b925050819055506109e98282611503565b600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632c8e8dfa5f84846040518463ffffffff1660e01b8152600401610a4793929190612ad8565b5f604051808303815f87803b158015610a5e575f80fd5b505af1158015610a70573d5f803e3d5ffd5b50505050600e5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815480929190610ac190612b61565b9190505550610ace611469565b5050565b610ada61131b565b600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fea99c4b336040518263ffffffff1660e01b8152600401610b3491906125c4565b5f604051808303815f87803b158015610b4b575f80fd5b505af1158015610b5d573d5f803e3d5ffd5b50505050610b69611469565b565b610b8583838360405180602001604052805f815250610e5c565b505050565b5f600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663267e8ab6336040518263ffffffff1660e01b8152600401610be591906125c4565b602060405180830381865afa158015610c00573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c249190612c8d565b905090565b5f610c3382611243565b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610cab575f6040517f89c62b64000000000000000000000000000000000000000000000000000000008152600401610ca291906125c4565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610cf861147c565b610d015f6115f6565b565b610d0b61147c565b80600f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610daa90612aa8565b80601f0160208091040260200160405190810160405280929190818152602001828054610dd690612aa8565b8015610e215780601f10610df857610100808354040283529160200191610e21565b820191905f5260205f20905b815481529060010190602001808311610e0457829003601f168201915b5050505050905090565b610e3361147c565b80600d9081610e429190612e4c565b5050565b610e58610e51611302565b83836116b9565b5050565b610e6461131b565b600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632c8e8dfa8585856040518463ffffffff1660e01b8152600401610ec293929190612ad8565b5f604051808303815f87803b158015610ed9575f80fd5b505af1158015610eeb573d5f803e3d5ffd5b50505050600e5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815480929190610f3c90612b3a565b9190505550600e5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815480929190610f8e90612b61565b9190505550610f9f84848484611822565b610fa7611469565b50505050565b610fb561147c565b80600c9081610fc49190612e4c565b5050565b6060610fd382611243565b505f600c8054610fe290612aa8565b80601f016020809104026020016040519081016040528092919081815260200182805461100e90612aa8565b80156110595780601f1061103057610100808354040283529160200191611059565b820191905f5260205f20905b81548152906001019060200180831161103c57829003601f168201915b505050505090505f81511161107c5760405180602001604052805f8152506110aa565b806110868461183f565b600d60405160200161109a93929190612fd5565b6040516020818303038152906040525b915050919050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b61114861147c565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111b8575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016111af91906125c4565b60405180910390fd5b6111c1816115f6565b50565b61036981565b5f7f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061123c575061123b82611909565b5b9050919050565b5f8061124e83611969565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112c057826040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016112b7919061249d565b60405180910390fd5b80915050919050565b5f60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f33905090565b61131683838360016119a2565b505050565b6002600a5403611360576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113579061304f565b60405180910390fd5b6002600a81905550565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113da575f6040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016113d191906125c4565b60405180910390fd5b5f6113ed83836113e8611302565b611b61565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611463578382826040517f64283d7b00000000000000000000000000000000000000000000000000000000815260040161145a9392919061306d565b60405180910390fd5b50505050565b6001600a81905550565b5f612710905090565b611484611302565b73ffffffffffffffffffffffffffffffffffffffff166114a2610d73565b73ffffffffffffffffffffffffffffffffffffffff1614611501576114c5611302565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016114f891906125c4565b60405180910390fd5b565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611573575f6040517f64a0ae9200000000000000000000000000000000000000000000000000000000815260040161156a91906125c4565b60405180910390fd5b5f61157f83835f611b61565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115f1575f6040517f73c6ac6e0000000000000000000000000000000000000000000000000000000081526004016115e891906125c4565b60405180910390fd5b505050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361172957816040517f5b08ba1800000000000000000000000000000000000000000000000000000000815260040161172091906125c4565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161181591906123e7565b60405180910390a3505050565b61182d84848461068b565b61183984848484611d6c565b50505050565b60605f600161184d84611f1e565b0190505f8167ffffffffffffffff81111561186b5761186a61274c565b5b6040519080825280601f01601f19166020018201604052801561189d5781602001600182028036833780820191505090505b5090505f82602001820190505b6001156118fe578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816118f3576118f2612be9565b5b0494505f85036118aa575b819350505050919050565b5f634906490660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061196257506119618261206f565b5b9050919050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b80806119da57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611b0c575f6119e984611243565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611a5357508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015611a665750611a6481846110b2565b155b15611aa857826040517fa9fbf51f000000000000000000000000000000000000000000000000000000008152600401611a9f91906125c4565b60405180910390fd5b8115611b0a57838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b8360045f8581526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b5f80611b6c84611969565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611bad57611bac818486612150565b5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611c3857611bec5f855f806119a2565b600160035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825403925050819055505b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611cb757600160035f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8460025f8681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b5f8373ffffffffffffffffffffffffffffffffffffffff163b1115611f18578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02611daf611302565b8685856040518563ffffffff1660e01b8152600401611dd194939291906130f4565b6020604051808303815f875af1925050508015611e0c57506040513d601f19601f82011682018060405250810190611e099190613152565b60015b611e8d573d805f8114611e3a576040519150601f19603f3d011682016040523d82523d5f602084013e611e3f565b606091505b505f815103611e8557836040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401611e7c91906125c4565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611f1657836040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401611f0d91906125c4565b60405180910390fd5b505b50505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611f7a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611f7057611f6f612be9565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310611fb7576d04ee2d6d415b85acef81000000008381611fad57611fac612be9565b5b0492506020810190505b662386f26fc100008310611fe657662386f26fc100008381611fdc57611fdb612be9565b5b0492506010810190505b6305f5e100831061200f576305f5e100838161200557612004612be9565b5b0492506008810190505b612710831061203457612710838161202a57612029612be9565b5b0492506004810190505b60648310612057576064838161204d5761204c612be9565b5b0492506002810190505b600a8310612066576001810190505b80915050919050565b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061213957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612149575061214882612213565b5b9050919050565b61215b83838361227c565b61220e575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036121cf57806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016121c6919061249d565b60405180910390fd5b81816040517f177e802f0000000000000000000000000000000000000000000000000000000081526004016122059291906126a9565b60405180910390fd5b505050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561233357508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806122f457506122f384846110b2565b5b8061233257508273ffffffffffffffffffffffffffffffffffffffff1661231a836112c9565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6123818161234d565b811461238b575f80fd5b50565b5f8135905061239c81612378565b92915050565b5f602082840312156123b7576123b6612345565b5b5f6123c48482850161238e565b91505092915050565b5f8115159050919050565b6123e1816123cd565b82525050565b5f6020820190506123fa5f8301846123d8565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61242982612400565b9050919050565b6124398161241f565b8114612443575f80fd5b50565b5f8135905061245481612430565b92915050565b5f6020828403121561246f5761246e612345565b5b5f61247c84828501612446565b91505092915050565b5f819050919050565b61249781612485565b82525050565b5f6020820190506124b05f83018461248e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156124ed5780820151818401526020810190506124d2565b5f8484015250505050565b5f601f19601f8301169050919050565b5f612512826124b6565b61251c81856124c0565b935061252c8185602086016124d0565b612535816124f8565b840191505092915050565b5f6020820190508181035f8301526125588184612508565b905092915050565b61256981612485565b8114612573575f80fd5b50565b5f8135905061258481612560565b92915050565b5f6020828403121561259f5761259e612345565b5b5f6125ac84828501612576565b91505092915050565b6125be8161241f565b82525050565b5f6020820190506125d75f8301846125b5565b92915050565b5f80604083850312156125f3576125f2612345565b5b5f61260085828601612446565b925050602061261185828601612576565b9150509250929050565b5f805f6060848603121561263257612631612345565b5b5f61263f86828701612446565b935050602061265086828701612446565b925050604061266186828701612576565b9150509250925092565b5f806040838503121561268157612680612345565b5b5f61268e85828601612576565b925050602061269f85828601612576565b9150509250929050565b5f6040820190506126bc5f8301856125b5565b6126c9602083018461248e565b9392505050565b5f819050919050565b5f6126f36126ee6126e984612400565b6126d0565b612400565b9050919050565b5f612704826126d9565b9050919050565b5f612715826126fa565b9050919050565b6127258161270b565b82525050565b5f60208201905061273e5f83018461271c565b92915050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612782826124f8565b810181811067ffffffffffffffff821117156127a1576127a061274c565b5b80604052505050565b5f6127b361233c565b90506127bf8282612779565b919050565b5f67ffffffffffffffff8211156127de576127dd61274c565b5b6127e7826124f8565b9050602081019050919050565b828183375f83830152505050565b5f61281461280f846127c4565b6127aa565b9050828152602081018484840111156128305761282f612748565b5b61283b8482856127f4565b509392505050565b5f82601f83011261285757612856612744565b5b8135612867848260208601612802565b91505092915050565b5f6020828403121561288557612884612345565b5b5f82013567ffffffffffffffff8111156128a2576128a1612349565b5b6128ae84828501612843565b91505092915050565b6128c0816123cd565b81146128ca575f80fd5b50565b5f813590506128db816128b7565b92915050565b5f80604083850312156128f7576128f6612345565b5b5f61290485828601612446565b9250506020612915858286016128cd565b9150509250929050565b5f67ffffffffffffffff8211156129395761293861274c565b5b612942826124f8565b9050602081019050919050565b5f61296161295c8461291f565b6127aa565b90508281526020810184848401111561297d5761297c612748565b5b6129888482856127f4565b509392505050565b5f82601f8301126129a4576129a3612744565b5b81356129b484826020860161294f565b91505092915050565b5f805f80608085870312156129d5576129d4612345565b5b5f6129e287828801612446565b94505060206129f387828801612446565b9350506040612a0487828801612576565b925050606085013567ffffffffffffffff811115612a2557612a24612349565b5b612a3187828801612990565b91505092959194509250565b5f8060408385031215612a5357612a52612345565b5b5f612a6085828601612446565b9250506020612a7185828601612446565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612abf57607f821691505b602082108103612ad257612ad1612a7b565b5b50919050565b5f606082019050612aeb5f8301866125b5565b612af860208301856125b5565b612b05604083018461248e565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612b4482612485565b91505f8203612b5657612b55612b0d565b5b600182039050919050565b5f612b6b82612485565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612b9d57612b9c612b0d565b5b600182019050919050565b5f612bb282612485565b9150612bbd83612485565b9250828202612bcb81612485565b91508282048414831517612be257612be1612b0d565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f612c2082612485565b9150612c2b83612485565b925082612c3b57612c3a612be9565b5b828204905092915050565b5f612c5082612485565b9150612c5b83612485565b9250828201905080821115612c7357612c72612b0d565b5b92915050565b5f81519050612c8781612560565b92915050565b5f60208284031215612ca257612ca1612345565b5b5f612caf84828501612c79565b91505092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302612d147fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612cd9565b612d1e8683612cd9565b95508019841693508086168417925050509392505050565b5f612d50612d4b612d4684612485565b6126d0565b612485565b9050919050565b5f819050919050565b612d6983612d36565b612d7d612d7582612d57565b848454612ce5565b825550505050565b5f90565b612d91612d85565b612d9c818484612d60565b505050565b5b81811015612dbf57612db45f82612d89565b600181019050612da2565b5050565b601f821115612e0457612dd581612cb8565b612dde84612cca565b81016020851015612ded578190505b612e01612df985612cca565b830182612da1565b50505b505050565b5f82821c905092915050565b5f612e245f1984600802612e09565b1980831691505092915050565b5f612e3c8383612e15565b9150826002028217905092915050565b612e55826124b6565b67ffffffffffffffff811115612e6e57612e6d61274c565b5b612e788254612aa8565b612e83828285612dc3565b5f60209050601f831160018114612eb4575f8415612ea2578287015190505b612eac8582612e31565b865550612f13565b601f198416612ec286612cb8565b5f5b82811015612ee957848901518255600182019150602085019450602081019050612ec4565b86831015612f065784890151612f02601f891682612e15565b8355505b6001600288020188555050505b505050505050565b5f81905092915050565b5f612f2f826124b6565b612f398185612f1b565b9350612f498185602086016124d0565b80840191505092915050565b5f8154612f6181612aa8565b612f6b8186612f1b565b9450600182165f8114612f855760018114612f9a57612fcc565b60ff1983168652811515820286019350612fcc565b612fa385612cb8565b5f5b83811015612fc457815481890152600182019150602081019050612fa5565b838801955050505b50505092915050565b5f612fe08286612f25565b9150612fec8285612f25565b9150612ff88284612f55565b9150819050949350505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f613039601f836124c0565b915061304482613005565b602082019050919050565b5f6020820190508181035f8301526130668161302d565b9050919050565b5f6060820190506130805f8301866125b5565b61308d602083018561248e565b61309a60408301846125b5565b949350505050565b5f81519050919050565b5f82825260208201905092915050565b5f6130c6826130a2565b6130d081856130ac565b93506130e08185602086016124d0565b6130e9816124f8565b840191505092915050565b5f6080820190506131075f8301876125b5565b61311460208301866125b5565b613121604083018561248e565b818103606083015261313381846130bc565b905095945050505050565b5f8151905061314c81612378565b92915050565b5f6020828403121561316757613166612345565b5b5f6131748482850161313e565b9150509291505056fea26469706673582212200a3588291b36bce9a9f33caa0f88e77ba989ac66613ca2a91123460a9ed60c4164736f6c63430008160033