-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
77 lines (73 loc) · 2.08 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
77
//dependencies
require("dotenv").config();
require("hardhat-deploy");
require("@nomiclabs/hardhat-etherscan");
module.exports = {
solidity: {
compilers: [
{
version: '0.8.11',
settings: {
optimizer: {
enabled: true,
runs: 9999,
}
}
}]
},
defaultNetwork: "hardhat",
namedAccounts: {
deployer: {
default: 0,
polygonMainnet: '0xca88A4b589bD76361517f20985365DE9c2376139'
}
},
networks: {
dev: {
url: "http://0.0.0.0:8545",
},
hardhat: {
accounts: {
count: 100
},
// forking: {
// url: "https://eth-mainnet.alchemyapi.io/v2/tZGJbZSkR3LAZLLaRoYw21uG1j1codpt",
// blockNumber: 14143618
// }
},
ropsten: {
url: "https://ropsten.infura.io/v3/cb3b2911315442f68e6d83936c5b46dd",
accounts: [process.env.PRIVATE_KEY],
},
rinkeby: {
url: "https://rinkeby.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161",
accounts: [process.env.PRIVATE_KEY],
},
polygonMainnet: {
url: "https://polygon-mainnet.g.alchemy.com/v2/uEdpAJLHmVgNqAigtAXhrzPjtcFkE6PY",
accounts: [process.env.DEPLOYER_PRIVATE_KEY],
},
avalancheMainnet: {
url: "https://api.avax.network/ext/bc/C/rpc",
accounts: [process.env.DEPLOYER_PRIVATE_KEY],
},
optimismMainnet: {
url: "https://opt-mainnet.g.alchemy.com/v2/lyQfoOi72R0XEJ-BgZOqASk2eYA4yd7O",
accounts: [process.env.DEPLOYER_PRIVATE_KEY],
}
},
etherscan: {
// apiUrl: 'https://polygonscan.com',
apiKey: process.env.SNOWTRACE_API_KEY,
// ^ pass this as a flag, for some reason the API KEY is not working.
// npx hardhat etherscan-verify --network polygonMainnet --api-key 9E1XCKEXXE2TY8T2CA9GH7AQXKC9EY2GRB
},
verify: {
etherscan: {
// apiUrl: 'https://polygonscan.com',
// apiKey: process.env.POLYGONSCAN_API_KEY,
// ^ pass this as a flag, for some reason the API KEY is not working.
// npx hardhat etherscan-verify --network polygonMainnet --api-key 9E1XCKEXXE2TY8T2CA9GH7AQXKC9EY2GRB
}
},
};