-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
76 lines (73 loc) · 1.62 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
var dotenv = require('dotenv')
var dotenvExpand = require('dotenv-expand')
var myEnv = dotenv.config()
dotenvExpand.expand(myEnv)
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-ethers");
require('@openzeppelin/hardhat-upgrades');
const {
BASE_GOERLI_API_URL,
BASE_PRIVATE_KEY,
SPH_PRIVATE_KEY,
API_GOERLI_URL,
ETH_PRIVATE_KEY,
ETH_GOERLI_API_URL,
MAT_MUMBAI_API_URL,
MAT_PRIVATE_KEY,
MAT_API_URL,
OPT_GOERLI_API_URL,
OPT_PRIVATE_KEY,
OPT_API_URL,
ARB_PRIVATE_KEY,
ARB_API_URL,
ARB_GOERLI_API_URL,
ARB_ETHERSCAN_API_KEY } = process.env;
module.exports = {
solidity: "0.8.17",
defaultNetwork: "arbGoerli",
networks: {
hardhat: {},
arbGoerli: {
url: ARB_GOERLI_API_URL,
accounts: [`0x${ARB_PRIVATE_KEY}`],
},
sphinx: {
url: "https://sphinx.shardeum.org/",
chainId: 8082,
accounts:[`0x${SPH_PRIVATE_KEY}`]
},
goerli: {
url: ETH_GOERLI_API_URL,
accounts: [`0x${ETH_PRIVATE_KEY}`],
},
optGoerli: {
url: OPT_GOERLI_API_URL,
accounts: [`0x${OPT_PRIVATE_KEY}`],
},
mumbai: {
url: MAT_MUMBAI_API_URL,
accounts: [`0x${MAT_PRIVATE_KEY}`],
},
polygon: {
url: MAT_API_URL,
accounts: [`0x${MAT_PRIVATE_KEY}`],
},
optimism: {
url: OPT_API_URL,
accounts: [`0x${OPT_PRIVATE_KEY}`],
},
arbitrum: {
url: ARB_API_URL,
accounts: [`0x${ARB_PRIVATE_KEY}`],
},
baseGoerli: {
url: BASE_GOERLI_API_URL,
accounts: [`0x${BASE_PRIVATE_KEY}`],
}
},
etherscan: {
apiKey: {
goerli: ARB_ETHERSCAN_API_KEY
},
}
};