-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
129 lines (124 loc) · 3.08 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import '@openzeppelin/hardhat-upgrades';
import "@nomicfoundation/hardhat-verify";
import "hardhat-tracer";
import * as dotenv from 'dotenv';
dotenv.config()
const config: HardhatUserConfig = {
solidity: {
settings: {
optimizer: {
enabled: true,
runs: 200,
}
},
compilers: [
{
version: "0.8.20",
},
{version: "0.8.12"},
]
},
// typechain: {
// outDir: 'typechain-types',
// target: 'ethers-v5',
// // Optionally you can add other TypeChain options here
// },
networks: {
localhost: {
url: 'http://127.0.0.1:8545/',
},
hardhat: {
forking: {
url: process.env.MUMBAI_RPC as string,
},
},
polygonMumbai: {
url: process.env.MUMBAI_RPC,
accounts: {
mnemonic: process.env.MNEMONIC,
}
},
"optimismGoerli": {
url: process.env.OPTIMISM_GOERLI_RPC,//`https://opt-goerli.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: {
mnemonic: process.env.MNEMONIC,
},
chainId: 80001
},
"optimism": {
url: process.env.OPTIMISM_RPC,//`https://opt-goerli.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: {
mnemonic: process.env.MNEMONIC,
}
},
"zoraGoerli" : {
url: process.env.ZORA_GOERLI_RPC,
accounts: {
mnemonic: process.env.MNEMONIC,
}
},
"baseGoerli" : {
url: process.env.BASE_GOERLI_RPC,
accounts: {
mnemonic: process.env.MNEMONIC,
},
},
"baseSepolia" : {
url: process.env.BASE_SEPOLIA_RPC,
accounts: {
mnemonic: process.env.MNEMONIC,
},
},
"base" : {
url: process.env.BASE_RPC,
accounts: {
mnemonic: process.env.MNEMONIC,
}
},
"arbitrumTestnet" : {
url: process.env.ARBITRUM_TESTNET_RPC,
accounts: {
mnemonic: process.env.MNEMONIC,
}
},
"arbitrum" : {
url: process.env.ARBITRUM_RPC,
accounts: {
mnemonic: process.env.MNEMONIC,
}
},
"sepolia" : {
url: process.env.SEPOLIA_RPC,
accounts: {
mnemonic: process.env.MNEMONIC,
},
},
"goerli" : {
url: process.env.GOERLI_RPC,
accounts: {
mnemonic: process.env.MNEMONIC,
},
},
},
etherscan: {
apiKey: {
base: process.env.ETHERSCAN_BASE_KEY as string,
optimism: process.env.ETHERSCAN_OPTIMISM_KEY as string,
arbitrumOne : process.env.ETHERSCAN_ARBITRUM_KEY as string,
polygonMumbai: process.env.ETHERSCAN_MUMBAI_KEY as string,
sepolia: process.env.ETHERSCAN_SEPOLIA_KEY as string,
goerli: process.env.ETHERSCAN_SEPOLIA_KEY as string,
baseSepolia: process.env.ETHERSCAN_BASE_KEY as string,
}
},
tracer: {
tasks: ["deploy", "mycooltask"],
},
};
// task('customTask', 'Description of your custom task').setAction(async (_, hre) => {
// // Your task logic here
// console.log('Running custom task');
// });
export default config;