ETH Price: $2,418.24 (-1.22%)

Token

Solarbots Christmas 2022 (SBXMAS2022)
 

Overview

Max Total Supply

172 SBXMAS2022

Holders

165

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
tashtosh.eth
Balance
1 SBXMAS2022
0xc7f17ec88e1cb1945a546723ecaf91c1aaa22096
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Christmas2022

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 10 : Christmas2022.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import "openzeppelin/access/Ownable2Step.sol";
import "openzeppelin/token/ERC721/IERC721.sol";
import "openzeppelin/utils/Strings.sol";
import "solmate/tokens/ERC721.sol";

import "./ILockManager.sol";

/// @title Solarbots Christmas 2022
/// @author Solarbots (https://solarbots.io)
contract Christmas2022 is Ownable2Step, ERC721 {
    // ---------- CONSTANTS ----------

    string public constant ERROR_NO_METADATA = "NO_METADATA";
    string public constant ERROR_MINT_NOT_STARTED = "MINT_NOT_STARTED";
    string public constant ERROR_MINT_ENDED = "MINT_ENDED";
    string public constant ERROR_MINT_REQUIRES_4_MK1 = "MINT_REQUIRES_4_MK1";
    string public constant ERROR_ALREADY_MINTED = "ALREADY_MINTED";
    string public constant ERROR_BURN_BEFORE_MINT_ENDED = "BURN_BEFORE_MINT_ENDED";
    string public constant ERROR_NOT_TOKEN_OWNER = "NOT_TOKEN_OWNER";
    string public constant ERROR_UNSAFE_RECIPIENT = "UNSAFE_RECIPIENT";
    string public constant ERROR_TOKEN_LOCKED = "TOKEN_LOCKED";

    /// @notice Mk.1 Solarbots contract
    IERC721 public immutable MK1_SOLARBOTS;

    /// @notice Unix timestamp of mint start
    uint256 public immutable TIMESTAMP_MINT_START;

    /// @notice Unix timestamp of mint end
    uint256 public immutable TIMESTAMP_MINT_END;

    // ---------- STATE ----------

    /// @notice Total token supply
    uint256 public totalSupply;

    /// @notice Token URI base
    /// @custom:security write-protection="onlyOwner()"
    string public tokenURIBase;

    /// @notice Token URI suffix
    /// @custom:security write-protection="onlyOwner()"
    string public tokenURISuffix;

    /// @notice Lock manager contract
    /// @custom:security non-reentrant
    /// @custom:security write-protection="onlyOwner()"
    ILockManager public lockManager;

    // ---------- EVENTS ----------

    /// @notice Emitted when lock manager changes
    /// @param previousLockManager Previous lock manager address
    /// @param newLockManager New lock manager address
    event LockManagerTransfer(address indexed previousLockManager, address indexed newLockManager);

    // ---------- CONSTRUCTOR ----------

    /// @param owner Contract owner
    /// @param mk1Solarbots Address of Mk.1 Solarbots contract
    /// @param timestampMintStart Unix timestamp of mint start
    /// @param timestampMintEnd Unix timestamp of mint end
    /// @param _lockManager Address of lock manager contract
    constructor(
        address owner,
        address mk1Solarbots,
        uint256 timestampMintStart,
        uint256 timestampMintEnd,
        address _lockManager
    ) ERC721("Solarbots Christmas 2022", "SBXMAS2022") {
        _transferOwnership(owner);
        MK1_SOLARBOTS = IERC721(mk1Solarbots);
        TIMESTAMP_MINT_START = timestampMintStart;
        TIMESTAMP_MINT_END = timestampMintEnd;
        lockManager = ILockManager(_lockManager);
    }

    // ---------- METADATA ----------

    /// @notice Token URI
    function tokenURI(uint256 id) public view override returns (string memory) {
        require(bytes(tokenURIBase).length > 0, ERROR_NO_METADATA);
        return string(abi.encodePacked(tokenURIBase, Strings.toString(id), tokenURISuffix));
    }

    /// @notice Set token URI base
    /// @param _tokenURIBase New token URI base
    function setTokenURIBase(string calldata _tokenURIBase) external onlyOwner {
        tokenURIBase = _tokenURIBase;
    }

    /// @notice Set token URI suffix
    /// @param _tokenURISuffix New token URI suffix
    function setTokenURISuffix(string calldata _tokenURISuffix) external onlyOwner {
        tokenURISuffix = _tokenURISuffix;
    }

    // ---------- LOCK MANAGER ----------

    /// @notice Set lock manager
    /// @param _lockManager New lock manager address
    /// @dev Emits LockManagerTransfer event
    function setLockManager(address _lockManager) external onlyOwner {
        emit LockManagerTransfer(address(lockManager), _lockManager);
        lockManager = ILockManager(_lockManager);
    }

    // ---------- TRANSFER ----------

    /// @notice Transfer token from current owner to recipient
    /// @param from Token owner address
    /// @param to Token recipient address
    /// @param id Token ID
    /// @dev Emits Transfer event
    function transferFrom(address from, address to, uint256 id) public override {
        require(!lockManager.isLocked(address(this), msg.sender, from, to, id), ERROR_TOKEN_LOCKED);

        super.transferFrom(from, to, id);
    }

    // ---------- MINT ----------

    /// @notice Mint one token to message sender
    function mint() external {
        require(block.timestamp >= TIMESTAMP_MINT_START, ERROR_MINT_NOT_STARTED);
        require(block.timestamp < TIMESTAMP_MINT_END, ERROR_MINT_ENDED);

        // Minting is only enabled for owners of 4 Mk.1 Solarbots (1 full team) or more
        require(MK1_SOLARBOTS.balanceOf(msg.sender) > 3, ERROR_MINT_REQUIRES_4_MK1);

        // Only accounts that don't already own a token can mint
        require(balanceOf(msg.sender) == 0, ERROR_ALREADY_MINTED);

        uint256 id = totalSupply;

        // The internal `_safeMint` function contains unnecessary checks,
        // so we use a slightly modified inline version here.

        // Counter overflow is incredibly unrealistic
        unchecked {
            _balanceOf[msg.sender]++;
            totalSupply++;
        }

        _ownerOf[id] = msg.sender;

        emit Transfer(address(0), msg.sender, id);

        if (msg.sender.code.length != 0) {
            require(
                ERC721TokenReceiver(msg.sender).onERC721Received(msg.sender, address(0), id, "")
                    == ERC721TokenReceiver.onERC721Received.selector,
                ERROR_UNSAFE_RECIPIENT
            );
        }
    }

    // ---------- BURN ----------

    /// @notice Burn token
    /// @param id Token ID
    function burn(uint256 id) external {
        // Only allow burning after minting has ended in order to prevent messing with the token ID sequence.
        // The token ID used in the mint function is based on the current total supply, but the burn function
        // needs to decrement the total supply. Allowing burning before minting has ended would require more code
        // to keep track of the next token ID, because it would no longer be equal to the current total supply.
        // This is not worth the effort, because burning will be rare, especially before minting has ended.
        require(block.timestamp >= TIMESTAMP_MINT_END, ERROR_BURN_BEFORE_MINT_ENDED);

        require(!lockManager.isLocked(address(this), msg.sender, msg.sender, address(0), id), ERROR_TOKEN_LOCKED);

        // The internal `_burn` function does not include the `owner == msg.sender` check,
        // so we use a slightly modified inline version here.

        address owner = _ownerOf[id];
        require(owner == msg.sender, ERROR_NOT_TOKEN_OWNER);

        // Ownership check above ensures no underflow
        unchecked {
            _balanceOf[owner]--;
            totalSupply--;
        }

        delete _ownerOf[id];
        delete getApproved[id];

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

File 2 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev 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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

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

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

File 3 of 10 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.0;

import "./Ownable.sol";

/**
 * @dev Contract module which provides 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} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

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

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() external {
        address sender = _msgSender();
        require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
        _transferOwnership(sender);
    }
}

File 4 of 10 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * 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 5 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 6 of 10 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

pragma solidity ^0.8.0;

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

File 8 of 10 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 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 10, 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 * 8) < value ? 1 : 0);
        }
    }
}

File 9 of 10 : ERC721.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*//////////////////////////////////////////////////////////////
                         METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                      ERC721 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                         ERC721 APPROVAL STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = _ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == _ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _balanceOf[from]--;

            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        if (to.code.length != 0)
            require(
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                    ERC721TokenReceiver.onERC721Received.selector,
                "UNSAFE_RECIPIENT"
            );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        if (to.code.length != 0)
            require(
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                    ERC721TokenReceiver.onERC721Received.selector,
                "UNSAFE_RECIPIENT"
            );
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(_ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

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

    function _burn(uint256 id) internal virtual {
        address owner = _ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            _balanceOf[owner]--;
        }

        delete _ownerOf[id];

        delete getApproved[id];

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

    /*//////////////////////////////////////////////////////////////
                        INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        if (to.code.length != 0)
            require(
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                    ERC721TokenReceiver.onERC721Received.selector,
                "UNSAFE_RECIPIENT"
            );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        if (to.code.length != 0)
            require(
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                    ERC721TokenReceiver.onERC721Received.selector,
                "UNSAFE_RECIPIENT"
            );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

File 10 of 10 : ILockManager.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

/// @title Solarbots Lock Manager Interface
/// @author Solarbots (https://solarbots.io)
interface ILockManager {
    function isLocked(address collection, address operator, address from, address to, uint256 id)
        external
        returns (bool);
    function isLocked(address collection, address operator, address from, address to, uint256[] calldata ids)
        external
        returns (bool);
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin/=lib/openzeppelin-contracts/contracts/",
    "solmate/=lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"mk1Solarbots","type":"address"},{"internalType":"uint256","name":"timestampMintStart","type":"uint256"},{"internalType":"uint256","name":"timestampMintEnd","type":"uint256"},{"internalType":"address","name":"_lockManager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousLockManager","type":"address"},{"indexed":true,"internalType":"address","name":"newLockManager","type":"address"}],"name":"LockManagerTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ERROR_ALREADY_MINTED","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERROR_BURN_BEFORE_MINT_ENDED","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERROR_MINT_ENDED","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERROR_MINT_NOT_STARTED","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERROR_MINT_REQUIRES_4_MK1","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERROR_NOT_TOKEN_OWNER","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERROR_NO_METADATA","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERROR_TOKEN_LOCKED","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERROR_UNSAFE_RECIPIENT","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MK1_SOLARBOTS","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TIMESTAMP_MINT_END","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TIMESTAMP_MINT_START","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockManager","outputs":[{"internalType":"contract ILockManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lockManager","type":"address"}],"name":"setLockManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURIBase","type":"string"}],"name":"setTokenURIBase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURISuffix","type":"string"}],"name":"setTokenURISuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURIBase","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURISuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b50604051620028a9380380620028a98339810160408190526200003491620001a6565b6040518060400160405280601881526020017f536f6c6172626f7473204368726973746d6173203230323200000000000000008152506040518060400160405280600a81526020016929a12c26a0a99918191960b11b815250620000a7620000a16200010b60201b60201c565b6200010f565b6002620000b58382620002a9565b506003620000c48282620002a9565b505050620000d8856200010f60201b60201c565b6001600160a01b0393841660805260a09290925260c052600b80546001600160a01b031916919092161790555062000375565b3390565b600180546001600160a01b0319169055620001368162000139602090811b6200191517901c565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620001a157600080fd5b919050565b600080600080600060a08688031215620001bf57600080fd5b620001ca8662000189565b9450620001da6020870162000189565b93506040860151925060608601519150620001f86080870162000189565b90509295509295909350565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200022f57607f821691505b6020821081036200025057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002a457600081815260208120601f850160051c810160208610156200027f5750805b601f850160051c820191505b81811015620002a0578281556001016200028b565b5050505b505050565b81516001600160401b03811115620002c557620002c562000204565b620002dd81620002d684546200021a565b8462000256565b602080601f831160018114620003155760008415620002fc5750858301515b600019600386901b1c1916600185901b178555620002a0565b600085815260208120601f198616915b82811015620003465788860151825594840194600190910190840162000325565b5085821015620003655787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c0516124e8620003c16000396000818161039901528181610af901526110da01526000818161034f0152610a830152600081816106380152610b6901526124e86000f3fe608060405234801561001057600080fd5b50600436106102ad5760003560e01c8063799956711161017b578063b86f6cdc116100d8578063dbbc853b1161008c578063e30c397811610071578063e30c397814610746578063e985e9c514610764578063f2fde38b1461079257600080fd5b8063dbbc853b1461072b578063deedfdbd1461073357600080fd5b8063c87b56dd116100bd578063c87b56dd146106c9578063d39fbaa4146106dc578063da2bbfc71461071857600080fd5b8063b86f6cdc1461067a578063b88d4fde146106b657600080fd5b806395d89b411161012f578063a9852bfb11610114578063a9852bfb14610620578063a994a34e14610633578063acca30a21461065a57600080fd5b806395d89b4114610605578063a22cb4651461060d57600080fd5b80637e173df0116101605780637e173df01461056f578063873b4aa9146105ab5780638da5cb5b146105e757600080fd5b8063799956711461052b57806379ba50971461056757600080fd5b806322c19163116102295780636352211e116101dd578063715018a6116101c2578063715018a6146104ab578063776c052b146104b3578063797cb484146104ef57600080fd5b80636352211e1461048557806370a082311461049857600080fd5b8063261220a31161020e578063261220a31461045757806342842e0e1461045f57806342966c681461047257600080fd5b806322c191631461040857806323b872dd1461044457600080fd5b8063095ea7b3116102805780631249c58b116102655780631249c58b146103bb57806315368410146103c357806318160ddd146103ff57600080fd5b8063095ea7b31461037f5780630c930f321461039457600080fd5b806301ffc9a7146102b257806306fdde03146102da578063081812fc146102ef5780630933732b1461034a575b600080fd5b6102c56102c0366004611e69565b6107a5565b60405190151581526020015b60405180910390f35b6102e261088a565b6040516102d19190611eb1565b6103256102fd366004611f02565b60066020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102d1565b6103717f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016102d1565b61039261038d366004611f3f565b610918565b005b6103717f000000000000000000000000000000000000000000000000000000000000000081565b610392610a4d565b6102e26040518060400160405280601081526020017f4d494e545f4e4f545f535441525445440000000000000000000000000000000081525081565b61037160085481565b6102e26040518060400160405280601681526020017f4255524e5f4245464f52455f4d494e545f454e4445440000000000000000000081525081565b610392610452366004611f69565b610e38565b6102e2610f4f565b61039261046d366004611f69565b610f5c565b610392610480366004611f02565b6110a4565b610325610493366004611f02565b611368565b6103716104a6366004611fa5565b6113df565b61039261146d565b6102e26040518060400160405280601381526020017f4d494e545f52455155495245535f345f4d4b310000000000000000000000000081525081565b6102e26040518060400160405280600e81526020017f414c52454144595f4d494e54454400000000000000000000000000000000000081525081565b6102e26040518060400160405280601081526020017f554e534146455f524543495049454e540000000000000000000000000000000081525081565b610392611481565b6102e26040518060400160405280600a81526020017f4d494e545f454e4445440000000000000000000000000000000000000000000081525081565b6102e26040518060400160405280600b81526020017f4e4f5f4d4554414441544100000000000000000000000000000000000000000081525081565b60005473ffffffffffffffffffffffffffffffffffffffff16610325565b6102e2611519565b61039261061b366004611fce565b611526565b61039261062e36600461204e565b6115bd565b6103257f000000000000000000000000000000000000000000000000000000000000000081565b600b546103259073ffffffffffffffffffffffffffffffffffffffff1681565b6102e26040518060400160405280600f81526020017f4e4f545f544f4b454e5f4f574e4552000000000000000000000000000000000081525081565b6103926106c4366004612090565b6115d2565b6102e26106d7366004611f02565b61170f565b6102e26040518060400160405280600c81526020017f544f4b454e5f4c4f434b4544000000000000000000000000000000000000000081525081565b61039261072636600461204e565b6117ad565b6102e26117c2565b610392610741366004611fa5565b6117cf565b60015473ffffffffffffffffffffffffffffffffffffffff16610325565b6102c56107723660046120ff565b600760209081526000928352604080842090915290825290205460ff1681565b6103926107a0366004611fa5565b611865565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061083857507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b8061088457507f5b5e139f000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6002805461089790612132565b80601f01602080910402602001604051908101604052809291908181526020018280546108c390612132565b80156109105780601f106108e557610100808354040283529160200191610910565b820191906000526020600020905b8154815290600101906020018083116108f357829003601f168201915b505050505081565b60008181526004602052604090205473ffffffffffffffffffffffffffffffffffffffff163381148061097b575073ffffffffffffffffffffffffffffffffffffffff8116600090815260076020908152604080832033845290915290205460ff165b6109cc5760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a454400000000000000000000000000000000000060448201526064015b60405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60408051808201909152601081527f4d494e545f4e4f545f535441525445440000000000000000000000000000000060208201527f0000000000000000000000000000000000000000000000000000000000000000421015610ac25760405162461bcd60e51b81526004016109c39190611eb1565b5060408051808201909152600a81527f4d494e545f454e4445440000000000000000000000000000000000000000000060208201527f00000000000000000000000000000000000000000000000000000000000000004210610b375760405162461bcd60e51b81526004016109c39190611eb1565b506040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526003907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610bc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be99190612185565b116040518060400160405280601381526020017f4d494e545f52455155495245535f345f4d4b310000000000000000000000000081525090610c3e5760405162461bcd60e51b81526004016109c39190611eb1565b50610c48336113df565b60408051808201909152600e81527f414c52454144595f4d494e54454400000000000000000000000000000000000060208201529015610c9b5760405162461bcd60e51b81526004016109c39190611eb1565b5060088054336000818152600560209081526040808320805460019081019091558654019095558382526004905283812080547fffffffffffffffffffffffff000000000000000000000000000000000000000016831790559251919283927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4333b15610e35576040517f150b7a0200000000000000000000000000000000000000000000000000000000808252336004830181905260006024840181905260448401859052608060648501526084840152909163150b7a029060a4016020604051808303816000875af1158015610d9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbf919061219e565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146040518060400160405280601081526020017f554e534146455f524543495049454e540000000000000000000000000000000081525090610e335760405162461bcd60e51b81526004016109c39190611eb1565b505b50565b600b546040517fcbc3fb5600000000000000000000000000000000000000000000000000000000815230600482015233602482015273ffffffffffffffffffffffffffffffffffffffff85811660448301528481166064830152608482018490529091169063cbc3fb569060a4016020604051808303816000875af1158015610ec5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee991906121bb565b156040518060400160405280600c81526020017f544f4b454e5f4c4f434b4544000000000000000000000000000000000000000081525090610f3e5760405162461bcd60e51b81526004016109c39190611eb1565b50610f4a83838361198a565b505050565b6009805461089790612132565b610f67838383610e38565b73ffffffffffffffffffffffffffffffffffffffff82163b15610f4a576040517f150b7a020000000000000000000000000000000000000000000000000000000080825233600483015273ffffffffffffffffffffffffffffffffffffffff858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015611011573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611035919061219e565b7fffffffff000000000000000000000000000000000000000000000000000000001614610f4a5760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e540000000000000000000000000000000060448201526064016109c3565b60408051808201909152601681527f4255524e5f4245464f52455f4d494e545f454e4445440000000000000000000060208201527f00000000000000000000000000000000000000000000000000000000000000004210156111195760405162461bcd60e51b81526004016109c39190611eb1565b50600b546040517fcbc3fb5600000000000000000000000000000000000000000000000000000000815230600482015233602482018190526044820152600060648201526084810183905273ffffffffffffffffffffffffffffffffffffffff9091169063cbc3fb569060a4016020604051808303816000875af11580156111a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c991906121bb565b156040518060400160405280600c81526020017f544f4b454e5f4c4f434b454400000000000000000000000000000000000000008152509061121e5760405162461bcd60e51b81526004016109c39190611eb1565b50600081815260046020908152604091829020548251808401909352600f83527f4e4f545f544f4b454e5f4f574e455200000000000000000000000000000000009183019190915273ffffffffffffffffffffffffffffffffffffffff169033821461129d5760405162461bcd60e51b81526004016109c39190611eb1565b5073ffffffffffffffffffffffffffffffffffffffff8116600081815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9081019091556008805490910190558583526004825280832080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915560069092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008181526004602052604090205473ffffffffffffffffffffffffffffffffffffffff16806113da5760405162461bcd60e51b815260206004820152600a60248201527f4e4f545f4d494e5445440000000000000000000000000000000000000000000060448201526064016109c3565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82166114445760405162461bcd60e51b815260206004820152600c60248201527f5a45524f5f41444452455353000000000000000000000000000000000000000060448201526064016109c3565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205490565b611475611c03565b61147f6000611c6a565b565b600154339073ffffffffffffffffffffffffffffffffffffffff1681146115105760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084016109c3565b610e3581611c6a565b6003805461089790612132565b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115c5611c03565b600a610f4a828483612255565b6115dd858585610e38565b73ffffffffffffffffffffffffffffffffffffffff84163b15611708576040517f150b7a02000000000000000000000000000000000000000000000000000000008082529073ffffffffffffffffffffffffffffffffffffffff86169063150b7a02906116569033908a9089908990899060040161236f565b6020604051808303816000875af1158015611675573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611699919061219e565b7fffffffff0000000000000000000000000000000000000000000000000000000016146117085760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e540000000000000000000000000000000060448201526064016109c3565b5050505050565b606060006009805461172090612132565b9050116040518060400160405280600b81526020017f4e4f5f4d45544144415441000000000000000000000000000000000000000000815250906117775760405162461bcd60e51b81526004016109c39190611eb1565b50600961178383611c9b565b600a6040516020016117979392919061247f565b6040516020818303038152906040529050919050565b6117b5611c03565b6009610f4a828483612255565b600a805461089790612132565b6117d7611c03565b600b5460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f606d63a4236a3485ccb92cec46cd7387dac870c31434cd4f8ab856020c78598c90600090a3600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61186d611c03565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091556118d060005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008181526004602052604090205473ffffffffffffffffffffffffffffffffffffffff848116911614611a005760405162461bcd60e51b815260206004820152600a60248201527f57524f4e475f46524f4d0000000000000000000000000000000000000000000060448201526064016109c3565b73ffffffffffffffffffffffffffffffffffffffff8216611a635760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f524543495049454e5400000000000000000000000000000060448201526064016109c3565b3373ffffffffffffffffffffffffffffffffffffffff84161480611ab7575073ffffffffffffffffffffffffffffffffffffffff8316600090815260076020908152604080832033845290915290205460ff165b80611ae5575060008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1633145b611b315760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a454400000000000000000000000000000000000060448201526064016109c3565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019055938616808352848320805460010190558583526004825284832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081168317909155600690925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461147f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109c3565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610e3581611915565b60606000611ca883611d59565b600101905060008167ffffffffffffffff811115611cc857611cc86121d8565b6040519080825280601f01601f191660200182016040528015611cf2576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084611cfc57509392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611da2577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611dce576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611dec57662386f26fc10000830492506010015b6305f5e1008310611e04576305f5e100830492506008015b6127108310611e1857612710830492506004015b60648310611e2a576064830492506002015b600a83106108845760010192915050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610e3557600080fd5b600060208284031215611e7b57600080fd5b8135611e8681611e3b565b9392505050565b60005b83811015611ea8578181015183820152602001611e90565b50506000910152565b6020815260008251806020840152611ed0816040850160208701611e8d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b600060208284031215611f1457600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146113da57600080fd5b60008060408385031215611f5257600080fd5b611f5b83611f1b565b946020939093013593505050565b600080600060608486031215611f7e57600080fd5b611f8784611f1b565b9250611f9560208501611f1b565b9150604084013590509250925092565b600060208284031215611fb757600080fd5b611e8682611f1b565b8015158114610e3557600080fd5b60008060408385031215611fe157600080fd5b611fea83611f1b565b91506020830135611ffa81611fc0565b809150509250929050565b60008083601f84011261201757600080fd5b50813567ffffffffffffffff81111561202f57600080fd5b60208301915083602082850101111561204757600080fd5b9250929050565b6000806020838503121561206157600080fd5b823567ffffffffffffffff81111561207857600080fd5b61208485828601612005565b90969095509350505050565b6000806000806000608086880312156120a857600080fd5b6120b186611f1b565b94506120bf60208701611f1b565b935060408601359250606086013567ffffffffffffffff8111156120e257600080fd5b6120ee88828901612005565b969995985093965092949392505050565b6000806040838503121561211257600080fd5b61211b83611f1b565b915061212960208401611f1b565b90509250929050565b600181811c9082168061214657607f821691505b60208210810361217f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60006020828403121561219757600080fd5b5051919050565b6000602082840312156121b057600080fd5b8151611e8681611e3b565b6000602082840312156121cd57600080fd5b8151611e8681611fc0565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f821115610f4a57600081815260208120601f850160051c8101602086101561222e5750805b601f850160051c820191505b8181101561224d5782815560010161223a565b505050505050565b67ffffffffffffffff83111561226d5761226d6121d8565b6122818361227b8354612132565b83612207565b6000601f8411600181146122d3576000851561229d5750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b178355611708565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b828110156123225786850135825560209485019460019092019101612302565b508682101561235d577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011683010190509695505050505050565b600081546123fb81612132565b60018281168015612413576001811461244657612475565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0084168752821515830287019450612475565b8560005260208060002060005b8581101561246c5781548a820152908401908201612453565b50505082870194505b5050505092915050565b600061248b82866123ee565b845161249b818360208901611e8d565b6124a7818301866123ee565b97965050505050505056fea2646970667358221220e9f3002f37c512bb061fd64abb56c7942fbf1f637236bd6d228470b8bbf7fd8664736f6c634300081100330000000000000000000000005a5fe90cd115d691ee99d90d3607f7005ea817e50000000000000000000000008009250878ed378050ef5d2a48c70e24eb2ede7e000000000000000000000000000000000000000000000000000000006387ee800000000000000000000000000000000000000000000000000000000063aa3580000000000000000000000000616e6b2ba922968af8d46df9400fc3da17589c5f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102ad5760003560e01c8063799956711161017b578063b86f6cdc116100d8578063dbbc853b1161008c578063e30c397811610071578063e30c397814610746578063e985e9c514610764578063f2fde38b1461079257600080fd5b8063dbbc853b1461072b578063deedfdbd1461073357600080fd5b8063c87b56dd116100bd578063c87b56dd146106c9578063d39fbaa4146106dc578063da2bbfc71461071857600080fd5b8063b86f6cdc1461067a578063b88d4fde146106b657600080fd5b806395d89b411161012f578063a9852bfb11610114578063a9852bfb14610620578063a994a34e14610633578063acca30a21461065a57600080fd5b806395d89b4114610605578063a22cb4651461060d57600080fd5b80637e173df0116101605780637e173df01461056f578063873b4aa9146105ab5780638da5cb5b146105e757600080fd5b8063799956711461052b57806379ba50971461056757600080fd5b806322c19163116102295780636352211e116101dd578063715018a6116101c2578063715018a6146104ab578063776c052b146104b3578063797cb484146104ef57600080fd5b80636352211e1461048557806370a082311461049857600080fd5b8063261220a31161020e578063261220a31461045757806342842e0e1461045f57806342966c681461047257600080fd5b806322c191631461040857806323b872dd1461044457600080fd5b8063095ea7b3116102805780631249c58b116102655780631249c58b146103bb57806315368410146103c357806318160ddd146103ff57600080fd5b8063095ea7b31461037f5780630c930f321461039457600080fd5b806301ffc9a7146102b257806306fdde03146102da578063081812fc146102ef5780630933732b1461034a575b600080fd5b6102c56102c0366004611e69565b6107a5565b60405190151581526020015b60405180910390f35b6102e261088a565b6040516102d19190611eb1565b6103256102fd366004611f02565b60066020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102d1565b6103717f000000000000000000000000000000000000000000000000000000006387ee8081565b6040519081526020016102d1565b61039261038d366004611f3f565b610918565b005b6103717f0000000000000000000000000000000000000000000000000000000063aa358081565b610392610a4d565b6102e26040518060400160405280601081526020017f4d494e545f4e4f545f535441525445440000000000000000000000000000000081525081565b61037160085481565b6102e26040518060400160405280601681526020017f4255524e5f4245464f52455f4d494e545f454e4445440000000000000000000081525081565b610392610452366004611f69565b610e38565b6102e2610f4f565b61039261046d366004611f69565b610f5c565b610392610480366004611f02565b6110a4565b610325610493366004611f02565b611368565b6103716104a6366004611fa5565b6113df565b61039261146d565b6102e26040518060400160405280601381526020017f4d494e545f52455155495245535f345f4d4b310000000000000000000000000081525081565b6102e26040518060400160405280600e81526020017f414c52454144595f4d494e54454400000000000000000000000000000000000081525081565b6102e26040518060400160405280601081526020017f554e534146455f524543495049454e540000000000000000000000000000000081525081565b610392611481565b6102e26040518060400160405280600a81526020017f4d494e545f454e4445440000000000000000000000000000000000000000000081525081565b6102e26040518060400160405280600b81526020017f4e4f5f4d4554414441544100000000000000000000000000000000000000000081525081565b60005473ffffffffffffffffffffffffffffffffffffffff16610325565b6102e2611519565b61039261061b366004611fce565b611526565b61039261062e36600461204e565b6115bd565b6103257f0000000000000000000000008009250878ed378050ef5d2a48c70e24eb2ede7e81565b600b546103259073ffffffffffffffffffffffffffffffffffffffff1681565b6102e26040518060400160405280600f81526020017f4e4f545f544f4b454e5f4f574e4552000000000000000000000000000000000081525081565b6103926106c4366004612090565b6115d2565b6102e26106d7366004611f02565b61170f565b6102e26040518060400160405280600c81526020017f544f4b454e5f4c4f434b4544000000000000000000000000000000000000000081525081565b61039261072636600461204e565b6117ad565b6102e26117c2565b610392610741366004611fa5565b6117cf565b60015473ffffffffffffffffffffffffffffffffffffffff16610325565b6102c56107723660046120ff565b600760209081526000928352604080842090915290825290205460ff1681565b6103926107a0366004611fa5565b611865565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061083857507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b8061088457507f5b5e139f000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6002805461089790612132565b80601f01602080910402602001604051908101604052809291908181526020018280546108c390612132565b80156109105780601f106108e557610100808354040283529160200191610910565b820191906000526020600020905b8154815290600101906020018083116108f357829003601f168201915b505050505081565b60008181526004602052604090205473ffffffffffffffffffffffffffffffffffffffff163381148061097b575073ffffffffffffffffffffffffffffffffffffffff8116600090815260076020908152604080832033845290915290205460ff165b6109cc5760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a454400000000000000000000000000000000000060448201526064015b60405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60408051808201909152601081527f4d494e545f4e4f545f535441525445440000000000000000000000000000000060208201527f000000000000000000000000000000000000000000000000000000006387ee80421015610ac25760405162461bcd60e51b81526004016109c39190611eb1565b5060408051808201909152600a81527f4d494e545f454e4445440000000000000000000000000000000000000000000060208201527f0000000000000000000000000000000000000000000000000000000063aa35804210610b375760405162461bcd60e51b81526004016109c39190611eb1565b506040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526003907f0000000000000000000000008009250878ed378050ef5d2a48c70e24eb2ede7e73ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610bc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be99190612185565b116040518060400160405280601381526020017f4d494e545f52455155495245535f345f4d4b310000000000000000000000000081525090610c3e5760405162461bcd60e51b81526004016109c39190611eb1565b50610c48336113df565b60408051808201909152600e81527f414c52454144595f4d494e54454400000000000000000000000000000000000060208201529015610c9b5760405162461bcd60e51b81526004016109c39190611eb1565b5060088054336000818152600560209081526040808320805460019081019091558654019095558382526004905283812080547fffffffffffffffffffffffff000000000000000000000000000000000000000016831790559251919283927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4333b15610e35576040517f150b7a0200000000000000000000000000000000000000000000000000000000808252336004830181905260006024840181905260448401859052608060648501526084840152909163150b7a029060a4016020604051808303816000875af1158015610d9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbf919061219e565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146040518060400160405280601081526020017f554e534146455f524543495049454e540000000000000000000000000000000081525090610e335760405162461bcd60e51b81526004016109c39190611eb1565b505b50565b600b546040517fcbc3fb5600000000000000000000000000000000000000000000000000000000815230600482015233602482015273ffffffffffffffffffffffffffffffffffffffff85811660448301528481166064830152608482018490529091169063cbc3fb569060a4016020604051808303816000875af1158015610ec5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee991906121bb565b156040518060400160405280600c81526020017f544f4b454e5f4c4f434b4544000000000000000000000000000000000000000081525090610f3e5760405162461bcd60e51b81526004016109c39190611eb1565b50610f4a83838361198a565b505050565b6009805461089790612132565b610f67838383610e38565b73ffffffffffffffffffffffffffffffffffffffff82163b15610f4a576040517f150b7a020000000000000000000000000000000000000000000000000000000080825233600483015273ffffffffffffffffffffffffffffffffffffffff858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015611011573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611035919061219e565b7fffffffff000000000000000000000000000000000000000000000000000000001614610f4a5760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e540000000000000000000000000000000060448201526064016109c3565b60408051808201909152601681527f4255524e5f4245464f52455f4d494e545f454e4445440000000000000000000060208201527f0000000000000000000000000000000000000000000000000000000063aa35804210156111195760405162461bcd60e51b81526004016109c39190611eb1565b50600b546040517fcbc3fb5600000000000000000000000000000000000000000000000000000000815230600482015233602482018190526044820152600060648201526084810183905273ffffffffffffffffffffffffffffffffffffffff9091169063cbc3fb569060a4016020604051808303816000875af11580156111a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c991906121bb565b156040518060400160405280600c81526020017f544f4b454e5f4c4f434b454400000000000000000000000000000000000000008152509061121e5760405162461bcd60e51b81526004016109c39190611eb1565b50600081815260046020908152604091829020548251808401909352600f83527f4e4f545f544f4b454e5f4f574e455200000000000000000000000000000000009183019190915273ffffffffffffffffffffffffffffffffffffffff169033821461129d5760405162461bcd60e51b81526004016109c39190611eb1565b5073ffffffffffffffffffffffffffffffffffffffff8116600081815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9081019091556008805490910190558583526004825280832080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915560069092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008181526004602052604090205473ffffffffffffffffffffffffffffffffffffffff16806113da5760405162461bcd60e51b815260206004820152600a60248201527f4e4f545f4d494e5445440000000000000000000000000000000000000000000060448201526064016109c3565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82166114445760405162461bcd60e51b815260206004820152600c60248201527f5a45524f5f41444452455353000000000000000000000000000000000000000060448201526064016109c3565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205490565b611475611c03565b61147f6000611c6a565b565b600154339073ffffffffffffffffffffffffffffffffffffffff1681146115105760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084016109c3565b610e3581611c6a565b6003805461089790612132565b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115c5611c03565b600a610f4a828483612255565b6115dd858585610e38565b73ffffffffffffffffffffffffffffffffffffffff84163b15611708576040517f150b7a02000000000000000000000000000000000000000000000000000000008082529073ffffffffffffffffffffffffffffffffffffffff86169063150b7a02906116569033908a9089908990899060040161236f565b6020604051808303816000875af1158015611675573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611699919061219e565b7fffffffff0000000000000000000000000000000000000000000000000000000016146117085760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e540000000000000000000000000000000060448201526064016109c3565b5050505050565b606060006009805461172090612132565b9050116040518060400160405280600b81526020017f4e4f5f4d45544144415441000000000000000000000000000000000000000000815250906117775760405162461bcd60e51b81526004016109c39190611eb1565b50600961178383611c9b565b600a6040516020016117979392919061247f565b6040516020818303038152906040529050919050565b6117b5611c03565b6009610f4a828483612255565b600a805461089790612132565b6117d7611c03565b600b5460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f606d63a4236a3485ccb92cec46cd7387dac870c31434cd4f8ab856020c78598c90600090a3600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61186d611c03565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091556118d060005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008181526004602052604090205473ffffffffffffffffffffffffffffffffffffffff848116911614611a005760405162461bcd60e51b815260206004820152600a60248201527f57524f4e475f46524f4d0000000000000000000000000000000000000000000060448201526064016109c3565b73ffffffffffffffffffffffffffffffffffffffff8216611a635760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f524543495049454e5400000000000000000000000000000060448201526064016109c3565b3373ffffffffffffffffffffffffffffffffffffffff84161480611ab7575073ffffffffffffffffffffffffffffffffffffffff8316600090815260076020908152604080832033845290915290205460ff165b80611ae5575060008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1633145b611b315760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a454400000000000000000000000000000000000060448201526064016109c3565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019055938616808352848320805460010190558583526004825284832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081168317909155600690925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461147f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109c3565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610e3581611915565b60606000611ca883611d59565b600101905060008167ffffffffffffffff811115611cc857611cc86121d8565b6040519080825280601f01601f191660200182016040528015611cf2576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084611cfc57509392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611da2577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611dce576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611dec57662386f26fc10000830492506010015b6305f5e1008310611e04576305f5e100830492506008015b6127108310611e1857612710830492506004015b60648310611e2a576064830492506002015b600a83106108845760010192915050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610e3557600080fd5b600060208284031215611e7b57600080fd5b8135611e8681611e3b565b9392505050565b60005b83811015611ea8578181015183820152602001611e90565b50506000910152565b6020815260008251806020840152611ed0816040850160208701611e8d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b600060208284031215611f1457600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146113da57600080fd5b60008060408385031215611f5257600080fd5b611f5b83611f1b565b946020939093013593505050565b600080600060608486031215611f7e57600080fd5b611f8784611f1b565b9250611f9560208501611f1b565b9150604084013590509250925092565b600060208284031215611fb757600080fd5b611e8682611f1b565b8015158114610e3557600080fd5b60008060408385031215611fe157600080fd5b611fea83611f1b565b91506020830135611ffa81611fc0565b809150509250929050565b60008083601f84011261201757600080fd5b50813567ffffffffffffffff81111561202f57600080fd5b60208301915083602082850101111561204757600080fd5b9250929050565b6000806020838503121561206157600080fd5b823567ffffffffffffffff81111561207857600080fd5b61208485828601612005565b90969095509350505050565b6000806000806000608086880312156120a857600080fd5b6120b186611f1b565b94506120bf60208701611f1b565b935060408601359250606086013567ffffffffffffffff8111156120e257600080fd5b6120ee88828901612005565b969995985093965092949392505050565b6000806040838503121561211257600080fd5b61211b83611f1b565b915061212960208401611f1b565b90509250929050565b600181811c9082168061214657607f821691505b60208210810361217f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60006020828403121561219757600080fd5b5051919050565b6000602082840312156121b057600080fd5b8151611e8681611e3b565b6000602082840312156121cd57600080fd5b8151611e8681611fc0565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f821115610f4a57600081815260208120601f850160051c8101602086101561222e5750805b601f850160051c820191505b8181101561224d5782815560010161223a565b505050505050565b67ffffffffffffffff83111561226d5761226d6121d8565b6122818361227b8354612132565b83612207565b6000601f8411600181146122d3576000851561229d5750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b178355611708565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b828110156123225786850135825560209485019460019092019101612302565b508682101561235d577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011683010190509695505050505050565b600081546123fb81612132565b60018281168015612413576001811461244657612475565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0084168752821515830287019450612475565b8560005260208060002060005b8581101561246c5781548a820152908401908201612453565b50505082870194505b5050505092915050565b600061248b82866123ee565b845161249b818360208901611e8d565b6124a7818301866123ee565b97965050505050505056fea2646970667358221220e9f3002f37c512bb061fd64abb56c7942fbf1f637236bd6d228470b8bbf7fd8664736f6c63430008110033

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

0000000000000000000000005a5fe90cd115d691ee99d90d3607f7005ea817e50000000000000000000000008009250878ed378050ef5d2a48c70e24eb2ede7e000000000000000000000000000000000000000000000000000000006387ee800000000000000000000000000000000000000000000000000000000063aa3580000000000000000000000000616e6b2ba922968af8d46df9400fc3da17589c5f

-----Decoded View---------------
Arg [0] : owner (address): 0x5a5fe90CD115d691EE99d90D3607f7005Ea817e5
Arg [1] : mk1Solarbots (address): 0x8009250878eD378050eF5D2a48c70E24EB2edE7E
Arg [2] : timestampMintStart (uint256): 1669852800
Arg [3] : timestampMintEnd (uint256): 1672099200
Arg [4] : _lockManager (address): 0x616E6b2Ba922968Af8D46DF9400Fc3DA17589C5f

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000005a5fe90cd115d691ee99d90d3607f7005ea817e5
Arg [1] : 0000000000000000000000008009250878ed378050ef5d2a48c70e24eb2ede7e
Arg [2] : 000000000000000000000000000000000000000000000000000000006387ee80
Arg [3] : 0000000000000000000000000000000000000000000000000000000063aa3580
Arg [4] : 000000000000000000000000616e6b2ba922968af8d46df9400fc3da17589c5f


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

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