ETH Price: $2,103.67 (+2.71%)

Contract

0xF3263aD6B00De4a790276ec78d4F492faF3C5ee9
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim246269222026-03-10 11:58:472 days ago1773143927IN
0xF3263aD6...faF3C5ee9
0 ETH0.000016470.16122758
Claim246269142026-03-10 11:57:112 days ago1773143831IN
0xF3263aD6...faF3C5ee9
0 ETH0.000016530.16178217
Claim246266612026-03-10 11:05:592 days ago1773140759IN
0xF3263aD6...faF3C5ee9
0 ETH0.00001960.19189608
Claim245929232026-03-05 18:00:357 days ago1772733635IN
0xF3263aD6...faF3C5ee9
0 ETH0.000114821.12373413
Claim245864972026-03-04 20:31:238 days ago1772656283IN
0xF3263aD6...faF3C5ee9
0 ETH0.000114621.12167019
Claim245846642026-03-04 14:22:238 days ago1772634143IN
0xF3263aD6...faF3C5ee9
0 ETH0.000234512.29556022
Claim245846292026-03-04 14:15:238 days ago1772633723IN
0xF3263aD6...faF3C5ee9
0 ETH0.000225782.2632395
Claim245845252026-03-04 13:54:358 days ago1772632475IN
0xF3263aD6...faF3C5ee9
0 ETH0.00022382.19072049
Claim241507692026-01-03 1:15:1169 days ago1767402911IN
0xF3263aD6...faF3C5ee9
0 ETH0.000003450.03412124
Claim241117262025-12-28 14:27:4774 days ago1766932067IN
0xF3263aD6...faF3C5ee9
0 ETH0.000105351.03124793
Claim240157652025-12-15 4:58:3588 days ago1765774715IN
0xF3263aD6...faF3C5ee9
0 ETH0.000208192.03806994
Claim238213242025-11-17 20:40:47115 days ago1763412047IN
0xF3263aD6...faF3C5ee9
0 ETH0.000350583.43172834
Claim237910302025-11-13 14:58:23119 days ago1763045903IN
0xF3263aD6...faF3C5ee9
0 ETH0.000450664.41091788
Claim237638552025-11-09 19:41:11123 days ago1762717271IN
0xF3263aD6...faF3C5ee9
0 ETH0.000111181.09682248
Claim237638382025-11-09 19:37:47123 days ago1762717067IN
0xF3263aD6...faF3C5ee9
0 ETH0.00010221.000001
Claim237638332025-11-09 19:36:47123 days ago1762717007IN
0xF3263aD6...faF3C5ee9
0 ETH0.000031630.31714807
Claim237638162025-11-09 19:33:23123 days ago1762716803IN
0xF3263aD6...faF3C5ee9
0 ETH0.000014310.14011384
Claim237638112025-11-09 19:32:23123 days ago1762716743IN
0xF3263aD6...faF3C5ee9
0 ETH0.000014040.13738007
Claim237516432025-11-08 2:44:47125 days ago1762569887IN
0xF3263aD6...faF3C5ee9
0 ETH0.000219612.14927921
Claim237389192025-11-06 8:01:47127 days ago1762416107IN
0xF3263aD6...faF3C5ee9
0 ETH0.000268942.63225471
Claim237254242025-11-04 10:40:35128 days ago1762252835IN
0xF3263aD6...faF3C5ee9
0 ETH0.000164341.60850308
Claim237253312025-11-04 10:21:59128 days ago1762251719IN
0xF3263aD6...faF3C5ee9
0 ETH0.000166251.62705954
Claim237247172025-11-04 8:18:35129 days ago1762244315IN
0xF3263aD6...faF3C5ee9
0 ETH0.000364343.56642888
Claim237113812025-11-02 11:35:47130 days ago1762083347IN
0xF3263aD6...faF3C5ee9
0 ETH0.000213442.08887285
Claim237076582025-11-01 23:07:35131 days ago1762038455IN
0xF3263aD6...faF3C5ee9
0 ETH0.000110391.08031524
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:
DyorDistribution

Compiler Version
v0.8.29+commit.ab55807c

Optimization Enabled:
No with 200 runs

Other Settings:
prague EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity =0.8.29;

import "@openzeppelin/contracts/access/Ownable.sol";
// import erc20 interface
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract DyorDistribution is Ownable {
    IERC20 public immutable token;

    mapping(address => bool) public hasClaimed;
    bytes32 public root;
    uint256 constant public TOKENS_PER_NFT = 108e18;

    constructor(address _token, bytes32 _root) Ownable(msg.sender) {
        token = IERC20(_token);
        root = _root;
    }

    function updateRoot(bytes32 _root) external onlyOwner {
        root = _root;
    }

    function emergencyWithdraw() external onlyOwner {
        token.transfer(msg.sender, token.balanceOf(address(this)));
    }

    error AlreadyClaimed();
    error InvalidProof();

    function claim(uint256 _nftCount, bytes32[] calldata _proof) external {
        if (hasClaimed[msg.sender]) revert AlreadyClaimed();
        // verify merkle proof
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender, _nftCount));
        if (!MerkleProof.verify(_proof, root, leaf)) revert InvalidProof();

        hasClaimed[msg.sender] = true;

        token.transfer(msg.sender, _nftCount * TOKENS_PER_NFT);
    }

}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/MerkleProof.sol)
// This file was procedurally generated from scripts/generate/templates/MerkleProof.js.

pragma solidity ^0.8.20;

import {Hashes} from "./Hashes.sol";

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the Merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates Merkle trees that are safe
 * against this attack out of the box.
 *
 * IMPORTANT: Consider memory side-effects when using custom hashing functions
 * that access memory in an unsafe way.
 *
 * NOTE: This library supports proof verification for merkle trees built using
 * custom _commutative_ hashing functions (i.e. `H(a, b) == H(b, a)`). Proving
 * leaf inclusion in trees built using non-commutative hashing functions requires
 * additional logic that is not supported by this library.
 */
library MerkleProof {
    /**
     *@dev The multiproof provided is not valid.
     */
    error MerkleProofInvalidMultiproof();

    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     *
     * This version handles proofs in memory with the default hashing function.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leaves & pre-images are assumed to be sorted.
     *
     * This version handles proofs in memory with the default hashing function.
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = Hashes.commutativeKeccak256(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     *
     * This version handles proofs in memory with a custom hashing function.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf,
        function(bytes32, bytes32) view returns (bytes32) hasher
    ) internal view returns (bool) {
        return processProof(proof, leaf, hasher) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leaves & pre-images are assumed to be sorted.
     *
     * This version handles proofs in memory with a custom hashing function.
     */
    function processProof(
        bytes32[] memory proof,
        bytes32 leaf,
        function(bytes32, bytes32) view returns (bytes32) hasher
    ) internal view returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = hasher(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     *
     * This version handles proofs in calldata with the default hashing function.
     */
    function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leaves & pre-images are assumed to be sorted.
     *
     * This version handles proofs in calldata with the default hashing function.
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = Hashes.commutativeKeccak256(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     *
     * This version handles proofs in calldata with a custom hashing function.
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf,
        function(bytes32, bytes32) view returns (bytes32) hasher
    ) internal view returns (bool) {
        return processProofCalldata(proof, leaf, hasher) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leaves & pre-images are assumed to be sorted.
     *
     * This version handles proofs in calldata with a custom hashing function.
     */
    function processProofCalldata(
        bytes32[] calldata proof,
        bytes32 leaf,
        function(bytes32, bytes32) view returns (bytes32) hasher
    ) internal view returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = hasher(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * This version handles multiproofs in memory with the default hashing function.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * NOTE: Consider the case where `root == proof[0] && leaves.length == 0` as it will return `true`.
     * The `leaves` must be validated independently. See {processMultiProof}.
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * This version handles multiproofs in memory with the default hashing function.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * NOTE: The _empty set_ (i.e. the case where `proof.length == 1 && leaves.length == 0`) is considered a no-op,
     * and therefore a valid multiproof (i.e. it returns `proof[0]`). Consider disallowing this case if you're not
     * validating the leaves elsewhere.
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofFlagsLen = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proof.length != proofFlagsLen + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](proofFlagsLen);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < proofFlagsLen; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = Hashes.commutativeKeccak256(a, b);
        }

        if (proofFlagsLen > 0) {
            if (proofPos != proof.length) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[proofFlagsLen - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * This version handles multiproofs in memory with a custom hashing function.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * NOTE: Consider the case where `root == proof[0] && leaves.length == 0` as it will return `true`.
     * The `leaves` must be validated independently. See {processMultiProof}.
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves,
        function(bytes32, bytes32) view returns (bytes32) hasher
    ) internal view returns (bool) {
        return processMultiProof(proof, proofFlags, leaves, hasher) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * This version handles multiproofs in memory with a custom hashing function.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * NOTE: The _empty set_ (i.e. the case where `proof.length == 1 && leaves.length == 0`) is considered a no-op,
     * and therefore a valid multiproof (i.e. it returns `proof[0]`). Consider disallowing this case if you're not
     * validating the leaves elsewhere.
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves,
        function(bytes32, bytes32) view returns (bytes32) hasher
    ) internal view returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofFlagsLen = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proof.length != proofFlagsLen + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](proofFlagsLen);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < proofFlagsLen; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = hasher(a, b);
        }

        if (proofFlagsLen > 0) {
            if (proofPos != proof.length) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[proofFlagsLen - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * This version handles multiproofs in calldata with the default hashing function.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * NOTE: Consider the case where `root == proof[0] && leaves.length == 0` as it will return `true`.
     * The `leaves` must be validated independently. See {processMultiProofCalldata}.
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * This version handles multiproofs in calldata with the default hashing function.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * NOTE: The _empty set_ (i.e. the case where `proof.length == 1 && leaves.length == 0`) is considered a no-op,
     * and therefore a valid multiproof (i.e. it returns `proof[0]`). Consider disallowing this case if you're not
     * validating the leaves elsewhere.
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofFlagsLen = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proof.length != proofFlagsLen + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](proofFlagsLen);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < proofFlagsLen; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = Hashes.commutativeKeccak256(a, b);
        }

        if (proofFlagsLen > 0) {
            if (proofPos != proof.length) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[proofFlagsLen - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * This version handles multiproofs in calldata with a custom hashing function.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * NOTE: Consider the case where `root == proof[0] && leaves.length == 0` as it will return `true`.
     * The `leaves` must be validated independently. See {processMultiProofCalldata}.
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves,
        function(bytes32, bytes32) view returns (bytes32) hasher
    ) internal view returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves, hasher) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * This version handles multiproofs in calldata with a custom hashing function.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * NOTE: The _empty set_ (i.e. the case where `proof.length == 1 && leaves.length == 0`) is considered a no-op,
     * and therefore a valid multiproof (i.e. it returns `proof[0]`). Consider disallowing this case if you're not
     * validating the leaves elsewhere.
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves,
        function(bytes32, bytes32) view returns (bytes32) hasher
    ) internal view returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofFlagsLen = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proof.length != proofFlagsLen + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](proofFlagsLen);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < proofFlagsLen; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = hasher(a, b);
        }

        if (proofFlagsLen > 0) {
            if (proofPos != proof.length) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[proofFlagsLen - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/Hashes.sol)

pragma solidity ^0.8.20;

/**
 * @dev Library of standard hash functions.
 *
 * _Available since v5.1._
 */
library Hashes {
    /**
     * @dev Commutative Keccak256 hash of a sorted pair of bytes32. Frequently used when working with merkle proofs.
     *
     * NOTE: Equivalent to the `standardNodeHash` in our https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
     */
    function commutativeKeccak256(bytes32 a, bytes32 b) internal pure returns (bytes32) {
        return a < b ? efficientKeccak256(a, b) : efficientKeccak256(b, a);
    }

    /**
     * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.
     */
    function efficientKeccak256(bytes32 a, bytes32 b) internal pure returns (bytes32 value) {
        assembly ("memory-safe") {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/"
  ],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "prague",
  "viaIR": false
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bytes32","name":"_root","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyClaimed","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"TOKENS_PER_NFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nftCount","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"updateRoot","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561000f575f5ffd5b5060405161102f38038061102f83398181016040528101906100319190610246565b335f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100a2575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016100999190610293565b60405180910390fd5b6100b1816100f460201b60201c565b508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508060028190555050506102ac565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6101e2826101b9565b9050919050565b6101f2816101d8565b81146101fc575f5ffd5b50565b5f8151905061020d816101e9565b92915050565b5f819050919050565b61022581610213565b811461022f575f5ffd5b50565b5f815190506102408161021c565b92915050565b5f5f6040838503121561025c5761025b6101b5565b5b5f610269858286016101ff565b925050602061027a85828601610232565b9150509250929050565b61028d816101d8565b82525050565b5f6020820190506102a65f830184610284565b92915050565b608051610d566102d95f395f81816103480152818161046a015281816104a701526106290152610d565ff3fe608060405234801561000f575f5ffd5b506004361061009c575f3560e01c8063adee8ff211610064578063adee8ff214610130578063db2e21bc1461014e578063ebf0c71714610158578063f2fde38b14610176578063fc0c546a146101925761009c565b806321ff9970146100a05780632f52ebb7146100bc578063715018a6146100d857806373b2e80e146100e25780638da5cb5b14610112575b5f5ffd5b6100ba60048036038101906100b5919061087a565b6101b0565b005b6100d660048036038101906100d19190610939565b6101c2565b005b6100e06103fc565b005b6100fc60048036038101906100f791906109f0565b61040f565b6040516101099190610a35565b60405180910390f35b61011a61042c565b6040516101279190610a5d565b60405180910390f35b610138610453565b6040516101459190610a85565b60405180910390f35b610156610460565b005b61016061059d565b60405161016d9190610aad565b60405180910390f35b610190600480360381019061018b91906109f0565b6105a3565b005b61019a610627565b6040516101a79190610b21565b60405180910390f35b6101b861064b565b8060028190555050565b60015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610243576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f3384604051602001610257929190610b9f565b6040516020818303038152906040528051906020012090506102bc8383808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f82011690508083019250505050505050600254836106d2565b6102f2576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001805f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb336805dacd13ca9e300000876103989190610bf7565b6040518363ffffffff1660e01b81526004016103b5929190610c38565b6020604051808303815f875af11580156103d1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103f59190610c89565b5050505050565b61040461064b565b61040d5f6106e8565b565b6001602052805f5260405f205f915054906101000a900460ff1681565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6805dacd13ca9e30000081565b61046861064b565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104fe9190610a5d565b602060405180830381865afa158015610519573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053d9190610cc8565b6040518363ffffffff1660e01b815260040161055a929190610c38565b6020604051808303815f875af1158015610576573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059a9190610c89565b50565b60025481565b6105ab61064b565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361061b575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016106129190610a5d565b60405180910390fd5b610624816106e8565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b6106536107a9565b73ffffffffffffffffffffffffffffffffffffffff1661067161042c565b73ffffffffffffffffffffffffffffffffffffffff16146106d0576106946107a9565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016106c79190610a5d565b60405180910390fd5b565b5f826106de85846107b0565b1490509392505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b5f5f8290505f5f90505b84518110156107f6576107e7828683815181106107da576107d9610cf3565b5b6020026020010151610801565b915080806001019150506107ba565b508091505092915050565b5f81831061081857610813828461082b565b610823565b610822838361082b565b5b905092915050565b5f825f528160205260405f20905092915050565b5f5ffd5b5f5ffd5b5f819050919050565b61085981610847565b8114610863575f5ffd5b50565b5f8135905061087481610850565b92915050565b5f6020828403121561088f5761088e61083f565b5b5f61089c84828501610866565b91505092915050565b5f819050919050565b6108b7816108a5565b81146108c1575f5ffd5b50565b5f813590506108d2816108ae565b92915050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f8401126108f9576108f86108d8565b5b8235905067ffffffffffffffff811115610916576109156108dc565b5b602083019150836020820283011115610932576109316108e0565b5b9250929050565b5f5f5f604084860312156109505761094f61083f565b5b5f61095d868287016108c4565b935050602084013567ffffffffffffffff81111561097e5761097d610843565b5b61098a868287016108e4565b92509250509250925092565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6109bf82610996565b9050919050565b6109cf816109b5565b81146109d9575f5ffd5b50565b5f813590506109ea816109c6565b92915050565b5f60208284031215610a0557610a0461083f565b5b5f610a12848285016109dc565b91505092915050565b5f8115159050919050565b610a2f81610a1b565b82525050565b5f602082019050610a485f830184610a26565b92915050565b610a57816109b5565b82525050565b5f602082019050610a705f830184610a4e565b92915050565b610a7f816108a5565b82525050565b5f602082019050610a985f830184610a76565b92915050565b610aa781610847565b82525050565b5f602082019050610ac05f830184610a9e565b92915050565b5f819050919050565b5f610ae9610ae4610adf84610996565b610ac6565b610996565b9050919050565b5f610afa82610acf565b9050919050565b5f610b0b82610af0565b9050919050565b610b1b81610b01565b82525050565b5f602082019050610b345f830184610b12565b92915050565b5f8160601b9050919050565b5f610b5082610b3a565b9050919050565b5f610b6182610b46565b9050919050565b610b79610b74826109b5565b610b57565b82525050565b5f819050919050565b610b99610b94826108a5565b610b7f565b82525050565b5f610baa8285610b68565b601482019150610bba8284610b88565b6020820191508190509392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610c01826108a5565b9150610c0c836108a5565b9250828202610c1a816108a5565b91508282048414831517610c3157610c30610bca565b5b5092915050565b5f604082019050610c4b5f830185610a4e565b610c586020830184610a76565b9392505050565b610c6881610a1b565b8114610c72575f5ffd5b50565b5f81519050610c8381610c5f565b92915050565b5f60208284031215610c9e57610c9d61083f565b5b5f610cab84828501610c75565b91505092915050565b5f81519050610cc2816108ae565b92915050565b5f60208284031215610cdd57610cdc61083f565b5b5f610cea84828501610cb4565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffdfea264697066735822122085c228906d2738d6aa5177d98d36d17539cc3d26c40255a584b631600143db4664736f6c634300081d0033000000000000000000000000b788144df611029c60b859df47e79b7726c4deba3f153a495ce07a89168b39f6a5b0e2d6bf3909c7e48821b4b608d69aae8a4edc

Deployed Bytecode

0x608060405234801561000f575f5ffd5b506004361061009c575f3560e01c8063adee8ff211610064578063adee8ff214610130578063db2e21bc1461014e578063ebf0c71714610158578063f2fde38b14610176578063fc0c546a146101925761009c565b806321ff9970146100a05780632f52ebb7146100bc578063715018a6146100d857806373b2e80e146100e25780638da5cb5b14610112575b5f5ffd5b6100ba60048036038101906100b5919061087a565b6101b0565b005b6100d660048036038101906100d19190610939565b6101c2565b005b6100e06103fc565b005b6100fc60048036038101906100f791906109f0565b61040f565b6040516101099190610a35565b60405180910390f35b61011a61042c565b6040516101279190610a5d565b60405180910390f35b610138610453565b6040516101459190610a85565b60405180910390f35b610156610460565b005b61016061059d565b60405161016d9190610aad565b60405180910390f35b610190600480360381019061018b91906109f0565b6105a3565b005b61019a610627565b6040516101a79190610b21565b60405180910390f35b6101b861064b565b8060028190555050565b60015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610243576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f3384604051602001610257929190610b9f565b6040516020818303038152906040528051906020012090506102bc8383808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f82011690508083019250505050505050600254836106d2565b6102f2576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001805f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f000000000000000000000000b788144df611029c60b859df47e79b7726c4deba73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb336805dacd13ca9e300000876103989190610bf7565b6040518363ffffffff1660e01b81526004016103b5929190610c38565b6020604051808303815f875af11580156103d1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103f59190610c89565b5050505050565b61040461064b565b61040d5f6106e8565b565b6001602052805f5260405f205f915054906101000a900460ff1681565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6805dacd13ca9e30000081565b61046861064b565b7f000000000000000000000000b788144df611029c60b859df47e79b7726c4deba73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb337f000000000000000000000000b788144df611029c60b859df47e79b7726c4deba73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104fe9190610a5d565b602060405180830381865afa158015610519573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053d9190610cc8565b6040518363ffffffff1660e01b815260040161055a929190610c38565b6020604051808303815f875af1158015610576573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059a9190610c89565b50565b60025481565b6105ab61064b565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361061b575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016106129190610a5d565b60405180910390fd5b610624816106e8565b50565b7f000000000000000000000000b788144df611029c60b859df47e79b7726c4deba81565b6106536107a9565b73ffffffffffffffffffffffffffffffffffffffff1661067161042c565b73ffffffffffffffffffffffffffffffffffffffff16146106d0576106946107a9565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016106c79190610a5d565b60405180910390fd5b565b5f826106de85846107b0565b1490509392505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b5f5f8290505f5f90505b84518110156107f6576107e7828683815181106107da576107d9610cf3565b5b6020026020010151610801565b915080806001019150506107ba565b508091505092915050565b5f81831061081857610813828461082b565b610823565b610822838361082b565b5b905092915050565b5f825f528160205260405f20905092915050565b5f5ffd5b5f5ffd5b5f819050919050565b61085981610847565b8114610863575f5ffd5b50565b5f8135905061087481610850565b92915050565b5f6020828403121561088f5761088e61083f565b5b5f61089c84828501610866565b91505092915050565b5f819050919050565b6108b7816108a5565b81146108c1575f5ffd5b50565b5f813590506108d2816108ae565b92915050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f8401126108f9576108f86108d8565b5b8235905067ffffffffffffffff811115610916576109156108dc565b5b602083019150836020820283011115610932576109316108e0565b5b9250929050565b5f5f5f604084860312156109505761094f61083f565b5b5f61095d868287016108c4565b935050602084013567ffffffffffffffff81111561097e5761097d610843565b5b61098a868287016108e4565b92509250509250925092565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6109bf82610996565b9050919050565b6109cf816109b5565b81146109d9575f5ffd5b50565b5f813590506109ea816109c6565b92915050565b5f60208284031215610a0557610a0461083f565b5b5f610a12848285016109dc565b91505092915050565b5f8115159050919050565b610a2f81610a1b565b82525050565b5f602082019050610a485f830184610a26565b92915050565b610a57816109b5565b82525050565b5f602082019050610a705f830184610a4e565b92915050565b610a7f816108a5565b82525050565b5f602082019050610a985f830184610a76565b92915050565b610aa781610847565b82525050565b5f602082019050610ac05f830184610a9e565b92915050565b5f819050919050565b5f610ae9610ae4610adf84610996565b610ac6565b610996565b9050919050565b5f610afa82610acf565b9050919050565b5f610b0b82610af0565b9050919050565b610b1b81610b01565b82525050565b5f602082019050610b345f830184610b12565b92915050565b5f8160601b9050919050565b5f610b5082610b3a565b9050919050565b5f610b6182610b46565b9050919050565b610b79610b74826109b5565b610b57565b82525050565b5f819050919050565b610b99610b94826108a5565b610b7f565b82525050565b5f610baa8285610b68565b601482019150610bba8284610b88565b6020820191508190509392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610c01826108a5565b9150610c0c836108a5565b9250828202610c1a816108a5565b91508282048414831517610c3157610c30610bca565b5b5092915050565b5f604082019050610c4b5f830185610a4e565b610c586020830184610a76565b9392505050565b610c6881610a1b565b8114610c72575f5ffd5b50565b5f81519050610c8381610c5f565b92915050565b5f60208284031215610c9e57610c9d61083f565b5b5f610cab84828501610c75565b91505092915050565b5f81519050610cc2816108ae565b92915050565b5f60208284031215610cdd57610cdc61083f565b5b5f610cea84828501610cb4565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffdfea264697066735822122085c228906d2738d6aa5177d98d36d17539cc3d26c40255a584b631600143db4664736f6c634300081d0033

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

000000000000000000000000b788144df611029c60b859df47e79b7726c4deba3f153a495ce07a89168b39f6a5b0e2d6bf3909c7e48821b4b608d69aae8a4edc

-----Decoded View---------------
Arg [0] : _token (address): 0xb788144DF611029C60b859DF47e79B7726C4DEBa
Arg [1] : _root (bytes32): 0x3f153a495ce07a89168b39f6a5b0e2d6bf3909c7e48821b4b608d69aae8a4edc

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000b788144df611029c60b859df47e79b7726c4deba
Arg [1] : 3f153a495ce07a89168b39f6a5b0e2d6bf3909c7e48821b4b608d69aae8a4edc


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.