// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * EigenCompute Interface Specification * * This specification generates async compute functions via `npm run gen`. * * USAGE: * 1. Define compute functions as view/pure with return types * 2. Add custom structs if needed * 3. Run `npm run gen` to generate async infrastructure * * REQUIREMENTS: * - Functions: view/pure only (readonly operations) * - Must have return types (compute results) * - Parameters become JSON-RPC inputs * * EXAMPLE TRANSFORMATION: * Spec: function calculate(uint256 a, uint256 b) external view returns (uint256 result); * Generated: function _calculateAsync(uint256 a, uint256 b) internal returns (uint256 taskId); * function _onCalculate(uint256 taskId, uint256 result, string error) internal virtual; */ interface {{interface_name}} { // ========== COMPUTE FUNCTIONS ========== // Define your compute functions here // // function calculate(uint256 a, uint256 b) external view returns (uint256 result); // function verify(bytes calldata data) external pure returns (bool valid); }