// SPDX-License-Identifier: MIT pragma solidity 0.8.28; /// @notice Implemented by a contract that wants the HyperCore outcome of its orders delivered on-chain. /// Opt in with `KeeperLane.setCallbackGas` and prefund `KeeperLane.deposit`. /// Deliveries can repeat for one nonce (resting, then partial, then filled): make it idempotent. interface ICoreResultReceiver { /// @param nonce the nonce `sendRawAction` returned /// @param status KeeperLane status (2 resting, 3 filled, 4 partial, 5 rejected, 6 cancelled) /// @param oid HyperCore order id (0 if rejected) /// @param filledSz filled size so far, 10^8 * human-readable /// @param avgPx average fill price, 10^8 * human-readable (0 if nothing filled) function onCoreResult(uint64 nonce, uint8 status, uint64 oid, uint64 filledSz, uint64 avgPx) external; }