-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ControllerToken): adding comment ; creating interfaces directory
- Loading branch information
1 parent
479b3cf
commit a1d9af0
Showing
3 changed files
with
29 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: APACHE-2.0 | ||
pragma solidity 0.8.20; | ||
|
||
interface IERC677Recipient { | ||
/** | ||
* @dev Receives notification from [ERC677] transferAndCall. | ||
* @param from Sender address. | ||
* @param amount Number of tokens. | ||
* @param data Additional data. | ||
*/ | ||
function onTokenTransfer( | ||
address from, | ||
uint256 amount, | ||
bytes calldata data | ||
) external returns (bool); | ||
} |