-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
54 lines (53 loc) · 1.46 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
require("@nomiclabs/hardhat-waffle")
require("@nomiclabs/hardhat-etherscan")
require("hardhat-deploy")
require("solidity-coverage")
require("hardhat-gas-reporter")
require("hardhat-contract-sizer")
require("@primitivefi/hardhat-dodoc")
require("dotenv").config()
module.exports = {
solidity: "0.8.18",
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 31337,
blockConfirmations: 1,
},
bscMainnet: {
chainId: 56,
blockConfirmations: 6,
url: process.env.BSC_MAINNET_RPC_URL,
accounts: [process.env.DEPLOYER_PRIVATE_KEY],
},
bscTestnet: {
chainId: 97,
blockConfirmations: 6,
url: process.env.BSC_TESTNET_RPC_URL,
accounts: [process.env.DEPLOYER_PRIVATE_KEY],
},
},
namedAccounts: {
deployer: { default: 0 },
player1: { default: 1 },
player2: { default: 2 },
player3: { default: 3 },
beneficiary: { default: 4 },
},
gasReporter: {
enabled: false,
currency: "USD",
outputFile: "gas-report.txt",
noColors: true,
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
},
mocha: {
timeout: 200_000, // 200 seconds
},
etherscan: {
apiKey: {
bscMainnet: process.env.BSC_MAINNET_SCANNER_API_KEY,
bscTestnet: process.env.BSC_TESTNET_SCANNER_API_KEY,
},
},
}