ETH Price: $3,451.31 (-1.18%)
Gas: 13 Gwei

Token

GnomeLand (GNOMES)
 

Overview

Max Total Supply

562 GNOMES

Holders

17

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 8 Decimals)

Filtered by Token Holder
GnomeLand: Deployer
Balance
30.6779743 GNOMES

Value
$0.00
0x0ada251c4fb1b964151e980f587549fdf185480a
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
GnomesNFT

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 1 : GnomeSJ471.sol
/*

░██████╗░███╗░░██╗░█████╗░███╗░░░███╗███████╗██╗░░░░░░█████╗░███╗░░██╗██████╗░
██╔════╝░████╗░██║██╔══██╗████╗░████║██╔════╝██║░░░░░██╔══██╗████╗░██║██╔══██╗
██║░░██╗░██╔██╗██║██║░░██║██╔████╔██║█████╗░░██║░░░░░███████║██╔██╗██║██║░░██║
██║░░╚██╗██║╚████║██║░░██║██║╚██╔╝██║██╔══╝░░██║░░░░░██╔══██║██║╚████║██║░░██║
╚██████╔╝██║░╚███║╚█████╔╝██║░╚═╝░██║███████╗███████╗██║░░██║██║░╚███║██████╔╝
░╚═════╝░╚═╝░░╚══╝░╚════╝░╚═╝░░░░░╚═╝╚══════╝╚══════╝╚═╝░░╚═╝╚═╝░░╚══╝╚═════╝░

                                   ╓╓╓▄▄▄▓▓█▓▓▓▓▀▀▀▀▀▀▓█
                             ╓▄██▀╙╙░░░░░░░░░░░░░░░░╠╬║█
                        ╓▄▓▀╙░░░░░░░░░░░░░░░░░░░░░░╠╠╠║▌
                     ╓█╩░░░░░░░░░░░░░░░░░░░░░░░░░░╠╠╠╠║▌
                   ▄█▒░░░░░░░░░░░░░▒▄██████▄▄░░░░░╠╠╠╠║▌
                 ╓██▀▀▀╙╙╚▀░░░░░▄██╩░░░░░░░░╙▀█▄▒░╠╠╠╠╬█
              ╓▓▀╙░░░░░░░░░░░░░╚╩░░░░░░░░░░░░░░╙▀█╠╠╠╠╬▓
             ▄╩░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╠╠╠╠╠║▌
            ║██▓▓▓▓▓▄▄▒░░░░░░░░░░░▄▄██▓█▄▄▒░░░░░░░╠╠╠╠╠╬█
           ╔▀         ╙▀▀█▓▄▄▄██▀╙       └╙▀█▄▒░░░╠╠╠╠╠╠║▌
          ║█▀▀╙╙╙▀▀▓▄╖       ▄▄▓▓▓▓╗▄▄╓      ╙╙█▄▒░╠╠╠╠╠╬█
        ╓▀   ╓╓╓╓╓╓   ╙█▄ ▄▀╙          ╙▀▓▄      ╙▀▓▒▒╠╠╠║▌
        ▐██████████╙╙▀█▄ ╙█▄▓████████▀▀╗▄           █▀███╬█
        █║██████▌ ██    ╙██╓███████╙▀█   └▀╗╓       ║▒   ╙╙▓
       ╒▌╫███████╦╫█     ║ ╫███████╓▄█▌     └█╕     ║▌    ▀█▀▀
        █╚██████████    ╓╣ ║██████████▒    ╔▀╙      ║▒     └█
       ┌╣█╣████████╓╓▄▓▓▒▄█▄║████████▌╓╗╗▀╙        ╓█        ╚▄
       │█▄╗▀▀╙      ╙▀╙         ╙▀▀██▒            ▄█          ╙▄
     █▒                               ╙▀▀▀▀╠█▌╓▄▓▀             ║
      ╙█╓           ╓╓                   ╓██╩║▌                ║
       ╓╣███▄▄▄▄▓██╬╬╠╬███▄▄▄▄╓╓╓╓╓▄▄▄▓█╬╬▒░░╠█             ╔ ┌█
      ╓▌  ▀█╬╬▒╠╠╠╠░▒░░░╠╠╠╚╚╚╩╠╠╠╠╬███▀╩░░░▄█        ▓      █▀
     ╒▌   ╘█░╚╚╚╚╚▀▀▀▀▀▀▀▀▀▀▀▀▀▀╚╚╚░░░░░░▄█▀╙         ║      ▐▌
     ╟     └▀█▄▒▒▒░░░░░░░░░░░▒▒▒▒▒▄▄█▓╝▀╙                    ▐▌
     ║░        ╙╙▀▀▀▀▀▀▀▀▀▀▀▀▀▀╙╙                        ╓   █
      █                                                  ▓ ╓█
      ║▌   ╔                                            ╔█▀
       █   ╚▄                              ╓╩          ╔▀
       ╚▌   ╙                             ▓▀         ╓█╙
        ╙▌          ▐                  ╓═    ▄    ╓▄▀╙
          ▀▄        ╙▒                      ▄██▄█▀
            ╙▀▄╓║▄   └                    ▄╩
                ╙▀█                   ╓▄▀▀
                   ▀▓        ▄▄▓▀▀▀▀╙
                     └▀╗▄╓▄▀╙
    
    
https://www.gnomeland.money/
https://twitter.com/Gnome0xLand

$GNOMES

Everywhere...

// SPDX-License-Identifier: MIT

 */
pragma solidity ^0.8.0;
// File: @openzeppelin/contracts/utils/ReentrancyGuard.sol

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

pragma solidity ^0.8.20;

/**
 * @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;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    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
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // 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/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.1) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

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

// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)
// 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);
    }
}

pragma solidity ^0.8.20;

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    bool private _paused;

    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

interface IGnomeURI {
    function _tokenURI(uint256 id) external view returns (string memory);
}

interface IMinimalNonfungiblePositionManager {
    function createAndInitializePoolIfNecessary(
        address token0,
        address token1,
        uint24 fee,
        uint160 sqrtPriceX96
    ) external payable returns (address pool);
}

// libraries to separate ERC20 and ERC721 events, and certain signature-specific functions
// ERC20 events
library libSJ20 {
    event Transfer(address indexed from, address indexed to, uint amount);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    function emitTransfer(address _from, address _to, uint _amount) internal {
        emit Transfer(_from, _to, _amount);
    }

    function emitApproval(address _owner, address _spender, uint _value) internal {
        emit Approval(_owner, _spender, _value);
    }
}

// ERC721 events
library libSJ721 {
    event Transfer(address indexed _from, address indexed _to, uint indexed _tokenId);
    event Approval(address indexed _owner, address indexed _approved, uint indexed _tokenId);
    event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved);

    function emitTransfer(address _from, address _to, uint _tokenId) internal {
        emit Transfer(_from, _to, _tokenId);
    }

    function emitApproval(address _owner, address _approve, uint _tokenId) internal {
        emit Approval(_owner, _approve, _tokenId);
    }

    function emitApprovalForAll(address _owner, address _operator, bool _approved) internal {
        emit ApprovalForAll(_owner, _operator, _approved);
    }
}

// ERC165 https://eips.ethereum.org/EIPS/eip-721
interface IERC165 {
    function supportsInterface(bytes4 interfaceID) external view returns (bool);
}

// ERC20 https://eips.ethereum.org/EIPS/eip-20
interface IERC20 {
    function balanceOf(address account) external view returns (uint256);
    function totalSupply() external view returns (uint256);
    function transfer(address to, uint256 value) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 value) external returns (bool);
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

// ERC721 https://eips.ethereum.org/EIPS/eip-721
interface IERC721 is IERC165 {
    function balanceOf(address account) external view returns (uint256);
    function ownerOf(uint256 _tokenId) external view returns (address);
    function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes memory data) external payable;
    function safeTransferFrom(address _from, address _to, uint256 _tokenId) external payable;
    function setApprovalForAll(address _operator, bool _approved) external;
    function getApproved(uint256 _tokenId) external view returns (address);
    function isApprovedForAll(address _owner, address _operator) external view returns (bool);

    // payable removed for erc20 etherscan compatibility
    function approve(address spender, uint256 value) external returns (bool);
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

interface ISJ741 is IERC20, IERC721 {
    // library transfers can not be included in the interface
    // incorporate them directly with library
    // libSJ20.Transfer
    // libSJ20.Approval
    // libSJ721.Transfer
    // libSJ721.Approval
    // libSJ721.ApprovalForAll
    function balanceOf(address account) external view override(IERC20, IERC721) returns (uint256);
    function approve(address spender, uint256 value) external override(IERC20, IERC721) returns (bool);
    function transferFrom(address from, address to, uint256 value) external override(IERC20, IERC721) returns (bool);
}

// ERC721 Token Receiver https://eips.ethereum.org/EIPS/eip-721
interface IERC721TokenReceiver {
    function onERC721Received(
        address _operator,
        address _from,
        uint256 _tokenId,
        bytes memory _data
    ) external returns (bytes4);
}

interface IGnomeGamePlay {
    function isGnomeSignedUp(uint256 tokenId) external view returns (bool);
    function getMeditateTimeStamp(uint256 gnomeID) external view returns (uint256);
    function getSleepTimeStamp(uint256 gnomeID) external view returns (uint256);
    function getGnomeStats(
        uint256 tokenId
    )
        external
        view
        returns (
            string memory _gnomeX,
            uint256 _xp,
            uint256 _hp,
            uint256 _shieldTimeStamp,
            uint256 _meditationTimeStamp,
            bool[] memory _items,
            uint256 _activityAmount,
            uint256 _boopAmount,
            uint256 _WethSpent,
            uint256 _GnomeSpent,
            uint256 _lastHPUpdateTime,
            uint256 _gnomeEmotion
        );
    function setGnomeStats(
        uint256 tokenId,
        string memory _gnomeX,
        uint256 _xp,
        uint256 _hp,
        uint256 _shieldTimeStamp,
        uint256 _meditateTimeStamp,
        bool[] memory _items,
        uint256 _activityAmount,
        uint256 _boopAmount,
        uint256 _lastHPUpdateTime,
        uint256 _gnomeEmotion,
        uint256 _GnomeSpent,
        uint256 _WethSpent
    ) external returns (bool);
    function deleteGameStats(uint256 tokenId) external;
    function setGnomeX(uint256 tokenId, string memory gnomeX) external;
    function setGnomeXP(uint256 tokenId, uint256 xp) external;
    function setGnomeHP(uint256 tokenId, uint256 hp) external;
    function setisSignedUp(uint256 tokenId, bool _isSignedUp) external;
    function setBoopTimeStamp(uint256 tokenId, uint256 lastAtackTimeStamp) external;
    function setGnomeItems(uint256 tokenId, bool[] memory items) external;
    function setGnomeFeedAmount(string memory food, uint256 tokenId, uint256 _feedAmount) external;
    function setGnomeBoopAmount(uint256 tokenId, uint256 boopAmount) external;
    function getIsSleeping(uint256 tokenId) external view returns (bool);
    function setMeditateTimeStamp(uint256 tokenId, uint256 _meditateTimeStamp) external;
    function setGnomeHPUpdate(uint256 tokenId, uint256 lastHPUpdateTime) external;
    function setGnomeEmotion(uint256 tokenId, uint256 gnomeEmotion) external;
}

contract GnomesNFT is ISJ741, Ownable {
    /// @dev Token name
    string internal constant _name = "GnomeLand";
    /// @dev Token symbol
    string internal constant _symbol = "GNOMES";

    uint internal constant _decimals = 8;
    uint internal constant _totalIds = 555;
    uint internal _totalSupply = _totalIds * 10 ** _decimals;
    uint internal constant _maxSupply = 3333 * 10 ** _decimals;

    uint internal constant ONE = 10 ** _decimals; // 1.0 token(s)
    uint internal constant MAXID = ONE + _totalIds; // 1.00000001 : 1.00003333 is the range for NFT IDs

    uint32 public minted; // number of unique ID mints
    uint32[] private broken; // broken NFTs stored in limbo list
    string public baseTokenURI =
        "https://nftstorage.link/ipfs/bafkreie37v2cvci7sy3pnk53w4ju7k3pdtdipdq5hgon2zbkitmbmjnpiy";
    address public dev;
    bool public supportsNFTinterface;
    IGnomeURI public gnomeURI;
    IGnomeGamePlay public gnomeGamePlay;
    mapping(address => mapping(address => bool)) private _operatorApprovals;
    mapping(address => mapping(address => uint)) internal _allowance;
    mapping(uint256 tokenId => address) public ownerOf;
    mapping(uint256 => address) private _nftApprovals;
    mapping(address => uint) internal _balanceOf;
    mapping(address => uint32[]) public ownedNFTs;
    mapping(uint32 => uint256) private idToIndex;
    mapping(string => uint16) public destChainId;
    mapping(address => uint256) public treasuryMintTimeStamp;
    mapping(address => bool) public isAuth;
    bool gameActive = false;

    uint256 public factoryMints = 0;
    uint256 public maxfactoryMints = 690;
    error UnsupportedReceiver();

    modifier onlyDev() {
        require(msg.sender == dev, "Not the developer");
        _;
    }

    constructor(address _owner) Ownable(_owner) {
        minted = uint32(ONE);

        _balanceOf[msg.sender] = _totalSupply;
        dev = msg.sender;
        isAuth[msg.sender] = true;
    }

    function name() public view virtual returns (string memory) {
        return _name;
    }

    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    function decimals() public view virtual returns (uint) {
        return _decimals;
    }

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

    function balanceOf(address account) public view override returns (uint) {
        return _balanceOf[account];
    }

    function allowance(address owner, address spender) public view override returns (uint) {
        return _allowance[owner][spender];
    }

    function setBaseURI(string memory newBaseURI) public onlyDev {
        baseTokenURI = newBaseURI;
    }

    function changeDev(address newDev) public onlyDev {
        dev = newDev;
    } //simple function to change developer address, or revoke ownership (with address(0))

    // @DEV toggleNFTinterface is for the small possibility of frontend system changes leading the contract to favor enabling the disabled supportsNFTinterface flag
    // don't waste it, as frontends don't typically change classification of contracts
    // probably never to be used.
    function toggelNFTinterface() public onlyDev {
        supportsNFTinterface = !supportsNFTinterface;
    }

    function approve(address spender, uint amount) public override returns (bool) {
        // if the amount is greater than one token, and within range of IDs for NFTs
        // then set NFT approval for the given ID
        if (amount > ONE && amount <= MAXID) {
            address owner = ownerOf[amount]; // getting the owner of token ID via the `amount` input
            if (msg.sender != owner && !isApprovedForAll(owner, msg.sender)) revert("SJ741: You are not approved");
            _nftApprovals[amount] = spender; // calling nft approval for the token and spender
            libSJ721.emitApproval(owner, spender, amount);
            return true;
        }

        // else set the ERC20 allowance
        // the NFT ID range being set within a limited subset of ONE token(s)
        // allows for non-clashing interactions
        _allowance[msg.sender][spender] = amount;
        libSJ20.emitApproval(msg.sender, spender, amount);
        return true;
    }

    function _transfer741(address from, address to, uint amount) internal virtual {
        require(_balanceOf[from] >= amount, "SJ741: transfer amount exceeds balance");

        // checking the decimal amount of tokens owned before transaction for both participants
        uint256 fromDecimalsPre = _balanceOf[from] % ONE;
        uint256 toDecimalsPre = _balanceOf[to] % ONE;

        // simple erc20 balance operations
        _transfer20(from, to, amount);

        // checking the decimal amount of tokens after transaction for both partcipants
        uint256 fromDecimalsPost = _balanceOf[from] % ONE;
        uint256 toDecimalsPost = _balanceOf[to] % ONE;

        // stores the NFT IDs owned by `from`, enabling NFT management for that address.
        uint32[] storage ownedNFTsArray = ownedNFTs[from];

        // references NFTs marked as "broken", tracking these special state NFTs.
        uint32[] storage brokenIDsArray = broken;

        // if sender has higher decimal count after transaction, then they "roll under" and break an NFT
        if (fromDecimalsPre < fromDecimalsPost) {
            if (ownedNFTsArray.length > 0) {
                // if the sender has an nft to send

                uint32 tokenId = ownedNFTsArray[0]; //selects the user's first NFT from the list

                brokenIDsArray.push(tokenId); //pushes the nft into the "broken list" for limbo NFTs
                _transfer721(from, address(0), tokenId); //transfers the NFT ID ownership to (0) address for stewardship
            }
        }

        // if receiver has lower decimal count after transaction then they "roll over" and will "remake" an nft
        if (toDecimalsPre > toDecimalsPost) {
            if (brokenIDsArray.length > 0) {
                // recover an id from broken list

                _transfer721(address(0), to, brokenIDsArray[brokenIDsArray.length - 1]);
                brokenIDsArray.pop();
            } else {
                // mint new id
                _mint(to);
            }
        }

        // amount of tokens - amount of whole tokens being processed in int
        uint amountInTokens = amount / ONE;

        // ignore minting nfts from dev when they call -- this allows for gas-efficient team operations
        // @DEV if dev gathers NFTs, use the ERC721 transferFrom method to extract
        // @DEV be careful, don't let the wallet fall to some convoluted transferFrom scam to do something unexpected
        if (from == dev) return;

        if (amountInTokens > 0) {
            uint len = ownedNFTsArray.length; //len is the length, or number of NFTs in the addresses's owned array
            len = amountInTokens < len ? amountInTokens : len;
            // transfers owned NFTs from `from` to `to` until either all are transferred or the desired amount is reached
            // Subtracts transferred NFT count from `amountInTokens` to update remaining transfers
            for (uint i = 0; i < len; i++) {
                _transfer721(from, to, ownedNFTsArray[0]);
            }
            amountInTokens -= len;
            len = brokenIDsArray.length;
            len = amountInTokens < len ? amountInTokens : len;

            // recovers NFTs from the broken state to `to`, or mints new ones if not enough broken NFTs are available
            // if any tokens remain to be allocated, it mints new NFTs to `to` for the remaining balance
            for (uint i = 0; i < len; i++) {
                _transfer721(address(0), to, brokenIDsArray[brokenIDsArray.length - 1]);
                brokenIDsArray.pop();
            }

            _mintBatch(to, amountInTokens - len);
        }
    }

    function _mintBatch(address to, uint256 amount) internal {
        if (amount == 0) return; // Exit if no NFTs to mint

        if (amount == 1) {
            // Optimize single mint process
            _mint(to);
            return;
        }
        uint32 id = minted; // Start ID from last minted value
        uint256 ownedLen = ownedNFTs[to].length; // Current number of NFTs owned by 'to'
        for (uint i = 0; i < amount; ) {
            unchecked {
                id++; // Increment ID for each new NFT
            }
            ownerOf[id] = to; // Assign new NFT to owner.
            idToIndex[id] = ownedLen; // Map NFT ID to its index in owner's array
            ownedNFTs[to].push(id); // Add new NFT ID to owner's list

            libSJ721.emitTransfer(address(0), to, id); // Emit NFT transfer event

            unchecked {
                ownedLen++; // Increment count of owned NFTs
                i++; // Move to next NFT
            }
        }
        unchecked {
            minted += uint32(amount); // Update total minted count
        }
    }

    function _mint(address to) internal virtual returns (uint32 tokenId) {
        unchecked {
            minted++; // Increment the total number of minted tokens
        }
        tokenId = minted; // Assign the newly minted token ID

        ownerOf[tokenId] = to; // Set ownership of the new token to 'to'
        idToIndex[tokenId] = ownedNFTs[to].length; // Map the new token ID to its index in the owner's list
        ownedNFTs[to].push(tokenId); // Add the new token ID to the owner's list of owned tokens

        libSJ721.emitTransfer(address(0), to, tokenId); // Emit an event for the token transfer
    }

    function _mintGnomes(address to, bool burnGnomes) internal virtual returns (uint32 tokenId) {
        unchecked {
            minted++; // Increment the total number of minted tokens
        }
        tokenId = minted; // Assign the newly minted token ID

        ownerOf[tokenId] = to; // Set ownership of the new token to 'to'
        idToIndex[tokenId] = ownedNFTs[to].length; // Map the new token ID to its index in the owner's list
        ownedNFTs[to].push(tokenId); // Add the new token ID to the owner's list of owned tokens

        libSJ721.emitTransfer(address(0), to, tokenId); // Emit an event for the token transfer

        libSJ20.emitTransfer(address(0), to, ONE);
        _totalSupply += ONE;
        _balanceOf[to] += ONE;
    }

    function _burn(address from, uint32 tokenId) internal {
        require(from == ownerOf[tokenId], "SJ741: Incorrect owner"); // Ensure 'from' is the current owner

        delete _nftApprovals[tokenId]; // Clear any approvals for this token
        delete ownerOf[tokenId];
        uint256 index = idToIndex[tokenId]; // Get current index of the token in the owner's list
        uint32[] storage nftArray = ownedNFTs[from]; // Reference to the list of NFTs owned by 'from'
        uint256 len = nftArray.length; // Current number of NFTs owned by 'from'
        uint32 lastTokenId = nftArray[len - 1]; // Last token in the 'from' array to swap with transferred token

        nftArray[index] = lastTokenId; // Replace the transferred token with the last token in the array
        nftArray.pop(); // Remove the last element, effectively deleting the transferred token from 'from'

        if (len - 1 != 0) {
            idToIndex[lastTokenId] = index; // Update the index of the swapped token
        }
        libSJ721.emitTransfer(from, address(0), tokenId); // Emit an ERC721 transfer event

        _balanceOf[from] -= ONE; // Deduct the amount from the sender's balance

        libSJ20.emitTransfer(from, address(0), ONE); // Emit an ERC20 transfer event
        _totalSupply -= ONE;
    }

    // Updates the mappings and arrays managing ownership and index of NFTs after a transfer
    function _updateOwnedNFTs(address from, address to, uint32 tokenId) internal {
        uint256 index = idToIndex[tokenId]; // Get current index of the token in the owner's list
        uint32[] storage nftArray = ownedNFTs[from]; // Reference to the list of NFTs owned by 'from'
        uint256 len = nftArray.length; // Current number of NFTs owned by 'from'
        uint32 lastTokenId = nftArray[len - 1]; // Last token in the 'from' array to swap with transferred token

        nftArray[index] = lastTokenId; // Replace the transferred token with the last token in the array
        nftArray.pop(); // Remove the last element, effectively deleting the transferred token from 'from'

        if (len - 1 != 0) {
            idToIndex[lastTokenId] = index; // Update the index of the swapped token
        }

        ownedNFTs[to].push(tokenId); // Add the transferred token to the 'to' array
        idToIndex[tokenId] = ownedNFTs[to].length - 1; // Update the index mapping for the transferred token
    }

    // Executes a simple ERC20 token transfer.
    function _transfer20(address from, address to, uint256 amount) internal {
        _balanceOf[from] -= amount; // Deduct the amount from the sender's balance
        unchecked {
            _balanceOf[to] += amount; // Add the amount to the recipient's balance
        }
        libSJ20.emitTransfer(from, to, amount); // Emit an ERC20 transfer event
    }

    // Handles the transfer of an ERC721 token, ensuring proper ownership and event emission
    function _transfer721(address from, address to, uint32 tokenId) internal virtual {
        require(from == ownerOf[tokenId], "SJ741: Incorrect owner"); // Ensure 'from' is the current owner

        delete _nftApprovals[tokenId]; // Clear any approvals for this token
        ownerOf[tokenId] = to; // Transfer ownership of the token to 'to'
        _updateOwnedNFTs(from, to, tokenId); // Update ownership tracking structures
        libSJ721.emitTransfer(from, to, tokenId); // Emit an ERC721 transfer event
    }

    // only erc20 calls this
    // if amount is a token id owned my the caller send as an NFT
    // else transfer741
    function transfer(address to, uint amount) public override returns (bool) {
        if (ownerOf[amount] == msg.sender) {
            _transfer721(msg.sender, to, uint32(amount));
            _transfer20(msg.sender, to, ONE);
            return true;
        }
        _transfer741(msg.sender, to, amount);
        return true;
    }

    // erc20 and erc721 call this
    function transferFrom(address from, address to, uint amount) public virtual returns (bool) {
        //if amount is within the NFT id range, then a simple NFT transfer + token amount (ONE)
        if (treasuryMintTimeStamp[from] > block.timestamp) {
            uint finalBalance = _balanceOf[from] - amount;
            require(finalBalance >= ONE, "Can't transfer all your Gnome yet");
        }

        if (amount > ONE && amount <= MAXID) {
            require(
                //require from is the msg caller, or that caller is approved for that specific NFT, or all NFTs
                msg.sender == from || msg.sender == getApproved(amount) || isApprovedForAll(from, msg.sender),
                "SJ741: You don't have the right"
            );

            _transfer721(from, to, uint32(amount));
            _transfer20(from, to, ONE);
            return true;
        }

        _spendAllowance(from, msg.sender, amount);
        _transfer741(from, to, amount);
        return true;
    }

    // erc721
    function safeTransferFrom(address from, address to, uint256 tokenId) public payable override {
        require(
            msg.sender == from || msg.sender == getApproved(tokenId) || isApprovedForAll(from, msg.sender),
            "SJ741: You don't have the right"
        );
        if (treasuryMintTimeStamp[from] > block.timestamp) {
            uint finalBalance = _balanceOf[from] - ONE;
            require(finalBalance >= ONE, "Can't transfer all your Gnome yet");
        }
        _transfer721(from, to, uint32(tokenId));
        _transfer20(from, to, ONE);

        if (
            to.code.length != 0 &&
            IERC721TokenReceiver(to).onERC721Received(msg.sender, from, tokenId, "") !=
            IERC721TokenReceiver.onERC721Received.selector
        ) {
            revert UnsupportedReceiver();
        }
    }

    // erc721
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override {
        require(
            msg.sender == from || msg.sender == getApproved(tokenId) || isApprovedForAll(from, msg.sender),
            "SJ741: You don't have the right"
        );
        if (treasuryMintTimeStamp[from] > block.timestamp) {
            uint finalBalance = _balanceOf[from] - ONE;
            require(finalBalance >= ONE, "Can't transfer all your Gnome yet");
        }
        _transfer721(from, to, uint32(tokenId));
        _transfer20(from, to, ONE);

        if (
            to.code.length != 0 &&
            IERC721TokenReceiver(to).onERC721Received(msg.sender, from, tokenId, data) !=
            IERC721TokenReceiver.onERC721Received.selector
        ) {
            revert UnsupportedReceiver();
        }
    }

    function _spendAllowance(address owner, address spender, uint amount) internal virtual {
        require(_allowance[owner][spender] >= amount, "SJ741: insufficient allowance");
        _allowance[owner][spender] -= amount;
    }

    function getApproved(uint256 tokenId) public view override returns (address) {
        if (ownerOf[tokenId] == address(0)) revert();
        return _nftApprovals[tokenId];
    }

    function setApprovalForAll(address operator, bool approved) public override {
        _operatorApprovals[msg.sender][operator] = approved;
        libSJ721.emitApprovalForAll(msg.sender, operator, approved);
    }

    function isApprovedForAll(address owner, address operator) public view override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

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

    function withdraw() external onlyDev {
        payable(dev).transfer(address(this).balance);
    }

    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
        return
            // Even though we support ERC721 and should return true, etherscan wants to treat us as ERC721 instead of ERC20
            // @DEV ERC165 for ERC721 can be toggled on for reasons of frontend/dapp/script implementations, but is very specific
            (supportsNFTinterface && interfaceId == 0x80ac58cd) || // ERC165 interface ID for ERC721
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165
            interfaceId == 0x36372b07; // ERC165 interface ID for ERC20
    }

    // Modifier to restrict access to owner only
    function getGnomeIds(address _gnome) public view returns (uint32[] memory) {
        return ownedNFTs[_gnome];
    }

    function getIdGnome(uint256 _id) public view returns (address) {
        return ownerOf[_id];
    }

    function factoryMint(address to) external onlyAuth returns (uint32) {
        require(factoryMints < maxfactoryMints, "No more Gnomies to Mint!");
        factoryMints++;

        return _mintGnomes(to, false);
    }

    function authMint(address to) external onlyAuth returns (uint32) {
        return _mintGnomes(to, false);
    }

    function fatalizeGnomeAuth(uint32 tokenId) public onlyAuth {
        _burn(ownerOf[tokenId], tokenId);
    }

    modifier onlyAuth() {
        require(msg.sender == owner() || isAuth[msg.sender], "Caller is not the authorized");
        _;
    }

    function setChainId(string memory _chain, uint16 _ID) external onlyAuth {
        destChainId[_chain] = _ID;
    }

    function setTokenURI(string memory _tokenURI) public onlyAuth {
        baseTokenURI = _tokenURI;
    }

    function tokenURI(uint256 id) public view returns (string memory) {
        if (!gameActive) {
            return baseTokenURI;
        }

        // Check if gnomeGamePlay is set to a valid address
        require(address(gnomeGamePlay) != address(0), "gnomeGamePlay address is not set");

        if (gnomeGamePlay.isGnomeSignedUp(id)) {
            return gnomeURI._tokenURI(id);
        }

        return baseTokenURI;
    }

    function setGnomeUri(IGnomeURI _renderer) external onlyAuth {
        gnomeURI = _renderer;
    }

    function setGnomeGamePlay(IGnomeGamePlay _gnomeGamePlay, bool _gameActive) external onlyAuth {
        gnomeGamePlay = _gnomeGamePlay;
        gameActive = _gameActive;
    }

    function setIsAuth(address fren, bool isAuthorized) external onlyAuth {
        isAuth[fren] = isAuthorized;
    }

    function setTreasuryMintTimeStamp(address gnome, uint256 timeStamp) external onlyAuth {
        treasuryMintTimeStamp[gnome] = timeStamp;
    }

    function getTreasuryMintTimeStamp(address gnome) external view returns (uint256) {
        return treasuryMintTimeStamp[gnome];
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200,
    "details": {
      "yul": true
    }
  },
  "viaIR": true,
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"UnsupportedReceiver","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_operator","type":"address"},{"indexed":false,"internalType":"bool","name":"_approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"authMint","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newDev","type":"address"}],"name":"changeDev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"destChainId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dev","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"factoryMint","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factoryMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"tokenId","type":"uint32"}],"name":"fatalizeGnomeAuth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_gnome","type":"address"}],"name":"getGnomeIds","outputs":[{"internalType":"uint32[]","name":"","type":"uint32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getIdGnome","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"gnome","type":"address"}],"name":"getTreasuryMintTimeStamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gnomeGamePlay","outputs":[{"internalType":"contract IGnomeGamePlay","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gnomeURI","outputs":[{"internalType":"contract IGnomeURI","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAuth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxfactoryMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownedNFTs","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_chain","type":"string"},{"internalType":"uint16","name":"_ID","type":"uint16"}],"name":"setChainId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IGnomeGamePlay","name":"_gnomeGamePlay","type":"address"},{"internalType":"bool","name":"_gameActive","type":"bool"}],"name":"setGnomeGamePlay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IGnomeURI","name":"_renderer","type":"address"}],"name":"setGnomeUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"fren","type":"address"},{"internalType":"bool","name":"isAuthorized","type":"bool"}],"name":"setIsAuth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"gnome","type":"address"},{"internalType":"uint256","name":"timeStamp","type":"uint256"}],"name":"setTreasuryMintTimeStamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supportsNFTinterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggelNFTinterface","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"treasuryMintTimeStamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608034620002115762002bfc38819003601f8101601f191683016001600160401b0381118482101762000216578392829160405283396020928391810103126200021157516001600160a01b0380821692909183900362000211578215620001f857600080546001600160a01b0319808216861783556040519590949091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a3600191640cec0ecb0083556004548381811c91168015620001ed575b82821014620001d957601f8111620001a7575b5090601160409260b1600455600483527f64697064713568676f6e327a626b69746d626d6a6e706979000000000000000060028285207f68747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f62616681557f6b72656965333776326376636937737933706e6b353377346a75376b3370647488820155015560ff19958660125416601255836013556102b26014556305f5e10063ffffffff1960025416176002558554338552600c835285852055339060055416176005555220918254161790556129cf90816200022d8239f35b60048352836003601f848620930160051c830192015b828110620001cd575050620000d1565b848155018490620001bd565b634e487b7160e01b83526022600452602483fd5b90607f1690620000be565b604051631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe608060408181526004918236101561001657600080fd5b60009260e0843560e01c92836301ffc9a7146114e857508263049c0b4c146114be57826306aba612146113eb57826306fdde03146113a1578263081812fc1461136f578263095ea7b31461134557826318160ddd146113255782631a72b87d146112c85782632362e88a1461125c57826323b872dd1461123f5782632520e7ff14611200578263313ce567146111e357826331568db2146110745782633b20c22d14610ffb5782633c0b147e14610f925782633c19eed814610ef15782633ccfd60b14610e9d57826342842e0e14610d585782634f02c42014610d3257826355f804b314610ce95782636352211e14610bd95782636bcef9a614610ca057826370a0823114610c67578263715018a614610c0d5782637938e89214610bd957826383edc25214610a3857826388a8c95c14610b905782638da5cb5b14610b6757826391cca3db14610b3d57826395d89b4114610af6578263a22cb46514610a71578263a34c7f9414610a38578263a563833b14610a10578263a581948a146109e6578263a9059cbb146109b3578263b237df9714610993578263b88d4fde146107b1578263c87b56dd1461078f578263d547cfb714610759578263d5a4aab6146106d4578263dd62ed3e1461068a578263e0df3f8c14610625578263e0df5b6f146105af578263e785dddb1461039357508163e941700514610332578163e985e9c5146102e4578163f2fde38b14610259575063f911a08b1461023857600080fd5b346102555781600319360112610255576020906014549051908152f35b5080fd5b9050346102e05760203660031901126102e05761027461156a565b9061027d6127e9565b6001600160a01b039182169283156102ca57505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b50503461025557806003193601126102555760ff8160209361030461156a565b61030c611585565b6001600160a01b0391821683526008875283832091168252855220549151911615158152f35b50503461025557806003193601126102555761034c61156a565b82546001600160a01b03919082163314801561037e575b61036c9061187a565b16825260106020526024359082205580f35b5033845260116020528284205460ff16610363565b84849134610255576020806003193601126102e057909181906001600160a01b036103bc61156a565b168152600d82528481209385519081948591818854948581520190819886528286209486915b81600784011061053f575061044595549184828210610529575b828210610511575b8c8383106104f8575b508282106104df575b8282106104c6575b8282106104ad575b828210610494575b5010610486575b50905096959492939603826116e7565b83519485948186019282875251809352850193925b82811061046957505050500390f35b835163ffffffff168552869550938101939281019260010161045a565b60e01c815201849089610435565b6001919463ffffffff8560c01c1681520193018461042e565b6001919463ffffffff8560a01c16815201930184610426565b6001919463ffffffff8560801c1681520193018461041e565b6001919463ffffffff8560601c16815201930184610416565b9463ffffffff85600194971c168152019301848c61040d565b6001919463ffffffff85831c16815201930184610404565b6001919463ffffffff85168152019301846103fc565b865463ffffffff8082168652818b1c81168b870152818e1c81168e870152606082811c821690870152608082811c82169087015260a082811c82169087015260c082811c90911690860152811c8482015260019690960195899550889450610100909301926008909201916103e2565b848285346102e05760203660031901126102e05781359167ffffffffffffffff8311610621576105e8610603916106089436910161175c565b9160018060a01b03855416331490811561060b575b5061187a565b611cee565b80f35b60ff9150338652601160205285205416856105fd565b8380fd5b508284346106875760203660031901126106875782359067ffffffffffffffff821161068757506106746020610662819561ffff9436910161175c565b8185519382858094519384920161159b565b8101600f81520301902054169051908152f35b80fd5b50505034610255578060031936011261025557806020926106a961156a565b6106b1611585565b6001600160a01b0391821683526009865283832091168252845220549051908152f35b509050346102e057816003193601126102e0576001600160a01b0391903582811691908290036106215761071d9061070a6116a6565b938554163314908115610743575061187a565b6001600160601b0360a01b600754161760075560ff801960125416911515161760125580f35b60ff9150338652601160205285205416386105fd565b5050503461025557816003193601126102555761078b906107786117b4565b90519182916020835260208301906115be565b0390f35b50828434610687576020366003190112610687575061077861078b9235611e7c565b84828560803660031901126102e0576107c861156a565b6107d0611585565b604435906064359067ffffffffffffffff821161098f573660238301121561098f57610806869236906024818601359101611725565b9060018060a01b039361086282868816978b8933148b8115610974575b610835928215610955575b5050611ae3565b888c5260106020528b8a80822054421061092e575b505061085d63ffffffff85168383612254565b61234b565b88823b1515958661088b575b505050505050905061087e578280f35b516301d6c93560e61b8152fd5b6108c9965060209597895197889687958693630a85bd0160e11b9c8d86523390860152602485015260448401526080606484015260848301906115be565b0393165af19081156109245785916108f5575b506001600160e01b03191614158083868080888161086e565b610917915060203d60201161091d575b61090f81836116e7565b810190611cce565b856108dc565b503d610905565b83513d87823e3d90fd5b6109476305f5e1009161094e93600c6020522054611a6e565b1015611a8d565b8b8a61084a565b60ff92508c815260086020528181203382526020522054168b8e61082e565b6108359291508a610984886118c6565b163314919250610823565b8680fd5b505050346102555781600319360112610255576020906013549051908152f35b505050346102555780600319360112610255576020906109dd6109d461156a565b60243590611e3a565b90519015158152f35b5050503461025557816003193601126102555760075490516001600160a01b039091168152602090f35b5050503461025557816003193601126102555760209060ff60055460a01c1690519015158152f35b505050346102555760203660031901126102555760209181906001600160a01b03610a6161156a565b1681526010845220549051908152f35b50505034610255578060031936011261025557610a8c61156a565b90610a956116a6565b338452600860209081528285206001600160a01b0394909416808652939052818420805460ff191660ff83151516179055905190151581527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b50505034610255578160031936011261025557805161078b91610b18826116b5565b6006825265474e4f4d455360d01b6020830152519182916020835260208301906115be565b5050503461025557816003193601126102555760055490516001600160a01b039091168152602090f35b50505034610255578160031936011261025557905490516001600160a01b039091168152602090f35b843461068757602036600319011261068757610baa61156a565b600554906001600160a01b0390610bc43383851614611c8e565b16906001600160601b0360a01b161760055580f35b509050346102e05760203660031901126102e057358252600a6020908152918190205490516001600160a01b039091168152f35b8434610687578060031936011261068757610c266127e9565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b505050346102555760203660031901126102555760209181906001600160a01b03610c9061156a565b168152600c845220549051908152f35b8434610687578060031936011261068757600554610cc8336001600160a01b03831614611c8e565b60ff60a01b19811660a091821c60ff161590911b60ff60a01b161760055580f35b84823461025557602036600319011261025557803567ffffffffffffffff81116102e05761060891610d1d9136910161175c565b61060360018060a01b03600554163314611c8e565b5050503461025557816003193601126102555760209063ffffffff600254169051908152f35b848285610d6436611671565b916001600160a01b03808216929091610db79082903386148015610e8a575b8015610e6b575b610d9390611ae3565b858a526010602052878a20544210610e4d575b61085d63ffffffff88168383612254565b803b15159384610dce575b5050505061087e578280f35b60209293945060a4908887519586948593630a85bd0160e11b998a8652338d8701526024860152604485015260806064850152826084850152165af1908115610924578591610e2e575b506001600160e01b031916141584808080610dc2565b610e47915060203d60201161091d5761090f81836116e7565b85610e18565b600c602052610e666305f5e1006109478a8d2054611a6e565b610da6565b50858a5260086020908152888b20338c529052878a205460ff16610d8a565b5084610e95886118c6565b163314610d83565b505050346102555781600319360112610255578180808060018060a01b0360055416610eca813314611c8e565b4790828215610ee8575bf115610ede575080f35b51903d90823e3d90fd5b506108fc610ed4565b509050346102e057816003193601126102e05780359067ffffffffffffffff821161062157610f229136910161175c565b6024359161ffff831680930361062157610f66916020809260018060a01b0387541633148015610f7e575b610f569061187a565b519382858094519384920161159b565b8101600f8152030190209061ffff1982541617905580f35b50338752601182528087205460ff16610f4d565b505050346102555760203660031901126102555763ffffffff610fde602093610fd9610fbc61156a565b918560018060a01b038254163314918215610fe6575b505061187a565b61203a565b915191168152f35b60ff9250338152601189522054168538610fd2565b505050346102555780600319360112610255576106089061101a61156a565b906110236116a6565b845490926001600160a01b039182163314801561105f575b6110449061187a565b168452601160205283209060ff801983541691151516179055565b5033865260116020528286205460ff1661103b565b50838334610255576020806003193601126102e05783359063ffffffff928383168093036111df5784546001600160a01b03908116331480156111cb575b6110bb9061187a565b838652600a8352818620541693600b83528186206001600160601b0360a01b90818154169055600a8452828720908154169055600e83528186205490858752600d84528287209081549060001982019182116111b85788995061115a90611122838561164e565b90549060031b1c169261115584611139878461164e565b90919063ffffffff8084549260031b9316831b921b1916179055565b61240d565b6111a7575b505060008051602061297a833981519152928585858280a4838552600c825280852061118b8154611a6e565b9055516305f5e1008152a36111a1600154611a6e565b60015580f35b8652600e835281862055868061115f565b634e487b7160e01b895260118a52602489fd5b50338652601183528186205460ff166110b2565b8480fd5b505050346102555781600319360112610255576020905160088152f35b505050346102555760203660031901126102555760209160ff9082906001600160a01b0361122c61156a565b1681526011855220541690519015158152f35b50505034610255576020906109dd61125636611671565b91611b2f565b509050346102e05760203660031901126102e0576001600160a01b03903581811692908390036106215761129c9184541633149081156112b2575061187a565b6001600160601b0360a01b600654161760065580f35b60ff9150338552601160205284205416386105fd565b505050346102555780600319360112610255576112e361156a565b6001600160a01b03168252600d60205280822080546024359390841015610687575061131660209363ffffffff9261164e565b92905490519260031b1c168152f35b505050346102555781600319360112610255576020906001549051908152f35b505050346102555780600319360112610255576020906109dd61136661156a565b6024359061191b565b508284346106875760203660031901126106875750611390602092356118c6565b90516001600160a01b039091168152f35b50505034610255578160031936011261025557805161078b916113c3826116b5565b600982526811db9bdb5953185b9960ba1b6020830152519182916020835260208301906115be565b508284346106875760203660031901126106875761140761156a565b9060018060a01b03815416331480156114a9575b6114249061187a565b601354906014548210156114665760001982146114535760208463ffffffff610fde866001870160135561203a565b634e487b7160e01b815260118552602490fd5b835162461bcd60e51b8152602081870152601860248201527f4e6f206d6f726520476e6f6d69657320746f204d696e742100000000000000006044820152606490fd5b5033815260116020528281205460ff1661141b565b5050503461025557816003193601126102555760065490516001600160a01b039091168152602090f35b859083346102e05760203660031901126102e0573563ffffffff60e01b81168091036102e0576020925060ff60055460a01c169081611559575b8115611548575b8115611537575b5015158152f35b6336372b0760e01b14905083611530565b6301ffc9a760e01b81149150611529565b6380ac58cd60e01b81149150611522565b600435906001600160a01b038216820361158057565b600080fd5b602435906001600160a01b038216820361158057565b60005b8381106115ae5750506000910152565b818101518382015260200161159e565b906020916115d78151809281855285808601910161159b565b601f01601f1916010190565b8054156115f857600052602060002090600090565b634e487b7160e01b600052603260045260246000fd5b906003548210156115f8576003600052601c8260031c7fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b019260021b1690565b91909180548310156115f857600052601c60206000208360031c019260021b1690565b6060906003190112611580576001600160a01b0390600435828116810361158057916024359081168103611580579060443590565b60243590811515820361158057565b6040810190811067ffffffffffffffff8211176116d157604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176116d157604052565b67ffffffffffffffff81116116d157601f01601f191660200190565b92919261173182611709565b9161173f60405193846116e7565b829481845281830111611580578281602093846000960137010152565b9080601f830112156115805781602061177793359101611725565b90565b90600182811c921680156117aa575b602083101461179457565b634e487b7160e01b600052602260045260246000fd5b91607f1691611789565b60405190600082600454916117c88361177a565b8083529260209060019081811690811561185657506001146117f5575b50506117f3925003836116e7565b565b91509260046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b936000925b82841061183e57506117f394505050810160200138806117e5565b85548885018301529485019487945092810192611823565b915050602092506117f394915060ff191682840152151560051b82010138806117e5565b1561188157565b60405162461bcd60e51b815260206004820152601c60248201527f43616c6c6572206973206e6f742074686520617574686f72697a6564000000006044820152606490fd5b6000908152600a60205260409020546001600160a01b039081161561158057600b6020526040600020541690565b906305f5e100820180921161190557565b634e487b7160e01b600052601160045260246000fd5b906305f5e100811180611a60575b6119845733600052600960205260406000209160018060a01b03169182600052602052806040600020556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3600190565b6000818152600a60205260408120549192916001600160a01b03908116913383141580611a3f575b6119fa577f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591858252600b60205260408220941693846001600160601b0360a01b82541617905580a4600190565b60405162461bcd60e51b815260206004820152601b60248201527f534a3734313a20596f7520617265206e6f7420617070726f76656400000000006044820152606490fd5b5082815260086020526040812033825260205260ff604082205416156119ac565b506305f5e32b811115611929565b6305f5e0ff1981019190821161190557565b9190820391821161190557565b15611a9457565b60405162461bcd60e51b815260206004820152602160248201527f43616e2774207472616e7366657220616c6c20796f757220476e6f6d652079656044820152601d60fa1b6064820152608490fd5b15611aea57565b60405162461bcd60e51b815260206004820152601f60248201527f534a3734313a20596f7520646f6e2774206861766520746865207269676874006044820152606490fd5b6001600160a01b0380821660008181526010602090815260408083205493989796959490934210611c70575b6305f5e100871180611c62575b611bf45750878252600981528282203383528152858383205410611bb157611bac9697825260098152828220903383525220611ba5848254611a80565b905561242a565b600190565b60649083519062461bcd60e51b82526004820152601d60248201527f534a3734313a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b63ffffffff9361085d95969793611c26938b611bac9b9c3314948515611c4c575b508415611c2e575b50505050611ae3565b168383612254565b60ff9450825260088152828220903383525220541638808080611c1d565b909450611c58876118c6565b1633149338611c15565b506305f5e32b871115611b68565b600c8252611c896305f5e1006109478987872054611a80565b611b5b565b15611c9557565b60405162461bcd60e51b81526020600482015260116024820152702737ba103a3432903232bb32b637b832b960791b6044820152606490fd5b9081602091031261158057516001600160e01b0319811681036115805790565b90815167ffffffffffffffff81116116d157611d0b60045461177a565b601f8111611dd3575b50602080601f8311600114611d515750819293600092611d46575b50508160011b916000199060031b1c191617600455565b015190503880611d2f565b90601f1983169460046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b926000905b878210611dbb575050836001959610611da2575b505050811b01600455565b015160001960f88460031b161c19169055388080611d97565b80600185968294968601518155019501930190611d83565b600060046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b601f840160051c81019260208510611e30575b601f0160051c01915b828110611e25575050611d14565b818155600101611e17565b9092508290611e0e565b81600052600a60205260018060a01b03604060002054163314611e625790611bac913361242a565b611e7663ffffffff611bac93168233612254565b3361234b565b9060ff601254161561200d576007546001600160a01b0390811692908315611fc9576040518094637b3f506760e11b825283600483015281602460209788935afa908115611f8757600091611f93575b50611edd57505090506117776117b4565b600090600654169160246040518094819363468bf38960e11b835260048301525afa928315611f8757600093611f12575b5050565b3d8085843e611f2181846116e7565b82019181818403126111df5780519067ffffffffffffffff8211611f83570182601f820112156111df57805191611f5783611709565b93611f6560405195866116e7565b838552818484010111611f835783949550806117779401910161159b565b8580fd5b6040513d6000823e3d90fd5b8581813d8311611fc2575b611fa881836116e7565b810103126102555751908115158203610687575038611ecc565b503d611f9e565b606460405162461bcd60e51b815260206004820152602060248201527f676e6f6d6547616d65506c61792061646472657373206973206e6f74207365746044820152fd5b90506117776117b4565b90815491600160401b8310156116d157826111399160016117f39501815561164e565b906002549163ffffffff60018185160116809363ffffffff19161760025582600c600091808352602090600a8252604094848681209160018060a01b0316928392836001600160601b0360a01b825416179055828252600d855287822054818352600e865288832055828252600d85526120b681898420612017565b60008051602061297a833981519152908383838180a48488516305f5e1008152a36120e26001546118f4565b600155835252206120f381546118f4565b9055565b156120fe57565b60405162461bcd60e51b815260206004820152601660248201527529a51b9a189d1024b731b7b93932b1ba1037bbb732b960511b6044820152606490fd5b9063ffffffff91828216926000918483526020600a815260018060a01b039460409261216d878588205416156120f7565b878652600b8352838620966001600160601b0360a01b97888154169055600a845284872091168097825416179055600e825282852054858052600d835283862080546000199687820191821161224057906121d28392611122836121e898979661164e565b61222f575b5050868652600d8352838620612017565b848452600d81528184205492830192831161221b57600e908685525282205560008051602061297a8339815191528180a4565b634e487b7160e01b84526011600452602484fd5b8752600e84528487205538806121d7565b634e487b7160e01b89526011600452602489fd5b91909163ffffffff92838316936000918583526020600a815260018060a01b039560409261228c8880868920541698169788146120f7565b888652600b8352838620976001600160601b0360a01b98898154169055600a845284872091168098825416179055600e825282852054868652600d835283862080546000199687820191821161224057906122f183926111228361230798979661164e565b61233a575b5050878652600d8352838620612017565b858452600d81528184205492830192831161221b57868452600e905282205560008051602061297a8339815191529080a4565b8752600e84528487205538806122f6565b6001600160a01b039081166000818152600c6020526040812080549194929392916305f5e0ff198101919082116123b3579260209260409260008051602061297a83398151915295551694858152600c8352206305f5e10090818154019055604051908152a3565b634e487b7160e01b86526011600452602486fd5b60035480156123f757600019016123f26123e08261160e565b63ffffffff82549160031b1b19169055565b600355565b634e487b7160e01b600052603160045260246000fd5b805480156123f75760001901906124276123e0838361164e565b55565b92919260018060a01b039081811691600092808452602096600c885260409080828720541061279657828652600c89526305f5e10091828188205406998589169182895284818a20540691868a52818a20612486868254611a80565b9055838a52600c8152818a20858154019055808488845188815260008051602061297a833981519152948591a3878b52600c815286838c205406948b5286838c20540694888c52600d8252838c209e10612639575b505050116125d3575b049160055416146124f557806124fd575b505050509050565b8554808210156125cd575080915b835b8381106125a45750506125239293949550611a80565b60039160035480831060001461259e575081925b815b84811061256157505050612557929161255191611a80565b906128a1565b80388080806124f5565b8154600019810190811161221b579061259063ffffffff61258360019461160e565b905490861b1c168861213c565b6125986123c7565b01612539565b92612537565b6001906125c763ffffffff6125b88b6115e3565b90549060031b1c168885612254565b0161250d565b9161250b565b6003541561262a5760035460001981019081116126165763ffffffff6125fb6126099261160e565b90549060031b1c168861213c565b6126116123c7565b6124e4565b634e487b7160e01b87526011600452602487fd5b61263387612815565b506124e4565b8d8054612647575b506124db565b612650906115e3565b939063ffffffff948591549060031b1c1693600354600160401b8110156127825790612688868f93806001611139920160035561160e565b858252600a845261269f8c84842054168c146120f7565b858252600b84528282206001600160601b0360a01b90818154169055600a8552838320908154169055600e84528280832054928c8152600d86522090815490600019820191821161276d578f90938383612702612716976111228a978e9961164e565b61275c575b5050808052600d865220612017565b8b8052600d8252808c205460001981019290831161274857848d52600e90528b2055899087908280a43880808d612641565b634e487b7160e01b8d52601160045260248dfd5b8252600e8752828220553880612707565b50634e487b7160e01b8f52601160045260248ffd5b634e487b7160e01b8e52604160045260248efd5b815162461bcd60e51b8152600481018a9052602660248201527f534a3734313a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b6000546001600160a01b031633036127fd57565b60405163118cdaa760e01b8152336004820152602490fd5b9060025463ffffffff60018183160116809163ffffffff19161760025580926000828152600a602052604081209160018060a01b031691826001600160601b0360a01b825416179055818152600d6020526040812054838252600e6020526040822055818152600d60205261288d8360408320612017565b60008051602061297a8339815191528180a4565b8115611f0e57600180831461296b576002546001600160a01b039092166000818152600d602081815260408084205463ffffffff9790959285929091899081165b8b881061290b5750975050505050505050600254921681831601169063ffffffff191617600255565b8991828092011698898652600a8552838620876001600160601b0360a01b825416179055600e8552808487205586865287855261294a8a858820612017565b89878760008051602061297a8339815191528180a4019796019589906128e2565b506129769150612815565b5056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220bd6573f0785eec0eb2b28db0f6fe05d43babada590381f9d4fcd199f73a695e164736f6c63430008180033000000000000000000000000698cf6f526e2929a256388fadfc01745ce9ebef5

Deployed Bytecode

0x608060408181526004918236101561001657600080fd5b60009260e0843560e01c92836301ffc9a7146114e857508263049c0b4c146114be57826306aba612146113eb57826306fdde03146113a1578263081812fc1461136f578263095ea7b31461134557826318160ddd146113255782631a72b87d146112c85782632362e88a1461125c57826323b872dd1461123f5782632520e7ff14611200578263313ce567146111e357826331568db2146110745782633b20c22d14610ffb5782633c0b147e14610f925782633c19eed814610ef15782633ccfd60b14610e9d57826342842e0e14610d585782634f02c42014610d3257826355f804b314610ce95782636352211e14610bd95782636bcef9a614610ca057826370a0823114610c67578263715018a614610c0d5782637938e89214610bd957826383edc25214610a3857826388a8c95c14610b905782638da5cb5b14610b6757826391cca3db14610b3d57826395d89b4114610af6578263a22cb46514610a71578263a34c7f9414610a38578263a563833b14610a10578263a581948a146109e6578263a9059cbb146109b3578263b237df9714610993578263b88d4fde146107b1578263c87b56dd1461078f578263d547cfb714610759578263d5a4aab6146106d4578263dd62ed3e1461068a578263e0df3f8c14610625578263e0df5b6f146105af578263e785dddb1461039357508163e941700514610332578163e985e9c5146102e4578163f2fde38b14610259575063f911a08b1461023857600080fd5b346102555781600319360112610255576020906014549051908152f35b5080fd5b9050346102e05760203660031901126102e05761027461156a565b9061027d6127e9565b6001600160a01b039182169283156102ca57505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b50503461025557806003193601126102555760ff8160209361030461156a565b61030c611585565b6001600160a01b0391821683526008875283832091168252855220549151911615158152f35b50503461025557806003193601126102555761034c61156a565b82546001600160a01b03919082163314801561037e575b61036c9061187a565b16825260106020526024359082205580f35b5033845260116020528284205460ff16610363565b84849134610255576020806003193601126102e057909181906001600160a01b036103bc61156a565b168152600d82528481209385519081948591818854948581520190819886528286209486915b81600784011061053f575061044595549184828210610529575b828210610511575b8c8383106104f8575b508282106104df575b8282106104c6575b8282106104ad575b828210610494575b5010610486575b50905096959492939603826116e7565b83519485948186019282875251809352850193925b82811061046957505050500390f35b835163ffffffff168552869550938101939281019260010161045a565b60e01c815201849089610435565b6001919463ffffffff8560c01c1681520193018461042e565b6001919463ffffffff8560a01c16815201930184610426565b6001919463ffffffff8560801c1681520193018461041e565b6001919463ffffffff8560601c16815201930184610416565b9463ffffffff85600194971c168152019301848c61040d565b6001919463ffffffff85831c16815201930184610404565b6001919463ffffffff85168152019301846103fc565b865463ffffffff8082168652818b1c81168b870152818e1c81168e870152606082811c821690870152608082811c82169087015260a082811c82169087015260c082811c90911690860152811c8482015260019690960195899550889450610100909301926008909201916103e2565b848285346102e05760203660031901126102e05781359167ffffffffffffffff8311610621576105e8610603916106089436910161175c565b9160018060a01b03855416331490811561060b575b5061187a565b611cee565b80f35b60ff9150338652601160205285205416856105fd565b8380fd5b508284346106875760203660031901126106875782359067ffffffffffffffff821161068757506106746020610662819561ffff9436910161175c565b8185519382858094519384920161159b565b8101600f81520301902054169051908152f35b80fd5b50505034610255578060031936011261025557806020926106a961156a565b6106b1611585565b6001600160a01b0391821683526009865283832091168252845220549051908152f35b509050346102e057816003193601126102e0576001600160a01b0391903582811691908290036106215761071d9061070a6116a6565b938554163314908115610743575061187a565b6001600160601b0360a01b600754161760075560ff801960125416911515161760125580f35b60ff9150338652601160205285205416386105fd565b5050503461025557816003193601126102555761078b906107786117b4565b90519182916020835260208301906115be565b0390f35b50828434610687576020366003190112610687575061077861078b9235611e7c565b84828560803660031901126102e0576107c861156a565b6107d0611585565b604435906064359067ffffffffffffffff821161098f573660238301121561098f57610806869236906024818601359101611725565b9060018060a01b039361086282868816978b8933148b8115610974575b610835928215610955575b5050611ae3565b888c5260106020528b8a80822054421061092e575b505061085d63ffffffff85168383612254565b61234b565b88823b1515958661088b575b505050505050905061087e578280f35b516301d6c93560e61b8152fd5b6108c9965060209597895197889687958693630a85bd0160e11b9c8d86523390860152602485015260448401526080606484015260848301906115be565b0393165af19081156109245785916108f5575b506001600160e01b03191614158083868080888161086e565b610917915060203d60201161091d575b61090f81836116e7565b810190611cce565b856108dc565b503d610905565b83513d87823e3d90fd5b6109476305f5e1009161094e93600c6020522054611a6e565b1015611a8d565b8b8a61084a565b60ff92508c815260086020528181203382526020522054168b8e61082e565b6108359291508a610984886118c6565b163314919250610823565b8680fd5b505050346102555781600319360112610255576020906013549051908152f35b505050346102555780600319360112610255576020906109dd6109d461156a565b60243590611e3a565b90519015158152f35b5050503461025557816003193601126102555760075490516001600160a01b039091168152602090f35b5050503461025557816003193601126102555760209060ff60055460a01c1690519015158152f35b505050346102555760203660031901126102555760209181906001600160a01b03610a6161156a565b1681526010845220549051908152f35b50505034610255578060031936011261025557610a8c61156a565b90610a956116a6565b338452600860209081528285206001600160a01b0394909416808652939052818420805460ff191660ff83151516179055905190151581527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b50505034610255578160031936011261025557805161078b91610b18826116b5565b6006825265474e4f4d455360d01b6020830152519182916020835260208301906115be565b5050503461025557816003193601126102555760055490516001600160a01b039091168152602090f35b50505034610255578160031936011261025557905490516001600160a01b039091168152602090f35b843461068757602036600319011261068757610baa61156a565b600554906001600160a01b0390610bc43383851614611c8e565b16906001600160601b0360a01b161760055580f35b509050346102e05760203660031901126102e057358252600a6020908152918190205490516001600160a01b039091168152f35b8434610687578060031936011261068757610c266127e9565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b505050346102555760203660031901126102555760209181906001600160a01b03610c9061156a565b168152600c845220549051908152f35b8434610687578060031936011261068757600554610cc8336001600160a01b03831614611c8e565b60ff60a01b19811660a091821c60ff161590911b60ff60a01b161760055580f35b84823461025557602036600319011261025557803567ffffffffffffffff81116102e05761060891610d1d9136910161175c565b61060360018060a01b03600554163314611c8e565b5050503461025557816003193601126102555760209063ffffffff600254169051908152f35b848285610d6436611671565b916001600160a01b03808216929091610db79082903386148015610e8a575b8015610e6b575b610d9390611ae3565b858a526010602052878a20544210610e4d575b61085d63ffffffff88168383612254565b803b15159384610dce575b5050505061087e578280f35b60209293945060a4908887519586948593630a85bd0160e11b998a8652338d8701526024860152604485015260806064850152826084850152165af1908115610924578591610e2e575b506001600160e01b031916141584808080610dc2565b610e47915060203d60201161091d5761090f81836116e7565b85610e18565b600c602052610e666305f5e1006109478a8d2054611a6e565b610da6565b50858a5260086020908152888b20338c529052878a205460ff16610d8a565b5084610e95886118c6565b163314610d83565b505050346102555781600319360112610255578180808060018060a01b0360055416610eca813314611c8e565b4790828215610ee8575bf115610ede575080f35b51903d90823e3d90fd5b506108fc610ed4565b509050346102e057816003193601126102e05780359067ffffffffffffffff821161062157610f229136910161175c565b6024359161ffff831680930361062157610f66916020809260018060a01b0387541633148015610f7e575b610f569061187a565b519382858094519384920161159b565b8101600f8152030190209061ffff1982541617905580f35b50338752601182528087205460ff16610f4d565b505050346102555760203660031901126102555763ffffffff610fde602093610fd9610fbc61156a565b918560018060a01b038254163314918215610fe6575b505061187a565b61203a565b915191168152f35b60ff9250338152601189522054168538610fd2565b505050346102555780600319360112610255576106089061101a61156a565b906110236116a6565b845490926001600160a01b039182163314801561105f575b6110449061187a565b168452601160205283209060ff801983541691151516179055565b5033865260116020528286205460ff1661103b565b50838334610255576020806003193601126102e05783359063ffffffff928383168093036111df5784546001600160a01b03908116331480156111cb575b6110bb9061187a565b838652600a8352818620541693600b83528186206001600160601b0360a01b90818154169055600a8452828720908154169055600e83528186205490858752600d84528287209081549060001982019182116111b85788995061115a90611122838561164e565b90549060031b1c169261115584611139878461164e565b90919063ffffffff8084549260031b9316831b921b1916179055565b61240d565b6111a7575b505060008051602061297a833981519152928585858280a4838552600c825280852061118b8154611a6e565b9055516305f5e1008152a36111a1600154611a6e565b60015580f35b8652600e835281862055868061115f565b634e487b7160e01b895260118a52602489fd5b50338652601183528186205460ff166110b2565b8480fd5b505050346102555781600319360112610255576020905160088152f35b505050346102555760203660031901126102555760209160ff9082906001600160a01b0361122c61156a565b1681526011855220541690519015158152f35b50505034610255576020906109dd61125636611671565b91611b2f565b509050346102e05760203660031901126102e0576001600160a01b03903581811692908390036106215761129c9184541633149081156112b2575061187a565b6001600160601b0360a01b600654161760065580f35b60ff9150338552601160205284205416386105fd565b505050346102555780600319360112610255576112e361156a565b6001600160a01b03168252600d60205280822080546024359390841015610687575061131660209363ffffffff9261164e565b92905490519260031b1c168152f35b505050346102555781600319360112610255576020906001549051908152f35b505050346102555780600319360112610255576020906109dd61136661156a565b6024359061191b565b508284346106875760203660031901126106875750611390602092356118c6565b90516001600160a01b039091168152f35b50505034610255578160031936011261025557805161078b916113c3826116b5565b600982526811db9bdb5953185b9960ba1b6020830152519182916020835260208301906115be565b508284346106875760203660031901126106875761140761156a565b9060018060a01b03815416331480156114a9575b6114249061187a565b601354906014548210156114665760001982146114535760208463ffffffff610fde866001870160135561203a565b634e487b7160e01b815260118552602490fd5b835162461bcd60e51b8152602081870152601860248201527f4e6f206d6f726520476e6f6d69657320746f204d696e742100000000000000006044820152606490fd5b5033815260116020528281205460ff1661141b565b5050503461025557816003193601126102555760065490516001600160a01b039091168152602090f35b859083346102e05760203660031901126102e0573563ffffffff60e01b81168091036102e0576020925060ff60055460a01c169081611559575b8115611548575b8115611537575b5015158152f35b6336372b0760e01b14905083611530565b6301ffc9a760e01b81149150611529565b6380ac58cd60e01b81149150611522565b600435906001600160a01b038216820361158057565b600080fd5b602435906001600160a01b038216820361158057565b60005b8381106115ae5750506000910152565b818101518382015260200161159e565b906020916115d78151809281855285808601910161159b565b601f01601f1916010190565b8054156115f857600052602060002090600090565b634e487b7160e01b600052603260045260246000fd5b906003548210156115f8576003600052601c8260031c7fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b019260021b1690565b91909180548310156115f857600052601c60206000208360031c019260021b1690565b6060906003190112611580576001600160a01b0390600435828116810361158057916024359081168103611580579060443590565b60243590811515820361158057565b6040810190811067ffffffffffffffff8211176116d157604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176116d157604052565b67ffffffffffffffff81116116d157601f01601f191660200190565b92919261173182611709565b9161173f60405193846116e7565b829481845281830111611580578281602093846000960137010152565b9080601f830112156115805781602061177793359101611725565b90565b90600182811c921680156117aa575b602083101461179457565b634e487b7160e01b600052602260045260246000fd5b91607f1691611789565b60405190600082600454916117c88361177a565b8083529260209060019081811690811561185657506001146117f5575b50506117f3925003836116e7565b565b91509260046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b936000925b82841061183e57506117f394505050810160200138806117e5565b85548885018301529485019487945092810192611823565b915050602092506117f394915060ff191682840152151560051b82010138806117e5565b1561188157565b60405162461bcd60e51b815260206004820152601c60248201527f43616c6c6572206973206e6f742074686520617574686f72697a6564000000006044820152606490fd5b6000908152600a60205260409020546001600160a01b039081161561158057600b6020526040600020541690565b906305f5e100820180921161190557565b634e487b7160e01b600052601160045260246000fd5b906305f5e100811180611a60575b6119845733600052600960205260406000209160018060a01b03169182600052602052806040600020556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3600190565b6000818152600a60205260408120549192916001600160a01b03908116913383141580611a3f575b6119fa577f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591858252600b60205260408220941693846001600160601b0360a01b82541617905580a4600190565b60405162461bcd60e51b815260206004820152601b60248201527f534a3734313a20596f7520617265206e6f7420617070726f76656400000000006044820152606490fd5b5082815260086020526040812033825260205260ff604082205416156119ac565b506305f5e32b811115611929565b6305f5e0ff1981019190821161190557565b9190820391821161190557565b15611a9457565b60405162461bcd60e51b815260206004820152602160248201527f43616e2774207472616e7366657220616c6c20796f757220476e6f6d652079656044820152601d60fa1b6064820152608490fd5b15611aea57565b60405162461bcd60e51b815260206004820152601f60248201527f534a3734313a20596f7520646f6e2774206861766520746865207269676874006044820152606490fd5b6001600160a01b0380821660008181526010602090815260408083205493989796959490934210611c70575b6305f5e100871180611c62575b611bf45750878252600981528282203383528152858383205410611bb157611bac9697825260098152828220903383525220611ba5848254611a80565b905561242a565b600190565b60649083519062461bcd60e51b82526004820152601d60248201527f534a3734313a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b63ffffffff9361085d95969793611c26938b611bac9b9c3314948515611c4c575b508415611c2e575b50505050611ae3565b168383612254565b60ff9450825260088152828220903383525220541638808080611c1d565b909450611c58876118c6565b1633149338611c15565b506305f5e32b871115611b68565b600c8252611c896305f5e1006109478987872054611a80565b611b5b565b15611c9557565b60405162461bcd60e51b81526020600482015260116024820152702737ba103a3432903232bb32b637b832b960791b6044820152606490fd5b9081602091031261158057516001600160e01b0319811681036115805790565b90815167ffffffffffffffff81116116d157611d0b60045461177a565b601f8111611dd3575b50602080601f8311600114611d515750819293600092611d46575b50508160011b916000199060031b1c191617600455565b015190503880611d2f565b90601f1983169460046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b926000905b878210611dbb575050836001959610611da2575b505050811b01600455565b015160001960f88460031b161c19169055388080611d97565b80600185968294968601518155019501930190611d83565b600060046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b601f840160051c81019260208510611e30575b601f0160051c01915b828110611e25575050611d14565b818155600101611e17565b9092508290611e0e565b81600052600a60205260018060a01b03604060002054163314611e625790611bac913361242a565b611e7663ffffffff611bac93168233612254565b3361234b565b9060ff601254161561200d576007546001600160a01b0390811692908315611fc9576040518094637b3f506760e11b825283600483015281602460209788935afa908115611f8757600091611f93575b50611edd57505090506117776117b4565b600090600654169160246040518094819363468bf38960e11b835260048301525afa928315611f8757600093611f12575b5050565b3d8085843e611f2181846116e7565b82019181818403126111df5780519067ffffffffffffffff8211611f83570182601f820112156111df57805191611f5783611709565b93611f6560405195866116e7565b838552818484010111611f835783949550806117779401910161159b565b8580fd5b6040513d6000823e3d90fd5b8581813d8311611fc2575b611fa881836116e7565b810103126102555751908115158203610687575038611ecc565b503d611f9e565b606460405162461bcd60e51b815260206004820152602060248201527f676e6f6d6547616d65506c61792061646472657373206973206e6f74207365746044820152fd5b90506117776117b4565b90815491600160401b8310156116d157826111399160016117f39501815561164e565b906002549163ffffffff60018185160116809363ffffffff19161760025582600c600091808352602090600a8252604094848681209160018060a01b0316928392836001600160601b0360a01b825416179055828252600d855287822054818352600e865288832055828252600d85526120b681898420612017565b60008051602061297a833981519152908383838180a48488516305f5e1008152a36120e26001546118f4565b600155835252206120f381546118f4565b9055565b156120fe57565b60405162461bcd60e51b815260206004820152601660248201527529a51b9a189d1024b731b7b93932b1ba1037bbb732b960511b6044820152606490fd5b9063ffffffff91828216926000918483526020600a815260018060a01b039460409261216d878588205416156120f7565b878652600b8352838620966001600160601b0360a01b97888154169055600a845284872091168097825416179055600e825282852054858052600d835283862080546000199687820191821161224057906121d28392611122836121e898979661164e565b61222f575b5050868652600d8352838620612017565b848452600d81528184205492830192831161221b57600e908685525282205560008051602061297a8339815191528180a4565b634e487b7160e01b84526011600452602484fd5b8752600e84528487205538806121d7565b634e487b7160e01b89526011600452602489fd5b91909163ffffffff92838316936000918583526020600a815260018060a01b039560409261228c8880868920541698169788146120f7565b888652600b8352838620976001600160601b0360a01b98898154169055600a845284872091168098825416179055600e825282852054868652600d835283862080546000199687820191821161224057906122f183926111228361230798979661164e565b61233a575b5050878652600d8352838620612017565b858452600d81528184205492830192831161221b57868452600e905282205560008051602061297a8339815191529080a4565b8752600e84528487205538806122f6565b6001600160a01b039081166000818152600c6020526040812080549194929392916305f5e0ff198101919082116123b3579260209260409260008051602061297a83398151915295551694858152600c8352206305f5e10090818154019055604051908152a3565b634e487b7160e01b86526011600452602486fd5b60035480156123f757600019016123f26123e08261160e565b63ffffffff82549160031b1b19169055565b600355565b634e487b7160e01b600052603160045260246000fd5b805480156123f75760001901906124276123e0838361164e565b55565b92919260018060a01b039081811691600092808452602096600c885260409080828720541061279657828652600c89526305f5e10091828188205406998589169182895284818a20540691868a52818a20612486868254611a80565b9055838a52600c8152818a20858154019055808488845188815260008051602061297a833981519152948591a3878b52600c815286838c205406948b5286838c20540694888c52600d8252838c209e10612639575b505050116125d3575b049160055416146124f557806124fd575b505050509050565b8554808210156125cd575080915b835b8381106125a45750506125239293949550611a80565b60039160035480831060001461259e575081925b815b84811061256157505050612557929161255191611a80565b906128a1565b80388080806124f5565b8154600019810190811161221b579061259063ffffffff61258360019461160e565b905490861b1c168861213c565b6125986123c7565b01612539565b92612537565b6001906125c763ffffffff6125b88b6115e3565b90549060031b1c168885612254565b0161250d565b9161250b565b6003541561262a5760035460001981019081116126165763ffffffff6125fb6126099261160e565b90549060031b1c168861213c565b6126116123c7565b6124e4565b634e487b7160e01b87526011600452602487fd5b61263387612815565b506124e4565b8d8054612647575b506124db565b612650906115e3565b939063ffffffff948591549060031b1c1693600354600160401b8110156127825790612688868f93806001611139920160035561160e565b858252600a845261269f8c84842054168c146120f7565b858252600b84528282206001600160601b0360a01b90818154169055600a8552838320908154169055600e84528280832054928c8152600d86522090815490600019820191821161276d578f90938383612702612716976111228a978e9961164e565b61275c575b5050808052600d865220612017565b8b8052600d8252808c205460001981019290831161274857848d52600e90528b2055899087908280a43880808d612641565b634e487b7160e01b8d52601160045260248dfd5b8252600e8752828220553880612707565b50634e487b7160e01b8f52601160045260248ffd5b634e487b7160e01b8e52604160045260248efd5b815162461bcd60e51b8152600481018a9052602660248201527f534a3734313a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b6000546001600160a01b031633036127fd57565b60405163118cdaa760e01b8152336004820152602490fd5b9060025463ffffffff60018183160116809163ffffffff19161760025580926000828152600a602052604081209160018060a01b031691826001600160601b0360a01b825416179055818152600d6020526040812054838252600e6020526040822055818152600d60205261288d8360408320612017565b60008051602061297a8339815191528180a4565b8115611f0e57600180831461296b576002546001600160a01b039092166000818152600d602081815260408084205463ffffffff9790959285929091899081165b8b881061290b5750975050505050505050600254921681831601169063ffffffff191617600255565b8991828092011698898652600a8552838620876001600160601b0360a01b825416179055600e8552808487205586865287855261294a8a858820612017565b89878760008051602061297a8339815191528180a4019796019589906128e2565b506129769150612815565b5056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220bd6573f0785eec0eb2b28db0f6fe05d43babada590381f9d4fcd199f73a695e164736f6c63430008180033

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

000000000000000000000000698cf6f526e2929a256388fadfc01745ce9ebef5

-----Decoded View---------------
Arg [0] : _owner (address): 0x698CF6f526E2929A256388FADfC01745CE9EbeF5

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000698cf6f526e2929a256388fadfc01745ce9ebef5


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.