-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
136 lines (128 loc) · 3.54 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
import { HardhatUserConfig, task } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@openzeppelin/hardhat-upgrades";
import "@nomicfoundation/hardhat-chai-matchers";
import "hardhat-gas-reporter";
import "solidity-coverage";
import { config as dotenvConfig } from "dotenv";
import BigNumber from "bignumber.js";
dotenvConfig();
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();
const provider = hre.ethers.provider;
for (const account of accounts) {
console.log("%s (%i wei)", account.address, new BigNumber((await provider.getBalance(account.address)).toString()));
}
});
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
gasReporter: {
enabled: false,
gasPrice: 1,
coinmarketcap: process.env.COIN_MARKET_CAP,
},
etherscan: {
apiKey: {
mainnet: `${process.env.ETHERSCAN_API_KEY}`,
arbSepolia: `${process.env.ARB_SEPOLIA_API_KEY}`,
},
customChains: [
{
network: "arbSepolia",
chainId: 421614,
urls: {
apiURL: "https://api-sepolia.arbiscan.io/api",
browserURL: "https://sepolia.arbiscan.io/",
},
},
],
},
mocha: {
timeout: 120000,
},
networks: {
hardhat: {
blockGasLimit: 500000000000,
},
sepolia: {
url: `${process.env.SEPOLIA_RPC_URL}`,
// NOTE: don't change the order of elements in the array, add new elements at the last.
accounts: [
`${process.env.SEPOLIA_ADMIN}`,
`${process.env.SEPOLIA_TOKEN_HOLDER}`,
`${process.env.SEPOLIA_TREASURY}`,
`${process.env.SEPOLIA_MARKET_CREATOR}`,
`${process.env.SEPOLIA_GENERATOR}`,
`${process.env.SEPOLIA_MATCHING_ENGINE}`,
`${process.env.SEPOLIA_PROOF_REQUESTOR}`,
],
},
arbSepolia: {
url: `${process.env.ARB_SEPOLIA_RPC_URL}`,
accounts: [
`${process.env.SEPOLIA_ADMIN}`,
`${process.env.SEPOLIA_TOKEN_HOLDER}`,
`${process.env.SEPOLIA_TREASURY}`,
`${process.env.SEPOLIA_MARKET_CREATOR}`,
`${process.env.SEPOLIA_GENERATOR}`,
`${process.env.SEPOLIA_MATCHING_ENGINE}`,
`${process.env.SEPOLIA_PROOF_REQUESTOR}`,
],
},
nova: {
url: `${process.env.NOVA_RPC_URL}`,
accounts: [
`${process.env.NOVA_ADMIN}`,
`${process.env.NOVA_TOKEN_HOLDER}`,
`${process.env.NOVA_TREASURY}`,
`${process.env.NOVA_MARKET_CREATOR}`,
`${process.env.NOVA_GENERATOR}`,
`${process.env.NOVA_MATCHING_ENGINE}`,
`${process.env.NOVA_PROOF_REQUESTOR}`,
],
},
kalypso: {
url: `${process.env.KALYPSO_RPC_URL}`,
accounts: [
`${process.env.SEPOLIA_ADMIN}`,
`${process.env.SEPOLIA_TOKEN_HOLDER}`,
`${process.env.SEPOLIA_TREASURY}`,
`${process.env.SEPOLIA_MARKET_CREATOR}`,
`${process.env.SEPOLIA_GENERATOR}`,
`${process.env.SEPOLIA_MATCHING_ENGINE}`,
`${process.env.SEPOLIA_PROOF_REQUESTOR}`,
],
},
},
};
export default config;