Files
fhevm-solidity/lib/FHEVMConfig.sol
Joseph-André Turk fa5cb0edaf feat: set protocol addresses in dApp storage
chore: removed useless import
2024-09-10 15:01:43 +02:00

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
});
}
}