-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
86 lines (82 loc) · 1.79 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomiclabs/hardhat-web3";
import "hardhat-abi-exporter";
import "hardhat-gas-reporter";
import env from "dotenv";
env.config();
const {
ARB_GOERLI_RPC_URL,
// sepolia
ARB_SEPOLIA_RPC_URL,
ARB_SEPOLIA_OWNER_KEY,
ARB_SEPOLIA_CUSTODIAN_KEY,
ARB_SEPOLIA_FINANCE_KEY,
ARB_SEPOLIA_NOTARY_KEY,
COINMARKETCAP_API_KEY,
// arbitrum (production)
ARB_RPC_URL,
ARB_OWNER_KEY,
ARB_CUSTODIAN_KEY,
ARB_FINANCE_KEY,
ARB_NOTARY_KEY
} = process.env;
const config: HardhatUserConfig = {
gasReporter: {
currency: "USD",
coinmarketcap: COINMARKETCAP_API_KEY,
gasPriceApi: "https://api.arbiscan.io/api?module=proxy&action=eth_gasPrice",
gasPrice: 0.2,
enabled: (process.env.REPORT_GAS) ? true : false
},
solidity: {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
details: {
yulDetails: {
optimizerSteps: "u",
}
},
runs: 100
},
viaIR: true
}
},
networks: {
arbitrum: {
url: ARB_RPC_URL!,
accounts: [
ARB_OWNER_KEY!,
ARB_CUSTODIAN_KEY!,
ARB_FINANCE_KEY!,
ARB_NOTARY_KEY!
]
},
goerli: {
url: ARB_GOERLI_RPC_URL!,
accounts: [
ARB_SEPOLIA_OWNER_KEY!,
ARB_SEPOLIA_CUSTODIAN_KEY!,
ARB_SEPOLIA_FINANCE_KEY!,
ARB_SEPOLIA_NOTARY_KEY!
]
},
sepolia: {
url: ARB_SEPOLIA_RPC_URL!,
accounts: [
ARB_SEPOLIA_OWNER_KEY!,
ARB_SEPOLIA_CUSTODIAN_KEY!,
ARB_SEPOLIA_FINANCE_KEY!,
ARB_SEPOLIA_NOTARY_KEY!
]
},
hardhat: {
chainId: 1337,
gasPrice: 200000000,
initialBaseFeePerGas: 0,
}
}
};
export default config;