Contract 0xce107fdd283a0428dd5eb67fea83a550ba47253d 1

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x63a2db4942b6d452ef98e311cea63e1c5b027d7afde6e9073f75ba1cf2de64fcClaim1155Event284608492022-05-18 7:54:5744 days 6 hrs ago0x8cd5adee97e19bed7ccf4abe09a0339017d381b5 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.006715341041 50.292385317
0x86a49b565159c159ae8099ffc9287bbf5e20a6964f623751a2b5ef57a9fd44e3Claim1155Event284608132022-05-18 7:53:4544 days 6 hrs ago0x53ce08e0a278d88aadf284bcb422434c54bfc66b IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.006519585971 48.826340721
0xb90a3a0a4336d598bf86023adba04c7323e7e45eff0feeec13458db6c392225bClaim1155Event284607802022-05-18 7:52:3544 days 6 hrs ago0x167c0ece7ce852bed38616acf5d28e94fafa7859 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.006946932768 52.026817012
0x4c940b23fd7d8b2336dc1a79dc1bb3002d8898e879fd52101e78d26a282dbd01Claim1155Event284604642022-05-18 7:41:4344 days 6 hrs ago0x303b11b429be035da4b3272370509b44aa207ed1 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.004051274957 30.340719839
0x2e4642b5ecf4f84e74af1b8875fe98a344f4a91af1d9b25225ae3c9d65764336Claim1155Event284604272022-05-18 7:40:2944 days 6 hrs ago0xdfd48fb0a0ce666472ba4de389b72cfb8958ac34 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.004635903111 34.719104233
0x57916b713bba7c1eabac1e01e994590fbb3b37f49df0c2c05cf9801b7c8c99d0Claim1155Event284604042022-05-18 7:39:1744 days 6 hrs ago0x5849a9d73e800a40cdbb154bf5258d0801ec0ef5 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.00497826532 37.2831158
0xc1b4e6f7c5013a7377e9c6e1027b9b07ae20a85a89300c774afc79f0a8dbadafClaim1155Event284603862022-05-18 7:38:0544 days 6 hrs ago0xa954c0637c410ed8209be4e07e6d407da1c0efab IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.005886596886 44.085772708
0xdfb1411ec025f02e5363f1c27afc9a987e9feaa3857fd9d103f95b777eba1015Claim1155Event284603682022-05-18 7:36:5344 days 6 hrs ago0x65146e4adb978ea605faa7a15733bd81d7023540 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.004913654656 36.799235031
0xc33872d220ee299639c89083131a2fe51e7804907063d51400f4fc522e181c56Claim1155Event284603512022-05-18 7:35:4144 days 6 hrs ago0xe6057c9a983f5370b24a0889c5d450d1552fa584 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.005842363114 43.754498106
0xdb31ad530af90678c740b623e8caeef8a263950636e1c77e6ce6838673b0128bClaim1155Event284603152022-05-18 7:34:2944 days 6 hrs ago0xd6c07d4199bb8c0663daef7ecc9c248cb40133a2 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.006595315823 49.393495078
0xb12c9f66314dde623b67fecea9c8a1b8e6126220d64d7251c9f8688cd093f169Claim1155Event284602812022-05-18 7:33:1744 days 6 hrs ago0x52fb6e18d212d5290ecf3f22f3fbdd41ade3aab0 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.00692894082 51.892072113
0x10839135bee869db4cd5c0b7ef6846b20f21e88812f2bd4f7c4dbe26540257e3Claim1155Event284602432022-05-18 7:32:0144 days 6 hrs ago0xb9b260cc2e6cb007a61523345ef16cddb4080ecc IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.006452817477 48.326299577
0x46d7d422dacfcad9c3385a9187a3b9fb17725a4231730397d8173ae3239cb6baClaim1155Event284602102022-05-18 7:30:5144 days 6 hrs ago0x0c66fc54d933105ccde6fa34dd04a08606708ae2 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.005870832117 43.967707543
0x4018354092c27643a5143e49521b6d479e350fa8ca9feab5d5419ab32ac10c05Claim1155Event284601752022-05-18 7:29:4144 days 6 hrs ago0x1400aed6be509ce3237632abc9e5521470b3f138 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.006796659563 50.901394211
0x9d605807ad301d9081c15c24673c626604dcf6fd6679921dd7a194e4190195ccClaim1155Event284601412022-05-18 7:28:2944 days 6 hrs ago0x4407f811ab8eeb28fed9904c67dc808a2df36d9a IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.006678264613 50.014713337
0x59697fc8711db6f6e9500bb9f011890c18c5142c9a8f8a9e683bd92cea035e84Claim1155Event284601052022-05-18 7:27:1744 days 6 hrs ago0xb7ff976742ef1d92afb82ab97193f2b9d1314905 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.006423133775 48.103993043
0xf8ee8607f36fe3f035b0311bc689e37c6c4ed0e6001e37faf45ff978f7c5cc1aClaim1155Event284600712022-05-18 7:26:0544 days 6 hrs ago0x5646baa7a17765e651bf6c083d2e592c17fe03bc IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.006499541296 48.676222581
0xcb7793dc1b37149a65c6655ac26186aaab512fb1ec358478de241d19319f0397Claim1155Event284600342022-05-18 7:24:5144 days 6 hrs ago0x3b8c7b9df619662f3a9dfd75fb9d0b0d3f60b17e IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.006454438576 48.338440277
0x1f53b644afd47c1e9ca5cfa92bb21e64bf3c3bb8f4f88e8e37c79cd8886df9aaClaim1155Event284600002022-05-18 7:23:3944 days 6 hrs ago0xfdc83b382986702cd8df06c7bbe266f0b32574eb IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.006305959639 47.226455067
0xa9552e13083332c1cf994f324d68d99cf5d595d05fb1d2b9142a375861d2d133Claim1155Event284599672022-05-18 7:22:2944 days 6 hrs ago0x31ae42a85075061f011a8e93cd9dcb9a75afb13b IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.006194112871 46.388814698
0xcfecf5b567c29e9dac30cc3ec9b41b51792854c8ba970943d4761cbeccb2245bClaim1155Event284599312022-05-18 7:21:1744 days 6 hrs ago0x0999254bdc61cde7ca53c7689d4206dd96192281 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.005594238709 41.896250238
0xb231d4cf1f9b6e7548702c99a106340e3f41f8c95dfb73b78d379fc6a37274c7Claim1155Event284598972022-05-18 7:20:0544 days 6 hrs ago0xdd778197ee9d668ee0de5cee1374f195fdbd0f56 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.005392730995 40.387123075
0xf845e16fae407495b11569eea6ad55a5d0f01a978980fcf306e7ca0fc93a7c3fClaim1155Event284598612022-05-18 7:18:5344 days 6 hrs ago0x1236a6089c406d12fb0e2622b36fa139dd6552c1 IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.005531523645 41.426565953
0x7306bdbf88181f56f18ebc2ff09a3b77927b6b0927945a27395bbe4da25db363Claim1155Event284598272022-05-18 7:17:4144 days 6 hrs ago0x665cf44f5246280387da37536cec3ea934fa67aa IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.00537676964 40.267585642
0x001a79688c1bc8f06fc9381be754f3aa2f453d7dd9736416e7f5b77b74641f9cClaim1155Event284597922022-05-18 7:16:3144 days 6 hrs ago0x1359af2923ad9b03cf77337f55ecd56ea64a043b IN  0xce107fdd283a0428dd5eb67fea83a550ba47253d0 MATIC0.00612714297 45.88726518
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Metaverse

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 9 : Metaverse.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "./interfaces/IEventWhitelist.sol";
import "./interfaces/IMetaFarm721.sol";
import "./interfaces/IMetaFarm1155.sol";

contract Metaverse is Ownable {
    event MetaverseEventClaimed(
        address indexed user,
        uint256 indexed eventId,
        uint256 indexed tokenId,
        uint256 amount,
        uint256 claimType,
        address token
    );

    struct MetaverseEvent {
        uint256 id;
        uint256 fromDate;
        uint256 toDate;
        uint256 tokenId;
        uint256 amount;
        IEventWhitelist whitelistContract;
        address nft1155Contract;
        address nft721Contract;
        uint256 nftType;
    }

    mapping(uint256 => MetaverseEvent) public metaverseEvents;
    mapping(uint256 => mapping(address => bool)) public metaverseEventClaims;

    function addMetaverseEvent(
        uint256 _id,
        uint256 _fromDate,
        uint256 _toDate,
        uint256 _tokenId,
        uint256 _amount,
        address _whitelistContract,
        address _nftContract,
        uint256 _nftType
    ) external onlyOwner {
        require(
            metaverseEvents[_id].id == 0,
            "Metaverse: airdrop event is existed"
        );
        require(
            _nftType == 1155 || _nftType == 721,
            "Metaverse: invalid event NFT type"
        );
        metaverseEvents[_id] = MetaverseEvent({
            id: _id,
            fromDate: _fromDate,
            toDate: _toDate,
            tokenId: _tokenId,
            amount: _amount,
            whitelistContract: IEventWhitelist(_whitelistContract),
            nftType: _nftType,
            nft1155Contract: _nftType == 1155 ? _nftContract : address(0x0),
            nft721Contract: _nftType == 721 ? _nftContract : address(0x0)
        });
    }

    function claim1155Event(uint256 _id) external {
        MetaverseEvent memory eventInfo = metaverseEvents[_id];
        require(eventInfo.id > 0, "Metaverse: invalid event to join");
        require(
            block.timestamp >= eventInfo.fromDate,
            "Metaverse: event is not started"
        );
        require(
            block.timestamp <= eventInfo.toDate,
            "Metaverse: event is done"
        );
        require(eventInfo.nftType == 1155, "Metaverse: invalid input value");
        address userAddress = _msgSender();
        require(
            eventInfo.whitelistContract.isInWhitelist(userAddress),
            "Metaverse: you are not in whitelist to receive event gifts"
        );
        require(
            metaverseEventClaims[_id][userAddress] == false,
            "Metaverse: invalid action"
        );
        IMetaFarm1155 nftContract = IMetaFarm1155(eventInfo.nft1155Contract);
        nftContract.mint(userAddress, eventInfo.tokenId, eventInfo.amount);
        metaverseEventClaims[_id][userAddress] = true;
        emit MetaverseEventClaimed(
            userAddress,
            _id,
            eventInfo.tokenId,
            eventInfo.amount,
            eventInfo.nftType,
            eventInfo.nft1155Contract
        );
    }

    function claim721Event(uint256 _id, uint256 _tokenId) external {
        MetaverseEvent memory eventInfo = metaverseEvents[_id];
        require(eventInfo.id > 0, "Metaverse: invalid event to join");
        require(
            block.timestamp >= eventInfo.fromDate,
            "Metaverse: event is not started"
        );
        require(
            block.timestamp <= eventInfo.toDate,
            "Metaverse: event is done"
        );
        require(eventInfo.nftType == 721, "Metaverse: invalid input value");
        address userAddress = _msgSender();
        require(
            eventInfo.whitelistContract.isInWhitelist(_msgSender()),
            "Metaverse: you are not in whitelist to receive event gifts"
        );
        require(
            metaverseEventClaims[_id][userAddress] == false,
            "Metaverse: invalid action"
        );
        IMetaFarm721 nftContract = IMetaFarm721(eventInfo.nft721Contract);
        nftContract.safeMint(userAddress, _tokenId);
        metaverseEventClaims[_id][userAddress] = true;
        emit MetaverseEventClaimed(
            userAddress,
            _id,
            _tokenId,
            eventInfo.amount,
            eventInfo.nftType,
            eventInfo.nft721Contract
        );
    }
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

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

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

File 3 of 9 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 9 : IEventWhitelist.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

interface IEventWhitelist {
    function isInWhitelist(address _user) external view returns (bool);
}

File 5 of 9 : IMetaFarm721.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

interface IMetaFarm721 is IERC721 {
    function safeMint(address to, uint256 id) external;

    function safeMintBatch(address to, uint256[] calldata ids) external;
}

File 6 of 9 : IMetaFarm1155.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";

interface IMetaFarm1155 is IERC1155 {
    function mint(
        address to,
        uint256 id,
        uint256 amount
    ) external;
}

File 7 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

File 9 of 9 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"eventId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimType","type":"uint256"},{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"MetaverseEventClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_fromDate","type":"uint256"},{"internalType":"uint256","name":"_toDate","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_whitelistContract","type":"address"},{"internalType":"address","name":"_nftContract","type":"address"},{"internalType":"uint256","name":"_nftType","type":"uint256"}],"name":"addMetaverseEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"claim1155Event","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claim721Event","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"metaverseEventClaims","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metaverseEvents","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"fromDate","type":"uint256"},{"internalType":"uint256","name":"toDate","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"contract IEventWhitelist","name":"whitelistContract","type":"address"},{"internalType":"address","name":"nft1155Contract","type":"address"},{"internalType":"address","name":"nft721Contract","type":"address"},{"internalType":"uint256","name":"nftType","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061002d61002261003260201b60201c565b61003a60201b60201c565b6100fe565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611bb48061010d6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063e04e44d11161005b578063e04e44d114610101578063e1b14dbe1461011d578063f2fde38b14610139578063fef4e2b51461015557610088565b8063271366391461008d5780636787ad8e146100bd578063715018a6146100d95780638da5cb5b146100e3575b600080fd5b6100a760048036038101906100a2919061132c565b61018d565b6040516100b4919061166b565b60405180910390f35b6100d760048036038101906100d29190611303565b6101bc565b005b6100e161070b565b005b6100eb610793565b6040516100f891906115f0565b60405180910390f35b61011b600480360381019061011691906113a4565b6107bc565b005b61013760048036038101906101329190611368565b610ab7565b005b610153600480360381019061014e91906112b1565b611000565b005b61016f600480360381019061016a9190611303565b6110f8565b604051610184999897969594939291906117fd565b60405180910390f35b60026020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b6000600160008381526020019081526020016000206040518061012001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016006820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016007820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160088201548152505090506000816000015111610364576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161035b906116c6565b60405180910390fd5b80602001514210156103ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a290611786565b60405180910390fd5b80604001514211156103f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e990611726565b60405180910390fd5b6104838161010001511461043b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610432906116e6565b60405180910390fd5b60006104456111a6565b90508160a0015173ffffffffffffffffffffffffffffffffffffffff166309fd8212826040518263ffffffff1660e01b815260040161048491906115f0565b60206040518083038186803b15801561049c57600080fd5b505afa1580156104b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d491906112da565b610513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050a90611746565b60405180910390fd5b600015156002600085815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146105b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105ae90611766565b60405180910390fd5b60008260c0015190508073ffffffffffffffffffffffffffffffffffffffff1663156e29f683856060015186608001516040518463ffffffff1660e01b815260040161060593929190611634565b600060405180830381600087803b15801561061f57600080fd5b505af1158015610633573d6000803e3d6000fd5b5050505060016002600086815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508260600151848373ffffffffffffffffffffffffffffffffffffffff167fd462dbfec98e28e5d9f78c1c7f5e507c70df02fd9eeaa390ede5210f3b4fdfd186608001518761010001518860c001516040516106fd939291906117c6565b60405180910390a450505050565b6107136111a6565b73ffffffffffffffffffffffffffffffffffffffff16610731610793565b73ffffffffffffffffffffffffffffffffffffffff1614610787576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077e90611706565b60405180910390fd5b61079160006111ae565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6107c46111a6565b73ffffffffffffffffffffffffffffffffffffffff166107e2610793565b73ffffffffffffffffffffffffffffffffffffffff1614610838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082f90611706565b60405180910390fd5b6000600160008a81526020019081526020016000206000015414610891576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610888906117a6565b60405180910390fd5b6104838114806108a257506102d181145b6108e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d8906116a6565b60405180910390fd5b6040518061012001604052808981526020018881526020018781526020018681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff1681526020016104838314610937576000610939565b835b73ffffffffffffffffffffffffffffffffffffffff1681526020016102d18314610964576000610966565b835b73ffffffffffffffffffffffffffffffffffffffff16815260200182815250600160008a8152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a08201518160050160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060c08201518160060160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060e08201518160070160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061010082015181600801559050505050505050505050565b6000600160008481526020019081526020016000206040518061012001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016006820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016007820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160088201548152505090506000816000015111610c5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c56906116c6565b60405180910390fd5b8060200151421015610ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9d90611786565b60405180910390fd5b8060400151421115610ced576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce490611726565b60405180910390fd5b6102d181610100015114610d36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2d906116e6565b60405180910390fd5b6000610d406111a6565b90508160a0015173ffffffffffffffffffffffffffffffffffffffff166309fd8212610d6a6111a6565b6040518263ffffffff1660e01b8152600401610d8691906115f0565b60206040518083038186803b158015610d9e57600080fd5b505afa158015610db2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd691906112da565b610e15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0c90611746565b60405180910390fd5b600015156002600086815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610eb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb090611766565b60405180910390fd5b60008260e0015190508073ffffffffffffffffffffffffffffffffffffffff1663a144819483866040518363ffffffff1660e01b8152600401610efd92919061160b565b600060405180830381600087803b158015610f1757600080fd5b505af1158015610f2b573d6000803e3d6000fd5b5050505060016002600087815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555083858373ffffffffffffffffffffffffffffffffffffffff167fd462dbfec98e28e5d9f78c1c7f5e507c70df02fd9eeaa390ede5210f3b4fdfd186608001518761010001518860e00151604051610ff1939291906117c6565b60405180910390a45050505050565b6110086111a6565b73ffffffffffffffffffffffffffffffffffffffff16611026610793565b73ffffffffffffffffffffffffffffffffffffffff161461107c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107390611706565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156110ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e390611686565b60405180910390fd5b6110f5816111ae565b50565b60016020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060070160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060080154905089565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008135905061128181611b39565b92915050565b60008151905061129681611b50565b92915050565b6000813590506112ab81611b67565b92915050565b6000602082840312156112c357600080fd5b60006112d184828501611272565b91505092915050565b6000602082840312156112ec57600080fd5b60006112fa84828501611287565b91505092915050565b60006020828403121561131557600080fd5b60006113238482850161129c565b91505092915050565b6000806040838503121561133f57600080fd5b600061134d8582860161129c565b925050602061135e85828601611272565b9150509250929050565b6000806040838503121561137b57600080fd5b60006113898582860161129c565b925050602061139a8582860161129c565b9150509250929050565b600080600080600080600080610100898b0312156113c157600080fd5b60006113cf8b828c0161129c565b98505060206113e08b828c0161129c565b97505060406113f18b828c0161129c565b96505060606114028b828c0161129c565b95505060806114138b828c0161129c565b94505060a06114248b828c01611272565b93505060c06114358b828c01611272565b92505060e06114468b828c0161129c565b9150509295985092959890939650565b61145f8161189b565b82525050565b61146e816118ad565b82525050565b61147d816118e3565b82525050565b600061149060268361188a565b915061149b82611907565b604082019050919050565b60006114b360218361188a565b91506114be82611956565b604082019050919050565b60006114d660208361188a565b91506114e1826119a5565b602082019050919050565b60006114f9601e8361188a565b9150611504826119ce565b602082019050919050565b600061151c60208361188a565b9150611527826119f7565b602082019050919050565b600061153f60188361188a565b915061154a82611a20565b602082019050919050565b6000611562603a8361188a565b915061156d82611a49565b604082019050919050565b600061158560198361188a565b915061159082611a98565b602082019050919050565b60006115a8601f8361188a565b91506115b382611ac1565b602082019050919050565b60006115cb60238361188a565b91506115d682611aea565b604082019050919050565b6115ea816118d9565b82525050565b60006020820190506116056000830184611456565b92915050565b60006040820190506116206000830185611456565b61162d60208301846115e1565b9392505050565b60006060820190506116496000830186611456565b61165660208301856115e1565b61166360408301846115e1565b949350505050565b60006020820190506116806000830184611465565b92915050565b6000602082019050818103600083015261169f81611483565b9050919050565b600060208201905081810360008301526116bf816114a6565b9050919050565b600060208201905081810360008301526116df816114c9565b9050919050565b600060208201905081810360008301526116ff816114ec565b9050919050565b6000602082019050818103600083015261171f8161150f565b9050919050565b6000602082019050818103600083015261173f81611532565b9050919050565b6000602082019050818103600083015261175f81611555565b9050919050565b6000602082019050818103600083015261177f81611578565b9050919050565b6000602082019050818103600083015261179f8161159b565b9050919050565b600060208201905081810360008301526117bf816115be565b9050919050565b60006060820190506117db60008301866115e1565b6117e860208301856115e1565b6117f56040830184611456565b949350505050565b600061012082019050611813600083018c6115e1565b611820602083018b6115e1565b61182d604083018a6115e1565b61183a60608301896115e1565b61184760808301886115e1565b61185460a0830187611474565b61186160c0830186611456565b61186e60e0830185611456565b61187c6101008301846115e1565b9a9950505050505050505050565b600082825260208201905092915050565b60006118a6826118b9565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006118ee826118f5565b9050919050565b6000611900826118b9565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4d65746176657273653a20696e76616c6964206576656e74204e46542074797060008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d65746176657273653a20696e76616c6964206576656e7420746f206a6f696e600082015250565b7f4d65746176657273653a20696e76616c696420696e7075742076616c75650000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4d65746176657273653a206576656e7420697320646f6e650000000000000000600082015250565b7f4d65746176657273653a20796f7520617265206e6f7420696e2077686974656c60008201527f69737420746f2072656365697665206576656e74206769667473000000000000602082015250565b7f4d65746176657273653a20696e76616c696420616374696f6e00000000000000600082015250565b7f4d65746176657273653a206576656e74206973206e6f74207374617274656400600082015250565b7f4d65746176657273653a2061697264726f70206576656e74206973206578697360008201527f7465640000000000000000000000000000000000000000000000000000000000602082015250565b611b428161189b565b8114611b4d57600080fd5b50565b611b59816118ad565b8114611b6457600080fd5b50565b611b70816118d9565b8114611b7b57600080fd5b5056fea26469706673582212202f962c273127062a358274cad878d8e805df8f06ef05729d960430b5190c868364736f6c63430008040033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.