-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
47 lines (41 loc) · 1.08 KB
/
hardhat.config.ts
File metadata and controls
47 lines (41 loc) · 1.08 KB
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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import '@openzeppelin/hardhat-upgrades';
import 'dotenv/config';
//npx hardhat run scripts/deploy.js --network mumbai
//npx hardhat verify --network mumbai 0x101fcA239DF3104f454AF34AE642b2F7Ae9289F9
const config: HardhatUserConfig = {
solidity: {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {
chainId: 1337
},
goerli: {
url: `${process.env.ALCHEMY_GOERLI_URL}`,
accounts: [`0x${process.env.GOERLI_PRIVITE_KEY}`],
},
mumbai: {
url: `${process.env.INFURA_API_KEY}`,
accounts: [`${process.env.MUMBAI_PRIVITE_KEY}`],
},
},
etherscan: {
apiKey: `${process.env.ETHERSCAN_KEY}`
}
};
export default config;
// import { HardhatUserConfig } from "hardhat/config";
// import "@nomicfoundation/hardhat-toolbox";
// import '@openzeppelin/hardhat-upgrades';
// const config: HardhatUserConfig = {
// solidity: "0.8.20",
// };
// export default config;