ETH Price: $2,953.84 (+0.15%)

Contract

0x38834c50d271b8b755493F9845B9F9b64920638a
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Claim14624682024-03-29 17:52:31665 days ago1711734751IN
0x38834c50...64920638a
0 ETH0.000214090.00009768
Reclaim14298752024-03-28 23:46:05666 days ago1711669565IN
0x38834c50...64920638a
0 ETH0.000206383.00000027
Claim14228562024-03-28 19:52:07666 days ago1711655527IN
0x38834c50...64920638a
0 ETH0.000083280.00094122
Reclaim14227712024-03-28 19:49:17666 days ago1711655357IN
0x38834c50...64920638a
0 ETH0.000058910.00078415
Claim14164452024-03-28 16:18:25666 days ago1711642705IN
0x38834c50...64920638a
0 ETH0.000467290.00076057
Claim14163812024-03-28 16:16:17666 days ago1711642577IN
0x38834c50...64920638a
0 ETH0.000469340.0008551
Claim14163552024-03-28 16:15:25666 days ago1711642525IN
0x38834c50...64920638a
0 ETH0.000506850.00065318
Claim14163412024-03-28 16:14:57666 days ago1711642497IN
0x38834c50...64920638a
0 ETH0.000506460.00132
Claim14162942024-03-28 16:13:23666 days ago1711642403IN
0x38834c50...64920638a
0 ETH0.000473120.00076058
Claim14162382024-03-28 16:11:31666 days ago1711642291IN
0x38834c50...64920638a
0 ETH0.000425510.00088565
Claim14161602024-03-28 16:08:55666 days ago1711642135IN
0x38834c50...64920638a
0 ETH0.000398210.00097037
Claim14160882024-03-28 16:06:31666 days ago1711641991IN
0x38834c50...64920638a
0 ETH0.000407570.00097
Claim14160652024-03-28 16:05:45666 days ago1711641945IN
0x38834c50...64920638a
0 ETH0.00041910.00081668
Claim14160072024-03-28 16:03:49666 days ago1711641829IN
0x38834c50...64920638a
0 ETH0.000394720.00088566
Claim14159962024-03-28 16:03:27666 days ago1711641807IN
0x38834c50...64920638a
0 ETH0.000400090.00089479
Claim14159702024-03-28 16:02:35666 days ago1711641755IN
0x38834c50...64920638a
0 ETH0.000373650.00094127
Claim14159512024-03-28 16:01:57666 days ago1711641717IN
0x38834c50...64920638a
0 ETH0.000362350.00092716
Claim14158982024-03-28 16:00:11666 days ago1711641611IN
0x38834c50...64920638a
0 ETH0.000321630.00080836
Claim14158832024-03-28 15:59:41666 days ago1711641581IN
0x38834c50...64920638a
0 ETH0.000318310.00094092
Claim14158562024-03-28 15:58:47666 days ago1711641527IN
0x38834c50...64920638a
0 ETH0.000334620.00088567
Claim14157502024-03-28 15:55:15667 days ago1711641315IN
0x38834c50...64920638a
0 ETH0.000331470.0012
Claim14156462024-03-28 15:51:47667 days ago1711641107IN
0x38834c50...64920638a
0 ETH0.000387530.00083341
Claim14156272024-03-28 15:51:09667 days ago1711641069IN
0x38834c50...64920638a
0 ETH0.000403490.0012
Claim14154142024-03-28 15:44:03667 days ago1711640643IN
0x38834c50...64920638a
0 ETH0.000415830.00088534
Claim14153262024-03-28 15:41:07667 days ago1711640467IN
0x38834c50...64920638a
0 ETH0.000426550.00069441
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
14624682024-03-29 17:52:31665 days ago1711734751
0x38834c50...64920638a
0 ETH
14298752024-03-28 23:46:05666 days ago1711669565
0x38834c50...64920638a
0 ETH
14164452024-03-28 16:18:25666 days ago1711642705
0x38834c50...64920638a
0 ETH
14163812024-03-28 16:16:17666 days ago1711642577
0x38834c50...64920638a
0 ETH
14163552024-03-28 16:15:25666 days ago1711642525
0x38834c50...64920638a
0 ETH
14163412024-03-28 16:14:57666 days ago1711642497
0x38834c50...64920638a
0 ETH
14162942024-03-28 16:13:23666 days ago1711642403
0x38834c50...64920638a
0 ETH
14162382024-03-28 16:11:31666 days ago1711642291
0x38834c50...64920638a
0 ETH
14161602024-03-28 16:08:55666 days ago1711642135
0x38834c50...64920638a
0 ETH
14160882024-03-28 16:06:31666 days ago1711641991
0x38834c50...64920638a
0 ETH
14160652024-03-28 16:05:45666 days ago1711641945
0x38834c50...64920638a
0 ETH
14160072024-03-28 16:03:49666 days ago1711641829
0x38834c50...64920638a
0 ETH
14159962024-03-28 16:03:27666 days ago1711641807
0x38834c50...64920638a
0 ETH
14159702024-03-28 16:02:35666 days ago1711641755
0x38834c50...64920638a
0 ETH
14159512024-03-28 16:01:57666 days ago1711641717
0x38834c50...64920638a
0 ETH
14158982024-03-28 16:00:11666 days ago1711641611
0x38834c50...64920638a
0 ETH
14158832024-03-28 15:59:41666 days ago1711641581
0x38834c50...64920638a
0 ETH
14158562024-03-28 15:58:47666 days ago1711641527
0x38834c50...64920638a
0 ETH
14157502024-03-28 15:55:15667 days ago1711641315
0x38834c50...64920638a
0 ETH
14156462024-03-28 15:51:47667 days ago1711641107
0x38834c50...64920638a
0 ETH
14156272024-03-28 15:51:09667 days ago1711641069
0x38834c50...64920638a
0 ETH
14154142024-03-28 15:44:03667 days ago1711640643
0x38834c50...64920638a
0 ETH
14153262024-03-28 15:41:07667 days ago1711640467
0x38834c50...64920638a
0 ETH
14152102024-03-28 15:37:15667 days ago1711640235
0x38834c50...64920638a
0 ETH
14151602024-03-28 15:35:35667 days ago1711640135
0x38834c50...64920638a
0 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PacmoonAirdrop

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;

import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; // OZ: MerkleProof
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IBlast {
    function configureClaimableGas() external;
    function configureGovernor(address _governor) external;
}

contract PacmoonAirdrop is Ownable {
    address public token;
    bytes32 public merkleRoot;
    mapping(bytes32 => bool) public claimed;
    mapping(address => bool) public addressHasClaimed;

    event Claim(address indexed to, uint256 amount);

    constructor(address _token, address _governor, bytes32 _merkleRoot) Ownable(msg.sender) {
        token = _token;
        merkleRoot = _merkleRoot;

        // configure blast gas
        IBlast(0x4300000000000000000000000000000000000002).configureClaimableGas();
        IBlast(0x4300000000000000000000000000000000000002).configureGovernor(_governor);
    }

    function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        merkleRoot = _merkleRoot;
    }

    function claim(address recipient, uint256 amount, bytes32[] calldata proof) external {
        // Verify merkle proof, or revert if not in tree
        bytes32 leaf = keccak256(abi.encodePacked(recipient, amount));
        require(!claimed[leaf], "already claimed");

        // check validity of leaf
        bool isVerified = MerkleProof.verify(proof, merkleRoot, leaf);
        require(isVerified, "invalid proof");

        claimed[leaf] = true;
        addressHasClaimed[recipient] = true;

        require(IERC20(token).transfer(recipient, amount), "Transfer failed");
        emit Claim(recipient, amount);
    }

    function reclaim(uint256 amount) external onlyOwner {
        require(IERC20(token).transfer(msg.sender, amount), "Transfer failed");
    }
}

// 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.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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.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.0.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.20;

/**
 * @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.
 */
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.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     */
    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 leafs & pre-images are assumed to be sorted.
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(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}.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    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.
     *
     * 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).
     */
    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 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 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[](totalHashes);
        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 < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

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

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    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 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 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[](totalHashes);
        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 < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

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

    /**
     * @dev Sorts the pair (a, b) and hashes the result.
     */
    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

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

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/solmate/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/openzeppelin-contracts/lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solmate/=lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_governor","type":"address"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressHasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reclaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161099e38038061099e83398101604081905261002f916101c4565b338061005557604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61005e81610158565b50600180546001600160a01b0319166001600160a01b038516179055600281905560408051634e606c4760e01b8152905173430000000000000000000000000000000000000291634e606c4791600480830192600092919082900301818387803b1580156100cb57600080fd5b505af11580156100df573d6000803e3d6000fd5b5050604051631d70c8d360e31b81526001600160a01b0385166004820152734300000000000000000000000000000000000002925063eb8646989150602401600060405180830381600087803b15801561013857600080fd5b505af115801561014c573d6000803e3d6000fd5b50505050505050610200565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146101bf57600080fd5b919050565b6000806000606084860312156101d957600080fd5b6101e2846101a8565b92506101f0602085016101a8565b9150604084015190509250925092565b61078f8061020f6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80637cb64759116100665780637cb64759146101225780638da5cb5b14610135578063cc3c0f061461015a578063f2fde38b1461017d578063fc0c546a1461019057600080fd5b80632dabbeed146100a35780632eb4a7ab146100b85780633d13f874146100d457806344944f31146100e7578063715018a61461011a575b600080fd5b6100b66100b1366004610620565b6101a3565b005b6100c160025481565b6040519081526020015b60405180910390f35b6100b66100e2366004610655565b610266565b61010a6100f53660046106df565b60046020526000908152604090205460ff1681565b60405190151581526020016100cb565b6100b66104b2565b6100b6610130366004610620565b6104c6565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100cb565b61010a610168366004610620565b60036020526000908152604090205460ff1681565b6100b661018b3660046106df565b6104d3565b600154610142906001600160a01b031681565b6101ab61050e565b60015460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156101fc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022091906106fa565b6102635760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064015b60405180910390fd5b50565b6040516bffffffffffffffffffffffff19606086901b1660208201526034810184905260009060540160408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff16156102f95760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e4818db185a5b5959608a1b604482015260640161025a565b600061033c84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600254915085905061053b565b90508061037b5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b604482015260640161025a565b60008281526003602090815260408083208054600160ff1991821681179092556001600160a01b038b811680875260049586905295849020805490921683179091559054915163a9059cbb60e01b815292830193909352602482018890529091169063a9059cbb906044016020604051808303816000875af1158015610405573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061042991906106fa565b6104675760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161025a565b856001600160a01b03167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4866040516104a291815260200190565b60405180910390a2505050505050565b6104ba61050e565b6104c46000610551565b565b6104ce61050e565b600255565b6104db61050e565b6001600160a01b03811661050557604051631e4fbdf760e01b81526000600482015260240161025a565b61026381610551565b6000546001600160a01b031633146104c45760405163118cdaa760e01b815233600482015260240161025a565b60008261054885846105a1565b14949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b84518110156105e6576105d2828683815181106105c5576105c561071c565b60200260200101516105ee565b9150806105de81610732565b9150506105a6565b509392505050565b600081831061060a576000828152602084905260409020610619565b60008381526020839052604090205b9392505050565b60006020828403121561063257600080fd5b5035919050565b80356001600160a01b038116811461065057600080fd5b919050565b6000806000806060858703121561066b57600080fd5b61067485610639565b935060208501359250604085013567ffffffffffffffff8082111561069857600080fd5b818701915087601f8301126106ac57600080fd5b8135818111156106bb57600080fd5b8860208260051b85010111156106d057600080fd5b95989497505060200194505050565b6000602082840312156106f157600080fd5b61061982610639565b60006020828403121561070c57600080fd5b8151801515811461061957600080fd5b634e487b7160e01b600052603260045260246000fd5b60006001820161075257634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220a7c090fa24e945d97b1afc3baf74dc61e0a343804f4d27d664260aa7458ce56b64736f6c634300081500330000000000000000000000005ffd9ebd27f2fcab044c0f0a26a45cb62fa29c060000000000000000000000001dd4fb074e9f28ca9d21c93e0aa915b487893b1c8dc1a44047de15ef5007bf7d2ea033b5d68a75395a402aba885597607fb2104f

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c80637cb64759116100665780637cb64759146101225780638da5cb5b14610135578063cc3c0f061461015a578063f2fde38b1461017d578063fc0c546a1461019057600080fd5b80632dabbeed146100a35780632eb4a7ab146100b85780633d13f874146100d457806344944f31146100e7578063715018a61461011a575b600080fd5b6100b66100b1366004610620565b6101a3565b005b6100c160025481565b6040519081526020015b60405180910390f35b6100b66100e2366004610655565b610266565b61010a6100f53660046106df565b60046020526000908152604090205460ff1681565b60405190151581526020016100cb565b6100b66104b2565b6100b6610130366004610620565b6104c6565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100cb565b61010a610168366004610620565b60036020526000908152604090205460ff1681565b6100b661018b3660046106df565b6104d3565b600154610142906001600160a01b031681565b6101ab61050e565b60015460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156101fc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022091906106fa565b6102635760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064015b60405180910390fd5b50565b6040516bffffffffffffffffffffffff19606086901b1660208201526034810184905260009060540160408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff16156102f95760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e4818db185a5b5959608a1b604482015260640161025a565b600061033c84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600254915085905061053b565b90508061037b5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b604482015260640161025a565b60008281526003602090815260408083208054600160ff1991821681179092556001600160a01b038b811680875260049586905295849020805490921683179091559054915163a9059cbb60e01b815292830193909352602482018890529091169063a9059cbb906044016020604051808303816000875af1158015610405573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061042991906106fa565b6104675760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161025a565b856001600160a01b03167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4866040516104a291815260200190565b60405180910390a2505050505050565b6104ba61050e565b6104c46000610551565b565b6104ce61050e565b600255565b6104db61050e565b6001600160a01b03811661050557604051631e4fbdf760e01b81526000600482015260240161025a565b61026381610551565b6000546001600160a01b031633146104c45760405163118cdaa760e01b815233600482015260240161025a565b60008261054885846105a1565b14949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b84518110156105e6576105d2828683815181106105c5576105c561071c565b60200260200101516105ee565b9150806105de81610732565b9150506105a6565b509392505050565b600081831061060a576000828152602084905260409020610619565b60008381526020839052604090205b9392505050565b60006020828403121561063257600080fd5b5035919050565b80356001600160a01b038116811461065057600080fd5b919050565b6000806000806060858703121561066b57600080fd5b61067485610639565b935060208501359250604085013567ffffffffffffffff8082111561069857600080fd5b818701915087601f8301126106ac57600080fd5b8135818111156106bb57600080fd5b8860208260051b85010111156106d057600080fd5b95989497505060200194505050565b6000602082840312156106f157600080fd5b61061982610639565b60006020828403121561070c57600080fd5b8151801515811461061957600080fd5b634e487b7160e01b600052603260045260246000fd5b60006001820161075257634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220a7c090fa24e945d97b1afc3baf74dc61e0a343804f4d27d664260aa7458ce56b64736f6c63430008150033

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

0000000000000000000000005ffd9ebd27f2fcab044c0f0a26a45cb62fa29c060000000000000000000000001dd4fb074e9f28ca9d21c93e0aa915b487893b1c8dc1a44047de15ef5007bf7d2ea033b5d68a75395a402aba885597607fb2104f

-----Decoded View---------------
Arg [0] : _token (address): 0x5ffd9EbD27f2fcAB044c0f0a26A45Cb62fa29c06
Arg [1] : _governor (address): 0x1Dd4FB074e9f28cA9D21c93E0AA915B487893B1c
Arg [2] : _merkleRoot (bytes32): 0x8dc1a44047de15ef5007bf7d2ea033b5d68a75395a402aba885597607fb2104f

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000005ffd9ebd27f2fcab044c0f0a26a45cb62fa29c06
Arg [1] : 0000000000000000000000001dd4fb074e9f28ca9d21c93e0aa915b487893b1c
Arg [2] : 8dc1a44047de15ef5007bf7d2ea033b5d68a75395a402aba885597607fb2104f


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.