-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
51 lines (44 loc) · 1.01 KB
/
hardhat.config.js
File metadata and controls
51 lines (44 loc) · 1.01 KB
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
require('hardhat-deploy')
require('@openzeppelin/hardhat-upgrades');
const dotenv = require("dotenv");
dotenv.config({ path: __dirname + '/.env' });
const { private_key } = process.env;
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
networks: {
mainnet: {
url: `https://api.elastos.io/esc`,
accounts: [
...(private_key ? [`${private_key}`] : [])
],
},
"testnet": {
url: `https://api-testnet.elastos.io/esc`,
accounts: [
...(private_key ? [`${private_key}`] : []),
],
},
local: {
url: `http://127.0.0.1:6111`,
accounts: [
...(private_key ? [`${private_key}`] : [])
]
},
hardhat: {
chainId: 100,
accounts: [
{privateKey:(private_key ? `${private_key}` : ""),balance:"10000000000000000000000"},
],
blockGasLimit: 8000000
}
},
solidity:{
version: "0.8.20",
setting:{
optimizer:{
enabled:true,
runs:200,
},
},
},
};