Contract 0x41a73083b581afD2Ab3A1cDf959E4857132a88BC

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x0b8c4e53542a3ead924c6b17b434e249d3565598bcf1b5c133433ee01de45c61Drop202481432021-10-15 15:58:4416 hrs 25 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00213831
0x2c5e791f53a6635cce2970d82caf03c095f7ec118943d4341d63d6367c9dba13Update Drop Info202481262021-10-15 15:58:0616 hrs 25 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00426666
0x711d67f7e9da547a6c3ddd97027678bba7467ea425f389549d06d5d8309b20e8Add Whitelist202481042021-10-15 15:57:2216 hrs 26 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00569028
0x523f70fd9344fcb8d6ccd0117c73f48ec1f9b1783c418ceb24da3e83d9f11145Drop202480852021-10-15 15:56:4416 hrs 27 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00427662
0x4ba67187e1c60c3db1a4abdd070e6a72e865d7dc69380bf110ad51671c451b3eUpdate Drop Info202480762021-10-15 15:56:2616 hrs 27 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00426666
0xad708e967f8862dae6ad164987dc481d177db421a5047bcba1d382390e750d70Add Whitelist202480342021-10-15 15:54:5816 hrs 28 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00569028
0x976c2fb589cdc1e5bffeb4d974758dfb630fd0b8853b7b89b83ee24085485e44Drop202480122021-10-15 15:54:1416 hrs 29 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00213831
0x18191401dd1b859bf62a21578952d38b05c2c71fd34b12e33d54042670c64fefUpdate Drop Info202479742021-10-15 15:52:5416 hrs 30 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00213333
0x64b7b550f44f5133aac2c7907ef68ba6cfa84332e4a8e6125a8d8d61efaf2c67Add Whitelist202479532021-10-15 15:52:1216 hrs 31 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00569028
0xde06d142e83431a91bad850a08fa8e8367badb71405fe7f23618e97169187d0cDrop202478782021-10-15 15:49:3816 hrs 34 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00356385
0xa2daa43b81d34ef0de45a377446949822a7a65b3266932c9ef5a037e1ca6c630Update Drop Info202478642021-10-15 15:48:5216 hrs 34 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.002059467715
0x2f732996229a4f65693436d0107d9ac849ea1ac8b899e9d330ab52889909badfAdd Whitelist202478602021-10-15 15:48:3616 hrs 35 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00284514
0x14df4c819a0a898fdd3dc040d0c52163b24c67656c868ea67a0acbb057e175b7Drop202478502021-10-15 15:47:5616 hrs 35 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00530262
0x1813c87a1b01c1ce9df01bb4214e6fd6c3793dec5c891b35fe5f0c1ef5d4eb86Update Drop Info202478422021-10-15 15:47:2416 hrs 36 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.001985605164
0xacf48f740a0362e959a2a3dc592e93cdddb62ce04f908ec3fb31c7d264a188ebAdd Whitelist202476952021-10-15 15:41:1116 hrs 42 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00094838
0x169c85049285d7575a0008beac4ca147b6d47be8680675ce9a4720a3066a6f23Drop202476552021-10-15 15:39:4716 hrs 44 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00071277
0xc34de0980be934ea2bae3a94cd6ef1f60db60cc3af923916a5fa396d759a6608Update Drop Info202476332021-10-15 15:39:0316 hrs 44 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00213333
0x79a5a2ff2b54f2497f7828aba6ae0c7f3194b270d1577096c2f031239f9aea72Add Whitelist202476282021-10-15 15:38:5316 hrs 44 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00284514
0x4453f4322197eecb237667d93cc1d036260c1a522729b59f6a4078b41f55d06cDrop202476152021-10-15 15:38:2316 hrs 45 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00213831
0x81897fcb23355c6002a55a40511164bb93fe8d8252e7c103f2f96e350e92a267Update Drop Info202475582021-10-15 15:36:2916 hrs 47 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00213333
0x912f8ed0cee1faffa4bed407a4fda1068fdadbd06baa3c7f51efbf338ce0c5efAdd Whitelist202475552021-10-15 15:36:2316 hrs 47 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00284514
0xa4ac4332ff34653337b50c6a48efde1936e1abb72c68d3d76275a08eabfae1e2Drop202475422021-10-15 15:35:5316 hrs 47 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00213831
0x158b1431bf46361c34b9c69d523d0941b111f7142b96785de9a3378613110b3dUpdate Drop Info202475312021-10-15 15:35:3116 hrs 48 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00213333
0x67e7ccfa04f8bc8b212a70b074acb1d556cf4017de5cbe9c80e73d6479022971Add Whitelist202475232021-10-15 15:35:1516 hrs 48 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00284514
0x3031069c4ea16a71434efb95aed790fc749eccd7f8f131157ada89d7c78d1f0eDrop202475092021-10-15 15:34:4716 hrs 49 mins ago0xd6d7f80e850e53f47a6dd91c70638bb3c5523a2d IN  0x41a73083b581afd2ab3a1cdf959e4857132a88bc0 MATIC0.00213831
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Airdrop

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 7 : NFTAirdrop.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.0;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";

contract Airdrop is Ownable, ReentrancyGuard {
    using Address for address;

    struct DropInfo {
        address nftAddress;
        uint256 tokenId;
    }

    // Drop identifier
    uint256 public dropNo;

    // Drop whitelist addresses DropNo => addresses
    mapping(uint256 => address[]) public whitelist;

    // Drop NFT information DropNo => DropInfo
    mapping(uint256 => DropInfo) public dropInfos;

    // DropNo => Address => isWhitelisted
    mapping(uint256 => mapping(address => bool)) public whitelisted;

    // NFT holder address
    address public nftHolder;

    function drop() external onlyOwner nonReentrant {
        require(dropInfos[dropNo].nftAddress != address(0), "DropInfo not set");
        require(
            IERC1155(dropInfos[dropNo].nftAddress).balanceOf(
                nftHolder,
                dropInfos[dropNo].tokenId
            ) >= whitelist[dropNo].length,
            "NFT holder hasn't enough NFT items"
        );

        for (uint256 i = 0; i < whitelist[dropNo].length; i++) {
            IERC1155(dropInfos[dropNo].nftAddress).safeTransferFrom(
                nftHolder,
                whitelist[dropNo][i],
                dropInfos[dropNo].tokenId,
                1,
                "0x00"
            );
        }
        dropNo++;
    }

    function addWhitelist(address[] memory _accounts) external onlyOwner {
        require(_accounts.length != 0, "invalid accounts array");

        for (uint256 i = 0; i < _accounts.length; i++) {
            if (!whitelisted[dropNo][_accounts[i]]) {
                whitelist[dropNo].push(_accounts[i]);
                whitelisted[dropNo][_accounts[i]] = true;
            }
        }
    }

    function removeFromWhitelist(address _account) external onlyOwner {
        require(_account != address(0), "Invalid address");

        for (uint256 i = 0; i < whitelist[dropNo].length; i++) {
            if (whitelist[dropNo][i] == _account) {
                whitelist[dropNo][i] = whitelist[dropNo][whitelist[dropNo].length - 1];
                whitelist[dropNo].pop();
                whitelisted[dropNo][_account] = false;

                break;
            }
        }
    }

    function updateDropInfo(address _nftAddress, uint256 _tokenId) external onlyOwner {
        dropInfos[dropNo].tokenId = _tokenId;
        dropInfos[dropNo].nftAddress = _nftAddress;
    }

    function increaseDropNo() external onlyOwner {
        dropNo++;
    }

    function updateNFTHolder(address _holder) external onlyOwner {
        require(_holder != address(0), "Invalid address");
        nftHolder = _holder;
    }
}

File 2 of 7 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 7 : IERC1155.sol
// SPDX-License-Identifier: MIT

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;
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"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":"address[]","name":"_accounts","type":"address[]"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"drop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"dropInfos","outputs":[{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dropNo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"increaseDropNo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nftHolder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"updateDropInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"}],"name":"updateNFTHolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"whitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5061002d61002261003960201b60201c565b61004160201b60201c565b60018081905550610105565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611c8e806101146000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806394f725351161008c578063dc79bded11610066578063dc79bded14610226578063edac985b14610242578063f2fde38b1461025e578063f751cd8f1461027a576100ea565b806394f72535146101bc578063978a047b146101d8578063ca5003e014610208576100ea565b8063715018a6116100c8578063715018a6146101475780637f9cab6e146101515780638ab1d681146101825780638da5cb5b1461019e576100ea565b8063167b445b146100ef57806344aac430146100f95780636064fcc814610129575b600080fd5b6100f7610284565b005b610113600480360381019061010e9190611600565b61031a565b60405161012091906118c4565b60405180910390f35b610131610368565b60405161013e91906118c4565b60405180910390f35b61014f61038e565b005b61016b60048036038101906101669190611572565b610416565b604051610179929190611937565b60405180910390f35b61019c600480360381019061019791906114cc565b61045a565b005b6101a661084c565b6040516101b391906118c4565b60405180910390f35b6101d660048036038101906101d191906114cc565b610875565b005b6101f260048036038101906101ed91906115c4565b6109a5565b6040516101ff9190611960565b60405180910390f35b6102106109d4565b60405161021d9190611a5b565b60405180910390f35b610240600480360381019061023b91906114f5565b6109da565b005b61025c60048036038101906102579190611531565b610ace565b005b610278600480360381019061027391906114cc565b610db8565b005b610282610eb0565b005b61028c61132b565b73ffffffffffffffffffffffffffffffffffffffff166102aa61084c565b73ffffffffffffffffffffffffffffffffffffffff1614610300576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102f790611a1b565b60405180910390fd5b6002600081548092919061031390611b83565b9190505550565b6003602052816000526040600020818154811061033657600080fd5b906000526020600020016000915091509054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61039661132b565b73ffffffffffffffffffffffffffffffffffffffff166103b461084c565b73ffffffffffffffffffffffffffffffffffffffff161461040a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040190611a1b565b60405180910390fd5b6104146000611333565b565b60046020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b61046261132b565b73ffffffffffffffffffffffffffffffffffffffff1661048061084c565b73ffffffffffffffffffffffffffffffffffffffff16146104d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104cd90611a1b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610546576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053d9061199b565b60405180910390fd5b60005b60036000600254815260200190815260200160002080549050811015610848578173ffffffffffffffffffffffffffffffffffffffff1660036000600254815260200190815260200160002082815481106105cd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156108355760036000600254815260200190815260200160002060016003600060025481526020019081526020016000208054905061064e9190611af5565b81548110610685577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660036000600254815260200190815260200160002082815481106106fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600360006002548152602001908152602001600020805480610790577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690559055600060056000600254815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610848565b808061084090611b83565b915050610549565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61087d61132b565b73ffffffffffffffffffffffffffffffffffffffff1661089b61084c565b73ffffffffffffffffffffffffffffffffffffffff16146108f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e890611a1b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610961576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109589061199b565b60405180910390fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60056020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b60025481565b6109e261132b565b73ffffffffffffffffffffffffffffffffffffffff16610a0061084c565b73ffffffffffffffffffffffffffffffffffffffff1614610a56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4d90611a1b565b60405180910390fd5b80600460006002548152602001908152602001600020600101819055508160046000600254815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b610ad661132b565b73ffffffffffffffffffffffffffffffffffffffff16610af461084c565b73ffffffffffffffffffffffffffffffffffffffff1614610b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4190611a1b565b60405180910390fd5b600081511415610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b86906119bb565b60405180910390fd5b60005b8151811015610db4576005600060025481526020019081526020016000206000838381518110610beb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610da157600360006002548152602001908152602001600020828281518110610c8d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060016005600060025481526020019081526020016000206000848481518110610d47577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b8080610dac90611b83565b915050610b92565b5050565b610dc061132b565b73ffffffffffffffffffffffffffffffffffffffff16610dde61084c565b73ffffffffffffffffffffffffffffffffffffffff1614610e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2b90611a1b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9b906119db565b60405180910390fd5b610ead81611333565b50565b610eb861132b565b73ffffffffffffffffffffffffffffffffffffffff16610ed661084c565b73ffffffffffffffffffffffffffffffffffffffff1614610f2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2390611a1b565b60405180910390fd5b60026001541415610f72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6990611a3b565b60405180910390fd5b6002600181905550600073ffffffffffffffffffffffffffffffffffffffff1660046000600254815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611022576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611019906119fb565b60405180910390fd5b6003600060025481526020019081526020016000208054905060046000600254815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600460006002548152602001908152602001600020600101546040518363ffffffff1660e01b81526004016110e7929190611937565b60206040518083038186803b1580156110ff57600080fd5b505afa158015611113573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611137919061159b565b1015611178576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116f9061197b565b60405180910390fd5b60005b600360006002548152602001908152602001600020805490508110156113095760046000600254815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360006002548152602001908152602001600020848154811061125f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166004600060025481526020019081526020016000206001015460016040518563ffffffff1660e01b81526004016112c494939291906118df565b600060405180830381600087803b1580156112de57600080fd5b505af11580156112f2573d6000803e3d6000fd5b50505050808061130190611b83565b91505061117b565b506002600081548092919061131d90611b83565b919050555060018081905550565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061140a61140584611aa7565b611a76565b9050808382526020820190508285602086028201111561142957600080fd5b60005b85811015611459578161143f8882611463565b84526020840193506020830192505060018101905061142c565b5050509392505050565b60008135905061147281611c2a565b92915050565b600082601f83011261148957600080fd5b81356114998482602086016113f7565b91505092915050565b6000813590506114b181611c41565b92915050565b6000815190506114c681611c41565b92915050565b6000602082840312156114de57600080fd5b60006114ec84828501611463565b91505092915050565b6000806040838503121561150857600080fd5b600061151685828601611463565b9250506020611527858286016114a2565b9150509250929050565b60006020828403121561154357600080fd5b600082013567ffffffffffffffff81111561155d57600080fd5b61156984828501611478565b91505092915050565b60006020828403121561158457600080fd5b6000611592848285016114a2565b91505092915050565b6000602082840312156115ad57600080fd5b60006115bb848285016114b7565b91505092915050565b600080604083850312156115d757600080fd5b60006115e5858286016114a2565b92505060206115f685828601611463565b9150509250929050565b6000806040838503121561161357600080fd5b6000611621858286016114a2565b9250506020611632858286016114a2565b9150509250929050565b61164581611b29565b82525050565b61165481611b3b565b82525050565b61166381611b71565b82525050565b6000611676602283611ae4565b91507f4e465420686f6c646572206861736e277420656e6f756768204e46542069746560008301527f6d730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006116dc600f83611ae4565b91507f496e76616c6964206164647265737300000000000000000000000000000000006000830152602082019050919050565b600061171c601683611ae4565b91507f696e76616c6964206163636f756e7473206172726179000000000000000000006000830152602082019050919050565b600061175c602683611ae4565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006117c2600483611ad3565b91507f30783030000000000000000000000000000000000000000000000000000000006000830152602082019050919050565b6000611802601083611ae4565b91507f44726f70496e666f206e6f7420736574000000000000000000000000000000006000830152602082019050919050565b6000611842602083611ae4565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000611882601f83611ae4565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b6118be81611b67565b82525050565b60006020820190506118d9600083018461163c565b92915050565b600060a0820190506118f4600083018761163c565b611901602083018661163c565b61190e60408301856118b5565b61191b606083018461165a565b818103608083015261192c816117b5565b905095945050505050565b600060408201905061194c600083018561163c565b61195960208301846118b5565b9392505050565b6000602082019050611975600083018461164b565b92915050565b6000602082019050818103600083015261199481611669565b9050919050565b600060208201905081810360008301526119b4816116cf565b9050919050565b600060208201905081810360008301526119d48161170f565b9050919050565b600060208201905081810360008301526119f48161174f565b9050919050565b60006020820190508181036000830152611a14816117f5565b9050919050565b60006020820190508181036000830152611a3481611835565b9050919050565b60006020820190508181036000830152611a5481611875565b9050919050565b6000602082019050611a7060008301846118b5565b92915050565b6000604051905081810181811067ffffffffffffffff82111715611a9d57611a9c611bfb565b5b8060405250919050565b600067ffffffffffffffff821115611ac257611ac1611bfb565b5b602082029050602081019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611b0082611b67565b9150611b0b83611b67565b925082821015611b1e57611b1d611bcc565b5b828203905092915050565b6000611b3482611b47565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611b7c82611b67565b9050919050565b6000611b8e82611b67565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611bc157611bc0611bcc565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611c3381611b29565b8114611c3e57600080fd5b50565b611c4a81611b67565b8114611c5557600080fd5b5056fea264697066735822122095b8eeeab62fb6221128404c61e6a5a2ce36ad7f2e6f63e28690c2a29068ff7664736f6c63430008000033

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.