-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
45 lines (43 loc) · 1.15 KB
/
hardhat.config.js
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
/** @type import('hardhat/config').HardhatUserConfig */
require("@nomiclabs/hardhat-ethers");
require("@openzeppelin/hardhat-upgrades");
require("@nomiclabs/hardhat-etherscan");
require("@nomicfoundation/hardhat-verify");
const dotenv = require('dotenv');
dotenv.config();
module.exports = {
solidity: {
version: "0.8.18",
settings: {
optimizer: {
enabled: true,
runs: 1000
}
}
},
networks: {
goerli: {
url: `https://eth-goerli.g.alchemy.com/v2/MIaPbNNNaHPp9qf5cDCOEJPVxJ_GwLVY`,
accounts: [
process.env.TESTNET_PRIVATE_KEY,
],
},
fuji: {
url: `https://omniscient-restless-thunder.avalanche-testnet.discover.quiknode.pro/933a2d24cf1a762fd73a569be25bdec21cb60a9f/ext/bc/C/rpc`,
accounts: [
process.env.TESTNET_PRIVATE_KEY,
],
chainId: 43113,
},
mainnet: {
url: `https://red-neat-putty.avalanche-mainnet.quiknode.pro/d54c9d0935c483e2f8e70b7a756d882e45cd9e3f/ext/bc/C/rpc/`,
accounts: [
process.env.MAINNET_PRIVATE_KEY,
],
chainId: 43114
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
},
};