-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.js
63 lines (54 loc) · 1.42 KB
/
hardhat.config.js
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
require('@nomiclabs/hardhat-ethers')
require('@nomiclabs/hardhat-waffle')
require('hardhat-deploy')
require("@nomiclabs/hardhat-etherscan");
require('@openzeppelin/hardhat-upgrades');
const dotenv = require("dotenv");
dotenv.config({path: __dirname + '/.env'});
const { private_key, internal_url,local_key,testnet_key } = process.env;
module.exports = {
networks: {
mainnet: {
url: `https://api.elastos.io/esc`,
accounts: [
`${private_key}`
],
},
regtest: {
url: `http://${internal_url}:20636`,
accounts: [
`${private_key}`
],
},
testnet: {
url: `https://api-testnet.elastos.io/esc`,
accounts: [
`${testnet_key}`
],
},
local: {
url: `http://127.0.0.1:6111`,
accounts: [
`${local_key}`
]
},
hardhat:{
chainId:100,
accounts: [
{privateKey:"0xcb93f47f4ae6e2ee722517f3a2d3e7f55a5074f430c9860bcfe1d6d172492ed0",balance:"10000000000000000000000"},
{privateKey:"0xf143b04240e065984bc0507eb1583234643d64c948e1e0ae2ed4abf7d7aed06a",balance:"10000000000000000000000"},
{privateKey:"0x49b9dd4e00cb10e691abaa1de4047f9c9d98b72b9ce43e1e12959b22f56a0289",balance:"10000000000000000000000"},
],
blockGasLimit: 8000000
}
},
solidity: {
version: "0.7.6",
settings: {
optimizer: {
enabled: true,
runs: 200
},
},
},
}