-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
50 lines (44 loc) · 1.02 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
41
42
43
44
45
46
47
48
49
50
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-deploy";
import * as dotenv from "dotenv";
dotenv.config();
console.log(process.env.NEXT_APP_ALCHEMI_API_URL);
console.log(process.env.NEXT_APP_RRIVATE_KEY);
const config: HardhatUserConfig = {
defaultNetwork: "localhost",
namedAccounts: {
deployer: {
// By default, it will take the first Hardhat account as the deployer
default: 0,
},
},
networks: {
hardhat: {
chainId: 1337
},
sepolia: {
url: process.env.NEXT_APP_ALCHEMI_API_URL,
accounts: [ process.env.NEXT_APP_RRIVATE_KEY ]
},
mumbai: {
url: process.env.NEXT_APP_ALCHEMI_MUMBAI_API_URL,
accounts: [process.env.NEXT_APP_RRIVATE_KEY]
},
},
solidity: {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
verify: {
etherscan: {
apiKey: process.env.NEXT_APP_ETHERSCAN_KEY,
},
},
};
export default config;