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 data) external returns (bool);

}
/**
 * @title IERC677Recipient
 * @dev Contracts implementing this interface can participate in [ERC677].
 */
function onTokenTransfer(address from, uint256 amount, bytes data) external returns (bool);

/**
 * @dev Receives notification from [ERC677] transferAndCall.
 * @param from Sender address.
 * @param amount Number of tokens.
 * @param data Additional data.
 */