-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
39 lines (35 loc) · 889 Bytes
/
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
import dotenv from "dotenv";
dotenv.config(); // load env vars from .env
import { HardhatUserConfig } from "hardhat/config";
import "@nomiclabs/hardhat-waffle";
const { ARCHIVE_URL, PRIVATE_KEY } = process.env;
if (!ARCHIVE_URL)
throw new Error(
`ARCHIVE_URL env var not set. Copy .env.template to .env and set the env var`
);
if (!PRIVATE_KEY)
throw new Error(
`PRIVATE_KEY env var not set. Copy .env.template to .env and set the env var`
);
// Go to https://hardhat.org/config/ to learn more
const config: HardhatUserConfig = {
solidity: {
compilers: [
// old ethernaut compiler
{ version: "0.4.21" },
{ version: "0.7.3" }
],
},
networks: {
ropsten: {
url: ARCHIVE_URL,
accounts: [PRIVATE_KEY],
gas: 2100000,
gasPrice: 8000000000
},
},
mocha: {
timeout: 300 * 1e3,
}
};
export default config;