-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
42 lines (38 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
41
42
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomiclabs/hardhat-etherscan";
// Import and configure dotenv
require("dotenv").config();
const config: HardhatUserConfig = {
solidity: "0.8.9",
//npx hardhat run scripts/deploy-simple-bank.ts --network rinkeby
networks: {
rinkeby: {
url: process.env.STAGING_QUICKNODE_KEY,
accounts: [process.env.PRIVATE_KEY as string]
},
goerli: {
url: process.env.STAGING_ALCHEMY_KEY,
accounts: [process.env.PRIVATE_KEY as string]
},
mumbai: {
url: process.env.MUMBAI_QUICKNODE_KEY,
accounts: [process.env.PRIVATE_KEY as string]
}
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
//npx hardhat verify --network rinkeby CONTRACT_ADDRESS
apiKey: process.env.ETHER_SCAN
},
/* gasReporter: {
enabled: true,
currency: 'USD',
coinmarketcap: 'a07c15b1-4a76-4976-b458-48944dc065d0',
token: 'ETH',
gasPriceApi: 'https://api.bscscan.com/api?module=proxy&action=eth_gasPrice',
showTimeSpent: true,
}, */
};
export default config;