forked from CrazyNFT/imx-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
40 lines (37 loc) · 1.14 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
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-ethers";
import dotenv from "dotenv";
dotenv.config();
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: "0.8.4",
networks: {
dev: {
url: `https://eth-goerli.g.alchemy.com/v2/${process.env.ALCHEMY_GOERLI_API_KEY}`,
accounts: [`0x${process.env.DEPLOYER_TESTNET_PRIVATE_KEY}`],
},
sandbox: {
url: `https://eth-goerli.g.alchemy.com/v2/${process.env.ALCHEMY_GOERLI_API_KEY}`,
accounts: [`0x${process.env.DEPLOYER_TESTNET_PRIVATE_KEY}`],
},
ropsten: {
url: `https://eth-ropsten.alchemyapi.io/v2/${process.env.ALCHEMY_ROPSTEN_API_KEY}`,
accounts: [`0x${process.env.DEPLOYER_TESTNET_PRIVATE_KEY}`],
},
mainnet: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_MAINNET_API_KEY}`,
accounts: [`0x${process.env.DEPLOYER_MAINNET_PRIVATE_KEY}`],
},
},
typechain: {
outDir: "artifacts/typechain",
target: "ethers-v5",
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
};