-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhardhat.config.ts
102 lines (93 loc) · 2.2 KB
/
hardhat.config.ts
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import { HardhatUserConfig } from "hardhat/config";
// import "@nomicfoundation/hardhat-toolbox";
// import '@openzeppelin/hardhat-upgrades';
import "@nomiclabs/hardhat-web3";
import "@nomiclabs/hardhat-ethers";
import "@nomicfoundation/hardhat-verify";
import "./tasks/deploydobBase"
import "./tasks/deployNewLogic"
import "./tasks/upgradePool"
import "./tasks/upgradePoolMaster"
import "./tasks/deploydobToken"
import "./tasks/upgradeTokenSaleMarket"
import "./tasks/deployPools"
import "./tasks/estimateGasDeployDobBase"
import "./tasks/getInfo"
import "./tasks/tsmSetSale"
import "./tasks/deployParticipationToken"
import "./tasks/tsmBuyToken"
require('hardhat-contract-sizer');
require('dotenv').config()
// require("@nomiclabs/hardhat-etherscan");
const config: HardhatUserConfig = {
solidity: "0.8.17",
networks: {
customTest: { allowUnlimitedContractSize: true }
}
};
export default config;
module.exports = {
solidity: {
version: "0.8.11",
settings: {
optimizer: {
enabled: true,
runs: 10,
},
},
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true,
only: [],
},
networks: {
polygon: {
url: process.env.POLYGON_URL || "",
accounts:
process.env.ACCOUNT_POLYGON?.split(",")
},
amoy: {
url: process.env.AMOY_URL || "",
accounts:
process.env.ACCOUNT_AMOY?.split(",")
},
alfajores: {
url: "https://alfajores-forno.celo-testnet.org",
accounts:
process.env.ACCOUNT_ALFAJORES?.split(",")
},
hardhat: {
accounts: {
initialIndex: 0,
count: 105,
},
hardfork: "london"
},
ethsepolia: {
url: process.env.ETH_SEPOLIA_URL || "",
accounts:
process.env.ACCOUNT_ETH_SEPOLIA?.split(",")
},
avaxfuji: {
url: "https://api.avax-test.network/ext/bc/C/rpc",
accounts:
process.env.ACCOUNT_AVAX_FUJI?.split(",")
},
base: {
url: "https://mainnet.base.org/",
accounts:
process.env.ACCOUNT_BASE?.split(",")
}
},
etherscan: {
apiKey: {
base: process.env.BASE_API_KEY
}
},
sourcify: {
enabled: true
}
};