Tooling
ModuleKit
Reference
Building
Scheduling Module
Executeorder

⚠️ Deprecation Notice

ModuleKit was developed by Rhinestone and is no longer actively supported. If you're building modules and need assistance, reach out to Rhinestone at gm@rhinestone.dev


title: "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