-
Notifications
You must be signed in to change notification settings - Fork 16
/
hardhat.config.js
59 lines (58 loc) · 1.35 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require("dotenv").config();
const MUMBAI_RPC =
process.env.MUMBAI_RPC || "https://rpc-mumbai.maticvigil.com ";
const GOERLI_RPC = process.env.GOERLI_RPC || "https://rpc.ankr.com/eth_goerli ";
const SKALE_RPC = process.env.SKALE_RPC;
const POLYGON_RPC = process.env.POLYGON_RPC || "https://polygon-rpc.com ";
const ETHERSCAN_KEY = process.env.ETHERSCAN_KEY;
const privateKey = process.env.PRIVATE_KEY;
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
defaultNetwork: "hardhat",
solidity: {
version: "0.8.0",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {
chainId: 1337,
},
goerli: {
url: GOERLI_RPC,
accounts: [privateKey],
},
mumbai: {
url: MUMBAI_RPC,
accounts: [privateKey],
},
skale: {
url: SKALE_RPC,
accounts: [privateKey],
gasPrice: 100000,
},
polygon: {
url: POLYGON_RPC,
accounts: [privateKey],
},
europaTestnet: {
url: "https://testnet.skalenodes.com/v1/juicy-low-small-testnet",
accounts: [privateKey],
},
opSepolia: {
url: "https://sepolia.optimism.io",
accounts: [privateKey],
},
},
etherscan: {
apiKey: ETHERSCAN_KEY,
},
};