Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add default configs for Gateway and FHEVM #608

Merged

Conversation

PacificYield
Copy link
Contributor

@PacificYield PacificYield commented Nov 15, 2024

This PR includes default config files (in Solidity) that can be inherited to automatically set the addresses to use (1) Zama's FHEVM, (2) Zama's Gateway.

In the future, it may be better to create a standardized repo for any service provider to add their config information.

These configs are meant to be imported such as:

import {MockZamaFHEVMConfig} from "fhevm/config/ZamaFHEVMConfig.sol";

and can be inherited such as:

contract MyEncryptedERC20 is MockZamaFHEVMConfig, EncryptedERC20 {
    /// My code
}

@PacificYield PacificYield added the enhancement New feature or request label Nov 15, 2024
@PacificYield PacificYield self-assigned this Nov 15, 2024
@PacificYield PacificYield force-pushed the PacificYield/add-default-config-zama branch from 00e4469 to 726ec80 Compare November 15, 2024 15:35
@PacificYield PacificYield marked this pull request as ready for review November 15, 2024 15:39
@PacificYield PacificYield force-pushed the PacificYield/add-default-config-zama branch from 726ec80 to 5d84f04 Compare November 15, 2024 15:56
config/DefaultFHEVMConfig.sol Outdated Show resolved Hide resolved
config/DefaultFHEVMConfig.sol Outdated Show resolved Hide resolved
config/DefaultFHEVMConfig.sol Outdated Show resolved Hide resolved
config/DefaultGatewayConfig.sol Outdated Show resolved Hide resolved
@PacificYield PacificYield merged commit 4c7ce9e into zama-ai:main Nov 15, 2024
2 of 3 checks passed
@PacificYield PacificYield deleted the PacificYield/add-default-config-zama branch November 15, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants