-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
61 lines (57 loc) · 1.22 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
49
50
51
52
53
54
55
56
57
58
59
60
61
import { HardhatUserConfig } from "hardhat/config";
import { config as dotEnvConfig } from "dotenv";
import "@nomicfoundation/hardhat-toolbox";
dotEnvConfig();
const hardhatConfig:HardhatUserConfig = {
defaultNetwork: `${process.env.DEFAULT_NETWORK_NAME}`,
etherscan: {
apiKey: {
sepolia: `${process.env.ETHERSCAN_API_KEY}`,
}
},
networks: {
localhost: {
url: "http://127.0.0.1:8545"
},
hardhat: {
},
/*
hardhat: {
forking: {
url: `${process.env.ALCHEMY_URL_SEPOLIA}/${process.env.ALCHEMY_KEY}`,
blockNumber: 3455485
}
},
*/
sepolia: {
url: `${process.env.ALCHEMY_URL_SEPOLIA}/${process.env.ALCHEMY_KEY}`,
accounts: [`${process.env.DEPLOYER_ACCOUNT_KEY}`]
}
},
solidity: {
compilers: [
{
version: `${process.env.SOLC_COMPILER_VERSION}`,
settings: {
optimizer: {
enabled: true,
runs: 800,
details: {
yul: true
}
}
}
},
]
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
mocha: {
timeout: 120000
}
}
module.exports = hardhatConfig;