-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
40 lines (37 loc) · 1.07 KB
/
hardhat.config.ts
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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-change-network";
import "@nomiclabs/hardhat-etherscan";
import {config as read} from "dotenv"
read();
const config: HardhatUserConfig = {
solidity: "0.8.17",
networks: {
goerliTest: {
url: "https://eth-goerli.g.alchemy.com/v2/" + process.env.GOERLI_API_KEY,
mnemonic : "test test test test test test test test test test test test"
},
goerli: {
url: "https://eth-goerli.g.alchemy.com/v2/" + process.env.GOERLI_API_KEY,
accounts: {
mnemonic: process.env.MNEMONIC,
}
},
opgoerli: {
url: "https://opt-goerli.g.alchemy.com/v2/" + process.env.OP_GOERLI_API_KEY,
accounts: {
mnemonic: process.env.MNEMONIC,
},
},
polygonMumbai: {
url : "https://polygon-mumbai.g.alchemy.com/v2/" + process.env.POLYGON_MUMBAI_API_KEY,
accounts: {
mnemonic: process.env.MNEMONIC,
},
}
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
}
};
export default config;