FRAX Price: $0.80 (-2.33%)

Contract

0xaeCdef96d132451a2873410ec5A8f6Af567b4E9f

Overview

FRAX Balance | FXTL Balance

0 FRAX | 882 FXTL

FRAX Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To

There are no matching entries

2 Token Transfers found.

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Timely

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 1000 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity <=0.8.24;

import {Hash} from "./libraries/Hash.sol";
import {Data} from "./libraries/Data.sol";

import {ITimely} from "./interfaces/ITimely.sol";
import {IFeeManager} from "./interfaces/IFeeManager.sol";
import {ITimelyReceiver} from "./interfaces/ITimelyReceiver.sol";

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol";

contract Timely is Pausable, ITimely, AccessControl {
    using SafeERC20 for IERC20;

    event Executed(bytes32 identifier, uint64 index);

    bytes32 public constant WITHDRAWER_ROLE = keccak256("WITHDRAWER_ROLE");
    bytes32 public constant EXECUTOR_ROLE = keccak256("EXECUTOR_ROLE");

    IERC20 private _timelyToken;
    IFeeManager private _feeManager;

    // Maps identifier indexes to whether is has been executed or not.
    mapping(bytes32 => mapping(uint64 => bool)) private _executedIndexes;

    // Maps dapps with their timely balances.
    mapping(address => uint256) private _balances;

    // Maps identifier with their dapps.
    mapping(bytes32 => address) private _identifierOwners;

    mapping(bytes32 => bool) private _cancelledIdentifiers;

    uint64 private _nonce;

    constructor(address feeManager, address timelyToken) {
        _grantRole(EXECUTOR_ROLE, _msgSender());
        _grantRole(WITHDRAWER_ROLE, _msgSender());
        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());

        _timelyToken = IERC20(timelyToken);
        _feeManager = IFeeManager(feeManager);
    }

    function publish(
        Data.TimePayload calldata timePayload
    ) external override whenNotPaused returns (bytes32) {
        address sender = _msgSender();

        bytes32 identifier = Hash.newIdentifier(_nonce, sender, timePayload);

        _identifierOwners[identifier] = sender;

        emit Published(
            _nonce,
            identifier,
            sender,
            timePayload.delay,
            timePayload.iSchedule,
            timePayload.iMinutes,
            timePayload.iHours,
            timePayload.middleware
        );

        _nonce++;

        return identifier;
    }

    function cancel(bytes32 identifier) external override whenNotPaused {
        address sender = _msgSender();

        if (_identifierOwners[identifier] != sender) {
            revert UnAuthorize();
        }

        _cancelledIdentifiers[identifier] = true;

        emit Cancelled(identifier);
    }

    function deposit(uint256 amount) external override whenNotPaused {
        address sender = _msgSender();

        _timelyToken.safeTransferFrom(sender, address(this), amount);

        _balances[sender] += amount;

        emit Deposited(sender, amount);
    }

    function withdraw(uint256 amount) external override whenNotPaused {
        address sender = _msgSender();

        uint256 balance = _balances[sender];

        if (balance < amount) {
            revert InsufficientAmount(balance);
        }

        _timelyToken.safeTransfer(sender, amount);

        _balances[sender] -= amount;

        emit Withdrawn(sender, amount);
    }

    function balanceOf(
        address sender
    ) external view override returns (uint256) {
        return _balances[sender];
    }

    function getTimelyToken() external view returns (address) {
        return address(_timelyToken);
    }

    function claimTokens(address tokenId, uint256 amount) external override {
        require(
            hasRole(WITHDRAWER_ROLE, _msgSender()),
            "Caller is not a withdrawer"
        );

        IERC20 token = IERC20(tokenId);
        token.safeTransfer(_msgSender(), amount);

        emit ClaimedTokens(tokenId, amount);
    }

    function estimateFee(
        uint256 indexCount
    ) external view override returns (uint256) {
        return _feeManager.estimateFee(indexCount);
    }

    function isExecuted(
        bytes32 identifier,
        uint64 index
    ) external view override returns (bool) {
        return _executedIndexes[identifier][index];
    }

    function postTimelyCallback(
        address receiver,
        Data.TimePayloadIn memory timePayload
    ) external {
        require(
            hasRole(EXECUTOR_ROLE, _msgSender()),
            "Caller is not a executor"
        );

        // Check if identifier was cancelled.
        if (_cancelledIdentifiers[timePayload.identifier]) {
            revert IdentifierAlreadyCancelled();
        }

        // Check if this message was executed before.
        if (_executedIndexes[timePayload.identifier][timePayload.index]) {
            revert IndexAlreadyExecuted(
                timePayload.identifier,
                timePayload.index
            );
        }

        // Get dapp balance.
        uint256 balance = _balances[receiver];

        // Get fee for single delivery.
        uint256 SINGLE = 1;
        uint256 fee = _feeManager.estimateFee(SINGLE);

        if (balance < fee) {
            revert InsufficientFee();
        }

        // Deduct fee from dapp balance.
        _balances[receiver] -= fee;

        // Create the receiver contract from interface.
        ITimelyReceiver timelyReceiver = ITimelyReceiver(receiver);

        // This function may revert, depending on the underlying implementation.
        timelyReceiver.timelyCallback(timePayload);

        // Mark message as executed can not be re-executed ever.
        _executedIndexes[timePayload.identifier][timePayload.index] = true;

        emit Executed(timePayload.identifier, timePayload.index);
    }

    function readTimelyMiddleware(
        address receiver,
        bytes32 identifier
    ) external view returns (bool) {
        return ITimelyReceiver(receiver).timelyMiddleware(identifier);
    }

    function pause() external {
        require(
            hasRole(EXECUTOR_ROLE, _msgSender()),
            "Caller is not a executor"
        );

        _pause();
    }

    function unPause() external {
        require(
            hasRole(EXECUTOR_ROLE, _msgSender()),
            "Caller is not a executor"
        );

        _unpause();
    }
}

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

pragma solidity ^0.8.20;

import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {ERC165} from "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address account => bool) hasRole;
        bytes32 adminRole;
    }

    mapping(bytes32 role => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with an {AccessControlUnauthorizedAccount} error including the required role.
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual returns (bool) {
        return _roles[role].hasRole[account];
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
     * is missing `role`.
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert AccessControlUnauthorizedAccount(account, role);
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `callerConfirmation`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address callerConfirmation) public virtual {
        if (callerConfirmation != _msgSender()) {
            revert AccessControlBadConfirmation();
        }

        _revokeRole(role, callerConfirmation);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
        if (!hasRole(role, account)) {
            _roles[role].hasRole[account] = true;
            emit RoleGranted(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
        if (hasRole(role, account)) {
            _roles[role].hasRole[account] = false;
            emit RoleRevoked(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }
}

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

pragma solidity ^0.8.20;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev The `account` is missing a role.
     */
    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

    /**
     * @dev The caller of a function is not the expected one.
     *
     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
     */
    error AccessControlBadConfirmation();

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `callerConfirmation`.
     */
    function renounceRole(bytes32 role, address callerConfirmation) external;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

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

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

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

pragma solidity ^0.8.20;

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

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

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

pragma solidity ^0.8.20;

import {Context} from "../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 {
    bool private _paused;

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

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

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

// SPDX-License-Identifier: MIT
pragma solidity <=0.8.24;

import {Data} from "../libraries/Data.sol";

interface IFeeManager {
    event UpdatedBaseFee(uint256 newBaseFee);

    function estimateFee(uint256 count) external view returns (uint256);

    function updateBaseFee(uint256 newBaseFee) external;
}

// SPDX-License-Identifier: MIT
pragma solidity <=0.8.24;

import {Data} from "../libraries/Data.sol";

interface ITimely {
    error IndexAlreadyExecuted(bytes32 identifier, uint64 index);
    error InsufficientFee();
    error InsufficientAmount(uint256 amount);
    error UnAuthorize();
    error IdentifierAlreadyCancelled();

    event Published(
        uint64 indexed nonce,
        bytes32 indexed identifier,
        address sender,
        uint64 delay,
        Data.Schedule iSchedule,
        Data.Minutes iMinutes,
        Data.Hours iHours,
        Data.Middleware middleware
    );
    event Deposited(address sender, uint256 amount);
    event Withdrawn(address sender, uint256 amount);
    event Cancelled(bytes32 identifier);
    event ClaimedTokens(address tokenId, uint256 amount);

    function publish(
        Data.TimePayload calldata timePayload
    ) external returns (bytes32);

    function cancel(bytes32 identifier) external;

    function deposit(uint256 amount) external;

    function withdraw(uint256 amount) external;

    function balanceOf(address sender) external view returns (uint256);

    function getTimelyToken() external view returns (address);

    function claimTokens(address tokenId, uint256 amount) external;

    function estimateFee(uint256 indexCount) external view returns (uint256);

    function isExecuted(
        bytes32 identifier,
        uint64 index
    ) external view returns (bool);
}

// SPDX-License-Identifier: MIT
pragma solidity <=0.8.24;

import {Data} from "../libraries/Data.sol";

interface ITimelyReceiver {
    function timelyCallback(Data.TimePayloadIn calldata timePayload) external;

    function timelyMiddleware(bytes32 identifier) external view returns (bool);

    function getTimely() external view returns (address);
}

File 15 of 16 : Data.sol
// SPDX-License-Identifier: MIT
pragma solidity <=0.8.24;

library Data {
    enum Minutes {
        ONE_MINUTES,
        TWO_MINUTES,
        FIVE_MINUTES,
        TEN_MINUTES,
        FIFTEEN_MINUTES,
        TWENTY_MINUTES,
        TWENTY_FIVE_MINUTES,
        THIRTY_MINUTES,
        THIRTY_FIVE_MINUTES,
        FORTY_MINUTES,
        FORTY_FIVE_MINUTES,
        FIFTY_MINUTES,
        FIFTY_FIVE_MINUTES,
        SIXTY_MINUTES,
        INGORE
    }

    enum Hours {
        ZERO_HOUR,
        ONE_HOUR,
        TWO_HOUR,
        THREE_HOUR,
        FOUR_HOUR,
        FIVE_HOUR,
        SIX_HOUR,
        SEVEN_HOUR,
        EIGHT_HOUR,
        NINE_HOUR,
        TEN_HOUR,
        ELEVEN_HOUR,
        TWELVE_HOUR,
        THIRTEEN_HOUR,
        FOURTEEN_HOUR,
        FIFTEEN_HOUR,
        SIXTEEN_HOUR,
        SEVENTEEN_HOUR,
        EIGHTEEN_HOUR,
        NINETEEN_HOUR,
        TWENTY_HOUR,
        TWENTY_ONE_HOUR,
        TWENTY_TWO_HOUR,
        TWENTY_THREE_HOUR,
        INGORE
    }

    enum Schedule {
        ONCE,
        REPEAT
    }

    enum Middleware {
        EXISTS,
        INGORE
    }

    struct TimePayload {
        uint64 delay;
        Schedule iSchedule;
        Minutes iMinutes;
        Hours iHours;
        Middleware middleware;
    }

    struct TimePayloadIn {
        bytes32 identifier;
        uint64 index;
    }
}

File 16 of 16 : Hash.sol
// SPDX-License-Identifier: MIT
pragma solidity <=0.8.24;

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

library Hash {
    bytes32 internal constant LEAF_DOMAIN_SEPARATOR =
        0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE000000000000000000000000;

    function newIdentifier(
        uint64 nonce,
        address sender,
        Data.TimePayload memory timePayload
    ) internal pure returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    nonce,
                    sender,
                    LEAF_DOMAIN_SEPARATOR,
                    timePayload.iSchedule,
                    timePayload.iMinutes,
                    timePayload.iHours
                )
            );
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"feeManager","type":"address"},{"internalType":"address","name":"timelyToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"IdentifierAlreadyCancelled","type":"error"},{"inputs":[{"internalType":"bytes32","name":"identifier","type":"bytes32"},{"internalType":"uint64","name":"index","type":"uint64"}],"name":"IndexAlreadyExecuted","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"InsufficientAmount","type":"error"},{"inputs":[],"name":"InsufficientFee","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"UnAuthorize","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"identifier","type":"bytes32"}],"name":"Cancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenId","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimedTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"identifier","type":"bytes32"},{"indexed":false,"internalType":"uint64","name":"index","type":"uint64"}],"name":"Executed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"nonce","type":"uint64"},{"indexed":true,"internalType":"bytes32","name":"identifier","type":"bytes32"},{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint64","name":"delay","type":"uint64"},{"indexed":false,"internalType":"enum Data.Schedule","name":"iSchedule","type":"uint8"},{"indexed":false,"internalType":"enum Data.Minutes","name":"iMinutes","type":"uint8"},{"indexed":false,"internalType":"enum Data.Hours","name":"iHours","type":"uint8"},{"indexed":false,"internalType":"enum Data.Middleware","name":"middleware","type":"uint8"}],"name":"Published","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EXECUTOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAWER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"identifier","type":"bytes32"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenId","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"indexCount","type":"uint256"}],"name":"estimateFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTimelyToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"identifier","type":"bytes32"},{"internalType":"uint64","name":"index","type":"uint64"}],"name":"isExecuted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"components":[{"internalType":"bytes32","name":"identifier","type":"bytes32"},{"internalType":"uint64","name":"index","type":"uint64"}],"internalType":"struct Data.TimePayloadIn","name":"timePayload","type":"tuple"}],"name":"postTimelyCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint64","name":"delay","type":"uint64"},{"internalType":"enum Data.Schedule","name":"iSchedule","type":"uint8"},{"internalType":"enum Data.Minutes","name":"iMinutes","type":"uint8"},{"internalType":"enum Data.Hours","name":"iHours","type":"uint8"},{"internalType":"enum Data.Middleware","name":"middleware","type":"uint8"}],"internalType":"struct Data.TimePayload","name":"timePayload","type":"tuple"}],"name":"publish","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"bytes32","name":"identifier","type":"bytes32"}],"name":"readTimelyMiddleware","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608034620000c557601f6200175238819003918201601f19168301916001600160401b03831184841017620000ca578084926040948552833981010312620000c5576200005a60206200005283620000e0565b9201620000e0565b9060ff19600054166000556200007033620000f5565b506200007c3362000198565b50620000883362000236565b50600280546001600160a01b039384166001600160a01b0319918216179091556003805492909316911617905560405161147a9081620002b88239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620000c557565b6001600160a01b031660008181527fc9ee83ecf8e561e5df8e9e3a8d108a689296832fb5d541ca3c450b10eaabf8e160205260408120549091907fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e639060ff16620001935780835260016020526040832082845260205260408320600160ff1982541617905560008051602062001732833981519152339380a4600190565b505090565b6001600160a01b031660008181527f55183b8ac4a82f4a7e1e58b6f4191216f6e4ec65d5c848685f0148e75403eba060205260408120549091907f10dac8c06a04bec0b551627dad28bc00d6516b0caacd1c7b345fcdb5211334e49060ff16620001935780835260016020526040832082845260205260408320600160ff1982541617905560008051602062001732833981519152339380a4600190565b6001600160a01b031660008181527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49602052604081205490919060ff16620002b35781805260016020526040822081835260205260408220600160ff198254161790553391600080516020620017328339815191528180a4600190565b509056fe608060409080825260048036101561001657600080fd5b600091823560e01c90816301ffc9a714610f215750806302fd39dc14610ccc57806307bd026514610c9157806309749b6214610c46578063127e8e4d14610bb35780631790b6f0146108a3578063248a9ca3146108785780632e1a7d4d146107af5780632f2ff15d1461078657806336568abe146107275780635c975abb1461070557806370a08231146106ce5780638456cb591461063d57806385f438c1146106025780638bc048ac146105da57806391d1485414610592578063a217fddf14610577578063a5827b6a146104ca578063b6b55f25146103c5578063c4d252f514610322578063d547741f146102e4578063f7b188a5146102245763fe417fa51461012157600080fd5b34610220578260031936011261022057610139610fc0565b602435917f10dac8c06a04bec0b551627dad28bc00d6516b0caacd1c7b345fcdb5211334e4845260016020528484203360005260205260ff856000205416156101dd57506101d77fe9aa550fd75d0d28e07fa9dd67d3ae705678776f6c4a75abd09534f93e7d790793946101b784336001600160a01b03861661111f565b5192839283602090939291936001600160a01b0360408201951681520152565b0390a180f35b606490602086519162461bcd60e51b8352820152601a60248201527f43616c6c6572206973206e6f74206120776974686472617765720000000000006044820152fd5b5080fd5b508290346102e057826003193601126102e0577fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63835260016020528183203360005260205261027960ff836000205416611063565b82549060ff8216156102b9575060ff19168255513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a180f35b82517f8dfc202b000000000000000000000000000000000000000000000000000000008152fd5b8280fd5b5082346102e057806003193601126102e05761031e91356103196001610308610fdb565b93838752816020528620015461117b565b611259565b5080f35b5082346102e05760203660031901126102e0578135916103406110e9565b8284526006602052336001600160a01b0383862054160361039e5750816020917fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb7093855260078352808520600160ff1982541617905551908152a180f35b90517f5a519520000000000000000000000000000000000000000000000000000000008152fd5b509134610220576020366003190112610220578235906103e36110e9565b6001600160a01b03600254168151907f23b872dd0000000000000000000000000000000000000000000000000000000060208301523360248301523060448301528360648301526064825260a0820182811067ffffffffffffffff8211176104b557835261045191906112d1565b33835260056020528083208054908382018092116104a257555133815260208101919091527f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c49080604081016101d7565b602485601188634e487b7160e01b835252fd5b604187634e487b7160e01b6000525260246000fd5b5082346102e057806003193601126102e05760206001600160a01b039260246104f1610fc0565b91845195869384927f3076315a000000000000000000000000000000000000000000000000000000008452843590840152165afa91821561056d576020939261053e575b50519015158152f35b61055f919250833d8511610566575b6105578183610ff1565b8101906110d1565b9083610535565b503d61054d565b81513d85823e3d90fd5b82843461022057816003193601126102205751908152602090f35b508290346102e057816003193601126102e0576001600160a01b03826020946105b9610fdb565b9335815260018652209116600052825260ff81600020541690519015158152f35b8284346102205781600319360112610220576020906001600160a01b03600254169051908152f35b828434610220578160031936011261022057602090517f10dac8c06a04bec0b551627dad28bc00d6516b0caacd1c7b345fcdb5211334e48152f35b82843461022057816003193601126102205760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258917fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e638452600182528084203360005282526106b360ff826000205416611063565b6106bb6110e9565b835460ff1916600117845551338152a180f35b82843461022057602036600319011261022057806020926001600160a01b036106f5610fc0565b1681526005845220549051908152f35b82843461022057816003193601126102205760ff602092541690519015158152f35b509134610220578060031936011261022057610741610fdb565b90336001600160a01b0383160361075e575061031e919235611259565b8390517f6697b232000000000000000000000000000000000000000000000000000000008152fd5b5082346102e057806003193601126102e05761031e91356107aa6001610308610fdb565b6111d8565b5082346102e05760203660031901126102e0578135916107cd6110e9565b33845260056020528184205483811061084b57847f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d56101d7868661081d82336001600160a01b036002541661111f565b33855260056020528085206108338382546110ae565b90555133815260208101919091529081906040820190565b60249251917f77b8dde3000000000000000000000000000000000000000000000000000000008352820152fd5b508290346102e05760203660031901126102e057816020936001923581528285522001549051908152f35b5082346102e05760603660031901126102e0576108be610fc0565b81602319360112610baf57815167ffffffffffffffff9080840182811182821017610b9c5784526024358152604435928284168403610b98576020908183019485527fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63885260018252858820338952825261093e60ff878a205416611063565b825188526007825260ff8689205416610b705782518852868252858820848651168952825260ff8689205416610b24576001600160a01b03809116908189526005835286892054906003541683600160248b8b51948593849263127e8e4d60e01b84528301525afa908115610b1a578a91610ae9575b50809110610ac157908891818352600584526109d48884209182546110ae565b9055803b1561022057819060448851809481937f308d6c9600000000000000000000000000000000000000000000000000000000835288518d840152898b511660248401525af18015610ab757610a93575b5081518752948552838620835183166000908152955293839020805460ff1916600117905592519051915190815267ffffffffffffffff919092161660208201527f35d18cd21af9042cd9cbf41cdb1ae42a964160fdb9890df6d10fd6c3cff433459080604081016101d7565b838111610aa45785526101d7610a26565b602488604189634e487b7160e01b835252fd5b86513d8a823e3d90fd5b8787517f025dbdd4000000000000000000000000000000000000000000000000000000008152fd5b90508381813d8311610b13575b610b008183610ff1565b81010312610b0f57518a6109b4565b8980fd5b503d610af6565b88513d8c823e3d90fd5b505051915192517fee9bb42200000000000000000000000000000000000000000000000000000000815293840191825290911667ffffffffffffffff1660208201528190036040019150fd5b8686517f0a9933e4000000000000000000000000000000000000000000000000000000008152fd5b8680fd5b602487604188634e487b7160e01b835252fd5b8380fd5b50913461022057602092836003193601126102e057836001600160a01b036003541691602484518094819363127e8e4d60e01b83528035908301525afa928315610c3b578093610c06575b505051908152f35b909192508382813d8311610c34575b610c1f8183610ff1565b81010312610c31575051903880610bfe565b80fd5b503d610c15565b8251903d90823e3d90fd5b508290346102e057816003193601126102e0576024359067ffffffffffffffff8216809203610baf5760209360ff928285933583528652828220908252855220541690519015158152f35b828434610220578160031936011261022057602090517fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e638152f35b5082346102e05760a03660031901126102e057610ce76110e9565b67ffffffffffffffff92836008541693825160a0810181811083821117610f0e578452843592828416938481036102205782526024359160028310156102205782602082015260443594600f8610156102e05786820198868a52606435926019841015610f0a57606081019a848c52608435916002831015610b9857608083910152610d7287611029565b519a600f8c1015610ef757519a60198c1015610ef75789516020810193845233818c01527feeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000060608201529a9b610de991610ddf9060a08e610dd28c611029565b8b60808201520190611049565b60c08c0190611056565b60c08a5260e08a01918a831088841117610ee457828a528a519020998a9485875260066020528a87203381547fffffffffffffffffffffffff00000000000000000000000000000000000000001617905560085499898b16988996338752610100850152610e5681611029565b6101208401526101408301610e6a91611049565b6101608201610e7891611056565b610e8182611029565b610180015260c07f52162eb9e96e101651e01ef0d83e67cb88409e86ad473743bacd1ff4f2ed680c91a3828214610ed1575060209550600101169067ffffffffffffffff19161760085551908152f35b80601188634e487b7160e01b6024945252fd5b60248660418e634e487b7160e01b835252fd5b60248660218d634e487b7160e01b835252fd5b8480fd5b602484604188634e487b7160e01b835252fd5b919050346102e05760203660031901126102e057357fffffffff0000000000000000000000000000000000000000000000000000000081168091036102e057602092507f7965db0b000000000000000000000000000000000000000000000000000000008114908115610f96575b5015158152f35b7f01ffc9a70000000000000000000000000000000000000000000000000000000091501483610f8f565b600435906001600160a01b0382168203610fd657565b600080fd5b602435906001600160a01b0382168203610fd657565b90601f8019910116810190811067ffffffffffffffff82111761101357604052565b634e487b7160e01b600052604160045260246000fd5b6002111561103357565b634e487b7160e01b600052602160045260246000fd5b90600f8210156110335752565b9060198210156110335752565b1561106a57565b606460405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f742061206578656375746f7200000000000000006044820152fd5b919082039182116110bb57565b634e487b7160e01b600052601160045260246000fd5b90816020910312610fd657518015158103610fd65790565b60ff600054166110f557565b60046040517fd93c0665000000000000000000000000000000000000000000000000000000008152fd5b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000060208201526001600160a01b0392909216602483015260448083019390935291815261117991611174606483610ff1565b6112d1565b565b80600052600160205260406000203360005260205260ff60406000205416156111a15750565b604490604051907fe2517d3f0000000000000000000000000000000000000000000000000000000082523360048301526024820152fd5b9060009180835260016020526001600160a01b036040842092169182845260205260ff604084205416156000146112545780835260016020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b505090565b9060009180835260016020526001600160a01b036040842092169182845260205260ff604084205416600014611254578083526001602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b6001600160a01b031690600080826020829451910182865af13d156113a4573d67ffffffffffffffff81116113905760405161132e93929161131d601f8201601f191660200183610ff1565b8152809260203d92013e5b836113b1565b8051908115159182611375575b50506113445750565b602490604051907f5274afe70000000000000000000000000000000000000000000000000000000082526004820152fd5b61138892506020809183010191016110d1565b15388061133b565b602483634e487b7160e01b81526041600452fd5b61132e9150606090611328565b906113f057508051156113c657805190602001fd5b60046040517f1425ea42000000000000000000000000000000000000000000000000000000008152fd5b8151158061143b575b611401575090565b6024906001600160a01b03604051917f9996b315000000000000000000000000000000000000000000000000000000008352166004820152fd5b50803b156113f956fea2646970667358221220a180a75939ba88fc4947dd894daebf7ecad435aced77e5d3b4253a0313c6d53364736f6c634300081800332f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d000000000000000000000000d116182b2b51ebeca87aa3ae84775f286a8b35da000000000000000000000000634610ccd2cad5d9b2ed2f81ac46deea04450db8

Deployed Bytecode

0x608060409080825260048036101561001657600080fd5b600091823560e01c90816301ffc9a714610f215750806302fd39dc14610ccc57806307bd026514610c9157806309749b6214610c46578063127e8e4d14610bb35780631790b6f0146108a3578063248a9ca3146108785780632e1a7d4d146107af5780632f2ff15d1461078657806336568abe146107275780635c975abb1461070557806370a08231146106ce5780638456cb591461063d57806385f438c1146106025780638bc048ac146105da57806391d1485414610592578063a217fddf14610577578063a5827b6a146104ca578063b6b55f25146103c5578063c4d252f514610322578063d547741f146102e4578063f7b188a5146102245763fe417fa51461012157600080fd5b34610220578260031936011261022057610139610fc0565b602435917f10dac8c06a04bec0b551627dad28bc00d6516b0caacd1c7b345fcdb5211334e4845260016020528484203360005260205260ff856000205416156101dd57506101d77fe9aa550fd75d0d28e07fa9dd67d3ae705678776f6c4a75abd09534f93e7d790793946101b784336001600160a01b03861661111f565b5192839283602090939291936001600160a01b0360408201951681520152565b0390a180f35b606490602086519162461bcd60e51b8352820152601a60248201527f43616c6c6572206973206e6f74206120776974686472617765720000000000006044820152fd5b5080fd5b508290346102e057826003193601126102e0577fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63835260016020528183203360005260205261027960ff836000205416611063565b82549060ff8216156102b9575060ff19168255513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a180f35b82517f8dfc202b000000000000000000000000000000000000000000000000000000008152fd5b8280fd5b5082346102e057806003193601126102e05761031e91356103196001610308610fdb565b93838752816020528620015461117b565b611259565b5080f35b5082346102e05760203660031901126102e0578135916103406110e9565b8284526006602052336001600160a01b0383862054160361039e5750816020917fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb7093855260078352808520600160ff1982541617905551908152a180f35b90517f5a519520000000000000000000000000000000000000000000000000000000008152fd5b509134610220576020366003190112610220578235906103e36110e9565b6001600160a01b03600254168151907f23b872dd0000000000000000000000000000000000000000000000000000000060208301523360248301523060448301528360648301526064825260a0820182811067ffffffffffffffff8211176104b557835261045191906112d1565b33835260056020528083208054908382018092116104a257555133815260208101919091527f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c49080604081016101d7565b602485601188634e487b7160e01b835252fd5b604187634e487b7160e01b6000525260246000fd5b5082346102e057806003193601126102e05760206001600160a01b039260246104f1610fc0565b91845195869384927f3076315a000000000000000000000000000000000000000000000000000000008452843590840152165afa91821561056d576020939261053e575b50519015158152f35b61055f919250833d8511610566575b6105578183610ff1565b8101906110d1565b9083610535565b503d61054d565b81513d85823e3d90fd5b82843461022057816003193601126102205751908152602090f35b508290346102e057816003193601126102e0576001600160a01b03826020946105b9610fdb565b9335815260018652209116600052825260ff81600020541690519015158152f35b8284346102205781600319360112610220576020906001600160a01b03600254169051908152f35b828434610220578160031936011261022057602090517f10dac8c06a04bec0b551627dad28bc00d6516b0caacd1c7b345fcdb5211334e48152f35b82843461022057816003193601126102205760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258917fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e638452600182528084203360005282526106b360ff826000205416611063565b6106bb6110e9565b835460ff1916600117845551338152a180f35b82843461022057602036600319011261022057806020926001600160a01b036106f5610fc0565b1681526005845220549051908152f35b82843461022057816003193601126102205760ff602092541690519015158152f35b509134610220578060031936011261022057610741610fdb565b90336001600160a01b0383160361075e575061031e919235611259565b8390517f6697b232000000000000000000000000000000000000000000000000000000008152fd5b5082346102e057806003193601126102e05761031e91356107aa6001610308610fdb565b6111d8565b5082346102e05760203660031901126102e0578135916107cd6110e9565b33845260056020528184205483811061084b57847f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d56101d7868661081d82336001600160a01b036002541661111f565b33855260056020528085206108338382546110ae565b90555133815260208101919091529081906040820190565b60249251917f77b8dde3000000000000000000000000000000000000000000000000000000008352820152fd5b508290346102e05760203660031901126102e057816020936001923581528285522001549051908152f35b5082346102e05760603660031901126102e0576108be610fc0565b81602319360112610baf57815167ffffffffffffffff9080840182811182821017610b9c5784526024358152604435928284168403610b98576020908183019485527fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63885260018252858820338952825261093e60ff878a205416611063565b825188526007825260ff8689205416610b705782518852868252858820848651168952825260ff8689205416610b24576001600160a01b03809116908189526005835286892054906003541683600160248b8b51948593849263127e8e4d60e01b84528301525afa908115610b1a578a91610ae9575b50809110610ac157908891818352600584526109d48884209182546110ae565b9055803b1561022057819060448851809481937f308d6c9600000000000000000000000000000000000000000000000000000000835288518d840152898b511660248401525af18015610ab757610a93575b5081518752948552838620835183166000908152955293839020805460ff1916600117905592519051915190815267ffffffffffffffff919092161660208201527f35d18cd21af9042cd9cbf41cdb1ae42a964160fdb9890df6d10fd6c3cff433459080604081016101d7565b838111610aa45785526101d7610a26565b602488604189634e487b7160e01b835252fd5b86513d8a823e3d90fd5b8787517f025dbdd4000000000000000000000000000000000000000000000000000000008152fd5b90508381813d8311610b13575b610b008183610ff1565b81010312610b0f57518a6109b4565b8980fd5b503d610af6565b88513d8c823e3d90fd5b505051915192517fee9bb42200000000000000000000000000000000000000000000000000000000815293840191825290911667ffffffffffffffff1660208201528190036040019150fd5b8686517f0a9933e4000000000000000000000000000000000000000000000000000000008152fd5b8680fd5b602487604188634e487b7160e01b835252fd5b8380fd5b50913461022057602092836003193601126102e057836001600160a01b036003541691602484518094819363127e8e4d60e01b83528035908301525afa928315610c3b578093610c06575b505051908152f35b909192508382813d8311610c34575b610c1f8183610ff1565b81010312610c31575051903880610bfe565b80fd5b503d610c15565b8251903d90823e3d90fd5b508290346102e057816003193601126102e0576024359067ffffffffffffffff8216809203610baf5760209360ff928285933583528652828220908252855220541690519015158152f35b828434610220578160031936011261022057602090517fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e638152f35b5082346102e05760a03660031901126102e057610ce76110e9565b67ffffffffffffffff92836008541693825160a0810181811083821117610f0e578452843592828416938481036102205782526024359160028310156102205782602082015260443594600f8610156102e05786820198868a52606435926019841015610f0a57606081019a848c52608435916002831015610b9857608083910152610d7287611029565b519a600f8c1015610ef757519a60198c1015610ef75789516020810193845233818c01527feeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000060608201529a9b610de991610ddf9060a08e610dd28c611029565b8b60808201520190611049565b60c08c0190611056565b60c08a5260e08a01918a831088841117610ee457828a528a519020998a9485875260066020528a87203381547fffffffffffffffffffffffff00000000000000000000000000000000000000001617905560085499898b16988996338752610100850152610e5681611029565b6101208401526101408301610e6a91611049565b6101608201610e7891611056565b610e8182611029565b610180015260c07f52162eb9e96e101651e01ef0d83e67cb88409e86ad473743bacd1ff4f2ed680c91a3828214610ed1575060209550600101169067ffffffffffffffff19161760085551908152f35b80601188634e487b7160e01b6024945252fd5b60248660418e634e487b7160e01b835252fd5b60248660218d634e487b7160e01b835252fd5b8480fd5b602484604188634e487b7160e01b835252fd5b919050346102e05760203660031901126102e057357fffffffff0000000000000000000000000000000000000000000000000000000081168091036102e057602092507f7965db0b000000000000000000000000000000000000000000000000000000008114908115610f96575b5015158152f35b7f01ffc9a70000000000000000000000000000000000000000000000000000000091501483610f8f565b600435906001600160a01b0382168203610fd657565b600080fd5b602435906001600160a01b0382168203610fd657565b90601f8019910116810190811067ffffffffffffffff82111761101357604052565b634e487b7160e01b600052604160045260246000fd5b6002111561103357565b634e487b7160e01b600052602160045260246000fd5b90600f8210156110335752565b9060198210156110335752565b1561106a57565b606460405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f742061206578656375746f7200000000000000006044820152fd5b919082039182116110bb57565b634e487b7160e01b600052601160045260246000fd5b90816020910312610fd657518015158103610fd65790565b60ff600054166110f557565b60046040517fd93c0665000000000000000000000000000000000000000000000000000000008152fd5b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000060208201526001600160a01b0392909216602483015260448083019390935291815261117991611174606483610ff1565b6112d1565b565b80600052600160205260406000203360005260205260ff60406000205416156111a15750565b604490604051907fe2517d3f0000000000000000000000000000000000000000000000000000000082523360048301526024820152fd5b9060009180835260016020526001600160a01b036040842092169182845260205260ff604084205416156000146112545780835260016020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b505090565b9060009180835260016020526001600160a01b036040842092169182845260205260ff604084205416600014611254578083526001602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b6001600160a01b031690600080826020829451910182865af13d156113a4573d67ffffffffffffffff81116113905760405161132e93929161131d601f8201601f191660200183610ff1565b8152809260203d92013e5b836113b1565b8051908115159182611375575b50506113445750565b602490604051907f5274afe70000000000000000000000000000000000000000000000000000000082526004820152fd5b61138892506020809183010191016110d1565b15388061133b565b602483634e487b7160e01b81526041600452fd5b61132e9150606090611328565b906113f057508051156113c657805190602001fd5b60046040517f1425ea42000000000000000000000000000000000000000000000000000000008152fd5b8151158061143b575b611401575090565b6024906001600160a01b03604051917f9996b315000000000000000000000000000000000000000000000000000000008352166004820152fd5b50803b156113f956fea2646970667358221220a180a75939ba88fc4947dd894daebf7ecad435aced77e5d3b4253a0313c6d53364736f6c63430008180033

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

000000000000000000000000d116182b2b51ebeca87aa3ae84775f286a8b35da000000000000000000000000634610ccd2cad5d9b2ed2f81ac46deea04450db8

-----Decoded View---------------
Arg [0] : feeManager (address): 0xd116182b2B51EbECa87aA3aE84775F286a8B35Da
Arg [1] : timelyToken (address): 0x634610CcD2cAd5d9B2ed2f81AC46dEEa04450Db8

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000d116182b2b51ebeca87aa3ae84775f286a8b35da
Arg [1] : 000000000000000000000000634610ccd2cad5d9b2ed2f81ac46deea04450db8


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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.