-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
63 lines (61 loc) · 1.62 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-waffle")
require("@nomiclabs/hardhat-etherscan")
require("hardhat-deploy")
require("solidity-coverage")
require("hardhat-gas-reporter")
require("hardhat-contract-sizer")
require("dotenv").config()
const PRIVATE_KEY = process.env.PRIVATE_KEY
const ALICE_PRIVATE_KEY = process.env.ALICE_PRIVATE_KEY
const BOB_PRIVATE_KEY = process.env.BOB_PRIVATE_KEY
const CHARLIE_PRIVATE_KEY = process.env.CHARLIE_PRIVATE_KEY
const RINKEBY_RPC_URL = process.env.RINKEBY_RPC_URL
const COINMARKETCAP_API_KEY = process.env.COINMARKETCAP_API_KEY
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.13",
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 31337,
blockConfirmations: 1,
},
localhost: {
chainId: 31337,
},
rinkeby: {
chainId: 4,
accounts: [PRIVATE_KEY, ALICE_PRIVATE_KEY, BOB_PRIVATE_KEY, CHARLIE_PRIVATE_KEY],
url: RINKEBY_RPC_URL,
blockConfirmations: 6,
},
},
etherscan: {
apiKey: ETHERSCAN_API_KEY,
},
gasReporter: {
enabled: false,
currency: "USD",
outputFile: "gas-report.txt",
noColors: true,
coinmarketcap: COINMARKETCAP_API_KEY,
},
namedAccounts: {
deployer: {
default: 0,
},
Alice: {
default: 1,
},
Bob: {
default: 2,
},
Charlie: {
default: 3,
},
},
mocha: {
timeout: 300000,
},
}