-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
63 lines (59 loc) · 1.4 KB
/
hardhat.config.ts
File metadata and controls
63 lines (59 loc) · 1.4 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import { HardhatUserConfig, vars } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox-viem";
import "@typechain/hardhat";
import "@nomicfoundation/hardhat-verify";
const MNEMONIC = vars.get("MNEMONIC");
const PRIVATE_KEY = vars.get("PRIVATE_KEY");
const ETHERSCAN_API_KEY = vars.get("ETHERSCAN_API_KEY");
const accounts = {
mnemonic: MNEMONIC ||
'syrup test test test test test test test test test test test',
};
const config: HardhatUserConfig = {
solidity: {
version: "0.8.26",
settings: {
optimizer: {
enabled: true,
runs: 200,
}
}
},
networks: {
assetChainTestnet: {
chainId: 42421,
url: "https://enugu-rpc.assetchain.org",
accounts: [PRIVATE_KEY],
from: "0xF6f2D0A9F55C61240427A6AA9dE62419EC8539f8",
gas: "auto",
gasPrice: "auto",
// gasMultiplier: 1.2, // Adjust if needed
},
// hardhat: {},
// sepolia: {},
// mumbai: {},
},
typechain: {
outDir: 'typechain',
target: 'ethers-v6',
},
etherscan: {
apiKey: {
assetChainTestnet: ETHERSCAN_API_KEY,
},
customChains: [
{
network: "assetChainTestnet",
chainId: 42421,
urls: {
apiURL: "https://scan-testnet.assetchain.org/api",
browserURL: "https://scan-testnet.assetchain.org/",
}
}
],
},
sourcify: {
enabled: false,
}
};
export default config;