-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
60 lines (57 loc) · 1.41 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
import "@nomicfoundation/hardhat-ethers"
import "@nomicfoundation/hardhat-verify"
import "@openzeppelin/hardhat-upgrades"
import * as dotenv from "dotenv"
import "hardhat-gas-reporter"
import { HardhatUserConfig } from "hardhat/config"
import "solidity-coverage"
dotenv.config()
const config: HardhatUserConfig = {
solidity: {
version: "0.8.20",
settings: {
viaIR: false,
optimizer: {
enabled: true,
runs: 1,
},
},
},
paths: {
sources: "./contracts",
cache: "./cache",
artifacts: "./artifacts",
},
networks: {
hardhat: {
allowUnlimitedContractSize: false,
},
avax_mainnet: {
url: "https://api.avax.network/ext/bc/C/rpc",
chainId: 43114,
accounts: [`0x${process.env.MAINNET_PRIVATE_KEY}`],
},
avax_testnet: {
url: "https://api.avax-test.network/ext/bc/C/rpc",
chainId: 43113,
accounts: [`0x${process.env.TESTNET_PRIVATE_KEY}`],
},
arbitrum: {
url: `${process.env["ARBITRUM_ARCHIVE_NODE_URL"]}`,
chainId: 42161,
accounts: [`0x${process.env.MAINNET_PRIVATE_KEY}`],
},
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
currency: "USD",
},
etherscan: {
apiKey: {
avalanche: `${process.env.SNOWTRACE_API_KEY}`,
bsc: `${process.env.BSC_SCAN_API_KEY}`,
arbitrumOne: `${process.env.ARBI_SCAN_API_KEY}`,
},
},
}
export default config