// SPDX-License-Identifier: MIT pragma solidity ^0.8.26; /// @notice Relevant subset of the verified Intake v2 ABI. See docs/intake.md for evidence. interface IIntake { struct Callback { address target; bytes4 selector; } event Requested( bytes32 indexed requestId, address indexed payer, bytes32 indexed action, bytes body, address callbackTarget, bytes4 callbackSelector, address asset, uint256 amount ); event FailureHookSet(bytes32 indexed requestId, bytes4 selector); event Completed(bytes32 indexed requestId, uint8 status, bytes32 resultHash, string uri, bool delivered); function priceOf(bytes32 action, address asset) external view returns (uint256 amount); function MAX_BODY_BYTES() external view returns (uint256); function callbackGas() external view returns (uint64); function nonce() external view returns (uint256); function failureSelectorOf(bytes32 requestId) external view returns (bytes4 selector); function requests(bytes32 requestId) external view returns (address payer, address callbackTarget, bytes4 callbackSelector, bool completed); function request(bytes32 action, bytes calldata body, Callback calldata callback, address asset, uint256 amount) external payable returns (bytes32 requestId); function requestWithFailure( bytes32 action, bytes calldata body, Callback calldata callback, bytes4 onFailure, address asset, uint256 amount ) external payable returns (bytes32 requestId); /// @dev Called by Intake's writer, never by changeme. Included for decoding and local fixtures. function complete(bytes32 requestId, uint8 status, bytes32 resultHash, string calldata uri, bytes calldata args) external; }