mirror of
https://github.com/luxfhe/example-confidential-contracts.git
synced 2026-10-30 18:13:34 +00:00
20 lines
650 B
Solidity
20 lines
650 B
Solidity
// SPDX-License-Identifier: MIT
|
|
// OpenZeppelin Confidential Contracts (last updated v0.2.0) (interfaces/IConfidentialFungibleTokenReceiver.sol)
|
|
|
|
pragma solidity ^0.8.25;
|
|
|
|
import { ebool, euint64 } from "@luxfi/contracts/fhe/FHE.sol";
|
|
|
|
interface IFHERC20Receiver {
|
|
/**
|
|
* @dev Called upon receiving a confidential token transfer. Returns an encrypted boolean indicating success
|
|
* of the callback. If false is returned, the transfer must be reversed.
|
|
*/
|
|
function onConfidentialTransferReceived(
|
|
address operator,
|
|
address from,
|
|
euint64 amount,
|
|
bytes calldata data
|
|
) external returns (ebool);
|
|
}
|