Skip to content

Commit 23f97ce

Browse files
Add event description to swap precompile interface
1 parent eb48ae3 commit 23f97ce

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

crates/precompile-evm-swap/EvmSwap.sol

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,14 @@ interface EvmSwap {
1919
* @return success Whether or not the swap was successful.
2020
*/
2121
function swap(bytes32 nativeAddress) external payable returns (bool success);
22+
23+
/**
24+
* Event emitted when a transfer has been performed.
25+
* Selector: 69d31d1d87c1206beee49fbab11570a7f001121cf21fbb234d5b0a2473fa5c58
26+
*
27+
* @param from The EVM account id the tokens withdrawed from.
28+
* @param to The Native account id the tokens deposited to.
29+
* @param value The amount of tokens swapped.
30+
*/
31+
event Swap(address indexed from, bytes32 indexed to, uint256 value);
2232
}

0 commit comments

Comments
 (0)