-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
50 lines (46 loc) · 908 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
40
41
42
43
44
45
46
47
48
49
50
import { HardhatUserConfig } from "hardhat/config";
require("dotenv").config();
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("@openzeppelin/hardhat-upgrades");
const { API_URL, PRIVATE_KEY } = process.env;
module.exports = {
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 500,
},
},
},
defaultNetwork: "polygon_mumbai",
networks: {
hardhat: {},
polygon_mumbai: {
url: API_URL,
accounts: [`0x${PRIVATE_KEY}`]
}
},
}
/* const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.9",
},
{
version: "0.5.0",
},
],
},
networks: {
localhost: {
url: `http://localhost:8545`,
gas: 6000000,
blockGasLimit: 30000000,
},
},
};
export default config;
*/