BERA Price: $3.65 (-0.81%)

Contract

0xd0B8A3B0fd1b58282D30Ca69173aF7B7f51416fa

Overview

BERA Balance

Berachain LogoBerachain LogoBerachain Logo0 BERA

BERA Value

$0.00

Multichain Info

No addresses found
Age:1H
Reset Filter

Transaction Hash
Method
Block
From
To

There are no matching entries

Update your filters to view other transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ClaimBatchProcessor

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
No with 200 runs

Other Settings:
cancun EvmVersion
File 1 of 7 : ClaimBatchProcessor.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable2Step.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";

/// @notice Interface for the Streaming NFT
/// @dev This is the contract that creates vesting reward streams for the NFT holders
interface IStreamingNFT {
    function createStream(uint256 tokenId) external;

    function createBatchStream(uint256[] calldata _tokenIds, address _onBehalfOf) external;

    function credentialNFT() external view returns (IERC721);

    function claimBatchRewards(uint256[] calldata streamIds) external;
}

/// @notice Interface for the Distributor
/// @dev This is the contract that distributes social verification rewards to the users
interface IDistributor {
    function claim(bytes32[] calldata _proof, bytes calldata _signature, uint256 _amount, address _onBehalfOf)
        external;
}

contract ClaimBatchProcessor is Ownable2Step {
    event SetStreamingNFT(address indexed nft, address indexed streamingNFT);

    IDistributor public immutable distributor;

    mapping(address => address) public streamingNFTs;

    constructor(address[] memory _nfts, address[] memory _streamingNFT, address _distributor) Ownable(msg.sender) {
        require(_nfts.length == _streamingNFT.length, "Array lengths must match");

        for (uint256 i = 0; i < _nfts.length; i++) {
            streamingNFTs[_nfts[i]] = _streamingNFT[i];
        }

        distributor = IDistributor(_distributor);
    }

    function claim(
        uint256[][] calldata _tokenIds,
        uint256 _amount,
        bytes32[] calldata _proof,
        bytes calldata _signature,
        address _onBehalfOf,
        address[] calldata _nfts
    ) external {
        if (_amount > 0) {
            distributor.claim(_proof, _signature, _amount, _onBehalfOf);
        }

        for (uint256 i = 0; i < _nfts.length; i++) {
            IStreamingNFT(streamingNFTs[_nfts[i]]).createBatchStream(_tokenIds[i], _onBehalfOf);
        }
    }

    function claimRewards(uint256[][] calldata _tokenIds, address[] calldata _nfts) external {
        for (uint256 i = 0; i < _nfts.length; i++) {
            IStreamingNFT(streamingNFTs[_nfts[i]]).claimBatchRewards(_tokenIds[i]);
        }
    }

    function setStreamingNFT(address _nft, address _streamingNFT) external onlyOwner {
        streamingNFTs[_nft] = _streamingNFT;
        emit SetStreamingNFT(_nft, _streamingNFT);
    }
}

File 2 of 7 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Contract module which provides access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * This extension of the {Ownable} contract includes a two-step mechanism to transfer
 * ownership, where the new owner must call {acceptOwnership} in order to replace the
 * old one. This can help prevent common mistakes, such as transfers of ownership to
 * incorrect accounts, or to contracts that are unable to interact with the
 * permission system.
 *
 * The initial owner is specified at deployment time in the constructor for `Ownable`. This
 * can later be changed with {transferOwnership} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

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

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     *
     * Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        if (pendingOwner() != sender) {
            revert OwnableUnauthorizedAccount(sender);
        }
        _transferOwnership(sender);
    }
}

File 3 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

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

File 4 of 7 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC-721 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 ERC-721 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 address zero.
     *
     * 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 5 of 7 : Ownable.sol
// 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);
    }
}

File 6 of 7 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * 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[ERC 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 7 of 7 : Context.sol
// 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;
    }
}

Settings
{
  "remappings": [
    "@layerzerolabs/onft-evm/=lib/devtools/packages/onft-evm/",
    "@layerzerolabs/oapp-evm/=lib/devtools/packages/oapp-evm/",
    "@layerzerolabs/lz-evm-protocol-v2/=lib/layerzero-v2/packages/layerzero-v2/evm/protocol/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "layerzero-v2/=lib/layerzero-v2/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "@solady/=lib/solady/src/",
    "devtools/=lib/devtools/packages/toolbox-foundry/src/",
    "solady/=lib/solady/src/"
  ],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "cancun",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address[]","name":"_nfts","type":"address[]"},{"internalType":"address[]","name":"_streamingNFT","type":"address[]"},{"internalType":"address","name":"_distributor","type":"address"}],"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","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":true,"internalType":"address","name":"nft","type":"address"},{"indexed":true,"internalType":"address","name":"streamingNFT","type":"address"}],"name":"SetStreamingNFT","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[][]","name":"_tokenIds","type":"uint256[][]"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"address","name":"_onBehalfOf","type":"address"},{"internalType":"address[]","name":"_nfts","type":"address[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[][]","name":"_tokenIds","type":"uint256[][]"},{"internalType":"address[]","name":"_nfts","type":"address[]"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"contract IDistributor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nft","type":"address"},{"internalType":"address","name":"_streamingNFT","type":"address"}],"name":"setStreamingNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"streamingNFTs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561000f575f80fd5b50604051611663380380611663833981810160405281019061003191906104ac565b335f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100a2575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016100999190610543565b60405180910390fd5b6100b1816101fa60201b60201c565b5081518351146100f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100ed906105b6565b60405180910390fd5b5f5b83518110156101bd57828181518110610114576101136105d4565b5b602002602001015160025f868481518110610132576101316105d4565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080806001019150506100f8565b508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050505050610601565b60015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905561022d8161023060201b60201c565b50565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61034c82610306565b810181811067ffffffffffffffff8211171561036b5761036a610316565b5b80604052505050565b5f61037d6102f1565b90506103898282610343565b919050565b5f67ffffffffffffffff8211156103a8576103a7610316565b5b602082029050602081019050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6103e6826103bd565b9050919050565b6103f6816103dc565b8114610400575f80fd5b50565b5f81519050610411816103ed565b92915050565b5f6104296104248461038e565b610374565b9050808382526020820190506020840283018581111561044c5761044b6103b9565b5b835b8181101561047557806104618882610403565b84526020840193505060208101905061044e565b5050509392505050565b5f82601f83011261049357610492610302565b5b81516104a3848260208601610417565b91505092915050565b5f805f606084860312156104c3576104c26102fa565b5b5f84015167ffffffffffffffff8111156104e0576104df6102fe565b5b6104ec8682870161047f565b935050602084015167ffffffffffffffff81111561050d5761050c6102fe565b5b6105198682870161047f565b925050604061052a86828701610403565b9150509250925092565b61053d816103dc565b82525050565b5f6020820190506105565f830184610534565b92915050565b5f82825260208201905092915050565b7f4172726179206c656e67746873206d757374206d6174636800000000000000005f82015250565b5f6105a060188361055c565b91506105ab8261056c565b602082019050919050565b5f6020820190508181035f8301526105cd81610594565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b6080516110436106205f395f81816101b8015261065801526110435ff3fe608060405234801561000f575f80fd5b506004361061009c575f3560e01c8063bfcbd07211610064578063bfcbd0721461010a578063bfe1092814610126578063e30c397814610144578063f2fde38b14610162578063f38ef4de1461017e5761009c565b806316cbaf62146100a057806340913f9b146100bc578063715018a6146100d857806379ba5097146100e25780638da5cb5b146100ec575b5f80fd5b6100ba60048036038101906100b59190610af2565b6101ae565b005b6100d660048036038101906100d19190610bfc565b61037e565b005b6100e06104ad565b005b6100ea6104c0565b005b6100f461054e565b6040516101019190610c89565b60405180910390f35b610124600480360381019061011f9190610ca2565b610575565b005b61012e610656565b60405161013b9190610d3b565b60405180910390f35b61014c61067a565b6040516101599190610c89565b60405180910390f35b61017c60048036038101906101779190610d54565b6106a2565b005b61019860048036038101906101939190610d54565b61074e565b6040516101a59190610c89565b60405180910390f35b5f881115610247577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663584ebf76888888888d896040518763ffffffff1660e01b815260040161021996959493929190610e60565b5f604051808303815f87803b158015610230575f80fd5b505af1158015610242573d5f803e3d5ffd5b505050505b5f5b828290508110156103715760025f84848481811061026a57610269610eb5565b5b905060200201602081019061027f9190610d54565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631776e8178c8c8481811061030657610305610eb5565b5b90506020028101906103189190610eee565b876040518463ffffffff1660e01b815260040161033793929190610fbb565b5f604051808303815f87803b15801561034e575f80fd5b505af1158015610360573d5f803e3d5ffd5b505050508080600101915050610249565b5050505050505050505050565b5f5b828290508110156104a65760025f8484848181106103a1576103a0610eb5565b5b90506020020160208101906103b69190610d54565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344c8458e86868481811061043d5761043c610eb5565b5b905060200281019061044f9190610eee565b6040518363ffffffff1660e01b815260040161046c929190610feb565b5f604051808303815f87803b158015610483575f80fd5b505af1158015610495573d5f803e3d5ffd5b505050508080600101915050610380565b5050505050565b6104b561077e565b6104be5f610805565b565b5f6104c9610835565b90508073ffffffffffffffffffffffffffffffffffffffff166104ea61067a565b73ffffffffffffffffffffffffffffffffffffffff161461054257806040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016105399190610c89565b60405180910390fd5b61054b81610805565b50565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61057d61077e565b8060025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc8b2f266ba1773b5fe81bc1251a9519df06728ac29780b4f5bd353e5d606863160405160405180910390a35050565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6106aa61077e565b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1661070961054e565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6002602052805f5260405f205f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610786610835565b73ffffffffffffffffffffffffffffffffffffffff166107a461054e565b73ffffffffffffffffffffffffffffffffffffffff1614610803576107c7610835565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016107fa9190610c89565b60405180910390fd5b565b60015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556108328161083c565b50565b5f33905090565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261092657610925610905565b5b8235905067ffffffffffffffff81111561094357610942610909565b5b60208301915083602082028301111561095f5761095e61090d565b5b9250929050565b5f819050919050565b61097881610966565b8114610982575f80fd5b50565b5f813590506109938161096f565b92915050565b5f8083601f8401126109ae576109ad610905565b5b8235905067ffffffffffffffff8111156109cb576109ca610909565b5b6020830191508360208202830111156109e7576109e661090d565b5b9250929050565b5f8083601f840112610a0357610a02610905565b5b8235905067ffffffffffffffff811115610a2057610a1f610909565b5b602083019150836001820283011115610a3c57610a3b61090d565b5b9250929050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610a6c82610a43565b9050919050565b610a7c81610a62565b8114610a86575f80fd5b50565b5f81359050610a9781610a73565b92915050565b5f8083601f840112610ab257610ab1610905565b5b8235905067ffffffffffffffff811115610acf57610ace610909565b5b602083019150836020820283011115610aeb57610aea61090d565b5b9250929050565b5f805f805f805f805f8060c08b8d031215610b1057610b0f6108fd565b5b5f8b013567ffffffffffffffff811115610b2d57610b2c610901565b5b610b398d828e01610911565b9a509a50506020610b4c8d828e01610985565b98505060408b013567ffffffffffffffff811115610b6d57610b6c610901565b5b610b798d828e01610999565b975097505060608b013567ffffffffffffffff811115610b9c57610b9b610901565b5b610ba88d828e016109ee565b95509550506080610bbb8d828e01610a89565b93505060a08b013567ffffffffffffffff811115610bdc57610bdb610901565b5b610be88d828e01610a9d565b92509250509295989b9194979a5092959850565b5f805f8060408587031215610c1457610c136108fd565b5b5f85013567ffffffffffffffff811115610c3157610c30610901565b5b610c3d87828801610911565b9450945050602085013567ffffffffffffffff811115610c6057610c5f610901565b5b610c6c87828801610a9d565b925092505092959194509250565b610c8381610a62565b82525050565b5f602082019050610c9c5f830184610c7a565b92915050565b5f8060408385031215610cb857610cb76108fd565b5b5f610cc585828601610a89565b9250506020610cd685828601610a89565b9150509250929050565b5f819050919050565b5f610d03610cfe610cf984610a43565b610ce0565b610a43565b9050919050565b5f610d1482610ce9565b9050919050565b5f610d2582610d0a565b9050919050565b610d3581610d1b565b82525050565b5f602082019050610d4e5f830184610d2c565b92915050565b5f60208284031215610d6957610d686108fd565b5b5f610d7684828501610a89565b91505092915050565b5f82825260208201905092915050565b5f80fd5b82818337505050565b5f610da78385610d7f565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115610dda57610dd9610d8f565b5b602083029250610deb838584610d93565b82840190509392505050565b5f82825260208201905092915050565b828183375f83830152505050565b5f601f19601f8301169050919050565b5f610e308385610df7565b9350610e3d838584610e07565b610e4683610e15565b840190509392505050565b610e5a81610966565b82525050565b5f6080820190508181035f830152610e7981888a610d9c565b90508181036020830152610e8e818688610e25565b9050610e9d6040830185610e51565b610eaa6060830184610c7a565b979650505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f80fd5b5f80fd5b5f80fd5b5f8083356001602003843603038112610f0a57610f09610ee2565b5b80840192508235915067ffffffffffffffff821115610f2c57610f2b610ee6565b5b602083019250602082023603831315610f4857610f47610eea565b5b509250929050565b5f82825260208201905092915050565b5f610f6b8385610f50565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115610f9e57610f9d610d8f565b5b602083029250610faf838584610d93565b82840190509392505050565b5f6040820190508181035f830152610fd4818587610f60565b9050610fe36020830184610c7a565b949350505050565b5f6020820190508181035f830152611004818486610f60565b9050939250505056fea26469706673582212205d4c902be5aab359a529674dfb1caf32e039abeeb73c810b5b10b9077038566364736f6c63430008190033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000800000000000000000000000008c8dee3e3e47d98208565bec1afa050c84026a2600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561000f575f80fd5b506004361061009c575f3560e01c8063bfcbd07211610064578063bfcbd0721461010a578063bfe1092814610126578063e30c397814610144578063f2fde38b14610162578063f38ef4de1461017e5761009c565b806316cbaf62146100a057806340913f9b146100bc578063715018a6146100d857806379ba5097146100e25780638da5cb5b146100ec575b5f80fd5b6100ba60048036038101906100b59190610af2565b6101ae565b005b6100d660048036038101906100d19190610bfc565b61037e565b005b6100e06104ad565b005b6100ea6104c0565b005b6100f461054e565b6040516101019190610c89565b60405180910390f35b610124600480360381019061011f9190610ca2565b610575565b005b61012e610656565b60405161013b9190610d3b565b60405180910390f35b61014c61067a565b6040516101599190610c89565b60405180910390f35b61017c60048036038101906101779190610d54565b6106a2565b005b61019860048036038101906101939190610d54565b61074e565b6040516101a59190610c89565b60405180910390f35b5f881115610247577f0000000000000000000000008c8dee3e3e47d98208565bec1afa050c84026a2673ffffffffffffffffffffffffffffffffffffffff1663584ebf76888888888d896040518763ffffffff1660e01b815260040161021996959493929190610e60565b5f604051808303815f87803b158015610230575f80fd5b505af1158015610242573d5f803e3d5ffd5b505050505b5f5b828290508110156103715760025f84848481811061026a57610269610eb5565b5b905060200201602081019061027f9190610d54565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631776e8178c8c8481811061030657610305610eb5565b5b90506020028101906103189190610eee565b876040518463ffffffff1660e01b815260040161033793929190610fbb565b5f604051808303815f87803b15801561034e575f80fd5b505af1158015610360573d5f803e3d5ffd5b505050508080600101915050610249565b5050505050505050505050565b5f5b828290508110156104a65760025f8484848181106103a1576103a0610eb5565b5b90506020020160208101906103b69190610d54565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344c8458e86868481811061043d5761043c610eb5565b5b905060200281019061044f9190610eee565b6040518363ffffffff1660e01b815260040161046c929190610feb565b5f604051808303815f87803b158015610483575f80fd5b505af1158015610495573d5f803e3d5ffd5b505050508080600101915050610380565b5050505050565b6104b561077e565b6104be5f610805565b565b5f6104c9610835565b90508073ffffffffffffffffffffffffffffffffffffffff166104ea61067a565b73ffffffffffffffffffffffffffffffffffffffff161461054257806040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016105399190610c89565b60405180910390fd5b61054b81610805565b50565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61057d61077e565b8060025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc8b2f266ba1773b5fe81bc1251a9519df06728ac29780b4f5bd353e5d606863160405160405180910390a35050565b7f0000000000000000000000008c8dee3e3e47d98208565bec1afa050c84026a2681565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6106aa61077e565b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1661070961054e565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6002602052805f5260405f205f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610786610835565b73ffffffffffffffffffffffffffffffffffffffff166107a461054e565b73ffffffffffffffffffffffffffffffffffffffff1614610803576107c7610835565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016107fa9190610c89565b60405180910390fd5b565b60015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556108328161083c565b50565b5f33905090565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261092657610925610905565b5b8235905067ffffffffffffffff81111561094357610942610909565b5b60208301915083602082028301111561095f5761095e61090d565b5b9250929050565b5f819050919050565b61097881610966565b8114610982575f80fd5b50565b5f813590506109938161096f565b92915050565b5f8083601f8401126109ae576109ad610905565b5b8235905067ffffffffffffffff8111156109cb576109ca610909565b5b6020830191508360208202830111156109e7576109e661090d565b5b9250929050565b5f8083601f840112610a0357610a02610905565b5b8235905067ffffffffffffffff811115610a2057610a1f610909565b5b602083019150836001820283011115610a3c57610a3b61090d565b5b9250929050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610a6c82610a43565b9050919050565b610a7c81610a62565b8114610a86575f80fd5b50565b5f81359050610a9781610a73565b92915050565b5f8083601f840112610ab257610ab1610905565b5b8235905067ffffffffffffffff811115610acf57610ace610909565b5b602083019150836020820283011115610aeb57610aea61090d565b5b9250929050565b5f805f805f805f805f8060c08b8d031215610b1057610b0f6108fd565b5b5f8b013567ffffffffffffffff811115610b2d57610b2c610901565b5b610b398d828e01610911565b9a509a50506020610b4c8d828e01610985565b98505060408b013567ffffffffffffffff811115610b6d57610b6c610901565b5b610b798d828e01610999565b975097505060608b013567ffffffffffffffff811115610b9c57610b9b610901565b5b610ba88d828e016109ee565b95509550506080610bbb8d828e01610a89565b93505060a08b013567ffffffffffffffff811115610bdc57610bdb610901565b5b610be88d828e01610a9d565b92509250509295989b9194979a5092959850565b5f805f8060408587031215610c1457610c136108fd565b5b5f85013567ffffffffffffffff811115610c3157610c30610901565b5b610c3d87828801610911565b9450945050602085013567ffffffffffffffff811115610c6057610c5f610901565b5b610c6c87828801610a9d565b925092505092959194509250565b610c8381610a62565b82525050565b5f602082019050610c9c5f830184610c7a565b92915050565b5f8060408385031215610cb857610cb76108fd565b5b5f610cc585828601610a89565b9250506020610cd685828601610a89565b9150509250929050565b5f819050919050565b5f610d03610cfe610cf984610a43565b610ce0565b610a43565b9050919050565b5f610d1482610ce9565b9050919050565b5f610d2582610d0a565b9050919050565b610d3581610d1b565b82525050565b5f602082019050610d4e5f830184610d2c565b92915050565b5f60208284031215610d6957610d686108fd565b5b5f610d7684828501610a89565b91505092915050565b5f82825260208201905092915050565b5f80fd5b82818337505050565b5f610da78385610d7f565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115610dda57610dd9610d8f565b5b602083029250610deb838584610d93565b82840190509392505050565b5f82825260208201905092915050565b828183375f83830152505050565b5f601f19601f8301169050919050565b5f610e308385610df7565b9350610e3d838584610e07565b610e4683610e15565b840190509392505050565b610e5a81610966565b82525050565b5f6080820190508181035f830152610e7981888a610d9c565b90508181036020830152610e8e818688610e25565b9050610e9d6040830185610e51565b610eaa6060830184610c7a565b979650505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f80fd5b5f80fd5b5f80fd5b5f8083356001602003843603038112610f0a57610f09610ee2565b5b80840192508235915067ffffffffffffffff821115610f2c57610f2b610ee6565b5b602083019250602082023603831315610f4857610f47610eea565b5b509250929050565b5f82825260208201905092915050565b5f610f6b8385610f50565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115610f9e57610f9d610d8f565b5b602083029250610faf838584610d93565b82840190509392505050565b5f6040820190508181035f830152610fd4818587610f60565b9050610fe36020830184610c7a565b949350505050565b5f6020820190508181035f830152611004818486610f60565b9050939250505056fea26469706673582212205d4c902be5aab359a529674dfb1caf32e039abeeb73c810b5b10b9077038566364736f6c63430008190033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000800000000000000000000000008c8dee3e3e47d98208565bec1afa050c84026a2600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000008c8dee3e3e47d98208565bec1afa050c84026a26
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction 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

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.