mirror of
https://github.com/arkorty/B.Tech-Project-III.git
synced 2026-04-19 12:41:48 +00:00
init
This commit is contained in:
68
dmtp/server/hardhat.config.ts
Normal file
68
dmtp/server/hardhat.config.ts
Normal file
@@ -0,0 +1,68 @@
|
||||
import "@nomicfoundation/hardhat-toolbox";
|
||||
import "@nomicfoundation/hardhat-verify";
|
||||
import * as dotenv from "dotenv";
|
||||
import { HardhatUserConfig } from "hardhat/config";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const config: HardhatUserConfig = {
|
||||
solidity: {
|
||||
version: "0.8.20",
|
||||
settings: {
|
||||
optimizer: {
|
||||
enabled: true,
|
||||
runs: 200,
|
||||
},
|
||||
},
|
||||
},
|
||||
networks: {
|
||||
// Celo Sepolia Testnet
|
||||
sepolia: {
|
||||
url: "https://forno.celo-sepolia.celo-testnet.org",
|
||||
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
|
||||
chainId: 11142220,
|
||||
},
|
||||
// Celo Mainnet
|
||||
celo: {
|
||||
url: "https://forno.celo.org",
|
||||
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
|
||||
chainId: 42220,
|
||||
},
|
||||
// Local Hardhat network
|
||||
hardhat: {
|
||||
chainId: 31337,
|
||||
},
|
||||
},
|
||||
etherscan: {
|
||||
apiKey: {
|
||||
sepolia: process.env.CELOSCAN_API_KEY || "",
|
||||
celo: process.env.CELOSCAN_API_KEY || "",
|
||||
},
|
||||
customChains: [
|
||||
{
|
||||
network: "Celo Sepolia Testnet",
|
||||
chainId: 11142220,
|
||||
urls: {
|
||||
apiURL: "https://api-sepolia.celoscan.io/api",
|
||||
browserURL: "https://sepolia.celoscan.io",
|
||||
},
|
||||
},
|
||||
{
|
||||
network: "celo",
|
||||
chainId: 42220,
|
||||
urls: {
|
||||
apiURL: "https://api.celoscan.io/api",
|
||||
browserURL: "https://celoscan.io",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
paths: {
|
||||
sources: "./contracts",
|
||||
tests: "./test",
|
||||
cache: "./cache",
|
||||
artifacts: "./artifacts",
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user