forked from BukiOffor/Blockchain-Assets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
53 lines (48 loc) · 1.03 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
require("@nomicfoundation/hardhat-toolbox");
require("hardhat-deploy");
require("hardhat-gas-reporter");
require("@nomicfoundation/hardhat-chai-matchers");
require("dotenv").config();
/** @type import('hardhat/config').HardhatUserConfig */
const goerli_rpc = process.env.goerli_rpc_url
const goerli_pk = process.env.goerli_pk
const api_key = process.env.api_key
const coinmarketcap = process.env.coinmarketcap
module.exports = {
solidity : {
compilers: [
{version : "0.8.17"},
{version : "0.6.6"},
]
},
defaultNetwork: "hardhat",
networks : {
goerli: {
url: goerli_rpc ,
accounts: [goerli_pk,],
chainId: 5,
blockConfirmations : 6
},
},
gasReporter : {
enabled: true,
outputFile : "gas_report.txt",
noColors: true,
currency: "USD",
coinmarketcap : coinmarketcap,
},
etherscan : {
apiKey : api_key,
},
namedAccounts : {
deployer : {
default:0
},
seller : {
default : 1
},
buyer : {
default: 2
}
}
};