-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
59 lines (55 loc) · 1.55 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
import * as dotenv from "dotenv";
import "@nomicfoundation/hardhat-toolbox";
import { HardhatUserConfig } from "hardhat/config";
dotenv.config();
const config: HardhatUserConfig = {
solidity: "0.8.19",
networks: {
sepolia: {
url: process.env.SEPOLIA_URL || "",
accounts:
process.env.SEPOLIA_PRIVATE_KEY !== undefined ? [process.env.SEPOLIA_PRIVATE_KEY] : [],
},
celo: {
url: "https://forno.celo.org",
accounts: {
mnemonic: process.env.MNEMONIC,
path: "m/44'/52752'/0'/0"
},
chainId: 42220
},
scrollTestnet: {
url: process.env.SCROLL_TESTNET_URL || "",
accounts:
process.env.SCROLL_PRIVATE_KEY !== undefined ? [process.env.SCROLL_PRIVATE_KEY] : [],
},
arbitrumGoerli: {
url: process.env.ARBITRUM_GOERLI_URL || "",
accounts:
process.env.ARB_GOERLI_PRIVATE_KEY !== undefined ? [process.env.ARB_GOERLI_PRIVATE_KEY] : [],
},
polygon: {
url: process.env.POLYGON_URL || "",
accounts:
process.env.POLYGON_PRIVATE_KEY !== undefined ? [process.env.POLYGON_PRIVATE_KEY] : [],
}
},
etherscan: {
apiKey: {
mainnet: process.env.ETHERSCAN_API_KEY ?? "",
sepolia: process.env.ETHERSCAN_API_KEY ?? "",
celo: process.env.CELOSCAN_API_KEY ?? ""
},
customChains: [
{
network: "celo",
chainId: 42220,
urls: {
apiURL: "https://api.celoscan.io/api",
browserURL: "https://celoscan.io/",
},
},
]
},
};
export default config;