-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
42 lines (39 loc) · 1.02 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
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-ethers";
import "@openzeppelin/hardhat-upgrades";
import * as dotenv from 'dotenv';
dotenv.config();
const { PRIVATE_KEY_OWNER_GOLD, PRIVATE_KEY_OWNER_PLANETS, PRIVATE_KEY_WORKER_PLANETS } = process.env;
const { ETHERSCAN_API_KEY } = process.env;
module.exports = {
solidity: "0.8.7",
networks: {
mainnet: {
url: "https://bsc-dataseed.binance.org/",
chainId: 56,
gasPrice: 20000000000,
accounts: [PRIVATE_KEY_OWNER_PLANETS]
},
testnet: {
url: "https://data-seed-prebsc-1-s1.binance.org:8545",
chainId: 97,
gasPrice: 20000000000,
accounts: [PRIVATE_KEY_WORKER_PLANETS]
},
localhost: {
chainId: 31337,
url: "http://127.0.0.1:8545",
accounts: ["ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"]
}
},
etherscan: {
apiKey: ETHERSCAN_API_KEY
},
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
};