-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
48 lines (45 loc) · 1.22 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-deploy";
import "hardhat-tracer";
import { config as dotenvConfig } from "dotenv";
dotenvConfig();
const config: HardhatUserConfig = {
solidity: {
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 5000,
},
},
},
networks: {
sepolia: {
url: `https://eth-sepolia.g.alchemy.com/v2/${process.env.ALCHEMY_KEY}`,
accounts: [process.env.PK as string],
},
arbsep: {
url: `https://arb-sepolia.g.alchemy.com/v2/${process.env.ALCHEMY_KEY}`,
accounts: [process.env.PK as string],
},
opsep: {
url: `https://opt-sepolia.g.alchemy.com/v2/${process.env.ALCHEMY_KEY}`,
accounts: [process.env.PK as string],
},
scrollsep: {
url: `https://sepolia-rpc.scroll.io`,
accounts: [process.env.PK as string],
},
mumbai: {
url: `https://polygon-mumbai.g.alchemy.com/v2/${process.env.ALCHEMY_KEY}`,
accounts: [process.env.PK as string],
},
},
namedAccounts: {
deployer: {
default: 0, // here this will by default take the first account as deployer
},
},
};
export default config;