Modifiers
Herein modifiers are described, including those that are not wrapped into their own distinct functions, instead being implemented as internal conditionals at execution.
ConfigFlags check
ConfigFlags code
library ConfigFlags {
function check(uint256 cfg, uint256 flag) internal pure returns (bool) {
return (cfg & flag) != 0;
}
}Wrapped modifiers
_assertOnlyOwner
function _assertOnlyOwner() internal view {
if (msg.sender != owner()) {
revert OnlyOwner();
}
}Usage scope (functions in main contract)
_assertOnlyJobOwner
Usage scope (functions in main contract)
_assertOnlyKeeperAdmin
Usage scope (functions in main contract)
_assertOnlyKeeperAdminOrWorker
Usage scope (functions in main contract)
_assertKeeperIdExists
Usage scope (functions in main contract)
_assertWorkerNotAssigned
Usage scope (functions in main contract)
_assertNonZeroAmount
Usage scope (functions in main contract)
_assertNonZeroValue
Usage scope (functions in main contract)
_assertJobCalldataSource
Usage scope (functions in main contract)
_assertJobParams
Usage scope (functions in main contract)
_assertInterval
Usage scope (functions in main contract)
Ad-hoc modifiers
_msg_sender_is_pending_owner_assertion
Code of the assertion
Usage scope (functions in main contract)
_fee_adjusted_credits_after_deposit_do_not_overflow_uint88_assertion
Code of the assertion
Usage scope (functions in main contract)
_initial_credits_deposit_does_not_overflow_uint88_assertion
Code of the assertion
Usage scope (functions in main contract)
_job_id_no_uint24_overflow_assertion
Code of the assertion
Usage scope (functions in main contract)
_credits_deposit_overflow_assertion
Code of the assertion
Usage scope (functions in main contract)
_job_address_exists_assertion
Code of the assertion
Usage scope (functions in main contract)
_calldata_source_within_0_2_assertion
Code of the assertion
Usage scope (functions in main contract)
_job_address_not_cvp_or_agent_assertion
Code of the assertion
Usage scope (functions in main contract)
_sender_is_authorised_as_keeper_assertion
Code of the assertion
Usage scope (functions in main contract)
_executing_keeper_stake_sufficient_assertion
Code of the assertion
Usage scope (functions in main contract)
_job_is_active_assertion
Code of the assertion
Usage scope (functions in main contract)
_keeper_satisfies_job_stake_demand_assertion
Code of the assertion
Usage scope (functions in main contract)
_execution_interval_reached_assertion
Code of the assertion
Usage scope (functions in main contract)
_msg_sender_is_EoA_assertion
Code of the assertion
Usage scope (functions in main contract)
_invalid_source_type_catcher
Code of the assertion
Usage scope (functions in main contract)
_job_has_enough_credits_assertion
Code of the assertion
Usage scope (functions in main contract)
_block_base_fee_within_limits_or_accept_exceeding_assertion
Code of the assertion
Usage scope (functions in main contract)
_job_revert_handler
Code of the assertion
Usage scope (functions in main contract)
_job_owner_has_enough_credits_assertion
Code of the assertion
Usage scope (functions in main contract)
_job_owner_has_enough_credits_assertion
Code of the assertion
Usage scope (functions in main contract)
_resolver_address_extant_assertion
Code of the assertion
Usage scope (functions in main contract)
_target_job_has_owner_assertion
Code of the assertion
Usage scope (functions in main contract)
_sufficient_credits_to_withdraw
Code of the assertion
Usage scope (functions in main contract)
_minKeeperCvp_assertion
Code of the assertion
Usage scope (functions in main contract)
_amount_not_exceeds_available_assertion
Code of the assertion
Usage scope (functions in main contract)
_stake_amount_does_not_overflow_assertion
Code of the assertion
Usage scope (functions in main contract)
_amount_sufficient_to_compensate_slashed_stake_assertion
Code of the assertion
Usage scope (functions in main contract)
_amount_not_exceeds_stake_assertion
Code of the assertion
Usage scope (functions in main contract)
_withdrawal_time_limit_elapsed_assertion
Code of the assertion
Usage scope (functions in main contract)
_pending_withdrawal_extant_assertion
Code of the assertion
Usage scope (functions in main contract)
_timeout_not_in_excess_of_constant_global_cap_assert
Code of the assertion
Usage scope (functions in main contract)
__feeppm_not_in_excess_of_constant_global_cap_assert
Code of the assertion
Usage scope (functions in main contract)
_calldata_passed_to_resolver_job_assert
Code of the assertion
Usage scope (functions in main contract)
_selector_check_assert
Code of the assertion
Usage scope (functions in main contract)
RanDAO realisation-specific modifiers
_enough_stake_to_slash_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_interval_job_slashing_timestamp_reached_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_resolver_job_slashing_timestamp_reached_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_resolver_job_cannot_release_before_slashing_init_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_keeper_activation_timeout_elapsed_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_lockup_period_expired_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_revert_with_false
Code of the assertion
Usage scope (functions in RanDAO contract)
_revert_with_true
Code of the assertion
Usage scope (functions in RanDAO contract)
_slashing_period_elapsed_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_resolver_terminated_successfully_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_resolver_returned_true_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_no_initiating_for_interval_jobs
Code of the assertion
Usage scope (functions in RanDAO contract)
_unexpected_selector_handler
Code of the assertion
Usage scope (functions in RanDAO contract)
_unexpected_nonrevert_safeguard
Code of the assertion
Usage scope (functions in RanDAO contract)
_keeper_not_inactive_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_keeper_not_active_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_keeper_no_slasher_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_handle_revert_no_slashing
Code of the assertion
Usage scope (functions in RanDAO contract)
_slashing_initiated_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_slashing_initiated_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_resolver_job_slashing_timestamp_reached_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_is_reserved_slasher_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_is_current_slasher_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_keeper_releasable_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_keeper_active_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_fixed_reward_coeff_finite
Code of the assertion
Usage scope (functions in RanDAO contract)
_slashing_bps_not_too_great_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_slashing_fee_not_too_great_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_admissibility_period_long_enough_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_grace_period_long_enough_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_slashing_period_long_enough_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
_job_has_no_keeper_assigned_assertion
Code of the assertion
Usage scope (functions in RanDAO contract)
Last updated
Was this helpful?