mirror of
https://github.com/zama-ai/fhevm-solidity.git
synced 2026-04-17 03:00:47 -04:00
29 lines
797 B
Solidity
29 lines
797 B
Solidity
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
|
|
pragma solidity ^0.8.24;
|
|
|
|
import "./ACLAddress.sol";
|
|
import "./FHEPaymentAddress.sol";
|
|
import "./KMSVerifierAddress.sol";
|
|
import "./TFHEExecutorAddress.sol";
|
|
|
|
library FHEVMConfig {
|
|
struct FHEVMConfigStruct {
|
|
address ACLAddress;
|
|
address TFHEExecutorAddress;
|
|
address FHEPaymentAddress;
|
|
address KMSVerifierAddress;
|
|
}
|
|
|
|
/// @dev Function to return an immutable struct
|
|
function defaultConfig() internal pure returns (FHEVMConfigStruct memory) {
|
|
return
|
|
FHEVMConfigStruct({
|
|
ACLAddress: aclAdd,
|
|
TFHEExecutorAddress: tfheExecutorAdd,
|
|
FHEPaymentAddress: fhePaymentAdd,
|
|
KMSVerifierAddress: kmsVerifierAdd
|
|
});
|
|
}
|
|
}
|