Address Details
contract

0xC6A6De05a8ced6A6047A432A4BD7D2715D1d681C

Contract Name
AccumulatingMerkleDistr..leRoots
Creator
0x643c57–e72624 at 0x8a5fca–5b9727
Balance
0.395 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
14 Transactions
Transfers
8 Transfers
Gas Used
485,879
Last Balance Update
11626042
This contract has been partially verified via Sourcify. View contract in Sourcify repository
Contract name:
AccumulatingMerkleDistributorMultipleRoots




Optimization enabled
false
Compiler version
v0.8.11+commit.d7f03943




EVM Version
london




Verified at
2022-02-21T23:21:33.314176Z

contracts/AccumulatingMerkleDistributorMultipleRoots.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity =0.8.11;

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

contract AccumulatingMerkleDistributorMultipleRoots is Ownable {
    uint public immutable timeout;
    address public immutable token;
    mapping(bytes32 => bool) public allowedMerkleRoots;

    // This is a packed array of booleans.
    mapping(address => uint256) public claimedAmount;

    event Claimed(uint256 index, address account, uint256 amount, bytes32 merkleRoot);
    event RootAdded(bytes32 newRoot);

    constructor(address _token, address _owner, uint _timeout) {
        transferOwnership(_owner);
        token = _token;
        timeout = _timeout;
    }

    function claim(uint256 _index, address _account, uint256 _amount, bytes32 _merkleRoot, bytes32[] calldata _merkleProof) external {
        require(allowedMerkleRoots[_merkleRoot], 'AccumulatingMerkleDistributorMultipleRoots: Invalid merkleRoot.');

        uint claimed = claimedAmount[_account];
        require(claimed < _amount, 'AccumulatingMerkleDistributorMultipleRoots: Drop already claimed.');

        // Verify the merkle proof.
        bytes32 node = keccak256(abi.encodePacked(_index, _account, _amount));
        require(MerkleProof.verify(_merkleProof, _merkleRoot, node), 'AccumulatingMerkleDistributorMultipleRoots: Invalid proof.');

        // Mark it claimed and send the token.
        claimedAmount[_account] = _amount;
        require(IERC20(token).transfer(_account, _amount - claimed), 'AccumulatingMerkleDistributorMultipleRoots: Transfer failed.');

        emit Claimed(_index, _account, _amount, _merkleRoot);
    }

    // New root should include all old recipients plus new ones.
    function addRoot(bytes32 _newRoot) public onlyOwner() {
        require(!allowedMerkleRoots[_newRoot], 'AccumulatingMerkleDistributorMultipleRoots: merkleRoot already exists.');
        allowedMerkleRoots[_newRoot] = true;
        emit RootAdded(_newRoot);
    }

    function recover(address _to, bytes calldata _data) external onlyOwner() returns(bool, bytes memory) {
        if (_to == token) {
            require(block.timestamp > timeout, 'AccumulatingMerkleDistributorMultipleRoots: not timed out yet.');
        }
        return _to.call(_data);
    }
}
        

/_openzeppelin/contracts/access/Ownable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

/_openzeppelin/contracts/security/Pausable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

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

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        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());
    }
}
          

/_openzeppelin/contracts/token/ERC20/ERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}
          

/_openzeppelin/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

/_openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC20 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC20Pausable is ERC20, Pausable {
    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        require(!paused(), "ERC20Pausable: token transfer while paused");
    }
}
          

/_openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}
          

/_openzeppelin/contracts/utils/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;
    }
}
          

/_openzeppelin/contracts/utils/cryptography/MerkleProof.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees 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.
 */
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 Returns the rebuilt hash obtained by traversing a Merklee 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++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}
          

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_token","internalType":"address"},{"type":"address","name":"_owner","internalType":"address"},{"type":"uint256","name":"_timeout","internalType":"uint256"}]},{"type":"event","name":"Claimed","inputs":[{"type":"uint256","name":"index","internalType":"uint256","indexed":false},{"type":"address","name":"account","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"bytes32","name":"merkleRoot","internalType":"bytes32","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RootAdded","inputs":[{"type":"bytes32","name":"newRoot","internalType":"bytes32","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addRoot","inputs":[{"type":"bytes32","name":"_newRoot","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"allowedMerkleRoots","inputs":[{"type":"bytes32","name":"","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claim","inputs":[{"type":"uint256","name":"_index","internalType":"uint256"},{"type":"address","name":"_account","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"},{"type":"bytes32","name":"_merkleRoot","internalType":"bytes32"},{"type":"bytes32[]","name":"_merkleProof","internalType":"bytes32[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"claimedAmount","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"},{"type":"bytes","name":"","internalType":"bytes"}],"name":"recover","inputs":[{"type":"address","name":"_to","internalType":"address"},{"type":"bytes","name":"_data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"timeout","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"token","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
              

Contract Creation Code

Verify & Publish
0x60c06040523480156200001157600080fd5b5060405162001d0638038062001d0683398181016040528101906200003791906200035d565b620000576200004b620000ad60201b60201c565b620000b560201b60201c565b62000068826200017960201b60201c565b8273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508060808181525050505050620004d4565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000189620000ad60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620001af6200028f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000208576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001ff906200041a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156200027b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200027290620004b2565b60405180910390fd5b6200028c81620000b560201b60201c565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002ea82620002bd565b9050919050565b620002fc81620002dd565b81146200030857600080fd5b50565b6000815190506200031c81620002f1565b92915050565b6000819050919050565b620003378162000322565b81146200034357600080fd5b50565b60008151905062000357816200032c565b92915050565b600080600060608486031215620003795762000378620002b8565b5b600062000389868287016200030b565b93505060206200039c868287016200030b565b9250506040620003af8682870162000346565b9150509250925092565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062000402602083620003b9565b91506200040f82620003ca565b602082019050919050565b600060208201905081810360008301526200043581620003f3565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006200049a602683620003b9565b9150620004a7826200043c565b604082019050919050565b60006020820190508181036000830152620004cd816200048b565b9050919050565b60805160a0516117f76200050f600039600081816103ea0152818161059901526109f50152600081816105ed01526106c601526117f76000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063745544171161006657806374554417146101485780638da5cb5b14610178578063d59e646114610196578063f2fde38b146101b2578063fc0c546a146101ce5761009e565b806304e86903146100a35780632035a4dd146100d3578063379f4e66146100ef57806370dea79a14610120578063715018a61461013e575b600080fd5b6100bd60048036038101906100b89190610c15565b6101ec565b6040516100ca9190610c5b565b60405180910390f35b6100ed60048036038101906100e89190610d3d565b610204565b005b61010960048036038101906101049190610e2d565b610517565b604051610117929190610f41565b60405180910390f35b6101286106c4565b6040516101359190610c5b565b60405180910390f35b6101466106e8565b005b610162600480360381019061015d9190610f71565b610770565b60405161016f9190610f9e565b60405180910390f35b610180610790565b60405161018d9190610fc8565b60405180910390f35b6101b060048036038101906101ab9190610f71565b6107b9565b005b6101cc60048036038101906101c79190610c15565b6108fb565b005b6101d66109f3565b6040516101e39190610fc8565b60405180910390f35b60026020528060005260406000206000915090505481565b6001600084815260200190815260200160002060009054906101000a900460ff16610264576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025b90611066565b60405180910390fd5b6000600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508481106102ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102e19061111e565b60405180910390fd5b6000878787604051602001610301939291906111a7565b604051602081830303815290604052805190602001209050610365848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508683610a17565b6103a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039b90611256565b60405180910390fd5b85600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb88848961043191906112a5565b6040518363ffffffff1660e01b815260040161044e9291906112d9565b6020604051808303816000875af115801561046d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610491919061132e565b6104d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104c7906113cd565b60405180910390fd5b7f04672052dcb6b5b19a9cc2ec1b8f447f1f5e47b5e24cfa5e4ffb640d63ca2be78888888860405161050594939291906113fc565b60405180910390a15050505050505050565b60006060610523610a2e565b73ffffffffffffffffffffffffffffffffffffffff16610541610790565b73ffffffffffffffffffffffffffffffffffffffff1614610597576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058e9061148d565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561064e577f0000000000000000000000000000000000000000000000000000000000000000421161064d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106449061151f565b60405180910390fd5b5b8473ffffffffffffffffffffffffffffffffffffffff16848460405161067592919061157e565b6000604051808303816000865af19150503d80600081146106b2576040519150601f19603f3d011682016040523d82523d6000602084013e6106b7565b606091505b5091509150935093915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6106f0610a2e565b73ffffffffffffffffffffffffffffffffffffffff1661070e610790565b73ffffffffffffffffffffffffffffffffffffffff1614610764576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075b9061148d565b60405180910390fd5b61076e6000610a36565b565b60016020528060005260406000206000915054906101000a900460ff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6107c1610a2e565b73ffffffffffffffffffffffffffffffffffffffff166107df610790565b73ffffffffffffffffffffffffffffffffffffffff1614610835576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082c9061148d565b60405180910390fd5b6001600082815260200190815260200160002060009054906101000a900460ff1615610896576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088d9061162f565b60405180910390fd5b600180600083815260200190815260200160002060006101000a81548160ff0219169083151502179055507f388a5f4af784e29fc791e14e90d372b6057e8379d9d5556e843545420c675dea816040516108f0919061164f565b60405180910390a150565b610903610a2e565b73ffffffffffffffffffffffffffffffffffffffff16610921610790565b73ffffffffffffffffffffffffffffffffffffffff1614610977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096e9061148d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156109e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109de906116dc565b60405180910390fd5b6109f081610a36565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b600082610a248584610afa565b1490509392505050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008082905060005b8451811015610ba2576000858281518110610b2157610b206116fc565b5b60200260200101519050808311610b62578281604051602001610b4592919061174c565b604051602081830303815290604052805190602001209250610b8e565b8083604051602001610b7592919061174c565b6040516020818303038152906040528051906020012092505b508080610b9a90611778565b915050610b03565b508091505092915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610be282610bb7565b9050919050565b610bf281610bd7565b8114610bfd57600080fd5b50565b600081359050610c0f81610be9565b92915050565b600060208284031215610c2b57610c2a610bad565b5b6000610c3984828501610c00565b91505092915050565b6000819050919050565b610c5581610c42565b82525050565b6000602082019050610c706000830184610c4c565b92915050565b610c7f81610c42565b8114610c8a57600080fd5b50565b600081359050610c9c81610c76565b92915050565b6000819050919050565b610cb581610ca2565b8114610cc057600080fd5b50565b600081359050610cd281610cac565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610cfd57610cfc610cd8565b5b8235905067ffffffffffffffff811115610d1a57610d19610cdd565b5b602083019150836020820283011115610d3657610d35610ce2565b5b9250929050565b60008060008060008060a08789031215610d5a57610d59610bad565b5b6000610d6889828a01610c8d565b9650506020610d7989828a01610c00565b9550506040610d8a89828a01610c8d565b9450506060610d9b89828a01610cc3565b935050608087013567ffffffffffffffff811115610dbc57610dbb610bb2565b5b610dc889828a01610ce7565b92509250509295509295509295565b60008083601f840112610ded57610dec610cd8565b5b8235905067ffffffffffffffff811115610e0a57610e09610cdd565b5b602083019150836001820283011115610e2657610e25610ce2565b5b9250929050565b600080600060408486031215610e4657610e45610bad565b5b6000610e5486828701610c00565b935050602084013567ffffffffffffffff811115610e7557610e74610bb2565b5b610e8186828701610dd7565b92509250509250925092565b60008115159050919050565b610ea281610e8d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610ee2578082015181840152602081019050610ec7565b83811115610ef1576000848401525b50505050565b6000601f19601f8301169050919050565b6000610f1382610ea8565b610f1d8185610eb3565b9350610f2d818560208601610ec4565b610f3681610ef7565b840191505092915050565b6000604082019050610f566000830185610e99565b8181036020830152610f688184610f08565b90509392505050565b600060208284031215610f8757610f86610bad565b5b6000610f9584828501610cc3565b91505092915050565b6000602082019050610fb36000830184610e99565b92915050565b610fc281610bd7565b82525050565b6000602082019050610fdd6000830184610fb9565b92915050565b600082825260208201905092915050565b7f416363756d756c6174696e674d65726b6c654469737472696275746f724d756c60008201527f7469706c65526f6f74733a20496e76616c6964206d65726b6c65526f6f742e00602082015250565b6000611050603f83610fe3565b915061105b82610ff4565b604082019050919050565b6000602082019050818103600083015261107f81611043565b9050919050565b7f416363756d756c6174696e674d65726b6c654469737472696275746f724d756c60008201527f7469706c65526f6f74733a2044726f7020616c726561647920636c61696d656460208201527f2e00000000000000000000000000000000000000000000000000000000000000604082015250565b6000611108604183610fe3565b915061111382611086565b606082019050919050565b60006020820190508181036000830152611137816110fb565b9050919050565b6000819050919050565b61115961115482610c42565b61113e565b82525050565b60008160601b9050919050565b60006111778261115f565b9050919050565b60006111898261116c565b9050919050565b6111a161119c82610bd7565b61117e565b82525050565b60006111b38286611148565b6020820191506111c38285611190565b6014820191506111d38284611148565b602082019150819050949350505050565b7f416363756d756c6174696e674d65726b6c654469737472696275746f724d756c60008201527f7469706c65526f6f74733a20496e76616c69642070726f6f662e000000000000602082015250565b6000611240603a83610fe3565b915061124b826111e4565b604082019050919050565b6000602082019050818103600083015261126f81611233565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006112b082610c42565b91506112bb83610c42565b9250828210156112ce576112cd611276565b5b828203905092915050565b60006040820190506112ee6000830185610fb9565b6112fb6020830184610c4c565b9392505050565b61130b81610e8d565b811461131657600080fd5b50565b60008151905061132881611302565b92915050565b60006020828403121561134457611343610bad565b5b600061135284828501611319565b91505092915050565b7f416363756d756c6174696e674d65726b6c654469737472696275746f724d756c60008201527f7469706c65526f6f74733a205472616e73666572206661696c65642e00000000602082015250565b60006113b7603c83610fe3565b91506113c28261135b565b604082019050919050565b600060208201905081810360008301526113e6816113aa565b9050919050565b6113f681610ca2565b82525050565b60006080820190506114116000830187610c4c565b61141e6020830186610fb9565b61142b6040830185610c4c565b61143860608301846113ed565b95945050505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611477602083610fe3565b915061148282611441565b602082019050919050565b600060208201905081810360008301526114a68161146a565b9050919050565b7f416363756d756c6174696e674d65726b6c654469737472696275746f724d756c60008201527f7469706c65526f6f74733a206e6f742074696d6564206f7574207965742e0000602082015250565b6000611509603e83610fe3565b9150611514826114ad565b604082019050919050565b60006020820190508181036000830152611538816114fc565b9050919050565b600081905092915050565b82818337600083830152505050565b6000611565838561153f565b935061157283858461154a565b82840190509392505050565b600061158b828486611559565b91508190509392505050565b7f416363756d756c6174696e674d65726b6c654469737472696275746f724d756c60008201527f7469706c65526f6f74733a206d65726b6c65526f6f7420616c7265616479206560208201527f78697374732e0000000000000000000000000000000000000000000000000000604082015250565b6000611619604683610fe3565b915061162482611597565b606082019050919050565b600060208201905081810360008301526116488161160c565b9050919050565b600060208201905061166460008301846113ed565b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006116c6602683610fe3565b91506116d18261166a565b604082019050919050565b600060208201905081810360008301526116f5816116b9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b61174661174182610ca2565b61172b565b82525050565b60006117588285611735565b6020820191506117688284611735565b6020820191508190509392505050565b600061178382610c42565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156117b6576117b5611276565b5b60018201905091905056fea2646970667358221220f36f7e59b79b3b91b648255eebb2271d5b32668ab68e18430cdbabe25768f88964736f6c634300080b0033000000000000000000000000471ece3750da237f93b8e339c536989b8978a438000000000000000000000000643c574128c7c56a1835e021ad0ecc2592e726240000000000000000000000000000000000000000000000000000000062994f00

Deployed ByteCode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063745544171161006657806374554417146101485780638da5cb5b14610178578063d59e646114610196578063f2fde38b146101b2578063fc0c546a146101ce5761009e565b806304e86903146100a35780632035a4dd146100d3578063379f4e66146100ef57806370dea79a14610120578063715018a61461013e575b600080fd5b6100bd60048036038101906100b89190610c15565b6101ec565b6040516100ca9190610c5b565b60405180910390f35b6100ed60048036038101906100e89190610d3d565b610204565b005b61010960048036038101906101049190610e2d565b610517565b604051610117929190610f41565b60405180910390f35b6101286106c4565b6040516101359190610c5b565b60405180910390f35b6101466106e8565b005b610162600480360381019061015d9190610f71565b610770565b60405161016f9190610f9e565b60405180910390f35b610180610790565b60405161018d9190610fc8565b60405180910390f35b6101b060048036038101906101ab9190610f71565b6107b9565b005b6101cc60048036038101906101c79190610c15565b6108fb565b005b6101d66109f3565b6040516101e39190610fc8565b60405180910390f35b60026020528060005260406000206000915090505481565b6001600084815260200190815260200160002060009054906101000a900460ff16610264576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025b90611066565b60405180910390fd5b6000600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508481106102ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102e19061111e565b60405180910390fd5b6000878787604051602001610301939291906111a7565b604051602081830303815290604052805190602001209050610365848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508683610a17565b6103a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039b90611256565b60405180910390fd5b85600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f000000000000000000000000471ece3750da237f93b8e339c536989b8978a43873ffffffffffffffffffffffffffffffffffffffff1663a9059cbb88848961043191906112a5565b6040518363ffffffff1660e01b815260040161044e9291906112d9565b6020604051808303816000875af115801561046d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610491919061132e565b6104d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104c7906113cd565b60405180910390fd5b7f04672052dcb6b5b19a9cc2ec1b8f447f1f5e47b5e24cfa5e4ffb640d63ca2be78888888860405161050594939291906113fc565b60405180910390a15050505050505050565b60006060610523610a2e565b73ffffffffffffffffffffffffffffffffffffffff16610541610790565b73ffffffffffffffffffffffffffffffffffffffff1614610597576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058e9061148d565b60405180910390fd5b7f000000000000000000000000471ece3750da237f93b8e339c536989b8978a43873ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561064e577f0000000000000000000000000000000000000000000000000000000062994f00421161064d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106449061151f565b60405180910390fd5b5b8473ffffffffffffffffffffffffffffffffffffffff16848460405161067592919061157e565b6000604051808303816000865af19150503d80600081146106b2576040519150601f19603f3d011682016040523d82523d6000602084013e6106b7565b606091505b5091509150935093915050565b7f0000000000000000000000000000000000000000000000000000000062994f0081565b6106f0610a2e565b73ffffffffffffffffffffffffffffffffffffffff1661070e610790565b73ffffffffffffffffffffffffffffffffffffffff1614610764576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075b9061148d565b60405180910390fd5b61076e6000610a36565b565b60016020528060005260406000206000915054906101000a900460ff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6107c1610a2e565b73ffffffffffffffffffffffffffffffffffffffff166107df610790565b73ffffffffffffffffffffffffffffffffffffffff1614610835576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082c9061148d565b60405180910390fd5b6001600082815260200190815260200160002060009054906101000a900460ff1615610896576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088d9061162f565b60405180910390fd5b600180600083815260200190815260200160002060006101000a81548160ff0219169083151502179055507f388a5f4af784e29fc791e14e90d372b6057e8379d9d5556e843545420c675dea816040516108f0919061164f565b60405180910390a150565b610903610a2e565b73ffffffffffffffffffffffffffffffffffffffff16610921610790565b73ffffffffffffffffffffffffffffffffffffffff1614610977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096e9061148d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156109e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109de906116dc565b60405180910390fd5b6109f081610a36565b50565b7f000000000000000000000000471ece3750da237f93b8e339c536989b8978a43881565b600082610a248584610afa565b1490509392505050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008082905060005b8451811015610ba2576000858281518110610b2157610b206116fc565b5b60200260200101519050808311610b62578281604051602001610b4592919061174c565b604051602081830303815290604052805190602001209250610b8e565b8083604051602001610b7592919061174c565b6040516020818303038152906040528051906020012092505b508080610b9a90611778565b915050610b03565b508091505092915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610be282610bb7565b9050919050565b610bf281610bd7565b8114610bfd57600080fd5b50565b600081359050610c0f81610be9565b92915050565b600060208284031215610c2b57610c2a610bad565b5b6000610c3984828501610c00565b91505092915050565b6000819050919050565b610c5581610c42565b82525050565b6000602082019050610c706000830184610c4c565b92915050565b610c7f81610c42565b8114610c8a57600080fd5b50565b600081359050610c9c81610c76565b92915050565b6000819050919050565b610cb581610ca2565b8114610cc057600080fd5b50565b600081359050610cd281610cac565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610cfd57610cfc610cd8565b5b8235905067ffffffffffffffff811115610d1a57610d19610cdd565b5b602083019150836020820283011115610d3657610d35610ce2565b5b9250929050565b60008060008060008060a08789031215610d5a57610d59610bad565b5b6000610d6889828a01610c8d565b9650506020610d7989828a01610c00565b9550506040610d8a89828a01610c8d565b9450506060610d9b89828a01610cc3565b935050608087013567ffffffffffffffff811115610dbc57610dbb610bb2565b5b610dc889828a01610ce7565b92509250509295509295509295565b60008083601f840112610ded57610dec610cd8565b5b8235905067ffffffffffffffff811115610e0a57610e09610cdd565b5b602083019150836001820283011115610e2657610e25610ce2565b5b9250929050565b600080600060408486031215610e4657610e45610bad565b5b6000610e5486828701610c00565b935050602084013567ffffffffffffffff811115610e7557610e74610bb2565b5b610e8186828701610dd7565b92509250509250925092565b60008115159050919050565b610ea281610e8d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610ee2578082015181840152602081019050610ec7565b83811115610ef1576000848401525b50505050565b6000601f19601f8301169050919050565b6000610f1382610ea8565b610f1d8185610eb3565b9350610f2d818560208601610ec4565b610f3681610ef7565b840191505092915050565b6000604082019050610f566000830185610e99565b8181036020830152610f688184610f08565b90509392505050565b600060208284031215610f8757610f86610bad565b5b6000610f9584828501610cc3565b91505092915050565b6000602082019050610fb36000830184610e99565b92915050565b610fc281610bd7565b82525050565b6000602082019050610fdd6000830184610fb9565b92915050565b600082825260208201905092915050565b7f416363756d756c6174696e674d65726b6c654469737472696275746f724d756c60008201527f7469706c65526f6f74733a20496e76616c6964206d65726b6c65526f6f742e00602082015250565b6000611050603f83610fe3565b915061105b82610ff4565b604082019050919050565b6000602082019050818103600083015261107f81611043565b9050919050565b7f416363756d756c6174696e674d65726b6c654469737472696275746f724d756c60008201527f7469706c65526f6f74733a2044726f7020616c726561647920636c61696d656460208201527f2e00000000000000000000000000000000000000000000000000000000000000604082015250565b6000611108604183610fe3565b915061111382611086565b606082019050919050565b60006020820190508181036000830152611137816110fb565b9050919050565b6000819050919050565b61115961115482610c42565b61113e565b82525050565b60008160601b9050919050565b60006111778261115f565b9050919050565b60006111898261116c565b9050919050565b6111a161119c82610bd7565b61117e565b82525050565b60006111b38286611148565b6020820191506111c38285611190565b6014820191506111d38284611148565b602082019150819050949350505050565b7f416363756d756c6174696e674d65726b6c654469737472696275746f724d756c60008201527f7469706c65526f6f74733a20496e76616c69642070726f6f662e000000000000602082015250565b6000611240603a83610fe3565b915061124b826111e4565b604082019050919050565b6000602082019050818103600083015261126f81611233565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006112b082610c42565b91506112bb83610c42565b9250828210156112ce576112cd611276565b5b828203905092915050565b60006040820190506112ee6000830185610fb9565b6112fb6020830184610c4c565b9392505050565b61130b81610e8d565b811461131657600080fd5b50565b60008151905061132881611302565b92915050565b60006020828403121561134457611343610bad565b5b600061135284828501611319565b91505092915050565b7f416363756d756c6174696e674d65726b6c654469737472696275746f724d756c60008201527f7469706c65526f6f74733a205472616e73666572206661696c65642e00000000602082015250565b60006113b7603c83610fe3565b91506113c28261135b565b604082019050919050565b600060208201905081810360008301526113e6816113aa565b9050919050565b6113f681610ca2565b82525050565b60006080820190506114116000830187610c4c565b61141e6020830186610fb9565b61142b6040830185610c4c565b61143860608301846113ed565b95945050505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611477602083610fe3565b915061148282611441565b602082019050919050565b600060208201905081810360008301526114a68161146a565b9050919050565b7f416363756d756c6174696e674d65726b6c654469737472696275746f724d756c60008201527f7469706c65526f6f74733a206e6f742074696d6564206f7574207965742e0000602082015250565b6000611509603e83610fe3565b9150611514826114ad565b604082019050919050565b60006020820190508181036000830152611538816114fc565b9050919050565b600081905092915050565b82818337600083830152505050565b6000611565838561153f565b935061157283858461154a565b82840190509392505050565b600061158b828486611559565b91508190509392505050565b7f416363756d756c6174696e674d65726b6c654469737472696275746f724d756c60008201527f7469706c65526f6f74733a206d65726b6c65526f6f7420616c7265616479206560208201527f78697374732e0000000000000000000000000000000000000000000000000000604082015250565b6000611619604683610fe3565b915061162482611597565b606082019050919050565b600060208201905081810360008301526116488161160c565b9050919050565b600060208201905061166460008301846113ed565b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006116c6602683610fe3565b91506116d18261166a565b604082019050919050565b600060208201905081810360008301526116f5816116b9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b61174661174182610ca2565b61172b565b82525050565b60006117588285611735565b6020820191506117688284611735565b6020820191508190509392505050565b600061178382610c42565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156117b6576117b5611276565b5b60018201905091905056fea2646970667358221220f36f7e59b79b3b91b648255eebb2271d5b32668ab68e18430cdbabe25768f88964736f6c634300080b0033