-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
53 lines (51 loc) · 1.33 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
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-etherscan");
require('@openzeppelin/hardhat-upgrades');
require("dotenv").config();
require("./tasks/1_sumScores");
require("./tasks/2_setBudget");
require("./tasks/3_airdrop_old");
require("./tasks/3_airdrop_new");
require("./tasks/alex");
require("./tasks/balanceOfSGN");
const { setGlobalDispatcher, ProxyAgent } = require('undici')
const proxyAgent = new ProxyAgent('http://127.0.0.1:7890')
setGlobalDispatcher(proxyAgent)
// const GOERLI_URL = process.env.GOERLI_URL;
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
currency: "USD",
},
etherscan: {
apiKey: process.env.ETHERSCAN_KEY,
},
networks: {
goerli: {
url: process.env.GOERLI_URL_ALCHEMY,
accounts: [process.env.GOERLI_PRIVATE_KEY]
},
mainnet: {
url: process.env.MAINNET_URL,
accounts: [process.env.MAINNET_PRIVATE_KEY]
},
dashboard: {
url: "http://127.0.0.1:24012/rpc",
buildName: "local"
},
sepolia: {
url: process.env.SEPOLIA_URL_ALCHEMY,
accounts: [process.env.GOERLI_PRIVATE_KEY],
},
},
};