ETH Price: $2,040.02 (+5.74%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer From220357952025-03-13 5:14:59354 days ago1741842899IN
Fake_Phishing297896
0 ETH0.000062690.55224195
Set Approval For...158538162022-10-29 12:48:471220 days ago1667047727IN
Fake_Phishing297896
0 ETH0.000898619.50014388
Transfer From149089702022-06-05 11:56:281366 days ago1654430188IN
Fake_Phishing297896
0 ETH0.0041171436.03883567
Set Approval For...142406462022-02-20 3:52:141471 days ago1645329134IN
Fake_Phishing297896
0 ETH0.0010512343.3641462
Set Approval For...142316542022-02-18 18:18:431473 days ago1645208323IN
Fake_Phishing297896
0 ETH0.00561085121.5365896
Pick Loot137362382021-12-03 22:35:121549 days ago1638570912IN
Fake_Phishing297896
0 ETH0.011050692.51320013
Set Approval For...133793282021-10-08 16:46:571606 days ago1633711617IN
Fake_Phishing297896
0 ETH0.00606683131.41353436
Set Approval For...133121272021-09-28 4:20:201616 days ago1632802820IN
Fake_Phishing297896
0 ETH0.0035601877.11709817
Pick Loot133074402021-09-27 11:10:081617 days ago1632741008IN
Fake_Phishing297896
0 ETH0.0072145360.40704922
Transfer From133054862021-09-27 3:31:371617 days ago1632713497IN
Fake_Phishing297896
0 ETH0.008219271.94556532
Set Approval For...132246982021-09-14 15:38:071630 days ago1631633887IN
Fake_Phishing297896
0 ETH0.0030337165.73034873
Pick Loot132136302021-09-12 22:22:251631 days ago1631485345IN
Fake_Phishing297896
0 ETH0.0065568154.89998438
Set Approval For...132116032021-09-12 14:53:261632 days ago1631458406IN
Fake_Phishing297896
0 ETH0.0028722762.21615793
Pick Loot132115732021-09-12 14:46:461632 days ago1631458006IN
Fake_Phishing297896
0 ETH0.0076439874.68545423
Pick Loot132115342021-09-12 14:36:421632 days ago1631457402IN
Fake_Phishing297896
0 ETH0.0070528359.04470122
Transfer From131916812021-09-09 13:03:431635 days ago1631192623IN
Fake_Phishing297896
0 ETH0.01621408141.92756857
Transfer From131912222021-09-09 11:20:501635 days ago1631186450IN
Fake_Phishing297896
0 ETH0.0085321174.68460062
Transfer From131903232021-09-09 7:57:151635 days ago1631174235IN
Fake_Phishing297896
0 ETH0.01220298106.81697638
Transfer From131778932021-09-07 9:42:321637 days ago1631007752IN
Fake_Phishing297896
0 ETH0.0096001284.03320775
Set Approval For...131775972021-09-07 8:34:351637 days ago1631003675IN
Fake_Phishing297896
0 ETH0.00650385140.91630962
Transfer From131775812021-09-07 8:30:541637 days ago1631003454IN
Fake_Phishing297896
0 ETH0.01449972126.92117982
Transfer From131774052021-09-07 7:49:271637 days ago1631000967IN
Fake_Phishing297896
0 ETH0.0105612192.47514451
Set Approval For...131773402021-09-07 7:34:281637 days ago1631000068IN
Fake_Phishing297896
0 ETH0.0040094286.84802877
Transfer From131759502021-09-07 2:23:501637 days ago1630981430IN
Fake_Phishing297896
0 ETH0.008722176.34762763
Transfer From131756542021-09-07 1:16:411637 days ago1630977401IN
Fake_Phishing297896
0 ETH0.0078826969
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LootForEveryone

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion, None license
// SPDX-License-Identifier: AGPL-1.0
pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;

import "./ERC721Base.sol";
import "./interfaces/ISyntheticLoot.sol";
import "./interfaces/ILoot.sol";
import "@openzeppelin/contracts/cryptography/ECDSA.sol";

contract LootForEveryone is ERC721Base {
    using EnumerableSet for EnumerableSet.UintSet;
    using ECDSA for bytes32;

    struct TokenData {
        uint256 id;
        string tokenURI;
        bool claimed;
    }

    ILoot private immutable _loot;
    ISyntheticLoot private immutable _syntheticLoot;

    constructor(ILoot loot, ISyntheticLoot syntheticLoot) {
        _loot = loot;
        _syntheticLoot = syntheticLoot;
    }

    /// @notice A descriptive name for a collection of NFTs in this contract
    function name() external pure returns (string memory) {
        return "Loot For Everyone";
    }

    /// @notice An abbreviated name for NFTs in this contract
    function symbol() external pure returns (string memory) {
        return "LOOT";
    }

    function tokenURI(uint256 id) external view returns (string memory) {
        return _tokenURI(id);
    }

    ///@notice get all info in the minimum calls
    function getTokenDataOfOwner(
        address owner,
        uint256 start,
        uint256 num
    ) external view returns (TokenData[] memory tokens) {
        require(start < 2**160 && num < 2**160, "INVALID_RANGE");
        EnumerableSet.UintSet storage allTokens = _holderTokens[owner];
        uint256 balance = allTokens.length();
        (, bool registered) = _ownerOfAndRegistered(uint256(owner));
        if (!registered) {
            // owned token was never registered, add balance
            balance++;
        }
        require(balance >= start + num, "TOO_MANY_TOKEN_REQUESTED");
        tokens = new TokenData[](num);
        uint256 i = 0;
        uint256 offset = 0;
        if (start == 0 && !registered) {
            // if start at zero consider unregistered token
            tokens[0] = TokenData(uint256(owner), _tokenURI(uint256(owner)), false);
            offset = 1;
            i = 1;
        }
        while (i < num) {
            uint256 id = allTokens.at(start + i - offset);
            tokens[i] = TokenData(id, _tokenURI(id), true);
            i++;
        }
    }

    ///@notice get all info in the minimum calls
    function getTokenDataForIds(uint256[] memory ids) external view returns (TokenData[] memory tokens) {
        tokens = new TokenData[](ids.length);
        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            (, bool registered) = _ownerOfAndRegistered(id);
            tokens[i] = TokenData(id, _tokenURI(id), registered);
        }
    }

    /// @notice utility function to claim a token when you know the private key of an address, go hunt for your loot!
    function pickLoot(address to, bytes memory signature) external {
        require(to != address(0), "NOT_TO_ZEROADDRESS");
        require(to != address(this), "NOT_TO_THIS");
        bytes32 hashedData = keccak256(abi.encodePacked("LootForEveryone", to));
        address signer = hashedData.toEthSignedMessageHash().recover(signature);
        (, bool registered) = _ownerOfAndRegistered(uint256(signer));
        require(!registered, "ALREADY_CALIMED");
        _safeTransferFrom(signer, to, uint256(signer), false, "");
    }

    ///@notice return true if the loot has been picked up or been transfered at least once
    function isLootPicked(uint256 id) external view returns(bool) {
        (address owner, bool registered) = _ownerOfAndRegistered(id);
        require(owner != address(0), "NONEXISTENT_TOKEN");
        return registered;
    }

    /// @notice lock your original but limited loot so that you get a LootForEveryone like everyone else
    function transmute(uint256 id, address to) external {
        require(to != address(0), "NOT_TO_ZEROADDRESS");
        require(to != address(this), "NOT_TO_THIS");
        _loot.transferFrom(msg.sender, address(this), id);
        (address owner, bool registered) = _ownerOfAndRegistered(id);
        if (registered) {
            require(owner == address(this), "ALREADY_CLAIMED"); // unlikely to happen, would need to find the private key for its adresss (< 8001)
            _safeTransferFrom(address(this), to, id, false, "");
        } else {
            _safeTransferFrom(address(id), to, id, false, "");
        }
    }

    /// @notice unlock your original loot back
    function transmuteBack(uint256 id, address to) external {
        require(to != address(0), "NOT_TO_ZEROADDRESS");
        require(to != address(this), "NOT_TO_THIS");
        (address owner, bool registered) = _ownerOfAndRegistered(id);
        require(msg.sender == owner, "NOT_OWNER");
        _transferFrom(owner, address(this), id, registered);
        _loot.transferFrom(address(this), to, id);
    }

    // -------------------------------------------------------------------------------------------------
    // INTERNAL
    // -------------------------------------------------------------------------------------------------

    function _tokenURI(uint256 id) internal view returns (string memory) {
        require(id > 0 && id < 2**160, "NONEXISTENT_TOKEN");
        if (id < 8001) {
            return _loot.tokenURI(id);
        }
        return _syntheticLoot.tokenURI(address(id));
    }
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        if (signature.length != 65) {
            revert("ECDSA: invalid signature length");
        }

        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // ecrecover takes the signature parameters, and the only way to get them
        // currently is to use assembly.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            r := mload(add(signature, 0x20))
            s := mload(add(signature, 0x40))
            v := byte(0, mload(add(signature, 0x60)))
        }

        return recover(hash, v, r, s);
    }

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

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * replicates the behavior of the
     * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]
     * JSON-RPC method.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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);
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "../../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;
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <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);
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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);
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

// SPDX-License-Identifier: AGPL-1.0
pragma solidity 0.7.6;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/introspection/IERC165.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";

abstract contract ERC721Base is IERC165, IERC721 {
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;

    bytes4 internal constant ERC721_RECEIVED = 0x150b7a02;
    bytes4 internal constant ERC165ID = 0x01ffc9a7;

    uint256 internal constant OPERATOR_FLAG = (2**255);

    mapping(uint256 => uint256) internal _owners;
    mapping(address => EnumerableSet.UintSet) internal _holderTokens;
    mapping(address => mapping(address => bool)) internal _operatorsForAll;
    mapping(uint256 => address) internal _operators;

    /// @notice Count NFTs tracked by this contract
    /// @return A count of valid NFTs tracked by this contract, where each one of
    ///  them has an assigned and queryable owner not equal to the zero address
    function totalSupply() external pure returns (uint256) {
        return 2**160 - 1; // do not count token with id zero whose owner would otherwise be the zero address
    }

    /// @notice Enumerate valid NFTs
    /// @dev Throws if `index` >= `totalSupply()`.
    /// @param index A counter less than `totalSupply()`
    /// @return The token identifier for the `_index`th NFT,
    ///  (sort order not specified)
    function tokenByIndex(uint256 index) external pure returns (uint256) {
        require(index < 2**160 - 1, "NONEXISTENT_TOKEN");
        return index + 1; // skip zero as we do not count token with id zero whose owner would otherwise be the zero address
    }

    /// @notice Enumerate NFTs assigned to an owner
    /// @dev Throws if `index` >= `balanceOf(owner)` or if
    ///  `owner` is the zero address, representing invalid NFTs.
    /// @param owner An address where we are interested in NFTs owned by them
    /// @param index A counter less than `balanceOf(owner)`
    /// @return The token identifier for the `index`th NFT assigned to `owner`,
    ///   (sort order not specified)
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS_OWNER");
        (, bool registered) = _ownerOfAndRegistered(uint256(owner));
        if (!registered) {
            if (index == 0) {
                return uint256(owner);
            }
            index--;
        }
        return _holderTokens[owner].at(index);
    }

    /// @notice Approve an operator to spend tokens on the senders behalf.
    /// @param operator The address receiving the approval.
    /// @param id The id of the token.
    function approve(address operator, uint256 id) external override {
        (address owner, bool registered) = _ownerOfAndRegistered(id);
        require(owner != address(0), "NONEXISTENT_TOKEN");
        require(owner == msg.sender || _operatorsForAll[owner][msg.sender], "UNAUTHORIZED_APPROVAL");
        _approveFor(owner, operator, id, registered);
    }

    /// @notice Transfer a token between 2 addresses.
    /// @param from The sender of the token.
    /// @param to The recipient of the token.
    /// @param id The id of the token.
    function transferFrom(
        address from,
        address to,
        uint256 id
    ) external override {
        (address owner, bool operatorEnabled, bool registered) = _ownerRegisteredAndOperatorEnabledOf(id);
        require(owner != address(0), "NONEXISTENT_TOKEN");
        require(owner == from, "NOT_OWNER");
        require(to != address(0), "NOT_TO_ZEROADDRESS");
        require(to != address(this), "NOT_TO_THIS");
        if (msg.sender != from) {
            require(
                _operatorsForAll[from][msg.sender] || (operatorEnabled && _operators[id] == msg.sender),
                "UNAUTHORIZED_TRANSFER"
            );
        }
        _transferFrom(from, to, id, registered);
    }

    /// @notice Transfer a token between 2 addresses letting the receiver know of the transfer.
    /// @param from The send of the token.
    /// @param to The recipient of the token.
    /// @param id The id of the token.
    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) external override {
        safeTransferFrom(from, to, id, "");
    }

    /// @notice Set the approval for an operator to manage all the tokens of the sender.
    /// @param operator The address receiving the approval.
    /// @param approved The determination of the approval.
    function setApprovalForAll(address operator, bool approved) external override {
        _setApprovalForAll(msg.sender, operator, approved);
    }

    /// @notice Get the number of tokens owned by an address.
    /// @param owner The address to look for.
    /// @return balance The number of tokens owned by the address.
    function balanceOf(address owner) external view override returns (uint256 balance) {
        require(owner != address(0), "ZERO_ADDRESS_OWNER");
        balance = _holderTokens[owner].length();
        (, bool registered) = _ownerOfAndRegistered(uint256(owner));
        if (!registered) {
            // owned token was never registered
            balance++;
        }
    }

    /// @notice Get the owner of a token.
    /// @param id The id of the token.
    /// @return owner The address of the token owner.
    function ownerOf(uint256 id) external view override returns (address owner) {
        owner = _ownerOf(id);
        require(owner != address(0), "NONEXISTANT_TOKEN");
    }

    /// @notice Get the approved operator for a specific token.
    /// @param id The id of the token.
    /// @return The address of the operator.
    function getApproved(uint256 id) external view override returns (address) {
        (address owner, bool operatorEnabled) = _ownerAndOperatorEnabledOf(id);
        require(owner != address(0), "NONEXISTENT_TOKEN");
        if (operatorEnabled) {
            return _operators[id];
        } else {
            return address(0);
        }
    }

    /// @notice Check if the sender approved the operator.
    /// @param owner The address of the owner.
    /// @param operator The address of the operator.
    /// @return isOperator The status of the approval.
    function isApprovedForAll(address owner, address operator) external view override returns (bool isOperator) {
        return _operatorsForAll[owner][operator];
    }

    /// @notice Transfer a token between 2 addresses letting the receiver knows of the transfer.
    /// @param from The sender of the token.
    /// @param to The recipient of the token.
    /// @param id The id of the token.
    /// @param data Additional data.
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes memory data
    ) public override {
        (address owner, bool operatorEnabled, bool registered) = _ownerRegisteredAndOperatorEnabledOf(id);
        require(owner != address(0), "NONEXISTENT_TOKEN");
        require(owner == from, "NOT_OWNER");
        require(to != address(0), "NOT_TO_ZEROADDRESS");
        require(to != address(this), "NOT_TO_THIS");
        if (msg.sender != from) {
            require(
                _operatorsForAll[from][msg.sender] || (operatorEnabled && _operators[id] == msg.sender),
                "UNAUTHORIZED_TRANSFER"
            );
        }
        _safeTransferFrom(from, to, id, registered, data);
    }

    /// @notice Check if the contract supports an interface.
    /// 0x01ffc9a7 is ERC165.
    /// 0x80ac58cd is ERC721
    /// 0x5b5e139f is for ERC721 metadata
    /// 0x780e9d63 is for ERC721 enumerable
    /// @param id The id of the interface.
    /// @return Whether the interface is supported.
    function supportsInterface(bytes4 id) public pure virtual override returns (bool) {
        return id == 0x01ffc9a7 || id == 0x80ac58cd || id == 0x5b5e139f || id == 0x780e9d63;
    }

    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bool alreadyRegistered,
        bytes memory data
    ) internal {
        _transferFrom(from, to, id, alreadyRegistered);
        if (to.isContract()) {
            require(_checkOnERC721Received(msg.sender, from, to, id, data), "ERC721_TRANSFER_REJECTED");
        }
    }

    function _transferFrom(
        address from,
        address to,
        uint256 id,
        bool alreadyRegistered
    ) internal {
        if (alreadyRegistered) {
            _holderTokens[from].remove(id);
        }
        _holderTokens[to].add(id);
        _owners[id] = uint256(to);
        emit Transfer(from, to, id);
    }

    /// @dev See approve.
    function _approveFor(
        address owner,
        address operator,
        uint256 id,
        bool alreadyRegistered
    ) internal {
        if (operator == address(0)) {
            _owners[id] = alreadyRegistered ? uint256(owner) : 0;
        } else {
            _owners[id] = OPERATOR_FLAG | (alreadyRegistered ? uint256(owner) : 0);
            _operators[id] = operator;
        }
        emit Approval(owner, operator, id);
    }

    /// @dev See setApprovalForAll.
    function _setApprovalForAll(
        address sender,
        address operator,
        bool approved
    ) internal {
        _operatorsForAll[sender][operator] = approved;

        emit ApprovalForAll(sender, operator, approved);
    }

    /// @dev Check if receiving contract accepts erc721 transfers.
    /// @param operator The address of the operator.
    /// @param from The from address, may be different from msg.sender.
    /// @param to The adddress we want to transfer to.
    /// @param id The id of the token we would like to transfer.
    /// @param _data Any additional data to send with the transfer.
    /// @return Whether the expected value of 0x150b7a02 is returned.
    function _checkOnERC721Received(
        address operator,
        address from,
        address to,
        uint256 id,
        bytes memory _data
    ) internal returns (bool) {
        bytes4 retval = IERC721Receiver(to).onERC721Received(operator, from, id, _data);
        return (retval == ERC721_RECEIVED);
    }

    /// @dev See ownerOf
    function _ownerOf(uint256 id) internal view returns (address owner) {
        owner = address(_owners[id]);
        if (owner == address(0) && id < 2**160) {
            owner = address(id);
        }
    }

    /// @dev Get the ownerand registered status of a token.
    /// @param id The token to query.
    /// @return owner The owner of the token.
    /// @return registered whethe the token has been registered with an owner
    function _ownerOfAndRegistered(uint256 id) internal view returns (address owner, bool registered) {
        owner = address(_owners[id]);
        if (owner == address(0) && id < 2**160) {
            owner = address(id);
        } else {
            registered = true;
        }
    }

    /// @dev Get the owner and operatorEnabled status of a token.
    /// @param id The token to query.
    /// @return owner The owner of the token.
    /// @return operatorEnabled Whether or not operators are enabled for this token.
    function _ownerAndOperatorEnabledOf(uint256 id) internal view returns (address owner, bool operatorEnabled) {
        uint256 data = _owners[id];
        owner = address(data);
        if (owner == address(0) && id < 2**160) {
            owner = address(id);
        }
        operatorEnabled = (data & OPERATOR_FLAG) == OPERATOR_FLAG;
    }

    /// @dev Get the owner, operatorEnabled and registered status of a token.
    /// @param id The token to query.
    /// @return owner The owner of the token.
    /// @return operatorEnabled Whether or not operators are enabled for this token.
    /// @return registered whethe the token has been registered with an owner
    function _ownerRegisteredAndOperatorEnabledOf(uint256 id)
        internal
        view
        returns (
            address owner,
            bool operatorEnabled,
            bool registered
        )
    {
        uint256 data = _owners[id];
        owner = address(data);
        if (owner == address(0) && id < 2**160) {
            owner = address(id);
        } else {
            registered = true;
        }
        operatorEnabled = (data & OPERATOR_FLAG) == OPERATOR_FLAG;
    }
}

File 10 of 11 : ILoot.sol
// SPDX-License-Identifier: Unlicense
pragma solidity 0.7.6;

import "@openzeppelin/contracts/token/ERC721/IERC721Metadata.sol";

// solhint-disable-next-line no-empty-blocks
interface ILoot is IERC721Metadata{

}

// SPDX-License-Identifier: Unlicense
pragma solidity 0.7.6;

interface ISyntheticLoot {

    function weaponComponents(address walletAddress) external view returns (uint256[5] memory);

    function chestComponents(address walletAddress) external view returns (uint256[5] memory);

    function headComponents(address walletAddress) external view returns (uint256[5] memory);

    function waistComponents(address walletAddress) external view returns (uint256[5] memory);

    function footComponents(address walletAddress) external view returns (uint256[5] memory);

    function handComponents(address walletAddress) external view returns (uint256[5] memory);

    function neckComponents(address walletAddress) external view returns (uint256[5] memory);

    function ringComponents(address walletAddress) external view returns (uint256[5] memory);

    function getWeapon(address walletAddress) external view returns (string memory);

    function getChest(address walletAddress) external view returns (string memory);

    function getHead(address walletAddress) external view returns (string memory);

    function getWaist(address walletAddress) external view returns (string memory);

    function getFoot(address walletAddress) external view returns (string memory);

    function getHand(address walletAddress) external view returns (string memory);

    function getNeck(address walletAddress) external view returns (string memory);

    function getRing(address walletAddress) external view returns (string memory);

    function tokenURI(address walletAddress) external view returns (string memory);

}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract ILoot","name":"loot","type":"address"},{"internalType":"contract ISyntheticLoot","name":"syntheticLoot","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":"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":"operator","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"getTokenDataForIds","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"tokenURI","type":"string"},{"internalType":"bool","name":"claimed","type":"bool"}],"internalType":"struct LootForEveryone.TokenData[]","name":"tokens","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"getTokenDataOfOwner","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"tokenURI","type":"string"},{"internalType":"bool","name":"claimed","type":"bool"}],"internalType":"struct LootForEveryone.TokenData[]","name":"tokens","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"isLootPicked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"pickLoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"id","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"transmute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"transmuteBack","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b50604051620027d6380380620027d6833981016040819052620000349162000053565b6001600160601b0319606092831b8116608052911b1660a052620000aa565b6000806040838503121562000066578182fd5b8251620000738162000091565b6020840151909250620000868162000091565b809150509250929050565b6001600160a01b0381168114620000a757600080fd5b50565b60805160601c60a05160601c6126f8620000de6000398061191d525080610e6252806110b3528061185d52506126f86000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c80634f6ccce7116100d857806395d89b411161008c578063ba7d53b111610066578063ba7d53b11461031b578063c87b56dd1461032e578063e985e9c51461034157610182565b806395d89b41146102ed578063a22cb465146102f5578063b88d4fde1461030857610182565b806365986e64116100bd57806365986e64146102b457806370a08231146102c75780638722781c146102da57610182565b80634f6ccce71461028e5780636352211e146102a157610182565b806318160ddd1161013a5780633a5110db116101145780633a5110db1461024857806342842e0e146102685780634f550a191461027b57610182565b806318160ddd1461020d57806323b872dd146102225780632f745c591461023557610182565b8063081812fc1161016b578063081812fc146101c5578063095ea7b3146101e557806309d5bb88146101fa57610182565b806301ffc9a71461018757806306fdde03146101b0575b600080fd5b61019a6101953660046121db565b610354565b6040516101a79190612417565b60405180910390f35b6101b8610487565b6040516101a79190612422565b6101d86101d3366004612285565b6104be565b6040516101a79190612341565b6101f86101f33660046120df565b610551565b005b6101f8610208366004612093565b61064e565b61021561074a565b6040516101a791906125e1565b6101f8610230366004611fb8565b610755565b6102156102433660046120df565b61099d565b61025b610256366004612108565b610a60565b6040516101a79190612379565b6101f8610276366004611fb8565b610c2e565b61025b61028936600461213a565b610c4e565b61021561029c366004612285565b610d23565b6101d86102af366004612285565b610d7b565b6101f86102c236600461229d565b610de3565b6102156102d5366004611f6c565b610f4a565b6101f86102e836600461229d565b610fef565b6101b8611124565b6101f8610303366004612059565b61115b565b6101f8610316366004611ff3565b61116a565b61019a610329366004612285565b6113b4565b6101b861033c366004612285565b6113f4565b61019a61034f366004611f86565b6113ff565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614806103e757507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b8061043357507f5b5e139f000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b8061047f57507f780e9d63000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b90505b919050565b60408051808201909152601181527f4c6f6f7420466f722045766572796f6e65000000000000000000000000000000602082015290565b60008060006104cc8461142d565b90925090506001600160a01b038216610520576040805162461bcd60e51b81526020600482015260116024820152702727a722ac24a9aa22a72a2faa27a5a2a760791b604482015290519081900360640190fd5b8015610546575050506000818152600360205260409020546001600160a01b0316610482565b600092505050610482565b60008061055d83611472565b90925090506001600160a01b0382166105b1576040805162461bcd60e51b81526020600482015260116024820152702727a722ac24a9aa22a72a2faa27a5a2a760791b604482015290519081900360640190fd5b6001600160a01b0382163314806105eb57506001600160a01b038216600090815260026020908152604080832033845290915290205460ff165b61063c576040805162461bcd60e51b815260206004820152601560248201527f554e415554484f52495a45445f415050524f56414c0000000000000000000000604482015290519081900360640190fd5b610648828585846114b2565b50505050565b6001600160a01b03821661067d5760405162461bcd60e51b8152600401610674906124ce565b60405180910390fd5b6001600160a01b0382163014156106a65760405162461bcd60e51b815260040161067490612505565b6000826040516020016106b991906122eb565b60405160208183030381529060405280519060200120905060006106e6836106e08461159b565b906115ec565b905060006106fc826001600160a01b0316611472565b915050801561071d5760405162461bcd60e51b81526004016106749061253c565b6107438286846001600160a01b031660006040518060200160405280600081525061166c565b5050505050565b6001600160a01b0390565b6000806000610763846116ed565b919450925090506001600160a01b0383166107b9576040805162461bcd60e51b81526020600482015260116024820152702727a722ac24a9aa22a72a2faa27a5a2a760791b604482015290519081900360640190fd5b856001600160a01b0316836001600160a01b03161461081f576040805162461bcd60e51b815260206004820152600960248201527f4e4f545f4f574e45520000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b03851661087a576040805162461bcd60e51b815260206004820152601260248201527f4e4f545f544f5f5a45524f414444524553530000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0385163014156108d8576040805162461bcd60e51b815260206004820152600b60248201527f4e4f545f544f5f54484953000000000000000000000000000000000000000000604482015290519081900360640190fd5b336001600160a01b03871614610989576001600160a01b038616600090815260026020908152604080832033845290915290205460ff1680610938575081801561093857506000848152600360205260409020546001600160a01b031633145b610989576040805162461bcd60e51b815260206004820152601560248201527f554e415554484f52495a45445f5452414e534645520000000000000000000000604482015290519081900360640190fd5b6109958686868461173e565b505050505050565b60006001600160a01b0383166109fa576040805162461bcd60e51b815260206004820152601260248201527f5a45524f5f414444524553535f4f574e45520000000000000000000000000000604482015290519081900360640190fd5b6000610a0e846001600160a01b0316611472565b91505080610a345782610a2c5750506001600160a01b038216610a5a565b600019909201915b6001600160a01b0384166000908152600160205260409020610a5690846117db565b9150505b92915050565b6060600160a01b83108015610a785750600160a01b82105b610a945760405162461bcd60e51b815260040161067490612497565b6001600160a01b038416600090815260016020526040812090610ab6826117e7565b90506000610acc876001600160a01b0316611472565b91505080610adb576001909101905b848601821015610afd5760405162461bcd60e51b815260040161067490612435565b8467ffffffffffffffff81118015610b1457600080fd5b50604051908082528060200260200182016040528015610b4e57816020015b610b3b611ee1565b815260200190600190039081610b335790505b50935060008087158015610b60575082155b15610bbe5760405180606001604052808a6001600160a01b03168152602001610b918b6001600160a01b03166117f2565b81526020016000151581525086600081518110610baa57fe5b602002602001018190525060019050600191505b86821015610c22576000610bd7868a85018490036117db565b90506040518060600160405280828152602001610bf3836117f2565b815260200160011515815250878481518110610c0b57fe5b602090810291909101015250600190910190610bbe565b50505050509392505050565b610c498383836040518060200160405280600081525061116a565b505050565b6060815167ffffffffffffffff81118015610c6857600080fd5b50604051908082528060200260200182016040528015610ca257816020015b610c8f611ee1565b815260200190600190039081610c875790505b50905060005b8251811015610d1d576000838281518110610cbf57fe5b602002602001015190506000610cd482611472565b9150506040518060600160405280838152602001610cf1846117f2565b8152602001821515815250848481518110610d0857fe5b60209081029190910101525050600101610ca8565b50919050565b60006001600160a01b038210610d74576040805162461bcd60e51b81526020600482015260116024820152702727a722ac24a9aa22a72a2faa27a5a2a760791b604482015290519081900360640190fd5b5060010190565b6000610d86826119a6565b90506001600160a01b038116610482576040805162461bcd60e51b815260206004820152601160248201527f4e4f4e4558495354414e545f544f4b454e000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116610e095760405162461bcd60e51b8152600401610674906124ce565b6001600160a01b038116301415610e325760405162461bcd60e51b815260040161067490612505565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90610e9b90339030908790600401612355565b600060405180830381600087803b158015610eb557600080fd5b505af1158015610ec9573d6000803e3d6000fd5b50505050600080610ed984611472565b915091508015610f2d576001600160a01b0382163014610f0b5760405162461bcd60e51b8152600401610674906125aa565b610f2830848660006040518060200160405280600081525061166c565b610648565b61064884848660006040518060200160405280600081525061166c565b60006001600160a01b038216610fa7576040805162461bcd60e51b815260206004820152601260248201527f5a45524f5f414444524553535f4f574e45520000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152600160205260409020610fc8906117e7565b90506000610fde836001600160a01b0316611472565b91505080610d1d5750600101919050565b6001600160a01b0381166110155760405162461bcd60e51b8152600401610674906124ce565b6001600160a01b03811630141561103e5760405162461bcd60e51b815260040161067490612505565b60008061104a84611472565b9092509050336001600160a01b038316146110775760405162461bcd60e51b815260040161067490612573565b6110838230868461173e565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906110ec90309087908990600401612355565b600060405180830381600087803b15801561110657600080fd5b505af115801561111a573d6000803e3d6000fd5b5050505050505050565b60408051808201909152600481527f4c4f4f5400000000000000000000000000000000000000000000000000000000602082015290565b6111663383836119d8565b5050565b6000806000611178856116ed565b919450925090506001600160a01b0383166111ce576040805162461bcd60e51b81526020600482015260116024820152702727a722ac24a9aa22a72a2faa27a5a2a760791b604482015290519081900360640190fd5b866001600160a01b0316836001600160a01b031614611234576040805162461bcd60e51b815260206004820152600960248201527f4e4f545f4f574e45520000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b03861661128f576040805162461bcd60e51b815260206004820152601260248201527f4e4f545f544f5f5a45524f414444524553530000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0386163014156112ed576040805162461bcd60e51b815260206004820152600b60248201527f4e4f545f544f5f54484953000000000000000000000000000000000000000000604482015290519081900360640190fd5b336001600160a01b0388161461139e576001600160a01b038716600090815260026020908152604080832033845290915290205460ff168061134d575081801561134d57506000858152600360205260409020546001600160a01b031633145b61139e576040805162461bcd60e51b815260206004820152601560248201527f554e415554484f52495a45445f5452414e534645520000000000000000000000604482015290519081900360640190fd5b6113ab878787848861166c565b50505050505050565b60008060006113c284611472565b90925090506001600160a01b0382166113ed5760405162461bcd60e51b81526004016106749061246c565b9392505050565b606061047f826117f2565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b60008181526020819052604081205490816001600160a01b0381161580156114585750600160a01b84105b15611461578392505b600160ff1b80821614915050915091565b600081815260208190526040812054906001600160a01b03821615801561149c5750600160a01b83105b156114a9578291506114ad565b5060015b915091565b6001600160a01b0383166114eb57806114cc5760006114d7565b836001600160a01b03165b600083815260208190526040902055611554565b806114f7576000611502565b836001600160a01b03165b600083815260208181526040808320600160ff1b94909417909355600390522080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0385161790555b81836001600160a01b0316856001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b60008151604114611644576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a61166286828585611a64565b9695505050505050565b6116788585858561173e565b61168a846001600160a01b0316611be2565b156107435761169c3386868685611be8565b610743576040805162461bcd60e51b815260206004820152601860248201527f4552433732315f5452414e534645525f52454a45435445440000000000000000604482015290519081900360640190fd5b6000818152602081905260408120549080826001600160a01b0381161580156117195750600160a01b85105b156117265784935061172b565b600191505b600160ff1b808216149250509193909250565b8015611768576001600160a01b03841660009081526001602052604090206117669083611d39565b505b6001600160a01b038316600090815260016020526040902061178a9083611d45565b506000828152602081905260408082206001600160a01b03808716918290559151859391928816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a450505050565b60006113ed8383611d51565b600061047f82611db5565b60606000821180156118075750600160a01b82105b6118235760405162461bcd60e51b81526004016106749061246c565b611f418210156118ed576040517fc87b56dd0000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c87b56dd906118929085906004016125e1565b60006040518083038186803b1580156118aa57600080fd5b505afa1580156118be573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118e6919081019061221b565b9050610482565b6040517f93702f330000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906393702f3390611952908590600401612341565b60006040518083038186803b15801561196a57600080fd5b505afa15801561197e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261047f919081019061221b565b6000818152602081905260409020546001600160a01b0381161580156119cf5750600160a01b82105b15610482575090565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016861515908117909155825190815291517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319281900390910190a3505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611ac55760405162461bcd60e51b815260040180806020018281038252602281526020018061267f6022913960400191505060405180910390fd5b8360ff16601b1480611ada57508360ff16601c145b611b155760405162461bcd60e51b81526004018080602001828103825260228152602001806126a16022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611b71573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611bd9576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b95945050505050565b3b151590565b600080846001600160a01b031663150b7a02888887876040518563ffffffff1660e01b815260040180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611c6e578181015183820152602001611c56565b50505050905090810190601f168015611c9b5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015611cbd57600080fd5b505af1158015611cd1573d6000803e3d6000fd5b505050506040513d6020811015611ce757600080fd5b50517fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001491505095945050505050565b60006113ed8383611db9565b60006113ed8383611e7f565b81546000908210611d935760405162461bcd60e51b815260040180806020018281038252602281526020018061265d6022913960400191505060405180910390fd5b826000018281548110611da257fe5b9060005260206000200154905092915050565b5490565b60008181526001830160205260408120548015611e755783546000198083019190810190600090879083908110611dec57fe5b9060005260206000200154905080876000018481548110611e0957fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611e3957fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610a5a565b6000915050610a5a565b6000611e8b8383611ec9565b611ec157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a5a565b506000610a5a565b60009081526001919091016020526040902054151590565b604051806060016040528060008152602001606081526020016000151581525090565b80356001600160a01b038116811461048257600080fd5b600082601f830112611f2b578081fd5b8135611f3e611f398261260e565b6125ea565b818152846020838601011115611f52578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611f7d578081fd5b6113ed82611f04565b60008060408385031215611f98578081fd5b611fa183611f04565b9150611faf60208401611f04565b90509250929050565b600080600060608486031215611fcc578081fd5b611fd584611f04565b9250611fe360208501611f04565b9150604084013590509250925092565b60008060008060808587031215612008578081fd5b61201185611f04565b935061201f60208601611f04565b925060408501359150606085013567ffffffffffffffff811115612041578182fd5b61204d87828801611f1b565b91505092959194509250565b6000806040838503121561206b578182fd5b61207483611f04565b915060208301358015158114612088578182fd5b809150509250929050565b600080604083850312156120a5578182fd5b6120ae83611f04565b9150602083013567ffffffffffffffff8111156120c9578182fd5b6120d585828601611f1b565b9150509250929050565b600080604083850312156120f1578182fd5b6120fa83611f04565b946020939093013593505050565b60008060006060848603121561211c578283fd5b61212584611f04565b95602085013595506040909401359392505050565b6000602080838503121561214c578182fd5b823567ffffffffffffffff80821115612163578384fd5b818501915085601f830112612176578384fd5b81358181111561218257fe5b83810291506121928483016125ea565b8181528481019084860184860187018a10156121ac578788fd5b8795505b838610156121ce5780358352600195909501949186019186016121b0565b5098975050505050505050565b6000602082840312156121ec578081fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146113ed578182fd5b60006020828403121561222c578081fd5b815167ffffffffffffffff811115612242578182fd5b8201601f81018413612252578182fd5b8051612260611f398261260e565b818152856020838501011115612274578384fd5b611bd9826020830160208601612630565b600060208284031215612296578081fd5b5035919050565b600080604083850312156122af578182fd5b82359150611faf60208401611f04565b600081518084526122d7816020860160208601612630565b601f01601f19169290920160200192915050565b7f4c6f6f74466f7245766572796f6e650000000000000000000000000000000000815260609190911b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016600f82015260230190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60208082528251828201819052600091906040908185019080840286018301878501865b83811015612409577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0898403018552815160608151855288820151818a8701526123e9828701826122bf565b92890151151595890195909552509487019492509086019060010161239d565b509098975050505050505050565b901515815260200190565b6000602082526113ed60208301846122bf565b60208082526018908201527f544f4f5f4d414e595f544f4b454e5f5245515545535445440000000000000000604082015260600190565b6020808252601190820152702727a722ac24a9aa22a72a2faa27a5a2a760791b604082015260600190565b6020808252600d908201527f494e56414c49445f52414e474500000000000000000000000000000000000000604082015260600190565b60208082526012908201527f4e4f545f544f5f5a45524f414444524553530000000000000000000000000000604082015260600190565b6020808252600b908201527f4e4f545f544f5f54484953000000000000000000000000000000000000000000604082015260600190565b6020808252600f908201527f414c52454144595f43414c494d45440000000000000000000000000000000000604082015260600190565b60208082526009908201527f4e4f545f4f574e45520000000000000000000000000000000000000000000000604082015260600190565b6020808252600f908201527f414c52454144595f434c41494d45440000000000000000000000000000000000604082015260600190565b90815260200190565b60405181810167ffffffffffffffff8111828210171561260657fe5b604052919050565b600067ffffffffffffffff82111561262257fe5b50601f01601f191660200190565b60005b8381101561264b578181015183820152602001612633565b83811115610648575050600091015256fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c7565a264697066735822122060097f3aacec2e35528d7faad6ffa4bc1441b67f39e3b5cdca094889cb6cce3e64736f6c63430007060033000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d7000000000000000000000000869ad3dfb0f9acb9094ba85228008981be6dbdde

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101825760003560e01c80634f6ccce7116100d857806395d89b411161008c578063ba7d53b111610066578063ba7d53b11461031b578063c87b56dd1461032e578063e985e9c51461034157610182565b806395d89b41146102ed578063a22cb465146102f5578063b88d4fde1461030857610182565b806365986e64116100bd57806365986e64146102b457806370a08231146102c75780638722781c146102da57610182565b80634f6ccce71461028e5780636352211e146102a157610182565b806318160ddd1161013a5780633a5110db116101145780633a5110db1461024857806342842e0e146102685780634f550a191461027b57610182565b806318160ddd1461020d57806323b872dd146102225780632f745c591461023557610182565b8063081812fc1161016b578063081812fc146101c5578063095ea7b3146101e557806309d5bb88146101fa57610182565b806301ffc9a71461018757806306fdde03146101b0575b600080fd5b61019a6101953660046121db565b610354565b6040516101a79190612417565b60405180910390f35b6101b8610487565b6040516101a79190612422565b6101d86101d3366004612285565b6104be565b6040516101a79190612341565b6101f86101f33660046120df565b610551565b005b6101f8610208366004612093565b61064e565b61021561074a565b6040516101a791906125e1565b6101f8610230366004611fb8565b610755565b6102156102433660046120df565b61099d565b61025b610256366004612108565b610a60565b6040516101a79190612379565b6101f8610276366004611fb8565b610c2e565b61025b61028936600461213a565b610c4e565b61021561029c366004612285565b610d23565b6101d86102af366004612285565b610d7b565b6101f86102c236600461229d565b610de3565b6102156102d5366004611f6c565b610f4a565b6101f86102e836600461229d565b610fef565b6101b8611124565b6101f8610303366004612059565b61115b565b6101f8610316366004611ff3565b61116a565b61019a610329366004612285565b6113b4565b6101b861033c366004612285565b6113f4565b61019a61034f366004611f86565b6113ff565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614806103e757507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b8061043357507f5b5e139f000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b8061047f57507f780e9d63000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b90505b919050565b60408051808201909152601181527f4c6f6f7420466f722045766572796f6e65000000000000000000000000000000602082015290565b60008060006104cc8461142d565b90925090506001600160a01b038216610520576040805162461bcd60e51b81526020600482015260116024820152702727a722ac24a9aa22a72a2faa27a5a2a760791b604482015290519081900360640190fd5b8015610546575050506000818152600360205260409020546001600160a01b0316610482565b600092505050610482565b60008061055d83611472565b90925090506001600160a01b0382166105b1576040805162461bcd60e51b81526020600482015260116024820152702727a722ac24a9aa22a72a2faa27a5a2a760791b604482015290519081900360640190fd5b6001600160a01b0382163314806105eb57506001600160a01b038216600090815260026020908152604080832033845290915290205460ff165b61063c576040805162461bcd60e51b815260206004820152601560248201527f554e415554484f52495a45445f415050524f56414c0000000000000000000000604482015290519081900360640190fd5b610648828585846114b2565b50505050565b6001600160a01b03821661067d5760405162461bcd60e51b8152600401610674906124ce565b60405180910390fd5b6001600160a01b0382163014156106a65760405162461bcd60e51b815260040161067490612505565b6000826040516020016106b991906122eb565b60405160208183030381529060405280519060200120905060006106e6836106e08461159b565b906115ec565b905060006106fc826001600160a01b0316611472565b915050801561071d5760405162461bcd60e51b81526004016106749061253c565b6107438286846001600160a01b031660006040518060200160405280600081525061166c565b5050505050565b6001600160a01b0390565b6000806000610763846116ed565b919450925090506001600160a01b0383166107b9576040805162461bcd60e51b81526020600482015260116024820152702727a722ac24a9aa22a72a2faa27a5a2a760791b604482015290519081900360640190fd5b856001600160a01b0316836001600160a01b03161461081f576040805162461bcd60e51b815260206004820152600960248201527f4e4f545f4f574e45520000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b03851661087a576040805162461bcd60e51b815260206004820152601260248201527f4e4f545f544f5f5a45524f414444524553530000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0385163014156108d8576040805162461bcd60e51b815260206004820152600b60248201527f4e4f545f544f5f54484953000000000000000000000000000000000000000000604482015290519081900360640190fd5b336001600160a01b03871614610989576001600160a01b038616600090815260026020908152604080832033845290915290205460ff1680610938575081801561093857506000848152600360205260409020546001600160a01b031633145b610989576040805162461bcd60e51b815260206004820152601560248201527f554e415554484f52495a45445f5452414e534645520000000000000000000000604482015290519081900360640190fd5b6109958686868461173e565b505050505050565b60006001600160a01b0383166109fa576040805162461bcd60e51b815260206004820152601260248201527f5a45524f5f414444524553535f4f574e45520000000000000000000000000000604482015290519081900360640190fd5b6000610a0e846001600160a01b0316611472565b91505080610a345782610a2c5750506001600160a01b038216610a5a565b600019909201915b6001600160a01b0384166000908152600160205260409020610a5690846117db565b9150505b92915050565b6060600160a01b83108015610a785750600160a01b82105b610a945760405162461bcd60e51b815260040161067490612497565b6001600160a01b038416600090815260016020526040812090610ab6826117e7565b90506000610acc876001600160a01b0316611472565b91505080610adb576001909101905b848601821015610afd5760405162461bcd60e51b815260040161067490612435565b8467ffffffffffffffff81118015610b1457600080fd5b50604051908082528060200260200182016040528015610b4e57816020015b610b3b611ee1565b815260200190600190039081610b335790505b50935060008087158015610b60575082155b15610bbe5760405180606001604052808a6001600160a01b03168152602001610b918b6001600160a01b03166117f2565b81526020016000151581525086600081518110610baa57fe5b602002602001018190525060019050600191505b86821015610c22576000610bd7868a85018490036117db565b90506040518060600160405280828152602001610bf3836117f2565b815260200160011515815250878481518110610c0b57fe5b602090810291909101015250600190910190610bbe565b50505050509392505050565b610c498383836040518060200160405280600081525061116a565b505050565b6060815167ffffffffffffffff81118015610c6857600080fd5b50604051908082528060200260200182016040528015610ca257816020015b610c8f611ee1565b815260200190600190039081610c875790505b50905060005b8251811015610d1d576000838281518110610cbf57fe5b602002602001015190506000610cd482611472565b9150506040518060600160405280838152602001610cf1846117f2565b8152602001821515815250848481518110610d0857fe5b60209081029190910101525050600101610ca8565b50919050565b60006001600160a01b038210610d74576040805162461bcd60e51b81526020600482015260116024820152702727a722ac24a9aa22a72a2faa27a5a2a760791b604482015290519081900360640190fd5b5060010190565b6000610d86826119a6565b90506001600160a01b038116610482576040805162461bcd60e51b815260206004820152601160248201527f4e4f4e4558495354414e545f544f4b454e000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116610e095760405162461bcd60e51b8152600401610674906124ce565b6001600160a01b038116301415610e325760405162461bcd60e51b815260040161067490612505565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d716906323b872dd90610e9b90339030908790600401612355565b600060405180830381600087803b158015610eb557600080fd5b505af1158015610ec9573d6000803e3d6000fd5b50505050600080610ed984611472565b915091508015610f2d576001600160a01b0382163014610f0b5760405162461bcd60e51b8152600401610674906125aa565b610f2830848660006040518060200160405280600081525061166c565b610648565b61064884848660006040518060200160405280600081525061166c565b60006001600160a01b038216610fa7576040805162461bcd60e51b815260206004820152601260248201527f5a45524f5f414444524553535f4f574e45520000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152600160205260409020610fc8906117e7565b90506000610fde836001600160a01b0316611472565b91505080610d1d5750600101919050565b6001600160a01b0381166110155760405162461bcd60e51b8152600401610674906124ce565b6001600160a01b03811630141561103e5760405162461bcd60e51b815260040161067490612505565b60008061104a84611472565b9092509050336001600160a01b038316146110775760405162461bcd60e51b815260040161067490612573565b6110838230868461173e565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d716906323b872dd906110ec90309087908990600401612355565b600060405180830381600087803b15801561110657600080fd5b505af115801561111a573d6000803e3d6000fd5b5050505050505050565b60408051808201909152600481527f4c4f4f5400000000000000000000000000000000000000000000000000000000602082015290565b6111663383836119d8565b5050565b6000806000611178856116ed565b919450925090506001600160a01b0383166111ce576040805162461bcd60e51b81526020600482015260116024820152702727a722ac24a9aa22a72a2faa27a5a2a760791b604482015290519081900360640190fd5b866001600160a01b0316836001600160a01b031614611234576040805162461bcd60e51b815260206004820152600960248201527f4e4f545f4f574e45520000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b03861661128f576040805162461bcd60e51b815260206004820152601260248201527f4e4f545f544f5f5a45524f414444524553530000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0386163014156112ed576040805162461bcd60e51b815260206004820152600b60248201527f4e4f545f544f5f54484953000000000000000000000000000000000000000000604482015290519081900360640190fd5b336001600160a01b0388161461139e576001600160a01b038716600090815260026020908152604080832033845290915290205460ff168061134d575081801561134d57506000858152600360205260409020546001600160a01b031633145b61139e576040805162461bcd60e51b815260206004820152601560248201527f554e415554484f52495a45445f5452414e534645520000000000000000000000604482015290519081900360640190fd5b6113ab878787848861166c565b50505050505050565b60008060006113c284611472565b90925090506001600160a01b0382166113ed5760405162461bcd60e51b81526004016106749061246c565b9392505050565b606061047f826117f2565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b60008181526020819052604081205490816001600160a01b0381161580156114585750600160a01b84105b15611461578392505b600160ff1b80821614915050915091565b600081815260208190526040812054906001600160a01b03821615801561149c5750600160a01b83105b156114a9578291506114ad565b5060015b915091565b6001600160a01b0383166114eb57806114cc5760006114d7565b836001600160a01b03165b600083815260208190526040902055611554565b806114f7576000611502565b836001600160a01b03165b600083815260208181526040808320600160ff1b94909417909355600390522080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0385161790555b81836001600160a01b0316856001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b60008151604114611644576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a61166286828585611a64565b9695505050505050565b6116788585858561173e565b61168a846001600160a01b0316611be2565b156107435761169c3386868685611be8565b610743576040805162461bcd60e51b815260206004820152601860248201527f4552433732315f5452414e534645525f52454a45435445440000000000000000604482015290519081900360640190fd5b6000818152602081905260408120549080826001600160a01b0381161580156117195750600160a01b85105b156117265784935061172b565b600191505b600160ff1b808216149250509193909250565b8015611768576001600160a01b03841660009081526001602052604090206117669083611d39565b505b6001600160a01b038316600090815260016020526040902061178a9083611d45565b506000828152602081905260408082206001600160a01b03808716918290559151859391928816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a450505050565b60006113ed8383611d51565b600061047f82611db5565b60606000821180156118075750600160a01b82105b6118235760405162461bcd60e51b81526004016106749061246c565b611f418210156118ed576040517fc87b56dd0000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d7169063c87b56dd906118929085906004016125e1565b60006040518083038186803b1580156118aa57600080fd5b505afa1580156118be573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118e6919081019061221b565b9050610482565b6040517f93702f330000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000869ad3dfb0f9acb9094ba85228008981be6dbdde16906393702f3390611952908590600401612341565b60006040518083038186803b15801561196a57600080fd5b505afa15801561197e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261047f919081019061221b565b6000818152602081905260409020546001600160a01b0381161580156119cf5750600160a01b82105b15610482575090565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016861515908117909155825190815291517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319281900390910190a3505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115611ac55760405162461bcd60e51b815260040180806020018281038252602281526020018061267f6022913960400191505060405180910390fd5b8360ff16601b1480611ada57508360ff16601c145b611b155760405162461bcd60e51b81526004018080602001828103825260228152602001806126a16022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611b71573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611bd9576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b95945050505050565b3b151590565b600080846001600160a01b031663150b7a02888887876040518563ffffffff1660e01b815260040180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611c6e578181015183820152602001611c56565b50505050905090810190601f168015611c9b5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015611cbd57600080fd5b505af1158015611cd1573d6000803e3d6000fd5b505050506040513d6020811015611ce757600080fd5b50517fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001491505095945050505050565b60006113ed8383611db9565b60006113ed8383611e7f565b81546000908210611d935760405162461bcd60e51b815260040180806020018281038252602281526020018061265d6022913960400191505060405180910390fd5b826000018281548110611da257fe5b9060005260206000200154905092915050565b5490565b60008181526001830160205260408120548015611e755783546000198083019190810190600090879083908110611dec57fe5b9060005260206000200154905080876000018481548110611e0957fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611e3957fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610a5a565b6000915050610a5a565b6000611e8b8383611ec9565b611ec157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a5a565b506000610a5a565b60009081526001919091016020526040902054151590565b604051806060016040528060008152602001606081526020016000151581525090565b80356001600160a01b038116811461048257600080fd5b600082601f830112611f2b578081fd5b8135611f3e611f398261260e565b6125ea565b818152846020838601011115611f52578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611f7d578081fd5b6113ed82611f04565b60008060408385031215611f98578081fd5b611fa183611f04565b9150611faf60208401611f04565b90509250929050565b600080600060608486031215611fcc578081fd5b611fd584611f04565b9250611fe360208501611f04565b9150604084013590509250925092565b60008060008060808587031215612008578081fd5b61201185611f04565b935061201f60208601611f04565b925060408501359150606085013567ffffffffffffffff811115612041578182fd5b61204d87828801611f1b565b91505092959194509250565b6000806040838503121561206b578182fd5b61207483611f04565b915060208301358015158114612088578182fd5b809150509250929050565b600080604083850312156120a5578182fd5b6120ae83611f04565b9150602083013567ffffffffffffffff8111156120c9578182fd5b6120d585828601611f1b565b9150509250929050565b600080604083850312156120f1578182fd5b6120fa83611f04565b946020939093013593505050565b60008060006060848603121561211c578283fd5b61212584611f04565b95602085013595506040909401359392505050565b6000602080838503121561214c578182fd5b823567ffffffffffffffff80821115612163578384fd5b818501915085601f830112612176578384fd5b81358181111561218257fe5b83810291506121928483016125ea565b8181528481019084860184860187018a10156121ac578788fd5b8795505b838610156121ce5780358352600195909501949186019186016121b0565b5098975050505050505050565b6000602082840312156121ec578081fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146113ed578182fd5b60006020828403121561222c578081fd5b815167ffffffffffffffff811115612242578182fd5b8201601f81018413612252578182fd5b8051612260611f398261260e565b818152856020838501011115612274578384fd5b611bd9826020830160208601612630565b600060208284031215612296578081fd5b5035919050565b600080604083850312156122af578182fd5b82359150611faf60208401611f04565b600081518084526122d7816020860160208601612630565b601f01601f19169290920160200192915050565b7f4c6f6f74466f7245766572796f6e650000000000000000000000000000000000815260609190911b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016600f82015260230190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60208082528251828201819052600091906040908185019080840286018301878501865b83811015612409577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0898403018552815160608151855288820151818a8701526123e9828701826122bf565b92890151151595890195909552509487019492509086019060010161239d565b509098975050505050505050565b901515815260200190565b6000602082526113ed60208301846122bf565b60208082526018908201527f544f4f5f4d414e595f544f4b454e5f5245515545535445440000000000000000604082015260600190565b6020808252601190820152702727a722ac24a9aa22a72a2faa27a5a2a760791b604082015260600190565b6020808252600d908201527f494e56414c49445f52414e474500000000000000000000000000000000000000604082015260600190565b60208082526012908201527f4e4f545f544f5f5a45524f414444524553530000000000000000000000000000604082015260600190565b6020808252600b908201527f4e4f545f544f5f54484953000000000000000000000000000000000000000000604082015260600190565b6020808252600f908201527f414c52454144595f43414c494d45440000000000000000000000000000000000604082015260600190565b60208082526009908201527f4e4f545f4f574e45520000000000000000000000000000000000000000000000604082015260600190565b6020808252600f908201527f414c52454144595f434c41494d45440000000000000000000000000000000000604082015260600190565b90815260200190565b60405181810167ffffffffffffffff8111828210171561260657fe5b604052919050565b600067ffffffffffffffff82111561262257fe5b50601f01601f191660200190565b60005b8381101561264b578181015183820152602001612633565b83811115610648575050600091015256fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c7565a264697066735822122060097f3aacec2e35528d7faad6ffa4bc1441b67f39e3b5cdca094889cb6cce3e64736f6c63430007060033

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

000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d7000000000000000000000000869ad3dfb0f9acb9094ba85228008981be6dbdde

-----Decoded View---------------
Arg [0] : loot (address): 0xFF9C1b15B16263C61d017ee9F65C50e4AE0113D7
Arg [1] : syntheticLoot (address): 0x869Ad3Dfb0F9ACB9094BA85228008981BE6DBddE

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d7
Arg [1] : 000000000000000000000000869ad3dfb0f9acb9094ba85228008981be6dbdde


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

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