false
false

Contract Address Details

0xeb998e6a7d552e94a6deae70c47cc562ac0a30ae

Contract Name
LandImplementation
Creator
0x4cbbe9–5bb1f1 at 0x77a7df–cb5ece
Implementation
0x0000000000000000000000000000000000000000
Balance
0 Xai ( )
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
60269306
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
LandImplementation




Optimization enabled
true
Compiler version
v0.8.19+commit.7dd6d404




Optimization runs
999999
EVM Version
paris




Verified at
2024-06-12T23:17:02.121964Z

src/implementations/LandImplementation.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;

import {CutERC721Diamond} from '../../lib/@lagunagames/cu-tokens/src/implementation/CutERC721Diamond.sol';

/// @title Dummy "implementation" contract for LG Diamond interface for ERC-1967 compatibility
/// @dev adapted from https://github.com/zdenham/diamond-etherscan?tab=readme-ov-file
/// @dev This interface is used internally to call endpoints on a deployed diamond cluster.
contract LandImplementation is CutERC721Diamond {
    event DNAUpdated(uint256 tokenId, uint256 dna);
    event LandLockedIntoGame(uint256 tokenId, address locker);
    event LandLockedIntoGameV2(uint256 indexed tokenId, address indexed owner, address locker);
    event LandUnlockedOutOfGame(uint256 tokenId, address locker);
    event LandUnlockedOutOfGameV2(uint256 indexed tokenId, address indexed owner, address locker);
    event LandUnlockedOutOfGameForcefully(uint256 tokenId, address locker);
    event LandMinted(uint8 indexed landType, uint256 tokenId, address owner);
    event BeginLVMMinting(uint256 indexed tokenId, string indexed fullName, uint256 indexed landType);

    function lockLandIntoGame(uint256 tokenId) external {}
    function unlockLandOutOfGameGenerateMessageHash(
        uint256 tokenId,
        string memory tokenURI,
        uint256 _level,
        uint256 requestId,
        uint256 blockDeadline
    ) public view returns (bytes32) {}
    function unlockLandOutOfGameWithSignature(
        uint256 tokenId,
        string calldata tokenURI,
        uint256 _level,
        uint256 requestId,
        uint256 blockDeadline,
        bytes memory signature
    ) public {}
    function landIsTransferrable(uint256 tokenId) public view returns (bool) {}
    function paymentToken() external view returns (address) {}
    function getLandTypeByTokenId(uint256 tokenId) external view returns (uint8) {}
    function changeContractURI(string memory _contractURI) public {}
    function changeLicenseURI(string memory _licenseURI) public {}
    function getNumMintedTokensByLandType()
        external
        view
        returns (
            uint256 mythic,
            uint256 rareLight,
            uint256 rareWonder,
            uint256 rareMystery,
            uint256 commonHeart,
            uint256 commonCloud,
            uint256 commonFlower,
            uint256 commonCandy,
            uint256 commonCrystal,
            uint256 commonMoon
        )
    {}
    function getLandInventory() external view returns (uint256[2][13] memory) {}
    function beginKeystoneToLand(
        uint256 price,
        uint8 landType,
        uint256 slippage
    ) external returns (uint256, string memory) {}
    function batchFinishMinting(uint256[] calldata tokenIds, string[] calldata tokenURIs) external {}
    function getMaxLandByLandType(uint8 landType) external view returns (uint256) {}
    function getCommonOwedRBW() external view returns (uint256) {}
    function getRareOwedRBW() external view returns (uint256) {}
    function getMythicOwedRBW() external view returns (uint256) {}
    function getOwedUNIM() external view returns (uint256) {}
    function getLandVendingStartingIndexByLandType(uint8 landType) external view returns (uint256) {}
    function getKeystonePoolIdByLandType(uint8 landType) external view returns (uint256) {}

    function getFirstPhaseQuantityByLandType(uint8 landType) external view returns (uint256) {}

    function getSecondPhaseQuantityByLandType(uint8 landType) external view returns (uint256) {}

    function getBeginningByLandTypeAndPhase(uint8 landType, uint256 phase) external view returns (uint256) {}

    function getEndByLandTypeAndPhase(uint8 landType, uint256 phase) external view returns (uint256) {}

    function getCurrentLandByLandType(uint8 landType) external view returns (uint256) {}

    function getDefaultTokenURIByLandType(uint8 landType) external view returns (string memory) {}
    function getLandMetaData(
        uint256 _tokenId
    )
        external
        view
        returns (
            string memory tokenURI,
            uint8 origin,
            bool gameLocked,
            bool limitedEdition,
            uint8 rarity,
            uint16 landType,
            uint8 class,
            uint8 classGroup,
            uint8 level,
            string memory fullName,
            bool mythic
        )
    {}
    function getAllLandIdsForOwner(address _owner) external view returns (uint256[] memory) {}
    function getLandsByOwner(
        address _owner,
        uint32 _pageNumber
    )
        external
        view
        returns (
            uint256[] memory tokenIds,
            uint16[] memory landTypes,
            string[] memory names,
            bool[] memory gameLocked,
            bool moreEntriesExist
        )
    {}
    function lookupFirstName(uint256 _nameId) external view returns (string memory) {}

    function lookupMiddleName(uint256 _nameId) external view returns (string memory) {}

    function lookupLastName(uint256 _nameId) external view returns (string memory) {}

    function getFullName(uint256 _tokenId) external view returns (string memory) {}

    function getFullNameFromDNA(uint256 _dna) public view returns (string memory) {}
}
        

lib/@lagunagames/cu-tokens/lib/@lagunagames/lg-diamond-template/src/diamond/CutDiamond.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import {IDiamondCut} from '../interfaces/IDiamondCut.sol';
import {IDiamondLoupe} from '../interfaces/IDiamondLoupe.sol';
import {IERC165} from '../interfaces/IERC165.sol';
import {LibSupportsInterface} from '../libraries/LibSupportsInterface.sol';

/// @title Dummy "implementation" contract for LG Diamond interface for ERC-1967 compatibility
/// @dev adapted from https://github.com/zdenham/diamond-etherscan?tab=readme-ov-file
/// @dev This interface is used internally to call endpoints on a deployed diamond cluster.
contract CutDiamond is IERC165 {
    /// @notice Query if a contract implements an interface
    /// @param interfaceID The interface identifier, as specified in ERC-165
    /// @dev Interface identification is specified in ERC-165. This function
    ///  uses less than 30,000 gas.
    /// @return `true` if the contract implements `interfaceID` and
    ///  `interfaceID` is not 0xffffffff, `false` otherwise
    function supportsInterface(bytes4 interfaceID) external pure returns (bool) {
        return (interfaceID == type(IERC165).interfaceId);
    }

    /// @notice Add/replace/remove any number of functions and optionally execute
    ///         a function with delegatecall
    /// @param _diamondCut Contains the facet addresses and function selectors
    /// @param _init The address of the contract or facet to execute _calldata
    /// @param _calldata A function call, including function selector and arguments
    ///                  _calldata is executed with delegatecall on _init
    function diamondCut(
        IDiamondCut.FacetCut[] calldata _diamondCut,
        address _init,
        bytes calldata _calldata
    ) external {}

    /// @notice Add/replace/remove any number of functions and optionally execute
    ///         a function with delegatecall
    /// @dev This is a convenience implementation of the above
    /// @param _diamondCut Contains the facet addresses and function selectors
    function diamondCut(IDiamondCut.FacetCut[] calldata _diamondCut) external {}

    /// @notice Removes one selector from the Diamond, using DiamondCut
    /// @param selector - The byte4 signature for a method selector to remove
    /// @custom:emits FacetCutAction
    function cutSelector(bytes4 selector) external {}

    /// @notice Removes one selector from the Diamond, using removeFunction()
    /// @param selector - The byte4 signature for a method selector to remove
    function deleteSelector(bytes4 selector) external {}

    /// @notice Removes many selectors from the Diamond, using DiamondCut
    /// @param selectors - Array of byte4 signatures for method selectors to remove
    /// @custom:emits FacetCutAction
    function cutSelectors(bytes4[] memory selectors) external {}

    /// @notice Removes many selectors from the Diamond, using removeFunctions()
    /// @param selectors - Array of byte4 signatures for method selectors to remove
    function deleteSelectors(bytes4[] memory selectors) external {}

    /// @notice Removes any selectors from the Diamond that come from a target
    /// @notice contract address, using DiamondCut.
    /// @param facet - The address of the Facet smart contract to remove
    /// @custom:emits FacetCutAction
    function cutFacet(address facet) external {}

    /// @notice Gets all facets and their selectors.
    /// @return facets_ Facet
    function facets() external view returns (IDiamondLoupe.Facet[] memory facets_) {}

    /// @notice Gets all the function selectors provided by a facet.
    /// @param _facet The facet address.
    /// @return facetFunctionSelectors_
    function facetFunctionSelectors(address _facet) external view returns (bytes4[] memory facetFunctionSelectors_) {}

    /// @notice Get all the facet addresses used by a diamond.
    /// @return facetAddresses_
    function facetAddresses() external view returns (address[] memory facetAddresses_) {}

    /// @notice Gets the facet that supports the given selector.
    /// @dev If facet is not found return address(0).
    /// @param _functionSelector The function selector.
    /// @return facetAddress_ The facet address.
    function facetAddress(bytes4 _functionSelector) external view returns (address facetAddress_) {}

    /// @notice Get the address of the owner
    /// @return The address of the owner.
    function owner() external view returns (address) {}

    /// @notice Set the address of the new owner of the contract
    /// @dev Set _newOwner to address(0) to renounce any ownership.
    /// @param _newOwner The address of the new owner of the contract
    function transferOwnership(address _newOwner) external {}

    /// @notice Set the dummy "implementation" contract address
    /// @custom:emits Upgraded
    function setImplementation(address _implementation) external {}

    /// @notice Get the dummy "implementation" contract address
    /// @return The dummy "implementation" contract address
    function implementation() external view returns (address) {}

    /// @notice Set whether an interface is implemented
    /// @dev Only the contract owner can call this function
    /// @param interfaceID The interface identifier, as specified in ERC-165
    /// @param implemented `true` if the contract implements `interfaceID`
    function setSupportsInterface(bytes4 interfaceID, bool implemented) external {}

    /// @notice Set a list of interfaces as implemented or not
    /// @dev Only the contract owner can call this function
    /// @param interfaceIDs The interface identifiers, as specified in ERC-165
    /// @param allImplemented `true` if the contract implements all interfaces
    function setSupportsInterfaces(bytes4[] calldata interfaceIDs, bool allImplemented) external {}

    /// @notice Returns a list of interfaces that have (ever) been supported
    /// @return The list of interfaces
    function interfaces() external view returns (LibSupportsInterface.KnownInterface[] memory) {}
}
          

lib/@lagunagames/cu-tokens/lib/@lagunagames/lg-diamond-template/src/interfaces/IDiamondCut.sol

//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535
/******************************************************************************/

interface IDiamondCut {
    enum FacetCutAction {
        Add,
        Replace,
        Remove
    }
    // Add=0, Replace=1, Remove=2

    struct FacetCut {
        address facetAddress;
        FacetCutAction action;
        bytes4[] functionSelectors;
    }

    /// @notice Add/replace/remove any number of functions and optionally execute
    ///         a function with delegatecall
    /// @param _diamondCut Contains the facet addresses and function selectors
    /// @param _init The address of the contract or facet to execute _calldata
    /// @param _calldata A function call, including function selector and arguments
    ///                  _calldata is executed with delegatecall on _init
    function diamondCut(FacetCut[] calldata _diamondCut, address _init, bytes calldata _calldata) external;

    event DiamondCut(FacetCut[] _diamondCut, address _init, bytes _calldata);
}
          

lib/@lagunagames/cu-tokens/lib/@lagunagames/lg-diamond-template/src/interfaces/IDiamondLoupe.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

// Adapted from the Diamond 3 reference implementation by Nick Mudge:
// https://github.com/mudgen/diamond-3-hardhat

// A loupe is a small magnifying glass used to look at diamonds.
// These functions look at diamonds
interface IDiamondLoupe {
    /// These functions are expected to be called frequently
    /// by tools.

    struct Facet {
        address facetAddress;
        bytes4[] functionSelectors;
    }

    /// @notice Gets all facet addresses and their four byte function selectors.
    /// @return facets_ Facet
    function facets() external view returns (Facet[] memory facets_);

    /// @notice Gets all the function selectors supported by a specific facet.
    /// @param _facet The facet address.
    /// @return facetFunctionSelectors_
    function facetFunctionSelectors(address _facet) external view returns (bytes4[] memory facetFunctionSelectors_);

    /// @notice Get all the facet addresses used by a diamond.
    /// @return facetAddresses_
    function facetAddresses() external view returns (address[] memory facetAddresses_);

    /// @notice Gets the facet that supports the given selector.
    /// @dev If facet is not found return address(0).
    /// @param _functionSelector The function selector.
    /// @return facetAddress_ The facet address.
    function facetAddress(bytes4 _functionSelector) external view returns (address facetAddress_);
}
          

lib/@lagunagames/cu-tokens/lib/@lagunagames/lg-diamond-template/src/interfaces/IERC165.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

/// @title ERC-165 Standard Interface Detection
/// @dev https://eips.ethereum.org/EIPS/eip-165
interface IERC165 {
    /// @notice Query if a contract implements an interface
    /// @param interfaceID The interface identifier, as specified in ERC-165
    /// @dev Interface identification is specified in ERC-165. This function
    ///  uses less than 30,000 gas.
    /// @return `true` if the contract implements `interfaceID` and
    ///  `interfaceID` is not 0xffffffff, `false` otherwise
    function supportsInterface(bytes4 interfaceID) external view returns (bool);
}
          

lib/@lagunagames/cu-tokens/lib/@lagunagames/lg-diamond-template/src/libraries/LibContractOwner.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

/// @title Library for the common LG implementation of ERC-173 Contract Ownership Standard
/// @author [email protected]
/// @custom:storage-location erc1967:eip1967.proxy.admin
library LibContractOwner {
    error CallerIsNotContractOwner();

    /// @notice This emits when ownership of a contract changes.
    /// @dev ERC-173
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /// @notice Emitted when the admin account has changed.
    /// @dev ERC-1967
    event AdminChanged(address previousAdmin, address newAdmin);

    //  @dev Standard storage slot for the ERC-1967 admin address
    //  @dev bytes32(uint256(keccak256('eip1967.proxy.admin')) - 1)
    bytes32 private constant ADMIN_SLOT_POSITION = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    struct LibOwnerStorage {
        address contractOwner;
    }

    /// @notice Storage slot for Contract Owner state data
    function ownerStorage() internal pure returns (LibOwnerStorage storage storageSlot) {
        bytes32 position = ADMIN_SLOT_POSITION;

        // solhint-disable-next-line no-inline-assembly
        assembly {
            storageSlot.slot := position
        }
    }

    /// @notice Sets the contract owner
    /// @param newOwner The new owner
    /// @custom:emits OwnershipTransferred
    function setContractOwner(address newOwner) internal {
        LibOwnerStorage storage ls = ownerStorage();
        address previousOwner = ls.contractOwner;
        ls.contractOwner = newOwner;
        emit OwnershipTransferred(previousOwner, newOwner);
        emit AdminChanged(previousOwner, newOwner);
    }

    /// @notice Gets the contract owner wallet
    /// @return owner The contract owner
    function contractOwner() internal view returns (address owner) {
        owner = ownerStorage().contractOwner;
    }

    /// @notice Ensures that the caller is the contract owner, or throws an error.
    /// @custom:throws LibAccess: Must be contract owner
    function enforceIsContractOwner() internal view {
        if (msg.sender != ownerStorage().contractOwner) revert CallerIsNotContractOwner();
    }
}
          

lib/@lagunagames/cu-tokens/lib/@lagunagames/lg-diamond-template/src/libraries/LibSupportsInterface.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;

import {LibContractOwner} from '../libraries/LibContractOwner.sol';

/// @title Library for the common LG implementation of ERC-165
/// @author [email protected]
/// @custom:storage-location erc7201:games.laguna.LibSupportsInterface
library LibSupportsInterface {
    bytes32 public constant SUPPORTS_INTERFACE_STORAGE_POSITION =
        keccak256(abi.encode(uint256(keccak256('games.laguna.LibSupportsInterface')) - 1)) & ~bytes32(uint256(0xff));

    struct KnownInterface {
        bytes4 selector;
        bool supported;
    }

    struct SupportsInterfaceStorage {
        mapping(bytes4 selector => bool supported) supportedInterfaces;
        bytes4[] interfaces;
    }

    /// @notice Storage slot for SupportsInterface state data
    function supportsInterfaceStorage() internal pure returns (SupportsInterfaceStorage storage storageSlot) {
        bytes32 position = SUPPORTS_INTERFACE_STORAGE_POSITION;

        // solhint-disable-next-line no-inline-assembly
        assembly {
            storageSlot.slot := position
        }
    }

    /// @notice Checks if a contract implements an interface
    /// @param _interfaceId Interface ID to check
    /// @return true if the contract implements the interface
    function supportsInterface(bytes4 _interfaceId) internal view returns (bool) {
        return supportsInterfaceStorage().supportedInterfaces[_interfaceId];
    }

    /// @notice Sets whether a contract implements an interface
    /// @param _interfaceId Interface ID to set
    /// @param _implemented true if the contract implements the interface
    function setSupportsInterface(bytes4 _interfaceId, bool _implemented) internal {
        SupportsInterfaceStorage storage s = supportsInterfaceStorage();

        if (_implemented && !s.supportedInterfaces[_interfaceId]) {
            s.interfaces.push(_interfaceId);
        }

        s.supportedInterfaces[_interfaceId] = _implemented;
    }

    /// @notice Returns the list of interfaces this contract has supported, and whether they are supported currently.
    /// @return The list of interfaces
    function getKnownInterfaces() internal view returns (KnownInterface[] memory) {
        SupportsInterfaceStorage storage s = supportsInterfaceStorage();
        KnownInterface[] memory interfaces = new KnownInterface[](s.interfaces.length);
        for (uint i = 0; i < s.interfaces.length; ++i) {
            interfaces[i] = KnownInterface({
                selector: s.interfaces[i],
                supported: s.supportedInterfaces[s.interfaces[i]]
            });
        }
        return interfaces;
    }

    /// @notice Calculate the interface ID for a list of function selectors
    /// @dev Per ERC-165: "We define the interface identifier as the XOR of all function selectors in the interface"
    /// @param functionSelectors The list of function selectors in the interface
    /// @return interfaceId The ERC-165 interface ID
    function calculateInterfaceId(bytes4[] memory functionSelectors) internal pure returns (bytes4 interfaceId) {
        for (uint256 i = 0; i < functionSelectors.length; ++i) {
            interfaceId ^= functionSelectors[i];
        }
    }
}
          

lib/@lagunagames/cu-tokens/src/implementation/CutERC721Diamond.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import {CutDiamond} from '../../lib/@lagunagames/lg-diamond-template/src/diamond/CutDiamond.sol';
import {ERC721Fragment} from './ERC721Fragment.sol';

/// @title Dummy "implementation" contract for LG Diamond interface for ERC-1967 compatibility
/// @dev adapted from https://github.com/zdenham/diamond-etherscan?tab=readme-ov-file
/// @dev This interface is used internally to call endpoints on a deployed diamond cluster.
contract CutERC721Diamond is CutDiamond, ERC721Fragment {

}
          

lib/@lagunagames/cu-tokens/src/implementation/ERC721Fragment.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

/// @title Dummy "implementation" contract for LG Diamond interface for ERC-1967 compatibility
/// @dev adapted from https://github.com/zdenham/diamond-etherscan?tab=readme-ov-file
/// @dev This interface is used internally to call endpoints on a deployed diamond cluster.
contract ERC721Fragment {

    /**
     * @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 This event emits when the metadata of a token is changed.
    /// So that the third-party platforms such as NFT market could
    /// timely update the images and related attributes of the NFT.
    event MetadataUpdate(uint256 _tokenId);

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256) {}

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256) {}

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256) {}

    /**
     * @dev Returns the URI for the contract level collection.
     * @dev See https://docs.opensea.io/docs/contract-level-metadata
     */
    function contractURI() external view returns (string memory) {}

    /**
     * @dev Reference URI for the NFT license file hosted on Arweave permaweb.
     */
    function license() external view returns (string memory) {}
}
          

Compiler Settings

{"viaIR":true,"remappings":["ds-test/=lib/forge-std/lib/ds-test/src/","forge-std/=lib/forge-std/src/","@openzeppelin-contracts/=lib/openzeppelin-contracts/"],"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers"]}},"optimizer":{"runs":999999,"enabled":true,"details":{"yulDetails":{"stackAllocation":true,"optimizerSteps":"dhfoDgvulfnTUtnIf"},"yul":true,"peephole":true,"inliner":true,"deduplicate":true,"cse":true}},"metadata":{"useLiteralContent":false,"bytecodeHash":"ipfs","appendCBOR":true},"libraries":{},"evmVersion":"paris"}
              

Contract ABI

[{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"approved","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"BatchMetadataUpdate","inputs":[{"type":"uint256","name":"_fromTokenId","internalType":"uint256","indexed":false},{"type":"uint256","name":"_toTokenId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"BeginLVMMinting","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"string","name":"fullName","internalType":"string","indexed":true},{"type":"uint256","name":"landType","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"DNAUpdated","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":false},{"type":"uint256","name":"dna","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"LandLockedIntoGame","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":false},{"type":"address","name":"locker","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"LandLockedIntoGameV2","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"locker","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"LandMinted","inputs":[{"type":"uint8","name":"landType","internalType":"uint8","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":false},{"type":"address","name":"owner","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"LandUnlockedOutOfGame","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":false},{"type":"address","name":"locker","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"LandUnlockedOutOfGameForcefully","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":false},{"type":"address","name":"locker","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"LandUnlockedOutOfGameV2","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"locker","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"MetadataUpdate","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"balance","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"batchFinishMinting","inputs":[{"type":"uint256[]","name":"tokenIds","internalType":"uint256[]"},{"type":"string[]","name":"tokenURIs","internalType":"string[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"string","name":"","internalType":"string"}],"name":"beginKeystoneToLand","inputs":[{"type":"uint256","name":"price","internalType":"uint256"},{"type":"uint8","name":"landType","internalType":"uint8"},{"type":"uint256","name":"slippage","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changeContractURI","inputs":[{"type":"string","name":"_contractURI","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changeLicenseURI","inputs":[{"type":"string","name":"_licenseURI","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"contractURI","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cutFacet","inputs":[{"type":"address","name":"facet","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cutSelector","inputs":[{"type":"bytes4","name":"selector","internalType":"bytes4"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cutSelectors","inputs":[{"type":"bytes4[]","name":"selectors","internalType":"bytes4[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deleteSelector","inputs":[{"type":"bytes4","name":"selector","internalType":"bytes4"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deleteSelectors","inputs":[{"type":"bytes4[]","name":"selectors","internalType":"bytes4[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"diamondCut","inputs":[{"type":"tuple[]","name":"_diamondCut","internalType":"struct IDiamondCut.FacetCut[]","components":[{"type":"address","name":"facetAddress","internalType":"address"},{"type":"uint8","name":"action","internalType":"enum IDiamondCut.FacetCutAction"},{"type":"bytes4[]","name":"functionSelectors","internalType":"bytes4[]"}]},{"type":"address","name":"_init","internalType":"address"},{"type":"bytes","name":"_calldata","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"diamondCut","inputs":[{"type":"tuple[]","name":"_diamondCut","internalType":"struct IDiamondCut.FacetCut[]","components":[{"type":"address","name":"facetAddress","internalType":"address"},{"type":"uint8","name":"action","internalType":"enum IDiamondCut.FacetCutAction"},{"type":"bytes4[]","name":"functionSelectors","internalType":"bytes4[]"}]}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"facetAddress_","internalType":"address"}],"name":"facetAddress","inputs":[{"type":"bytes4","name":"_functionSelector","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address[]","name":"facetAddresses_","internalType":"address[]"}],"name":"facetAddresses","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes4[]","name":"facetFunctionSelectors_","internalType":"bytes4[]"}],"name":"facetFunctionSelectors","inputs":[{"type":"address","name":"_facet","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"facets_","internalType":"struct IDiamondLoupe.Facet[]","components":[{"type":"address","name":"facetAddress","internalType":"address"},{"type":"bytes4[]","name":"functionSelectors","internalType":"bytes4[]"}]}],"name":"facets","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"}],"name":"getAllLandIdsForOwner","inputs":[{"type":"address","name":"_owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"operator","internalType":"address"}],"name":"getApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getBeginningByLandTypeAndPhase","inputs":[{"type":"uint8","name":"landType","internalType":"uint8"},{"type":"uint256","name":"phase","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getCommonOwedRBW","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getCurrentLandByLandType","inputs":[{"type":"uint8","name":"landType","internalType":"uint8"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"getDefaultTokenURIByLandType","inputs":[{"type":"uint8","name":"landType","internalType":"uint8"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getEndByLandTypeAndPhase","inputs":[{"type":"uint8","name":"landType","internalType":"uint8"},{"type":"uint256","name":"phase","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getFirstPhaseQuantityByLandType","inputs":[{"type":"uint8","name":"landType","internalType":"uint8"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"getFullName","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"getFullNameFromDNA","inputs":[{"type":"uint256","name":"_dna","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getKeystonePoolIdByLandType","inputs":[{"type":"uint8","name":"landType","internalType":"uint8"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[2][13]","name":"","internalType":"uint256[2][13]"}],"name":"getLandInventory","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"tokenURI","internalType":"string"},{"type":"uint8","name":"origin","internalType":"uint8"},{"type":"bool","name":"gameLocked","internalType":"bool"},{"type":"bool","name":"limitedEdition","internalType":"bool"},{"type":"uint8","name":"rarity","internalType":"uint8"},{"type":"uint16","name":"landType","internalType":"uint16"},{"type":"uint8","name":"class","internalType":"uint8"},{"type":"uint8","name":"classGroup","internalType":"uint8"},{"type":"uint8","name":"level","internalType":"uint8"},{"type":"string","name":"fullName","internalType":"string"},{"type":"bool","name":"mythic","internalType":"bool"}],"name":"getLandMetaData","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"getLandTypeByTokenId","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getLandVendingStartingIndexByLandType","inputs":[{"type":"uint8","name":"landType","internalType":"uint8"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"tokenIds","internalType":"uint256[]"},{"type":"uint16[]","name":"landTypes","internalType":"uint16[]"},{"type":"string[]","name":"names","internalType":"string[]"},{"type":"bool[]","name":"gameLocked","internalType":"bool[]"},{"type":"bool","name":"moreEntriesExist","internalType":"bool"}],"name":"getLandsByOwner","inputs":[{"type":"address","name":"_owner","internalType":"address"},{"type":"uint32","name":"_pageNumber","internalType":"uint32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMaxLandByLandType","inputs":[{"type":"uint8","name":"landType","internalType":"uint8"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMythicOwedRBW","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"mythic","internalType":"uint256"},{"type":"uint256","name":"rareLight","internalType":"uint256"},{"type":"uint256","name":"rareWonder","internalType":"uint256"},{"type":"uint256","name":"rareMystery","internalType":"uint256"},{"type":"uint256","name":"commonHeart","internalType":"uint256"},{"type":"uint256","name":"commonCloud","internalType":"uint256"},{"type":"uint256","name":"commonFlower","internalType":"uint256"},{"type":"uint256","name":"commonCandy","internalType":"uint256"},{"type":"uint256","name":"commonCrystal","internalType":"uint256"},{"type":"uint256","name":"commonMoon","internalType":"uint256"}],"name":"getNumMintedTokensByLandType","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getOwedUNIM","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getRareOwedRBW","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getSecondPhaseQuantityByLandType","inputs":[{"type":"uint8","name":"landType","internalType":"uint8"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"implementation","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct LibSupportsInterface.KnownInterface[]","components":[{"type":"bytes4","name":"selector","internalType":"bytes4"},{"type":"bool","name":"supported","internalType":"bool"}]}],"name":"interfaces","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"landIsTransferrable","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"license","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"lockLandIntoGame","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"lookupFirstName","inputs":[{"type":"uint256","name":"_nameId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"lookupLastName","inputs":[{"type":"uint256","name":"_nameId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"lookupMiddleName","inputs":[{"type":"uint256","name":"_nameId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"owner","internalType":"address"}],"name":"ownerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"paymentToken","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setImplementation","inputs":[{"type":"address","name":"_implementation","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSupportsInterface","inputs":[{"type":"bytes4","name":"interfaceID","internalType":"bytes4"},{"type":"bool","name":"implemented","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSupportsInterfaces","inputs":[{"type":"bytes4[]","name":"interfaceIDs","internalType":"bytes4[]"},{"type":"bool","name":"allImplemented","internalType":"bool"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceID","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenByIndex","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenOfOwnerByIndex","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"_newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"unlockLandOutOfGameGenerateMessageHash","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"string","name":"tokenURI","internalType":"string"},{"type":"uint256","name":"_level","internalType":"uint256"},{"type":"uint256","name":"requestId","internalType":"uint256"},{"type":"uint256","name":"blockDeadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unlockLandOutOfGameWithSignature","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"string","name":"tokenURI","internalType":"string"},{"type":"uint256","name":"_level","internalType":"uint256"},{"type":"uint256","name":"requestId","internalType":"uint256"},{"type":"uint256","name":"blockDeadline","internalType":"uint256"},{"type":"bytes","name":"signature","internalType":"bytes"}]}]
              

Contract Creation Code

0x60806040523461001a57604051611680610020823961168090f35b600080fdfe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146103dc578063037a63c7146103d757806304941e27146103b957806306fdde031461032857806307d51b7c146103d2578063081812fc1461039b578063095ea7b3146103cd578063178d12c2146103c857806318160ddd1461036e5780631f931c1c146103c3578063203ddcbb1461034b57806323b872dd146103b457806324c389841461036457806327522ec3146103645780632f745c59146103be5780633013ce29146103825780633246b93b146103b957806342842e0e146103b4578063465411c11461034b5780634f6ccce7146103af57806350a6b1e11461034b57806352ef6b2c146103aa57806354e7796f146103a5578063565df0d01461036e5780635699b904146103375780635757b38a146103a05780635c60da1b146103825780635fb897cc1461036e5780636352211e1461039b5780636463e3a01461030f57806366e5722b146103965780636b87d24c1461032857806370a082311461039157806376f300c31461036e57806379afa95a1461038c5780637a0ed6271461038757806381dca44a1461034b5780638da5cb5b1461038257806392df697b1461037d57806393e395391461037857806395d89b4114610328578063967de4df14610364578063a1f4a2f914610364578063a22cb46514610373578063a22e29be1461036e578063a2de7c2914610369578063a4f38f8c14610364578063a6638c0e14610314578063a858673114610364578063aaed6f391461035f578063abdf05ef1461035a578063adfca15e14610355578063b88d4fde14610350578063c87b56dd1461034b578063c9516ab31461034b578063cbd7e5e014610346578063cdffacc614610341578063cfdc2c951461033c578063d784d42614610314578063dd1292ac14610337578063debb385614610332578063e0435c0b14610332578063e57e69c61461032d578063e8a3d48514610328578063e90570b414610323578063e985e9c51461031e578063f2709f2114610319578063f2fde38b146103145763ff6f3e0b036103e1575b610c3a565b61100b565b611553565b6114be565b611471565b610654565b611461565b61142b565b610b6e565b611409565b6113e2565b6113b0565b610873565b6111e1565b61116f565b61112f565b6110a2565b6108ef565b610fe4565b6107b3565b610f43565b610f09565b610e73565b61091b565b610e54565b610d19565b610ca4565b610c80565b610700565b610b84565b610a1f565b6109c8565b610935565b6108bf565b610593565b610905565b610855565b61079d565b610786565b6106c4565b610528565b610437565b600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081165b036103e157565b9050359061041e826103e6565b565b906020828203126103e15761043491610411565b90565b346103e1576104a661049461044d366004610420565b7fffffffff00000000000000000000000000000000000000000000000000000000167f01ffc9a7000000000000000000000000000000000000000000000000000000001490565b60405191829182901515815260200190565b0390f35b909182601f830112156103e15781359167ffffffffffffffff83116103e15760200192602083028401116103e157565b90916040828403126103e157813567ffffffffffffffff81116103e157836105039184016104aa565b929093602082013567ffffffffffffffff81116103e15761052492016104aa565b9091565b346103e1576105383660046104da565b5050505061054560405190565b005b60ff811661040a565b9050359061041e82610547565b8061040a565b9050359061041e8261055d565b91906040838203126103e1576104349061058a8185610550565b93602001610563565b346103e1576104a66105af6105a9366004610570565b90611572565b6040519182918290815260200190565b60009103126103e157565b60005b8381106105dd5750506000910152565b81810151838201526020016105cd565b61060e61061760209361063f93610602815190565b80835293849260200190565b958691016105ca565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b0190565b6020808252610434929101906105ed565b346103e1576106643660046105bf565b6104a660605b60405191829182610643565b979593919a9998969492909a61014089019b60008a01610694919052565b602089015260408801526060870152608086015260a085015260c084015260e08301526101008201526101200152565b346103e1576106d43660046105bf565b604051806104a660008080808080808080808b610676565b906020828203126103e15761043491610563565b346103e1576104a661071c6107163660046106ec565b50600090565b6040519182918273ffffffffffffffffffffffffffffffffffffffff909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff811661040a565b9050359061041e82610743565b91906040838203126103e1576104349061058a818561075f565b346103e15761079636600461076c565b5050604051005b346103e1576104a66104946107163660046106ec565b346103e1576107c33660046105bf565b6104a660006105af565b909182601f830112156103e15781359167ffffffffffffffff83116103e15760200192600183028401116103e157565b91906060838203126103e157823567ffffffffffffffff81116103e157816108269185016104aa565b929093610836836020830161075f565b92604082013567ffffffffffffffff81116103e15761052492016107cd565b346103e1576108653660046107fd565b505050505061054560405190565b346103e1576104a661066a6108893660046106ec565b50606090565b90916060828403126103e1576104346108a8848461075f565b936108b6816020860161075f565b93604001610563565b346103e1576108cf36600461088f565b50505061054560405190565b906020828203126103e15761043491610550565b346103e1576104a66105af6107163660046108db565b346103e1576104a66105af6105a936600461076c565b346103e15761092b3660046105bf565b6104a6600061071c565b346103e1576104a66105af6107163660046106ec565b9061096b61096461095a845190565b8084529260200190565b9260200190565b9060005b81811061097c5750505090565b9091926109af6109a8600192865173ffffffffffffffffffffffffffffffffffffffff16815260200190565b9460200190565b92910161096f565b60208082526104349291019061094b565b346103e1576109d83660046105bf565b604051806104a66060826109b7565b80151561040a565b9050359061041e826109e7565b91906040838203126103e15761043490610a168185610411565b936020016109ef565b346103e1576107963660046109fc565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810190811067ffffffffffffffff821117610a9e57604052565b610a2f565b9061041e610ab060405190565b9283610a5e565b67ffffffffffffffff8111610a9e57602090601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160190565b90826000939282370152565b90929192610b13610b0e82610ab7565b610aa3565b938185526020850190828401116103e15761041e92610af2565b9080601f830112156103e15781602061043493359101610afe565b906020828203126103e157813567ffffffffffffffff81116103e1576104349201610b2d565b346103e157610b7e366004610b48565b50604051005b346103e157610b7e3660046106ec565b67ffffffffffffffff8111610a9e5760208091020190565b90929192610bbc610b0e82610b94565b93818552602080860192028301928184116103e157915b838310610be05750505050565b60208091610bee8486610411565b815201920191610bd3565b9080601f830112156103e15781602061043493359101610bac565b906020828203126103e157813567ffffffffffffffff81116103e1576104349201610bf9565b346103e157610b7e366004610c14565b916040838303126103e157823567ffffffffffffffff81116103e157610c75836104349286016104aa565b9390946020016109ef565b346103e1576108cf366004610c4a565b906020828203126103e1576104349161075f565b346103e1576104a66105af610716366004610c90565b919060a0838203126103e157610cd08184610563565b92602081013567ffffffffffffffff81116103e15782610cf1918301610b2d565b92610434610d028460408501610563565b93610d108160608601610563565b93608001610563565b346103e1576104a66105af610d2f366004610cba565b9392909261157c565b90610d4761096461095a845190565b9060005b818110610d585750505090565b909192610d906109a860019286517fffffffff0000000000000000000000000000000000000000000000000000000016815260200190565b929101610d4b565b805173ffffffffffffffffffffffffffffffffffffffff16825261043491604081019160200151906020818403910152610d38565b9061043491610d98565b90610ded610de3835190565b8083529160200190565b9081610dff6020830284019460200190565b926000915b838310610e1357505050505090565b90919293946020610e36610e2f83856001950387528951610dcd565b9760200190565b9301930191939290610e04565b602080825261043492910190610dd7565b346103e157610e643660046105bf565b604051806104a6606082610e43565b346103e1576104a661066a6108893660046108db565b60c0818303126103e157610e9d8282610563565b92602082013567ffffffffffffffff81116103e15783610ebe9184016107cd565b929093610ece8160408401610563565b92610edc8260608501610563565b92610eea8360808301610563565b9260a082013567ffffffffffffffff81116103e1576104349201610b2d565b346103e157610f19366004610e89565b5050505050505061054560405190565b91906040838203126103e15761043490610a16818561075f565b346103e157610796366004610f29565b610f63610f5f60029390565b9190565b6000915b838310610f745750505050565b610f876109646001928451815260200190565b92019190610f67565b9061063f81604093610f53565b610fa9610f5f600d9390565b6000915b838310610fba5750505050565b610fca6109646001928451610f90565b92019190610fad565b6103408101929161041e9190610f9d565b346103e157610ff43660046105bf565b6104a6610fff611619565b60405191829182610fd3565b346103e157610b7e366004610c90565b9b9a99989694929097959391976101608d018d808203906000015261103f916105ed565b60ff90981660208d0152151560408c0152151560608b015260ff1660808a015261ffff1660a089015260ff1660c088015260ff1660e087015260ff16610100860152848103610120860152611093916105ed565b926101400161041e9115159052565b346103e1576104a66110d16110b83660046106ec565b5060609081600080928192828092819282809281929190565b976110e79b999b97919796929695939560405190565b9b8c9b8c61101b565b90916060828403126103e1576104346111098484610563565b936108b68160208601610550565b908152604060208201819052610434929101906105ed565b346103e1576111486111423660046110f0565b91611621565b906104a661115560405190565b92839283611117565b602080825261043492910190610d38565b346103e1576104a6611185610889366004610c90565b6040519182918261115e565b906080828203126103e1576111a6818361075f565b926111b4826020850161075f565b926111c28360408301610563565b92606082013567ffffffffffffffff81116103e15761052492016107cd565b346103e157610865366004611191565b63ffffffff811661040a565b9050359061041e826111f1565b91906040838203126103e15761043490611224818561075f565b936020016111fd565b9061123c61096461095a845190565b9060005b81811061124d5750505090565b9091926112636109a86001928651815260200190565b929101611240565b9061127a61096461095a845190565b9060005b81811061128b5750505090565b9091926112a56109a8600192865161ffff16815260200190565b92910161127e565b90610434916105ed565b906112c3610de3835190565b90816112d56020830284019460200190565b926000915b8383106112e957505050505090565b90919293946020611305610e2f838560019503875289516112ad565b93019301919392906112da565b9061132161096461095a845190565b9060005b8181106113325750505090565b90919261134a6109a860019286511515815260200190565b929101611325565b9594929361139961041e9561138b60809561137d6113a79660a08d01908d600081840391015261122d565b908b820360208d015261126b565b9089820360408b01526112b7565b908782036060890152611312565b94019015159052565b346103e1576104a66113cc6113c636600461120a565b90611632565b916113d995939560405190565b95869586611352565b346103e1576104a661071c610716366004610420565b60208082526104349291019061122d565b346103e1576104a661141f610889366004610c90565b604051918291826113f8565b346103e157610b7e366004610420565b906020828203126103e157813567ffffffffffffffff81116103e15761052492016104aa565b346103e15761079636600461143b565b346103e1576104a66114876107163660046106ec565b6040519182918260ff909116815260200190565b91906040838203126103e157610434906114b5818561075f565b9360200161075f565b346103e1576104a66104946105a936600461149b565b906114e361096461095a845190565b9060005b8181106114f45750505090565b90919261153a6109a8600192865180517fffffffff0000000000000000000000000000000000000000000000000000000016825260209081015115159082015260400190565b9291016114e7565b6020808252610434929101906114d4565b346103e1576115633660046105bf565b604051806104a6606082611542565b5050610434600090565b5050505050610434600090565b67ffffffffffffffff8111610a9e5760200290565b610b0e61043491611589565b369037565b9061041e6115c56115bf8461159e565b93611589565b836115aa565b61043460026115af565b60005b8281106115e457505050565b6020906115ef6115cb565b81840152016115d8565b9061041e6116096115bf8461159e565b836115d5565b610434600d6115f9565b61043461160f565b50505061162c600090565b90606090565b505061163c606090565b90818091819061043460009056fea26469706673582212205949407f96df900bb665b31b2960bd69339538e247a45ca0f62122fededd7bb164736f6c63430008130033

Deployed ByteCode

0x6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146103dc578063037a63c7146103d757806304941e27146103b957806306fdde031461032857806307d51b7c146103d2578063081812fc1461039b578063095ea7b3146103cd578063178d12c2146103c857806318160ddd1461036e5780631f931c1c146103c3578063203ddcbb1461034b57806323b872dd146103b457806324c389841461036457806327522ec3146103645780632f745c59146103be5780633013ce29146103825780633246b93b146103b957806342842e0e146103b4578063465411c11461034b5780634f6ccce7146103af57806350a6b1e11461034b57806352ef6b2c146103aa57806354e7796f146103a5578063565df0d01461036e5780635699b904146103375780635757b38a146103a05780635c60da1b146103825780635fb897cc1461036e5780636352211e1461039b5780636463e3a01461030f57806366e5722b146103965780636b87d24c1461032857806370a082311461039157806376f300c31461036e57806379afa95a1461038c5780637a0ed6271461038757806381dca44a1461034b5780638da5cb5b1461038257806392df697b1461037d57806393e395391461037857806395d89b4114610328578063967de4df14610364578063a1f4a2f914610364578063a22cb46514610373578063a22e29be1461036e578063a2de7c2914610369578063a4f38f8c14610364578063a6638c0e14610314578063a858673114610364578063aaed6f391461035f578063abdf05ef1461035a578063adfca15e14610355578063b88d4fde14610350578063c87b56dd1461034b578063c9516ab31461034b578063cbd7e5e014610346578063cdffacc614610341578063cfdc2c951461033c578063d784d42614610314578063dd1292ac14610337578063debb385614610332578063e0435c0b14610332578063e57e69c61461032d578063e8a3d48514610328578063e90570b414610323578063e985e9c51461031e578063f2709f2114610319578063f2fde38b146103145763ff6f3e0b036103e1575b610c3a565b61100b565b611553565b6114be565b611471565b610654565b611461565b61142b565b610b6e565b611409565b6113e2565b6113b0565b610873565b6111e1565b61116f565b61112f565b6110a2565b6108ef565b610fe4565b6107b3565b610f43565b610f09565b610e73565b61091b565b610e54565b610d19565b610ca4565b610c80565b610700565b610b84565b610a1f565b6109c8565b610935565b6108bf565b610593565b610905565b610855565b61079d565b610786565b6106c4565b610528565b610437565b600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081165b036103e157565b9050359061041e826103e6565b565b906020828203126103e15761043491610411565b90565b346103e1576104a661049461044d366004610420565b7fffffffff00000000000000000000000000000000000000000000000000000000167f01ffc9a7000000000000000000000000000000000000000000000000000000001490565b60405191829182901515815260200190565b0390f35b909182601f830112156103e15781359167ffffffffffffffff83116103e15760200192602083028401116103e157565b90916040828403126103e157813567ffffffffffffffff81116103e157836105039184016104aa565b929093602082013567ffffffffffffffff81116103e15761052492016104aa565b9091565b346103e1576105383660046104da565b5050505061054560405190565b005b60ff811661040a565b9050359061041e82610547565b8061040a565b9050359061041e8261055d565b91906040838203126103e1576104349061058a8185610550565b93602001610563565b346103e1576104a66105af6105a9366004610570565b90611572565b6040519182918290815260200190565b60009103126103e157565b60005b8381106105dd5750506000910152565b81810151838201526020016105cd565b61060e61061760209361063f93610602815190565b80835293849260200190565b958691016105ca565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01690565b0190565b6020808252610434929101906105ed565b346103e1576106643660046105bf565b6104a660605b60405191829182610643565b979593919a9998969492909a61014089019b60008a01610694919052565b602089015260408801526060870152608086015260a085015260c084015260e08301526101008201526101200152565b346103e1576106d43660046105bf565b604051806104a660008080808080808080808b610676565b906020828203126103e15761043491610563565b346103e1576104a661071c6107163660046106ec565b50600090565b6040519182918273ffffffffffffffffffffffffffffffffffffffff909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff811661040a565b9050359061041e82610743565b91906040838203126103e1576104349061058a818561075f565b346103e15761079636600461076c565b5050604051005b346103e1576104a66104946107163660046106ec565b346103e1576107c33660046105bf565b6104a660006105af565b909182601f830112156103e15781359167ffffffffffffffff83116103e15760200192600183028401116103e157565b91906060838203126103e157823567ffffffffffffffff81116103e157816108269185016104aa565b929093610836836020830161075f565b92604082013567ffffffffffffffff81116103e15761052492016107cd565b346103e1576108653660046107fd565b505050505061054560405190565b346103e1576104a661066a6108893660046106ec565b50606090565b90916060828403126103e1576104346108a8848461075f565b936108b6816020860161075f565b93604001610563565b346103e1576108cf36600461088f565b50505061054560405190565b906020828203126103e15761043491610550565b346103e1576104a66105af6107163660046108db565b346103e1576104a66105af6105a936600461076c565b346103e15761092b3660046105bf565b6104a6600061071c565b346103e1576104a66105af6107163660046106ec565b9061096b61096461095a845190565b8084529260200190565b9260200190565b9060005b81811061097c5750505090565b9091926109af6109a8600192865173ffffffffffffffffffffffffffffffffffffffff16815260200190565b9460200190565b92910161096f565b60208082526104349291019061094b565b346103e1576109d83660046105bf565b604051806104a66060826109b7565b80151561040a565b9050359061041e826109e7565b91906040838203126103e15761043490610a168185610411565b936020016109ef565b346103e1576107963660046109fc565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810190811067ffffffffffffffff821117610a9e57604052565b610a2f565b9061041e610ab060405190565b9283610a5e565b67ffffffffffffffff8111610a9e57602090601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160190565b90826000939282370152565b90929192610b13610b0e82610ab7565b610aa3565b938185526020850190828401116103e15761041e92610af2565b9080601f830112156103e15781602061043493359101610afe565b906020828203126103e157813567ffffffffffffffff81116103e1576104349201610b2d565b346103e157610b7e366004610b48565b50604051005b346103e157610b7e3660046106ec565b67ffffffffffffffff8111610a9e5760208091020190565b90929192610bbc610b0e82610b94565b93818552602080860192028301928184116103e157915b838310610be05750505050565b60208091610bee8486610411565b815201920191610bd3565b9080601f830112156103e15781602061043493359101610bac565b906020828203126103e157813567ffffffffffffffff81116103e1576104349201610bf9565b346103e157610b7e366004610c14565b916040838303126103e157823567ffffffffffffffff81116103e157610c75836104349286016104aa565b9390946020016109ef565b346103e1576108cf366004610c4a565b906020828203126103e1576104349161075f565b346103e1576104a66105af610716366004610c90565b919060a0838203126103e157610cd08184610563565b92602081013567ffffffffffffffff81116103e15782610cf1918301610b2d565b92610434610d028460408501610563565b93610d108160608601610563565b93608001610563565b346103e1576104a66105af610d2f366004610cba565b9392909261157c565b90610d4761096461095a845190565b9060005b818110610d585750505090565b909192610d906109a860019286517fffffffff0000000000000000000000000000000000000000000000000000000016815260200190565b929101610d4b565b805173ffffffffffffffffffffffffffffffffffffffff16825261043491604081019160200151906020818403910152610d38565b9061043491610d98565b90610ded610de3835190565b8083529160200190565b9081610dff6020830284019460200190565b926000915b838310610e1357505050505090565b90919293946020610e36610e2f83856001950387528951610dcd565b9760200190565b9301930191939290610e04565b602080825261043492910190610dd7565b346103e157610e643660046105bf565b604051806104a6606082610e43565b346103e1576104a661066a6108893660046108db565b60c0818303126103e157610e9d8282610563565b92602082013567ffffffffffffffff81116103e15783610ebe9184016107cd565b929093610ece8160408401610563565b92610edc8260608501610563565b92610eea8360808301610563565b9260a082013567ffffffffffffffff81116103e1576104349201610b2d565b346103e157610f19366004610e89565b5050505050505061054560405190565b91906040838203126103e15761043490610a16818561075f565b346103e157610796366004610f29565b610f63610f5f60029390565b9190565b6000915b838310610f745750505050565b610f876109646001928451815260200190565b92019190610f67565b9061063f81604093610f53565b610fa9610f5f600d9390565b6000915b838310610fba5750505050565b610fca6109646001928451610f90565b92019190610fad565b6103408101929161041e9190610f9d565b346103e157610ff43660046105bf565b6104a6610fff611619565b60405191829182610fd3565b346103e157610b7e366004610c90565b9b9a99989694929097959391976101608d018d808203906000015261103f916105ed565b60ff90981660208d0152151560408c0152151560608b015260ff1660808a015261ffff1660a089015260ff1660c088015260ff1660e087015260ff16610100860152848103610120860152611093916105ed565b926101400161041e9115159052565b346103e1576104a66110d16110b83660046106ec565b5060609081600080928192828092819282809281929190565b976110e79b999b97919796929695939560405190565b9b8c9b8c61101b565b90916060828403126103e1576104346111098484610563565b936108b68160208601610550565b908152604060208201819052610434929101906105ed565b346103e1576111486111423660046110f0565b91611621565b906104a661115560405190565b92839283611117565b602080825261043492910190610d38565b346103e1576104a6611185610889366004610c90565b6040519182918261115e565b906080828203126103e1576111a6818361075f565b926111b4826020850161075f565b926111c28360408301610563565b92606082013567ffffffffffffffff81116103e15761052492016107cd565b346103e157610865366004611191565b63ffffffff811661040a565b9050359061041e826111f1565b91906040838203126103e15761043490611224818561075f565b936020016111fd565b9061123c61096461095a845190565b9060005b81811061124d5750505090565b9091926112636109a86001928651815260200190565b929101611240565b9061127a61096461095a845190565b9060005b81811061128b5750505090565b9091926112a56109a8600192865161ffff16815260200190565b92910161127e565b90610434916105ed565b906112c3610de3835190565b90816112d56020830284019460200190565b926000915b8383106112e957505050505090565b90919293946020611305610e2f838560019503875289516112ad565b93019301919392906112da565b9061132161096461095a845190565b9060005b8181106113325750505090565b90919261134a6109a860019286511515815260200190565b929101611325565b9594929361139961041e9561138b60809561137d6113a79660a08d01908d600081840391015261122d565b908b820360208d015261126b565b9089820360408b01526112b7565b908782036060890152611312565b94019015159052565b346103e1576104a66113cc6113c636600461120a565b90611632565b916113d995939560405190565b95869586611352565b346103e1576104a661071c610716366004610420565b60208082526104349291019061122d565b346103e1576104a661141f610889366004610c90565b604051918291826113f8565b346103e157610b7e366004610420565b906020828203126103e157813567ffffffffffffffff81116103e15761052492016104aa565b346103e15761079636600461143b565b346103e1576104a66114876107163660046106ec565b6040519182918260ff909116815260200190565b91906040838203126103e157610434906114b5818561075f565b9360200161075f565b346103e1576104a66104946105a936600461149b565b906114e361096461095a845190565b9060005b8181106114f45750505090565b90919261153a6109a8600192865180517fffffffff0000000000000000000000000000000000000000000000000000000016825260209081015115159082015260400190565b9291016114e7565b6020808252610434929101906114d4565b346103e1576115633660046105bf565b604051806104a6606082611542565b5050610434600090565b5050505050610434600090565b67ffffffffffffffff8111610a9e5760200290565b610b0e61043491611589565b369037565b9061041e6115c56115bf8461159e565b93611589565b836115aa565b61043460026115af565b60005b8281106115e457505050565b6020906115ef6115cb565b81840152016115d8565b9061041e6116096115bf8461159e565b836115d5565b610434600d6115f9565b61043461160f565b50505061162c600090565b90606090565b505061163c606090565b90818091819061043460009056fea26469706673582212205949407f96df900bb665b31b2960bd69339538e247a45ca0f62122fededd7bb164736f6c63430008130033