-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
56 lines (52 loc) · 1.22 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
require("@nomiclabs/hardhat-waffle");
require("@tenderly/hardhat-tenderly");
const secret = require("./secret.json");
const INFURA_PROJECT_ID = secret.INFURA;
const PRIVATE_KEY = secret.PRIVATE_KEY;
const ETHERSCAN = secret.ETHERSCAN;
const XDAI = secret.XDAI;
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: "0.7.0",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
local: {
url: "http://127.0.0.1:8545",
forking: {
url: `https://mainet.infura.io/v3/${INFURA_PROJECT_ID}`,
},
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${INFURA_PROJECT_ID}`,
accounts: [`0x${PRIVATE_KEY}`],
},
kovan: {
url: `https://kovan.infura.io/v3/${INFURA_PROJECT_ID}`,
accounts: [`0x${PRIVATE_KEY}`],
},
goerli: {
url: `https://goerli.infura.io/v3/${INFURA_PROJECT_ID}`,
accounts: [`0x${PRIVATE_KEY}`],
},
xdai: {
url: `https://poa-xdai.gateway.pokt.network/v1/${XDAI}`,
accounts: [`0x${PRIVATE_KEY}`],
},
},
etherscan: {
apiKey: ETHERSCAN,
},
tenderly: {
username: "greenhornet",
project: "airdrop",
},
};