ETH Price: $3,291.40 (+1.53%)
Gas: 1 Gwei

Contract

0x0Ab296F1C69c33a0c36f6AbBA2427dC563A804FD
 
Transaction Hash
Method
Block
From
To
Registration203979022024-07-27 12:31:474 mins ago1722083507IN
0x0Ab296F1...563A804FD
0 ETH0.000195392.41593112
Registration203978962024-07-27 12:30:355 mins ago1722083435IN
0x0Ab296F1...563A804FD
0 ETH0.000192972.27905667
Unregistration203978372024-07-27 12:18:4717 mins ago1722082727IN
0x0Ab296F1...563A804FD
0 ETH0.000155631.92046037
Unregistration203978092024-07-27 12:13:1122 mins ago1722082391IN
0x0Ab296F1...563A804FD
0 ETH0.000165391.95248045
Registration Ren...203977902024-07-27 12:09:2326 mins ago1722082163IN
0x0Ab296F1...563A804FD
0 ETH0.000080752.13977986
Registration Ren...203977792024-07-27 12:07:1128 mins ago1722082031IN
0x0Ab296F1...563A804FD
0 ETH0.000089042.35872563
Registration203977362024-07-27 11:58:3537 mins ago1722081515IN
0x0Ab296F1...563A804FD
0 ETH0.000200161.28938803
Registration Ren...203974542024-07-27 11:02:111 hr ago1722078131IN
0x0Ab296F1...563A804FD
0 ETH0.000067411.78524519
Unregistration203973222024-07-27 10:35:472 hrs ago1722076547IN
0x0Ab296F1...563A804FD
0 ETH0.000196552.31991456
Registration Ren...203972872024-07-27 10:28:472 hrs ago1722076127IN
0x0Ab296F1...563A804FD
0 ETH0.000087152.30943451
Registration Ren...203972832024-07-27 10:27:592 hrs ago1722076079IN
0x0Ab296F1...563A804FD
0 ETH0.000079912.11644352
Registration Ren...203972792024-07-27 10:27:112 hrs ago1722076031IN
0x0Ab296F1...563A804FD
0 ETH0.000090272.39139668
Registration Ren...203972652024-07-27 10:24:232 hrs ago1722075863IN
0x0Ab296F1...563A804FD
0 ETH0.000094852.51260617
Registration Ren...203972622024-07-27 10:23:472 hrs ago1722075827IN
0x0Ab296F1...563A804FD
0 ETH0.000092782.45769109
Registration Ren...203972422024-07-27 10:19:472 hrs ago1722075587IN
0x0Ab296F1...563A804FD
0 ETH0.000081152.14973474
Registration Ren...203972402024-07-27 10:19:232 hrs ago1722075563IN
0x0Ab296F1...563A804FD
0 ETH0.000081662.16386231
Registration203972372024-07-27 10:18:472 hrs ago1722075527IN
0x0Ab296F1...563A804FD
0 ETH0.000314041.98892099
Registration Ren...203972172024-07-27 10:14:472 hrs ago1722075287IN
0x0Ab296F1...563A804FD
0 ETH0.000077842.0615689
Unregistration203972152024-07-27 10:14:232 hrs ago1722075263IN
0x0Ab296F1...563A804FD
0 ETH0.000133532.11540339
Registration Ren...203972122024-07-27 10:13:472 hrs ago1722075227IN
0x0Ab296F1...563A804FD
0 ETH0.000077092.04175707
Unregistration203972082024-07-27 10:12:592 hrs ago1722075179IN
0x0Ab296F1...563A804FD
0 ETH0.000136882.16836125
Unregistration203972052024-07-27 10:12:232 hrs ago1722075143IN
0x0Ab296F1...563A804FD
0 ETH0.000151812.40543093
Registration Ren...203972022024-07-27 10:11:472 hrs ago1722075107IN
0x0Ab296F1...563A804FD
0 ETH0.000088882.35376912
Registration Ren...203971952024-07-27 10:10:232 hrs ago1722075023IN
0x0Ab296F1...563A804FD
0 ETH0.000080772.1389907
Registration Ren...203971882024-07-27 10:08:592 hrs ago1722074939IN
0x0Ab296F1...563A804FD
0 ETH0.000087692.32248079
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SpaceNFTRegistry

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2024-07-03
*/

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


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

pragma solidity ^0.8.0;

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

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


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

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

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

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

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

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


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

pragma solidity ^0.8.0;

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

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


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

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


// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @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 up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (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; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                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.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 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.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            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 (rounding == Rounding.Up && 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 down.
     *
     * 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 + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * 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 + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * 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 + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * 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 + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

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


// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

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


// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;



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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        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), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(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) {
        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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

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

// File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;


/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32")
            mstore(0x1c, hash)
            message := keccak256(0x00, 0x3c)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

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


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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

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

// File: stake_bit.sol


pragma solidity ^0.8.19;






interface SpaceNFTBurn {
    function burn(uint256 tokenId) external;
}

contract SpaceNFTRegistry is Ownable, ReentrancyGuard {
    using ECDSA for bytes32;
    //The minimum registration period is 3 days, and the maximum is 365 days.
    uint64 floorlimit = 3 days;
    uint64 ceillimit = 365 days;
    // The default expiration time for signatures is 300 seconds (5 minutes).
    uint32 private expireTime = 300;
    uint32 limitIdLen = 50;
    //The maximum duration of blacking is 90 days.
    uint64 constant BANCEIL = 90 days;
    // The global switch that controls the entire system. When activated, all registed  assets can be withdrawn regardless of the normal registration conditions.
    uint256 globalswitch;
    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;
    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;
    // The signature address.
    address private _cosigner = 0xDa801D3cCE8626Bd55387554Bb3BE500681Cb49C;
    // The program address for implementing black and redeem.
    address miner = 0xDa801D3cCE8626Bd55387554Bb3BE500681Cb49C;
    // The address-specific switch. When this is turned on, the associated address can withdraw their registed assets regardless of the normal conditions.
    mapping(address => uint256) addrswitch;
    // The switch for a specific NFTID. When this is enabled, only the registration associated with that particular NFT ID can be directly withdrawn, ignoring normal registration conditions.
    mapping(address => mapping(uint256 => uint256)) nftswitch;
    // The NFT contracts that are supported by the registration contract.
    mapping(address => bool) supportnft;
    // The registration information for specific NFT IDs from the supported NFT contract's Id.
    mapping(address => mapping(uint256 => uint256)) private registerInfo;
    // The blacking information for specific addresses.
    mapping(address => uint256) banInfo;
    // The functionality to check if a given signature has already been used before.
    mapping(uint64 => bool) private sigvalue;

    // user operation
    event Register(
        address nft,
        address register,
        uint256 timestamp,
        uint256[] nftId
    );
    event Unregister(address nft, address register, uint256[] nftId);
    event Renewal(
        address nft,
        address register,
        uint256 nftId,
        uint256 timestamp
    );
    event Burn(uint64 signId);
    // miner operation
    event Ban(uint256 timestamp, address[] players);
    event ReduceBanningDuration(address player, uint256 timestamp);

    error InBannedStatus();
    error UnableToUnregister();
    error InvalidRegistrationTime();
    error NotSupportedNFT();
    error InvalidRenewalTime();
    error ExceedBanCeil();

    constructor(address[] memory nfts) {
        supportNFT(nfts, true);
    }

    modifier onlyMiner() {
        require(miner == _msgSender(), "Ownable: caller is not the miner");
        _;
    }

    /**
     * @notice Only the contract owner can change the miner address, which must be a valid address
     * @param newminer.
     */
    function updateMiner(address newminer) external onlyOwner {
        require(newminer != address(0), "Invalid address");
        miner = newminer;
    }

    /**
     * @notice Only the contract owner can update the expiration time for signatures
     * @param expiry.
     */
    function setTimestampExpirySeconds(uint32 expiry) external onlyOwner {
        expireTime = expiry;
    }

    /**
     * @notice Only the contract owner can update the limitIdLen of batch-registration
     */
    function setLimitLen(uint32 _limitIdLen) external onlyOwner {
        limitIdLen = _limitIdLen;
    }

    /**
     * @notice Only the contract owner can update the list of NFT contracts that are supported or unsupported by the registration contract.
     */
    function setSupportNFT(address[] memory nfts, bool status)
        external
        onlyOwner
    {
        supportNFT(nfts, status);
    }

    function supportNFT(address[] memory nfts, bool status) private {
        uint256 len = nfts.length;
        address nft;
        for (uint256 index = 0; index < len; index++) {
            nft = nfts[index];
            supportnft[nft] = status;
        }
    }

    /**
     * @notice Only the contract owner can update the minimum and maximum registration period.
     */
    function updateTsLimit(uint64 floorts, uint64 ceilts) external onlyOwner {
        floorlimit = floorts;
        ceillimit = ceilts;
    }

    /**
     * @notice Only the contract owner can enable the global switch for a duration time.
     */
    function setGloSwitch(uint256 duration) external onlyOwner {
        uint256 ts = block.timestamp;
        globalswitch = ts + duration;
    }

    /**
     * @notice Only the contract owner can enable the address-specific switch for a specific address and a set duration.
     */
    function setAddrSwitch(address addr, uint256 duration) external onlyOwner {
        uint256 ts = block.timestamp;
        addrswitch[addr] = ts + duration;
    }

    /**
     * @notice Only the contract owner can enable the NFTID-specific switch for a specific NFT contract and a set duration.
     */
    function setNFTSwitch(
        address nft,
        uint256 nftId,
        uint256 duration
    ) external onlyOwner {
        uint256 ts = block.timestamp;
        nftswitch[nft][nftId] = ts + duration;
    }

    /**
     * @notice Registration requires a supported NFT and a valid timestamp duration between the floor limit and ceiling limit. Meanwhile, the transaction reverts if the sender is on the banlist, and the banlist information will be deleted if the sender is not on the banlist or the banlist duration has ended.
     */
    function registration(
        address nft,
        uint256[] calldata nftIds,
        uint256 timestamp
    ) external nonReentrant {
        address register = _msgSender();
        uint256 len = nftIds.length;
        require(len <= limitIdLen, "Exceed maximum length");
        checkts(nft, timestamp, register);
        uint256 nftId;
        uint256 endts = timestamp + block.timestamp;
        uint256 packdata = _packRegisterData(register, endts);
        for (uint256 index = 0; index < len; index++) {
            nftId = nftIds[index];
            registerInfo[nft][nftId] = packdata;
            IERC721(nft).safeTransferFrom(register, address(this), nftId);
        }
        emit Register(nft, register, endts, nftIds);
    }

    /**
     * @notice For Unregistration, the sender must be the address that registed  the NFTID. They can unregister the NFTID if any switches are enabled for him, or if the maximum between registration and banlist durations have ended. Unregistration will delete the banlist state for the player.
     */
    function unregistration(address nft, uint256[] calldata nftIds)
        external
        nonReentrant
    {
        address unregister = _msgSender();
        uint256 len = nftIds.length;
        require(len <= limitIdLen, "Exceed maximum length");
        uint256 nftId;
        uint256 ts = block.timestamp;
        bool temstatus = globalswitch > ts || addrswitch[unregister] > ts;
        for (uint256 index = 0; index < len; index++) {
            nftId = nftIds[index];
            registerDataCheck(unregister, nft, nftId);
            bool status = temstatus || nftswitch[nft][nftId] > ts;
            if (!status) {
                uint256 maxts = stakEndts(nft, unregister, nftId);
                if (ts > maxts) {
                    delete banInfo[unregister];
                } else {
                    revert UnableToUnregister();
                }
            }
            delete registerInfo[nft][nftId];
            IERC721(nft).safeTransferFrom(address(this), unregister, nftId);
        }

        emit Unregister(nft, unregister, nftIds);
    }

    /**
     * @notice For renewal a register duration, the sender must be the address that registed the NFTID. They can renewal the registration duration for the specific NFT ID. Renewaling will delete the banlist state if the sender has been banlisted but the banlisted duration has now expired.
     */
    function registrationRenewal(
        address nft,
        uint256[] calldata nftIds,
        uint64 timestamp
    ) external {
        address register = _msgSender();
        checkts(nft, timestamp, register);
        uint256 len = nftIds.length;
        require(len <= limitIdLen, "Exceed maximum length");
        uint256 nftId;
        uint256 ts = block.timestamp;
        for (uint256 index = 0; index < len; index++) {
            nftId = nftIds[index];
            uint256 registerts = registerDataCheck(register, nft, nftId);
            uint256 endts = ts > registerts ? ts : registerts;
            endts += timestamp;
            if (endts - ts > ceillimit) {
                endts = ts + ceillimit;
            }
            registerInfo[nft][nftId] = _packRegisterData(register, endts);
            emit Renewal(nft, register, nftId, endts);
        }
    }

    /**
     * @notice Only the Miner can ban players who are not already in a banlisted state, for a maximum duration of BANCEIL.
     */
    function ban(address[] calldata players, uint256 timestamp)
        external
        onlyMiner
    {
        if (timestamp > BANCEIL) {
            revert ExceedBanCeil();
        }
        address player;
        uint256 len = players.length;
        require(len <= limitIdLen, "Exceed maximum length");
        uint256 endts = timestamp + block.timestamp;
        for (uint256 index = 0; index < len; index++) {
            player = players[index];
            require((banInfo[player] == 0), "The user has been banned");
            banInfo[player] = endts;
        }
        emit Ban(endts, players);
    }

    /**
     * @notice Only the Miner can reduce the banning duration for players.
     */
    function reduceBanningDuration(
        address[] calldata players,
        uint256 timestamp
    ) external onlyMiner {
        address player;
        uint256 len = players.length;
        require(len <= limitIdLen, "Exceed maximum length");
        for (uint256 index = 0; index < len; index++) {
            player = players[index];
            uint256 remaingts = blackRemaingSeconds(player);
            if (remaingts <= timestamp) {
                banInfo[player] = block.timestamp;
            } else {
                banInfo[player] -= timestamp;
            }
            emit ReduceBanningDuration(player, banInfo[player]);
        }
    }

    /**
     * @notice Registers can burn the in-game items (NFTs) to upgrade or disassemble operations in specific game scenarios
     */
    function burn(
        address nft,
        uint32[] calldata nftIds,
        uint64 timestamp,
        uint64 uuid,
        uint64 signId,
        bytes memory sig
    ) external {
        assertValidCosign(nft, nftIds, timestamp, uuid, signId, sig);
        uint32 nftId;
        uint256 len = nftIds.length;
        address register = _msgSender();
        if (blackRemaingSeconds(register) != 0) {
            revert InBannedStatus();
        }
        for (uint256 i = 0; i < len; i++) {
            nftId = nftIds[i];
            registerDataCheck(register, nft, nftId);
            delete registerInfo[nft][nftId];
            SpaceNFTBurn(nft).burn(nftId);
        }
        emit Burn(signId);
    }

    function assertValidCosign(
        address nft,
        uint32[] memory nftId,
        uint64 timestamp,
        uint64 uuid,
        uint64 signId,
        bytes memory sig
    ) private returns (bool) {
        uint32 chainID;
        assembly {
            chainID := chainid()
        }
        bytes32 hash = keccak256(
            abi.encodePacked(
                nftId,
                chainID,
                timestamp,
                uuid,
                signId,
                nft,
                _msgSender(),
                address(this)
            )
        );
        require(matchSigner(hash, sig), "Invalid_Signature");
        if (timestamp != 0) {
            require((expireTime + timestamp >= block.timestamp), "HAS_Expired");
        }
        require((!sigvalue[uuid]), "HAS_USED");
        sigvalue[uuid] = true;
        return true;
    }

    function matchSigner(bytes32 hash, bytes memory signature)
        private
        view
        returns (bool)
    {
        return _cosigner == hash.toEthSignedMessageHash().recover(signature);
    }

    /**
     * @notice Sets cosigner.
     */
    function setCosigner(address cosigner) external onlyOwner {
        require(cosigner != address(0), "Invalid address");
        _cosigner = cosigner;
    }

    /**
     * @notice Returns the packed data based on the registration address and time duration.
     */
    function _packRegisterData(address owner, uint256 ts)
        private
        pure
        returns (uint256 result)
    {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP)`.
            result := or(owner, shl(_BITPOS_START_TIMESTAMP, ts))
        }
    }

    /**
     * @notice Returns the unpacked registration address and time duration from `packed`.
     */
    function _unpackedRegisterInfo(uint256 packed)
        private
        pure
        returns (address, uint256)
    {
        return (address(uint160(packed)), packed >> _BITPOS_START_TIMESTAMP);
    }

    /**
     * @notice Validate the NFT address, registration duration, and banlist state.
     */
    function checkts(
        address nft,
        uint256 ts,
        address register
    ) internal {
        if (!supportnft[nft]) {
            revert NotSupportedNFT();
        }
        if (ts < floorlimit || ts > ceillimit) {
            revert InvalidRegistrationTime();
        }
        if (blacked(register)) {
            if (blackRemaingSeconds(register) == 0) {
                delete banInfo[register];
            } else {
                revert InBannedStatus();
            }
        }
    }

    /**
     * @notice Return the remaining time of the player's banlist state.
     */
    function blackRemaingSeconds(address player) public view returns (uint256) {
        uint256 blackts = banInfo[player];
        uint256 ts = block.timestamp;
        if (ts > blackts) {
            return 0;
        } else {
            return blackts - ts;
        }
    }

    /**
     * @notice Return the maximum of the registration time and banlist time.
     */
    function stakEndts(
        address nft,
        address player,
        uint256 nftId
    ) public view returns (uint256) {
        uint256 blackts = banInfo[player];
        uint256 packdata = registerInfo[nft][nftId];
        uint256 registerts;
        (, registerts) = _unpackedRegisterInfo(packdata);

        return blackts > registerts ? blackts : registerts;
    }

    function renounceOwnership() public view override onlyOwner {
        revert("Closed_Interface");
    }

    function blacked(address player) private view returns (bool) {
        return banInfo[player] != 0;
    }

    /**
     * @notice Validate that the sender matches the registration address.
     */
    function registerDataCheck(
        address sender,
        address nft,
        uint256 nftId
    ) private view returns (uint256 endts) {
        address register;
        (register, endts) = registerData(nft, nftId);
        require(sender == register, "Without registration permission");
    }

    /**
     * @notice Return the registration information, including the registration address and time, for a specific NFT contract and NFT ID.
     */
    function registerData(address nft, uint256 nftId)
        public
        view
        returns (address, uint256)
    {
        uint256 packdata = registerInfo[nft][nftId];
        return _unpackedRegisterInfo(packdata);
    }

    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) external pure returns (bytes4) {
        return IERC721Receiver.onERC721Received.selector;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"nfts","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ExceedBanCeil","type":"error"},{"inputs":[],"name":"InBannedStatus","type":"error"},{"inputs":[],"name":"InvalidRegistrationTime","type":"error"},{"inputs":[],"name":"InvalidRenewalTime","type":"error"},{"inputs":[],"name":"NotSupportedNFT","type":"error"},{"inputs":[],"name":"UnableToUnregister","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"players","type":"address[]"}],"name":"Ban","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"signId","type":"uint64"}],"name":"Burn","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":false,"internalType":"address","name":"player","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ReduceBanningDuration","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"nft","type":"address"},{"indexed":false,"internalType":"address","name":"register","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"nftId","type":"uint256[]"}],"name":"Register","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"nft","type":"address"},{"indexed":false,"internalType":"address","name":"register","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Renewal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"nft","type":"address"},{"indexed":false,"internalType":"address","name":"register","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"nftId","type":"uint256[]"}],"name":"Unregister","type":"event"},{"inputs":[{"internalType":"address[]","name":"players","type":"address[]"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ban","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"}],"name":"blackRemaingSeconds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nft","type":"address"},{"internalType":"uint32[]","name":"nftIds","type":"uint32[]"},{"internalType":"uint64","name":"timestamp","type":"uint64"},{"internalType":"uint64","name":"uuid","type":"uint64"},{"internalType":"uint64","name":"signId","type":"uint64"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"players","type":"address[]"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"reduceBanningDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nft","type":"address"},{"internalType":"uint256","name":"nftId","type":"uint256"}],"name":"registerData","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nft","type":"address"},{"internalType":"uint256[]","name":"nftIds","type":"uint256[]"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"registration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nft","type":"address"},{"internalType":"uint256[]","name":"nftIds","type":"uint256[]"},{"internalType":"uint64","name":"timestamp","type":"uint64"}],"name":"registrationRenewal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"setAddrSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"cosigner","type":"address"}],"name":"setCosigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"setGloSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_limitIdLen","type":"uint32"}],"name":"setLimitLen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nft","type":"address"},{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"setNFTSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"nfts","type":"address[]"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setSupportNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"expiry","type":"uint32"}],"name":"setTimestampExpirySeconds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nft","type":"address"},{"internalType":"address","name":"player","type":"address"},{"internalType":"uint256","name":"nftId","type":"uint256"}],"name":"stakEndts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nft","type":"address"},{"internalType":"uint256[]","name":"nftIds","type":"uint256[]"}],"name":"unregistration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newminer","type":"address"}],"name":"updateMiner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"floorts","type":"uint64"},{"internalType":"uint64","name":"ceilts","type":"uint64"}],"name":"updateTsLimit","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600280546001600160c01b03191674320000012c0000000001e13380000000000003f4801790556004805473da801d3cce8626bd55387554bb3be500681cb49c6001600160a01b031991821681179092556005805490911690911790553480156200006e57600080fd5b506040516200232c3803806200232c8339810160408190526200009191620001ab565b6200009c33620000b5565b6001808055620000ae90829062000105565b50620002bb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b81516000805b8281101562000171578481815181106200012957620001296200027d565b6020908102919091018101516001600160a01b038116600090815260089092526040909120805460ff1916861515179055915080620001688162000293565b9150506200010b565b5050505050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b0381168114620001a657600080fd5b919050565b60006020808385031215620001bf57600080fd5b82516001600160401b0380821115620001d757600080fd5b818501915085601f830112620001ec57600080fd5b81518181111562000201576200020162000178565b8060051b604051601f19603f8301168101818110858211171562000229576200022962000178565b6040529182528482019250838101850191888311156200024857600080fd5b938501935b82851015620002715762000261856200018e565b845293850193928501926200024d565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b600060018201620002b457634e487b7160e01b600052601160045260246000fd5b5060010190565b61206180620002cb6000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80638da5cb5b116100b8578063c688951c1161007c578063c688951c146102ad578063c933c516146102c0578063d65c9d2f146102d3578063d864598b146102e6578063f2fde38b146102f9578063fe1ee17d1461030c57600080fd5b80638da5cb5b146102465780639a12cd75146102615780639a4a9b3914610274578063a574f64a14610287578063aae7d4331461029a57600080fd5b806317e8a1401161010a57806317e8a140146101d15780631cf06bbc146101e45780632b16cad2146101f757806333cd673a1461020a578063715018a61461021d5780637576dbef1461022557600080fd5b80630204513814610147578063063e9f4d1461015c578063091bb6901461016f5780630d4017e014610182578063150b7a0214610195575b600080fd5b61015a6101553660046117fb565b61033e565b005b61015a61016a36600461181d565b6103b5565b61015a61017d366004611946565b6103cf565b61015a6101903660046119f4565b61055d565b6101b36101a3366004611a4d565b630a85bd0160e11b949350505050565b6040516001600160e01b031990911681526020015b60405180910390f35b61015a6101df366004611ab4565b6106d6565b61015a6101f2366004611b06565b6108e5565b61015a6102053660046117fb565b610927565b61015a610218366004611b39565b610999565b61015a6109cd565b610238610233366004611b63565b610a10565b6040519081526020016101c8565b6000546040516001600160a01b0390911681526020016101c8565b61015a61026f366004611b9f565b610a64565b61015a610282366004611bd5565b610a92565b61015a610295366004611c93565b610aa8565b61015a6102a8366004611cf7565b610c27565b61015a6102bb366004611d2a565b610c68565b6102386102ce3660046117fb565b610df8565b61015a6102e1366004611b9f565b610e36565b61015a6102f4366004611d2a565b610e64565b61015a6103073660046117fb565b611030565b61031f61031a366004611b39565b6110a9565b604080516001600160a01b0390931683526020830191909152016101c8565b6103466110da565b6001600160a01b0381166103935760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064015b60405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6103bd6110da565b426103c88282611d8b565b6003555050565b6104128787878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525089925088915087905086611136565b506000853361042081610df8565b1561043e576040516320ccf8f960e11b815260040160405180910390fd5b60005b828110156105145789898281811061045b5761045b611d9e565b90506020020160208101906104709190611b9f565b9350610483828c8663ffffffff166112b3565b506001600160a01b038b16600081815260096020908152604080832063ffffffff89168085529252808320929092559051630852cd8d60e31b815260048101919091526342966c6890602401600060405180830381600087803b1580156104e957600080fd5b505af11580156104fd573d6000803e3d6000fd5b50505050808061050c90611db4565b915050610441565b506040516001600160401b03861681527fe1b7f9aa58e45fef132f6fb1603c9c4de00def2bfcb5f183cebd2d5988994fa29060200160405180910390a150505050505050505050565b610565611327565b60025433908390600160a01b900463ffffffff168111156105985760405162461bcd60e51b815260040161038a90611dcd565b6105a3868484611380565b6000806105b04286611d8b565b905060a081901b6001600160a01b0385161760005b84811015610682578888828181106105df576105df611d9e565b6001600160a01b038d8116600081815260096020908152604080832095820297909701358083529490528590208790559351632142170760e11b8152908a166004820152306024820152604481018290529096506342842e0e9150606401600060405180830381600087803b15801561065757600080fd5b505af115801561066b573d6000803e3d6000fd5b50505050808061067a90611db4565b9150506105c5565b507f5ad8141c164356bdef9e16f08312a7034ac6682a7413ce4fecfc44da5e18fec78986848b8b6040516106ba959493929190611e2e565b60405180910390a150505050506106d060018055565b50505050565b6106de611327565b60025433908290600160a01b900463ffffffff168111156107115760405162461bcd60e51b815260040161038a90611dcd565b600080429050600081600354118061074057506001600160a01b03851660009081526006602052604090205482105b905060005b848110156108945787878281811061075f5761075f611d9e565b905060200201359350610773868a866112b3565b50600082806107a457506001600160a01b038a16600090815260076020908152604080832088845290915290205484105b9050806107fb5760006107b88b8988610a10565b9050808511156107e0576001600160a01b0388166000908152600a60205260408120556107f9565b60405163cb97711360e01b815260040160405180910390fd5b505b6001600160a01b038a811660008181526009602090815260408083208a84529091528082209190915551632142170760e11b8152306004820152918916602483015260448201879052906342842e0e90606401600060405180830381600087803b15801561086857600080fd5b505af115801561087c573d6000803e3d6000fd5b5050505050808061088c90611db4565b915050610745565b507feb879c9d6d39266b9caad39ced3788f8b8f47bb316e3fb55f3f44cb0f638cbc6888689896040516108ca9493929190611e62565b60405180910390a150505050506108e060018055565b505050565b6108ed6110da565b600280546001600160401b03928316600160401b026fffffffffffffffffffffffffffffffff199091169290931691909117919091179055565b61092f6110da565b6001600160a01b0381166109775760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015260640161038a565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6109a16110da565b426109ac8282611d8b565b6001600160a01b039093166000908152600660205260409020929092555050565b6109d56110da565b60405162461bcd60e51b815260206004820152601060248201526f436c6f7365645f496e7465726661636560801b604482015260640161038a565b6001600160a01b038281166000908152600a602090815260408083205493871683526009825280832085845290915281205490919060a081901c808311610a575780610a59565b825b979650505050505050565b610a6c6110da565b6002805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b610a9a6110da565b610aa48282611464565b5050565b33610abd856001600160401b03841683611380565b6002548390600160a01b900463ffffffff16811115610aee5760405162461bcd60e51b815260040161038a90611dcd565b600042815b83811015610c1c57878782818110610b0d57610b0d611d9e565b9050602002013592506000610b23868b866112b3565b90506000818411610b345781610b36565b835b9050610b4b6001600160401b03891682611d8b565b600254909150600160401b90046001600160401b0316610b6b8583611e99565b1115610b9157600254610b8e90600160401b90046001600160401b031685611d8b565b90505b6001600160a01b038b811660008181526009602090815260408083208a845282529182902060a086901b948c16948517905581519283528201929092528082018790526060810183905290517f7c9bb2d7d3438e95c0602e298a3af1e36d7522a0b5e21e5cc87458e91dea12029181900360800190a150508080610c1490611db4565b915050610af3565b505050505050505050565b610c2f6110da565b42610c3a8282611d8b565b6001600160a01b03909416600090815260076020908152604080832095835294905292909220929092555050565b6005546001600160a01b03163314610cc25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d696e6572604482015260640161038a565b6002546000908390600160a01b900463ffffffff16811115610cf65760405162461bcd60e51b815260040161038a90611dcd565b60005b81811015610df057858582818110610d1357610d13611d9e565b9050602002016020810190610d2891906117fb565b92506000610d3584610df8565b9050848111610d5e576001600160a01b0384166000908152600a60205260409020429055610d8c565b6001600160a01b0384166000908152600a602052604081208054879290610d86908490611e99565b90915550505b6001600160a01b0384166000818152600a6020908152604091829020548251938452908301527f36f824b722a6b1ea67b79796d58020cf63f27b9a542acdd0316d01af365d5504910160405180910390a15080610de881611db4565b915050610cf9565b505050505050565b6001600160a01b0381166000908152600a60205260408120544281811115610e24575060009392505050565b610e2e8183611e99565b949350505050565b610e3e6110da565b6002805463ffffffff909216600160801b0263ffffffff60801b19909216919091179055565b6005546001600160a01b03163314610ebe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d696e6572604482015260640161038a565b6276a700811115610ee257604051638f54273560e01b815260040160405180910390fd5b6002546000908390600160a01b900463ffffffff16811115610f165760405162461bcd60e51b815260040161038a90611dcd565b6000610f224285611d8b565b905060005b82811015610fec57868682818110610f4157610f41611d9e565b9050602002016020810190610f5691906117fb565b6001600160a01b0381166000908152600a602052604090205490945015610fbf5760405162461bcd60e51b815260206004820152601860248201527f546865207573657220686173206265656e2062616e6e65640000000000000000604482015260640161038a565b6001600160a01b0384166000908152600a6020526040902082905580610fe481611db4565b915050610f27565b507f8b76a9674748eed60af451b49a3934d77641c61747dd41c2910ec3d69ddfca8d81878760405161102093929190611eac565b60405180910390a1505050505050565b6110386110da565b6001600160a01b03811661109d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161038a565b6110a6816114d0565b50565b6001600160a01b038216600090815260096020908152604080832084845290915290205460a081901c5b9250929050565b6000546001600160a01b031633146111345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161038a565b565b6000468187828888888d3330604051602001611159989796959493929190611f02565b60405160208183030381529060405280519060200120905061117b8185611520565b6111bb5760405162461bcd60e51b8152602060048201526011602482015270496e76616c69645f5369676e617475726560781b604482015260640161038a565b6001600160401b0387161561122c5760025442906111e7908990600160801b900463ffffffff16611fee565b6001600160401b0316101561122c5760405162461bcd60e51b815260206004820152600b60248201526a121054d7d15e1c1a5c995960aa1b604482015260640161038a565b6001600160401b0386166000908152600b602052604090205460ff16156112805760405162461bcd60e51b8152602060048201526008602482015267121054d7d554d15160c21b604482015260640161038a565b5050506001600160401b0383166000908152600b60205260409020805460ff191660019081179091559695505050505050565b6000806112c084846110a9565b925090506001600160a01b038581169082161461131f5760405162461bcd60e51b815260206004820152601f60248201527f576974686f757420726567697374726174696f6e207065726d697373696f6e00604482015260640161038a565b509392505050565b6002600154036113795760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161038a565b6002600155565b6001600160a01b03831660009081526008602052604090205460ff166113b957604051632e073b1760e21b815260040160405180910390fd5b6002546001600160401b03168210806113e35750600254600160401b90046001600160401b031682115b156114015760405163543b0fc560e11b815260040160405180910390fd5b6001600160a01b0381166000908152600a6020526040902054156108e05761142881610df8565b60000361144b576001600160a01b03166000908152600a60205260408120555050565b6040516320ccf8f960e11b815260040160405180910390fd5b81516000805b828110156114c95784818151811061148457611484611d9e565b6020908102919091018101516001600160a01b038116600090815260089092526040909120805460ff19168615151790559150806114c181611db4565b91505061146a565b5050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c839052603c81206115599083611573565b6004546001600160a01b0390811691161490505b92915050565b6000806000611582858561158f565b9150915061131f816115d1565b60008082516041036115c55760208301516040840151606085015160001a6115b98782858561171b565b945094505050506110d3565b506000905060026110d3565b60008160048111156115e5576115e5612015565b036115ed5750565b600181600481111561160157611601612015565b0361164e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161038a565b600281600481111561166257611662612015565b036116af5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161038a565b60038160048111156116c3576116c3612015565b036110a65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161038a565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561175257506000905060036117d6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156117a6573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117cf576000600192509250506117d6565b9150600090505b94509492505050565b80356001600160a01b03811681146117f657600080fd5b919050565b60006020828403121561180d57600080fd5b611816826117df565b9392505050565b60006020828403121561182f57600080fd5b5035919050565b60008083601f84011261184857600080fd5b5081356001600160401b0381111561185f57600080fd5b6020830191508360208260051b85010111156110d357600080fd5b80356001600160401b03811681146117f657600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156118cf576118cf611891565b604052919050565b600082601f8301126118e857600080fd5b81356001600160401b0381111561190157611901611891565b611914601f8201601f19166020016118a7565b81815284602083860101111561192957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060c0888a03121561196157600080fd5b61196a886117df565b965060208801356001600160401b038082111561198657600080fd5b6119928b838c01611836565b90985096508691506119a660408b0161187a565b95506119b460608b0161187a565b94506119c260808b0161187a565b935060a08a01359150808211156119d857600080fd5b506119e58a828b016118d7565b91505092959891949750929550565b60008060008060608587031215611a0a57600080fd5b611a13856117df565b935060208501356001600160401b03811115611a2e57600080fd5b611a3a87828801611836565b9598909750949560400135949350505050565b60008060008060808587031215611a6357600080fd5b611a6c856117df565b9350611a7a602086016117df565b92506040850135915060608501356001600160401b03811115611a9c57600080fd5b611aa8878288016118d7565b91505092959194509250565b600080600060408486031215611ac957600080fd5b611ad2846117df565b925060208401356001600160401b03811115611aed57600080fd5b611af986828701611836565b9497909650939450505050565b60008060408385031215611b1957600080fd5b611b228361187a565b9150611b306020840161187a565b90509250929050565b60008060408385031215611b4c57600080fd5b611b55836117df565b946020939093013593505050565b600080600060608486031215611b7857600080fd5b611b81846117df565b9250611b8f602085016117df565b9150604084013590509250925092565b600060208284031215611bb157600080fd5b813563ffffffff8116811461181657600080fd5b803580151581146117f657600080fd5b60008060408385031215611be857600080fd5b82356001600160401b0380821115611bff57600080fd5b818501915085601f830112611c1357600080fd5b8135602082821115611c2757611c27611891565b8160051b9250611c388184016118a7565b8281529284018101928181019089851115611c5257600080fd5b948201945b84861015611c7757611c68866117df565b82529482019490820190611c57565b9650611c869050878201611bc5565b9450505050509250929050565b60008060008060608587031215611ca957600080fd5b611cb2856117df565b935060208501356001600160401b03811115611ccd57600080fd5b611cd987828801611836565b9094509250611cec90506040860161187a565b905092959194509250565b600080600060608486031215611d0c57600080fd5b611d15846117df565b95602085013595506040909401359392505050565b600080600060408486031215611d3f57600080fd5b83356001600160401b03811115611d5557600080fd5b611d6186828701611836565b909790965060209590950135949350505050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561156d5761156d611d75565b634e487b7160e01b600052603260045260246000fd5b600060018201611dc657611dc6611d75565b5060010190565b60208082526015908201527408af0c6cacac840dac2f0d2daeada40d8cadccee8d605b1b604082015260600190565b81835260006001600160fb1b03831115611e1557600080fd5b8260051b80836020870137939093016020019392505050565b6001600160a01b0386811682528516602082015260408101849052608060608201819052600090610a599083018486611dfc565b6001600160a01b03858116825284166020820152606060408201819052600090611e8f9083018486611dfc565b9695505050505050565b8181038181111561156d5761156d611d75565b83815260406020808301829052908201839052600090849060608401835b86811015611ef6576001600160a01b03611ee3856117df565b1682529282019290820190600101611eca565b50979650505050505050565b885160009082906020808d01845b83811015611f3257815163ffffffff1685529382019390820190600101611f10565b5050505060e08a901b6001600160e01b0319168152611f60600482018a60c01b6001600160c01b0319169052565b611f79600c82018960c01b6001600160c01b0319169052565b611f92601482018860c01b6001600160c01b0319169052565b611fab601c82018760601b6001600160601b0319169052565b611fc4603082018660601b6001600160601b0319169052565b611fdd604482018560601b6001600160601b0319169052565b6058019a9950505050505050505050565b6001600160401b0381811683821601908082111561200e5761200e611d75565b5092915050565b634e487b7160e01b600052602160045260246000fdfea26469706673582212203ff5fa58754065c5f3988d3c06396e25fe49cf250b19aa0267e4107b3b47641264736f6c63430008130033000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000001aae1a668c92eb411eafd80dd0c60ca67ad17a1c000000000000000000000000e36ac8b887b22050fd2846d1256a4737271d9368

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c80638da5cb5b116100b8578063c688951c1161007c578063c688951c146102ad578063c933c516146102c0578063d65c9d2f146102d3578063d864598b146102e6578063f2fde38b146102f9578063fe1ee17d1461030c57600080fd5b80638da5cb5b146102465780639a12cd75146102615780639a4a9b3914610274578063a574f64a14610287578063aae7d4331461029a57600080fd5b806317e8a1401161010a57806317e8a140146101d15780631cf06bbc146101e45780632b16cad2146101f757806333cd673a1461020a578063715018a61461021d5780637576dbef1461022557600080fd5b80630204513814610147578063063e9f4d1461015c578063091bb6901461016f5780630d4017e014610182578063150b7a0214610195575b600080fd5b61015a6101553660046117fb565b61033e565b005b61015a61016a36600461181d565b6103b5565b61015a61017d366004611946565b6103cf565b61015a6101903660046119f4565b61055d565b6101b36101a3366004611a4d565b630a85bd0160e11b949350505050565b6040516001600160e01b031990911681526020015b60405180910390f35b61015a6101df366004611ab4565b6106d6565b61015a6101f2366004611b06565b6108e5565b61015a6102053660046117fb565b610927565b61015a610218366004611b39565b610999565b61015a6109cd565b610238610233366004611b63565b610a10565b6040519081526020016101c8565b6000546040516001600160a01b0390911681526020016101c8565b61015a61026f366004611b9f565b610a64565b61015a610282366004611bd5565b610a92565b61015a610295366004611c93565b610aa8565b61015a6102a8366004611cf7565b610c27565b61015a6102bb366004611d2a565b610c68565b6102386102ce3660046117fb565b610df8565b61015a6102e1366004611b9f565b610e36565b61015a6102f4366004611d2a565b610e64565b61015a6103073660046117fb565b611030565b61031f61031a366004611b39565b6110a9565b604080516001600160a01b0390931683526020830191909152016101c8565b6103466110da565b6001600160a01b0381166103935760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064015b60405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6103bd6110da565b426103c88282611d8b565b6003555050565b6104128787878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525089925088915087905086611136565b506000853361042081610df8565b1561043e576040516320ccf8f960e11b815260040160405180910390fd5b60005b828110156105145789898281811061045b5761045b611d9e565b90506020020160208101906104709190611b9f565b9350610483828c8663ffffffff166112b3565b506001600160a01b038b16600081815260096020908152604080832063ffffffff89168085529252808320929092559051630852cd8d60e31b815260048101919091526342966c6890602401600060405180830381600087803b1580156104e957600080fd5b505af11580156104fd573d6000803e3d6000fd5b50505050808061050c90611db4565b915050610441565b506040516001600160401b03861681527fe1b7f9aa58e45fef132f6fb1603c9c4de00def2bfcb5f183cebd2d5988994fa29060200160405180910390a150505050505050505050565b610565611327565b60025433908390600160a01b900463ffffffff168111156105985760405162461bcd60e51b815260040161038a90611dcd565b6105a3868484611380565b6000806105b04286611d8b565b905060a081901b6001600160a01b0385161760005b84811015610682578888828181106105df576105df611d9e565b6001600160a01b038d8116600081815260096020908152604080832095820297909701358083529490528590208790559351632142170760e11b8152908a166004820152306024820152604481018290529096506342842e0e9150606401600060405180830381600087803b15801561065757600080fd5b505af115801561066b573d6000803e3d6000fd5b50505050808061067a90611db4565b9150506105c5565b507f5ad8141c164356bdef9e16f08312a7034ac6682a7413ce4fecfc44da5e18fec78986848b8b6040516106ba959493929190611e2e565b60405180910390a150505050506106d060018055565b50505050565b6106de611327565b60025433908290600160a01b900463ffffffff168111156107115760405162461bcd60e51b815260040161038a90611dcd565b600080429050600081600354118061074057506001600160a01b03851660009081526006602052604090205482105b905060005b848110156108945787878281811061075f5761075f611d9e565b905060200201359350610773868a866112b3565b50600082806107a457506001600160a01b038a16600090815260076020908152604080832088845290915290205484105b9050806107fb5760006107b88b8988610a10565b9050808511156107e0576001600160a01b0388166000908152600a60205260408120556107f9565b60405163cb97711360e01b815260040160405180910390fd5b505b6001600160a01b038a811660008181526009602090815260408083208a84529091528082209190915551632142170760e11b8152306004820152918916602483015260448201879052906342842e0e90606401600060405180830381600087803b15801561086857600080fd5b505af115801561087c573d6000803e3d6000fd5b5050505050808061088c90611db4565b915050610745565b507feb879c9d6d39266b9caad39ced3788f8b8f47bb316e3fb55f3f44cb0f638cbc6888689896040516108ca9493929190611e62565b60405180910390a150505050506108e060018055565b505050565b6108ed6110da565b600280546001600160401b03928316600160401b026fffffffffffffffffffffffffffffffff199091169290931691909117919091179055565b61092f6110da565b6001600160a01b0381166109775760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015260640161038a565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6109a16110da565b426109ac8282611d8b565b6001600160a01b039093166000908152600660205260409020929092555050565b6109d56110da565b60405162461bcd60e51b815260206004820152601060248201526f436c6f7365645f496e7465726661636560801b604482015260640161038a565b6001600160a01b038281166000908152600a602090815260408083205493871683526009825280832085845290915281205490919060a081901c808311610a575780610a59565b825b979650505050505050565b610a6c6110da565b6002805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b610a9a6110da565b610aa48282611464565b5050565b33610abd856001600160401b03841683611380565b6002548390600160a01b900463ffffffff16811115610aee5760405162461bcd60e51b815260040161038a90611dcd565b600042815b83811015610c1c57878782818110610b0d57610b0d611d9e565b9050602002013592506000610b23868b866112b3565b90506000818411610b345781610b36565b835b9050610b4b6001600160401b03891682611d8b565b600254909150600160401b90046001600160401b0316610b6b8583611e99565b1115610b9157600254610b8e90600160401b90046001600160401b031685611d8b565b90505b6001600160a01b038b811660008181526009602090815260408083208a845282529182902060a086901b948c16948517905581519283528201929092528082018790526060810183905290517f7c9bb2d7d3438e95c0602e298a3af1e36d7522a0b5e21e5cc87458e91dea12029181900360800190a150508080610c1490611db4565b915050610af3565b505050505050505050565b610c2f6110da565b42610c3a8282611d8b565b6001600160a01b03909416600090815260076020908152604080832095835294905292909220929092555050565b6005546001600160a01b03163314610cc25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d696e6572604482015260640161038a565b6002546000908390600160a01b900463ffffffff16811115610cf65760405162461bcd60e51b815260040161038a90611dcd565b60005b81811015610df057858582818110610d1357610d13611d9e565b9050602002016020810190610d2891906117fb565b92506000610d3584610df8565b9050848111610d5e576001600160a01b0384166000908152600a60205260409020429055610d8c565b6001600160a01b0384166000908152600a602052604081208054879290610d86908490611e99565b90915550505b6001600160a01b0384166000818152600a6020908152604091829020548251938452908301527f36f824b722a6b1ea67b79796d58020cf63f27b9a542acdd0316d01af365d5504910160405180910390a15080610de881611db4565b915050610cf9565b505050505050565b6001600160a01b0381166000908152600a60205260408120544281811115610e24575060009392505050565b610e2e8183611e99565b949350505050565b610e3e6110da565b6002805463ffffffff909216600160801b0263ffffffff60801b19909216919091179055565b6005546001600160a01b03163314610ebe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d696e6572604482015260640161038a565b6276a700811115610ee257604051638f54273560e01b815260040160405180910390fd5b6002546000908390600160a01b900463ffffffff16811115610f165760405162461bcd60e51b815260040161038a90611dcd565b6000610f224285611d8b565b905060005b82811015610fec57868682818110610f4157610f41611d9e565b9050602002016020810190610f5691906117fb565b6001600160a01b0381166000908152600a602052604090205490945015610fbf5760405162461bcd60e51b815260206004820152601860248201527f546865207573657220686173206265656e2062616e6e65640000000000000000604482015260640161038a565b6001600160a01b0384166000908152600a6020526040902082905580610fe481611db4565b915050610f27565b507f8b76a9674748eed60af451b49a3934d77641c61747dd41c2910ec3d69ddfca8d81878760405161102093929190611eac565b60405180910390a1505050505050565b6110386110da565b6001600160a01b03811661109d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161038a565b6110a6816114d0565b50565b6001600160a01b038216600090815260096020908152604080832084845290915290205460a081901c5b9250929050565b6000546001600160a01b031633146111345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161038a565b565b6000468187828888888d3330604051602001611159989796959493929190611f02565b60405160208183030381529060405280519060200120905061117b8185611520565b6111bb5760405162461bcd60e51b8152602060048201526011602482015270496e76616c69645f5369676e617475726560781b604482015260640161038a565b6001600160401b0387161561122c5760025442906111e7908990600160801b900463ffffffff16611fee565b6001600160401b0316101561122c5760405162461bcd60e51b815260206004820152600b60248201526a121054d7d15e1c1a5c995960aa1b604482015260640161038a565b6001600160401b0386166000908152600b602052604090205460ff16156112805760405162461bcd60e51b8152602060048201526008602482015267121054d7d554d15160c21b604482015260640161038a565b5050506001600160401b0383166000908152600b60205260409020805460ff191660019081179091559695505050505050565b6000806112c084846110a9565b925090506001600160a01b038581169082161461131f5760405162461bcd60e51b815260206004820152601f60248201527f576974686f757420726567697374726174696f6e207065726d697373696f6e00604482015260640161038a565b509392505050565b6002600154036113795760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161038a565b6002600155565b6001600160a01b03831660009081526008602052604090205460ff166113b957604051632e073b1760e21b815260040160405180910390fd5b6002546001600160401b03168210806113e35750600254600160401b90046001600160401b031682115b156114015760405163543b0fc560e11b815260040160405180910390fd5b6001600160a01b0381166000908152600a6020526040902054156108e05761142881610df8565b60000361144b576001600160a01b03166000908152600a60205260408120555050565b6040516320ccf8f960e11b815260040160405180910390fd5b81516000805b828110156114c95784818151811061148457611484611d9e565b6020908102919091018101516001600160a01b038116600090815260089092526040909120805460ff19168615151790559150806114c181611db4565b91505061146a565b5050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c839052603c81206115599083611573565b6004546001600160a01b0390811691161490505b92915050565b6000806000611582858561158f565b9150915061131f816115d1565b60008082516041036115c55760208301516040840151606085015160001a6115b98782858561171b565b945094505050506110d3565b506000905060026110d3565b60008160048111156115e5576115e5612015565b036115ed5750565b600181600481111561160157611601612015565b0361164e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161038a565b600281600481111561166257611662612015565b036116af5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161038a565b60038160048111156116c3576116c3612015565b036110a65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161038a565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561175257506000905060036117d6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156117a6573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117cf576000600192509250506117d6565b9150600090505b94509492505050565b80356001600160a01b03811681146117f657600080fd5b919050565b60006020828403121561180d57600080fd5b611816826117df565b9392505050565b60006020828403121561182f57600080fd5b5035919050565b60008083601f84011261184857600080fd5b5081356001600160401b0381111561185f57600080fd5b6020830191508360208260051b85010111156110d357600080fd5b80356001600160401b03811681146117f657600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156118cf576118cf611891565b604052919050565b600082601f8301126118e857600080fd5b81356001600160401b0381111561190157611901611891565b611914601f8201601f19166020016118a7565b81815284602083860101111561192957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060c0888a03121561196157600080fd5b61196a886117df565b965060208801356001600160401b038082111561198657600080fd5b6119928b838c01611836565b90985096508691506119a660408b0161187a565b95506119b460608b0161187a565b94506119c260808b0161187a565b935060a08a01359150808211156119d857600080fd5b506119e58a828b016118d7565b91505092959891949750929550565b60008060008060608587031215611a0a57600080fd5b611a13856117df565b935060208501356001600160401b03811115611a2e57600080fd5b611a3a87828801611836565b9598909750949560400135949350505050565b60008060008060808587031215611a6357600080fd5b611a6c856117df565b9350611a7a602086016117df565b92506040850135915060608501356001600160401b03811115611a9c57600080fd5b611aa8878288016118d7565b91505092959194509250565b600080600060408486031215611ac957600080fd5b611ad2846117df565b925060208401356001600160401b03811115611aed57600080fd5b611af986828701611836565b9497909650939450505050565b60008060408385031215611b1957600080fd5b611b228361187a565b9150611b306020840161187a565b90509250929050565b60008060408385031215611b4c57600080fd5b611b55836117df565b946020939093013593505050565b600080600060608486031215611b7857600080fd5b611b81846117df565b9250611b8f602085016117df565b9150604084013590509250925092565b600060208284031215611bb157600080fd5b813563ffffffff8116811461181657600080fd5b803580151581146117f657600080fd5b60008060408385031215611be857600080fd5b82356001600160401b0380821115611bff57600080fd5b818501915085601f830112611c1357600080fd5b8135602082821115611c2757611c27611891565b8160051b9250611c388184016118a7565b8281529284018101928181019089851115611c5257600080fd5b948201945b84861015611c7757611c68866117df565b82529482019490820190611c57565b9650611c869050878201611bc5565b9450505050509250929050565b60008060008060608587031215611ca957600080fd5b611cb2856117df565b935060208501356001600160401b03811115611ccd57600080fd5b611cd987828801611836565b9094509250611cec90506040860161187a565b905092959194509250565b600080600060608486031215611d0c57600080fd5b611d15846117df565b95602085013595506040909401359392505050565b600080600060408486031215611d3f57600080fd5b83356001600160401b03811115611d5557600080fd5b611d6186828701611836565b909790965060209590950135949350505050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561156d5761156d611d75565b634e487b7160e01b600052603260045260246000fd5b600060018201611dc657611dc6611d75565b5060010190565b60208082526015908201527408af0c6cacac840dac2f0d2daeada40d8cadccee8d605b1b604082015260600190565b81835260006001600160fb1b03831115611e1557600080fd5b8260051b80836020870137939093016020019392505050565b6001600160a01b0386811682528516602082015260408101849052608060608201819052600090610a599083018486611dfc565b6001600160a01b03858116825284166020820152606060408201819052600090611e8f9083018486611dfc565b9695505050505050565b8181038181111561156d5761156d611d75565b83815260406020808301829052908201839052600090849060608401835b86811015611ef6576001600160a01b03611ee3856117df565b1682529282019290820190600101611eca565b50979650505050505050565b885160009082906020808d01845b83811015611f3257815163ffffffff1685529382019390820190600101611f10565b5050505060e08a901b6001600160e01b0319168152611f60600482018a60c01b6001600160c01b0319169052565b611f79600c82018960c01b6001600160c01b0319169052565b611f92601482018860c01b6001600160c01b0319169052565b611fab601c82018760601b6001600160601b0319169052565b611fc4603082018660601b6001600160601b0319169052565b611fdd604482018560601b6001600160601b0319169052565b6058019a9950505050505050505050565b6001600160401b0381811683821601908082111561200e5761200e611d75565b5092915050565b634e487b7160e01b600052602160045260246000fdfea26469706673582212203ff5fa58754065c5f3988d3c06396e25fe49cf250b19aa0267e4107b3b47641264736f6c63430008130033

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

000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000001aae1a668c92eb411eafd80dd0c60ca67ad17a1c000000000000000000000000e36ac8b887b22050fd2846d1256a4737271d9368

-----Decoded View---------------
Arg [0] : nfts (address[]): 0x1aae1A668c92Eb411eAfD80DD0c60ca67ad17a1c,0xE36Ac8b887b22050FD2846d1256a4737271D9368

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [2] : 0000000000000000000000001aae1a668c92eb411eafd80dd0c60ca67ad17a1c
Arg [3] : 000000000000000000000000e36ac8b887b22050fd2846d1256a4737271d9368


Deployed Bytecode Sourcemap

40612:16739:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53550:158;;;;;;:::i;:::-;;:::i;:::-;;45398:145;;;;;;:::i;:::-;;:::i;51640:729::-;;;;;;:::i;:::-;;:::i;46559:757::-;;;;;;:::i;:::-;;:::i;57140:208::-;;;;;;:::i;:::-;-1:-1:-1;;;57140:208:0;;;;;;;;;;-1:-1:-1;;;;;;4301:33:1;;;4283:52;;4271:2;4256:18;57140:208:0;;;;;;;;47636:1095;;;;;;:::i;:::-;;:::i;45141:141::-;;;;;;:::i;:::-;;:::i;43818:154::-;;;;;;:::i;:::-;;:::i;45691:164::-;;;;;;:::i;:::-;;:::i;56110:105::-;;;:::i;55718:384::-;;;;;;:::i;:::-;;:::i;:::-;;;5860:25:1;;;5848:2;5833:18;55718:384:0;5714:177:1;9091:87:0;9137:7;9164:6;9091:87;;-1:-1:-1;;;;;9164:6:0;;;6042:51:1;;6030:2;6015:18;9091:87:0;5896:203:1;44328:103:0;;;;;;:::i;:::-;;:::i;44598:144::-;;;;;;:::i;:::-;;:::i;49048:894::-;;;;;;:::i;:::-;;:::i;46006:216::-;;;;;;:::i;:::-;;:::i;50821:669::-;;;;;;:::i;:::-;;:::i;55333:281::-;;;;;;:::i;:::-;;:::i;44107:107::-;;;;;;:::i;:::-;;:::i;50092:627::-;;;;;;:::i;:::-;;:::i;9990:201::-;;;;;;:::i;:::-;;:::i;56900:232::-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;9192:32:1;;;9174:51;;9256:2;9241:18;;9234:34;;;;9147:18;56900:232:0;9000:274:1;53550:158:0;8977:13;:11;:13::i;:::-;-1:-1:-1;;;;;53627:22:0;::::1;53619:50;;;::::0;-1:-1:-1;;;53619:50:0;;9481:2:1;53619:50:0::1;::::0;::::1;9463:21:1::0;9520:2;9500:18;;;9493:30;-1:-1:-1;;;9539:18:1;;;9532:45;9594:18;;53619:50:0::1;;;;;;;;;53680:9;:20:::0;;-1:-1:-1;;;;;;53680:20:0::1;-1:-1:-1::0;;;;;53680:20:0;;;::::1;::::0;;;::::1;::::0;;53550:158::o;45398:145::-;8977:13;:11;:13::i;:::-;45481:15:::1;45522:13;45527:8:::0;45481:15;45522:13:::1;:::i;:::-;45507:12;:28:::0;-1:-1:-1;;45398:145:0:o;51640:729::-;51838:60;51856:3;51861:6;;51838:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51869:9:0;;-1:-1:-1;51880:4:0;;-1:-1:-1;51886:6:0;;-1:-1:-1;51894:3:0;51838:17;:60::i;:::-;-1:-1:-1;51909:12:0;51946:6;7722:10;52016:29;7722:10;52016:19;:29::i;:::-;:34;52012:90;;52074:16;;-1:-1:-1;;;52074:16:0;;;;;;;;;;;52012:90;52117:9;52112:222;52136:3;52132:1;:7;52112:222;;;52169:6;;52176:1;52169:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;52161:17;;52193:39;52211:8;52221:3;52226:5;52193:39;;:17;:39::i;:::-;-1:-1:-1;;;;;;52254:17:0;;;;;;:12;:17;;;;;;;;:24;;;;;;;;;;;52247:31;;;;52293:29;;-1:-1:-1;;;52293:29:0;;;;;10162:42:1;;;;52293:22:0;;10135:18:1;;52293:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52141:3;;;;;:::i;:::-;;;;52112:222;;;-1:-1:-1;52349:12:0;;-1:-1:-1;;;;;10517:31:1;;10499:50;;52349:12:0;;10487:2:1;10472:18;52349:12:0;;;;;;;51827:542;;;51640:729;;;;;;;:::o;46559:757::-;39574:21;:19;:21::i;:::-;46802:10:::1;::::0;7722;;46763:6;;-1:-1:-1;;;46802:10:0;::::1;;;46795:17:::0;::::1;;46787:51;;;;-1:-1:-1::0;;;46787:51:0::1;;;;;;;:::i;:::-;46849:33;46857:3;46862:9;46873:8;46849:7;:33::i;:::-;46893:13;::::0;46933:27:::1;46945:15;46933:9:::0;:27:::1;:::i;:::-;46917:43:::0;-1:-1:-1;54230:23:0;54226:32;;;-1:-1:-1;;;;;54092:28:0;;54216:43;46971:16:::1;47035:220;47067:3;47059:5;:11;47035:220;;;47104:6;;47111:5;47104:13;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;47132:17:0;;::::1;;::::0;;;:12:::1;47104:13;47132:17:::0;;;;;;;47104:13;;::::1;::::0;;;::::1;;47132:24:::0;;;;;;;;;:35;;;47182:61;;-1:-1:-1;;;47182:61:0;;11168:15:1;;;47182:61:0::1;::::0;::::1;11150:34:1::0;47230:4:0::1;11200:18:1::0;;;11193:43;11252:18;;;11245:34;;;47104:13:0;;-1:-1:-1;47182:29:0::1;::::0;-1:-1:-1;11085:18:1;;47182:61:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;47072:7;;;;;:::i;:::-;;;;47035:220;;;;47270:38;47279:3;47284:8;47294:5;47301:6;;47270:38;;;;;;;;;;:::i;:::-;;;;;;;;46696:620;;;;;39618:20:::0;39012:1;40138:22;;39955:213;39618:20;46559:757;;;;:::o;47636:1095::-;39574:21;:19;:21::i;:::-;47853:10:::1;::::0;7722;;47814:6;;-1:-1:-1;;;47853:10:0;::::1;;;47846:17:::0;::::1;;47838:51;;;;-1:-1:-1::0;;;47838:51:0::1;;;;;;;:::i;:::-;47900:13;47924:10:::0;47937:15:::1;47924:28;;47963:14;47995:2;47980:12;;:17;:48;;;-1:-1:-1::0;;;;;;48001:22:0;::::1;;::::0;;;:10:::1;:22;::::0;;;;;:27;-1:-1:-1;47980:48:0::1;47963:65;;48044:13;48039:632;48071:3;48063:5;:11;48039:632;;;48108:6;;48115:5;48108:13;;;;;;;:::i;:::-;;;;;;;48100:21;;48136:41;48154:10;48166:3;48171:5;48136:17;:41::i;:::-;;48192:11;48206:9;:39;;;-1:-1:-1::0;;;;;;48219:14:0;::::1;;::::0;;;:9:::1;:14;::::0;;;;;;;:21;;;;;;;;;:26;-1:-1:-1;48206:39:0::1;48192:53;;48265:6;48260:276;;48292:13;48308:33;48318:3;48323:10;48335:5;48308:9;:33::i;:::-;48292:49;;48369:5;48364:2;:10;48360:161;;;-1:-1:-1::0;;;;;48406:19:0;::::1;;::::0;;;:7:::1;:19;::::0;;;;48399:26;48360:161:::1;;;48481:20;;-1:-1:-1::0;;;48481:20:0::1;;;;;;;;;;;48360:161;48273:263;48260:276;-1:-1:-1::0;;;;;48557:17:0;;::::1;;::::0;;;:12:::1;:17;::::0;;;;;;;:24;;;;;;;;;48550:31;;;;48596:63;-1:-1:-1;;;48596:63:0;;48634:4:::1;48596:63;::::0;::::1;11150:34:1::0;11220:15;;;11200:18;;;11193:43;11252:18;;;11245:34;;;48557:17:0;48596:29:::1;::::0;11085:18:1;;48596:63:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;48085:586;48076:7;;;;;:::i;:::-;;;;48039:632;;;;48688:35;48699:3;48704:10;48716:6;;48688:35;;;;;;;;;:::i;:::-;;;;;;;;47745:986;;;;;39618:20:::0;39012:1;40138:22;;39955:213;39618:20;47636:1095;;;:::o;45141:141::-;8977:13;:11;:13::i;:::-;45225:10:::1;:20:::0;;-1:-1:-1;;;;;45256:18:0;;::::1;-1:-1:-1::0;;;45256:18:0::1;-1:-1:-1::0;;45256:18:0;;;45225:20;;;::::1;45256:18:::0;;;;;;;::::1;::::0;;45141:141::o;43818:154::-;8977:13;:11;:13::i;:::-;-1:-1:-1;;;;;43895:22:0;::::1;43887:50;;;::::0;-1:-1:-1;;;43887:50:0;;9481:2:1;43887:50:0::1;::::0;::::1;9463:21:1::0;9520:2;9500:18;;;9493:30;-1:-1:-1;;;9539:18:1;;;9532:45;9594:18;;43887:50:0::1;9279:339:1::0;43887:50:0::1;43948:5;:16:::0;;-1:-1:-1;;;;;;43948:16:0::1;-1:-1:-1::0;;;;;43948:16:0;;;::::1;::::0;;;::::1;::::0;;43818:154::o;45691:164::-;8977:13;:11;:13::i;:::-;45789:15:::1;45834:13;45839:8:::0;45789:15;45834:13:::1;:::i;:::-;-1:-1:-1::0;;;;;45815:16:0;;::::1;;::::0;;;:10:::1;:16;::::0;;;;:32;;;;-1:-1:-1;;45691:164:0:o;56110:105::-;8977:13;:11;:13::i;:::-;56181:26:::1;::::0;-1:-1:-1;;;56181:26:0;;12863:2:1;56181:26:0::1;::::0;::::1;12845:21:1::0;12902:2;12882:18;;;12875:30;-1:-1:-1;;;12921:18:1;;;12914:46;12977:18;;56181:26:0::1;12661:340:1::0;55718:384:0;-1:-1:-1;;;;;55874:15:0;;;55836:7;55874:15;;;:7;:15;;;;;;;;;55919:17;;;;;:12;:17;;;;;:24;;;;;;;;;55836:7;;55874:15;41513:3;54558:33;;;56051:20;;;:43;;56084:10;56051:43;;;56074:7;56051:43;56044:50;55718:384;-1:-1:-1;;;;;;;55718:384:0:o;44328:103::-;8977:13;:11;:13::i;:::-;44399:10:::1;:24:::0;;::::1;::::0;;::::1;-1:-1:-1::0;;;44399:24:0::1;-1:-1:-1::0;;;;44399:24:0;;::::1;::::0;;;::::1;::::0;;44328:103::o;44598:144::-;8977:13;:11;:13::i;:::-;44710:24:::1;44721:4;44727:6;44710:10;:24::i;:::-;44598:144:::0;;:::o;49048:894::-;7722:10;49231:33;49239:3;-1:-1:-1;;;;;49231:33:0;;7722:10;49231:7;:33::i;:::-;49328:10;;49289:6;;-1:-1:-1;;;49328:10:0;;;;49321:17;;;49313:51;;;;-1:-1:-1;;;49313:51:0;;;;;;;:::i;:::-;49375:13;49412:15;49375:13;49438:497;49470:3;49462:5;:11;49438:497;;;49507:6;;49514:5;49507:13;;;;;;;:::i;:::-;;;;;;;49499:21;;49535:18;49556:39;49574:8;49584:3;49589:5;49556:17;:39::i;:::-;49535:60;;49610:13;49631:10;49626:2;:15;:33;;49649:10;49626:33;;;49644:2;49626:33;49610:49;-1:-1:-1;49674:18:0;-1:-1:-1;;;;;49674:18:0;;49610:49;49674:18;:::i;:::-;49724:9;;49674:18;;-1:-1:-1;;;;49724:9:0;;-1:-1:-1;;;;;49724:9:0;49711:10;49719:2;49674:18;49711:10;:::i;:::-;:22;49707:85;;;49767:9;;49762:14;;-1:-1:-1;;;49767:9:0;;-1:-1:-1;;;;;49767:9:0;49762:2;:14;:::i;:::-;49754:22;;49707:85;-1:-1:-1;;;;;49806:17:0;;;;;;;:12;:17;;;;;;;;:24;;;;;;;;;54230:23;54226:32;;;54092:28;;;54216:43;;;49806:61;;49887:36;;13408:34:1;;;13458:18;;13451:43;;;;13510:18;;;13503:34;;;13568:2;13553:18;;13546:34;;;49887:36:0;;;;;;;13357:3:1;49887:36:0;;;49484:451;;49475:7;;;;;:::i;:::-;;;;49438:497;;;;49178:764;;;;49048:894;;;;:::o;46006:216::-;8977:13;:11;:13::i;:::-;46151:15:::1;46201:13;46206:8:::0;46151:15;46201:13:::1;:::i;:::-;-1:-1:-1::0;;;;;46177:14:0;;::::1;;::::0;;;:9:::1;:14;::::0;;;;;;;:21;;;;;;;;;;:37;;;;-1:-1:-1;;46006:216:0:o;50821:669::-;43589:5;;-1:-1:-1;;;;;43589:5:0;7722:10;43589:21;43581:66;;;;-1:-1:-1;;;43581:66:0;;13793:2:1;43581:66:0;;;13775:21:1;;;13812:18;;;13805:30;13871:34;13851:18;;;13844:62;13923:18;;43581:66:0;13591:356:1;43581:66:0;51033:10:::1;::::0;50954:14:::1;::::0;50993:7;;-1:-1:-1;;;51033:10:0;::::1;;;51026:17:::0;::::1;;51018:51;;;;-1:-1:-1::0;;;51018:51:0::1;;;;;;;:::i;:::-;51085:13;51080:403;51112:3;51104:5;:11;51080:403;;;51150:7;;51158:5;51150:14;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;51141:23;;51179:17;51199:27;51219:6;51199:19;:27::i;:::-;51179:47;;51258:9;51245;:22;51241:165;;-1:-1:-1::0;;;;;51288:15:0;::::1;;::::0;;;:7:::1;:15;::::0;;;;51306::::1;51288:33:::0;;51241:165:::1;;;-1:-1:-1::0;;;;;51362:15:0;::::1;;::::0;;;:7:::1;:15;::::0;;;;:28;;51381:9;;51362:15;:28:::1;::::0;51381:9;;51362:28:::1;:::i;:::-;::::0;;;-1:-1:-1;;51241:165:0::1;-1:-1:-1::0;;;;;51455:15:0;::::1;;::::0;;;:7:::1;:15;::::0;;;;;;;;;51425:46;;9174:51:1;;;9241:18;;;9234:34;51425:46:0::1;::::0;9147:18:1;51425:46:0::1;;;;;;;-1:-1:-1::0;51117:7:0;::::1;::::0;::::1;:::i;:::-;;;;51080:403;;;;50943:547;;50821:669:::0;;;:::o;55333:281::-;-1:-1:-1;;;;;55437:15:0;;55399:7;55437:15;;;:7;:15;;;;;;55476;55506:12;;;55502:105;;;-1:-1:-1;55542:1:0;;55333:281;-1:-1:-1;;;55333:281:0:o;55502:105::-;55583:12;55593:2;55583:7;:12;:::i;:::-;55576:19;55333:281;-1:-1:-1;;;;55333:281:0:o;44107:107::-;8977:13;:11;:13::i;:::-;44187:10:::1;:19:::0;;::::1;::::0;;::::1;-1:-1:-1::0;;;44187:19:0::1;-1:-1:-1::0;;;;44187:19:0;;::::1;::::0;;;::::1;::::0;;44107:107::o;50092:627::-;43589:5;;-1:-1:-1;;;;;43589:5:0;7722:10;43589:21;43581:66;;;;-1:-1:-1;;;43581:66:0;;13793:2:1;43581:66:0;;;13775:21:1;;;13812:18;;;13805:30;13871:34;13851:18;;;13844:62;13923:18;;43581:66:0;13591:356:1;43581:66:0;41073:7:::1;50209:19:::0;::::1;50205:74;;;50252:15;;-1:-1:-1::0;;;50252:15:0::1;;;;;;;;;;;50205:74;50368:10;::::0;50289:14:::1;::::0;50328:7;;-1:-1:-1;;;50368:10:0;::::1;;;50361:17:::0;::::1;;50353:51;;;;-1:-1:-1::0;;;50353:51:0::1;;;;;;;:::i;:::-;50415:13;50431:27;50443:15;50431:9:::0;:27:::1;:::i;:::-;50415:43;;50474:13;50469:208;50501:3;50493:5;:11;50469:208;;;50539:7;;50547:5;50539:14;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;50577:15:0;::::1;;::::0;;;:7:::1;:15;::::0;;;;;50530:23;;-1:-1:-1;50577:20:0;50568:59:::1;;;::::0;-1:-1:-1;;;50568:59:0;;14154:2:1;50568:59:0::1;::::0;::::1;14136:21:1::0;14193:2;14173:18;;;14166:30;14232:26;14212:18;;;14205:54;14276:18;;50568:59:0::1;13952:348:1::0;50568:59:0::1;-1:-1:-1::0;;;;;50642:15:0;::::1;;::::0;;;:7:::1;:15;::::0;;;;:23;;;50506:7;::::1;::::0;::::1;:::i;:::-;;;;50469:208;;;;50692:19;50696:5;50703:7;;50692:19;;;;;;;;:::i;:::-;;;;;;;;50194:525;;;50092:627:::0;;;:::o;9990:201::-;8977:13;:11;:13::i;:::-;-1:-1:-1;;;;;10079:22:0;::::1;10071:73;;;::::0;-1:-1:-1;;;10071:73:0;;15219:2:1;10071:73:0::1;::::0;::::1;15201:21:1::0;15258:2;15238:18;;;15231:30;15297:34;15277:18;;;15270:62;-1:-1:-1;;;15348:18:1;;;15341:36;15394:19;;10071:73:0::1;15017:402:1::0;10071:73:0::1;10155:28;10174:8;10155:18;:28::i;:::-;9990:201:::0;:::o;56900:232::-;-1:-1:-1;;;;;57051:17:0;;56998:7;57051:17;;;:12;:17;;;;;;;;:24;;;;;;;;;41513:3;54558:33;;;56900:232;;;;;;:::o;9256:132::-;9137:7;9164:6;-1:-1:-1;;;;;9164:6:0;7722:10;9320:23;9312:68;;;;-1:-1:-1;;;9312:68:0;;15626:2:1;9312:68:0;;;15608:21:1;;;15645:18;;;15638:30;15704:34;15684:18;;;15677:62;15756:18;;9312:68:0;15424:356:1;9312:68:0;9256:132::o;52377:902::-;52582:4;52659:9;52582:4;52763:5;52659:9;52813;52841:4;52864:6;52889:3;7722:10;52950:4;52728:242;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;52704:277;;;;;;52689:292;;53000:22;53012:4;53018:3;53000:11;:22::i;:::-;52992:52;;;;-1:-1:-1;;;52992:52:0;;17373:2:1;52992:52:0;;;17355:21:1;17412:2;17392:18;;;17385:30;-1:-1:-1;;;17431:18:1;;;17424:47;17488:18;;52992:52:0;17171:341:1;52992:52:0;-1:-1:-1;;;;;53059:14:0;;;53055:114;;53099:10;;53125:15;;53099:22;;53112:9;;-1:-1:-1;;;53099:10:0;;;;:22;:::i;:::-;-1:-1:-1;;;;;53099:41:0;;;53090:67;;;;-1:-1:-1;;;53090:67:0;;17904:2:1;53090:67:0;;;17886:21:1;17943:2;17923:18;;;17916:30;-1:-1:-1;;;17962:18:1;;;17955:41;18013:18;;53090:67:0;17702:335:1;53090:67:0;-1:-1:-1;;;;;53189:14:0;;;;;;:8;:14;;;;;;;;53188:15;53179:38;;;;-1:-1:-1;;;53179:38:0;;18244:2:1;53179:38:0;;;18226:21:1;18283:1;18263:18;;;18256:29;-1:-1:-1;;;18301:18:1;;;18294:38;18349:18;;53179:38:0;18042:331:1;53179:38:0;-1:-1:-1;;;;;;;;53228:14:0;;;;;;:8;:14;;;;;:21;;-1:-1:-1;;53228:21:0;53245:4;53228:21;;;;;;52377:902;;;;;;;;:::o;56431:305::-;56558:13;56584:16;56631:24;56644:3;56649:5;56631:12;:24::i;:::-;56611:44;-1:-1:-1;56611:44:0;-1:-1:-1;;;;;;56674:18:0;;;;;;;56666:62;;;;-1:-1:-1;;;56666:62:0;;18580:2:1;56666:62:0;;;18562:21:1;18619:2;18599:18;;;18592:30;18658:33;18638:18;;;18631:61;18709:18;;56666:62:0;18378:355:1;56666:62:0;56573:163;56431:305;;;;;:::o;39654:293::-;39056:1;39788:7;;:19;39780:63;;;;-1:-1:-1;;;39780:63:0;;18940:2:1;39780:63:0;;;18922:21:1;18979:2;18959:18;;;18952:30;19018:33;18998:18;;;18991:61;19069:18;;39780:63:0;18738:355:1;39780:63:0;39056:1;39921:7;:18;39654:293::o;54710:524::-;-1:-1:-1;;;;;54829:15:0;;;;;;:10;:15;;;;;;;;54824:73;;54868:17;;-1:-1:-1;;;54868:17:0;;;;;;;;;;;54824:73;54916:10;;-1:-1:-1;;;;;54916:10:0;54911:15;;;:33;;-1:-1:-1;54935:9:0;;-1:-1:-1;;;54935:9:0;;-1:-1:-1;;;;;54935:9:0;54930:14;;54911:33;54907:98;;;54968:25;;-1:-1:-1;;;54968:25:0;;;;;;;;;;;54907:98;-1:-1:-1;;;;;56302:15:0;;56278:4;56302:15;;;:7;:15;;;;;;:20;55015:212;;55057:29;55077:8;55057:19;:29::i;:::-;55090:1;55057:34;55053:163;;-1:-1:-1;;;;;55119:17:0;;;;;:7;:17;;;;;55112:24;-1:-1:-1;;47636:1095:0:o;55053:163::-;55184:16;;-1:-1:-1;;;55184:16:0;;;;;;;;;;;44750:269;44839:11;;44825;;44883:129;44915:3;44907:5;:11;44883:129;;;44950:4;44955:5;44950:11;;;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;44976:15:0;;;;;;:10;:15;;;;;;;:24;;-1:-1:-1;;44976:24:0;;;;;;;44950:11;-1:-1:-1;44920:7:0;;;;:::i;:::-;;;;44883:129;;;;44814:205;;44750:269;;:::o;10351:191::-;10425:16;10444:6;;-1:-1:-1;;;;;10461:17:0;;;-1:-1:-1;;;;;;10461:17:0;;;;;;10494:40;;10444:6;;;;;;;10494:40;;10425:16;10494:40;10414:128;10351:191;:::o;53287:206::-;35437:34;53395:4;35424:48;;;35493:4;35486:18;;;35545:4;35529:21;;53437:48;;53475:9;53437:37;:48::i;:::-;53424:9;;-1:-1:-1;;;;;53424:9:0;;;:61;;;;-1:-1:-1;53287:206:0;;;;;:::o;31627:231::-;31705:7;31726:17;31745:18;31767:27;31778:4;31784:9;31767:10;:27::i;:::-;31725:69;;;;31805:18;31817:5;31805:11;:18::i;30078:747::-;30159:7;30168:12;30197:9;:16;30217:2;30197:22;30193:625;;30541:4;30526:20;;30520:27;30591:4;30576:20;;30570:27;30649:4;30634:20;;30628:27;30236:9;30620:36;30692:25;30703:4;30620:36;30520:27;30570;30692:10;:25::i;:::-;30685:32;;;;;;;;;30193:625;-1:-1:-1;30766:1:0;;-1:-1:-1;30770:35:0;30750:56;;28471:521;28549:20;28540:5;:29;;;;;;;;:::i;:::-;;28536:449;;28471:521;:::o;28536:449::-;28647:29;28638:5;:38;;;;;;;;:::i;:::-;;28634:351;;28693:34;;-1:-1:-1;;;28693:34:0;;19432:2:1;28693:34:0;;;19414:21:1;19471:2;19451:18;;;19444:30;19510:26;19490:18;;;19483:54;19554:18;;28693:34:0;19230:348:1;28634:351:0;28758:35;28749:5;:44;;;;;;;;:::i;:::-;;28745:240;;28810:41;;-1:-1:-1;;;28810:41:0;;19785:2:1;28810:41:0;;;19767:21:1;19824:2;19804:18;;;19797:30;19863:33;19843:18;;;19836:61;19914:18;;28810:41:0;19583:355:1;28745:240:0;28882:30;28873:5;:39;;;;;;;;:::i;:::-;;28869:116;;28929:44;;-1:-1:-1;;;28929:44:0;;20145:2:1;28929:44:0;;;20127:21:1;20184:2;20164:18;;;20157:30;20223:34;20203:18;;;20196:62;-1:-1:-1;;;20274:18:1;;;20267:32;20316:19;;28929:44:0;19943:398:1;33011:1477:0;33099:7;;34033:66;34020:79;;34016:163;;;-1:-1:-1;34132:1:0;;-1:-1:-1;34136:30:0;34116:51;;34016:163;34293:24;;;34276:14;34293:24;;;;;;;;;20573:25:1;;;20646:4;20634:17;;20614:18;;;20607:45;;;;20668:18;;;20661:34;;;20711:18;;;20704:34;;;34293:24:0;;20545:19:1;;34293:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;34293:24:0;;-1:-1:-1;;34293:24:0;;;-1:-1:-1;;;;;;;34332:20:0;;34328:103;;34385:1;34389:29;34369:50;;;;;;;34328:103;34451:6;-1:-1:-1;34459:20:0;;-1:-1:-1;33011:1477:0;;;;;;;;:::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;:::-;333:39;192:186;-1:-1:-1;;;192:186:1:o;383:180::-;442:6;495:2;483:9;474:7;470:23;466:32;463:52;;;511:1;508;501:12;463:52;-1:-1:-1;534:23:1;;383:180;-1:-1:-1;383:180:1:o;568:366::-;630:8;640:6;694:3;687:4;679:6;675:17;671:27;661:55;;712:1;709;702:12;661:55;-1:-1:-1;735:20:1;;-1:-1:-1;;;;;767:30:1;;764:50;;;810:1;807;800:12;764:50;847:4;839:6;835:17;823:29;;907:3;900:4;890:6;887:1;883:14;875:6;871:27;867:38;864:47;861:67;;;924:1;921;914:12;939:171;1006:20;;-1:-1:-1;;;;;1055:30:1;;1045:41;;1035:69;;1100:1;1097;1090:12;1115:127;1176:10;1171:3;1167:20;1164:1;1157:31;1207:4;1204:1;1197:15;1231:4;1228:1;1221:15;1247:275;1318:2;1312:9;1383:2;1364:13;;-1:-1:-1;;1360:27:1;1348:40;;-1:-1:-1;;;;;1403:34:1;;1439:22;;;1400:62;1397:88;;;1465:18;;:::i;:::-;1501:2;1494:22;1247:275;;-1:-1:-1;1247:275:1:o;1527:530::-;1569:5;1622:3;1615:4;1607:6;1603:17;1599:27;1589:55;;1640:1;1637;1630:12;1589:55;1676:6;1663:20;-1:-1:-1;;;;;1698:2:1;1695:26;1692:52;;;1724:18;;:::i;:::-;1768:55;1811:2;1792:13;;-1:-1:-1;;1788:27:1;1817:4;1784:38;1768:55;:::i;:::-;1848:2;1839:7;1832:19;1894:3;1887:4;1882:2;1874:6;1870:15;1866:26;1863:35;1860:55;;;1911:1;1908;1901:12;1860:55;1976:2;1969:4;1961:6;1957:17;1950:4;1941:7;1937:18;1924:55;2024:1;1999:16;;;2017:4;1995:27;1988:38;;;;2003:7;1527:530;-1:-1:-1;;;1527:530:1:o;2062:947::-;2198:6;2206;2214;2222;2230;2238;2246;2299:3;2287:9;2278:7;2274:23;2270:33;2267:53;;;2316:1;2313;2306:12;2267:53;2339:29;2358:9;2339:29;:::i;:::-;2329:39;;2419:2;2408:9;2404:18;2391:32;-1:-1:-1;;;;;2483:2:1;2475:6;2472:14;2469:34;;;2499:1;2496;2489:12;2469:34;2538:69;2599:7;2590:6;2579:9;2575:22;2538:69;:::i;:::-;2626:8;;-1:-1:-1;2512:95:1;-1:-1:-1;2512:95:1;;-1:-1:-1;2680:37:1;2713:2;2698:18;;2680:37;:::i;:::-;2670:47;;2736:37;2769:2;2758:9;2754:18;2736:37;:::i;:::-;2726:47;;2792:38;2825:3;2814:9;2810:19;2792:38;:::i;:::-;2782:48;;2883:3;2872:9;2868:19;2855:33;2839:49;;2913:2;2903:8;2900:16;2897:36;;;2929:1;2926;2919:12;2897:36;;2952:51;2995:7;2984:8;2973:9;2969:24;2952:51;:::i;:::-;2942:61;;;2062:947;;;;;;;;;;:::o;3014:578::-;3118:6;3126;3134;3142;3195:2;3183:9;3174:7;3170:23;3166:32;3163:52;;;3211:1;3208;3201:12;3163:52;3234:29;3253:9;3234:29;:::i;:::-;3224:39;;3314:2;3303:9;3299:18;3286:32;-1:-1:-1;;;;;3333:6:1;3330:30;3327:50;;;3373:1;3370;3363:12;3327:50;3412:69;3473:7;3464:6;3453:9;3449:22;3412:69;:::i;:::-;3014:578;;3500:8;;-1:-1:-1;3386:95:1;;3582:2;3567:18;3554:32;;3014:578;-1:-1:-1;;;;3014:578:1:o;3597:537::-;3692:6;3700;3708;3716;3769:3;3757:9;3748:7;3744:23;3740:33;3737:53;;;3786:1;3783;3776:12;3737:53;3809:29;3828:9;3809:29;:::i;:::-;3799:39;;3857:38;3891:2;3880:9;3876:18;3857:38;:::i;:::-;3847:48;;3942:2;3931:9;3927:18;3914:32;3904:42;;3997:2;3986:9;3982:18;3969:32;-1:-1:-1;;;;;4016:6:1;4013:30;4010:50;;;4056:1;4053;4046:12;4010:50;4079:49;4120:7;4111:6;4100:9;4096:22;4079:49;:::i;:::-;4069:59;;;3597:537;;;;;;;:::o;4346:510::-;4441:6;4449;4457;4510:2;4498:9;4489:7;4485:23;4481:32;4478:52;;;4526:1;4523;4516:12;4478:52;4549:29;4568:9;4549:29;:::i;:::-;4539:39;;4629:2;4618:9;4614:18;4601:32;-1:-1:-1;;;;;4648:6:1;4645:30;4642:50;;;4688:1;4685;4678:12;4642:50;4727:69;4788:7;4779:6;4768:9;4764:22;4727:69;:::i;:::-;4346:510;;4815:8;;-1:-1:-1;4701:95:1;;-1:-1:-1;;;;4346:510:1:o;4861:256::-;4927:6;4935;4988:2;4976:9;4967:7;4963:23;4959:32;4956:52;;;5004:1;5001;4994:12;4956:52;5027:28;5045:9;5027:28;:::i;:::-;5017:38;;5074:37;5107:2;5096:9;5092:18;5074:37;:::i;:::-;5064:47;;4861:256;;;;;:::o;5122:254::-;5190:6;5198;5251:2;5239:9;5230:7;5226:23;5222:32;5219:52;;;5267:1;5264;5257:12;5219:52;5290:29;5309:9;5290:29;:::i;:::-;5280:39;5366:2;5351:18;;;;5338:32;;-1:-1:-1;;;5122:254:1:o;5381:328::-;5458:6;5466;5474;5527:2;5515:9;5506:7;5502:23;5498:32;5495:52;;;5543:1;5540;5533:12;5495:52;5566:29;5585:9;5566:29;:::i;:::-;5556:39;;5614:38;5648:2;5637:9;5633:18;5614:38;:::i;:::-;5604:48;;5699:2;5688:9;5684:18;5671:32;5661:42;;5381:328;;;;;:::o;6104:276::-;6162:6;6215:2;6203:9;6194:7;6190:23;6186:32;6183:52;;;6231:1;6228;6221:12;6183:52;6270:9;6257:23;6320:10;6313:5;6309:22;6302:5;6299:33;6289:61;;6346:1;6343;6336:12;6385:160;6450:20;;6506:13;;6499:21;6489:32;;6479:60;;6535:1;6532;6525:12;6550:1022;6640:6;6648;6701:2;6689:9;6680:7;6676:23;6672:32;6669:52;;;6717:1;6714;6707:12;6669:52;6757:9;6744:23;-1:-1:-1;;;;;6827:2:1;6819:6;6816:14;6813:34;;;6843:1;6840;6833:12;6813:34;6881:6;6870:9;6866:22;6856:32;;6926:7;6919:4;6915:2;6911:13;6907:27;6897:55;;6948:1;6945;6938:12;6897:55;6984:2;6971:16;7006:4;7029:2;7025;7022:10;7019:36;;;7035:18;;:::i;:::-;7081:2;7078:1;7074:10;7064:20;;7104:28;7128:2;7124;7120:11;7104:28;:::i;:::-;7166:15;;;7236:11;;;7232:20;;;7197:12;;;;7264:19;;;7261:39;;;7296:1;7293;7286:12;7261:39;7320:11;;;;7340:148;7356:6;7351:3;7348:15;7340:148;;;7422:23;7441:3;7422:23;:::i;:::-;7410:36;;7373:12;;;;7466;;;;7340:148;;;7507:5;-1:-1:-1;7531:35:1;;-1:-1:-1;7547:18:1;;;7531:35;:::i;:::-;7521:45;;;;;;6550:1022;;;;;:::o;7577:582::-;7680:6;7688;7696;7704;7757:2;7745:9;7736:7;7732:23;7728:32;7725:52;;;7773:1;7770;7763:12;7725:52;7796:29;7815:9;7796:29;:::i;:::-;7786:39;;7876:2;7865:9;7861:18;7848:32;-1:-1:-1;;;;;7895:6:1;7892:30;7889:50;;;7935:1;7932;7925:12;7889:50;7974:69;8035:7;8026:6;8015:9;8011:22;7974:69;:::i;:::-;8062:8;;-1:-1:-1;7948:95:1;-1:-1:-1;8116:37:1;;-1:-1:-1;8149:2:1;8134:18;;8116:37;:::i;:::-;8106:47;;7577:582;;;;;;;:::o;8164:322::-;8241:6;8249;8257;8310:2;8298:9;8289:7;8285:23;8281:32;8278:52;;;8326:1;8323;8316:12;8278:52;8349:29;8368:9;8349:29;:::i;:::-;8339:39;8425:2;8410:18;;8397:32;;-1:-1:-1;8476:2:1;8461:18;;;8448:32;;8164:322;-1:-1:-1;;;8164:322:1:o;8491:504::-;8586:6;8594;8602;8655:2;8643:9;8634:7;8630:23;8626:32;8623:52;;;8671:1;8668;8661:12;8623:52;8711:9;8698:23;-1:-1:-1;;;;;8736:6:1;8733:30;8730:50;;;8776:1;8773;8766:12;8730:50;8815:69;8876:7;8867:6;8856:9;8852:22;8815:69;:::i;:::-;8903:8;;8789:95;;-1:-1:-1;8985:2:1;8970:18;;;;8957:32;;8491:504;-1:-1:-1;;;;8491:504:1:o;9623:127::-;9684:10;9679:3;9675:20;9672:1;9665:31;9715:4;9712:1;9705:15;9739:4;9736:1;9729:15;9755:125;9820:9;;;9841:10;;;9838:36;;;9854:18;;:::i;9885:127::-;9946:10;9941:3;9937:20;9934:1;9927:31;9977:4;9974:1;9967:15;10001:4;9998:1;9991:15;10215:135;10254:3;10275:17;;;10272:43;;10295:18;;:::i;:::-;-1:-1:-1;10342:1:1;10331:13;;10215:135::o;10560:345::-;10762:2;10744:21;;;10801:2;10781:18;;;10774:30;-1:-1:-1;;;10835:2:1;10820:18;;10813:51;10896:2;10881:18;;10560:345::o;11290:311::-;11378:19;;;11360:3;-1:-1:-1;;;;;11409:31:1;;11406:51;;;11453:1;11450;11443:12;11406:51;11489:6;11486:1;11482:14;11541:8;11534:5;11527:4;11522:3;11518:14;11505:45;11570:18;;;;11590:4;11566:29;;11290:311;-1:-1:-1;;;11290:311:1:o;11606:559::-;-1:-1:-1;;;;;11917:15:1;;;11899:34;;11969:15;;11964:2;11949:18;;11942:43;12016:2;12001:18;;11994:34;;;12064:3;12059:2;12044:18;;12037:31;;;11842:4;;12085:74;;12139:19;;12131:6;12123;12085:74;:::i;12170:486::-;-1:-1:-1;;;;;12453:15:1;;;12435:34;;12505:15;;12500:2;12485:18;;12478:43;12557:2;12552;12537:18;;12530:30;;;12378:4;;12577:73;;12631:18;;12623:6;12615;12577:73;:::i;:::-;12569:81;12170:486;-1:-1:-1;;;;;;12170:486:1:o;13006:128::-;13073:9;;;13094:11;;;13091:37;;;13108:18;;:::i;14305:707::-;14545:25;;;14533:2;14589;14607:18;;;14600:30;;;14518:18;;;14665:22;;;14485:4;;14744:6;;14718:2;14703:18;;14485:4;14778:208;14792:6;14789:1;14786:13;14778:208;;;-1:-1:-1;;;;;14857:26:1;14876:6;14857:26;:::i;:::-;14853:52;14841:65;;14961:15;;;;14926:12;;;;14814:1;14807:9;14778:208;;;-1:-1:-1;15003:3:1;14305:707;-1:-1:-1;;;;;;;14305:707:1:o;16042:1124::-;16446:13;;16389:3;;16420;;16499:4;16526:15;;;16389:3;16569:192;16583:6;16580:1;16577:13;16569:192;;;16650:13;;16665:10;16646:30;16632:45;;16699:14;;;;16736:15;;;;16605:1;16598:9;16569:192;;;-1:-1:-1;;;;16810:3:1;16788:16;;;-1:-1:-1;;;;;;16784:43:1;16770:58;;16837:40;16874:1;16863:13;;16855:6;15875:3;15854:15;-1:-1:-1;;;;;;15850:50:1;15838:63;;15785:122;16837:40;16886:41;16923:2;16916:5;16912:14;16904:6;15875:3;15854:15;-1:-1:-1;;;;;;15850:50:1;15838:63;;15785:122;16886:41;16936;16973:2;16966:5;16962:14;16954:6;15875:3;15854:15;-1:-1:-1;;;;;;15850:50:1;15838:63;;15785:122;16936:41;16986:42;17024:2;17017:5;17013:14;17005:6;15986:2;15982:14;-1:-1:-1;;;;;;15978:52:1;15966:65;;15912:125;16986:42;17037;17075:2;17068:5;17064:14;17056:6;15986:2;15982:14;-1:-1:-1;;;;;;15978:52:1;15966:65;;15912:125;17037:42;17088;17126:2;17119:5;17115:14;17107:6;15986:2;15982:14;-1:-1:-1;;;;;;15978:52:1;15966:65;;15912:125;17088:42;17157:2;17146:14;;16042:1124;-1:-1:-1;;;;;;;;;;16042:1124:1:o;17517:180::-;-1:-1:-1;;;;;17622:10:1;;;17634;;;17618:27;;17657:11;;;17654:37;;;17671:18;;:::i;:::-;17654:37;17517:180;;;;:::o;19098:127::-;19159:10;19154:3;19150:20;19147:1;19140:31;19190:4;19187:1;19180:15;19214:4;19211:1;19204:15

Swarm Source

ipfs://3ff5fa58754065c5f3988d3c06396e25fe49cf250b19aa0267e4107b3b476412

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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