From b324b1f1a14e968ba70a889273da531e6971586c Mon Sep 17 00:00:00 2001 From: stepit Date: Tue, 7 Nov 2023 12:54:09 +0100 Subject: [PATCH 1/2] Update interface and abi --- precompiles/outposts/osmosis/IOsmosisOutpost.sol | 3 ++- precompiles/outposts/osmosis/abi.json | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/precompiles/outposts/osmosis/IOsmosisOutpost.sol b/precompiles/outposts/osmosis/IOsmosisOutpost.sol index e852c7e83e..a9bc67b121 100644 --- a/precompiles/outposts/osmosis/IOsmosisOutpost.sol +++ b/precompiles/outposts/osmosis/IOsmosisOutpost.sol @@ -59,6 +59,7 @@ interface IOsmosisOutpost { /// tokens. It can be any chain connected to Osmosis e.g. evmos1..., cosmos1..., etc. /// @param slippage_percentage The percentage of slippage accepted for the swap. /// @param window_seconds The amount of seconds considered to compute TWAP price + /// @return nextSequence The sequence number of the transfer packet sent /// @return success The boolean value indicating whether the operation succeeded function swap( address sender, @@ -68,5 +69,5 @@ interface IOsmosisOutpost { uint8 slippage_percentage, uint64 window_seconds, string calldata receiver - ) external returns (bool success); + ) external returns (uint64 nextSequence, bool success); } diff --git a/precompiles/outposts/osmosis/abi.json b/precompiles/outposts/osmosis/abi.json index 90cb5e9f76..065c80ed89 100644 --- a/precompiles/outposts/osmosis/abi.json +++ b/precompiles/outposts/osmosis/abi.json @@ -125,6 +125,11 @@ ], "name": "swap", "outputs": [ + { + "internalType": "uint64", + "name": "nextSequence", + "type": "uint64" + }, { "internalType": "bool", "name": "success", @@ -134,4 +139,4 @@ "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] From 2618878be7ff5eb2a8d317baa371126d755a277c Mon Sep 17 00:00:00 2001 From: stepit Date: Tue, 7 Nov 2023 14:25:46 +0100 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 787b614129..927095df78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -71,6 +71,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ - (distribution) [#1992](https://github.com/evmos/evmos/pull/1992) Remove outdated check utility for distribution approval. - (erc20) [#1994](https://github.com/evmos/evmos/pull/1994) Add tests for ERC20 precompile type utilities. - (erc20) [#2005](https://github.com/evmos/evmos/pull/2005) Add tests for ERC20 precompile approvals. +- (osmosis-outpost) [#2011](https://github.com/evmos/evmos/pull/2011) Update outpost swap ABI to return IBC next sequence. ### Bug Fixes