// SPDX-License-Identifier: MIT pragma solidity 0.8.26; /// @notice Struct containing revert options /// @param revertAddress Address to receive revert. /// @param callOnRevert Flag if onRevert hook should be called. /// @param abortAddress Address to receive funds if aborted. /// @param revertMessage Arbitrary data sent back in onRevert. /// @param onRevertGasLimit Gas limit for revert tx, unused on GatewayZEVM methods struct RevertOptions { address revertAddress; bool callOnRevert; address abortAddress; bytes revertMessage; uint256 onRevertGasLimit; } /// @notice Struct containing revert context passed to onRevert. /// @param asset Address of asset, empty if it's gas token. /// @param amount Amount specified with the transaction. /// @param revertMessage Arbitrary data sent back in onRevert. struct RevertContext { address asset; uint64 amount; bytes revertMessage; } /// @title Revertable /// @notice Interface for contracts that support revertable calls. interface Revertable { /// @notice Called when a revertable call is made. /// @param revertContext Revert context to pass to onRevert. function onRevert(RevertContext calldata revertContext) external; }