mirror of
https://github.com/luxfhe/example-redact.git
synced 2026-10-30 18:13:20 +00:00
- @luxfhe/wasm: ^0.2.0 - @luxfhe/kms: ^0.2.0 - @luxfhe/relayer-sdk: ^0.6.0 - @luxfhe/mock-contracts: ^0.6.0 - Remove deprecated Zama dependencies
23 lines
740 B
Solidity
23 lines
740 B
Solidity
// SPDX-License-Identifier: MIT
|
|
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/ERC20.sol)
|
|
|
|
pragma solidity ^0.8.25;
|
|
|
|
import { ConfidentialERC20 } from "../ConfidentialERC20.sol";
|
|
import { ConfidentialETH } from "../ConfidentialETH.sol";
|
|
import { IWETH } from "../interfaces/IWETH.sol";
|
|
import { Euint128 } from "@luxfi/contracts/fhe/FHE.sol";
|
|
import { IFHERC20 } from "../interfaces/IFHERC20.sol";
|
|
|
|
contract MockFherc20Vault {
|
|
IFHERC20 public fherc20;
|
|
|
|
constructor(address fherc20_) {
|
|
fherc20 = IFHERC20(fherc20_);
|
|
}
|
|
|
|
function deposit(Euint128 memory inValue, IFHERC20.FHERC20_EIP712_Permit calldata permit) public {
|
|
fherc20.encTransferFrom(msg.sender, address(this), inValue, permit);
|
|
}
|
|
}
|