mirror of
https://github.com/luxfhe/example-binary-guessing.git
synced 2026-10-30 18:13:38 +00:00
- Update to unified FHE decryption API - Add foundry.toml for testing - Update dependencies to @luxfi/contracts
76 lines
2.1 KiB
TypeScript
76 lines
2.1 KiB
TypeScript
import * as dotenv from "dotenv";
|
|
dotenv.config();
|
|
import "@typechain/hardhat";
|
|
import "@nomicfoundation/hardhat-ethers";
|
|
import "@nomicfoundation/hardhat-chai-matchers";
|
|
import "@nomicfoundation/hardhat-foundry";
|
|
import "hardhat-gas-reporter";
|
|
import "solidity-coverage";
|
|
import "@nomicfoundation/hardhat-verify";
|
|
import "hardhat-deploy";
|
|
import "hardhat-deploy-ethers";
|
|
import "@luxfhe/hardhat-plugin";
|
|
import "@luxfhe/hardhat-network";
|
|
|
|
import "./tasks";
|
|
|
|
// If not set, it uses ours Alchemy's default API key.
|
|
// You can get your own at https://dashboard.alchemyapi.io
|
|
const providerApiKey =
|
|
process.env.ALCHEMY_API_KEY || "oKxs-03sij-U_N0iOlrSsZFr29-IqbuF";
|
|
// If not set, it uses the hardhat account 0 private key.
|
|
const deployerPrivateKey =
|
|
process.env.DEPLOYER_PRIVATE_KEY ??
|
|
"0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80";
|
|
// If not set, it uses ours Etherscan default API key.
|
|
const etherscanApiKey =
|
|
process.env.ETHERSCAN_API_KEY || "DNXJA8RX2Q3VZ4URQIWP7Z68CJXQZSC6AW";
|
|
|
|
const config = {
|
|
solidity: {
|
|
version: "0.8.31",
|
|
settings: {
|
|
evmVersion: "cancun",
|
|
optimizer: {
|
|
enabled: true,
|
|
// https://docs.soliditylang.org/en/latest/using-the-compiler.html#optimizer-options
|
|
runs: 200,
|
|
},
|
|
},
|
|
},
|
|
defaultNetwork: "localluxfhe",
|
|
namedAccounts: {
|
|
deployer: {
|
|
// By default, it will take the first Hardhat account as the deployer
|
|
default: 0,
|
|
},
|
|
},
|
|
networks: {
|
|
// View the networks that are pre-configured.
|
|
// If the network you are looking for is not here you can add new network settings
|
|
helium: {
|
|
url: "https://api.testnet.luxfhe.zone:7747",
|
|
chainId: 42069,
|
|
accounts: [deployerPrivateKey],
|
|
},
|
|
localhost: {
|
|
chainId: 31337,
|
|
},
|
|
},
|
|
// configuration for harhdat-verify plugin
|
|
etherscan: {
|
|
apiKey: `${etherscanApiKey}`,
|
|
},
|
|
// configuration for etherscan-verify from hardhat-deploy plugin
|
|
verify: {
|
|
etherscan: {
|
|
apiKey: `${etherscanApiKey}`,
|
|
},
|
|
},
|
|
sourcify: {
|
|
enabled: false,
|
|
},
|
|
};
|
|
|
|
export default config;
|