ETH Price: $3,069.51 (+2.99%)
Gas: 1 Gwei

Token

LandSpaceship (LSSP)
 

Overview

Max Total Supply

1,370 LSSP

Holders

300

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 LSSP
0x3addafcb4a9bcaaa3af7837f41f758863ade2938
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:
LandSpaceship

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
byzantium EvmVersion
File 1 of 13 : LandSpaceship.sol
pragma solidity 0.8.13;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IRichMeka {
    function ownerOf(uint256 tokenId) external returns (address);
    function getStakeOfHolderByTokenId(address holder, uint256 tokenId) external returns (uint256, uint256);
}

contract LandSpaceship is ERC721, Ownable {
    using Counters for Counters.Counter;

    Counters.Counter _landsIds;
    uint16 _maxLandsSupply = 8888;
    uint8 _maxLandsPerMint = 20;
    uint256 _landPriceEther = 0.01 ether;
    uint256 _landPriceSerum = 100000000000000000000000;
    bool _mintForSerumIsEnabled = false;
    IERC20 _serumContract;
    IRichMeka _richMekaContract;
    mapping (address => uint256) _mintedFreeLands;
    mapping (uint256 => bool) _mintedFreeLandsForMekas;

    constructor(address serumContractAddress, address richMekaContractAddress) ERC721("LandSpaceship", "LSSP") {
        _serumContract = IERC20(serumContractAddress);
        _richMekaContract = IRichMeka(richMekaContractAddress);
    }

    function _baseURI() internal pure override returns (string memory) {
        return "https://metadata.richmeka.com/landspaceship/";
    }

    function totalSupply() public view returns (uint256) {
        return _landsIds.current();
    }

    function setLandPriceEther(uint256 landPriceEther) external onlyOwner {
        _landPriceEther = landPriceEther;
    }

    function setLandPriceSerum(uint256 landPriceSerum) external onlyOwner {
        _landPriceSerum = landPriceSerum;
    }

    function flipMintForSerumIsEnabled() external onlyOwner {
        _mintForSerumIsEnabled = !_mintForSerumIsEnabled;
    }

    function withdrawEther(address recipient, uint256 amount) external onlyOwner {
        payable(recipient).transfer(amount);
    }

    function withdrawSerum(address recipient, uint256 amount) external onlyOwner {
        _serumContract.transfer(recipient, amount);
    }

    function mintFreeLands(address recipient, uint8 numberOfLands) external onlyOwner {
        require(_landsIds.current() + numberOfLands <= _maxLandsSupply, "Mint would exceed max supply of lands");

        for (uint8 i = 0; i < numberOfLands; i++) {
            _landsIds.increment();
            _mint(recipient, _landsIds.current());
        }
    }

    function mintFreeLand() external {
        require(_mintedFreeLands[msg.sender] == 0, "You already minted a free land");
        require(_landsIds.current() + 1 <= _maxLandsSupply, "Mint would exceed max supply of lands");

        _landsIds.increment();
        _mint(msg.sender, _landsIds.current());
        _mintedFreeLands[msg.sender] = _landsIds.current();
    }

    function freeLandIsMinted () view external returns (bool) {
        return _mintedFreeLands[msg.sender] != 0;
    }

    function _senderOwnsMeka(uint256 mekaId) internal returns (bool) {
        try _richMekaContract.ownerOf(mekaId) returns (address owner) {
            if (owner == msg.sender) {
                return true;
            }
            else {
                return false;
            }
        }
        catch Error(string memory) {
            try _richMekaContract.getStakeOfHolderByTokenId(msg.sender, mekaId) returns (uint256, uint256) {
                return true;
            }
            catch Error(string memory) {
                return false;
            }
        }
    }

    function mintFreeMekas(uint256[] memory mekaIds) external {
        require(_landsIds.current() + mekaIds.length * 4 <= _maxLandsSupply, "Mint would exceed max supply of lands");

        for (uint8 i = 0; i < mekaIds.length; i++) {
            require(_senderOwnsMeka(mekaIds[i]), "Sender is not the owner of one of presented mekas");
            require(!_mintedFreeLandsForMekas[mekaIds[i]], "Lands for one of presented mekas were already minted");

            for (uint8 j = 0; j < 4; j++) {
                _landsIds.increment();
                _mint(msg.sender, _landsIds.current());
            }

            _mintedFreeLandsForMekas[mekaIds[i]] = true;
        }
    }

    function landsForMekaAreMinted(uint256 mekaId) view external returns (bool) {
        return _mintedFreeLandsForMekas[mekaId];
    }

    function mintLandsForEther(uint8 numberOfLands) external payable {
        require(msg.value >= _landPriceEther * numberOfLands, "Ether value sent is not correct");
        require(numberOfLands <= _maxLandsPerMint, "Can only mint 20 lands at a time");
        require(_landsIds.current() + numberOfLands <= _maxLandsSupply, "Mint would exceed max supply of lands");

        for (uint8 i = 0; i < numberOfLands; i++) {
            _landsIds.increment();
            _mint(msg.sender, _landsIds.current());
        }
    }

    function mintLandsForSerum(uint8 numberOfLands) external {
        require(_mintForSerumIsEnabled, "Mint of lands for SERUM is not enabled");
        require(numberOfLands <= _maxLandsPerMint, "Can only mint 20 lands at a time");
        require(_landsIds.current() + numberOfLands <= _maxLandsSupply, "Mint would exceed max supply of lands");

        for (uint8 i = 0; i < numberOfLands; i++) {
            _landsIds.increment();
            _mint(msg.sender, _landsIds.current());
        }

        _serumContract.transferFrom(msg.sender, address(this), _landPriceSerum * numberOfLands);
    }
}

File 2 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT

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 3 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 4 of 13 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 5 of 13 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 6 of 13 : Context.sol
// SPDX-License-Identifier: MIT

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 7 of 13 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 9 of 13 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 10 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

File 11 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

File 12 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 13 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "byzantium",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"serumContractAddress","type":"address"},{"internalType":"address","name":"richMekaContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":[],"name":"flipMintForSerumIsEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeLandIsMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mekaId","type":"uint256"}],"name":"landsForMekaAreMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintFreeLand","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint8","name":"numberOfLands","type":"uint8"}],"name":"mintFreeLands","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"mekaIds","type":"uint256[]"}],"name":"mintFreeMekas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"numberOfLands","type":"uint8"}],"name":"mintLandsForEther","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"numberOfLands","type":"uint8"}],"name":"mintLandsForSerum","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":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"uint256","name":"landPriceEther","type":"uint256"}],"name":"setLandPriceEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"landPriceSerum","type":"uint256"}],"name":"setLandPriceSerum","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawSerum","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526008805462ffffff1916621422b8179055662386f26fc1000060095569152d02c7e14af6800000600a55600b805460ff191690553480156200004557600080fd5b5060405162002af038038062002af083398101604081905262000068916200027c565b604080518082018252600d81527f4c616e645370616365736869700000000000000000000000000000000000000060208083019182528351808501909452600484527f4c53535000000000000000000000000000000000000000000000000000000000908401528151919291620000e291600091620001b9565b508051620000f8906001906020840190620001b9565b505050620001276200011862000163640100000000026401000000009004565b64010000000062000167810204565b600b805461010060a860020a031916610100600160a060020a0394851602179055600c8054600160a060020a0319169190921617905562000309565b3390565b60068054600160a060020a03838116600160a060020a0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001c790620002b4565b90600052602060002090601f016020900481019282620001eb576000855562000236565b82601f106200020657805160ff191683800117855562000236565b8280016001018555821562000236579182015b828111156200023657825182559160200191906001019062000219565b506200024492915062000248565b5090565b5b8082111562000244576000815560010162000249565b8051600160a060020a03811681146200027757600080fd5b919050565b600080604083850312156200029057600080fd5b6200029b836200025f565b9150620002ab602084016200025f565b90509250929050565b600281046001821680620002c957607f821691505b60208210810362000303577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6127d780620003196000396000f3fe6080604052600436106101c65760003560e060020a900480637c875978116100fb578063b88d4fde11610099578063c87b56dd11610068578063c87b56dd14610503578063dbcaa44714610523578063e985e9c514610538578063f2fde38b1461058157600080fd5b8063b88d4fde1461048a578063ba785176146104aa578063bc89ef50146104ca578063bfa3c8d0146104ee57600080fd5b8063a099262b116100d5578063a099262b14610417578063a22cb46514610437578063aa17ea5014610457578063b826e7fa1461046a57600080fd5b80637c875978146103c45780638da5cb5b146103e457806395d89b411461040257600080fd5b806329a39a5e11610168578063522f681511610142578063522f68151461034f5780636352211e1461036f57806370a082311461038f578063715018a6146103af57600080fd5b806329a39a5e146102df5780632a362362146102ff57806342842e0e1461032f57600080fd5b8063095ea7b3116101a4578063095ea7b31461025a578063150aaddd1461027c57806318160ddd1461029c57806323b872dd146102bf57600080fd5b806301ffc9a7146101cb57806306fdde0314610200578063081812fc14610222575b600080fd5b3480156101d757600080fd5b506101eb6101e6366004611f9f565b6105a1565b60405190151581526020015b60405180910390f35b34801561020c57600080fd5b5061021561063e565b6040516101f79190612014565b34801561022e57600080fd5b5061024261023d366004612027565b6106d0565b604051600160a060020a0390911681526020016101f7565b34801561026657600080fd5b5061027a610275366004612055565b61077e565b005b34801561028857600080fd5b5061027a610297366004612027565b6108b5565b3480156102a857600080fd5b506102b16108e7565b6040519081526020016101f7565b3480156102cb57600080fd5b5061027a6102da366004612081565b6108f7565b3480156102eb57600080fd5b5061027a6102fa366004612027565b61092b565b34801561030b57600080fd5b506101eb61031a366004612027565b6000908152600e602052604090205460ff1690565b34801561033b57600080fd5b5061027a61034a366004612081565b61095d565b34801561035b57600080fd5b5061027a61036a366004612055565b610978565b34801561037b57600080fd5b5061024261038a366004612027565b6109db565b34801561039b57600080fd5b506102b16103aa3660046120c2565b610a69565b3480156103bb57600080fd5b5061027a610b06565b3480156103d057600080fd5b5061027a6103df3660046120f0565b610b3f565b3480156103f057600080fd5b50600654600160a060020a0316610242565b34801561040e57600080fd5b50610215610d50565b34801561042357600080fd5b5061027a61043236600461210b565b610d5f565b34801561044357600080fd5b5061027a61045236600461214e565b610e09565b61027a6104653660046120f0565b610ed0565b34801561047657600080fd5b5061027a6104853660046121cd565b611012565b34801561049657600080fd5b5061027a6104a5366004612273565b611245565b3480156104b657600080fd5b5061027a6104c5366004612055565b611280565b3480156104d657600080fd5b50336000908152600d602052604090205415156101eb565b3480156104fa57600080fd5b5061027a611343565b34801561050f57600080fd5b5061021561051e366004612027565b611384565b34801561052f57600080fd5b5061027a611470565b34801561054457600080fd5b506101eb61055336600461233b565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561058d57600080fd5b5061027a61059c3660046120c2565b61153c565b6000600160e060020a031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806106045750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061063857507f01ffc9a700000000000000000000000000000000000000000000000000000000600160e060020a03198316145b92915050565b60606000805461064d90612369565b80601f016020809104026020016040519081016040528092919081815260200182805461067990612369565b80156106c65780601f1061069b576101008083540402835291602001916106c6565b820191906000526020600020905b8154815290600101906020018083116106a957829003601f168201915b5050505050905090565b600081815260026020526040812054600160a060020a03166107625760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b50600090815260046020526040902054600160a060020a031690565b6000610789826109db565b905080600160a060020a031683600160a060020a0316036108155760405160e560020a62461bcd02815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610759565b33600160a060020a038216148061083157506108318133610553565b6108a65760405160e560020a62461bcd02815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610759565b6108b083836115f4565b505050565b600654600160a060020a031633146108e25760405160e560020a62461bcd028152600401610759906123a0565b600a55565b60006108f260075490565b905090565b610901338261166f565b6109205760405160e560020a62461bcd028152600401610759906123d5565b6108b083838361177a565b600654600160a060020a031633146109585760405160e560020a62461bcd028152600401610759906123a0565b600955565b6108b083838360405180602001604052806000815250611245565b600654600160a060020a031633146109a55760405160e560020a62461bcd028152600401610759906123a0565b604051600160a060020a0383169082156108fc029083906000818181858888f193505050501580156108b0573d6000803e3d6000fd5b600081815260026020526040812054600160a060020a0316806106385760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610759565b6000600160a060020a038216610aea5760405160e560020a62461bcd02815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610759565b50600160a060020a031660009081526003602052604090205490565b600654600160a060020a03163314610b335760405160e560020a62461bcd028152600401610759906123a0565b610b3d600061195a565b565b600b5460ff16610bba5760405160e560020a62461bcd02815260206004820152602660248201527f4d696e74206f66206c616e647320666f7220534552554d206973206e6f74206560448201527f6e61626c656400000000000000000000000000000000000000000000000000006064820152608401610759565b60085460ff6201000090910481169082161115610c1c5760405160e560020a62461bcd02815260206004820181905260248201527f43616e206f6e6c79206d696e74203230206c616e647320617420612074696d656044820152606401610759565b60085461ffff1660ff8216610c3060075490565b610c3a919061244b565b1115610c5b5760405160e560020a62461bcd02815260040161075990612463565b60005b8160ff168160ff161015610c9e57610c7a600780546001019055565b610c8c33610c8760075490565b6119b9565b80610c96816124c0565b915050610c5e565b50600b60019054906101000a9004600160a060020a0316600160a060020a03166323b872dd33308460ff16600a54610cd691906124df565b60405160e060020a63ffffffff8616028152600160a060020a03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015610d28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4c91906124fe565b5050565b60606001805461064d90612369565b600654600160a060020a03163314610d8c5760405160e560020a62461bcd028152600401610759906123a0565b60085461ffff1660ff8216610da060075490565b610daa919061244b565b1115610dcb5760405160e560020a62461bcd02815260040161075990612463565b60005b8160ff168160ff1610156108b057610dea600780546001019055565b610df783610c8760075490565b80610e01816124c0565b915050610dce565b33600160a060020a03831603610e645760405160e560020a62461bcd02815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610759565b336000818152600560209081526040808320600160a060020a03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b8060ff16600954610ee191906124df565b341015610f335760405160e560020a62461bcd02815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610759565b60085460ff6201000090910481169082161115610f955760405160e560020a62461bcd02815260206004820181905260248201527f43616e206f6e6c79206d696e74203230206c616e647320617420612074696d656044820152606401610759565b60085461ffff1660ff8216610fa960075490565b610fb3919061244b565b1115610fd45760405160e560020a62461bcd02815260040161075990612463565b60005b8160ff168160ff161015610d4c57610ff3600780546001019055565b61100033610c8760075490565b8061100a816124c0565b915050610fd7565b600854815161ffff909116906110299060046124df565b600754611036919061244b565b11156110575760405160e560020a62461bcd02815260040161075990612463565b60005b81518160ff161015610d4c5761108b828260ff168151811061107e5761107e61251b565b6020026020010151611b0e565b6111005760405160e560020a62461bcd02815260206004820152603160248201527f53656e646572206973206e6f7420746865206f776e6572206f66206f6e65206f60448201527f662070726573656e746564206d656b61730000000000000000000000000000006064820152608401610759565b600e6000838360ff16815181106111195761111961251b565b60209081029190910181015182528101919091526040016000205460ff16156111ad5760405160e560020a62461bcd02815260206004820152603460248201527f4c616e647320666f72206f6e65206f662070726573656e746564206d656b617360448201527f207765726520616c7265616479206d696e7465640000000000000000000000006064820152608401610759565b60005b60048160ff1610156111e9576111ca600780546001019055565b6111d733610c8760075490565b806111e1816124c0565b9150506111b0565b506001600e6000848460ff16815181106112055761120561251b565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550808061123d906124c0565b91505061105a565b61124f338361166f565b61126e5760405160e560020a62461bcd028152600401610759906123d5565b61127a84848484611cb4565b50505050565b600654600160a060020a031633146112ad5760405160e560020a62461bcd028152600401610759906123a0565b600b546040517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a038481166004830152602482018490526101009092049091169063a9059cbb906044016020604051808303816000875af115801561131f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b091906124fe565b600654600160a060020a031633146113705760405160e560020a62461bcd028152600401610759906123a0565b600b805460ff19811660ff90911615179055565b600081815260026020526040902054606090600160a060020a03166114145760405160e560020a62461bcd02815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610759565b600061141e611cea565b9050600081511161143e5760405180602001604052806000815250611469565b8061144884611d0a565b604051602001611459929190612534565b6040516020818303038152906040525b9392505050565b336000908152600d6020526040902054156114d05760405160e560020a62461bcd02815260206004820152601e60248201527f596f7520616c7265616479206d696e74656420612066726565206c616e6400006044820152606401610759565b60085461ffff166114e060075490565b6114eb90600161244b565b111561150c5760405160e560020a62461bcd02815260040161075990612463565b61151a600780546001019055565b61152733610c8760075490565b600754336000908152600d6020526040902055565b600654600160a060020a031633146115695760405160e560020a62461bcd028152600401610759906123a0565b600160a060020a0381166115e85760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610759565b6115f18161195a565b50565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384169081179091558190611636826109db565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815260026020526040812054600160a060020a03166116fc5760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610759565b6000611707836109db565b905080600160a060020a031684600160a060020a03161480611742575083600160a060020a0316611737846106d0565b600160a060020a0316145b806117725750600160a060020a0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b82600160a060020a031661178d826109db565b600160a060020a03161461180c5760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610759565b600160a060020a03821661188a5760405160e560020a62461bcd028152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610759565b6118956000826115f4565b600160a060020a03831660009081526003602052604081208054600192906118be908490612563565b9091555050600160a060020a03821660009081526003602052604081208054600192906118ec90849061244b565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60068054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600160a060020a038216611a125760405160e560020a62461bcd02815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610759565b600081815260026020526040902054600160a060020a031615611a7a5760405160e560020a62461bcd02815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610759565b600160a060020a0382166000908152600360205260408120805460019290611aa390849061244b565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600c546040517f6352211e00000000000000000000000000000000000000000000000000000000815260048101839052600091600160a060020a031690636352211e906024016020604051808303816000875af1925050508015611b8f575060408051601f3d908101601f19168201909252611b8c9181019061257a565b60015b611c8b57611b9b612597565b806308c379a003611c745750611baf6125b7565b80611bba5750611c76565b600c546040517fb5e3229d00000000000000000000000000000000000000000000000000000000815233600482015260248101859052600160a060020a039091169063b5e3229d9060440160408051808303816000875af1925050508015611c3f575060408051601f3d908101601f19168201909252611c3c91810190612641565b60015b611c8057611c4b612597565b806308c379a003611c745750611c5f6125b7565b80611c6a5750611c76565b5060009392505050565b505b3d6000803e3d6000fd5b506001949350505050565b33600160a060020a03821603611ca45750600192915050565b50600092915050565b505b919050565b611cbf84848461177a565b611ccb84848484611e5e565b61127a5760405160e560020a62461bcd02815260040161075990612665565b60606040518060600160405280602c8152602001612776602c9139905090565b606081600003611d4d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611d775780611d61816126c2565b9150611d709050600a836126f4565b9150611d51565b60008167ffffffffffffffff811115611d9257611d92612187565b6040519080825280601f01601f191660200182016040528015611dbc576020820181803683370190505b5090505b841561177257611dd1600183612563565b9150611dde600a86612708565b611de990603061244b565b7f010000000000000000000000000000000000000000000000000000000000000002818381518110611e1d57611e1d61251b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611e57600a866126f4565b9450611dc0565b6000600160a060020a0384163b15611c80576040517f150b7a02000000000000000000000000000000000000000000000000000000008152600160a060020a0385169063150b7a0290611ebb90339089908890889060040161271c565b6020604051808303816000875af1925050508015611ef6575060408051601f3d908101601f19168201909252611ef391810190612758565b60015b611f56573d808015611f24576040519150601f19603f3d011682016040523d82523d6000602084013e611f29565b606091505b508051600003611f4e5760405160e560020a62461bcd02815260040161075990612665565b805181602001fd5b600160e060020a0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611772565b600160e060020a0319811681146115f157600080fd5b600060208284031215611fb157600080fd5b813561146981611f89565b60005b83811015611fd7578181015183820152602001611fbf565b8381111561127a5750506000910152565b60008151808452612000816020860160208601611fbc565b601f01601f19169290920160200192915050565b6020815260006114696020830184611fe8565b60006020828403121561203957600080fd5b5035919050565b600160a060020a03811681146115f157600080fd5b6000806040838503121561206857600080fd5b823561207381612040565b946020939093013593505050565b60008060006060848603121561209657600080fd5b83356120a181612040565b925060208401356120b181612040565b929592945050506040919091013590565b6000602082840312156120d457600080fd5b813561146981612040565b803560ff81168114611caf57600080fd5b60006020828403121561210257600080fd5b611469826120df565b6000806040838503121561211e57600080fd5b823561212981612040565b9150612137602084016120df565b90509250929050565b80151581146115f157600080fd5b6000806040838503121561216157600080fd5b823561216c81612040565b9150602083013561217c81612140565b809150509250929050565b60e060020a634e487b7102600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156121c6576121c6612187565b6040525050565b600060208083850312156121e057600080fd5b823567ffffffffffffffff808211156121f857600080fd5b818501915085601f83011261220c57600080fd5b81358181111561221e5761221e612187565b8381029150604051612232858401826121a0565b8181529183018401918481018884111561224b57600080fd5b938501935b838510156122675784358152938501938501612250565b50979650505050505050565b6000806000806080858703121561228957600080fd5b843561229481612040565b93506020858101356122a581612040565b935060408601359250606086013567ffffffffffffffff808211156122c957600080fd5b818801915088601f8301126122dd57600080fd5b8135818111156122ef576122ef612187565b6040519150612307601f8201601f19168501836121a0565b808252898482850101111561231b57600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561234e57600080fd5b823561235981612040565b9150602083013561217c81612040565b60028104600182168061237d57607f821691505b602082108103611cad5760e060020a634e487b7102600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60e060020a634e487b7102600052601160045260246000fd5b6000821982111561245e5761245e612432565b500190565b60208082526025908201527f4d696e7420776f756c6420657863656564206d617820737570706c79206f662060408201527f6c616e6473000000000000000000000000000000000000000000000000000000606082015260800190565b600060ff821660ff81036124d6576124d6612432565b60010192915050565b60008160001904831182151516156124f9576124f9612432565b500290565b60006020828403121561251057600080fd5b815161146981612140565b60e060020a634e487b7102600052603260045260246000fd5b60008351612546818460208801611fbc565b83519083019061255a818360208801611fbc565b01949350505050565b60008282101561257557612575612432565b500390565b60006020828403121561258c57600080fd5b815161146981612040565b600060033d11156125b45760046000803e60e060020a6000510490505b90565b600060443d10156125c55790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156125f557505050505090565b828501915081518181111561260d5750505050505090565b843d87010160208285010111156126275750505050505090565b612636602082860101876121a0565b509095945050505050565b6000806040838503121561265457600080fd5b505080516020909101519092909150565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b6000600182016126d4576126d4612432565b5060010190565b60e060020a634e487b7102600052601260045260246000fd5b600082612703576127036126db565b500490565b600082612717576127176126db565b500690565b6000600160a060020a0380871683528086166020840152508360408301526080606083015261274e6080830184611fe8565b9695505050505050565b60006020828403121561276a57600080fd5b815161146981611f8956fe68747470733a2f2f6d657461646174612e726963686d656b612e636f6d2f6c616e647370616365736869702fa2646970667358221220cb9ca602e4a84109034f681abf13bb5e6f8c72ccb426eb576b0148b4009136ef64736f6c634300080d0033000000000000000000000000980d58c980b41e780f940d8cbf3bc64674fe1bd1000000000000000000000000f702d2c8f29d95b9a80e58d02cabb2396329c72a

Deployed Bytecode

0x6080604052600436106101c65760003560e060020a900480637c875978116100fb578063b88d4fde11610099578063c87b56dd11610068578063c87b56dd14610503578063dbcaa44714610523578063e985e9c514610538578063f2fde38b1461058157600080fd5b8063b88d4fde1461048a578063ba785176146104aa578063bc89ef50146104ca578063bfa3c8d0146104ee57600080fd5b8063a099262b116100d5578063a099262b14610417578063a22cb46514610437578063aa17ea5014610457578063b826e7fa1461046a57600080fd5b80637c875978146103c45780638da5cb5b146103e457806395d89b411461040257600080fd5b806329a39a5e11610168578063522f681511610142578063522f68151461034f5780636352211e1461036f57806370a082311461038f578063715018a6146103af57600080fd5b806329a39a5e146102df5780632a362362146102ff57806342842e0e1461032f57600080fd5b8063095ea7b3116101a4578063095ea7b31461025a578063150aaddd1461027c57806318160ddd1461029c57806323b872dd146102bf57600080fd5b806301ffc9a7146101cb57806306fdde0314610200578063081812fc14610222575b600080fd5b3480156101d757600080fd5b506101eb6101e6366004611f9f565b6105a1565b60405190151581526020015b60405180910390f35b34801561020c57600080fd5b5061021561063e565b6040516101f79190612014565b34801561022e57600080fd5b5061024261023d366004612027565b6106d0565b604051600160a060020a0390911681526020016101f7565b34801561026657600080fd5b5061027a610275366004612055565b61077e565b005b34801561028857600080fd5b5061027a610297366004612027565b6108b5565b3480156102a857600080fd5b506102b16108e7565b6040519081526020016101f7565b3480156102cb57600080fd5b5061027a6102da366004612081565b6108f7565b3480156102eb57600080fd5b5061027a6102fa366004612027565b61092b565b34801561030b57600080fd5b506101eb61031a366004612027565b6000908152600e602052604090205460ff1690565b34801561033b57600080fd5b5061027a61034a366004612081565b61095d565b34801561035b57600080fd5b5061027a61036a366004612055565b610978565b34801561037b57600080fd5b5061024261038a366004612027565b6109db565b34801561039b57600080fd5b506102b16103aa3660046120c2565b610a69565b3480156103bb57600080fd5b5061027a610b06565b3480156103d057600080fd5b5061027a6103df3660046120f0565b610b3f565b3480156103f057600080fd5b50600654600160a060020a0316610242565b34801561040e57600080fd5b50610215610d50565b34801561042357600080fd5b5061027a61043236600461210b565b610d5f565b34801561044357600080fd5b5061027a61045236600461214e565b610e09565b61027a6104653660046120f0565b610ed0565b34801561047657600080fd5b5061027a6104853660046121cd565b611012565b34801561049657600080fd5b5061027a6104a5366004612273565b611245565b3480156104b657600080fd5b5061027a6104c5366004612055565b611280565b3480156104d657600080fd5b50336000908152600d602052604090205415156101eb565b3480156104fa57600080fd5b5061027a611343565b34801561050f57600080fd5b5061021561051e366004612027565b611384565b34801561052f57600080fd5b5061027a611470565b34801561054457600080fd5b506101eb61055336600461233b565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561058d57600080fd5b5061027a61059c3660046120c2565b61153c565b6000600160e060020a031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806106045750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061063857507f01ffc9a700000000000000000000000000000000000000000000000000000000600160e060020a03198316145b92915050565b60606000805461064d90612369565b80601f016020809104026020016040519081016040528092919081815260200182805461067990612369565b80156106c65780601f1061069b576101008083540402835291602001916106c6565b820191906000526020600020905b8154815290600101906020018083116106a957829003601f168201915b5050505050905090565b600081815260026020526040812054600160a060020a03166107625760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b50600090815260046020526040902054600160a060020a031690565b6000610789826109db565b905080600160a060020a031683600160a060020a0316036108155760405160e560020a62461bcd02815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610759565b33600160a060020a038216148061083157506108318133610553565b6108a65760405160e560020a62461bcd02815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610759565b6108b083836115f4565b505050565b600654600160a060020a031633146108e25760405160e560020a62461bcd028152600401610759906123a0565b600a55565b60006108f260075490565b905090565b610901338261166f565b6109205760405160e560020a62461bcd028152600401610759906123d5565b6108b083838361177a565b600654600160a060020a031633146109585760405160e560020a62461bcd028152600401610759906123a0565b600955565b6108b083838360405180602001604052806000815250611245565b600654600160a060020a031633146109a55760405160e560020a62461bcd028152600401610759906123a0565b604051600160a060020a0383169082156108fc029083906000818181858888f193505050501580156108b0573d6000803e3d6000fd5b600081815260026020526040812054600160a060020a0316806106385760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610759565b6000600160a060020a038216610aea5760405160e560020a62461bcd02815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610759565b50600160a060020a031660009081526003602052604090205490565b600654600160a060020a03163314610b335760405160e560020a62461bcd028152600401610759906123a0565b610b3d600061195a565b565b600b5460ff16610bba5760405160e560020a62461bcd02815260206004820152602660248201527f4d696e74206f66206c616e647320666f7220534552554d206973206e6f74206560448201527f6e61626c656400000000000000000000000000000000000000000000000000006064820152608401610759565b60085460ff6201000090910481169082161115610c1c5760405160e560020a62461bcd02815260206004820181905260248201527f43616e206f6e6c79206d696e74203230206c616e647320617420612074696d656044820152606401610759565b60085461ffff1660ff8216610c3060075490565b610c3a919061244b565b1115610c5b5760405160e560020a62461bcd02815260040161075990612463565b60005b8160ff168160ff161015610c9e57610c7a600780546001019055565b610c8c33610c8760075490565b6119b9565b80610c96816124c0565b915050610c5e565b50600b60019054906101000a9004600160a060020a0316600160a060020a03166323b872dd33308460ff16600a54610cd691906124df565b60405160e060020a63ffffffff8616028152600160a060020a03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015610d28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4c91906124fe565b5050565b60606001805461064d90612369565b600654600160a060020a03163314610d8c5760405160e560020a62461bcd028152600401610759906123a0565b60085461ffff1660ff8216610da060075490565b610daa919061244b565b1115610dcb5760405160e560020a62461bcd02815260040161075990612463565b60005b8160ff168160ff1610156108b057610dea600780546001019055565b610df783610c8760075490565b80610e01816124c0565b915050610dce565b33600160a060020a03831603610e645760405160e560020a62461bcd02815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610759565b336000818152600560209081526040808320600160a060020a03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b8060ff16600954610ee191906124df565b341015610f335760405160e560020a62461bcd02815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610759565b60085460ff6201000090910481169082161115610f955760405160e560020a62461bcd02815260206004820181905260248201527f43616e206f6e6c79206d696e74203230206c616e647320617420612074696d656044820152606401610759565b60085461ffff1660ff8216610fa960075490565b610fb3919061244b565b1115610fd45760405160e560020a62461bcd02815260040161075990612463565b60005b8160ff168160ff161015610d4c57610ff3600780546001019055565b61100033610c8760075490565b8061100a816124c0565b915050610fd7565b600854815161ffff909116906110299060046124df565b600754611036919061244b565b11156110575760405160e560020a62461bcd02815260040161075990612463565b60005b81518160ff161015610d4c5761108b828260ff168151811061107e5761107e61251b565b6020026020010151611b0e565b6111005760405160e560020a62461bcd02815260206004820152603160248201527f53656e646572206973206e6f7420746865206f776e6572206f66206f6e65206f60448201527f662070726573656e746564206d656b61730000000000000000000000000000006064820152608401610759565b600e6000838360ff16815181106111195761111961251b565b60209081029190910181015182528101919091526040016000205460ff16156111ad5760405160e560020a62461bcd02815260206004820152603460248201527f4c616e647320666f72206f6e65206f662070726573656e746564206d656b617360448201527f207765726520616c7265616479206d696e7465640000000000000000000000006064820152608401610759565b60005b60048160ff1610156111e9576111ca600780546001019055565b6111d733610c8760075490565b806111e1816124c0565b9150506111b0565b506001600e6000848460ff16815181106112055761120561251b565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550808061123d906124c0565b91505061105a565b61124f338361166f565b61126e5760405160e560020a62461bcd028152600401610759906123d5565b61127a84848484611cb4565b50505050565b600654600160a060020a031633146112ad5760405160e560020a62461bcd028152600401610759906123a0565b600b546040517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a038481166004830152602482018490526101009092049091169063a9059cbb906044016020604051808303816000875af115801561131f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b091906124fe565b600654600160a060020a031633146113705760405160e560020a62461bcd028152600401610759906123a0565b600b805460ff19811660ff90911615179055565b600081815260026020526040902054606090600160a060020a03166114145760405160e560020a62461bcd02815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610759565b600061141e611cea565b9050600081511161143e5760405180602001604052806000815250611469565b8061144884611d0a565b604051602001611459929190612534565b6040516020818303038152906040525b9392505050565b336000908152600d6020526040902054156114d05760405160e560020a62461bcd02815260206004820152601e60248201527f596f7520616c7265616479206d696e74656420612066726565206c616e6400006044820152606401610759565b60085461ffff166114e060075490565b6114eb90600161244b565b111561150c5760405160e560020a62461bcd02815260040161075990612463565b61151a600780546001019055565b61152733610c8760075490565b600754336000908152600d6020526040902055565b600654600160a060020a031633146115695760405160e560020a62461bcd028152600401610759906123a0565b600160a060020a0381166115e85760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610759565b6115f18161195a565b50565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384169081179091558190611636826109db565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815260026020526040812054600160a060020a03166116fc5760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610759565b6000611707836109db565b905080600160a060020a031684600160a060020a03161480611742575083600160a060020a0316611737846106d0565b600160a060020a0316145b806117725750600160a060020a0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b82600160a060020a031661178d826109db565b600160a060020a03161461180c5760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610759565b600160a060020a03821661188a5760405160e560020a62461bcd028152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610759565b6118956000826115f4565b600160a060020a03831660009081526003602052604081208054600192906118be908490612563565b9091555050600160a060020a03821660009081526003602052604081208054600192906118ec90849061244b565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60068054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600160a060020a038216611a125760405160e560020a62461bcd02815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610759565b600081815260026020526040902054600160a060020a031615611a7a5760405160e560020a62461bcd02815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610759565b600160a060020a0382166000908152600360205260408120805460019290611aa390849061244b565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600c546040517f6352211e00000000000000000000000000000000000000000000000000000000815260048101839052600091600160a060020a031690636352211e906024016020604051808303816000875af1925050508015611b8f575060408051601f3d908101601f19168201909252611b8c9181019061257a565b60015b611c8b57611b9b612597565b806308c379a003611c745750611baf6125b7565b80611bba5750611c76565b600c546040517fb5e3229d00000000000000000000000000000000000000000000000000000000815233600482015260248101859052600160a060020a039091169063b5e3229d9060440160408051808303816000875af1925050508015611c3f575060408051601f3d908101601f19168201909252611c3c91810190612641565b60015b611c8057611c4b612597565b806308c379a003611c745750611c5f6125b7565b80611c6a5750611c76565b5060009392505050565b505b3d6000803e3d6000fd5b506001949350505050565b33600160a060020a03821603611ca45750600192915050565b50600092915050565b505b919050565b611cbf84848461177a565b611ccb84848484611e5e565b61127a5760405160e560020a62461bcd02815260040161075990612665565b60606040518060600160405280602c8152602001612776602c9139905090565b606081600003611d4d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611d775780611d61816126c2565b9150611d709050600a836126f4565b9150611d51565b60008167ffffffffffffffff811115611d9257611d92612187565b6040519080825280601f01601f191660200182016040528015611dbc576020820181803683370190505b5090505b841561177257611dd1600183612563565b9150611dde600a86612708565b611de990603061244b565b7f010000000000000000000000000000000000000000000000000000000000000002818381518110611e1d57611e1d61251b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611e57600a866126f4565b9450611dc0565b6000600160a060020a0384163b15611c80576040517f150b7a02000000000000000000000000000000000000000000000000000000008152600160a060020a0385169063150b7a0290611ebb90339089908890889060040161271c565b6020604051808303816000875af1925050508015611ef6575060408051601f3d908101601f19168201909252611ef391810190612758565b60015b611f56573d808015611f24576040519150601f19603f3d011682016040523d82523d6000602084013e611f29565b606091505b508051600003611f4e5760405160e560020a62461bcd02815260040161075990612665565b805181602001fd5b600160e060020a0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611772565b600160e060020a0319811681146115f157600080fd5b600060208284031215611fb157600080fd5b813561146981611f89565b60005b83811015611fd7578181015183820152602001611fbf565b8381111561127a5750506000910152565b60008151808452612000816020860160208601611fbc565b601f01601f19169290920160200192915050565b6020815260006114696020830184611fe8565b60006020828403121561203957600080fd5b5035919050565b600160a060020a03811681146115f157600080fd5b6000806040838503121561206857600080fd5b823561207381612040565b946020939093013593505050565b60008060006060848603121561209657600080fd5b83356120a181612040565b925060208401356120b181612040565b929592945050506040919091013590565b6000602082840312156120d457600080fd5b813561146981612040565b803560ff81168114611caf57600080fd5b60006020828403121561210257600080fd5b611469826120df565b6000806040838503121561211e57600080fd5b823561212981612040565b9150612137602084016120df565b90509250929050565b80151581146115f157600080fd5b6000806040838503121561216157600080fd5b823561216c81612040565b9150602083013561217c81612140565b809150509250929050565b60e060020a634e487b7102600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156121c6576121c6612187565b6040525050565b600060208083850312156121e057600080fd5b823567ffffffffffffffff808211156121f857600080fd5b818501915085601f83011261220c57600080fd5b81358181111561221e5761221e612187565b8381029150604051612232858401826121a0565b8181529183018401918481018884111561224b57600080fd5b938501935b838510156122675784358152938501938501612250565b50979650505050505050565b6000806000806080858703121561228957600080fd5b843561229481612040565b93506020858101356122a581612040565b935060408601359250606086013567ffffffffffffffff808211156122c957600080fd5b818801915088601f8301126122dd57600080fd5b8135818111156122ef576122ef612187565b6040519150612307601f8201601f19168501836121a0565b808252898482850101111561231b57600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561234e57600080fd5b823561235981612040565b9150602083013561217c81612040565b60028104600182168061237d57607f821691505b602082108103611cad5760e060020a634e487b7102600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60e060020a634e487b7102600052601160045260246000fd5b6000821982111561245e5761245e612432565b500190565b60208082526025908201527f4d696e7420776f756c6420657863656564206d617820737570706c79206f662060408201527f6c616e6473000000000000000000000000000000000000000000000000000000606082015260800190565b600060ff821660ff81036124d6576124d6612432565b60010192915050565b60008160001904831182151516156124f9576124f9612432565b500290565b60006020828403121561251057600080fd5b815161146981612140565b60e060020a634e487b7102600052603260045260246000fd5b60008351612546818460208801611fbc565b83519083019061255a818360208801611fbc565b01949350505050565b60008282101561257557612575612432565b500390565b60006020828403121561258c57600080fd5b815161146981612040565b600060033d11156125b45760046000803e60e060020a6000510490505b90565b600060443d10156125c55790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156125f557505050505090565b828501915081518181111561260d5750505050505090565b843d87010160208285010111156126275750505050505090565b612636602082860101876121a0565b509095945050505050565b6000806040838503121561265457600080fd5b505080516020909101519092909150565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b6000600182016126d4576126d4612432565b5060010190565b60e060020a634e487b7102600052601260045260246000fd5b600082612703576127036126db565b500490565b600082612717576127176126db565b500690565b6000600160a060020a0380871683528086166020840152508360408301526080606083015261274e6080830184611fe8565b9695505050505050565b60006020828403121561276a57600080fd5b815161146981611f8956fe68747470733a2f2f6d657461646174612e726963686d656b612e636f6d2f6c616e647370616365736869702fa2646970667358221220cb9ca602e4a84109034f681abf13bb5e6f8c72ccb426eb576b0148b4009136ef64736f6c634300080d0033

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

000000000000000000000000980d58c980b41e780f940d8cbf3bc64674fe1bd1000000000000000000000000f702d2c8f29d95b9a80e58d02cabb2396329c72a

-----Decoded View---------------
Arg [0] : serumContractAddress (address): 0x980d58C980b41E780F940D8CbF3bC64674FE1bD1
Arg [1] : richMekaContractAddress (address): 0xF702d2C8F29d95B9A80e58D02cAbb2396329C72a

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000980d58c980b41e780f940d8cbf3bc64674fe1bd1
Arg [1] : 000000000000000000000000f702d2c8f29d95b9a80e58d02cabb2396329c72a


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.