From 8950cfa8a4763076b8a18d7bfa5f4ce9d43c7c8b Mon Sep 17 00:00:00 2001 From: thal0x Date: Fri, 8 Nov 2024 09:53:01 -0600 Subject: [PATCH] add submitOrder method to contract --- AxelarHandler/src/GoFastHandler.sol | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/AxelarHandler/src/GoFastHandler.sol b/AxelarHandler/src/GoFastHandler.sol index 27cafba..75054f0 100644 --- a/AxelarHandler/src/GoFastHandler.sol +++ b/AxelarHandler/src/GoFastHandler.sol @@ -72,6 +72,20 @@ contract GoFastHandler is Ownable { return orderId; } + function submitOrder( + bytes32 sender, + bytes32 recipient, + uint256 amountIn, + uint256 amountOut, + uint32 destinationDomain, + uint64 timeoutTimestamp, + bytes calldata data + ) external returns (bytes32) { + return fastTransferGateway.submitOrder( + sender, recipient, amountIn, amountOut, destinationDomain, timeoutTimestamp, data + ); + } + function _swap(address tokenIn, uint256 amountIn, bytes memory swapCalldata) internal returns (uint256 amountOut) { address tokenOut = fastTransferGateway.token();