-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
35 lines (35 loc) · 839 Bytes
/
Copy pathhardhat.config.js
File metadata and controls
35 lines (35 loc) · 839 Bytes
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
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-etherscan");
require("@openzeppelin/hardhat-upgrades");
/** @type import('hardhat/config').HardhatUserConfig */
const { alchemyAPIkeyGoerli } = require('./secrets.json');
const { deployerWalletPrivateKey } = require('./secrets.json');
const { etherscanAPIkey } = require('./secrets.json');
module.exports = {
solidity: "0.8.6",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
networks:{
hardhat:{
chainId:1337,
},
goerli:{
url:alchemyAPIkeyGoerli,//from infura
accounts:[deployerWalletPrivateKey],//from metamask
gas: 10000000
}
},
etherscan:{
apiKey: etherscanAPIkey
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
}
};