feat: Perform staticcall to CallbackVerifier

This commit is contained in:
TAMARA LIPOWSKI
2025-01-24 16:55:21 -05:00
parent 8a5d38d5ee
commit ad0748e9c3
3 changed files with 246 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;
interface ICallbackVerifier {
error UnauthorizedCaller(string exchange, address sender);
/**
* @dev This method should revert if the sender is not a verified sender of the exchange.
*/
function verifyCallback(address sender, bytes calldata data)
external
returns (
uint256 amountOwed,
uint256 amountReceived,
address tokenOwed,
uint16 dataOffset
);
}