ETH Price: $3,503.35 (+2.26%)
Gas: 3 Gwei

Contract

0xbd4D644108E1901141F7215AF66c13611942FAad
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim202751142024-07-10 9:10:359 days ago1720602635IN
0xbd4D6441...11942FAad
0 ETH0.000956725.03356143
Claim201948422024-06-29 4:05:1120 days ago1719633911IN
0xbd4D6441...11942FAad
0 ETH0.000400592.04570968
Claim201744342024-06-26 7:41:2323 days ago1719387683IN
0xbd4D6441...11942FAad
0 ETH0.000426242.10167486
Claim201709212024-06-25 19:55:3524 days ago1719345335IN
0xbd4D6441...11942FAad
0 ETH0.0028718614.5813343
Claim201598332024-06-24 6:44:1125 days ago1719211451IN
0xbd4D6441...11942FAad
0 ETH0.00035611.80812619
Claim201557122024-06-23 16:54:2326 days ago1719161663IN
0xbd4D6441...11942FAad
0 ETH0.000931175.11243411
Claim201513182024-06-23 2:08:3526 days ago1719108515IN
0xbd4D6441...11942FAad
0 ETH0.000508212.60467176
Claim201511832024-06-23 1:41:3526 days ago1719106895IN
0xbd4D6441...11942FAad
0 ETH0.000436772.20805213
Claim201507852024-06-23 0:21:4726 days ago1719102107IN
0xbd4D6441...11942FAad
0 ETH0.000609743.00670157
Claim201504632024-06-22 23:17:1127 days ago1719098231IN
0xbd4D6441...11942FAad
0 ETH0.000357951.75574486
Claim201501452024-06-22 22:13:2327 days ago1719094403IN
0xbd4D6441...11942FAad
0 ETH0.000335571.76561501
Claim201499312024-06-22 21:29:3527 days ago1719091775IN
0xbd4D6441...11942FAad
0 ETH0.000467682.20083874
Claim201499212024-06-22 21:27:3527 days ago1719091655IN
0xbd4D6441...11942FAad
0 ETH0.000512842.4137161
Claim201498692024-06-22 21:17:1127 days ago1719091031IN
0xbd4D6441...11942FAad
0 ETH0.000387221.89926517
Claim201498152024-06-22 21:06:2327 days ago1719090383IN
0xbd4D6441...11942FAad
0 ETH0.000387181.96591711
Claim201494482024-06-22 19:52:2327 days ago1719085943IN
0xbd4D6441...11942FAad
0 ETH0.000387882.13787128
Claim201492182024-06-22 19:05:5927 days ago1719083159IN
0xbd4D6441...11942FAad
0 ETH0.000572352.92272888
Claim201488742024-06-22 17:56:4727 days ago1719079007IN
0xbd4D6441...11942FAad
0 ETH0.000363692.00621462
Claim201486642024-06-22 17:14:2327 days ago1719076463IN
0xbd4D6441...11942FAad
0 ETH0.000621683.14240364
Claim201486352024-06-22 17:08:3527 days ago1719076115IN
0xbd4D6441...11942FAad
0 ETH0.000718513.38100451
Claim201486132024-06-22 17:04:1127 days ago1719075851IN
0xbd4D6441...11942FAad
0 ETH0.000658843.34502876
Claim201480212024-06-22 15:04:2327 days ago1719068663IN
0xbd4D6441...11942FAad
0 ETH0.000872784.41161624
Claim201478892024-06-22 14:37:4727 days ago1719067067IN
0xbd4D6441...11942FAad
0 ETH0.000796914.02801008
Claim201476562024-06-22 13:50:5927 days ago1719064259IN
0xbd4D6441...11942FAad
0 ETH0.000648793.18350256
Claim201475682024-06-22 13:33:1127 days ago1719063191IN
0xbd4D6441...11942FAad
0 ETH0.000589923.01233079
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NFTSwapPool

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : NFTSwapPool.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./interfaces/IGevols.sol";

contract NFTSwapPool is Ownable, ReentrancyGuard, Pausable {

    // Event to log the Gevols address change
    event GevolsAddress(address gevolsAddress);
    // Event to log the claim ratio
    event ClaimRatio(uint256 claimRatio);
    // Event to log the claimed token
    event Claimed(address wallet, uint256[] burnIds, uint256 tokenId, bytes32[] merkleProof);
    // Event to log the merkle root active state
    event MerkleRoot(bytes32 merkleRoot);
    // Event to log the merkle root active state
    event MerkleRootActive(bool merkleRootActive);

    // Address of the Gevols ERC-721 contract
    address public gevolsAddress;

    // Ratio for claiming NFTs (2 Gevols NFTs for 1 deposited NFT)
    uint256 public claimRatio = 2;

    // Mapping to store wallet claimed token IDs (wallet address -> array of claimed IDs)
    mapping(address => uint256[]) public claimedTokens;
    // Mapping to store all claimed token IDs to ensure uniqueness
    mapping(uint256 => bool) public isTokenIdClaimed;

    // Merkle root for validating token IDs
    bytes32 public merkleRoot;

    // Merkle root active
    bool public merkleRootActive = true;

    constructor(address _gevolsAddress, bytes32 _merkleRoot) {
        setGevolsAddress(_gevolsAddress);
        setMerkleRoot(_merkleRoot);
    }

    /// @notice Sets the address of the Gevols ERC-721 contract
    /// @param _gevolsAddress The new address of the Gevols ERC-721 contract
    function setGevolsAddress(address _gevolsAddress) public onlyOwner {
        require(_gevolsAddress != address(0), "Invalid address");
        gevolsAddress = _gevolsAddress;
        emit GevolsAddress(_gevolsAddress);
    }

    /// @notice Sets the claim ratio
    /// @param _claimRatio The new claim ratio (number of Gevols NFTs required to claim 1 immortal NFT)
    function setClaimRatio(uint256 _claimRatio) public onlyOwner {
        claimRatio = _claimRatio;
        emit ClaimRatio(_claimRatio);
    }

    /// @notice Sets the Merkle root for token ID validation
    /// @param _merkleRoot The new Merkle root
    function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
        merkleRoot = _merkleRoot;
        emit MerkleRoot(_merkleRoot);
    }

    /// @notice Sets the Merkle root active state
    /// @param _merkleRootActive Indicates whether the Merkle root is active or not
    function setMerkleRootActive(bool _merkleRootActive) public onlyOwner {
        merkleRootActive = _merkleRootActive;
        emit MerkleRootActive(_merkleRootActive);
    }
    
    /// @notice Pauses or unpauses the contract
    /// @param _paused Indicates whether the contract should be paused or unpaused
    function setPaused(bool _paused) public onlyOwner {
        if (_paused) _pause();
        else _unpause();
    }


    /// @notice Claims an immortal NFT by burning Gevols NFTs
    /// @param burnIds The IDs of the tokens to be burned
    /// @param tokenId The immortal token ID to be claimed
    /// @param merkleProof The Merkle proof to validate the token ID
    function claim(
        uint256[] calldata burnIds,
        uint256 tokenId,
        bytes32[] calldata merkleProof
    ) external nonReentrant whenNotPaused {
        IGevols gevols = IGevols(gevolsAddress);
        uint256 balance = gevols.balanceOf(msg.sender);

        require(balance >= claimRatio, "Not enough Gevols in wallet");
        require(burnIds.length == claimRatio, "Insufficient number of tokens sent");

        // Ensure the tokenId has not already been claimed
        require(!isTokenIdClaimed[tokenId], "Token ID already claimed");

        if(merkleRootActive) {
            // Verify the token ID against the Merkle root
            bytes32 leaf = keccak256(bytes.concat(keccak256(abi.encode(tokenId))));
            require(MerkleProof.verify(merkleProof, merkleRoot, leaf), "Invalid Merkle proof");
        }

        // Burn the Gevols NFTs (First approve the ids to be burned)
        for (uint256 i = 0; i < burnIds.length; i++) {
            gevols.burn(burnIds[i]);
        }

        // Record the claimed token ID for the wallet and mark it as claimed
        claimedTokens[msg.sender].push(tokenId);
        isTokenIdClaimed[tokenId] = true;

        emit Claimed(msg.sender, burnIds, tokenId, merkleProof);    
    }

    /// @notice Returns the claimed token IDs for a wallet
    /// @param wallet The address of the wallet
    /// @return The list of claimed token IDs for the wallet
    function getClaimedTokens(
        address wallet
    ) external view returns (uint256[] memory) {
        return claimedTokens[wallet];
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev 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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 3 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 9 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 7 of 9 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * 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.
 */
library MerkleProof {
    /**
     * @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}
     *
     * _Available since v4.7._
     */
    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.
     *
     * _Available since v4.4._
     */
    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}
     *
     * _Available since v4.7._
     */
    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 proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    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}
     *
     * _Available since v4.7._
     */
    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 the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild 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 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // 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 for 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) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild 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 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // 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 for 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) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

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

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

pragma solidity ^0.8.0;

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

File 9 of 9 : IGevols.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

interface IGevols is IERC721 {
  function burn(uint256 tokenId) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_gevolsAddress","type":"address"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"claimRatio","type":"uint256"}],"name":"ClaimRatio","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"burnIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"gevolsAddress","type":"address"}],"name":"GevolsAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"MerkleRoot","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"merkleRootActive","type":"bool"}],"name":"MerkleRootActive","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256[]","name":"burnIds","type":"uint256[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getClaimedTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gevolsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isTokenIdClaimed","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":"merkleRootActive","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimRatio","type":"uint256"}],"name":"setClaimRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gevolsAddress","type":"address"}],"name":"setGevolsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_merkleRootActive","type":"bool"}],"name":"setMerkleRootActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260026003556007805460ff191660011790553480156200002357600080fd5b506040516200109f3803806200109f833981016040819052620000469162000220565b62000051336200007d565b600180556002805460ff191690556200006a82620000cd565b620000758162000182565b50506200025a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620000d7620001c2565b6001600160a01b038116620001255760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064015b60405180910390fd5b60028054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f2d69f55416875b105f067aca41030bd7e9fdb1a2562c6b9994f5a11eddb7e441906020015b60405180910390a150565b6200018c620001c2565b60068190556040518181527fc29a2aeafbdd701b002e77b26fd8ca17f7cfd24faa06596b76da345f94924d0c9060200162000177565b6000546001600160a01b031633146200021e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200011c565b565b6000806040838503121562000233578182fd5b82516001600160a01b03811681146200024a578283fd5b6020939093015192949293505050565b610e35806200026a6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80638d74fb77116100a2578063d199168d11610071578063d199168d14610226578063e4fe7b0014610239578063e606271f14610246578063e688ea3214610259578063f2fde38b1461026c57600080fd5b80638d74fb77146101c95780638da5cb5b146101e9578063bc6bacb8146101fa578063d175810d1461020357600080fd5b8063715018a6116100de578063715018a61461016b5780637cb647591461017357806388781b69146101865780638c95c992146101b657600080fd5b806316c38b3c146101105780632eb4a7ab146101255780635c975abb146101415780636e1b8c5414610158575b600080fd5b61012361011e366004610cc5565b61027f565b005b61012e60065481565b6040519081526020015b60405180910390f35b60025460ff165b6040519015158152602001610138565b610123610166366004610ce5565b6102a0565b6101236102e4565b610123610181366004610ce5565b6102f8565b60025461019e9061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610138565b6101236101c4366004610c4e565b610335565b6101dc6101d7366004610c0b565b610734565b6040516101389190610d94565b6000546001600160a01b031661019e565b61012e60035481565b610148610211366004610ce5565b60056020526000908152604090205460ff1681565b61012e610234366004610c25565b6107a0565b6007546101489060ff1681565b610123610254366004610cc5565b6107d1565b610123610267366004610c0b565b61081a565b61012361027a366004610c0b565b6108c0565b610287610936565b801561029857610295610990565b50565b6102956109ea565b6102a8610936565b60038190556040518181527f9c58a7a3d3749c671df2bd946f1d8e975a8bc5db7e218abf25bd348d5515e3ff906020015b60405180910390a150565b6102ec610936565b6102f66000610a23565b565b610300610936565b60068190556040518181527fc29a2aeafbdd701b002e77b26fd8ca17f7cfd24faa06596b76da345f94924d0c906020016102d9565b6002600154141561038d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015561039a610a73565b6002546040516370a0823160e01b81523360048201526101009091046001600160a01b03169060009082906370a082319060240160206040518083038186803b1580156103e657600080fd5b505afa1580156103fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041e9190610cfd565b90506003548110156104725760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f756768204765766f6c7320696e2077616c6c657400000000006044820152606401610384565b60035486146104ce5760405162461bcd60e51b815260206004820152602260248201527f496e73756666696369656e74206e756d626572206f6620746f6b656e732073656044820152611b9d60f21b6064820152608401610384565b60008581526005602052604090205460ff161561052d5760405162461bcd60e51b815260206004820152601860248201527f546f6b656e20494420616c726561647920636c61696d656400000000000000006044820152606401610384565b60075460ff16156106085760008560405160200161054d91815260200190565b60408051601f19818403018152828252805160209182012090830152016040516020818303038152906040528051906020012090506105c3858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506006549150849050610ab9565b6106065760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21026b2b935b63290383937b7b360611b6044820152606401610384565b505b60005b868110156106ac57826001600160a01b03166342966c6889898481811061064257634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b815260040161066791815260200190565b600060405180830381600087803b15801561068157600080fd5b505af1158015610695573d6000803e3d6000fd5b5050505080806106a490610dd8565b91505061060b565b50336000818152600460209081526040808320805460018181018355918552838520018a9055898452600590925291829020805460ff19169091179055517fc9edb61c297f8d7b33ef842aeea4463a413f7c34585855c6416f9c679e75b8659161071f918a908a908a908a908a90610d49565b60405180910390a15050600180555050505050565b6001600160a01b03811660009081526004602090815260409182902080548351818402810184019094528084526060939283018282801561079457602002820191906000526020600020905b815481526020019060010190808311610780575b50505050509050919050565b600460205281600052604060002081815481106107bc57600080fd5b90600052602060002001600091509150505481565b6107d9610936565b6007805460ff19168215159081179091556040519081527f394c2e6e839571590ce3ceac4230f052afafa237d3d534c7cea06c80f82a474f906020016102d9565b610822610936565b6001600160a01b03811661086a5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610384565b60028054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f2d69f55416875b105f067aca41030bd7e9fdb1a2562c6b9994f5a11eddb7e441906020016102d9565b6108c8610936565b6001600160a01b03811661092d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610384565b61029581610a23565b6000546001600160a01b031633146102f65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610384565b610998610a73565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109cd3390565b6040516001600160a01b03909116815260200160405180910390a1565b6109f2610acf565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336109cd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60025460ff16156102f65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610384565b600082610ac68584610b18565b14949350505050565b60025460ff166102f65760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610384565b600081815b8451811015610b6b57610b5782868381518110610b4a57634e487b7160e01b600052603260045260246000fd5b6020026020010151610b73565b915080610b6381610dd8565b915050610b1d565b509392505050565b6000818310610b8f576000828152602084905260409020610b9e565b60008381526020839052604090205b9392505050565b80356001600160a01b0381168114610bbc57600080fd5b919050565b60008083601f840112610bd2578182fd5b50813567ffffffffffffffff811115610be9578182fd5b6020830191508360208260051b8501011115610c0457600080fd5b9250929050565b600060208284031215610c1c578081fd5b610b9e82610ba5565b60008060408385031215610c37578081fd5b610c4083610ba5565b946020939093013593505050565b600080600080600060608688031215610c65578081fd5b853567ffffffffffffffff80821115610c7c578283fd5b610c8889838a01610bc1565b9097509550602088013594506040880135915080821115610ca7578283fd5b50610cb488828901610bc1565b969995985093965092949392505050565b600060208284031215610cd6578081fd5b81358015158114610b9e578182fd5b600060208284031215610cf6578081fd5b5035919050565b600060208284031215610d0e578081fd5b5051919050565b81835260006001600160fb1b03831115610d2d578081fd5b8260051b80836020870137939093016020019283525090919050565b6001600160a01b0387168152608060208201819052600090610d6e9083018789610d15565b8560408401528281036060840152610d87818587610d15565b9998505050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015610dcc57835183529284019291840191600101610db0565b50909695505050505050565b6000600019821415610df857634e487b7160e01b81526011600452602481fd5b506001019056fea2646970667358221220e92aa820d2e9bea3455712c96d97e3ffe5cfd25fa575674975ebbea4d3e8f11364736f6c6343000804003300000000000000000000000034b4df75a17f8b3a6eff6bba477d39d701f5e92c205265034486d65123bd7007b31fc8702d380402ff45dc71c5299500a7e86abd

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80638d74fb77116100a2578063d199168d11610071578063d199168d14610226578063e4fe7b0014610239578063e606271f14610246578063e688ea3214610259578063f2fde38b1461026c57600080fd5b80638d74fb77146101c95780638da5cb5b146101e9578063bc6bacb8146101fa578063d175810d1461020357600080fd5b8063715018a6116100de578063715018a61461016b5780637cb647591461017357806388781b69146101865780638c95c992146101b657600080fd5b806316c38b3c146101105780632eb4a7ab146101255780635c975abb146101415780636e1b8c5414610158575b600080fd5b61012361011e366004610cc5565b61027f565b005b61012e60065481565b6040519081526020015b60405180910390f35b60025460ff165b6040519015158152602001610138565b610123610166366004610ce5565b6102a0565b6101236102e4565b610123610181366004610ce5565b6102f8565b60025461019e9061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610138565b6101236101c4366004610c4e565b610335565b6101dc6101d7366004610c0b565b610734565b6040516101389190610d94565b6000546001600160a01b031661019e565b61012e60035481565b610148610211366004610ce5565b60056020526000908152604090205460ff1681565b61012e610234366004610c25565b6107a0565b6007546101489060ff1681565b610123610254366004610cc5565b6107d1565b610123610267366004610c0b565b61081a565b61012361027a366004610c0b565b6108c0565b610287610936565b801561029857610295610990565b50565b6102956109ea565b6102a8610936565b60038190556040518181527f9c58a7a3d3749c671df2bd946f1d8e975a8bc5db7e218abf25bd348d5515e3ff906020015b60405180910390a150565b6102ec610936565b6102f66000610a23565b565b610300610936565b60068190556040518181527fc29a2aeafbdd701b002e77b26fd8ca17f7cfd24faa06596b76da345f94924d0c906020016102d9565b6002600154141561038d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015561039a610a73565b6002546040516370a0823160e01b81523360048201526101009091046001600160a01b03169060009082906370a082319060240160206040518083038186803b1580156103e657600080fd5b505afa1580156103fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041e9190610cfd565b90506003548110156104725760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f756768204765766f6c7320696e2077616c6c657400000000006044820152606401610384565b60035486146104ce5760405162461bcd60e51b815260206004820152602260248201527f496e73756666696369656e74206e756d626572206f6620746f6b656e732073656044820152611b9d60f21b6064820152608401610384565b60008581526005602052604090205460ff161561052d5760405162461bcd60e51b815260206004820152601860248201527f546f6b656e20494420616c726561647920636c61696d656400000000000000006044820152606401610384565b60075460ff16156106085760008560405160200161054d91815260200190565b60408051601f19818403018152828252805160209182012090830152016040516020818303038152906040528051906020012090506105c3858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506006549150849050610ab9565b6106065760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21026b2b935b63290383937b7b360611b6044820152606401610384565b505b60005b868110156106ac57826001600160a01b03166342966c6889898481811061064257634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b815260040161066791815260200190565b600060405180830381600087803b15801561068157600080fd5b505af1158015610695573d6000803e3d6000fd5b5050505080806106a490610dd8565b91505061060b565b50336000818152600460209081526040808320805460018181018355918552838520018a9055898452600590925291829020805460ff19169091179055517fc9edb61c297f8d7b33ef842aeea4463a413f7c34585855c6416f9c679e75b8659161071f918a908a908a908a908a90610d49565b60405180910390a15050600180555050505050565b6001600160a01b03811660009081526004602090815260409182902080548351818402810184019094528084526060939283018282801561079457602002820191906000526020600020905b815481526020019060010190808311610780575b50505050509050919050565b600460205281600052604060002081815481106107bc57600080fd5b90600052602060002001600091509150505481565b6107d9610936565b6007805460ff19168215159081179091556040519081527f394c2e6e839571590ce3ceac4230f052afafa237d3d534c7cea06c80f82a474f906020016102d9565b610822610936565b6001600160a01b03811661086a5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610384565b60028054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f2d69f55416875b105f067aca41030bd7e9fdb1a2562c6b9994f5a11eddb7e441906020016102d9565b6108c8610936565b6001600160a01b03811661092d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610384565b61029581610a23565b6000546001600160a01b031633146102f65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610384565b610998610a73565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109cd3390565b6040516001600160a01b03909116815260200160405180910390a1565b6109f2610acf565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336109cd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60025460ff16156102f65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610384565b600082610ac68584610b18565b14949350505050565b60025460ff166102f65760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610384565b600081815b8451811015610b6b57610b5782868381518110610b4a57634e487b7160e01b600052603260045260246000fd5b6020026020010151610b73565b915080610b6381610dd8565b915050610b1d565b509392505050565b6000818310610b8f576000828152602084905260409020610b9e565b60008381526020839052604090205b9392505050565b80356001600160a01b0381168114610bbc57600080fd5b919050565b60008083601f840112610bd2578182fd5b50813567ffffffffffffffff811115610be9578182fd5b6020830191508360208260051b8501011115610c0457600080fd5b9250929050565b600060208284031215610c1c578081fd5b610b9e82610ba5565b60008060408385031215610c37578081fd5b610c4083610ba5565b946020939093013593505050565b600080600080600060608688031215610c65578081fd5b853567ffffffffffffffff80821115610c7c578283fd5b610c8889838a01610bc1565b9097509550602088013594506040880135915080821115610ca7578283fd5b50610cb488828901610bc1565b969995985093965092949392505050565b600060208284031215610cd6578081fd5b81358015158114610b9e578182fd5b600060208284031215610cf6578081fd5b5035919050565b600060208284031215610d0e578081fd5b5051919050565b81835260006001600160fb1b03831115610d2d578081fd5b8260051b80836020870137939093016020019283525090919050565b6001600160a01b0387168152608060208201819052600090610d6e9083018789610d15565b8560408401528281036060840152610d87818587610d15565b9998505050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015610dcc57835183529284019291840191600101610db0565b50909695505050505050565b6000600019821415610df857634e487b7160e01b81526011600452602481fd5b506001019056fea2646970667358221220e92aa820d2e9bea3455712c96d97e3ffe5cfd25fa575674975ebbea4d3e8f11364736f6c63430008040033

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

00000000000000000000000034b4df75a17f8b3a6eff6bba477d39d701f5e92c205265034486d65123bd7007b31fc8702d380402ff45dc71c5299500a7e86abd

-----Decoded View---------------
Arg [0] : _gevolsAddress (address): 0x34b4Df75a17f8B3a6Eff6bBA477d39D701f5e92c
Arg [1] : _merkleRoot (bytes32): 0x205265034486d65123bd7007b31fc8702d380402ff45dc71c5299500a7e86abd

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000034b4df75a17f8b3a6eff6bba477d39d701f5e92c
Arg [1] : 205265034486d65123bd7007b31fc8702d380402ff45dc71c5299500a7e86abd


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
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.