-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
48 lines (43 loc) · 1.13 KB
/
hardhat.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-verify";
import "@openzeppelin/hardhat-upgrades";
import * as dotenv from "dotenv";
dotenv.config();
const PRIVATE_KEY = process.env.PRIVATE_KEY || "";
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY || "";
const config: HardhatUserConfig = {
solidity: {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 200, // Adjust the runs value as needed
},
},
},
networks: {
assetChainTestnet: {
url: "https://enugu-rpc.assetchain.org/",
chainId: 42421,
accounts: [PRIVATE_KEY],
},
},
etherscan: {
apiKey: {
// Replace with the actual API key for Asset Chain Testnet if available
assetChainTestnet: ETHERSCAN_API_KEY,
},
customChains: [
{
network: "assetChainTestnet",
chainId: 42421,
urls: {
apiURL: "https://scan-testnet.assetchain.org/api",
browserURL: "https://scan-testnet.assetchain.org/",
},
},
],
},
};
export default config;