mirror of
https://github.com/zama-ai/fhevm-solidity.git
synced 2026-05-09 03:00:27 -04:00
* feat: use latest core contracts, updated lib API, renamed to fhevm and fhe chore: add dummy addresses for CI test: add tests for makePubliclyDecryptable method * chore: update package-lock.json for linux * chore: update package-lock.json * fix: solidity comments (#746) * chore: update oracle version * chore: update fhevm core-contracts version * feat: update fhevm sdk and mocked userDecrypt * chore: fix coverage
31 lines
1023 B
Solidity
31 lines
1023 B
Solidity
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
pragma solidity ^0.8.24;
|
|
|
|
import "../fhevmTemp/addresses/ACLAddress.sol";
|
|
import "../fhevmTemp/addresses/InputVerifierAddress.sol";
|
|
import "../fhevmTemp/addresses/KMSVerifierAddress.sol";
|
|
import "../fhevmTemp/addresses/FHEVMExecutorAddress.sol";
|
|
|
|
import {FHEVMConfigStruct} from "../lib/Impl.sol";
|
|
|
|
/**
|
|
* @title FHEVMConfig
|
|
* @notice This library returns all addresses for the ACL, FHEVMExecutor, InputVerifier,
|
|
* and KMSVerifier contracts.
|
|
*/
|
|
library FHEVMConfig {
|
|
/**
|
|
* @notice This function returns a struct containing all contract addresses.
|
|
* @dev It returns an immutable struct.
|
|
*/
|
|
function defaultConfig() internal pure returns (FHEVMConfigStruct memory) {
|
|
return
|
|
FHEVMConfigStruct({
|
|
ACLAddress: aclAdd,
|
|
FHEVMExecutorAddress: fhevmExecutorAdd,
|
|
KMSVerifierAddress: kmsVerifierAdd,
|
|
InputVerifierAddress: inputVerifierAdd
|
|
});
|
|
}
|
|
}
|