8000 chore: update osmosis outpost abi by 0xstepit · Pull Request #2011 · evmos/evmos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: update osmosis outpost abi #2011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
- (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.
- (erc20) [#2009](https://github.com/evmos/evmos/pull/2009) Add ERC20 precompile transaction unit tests.
- (osmosis-outpost) [#2011](https://github.com/evmos/evmos/pull/2011) Update outpost swap ABI to return IBC next sequence.

### Bug Fixes

Expand Down
3 changes: 2 additions & 1 deletion precompiles/outposts/osmosis/IOsmosisOutpost.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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);
}
7 changes: 6 additions & 1 deletion precompiles/outposts/osmosis/abi.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@
],
"name": "swap",
"outputs": [
{
"internalType": "uint64",
"name": "nextSequence",
"type": "uint64"
},
{
"internalType": "bool",
"name": "success",
Expand All @@ -134,4 +139,4 @@
"stateMutability": "nonpayable",
"type": "function"
}
]
]
0