-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
51 lines (48 loc) · 1.28 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
import '@nomicfoundation/hardhat-toolbox';
import '@nomiclabs/hardhat-ethers';
import '@openzeppelin/hardhat-upgrades';
import { HardhatUserConfig, task } from 'hardhat/config';
import * as dotenv from 'dotenv';
import "@nomiclabs/hardhat-ethers";
import "hardhat-depver";
import "./tasks/deploy";
dotenv.config();
const config: HardhatUserConfig = {
solidity: "0.8.17",
networks: {
goerli: {
url: `https://eth-goerli.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: {
mnemonic: process.env.MNEMONIC as string,
},
},
sepolia: {
url: `https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: {
mnemonic: process.env.MNEMONIC as string,
},
},
gnosis: {
url: `https://rpc.gnosischain.com`,
accounts: { mnemonic: process.env.MNEMONIC as string }
}
},
etherscan: {
apiKey: {
goerli: process.env.ETHERSCAN_API_KEY as string,
sepolia: process.env.ETHERSCAN_API_KEY as string,
gnosis: process.env.GNOSIS_API_KEY as string,
},
customChains: [
{
network: "gnosis",
chainId: 100,
urls: {
apiURL: "https://api.gnosisscan.io/api",
browserURL: "https://gnosisscan.io"
}
}
]
},
};
export default config;