Smart contract interaction layer

Opus interacts with contracts via deterministic execution routes.

Core contracts:

  • AutomationRegistry.sol

  • StrategyExecutor.sol

  • SessionManager.sol

Interaction:

function executeStrategy(uint256 taskId) external {
    require(isAuthorizedSession(msg.sender), "Unauthorized");
    bytes memory callData = tasks[taskId].encodedStrategy;
    (bool success,) = target.call(callData);
    emit TaskExecuted(taskId, success);
}

Last updated