@excubiae/contracts
Version:
57 lines • 1.56 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = require("path");
const dotenv_1 = require("dotenv");
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-foundry");
require("@nomicfoundation/hardhat-verify");
require("hardhat-gas-reporter");
require("./tasks/accounts");
require("./tasks/extensions");
(0, dotenv_1.config)({ path: (0, path_1.resolve)(__dirname, ".env") });
const backendPrivateKey = process.env.BACKEND_PRIVATE_KEY;
const config = {
solidity: {
version: "0.8.28",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache-hh",
artifacts: "./artifacts"
},
networks: {
hardhat: {
chainId: 1337,
allowUnlimitedContractSize: true
},
sepolia: {
chainId: 11155111,
url: "https://rpc2.sepolia.org",
accounts: !backendPrivateKey ? [] : [backendPrivateKey]
}
},
gasReporter: {
currency: "USD",
enabled: process.env.REPORT_GAS === "true",
coinmarketcap: process.env.COINMARKETCAP_API_KEY
},
typechain: {
target: "ethers-v6"
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
customChains: []
},
sourcify: {
enabled: true
}
};
exports.default = config;
//# sourceMappingURL=hardhat.config.js.map