ModuleKit
Building
Scheduling Module
executeOrder

executeOrder

A virtual function called when a scheduled execution should occur. Overwrites from SchedulingBase.

Usage

function executeOrder(uint256 jobId) external virtual overrride {
    // Get the execution config
    ExecutionConfig storage executionConfig = executionLog[msg.sender][jobId];
 
    // Decode the execution data
    (address target, uint256 value, bytes memory callData) = abi.decode(executionConfig.executionData, (address, uint256, bytes));
 
    // Execute the call
    _execute({
        target: target,
        value: value,
        callData: callData
    });
}

Parameters

jobId

  • Type: uint256

The ID of the job that is being executed. The job ID is used to retrieve the execution data from the executionLog.

Returns

None