-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
103 lines (101 loc) · 4.14 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
103
import "@truffle/dashboard-hardhat-plugin"
import "hardhat-gas-reporter"
import { HardhatUserConfig } from "hardhat/config"
import "solidity-coverage"
import "hardhat-dependency-compiler"
import '@typechain/hardhat';
import '@nomicfoundation/hardhat-network-helpers';
import '@nomicfoundation/hardhat-chai-matchers';
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
solidity: {
version: "0.8.26",
settings: {
evmVersion: 'istanbul',
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {
allowUnlimitedContractSize: true,
blockGasLimit: 130_000_000,
},
ropsten: {
url: "https://ropsten.infura.io/v3/your-infura-project-id",
accounts: [], // Replace with your testnet accounts' private keys
},
rinkeby: {
url: "https://rinkeby.infura.io/v3/your-infura-project-id",
accounts: [], // Replace with your testnet accounts' private keys
},
kovan: {
url: "https://kovan.infura.io/v3/your-infura-project-id",
accounts: [], // Replace with your testnet accounts' private keys
},
goerli: {
url: "https://goerli.infura.io/v3/your-infura-project-id",
accounts: [], // Replace with your testnet accounts' private keys
},
bsc_testnet: {
url: "https://data-seed-prebsc-1-s1.binance.org:8545",
chainId: 97,
accounts: [], // Replace with your testnet accounts' private keys
},
polygon_mumbai: {
url: "https://rpc-mumbai.matic.today",
accounts: [], // Replace with your testnet accounts' private keys
},
fantom_testnet: {
url: "https://rpc.testnet.fantom.network",
accounts: [], // Replace with your testnet accounts' private keys
},
avalanche_fuji: {
url: "https://api.avax-test.network/ext/bc/C/rpc",
accounts: [], // Replace with your testnet accounts' private keys
},
harmony_testnet: {
url: "https://api.s0.b.hmny.io",
accounts: [], // Replace with your testnet accounts' private keys
},
mainnet: {
url: "https://mainnet.infura.io/v3/your-infura-project-id",
accounts: [], // Replace with your mainnet accounts' private keys
},
},
gasReporter: {
enabled: true,
showMethodSig: true,
currency: 'USD',
token: 'ETH',
gasPriceApi: 'https://api.etherscan.io/api?module=proxy&action=eth_gasPrice&apikey=' + process.env.ETHERSCAN_API_KEY,
coinmarketcap: process.env.CMC_API_KEY || '',
noColors: true,
reportFormat: "markdown",
outputFile: "gasReport.md",
forceTerminalOutput: true,
L1: "ethereum",
forceTerminalOutputFormat: "terminal"
},
dependencyCompiler: {
paths: [
'@poolzfinance/collateral-provider/contracts/CollateralProvider.sol',
'@poolzfinance/refund-provider/contracts/RefundProvider.sol',
'@poolzfinance/lockdeal-nft/contracts/LockDealNFT/LockDealNFT.sol',
'@poolzfinance/lockdeal-nft/contracts/SimpleProviders/DealProvider/DealProvider.sol',
'@poolzfinance/lockdeal-nft/contracts/SimpleProviders/LockProvider/LockDealProvider.sol',
'@poolzfinance/lockdeal-nft/contracts/SimpleProviders/TimedDealProvider/TimedDealProvider.sol',
'@poolzfinance/builders/contracts/SimpleBuilder/SimpleBuilder.sol',
'@poolzfinance/builders/contracts/SimpleRefundBuilder/SimpleRefundBuilder.sol',
'@poolzfinance/vault-manager/contracts/VaultManager/VaultManager.sol',
'@poolzfinance/vault-manager/contracts/test/ERC20Token.sol',
'@poolzfinance/dispenser-provider/contracts/DispenserProvider.sol',
'@poolzfinance/invest-provider/contracts/InvestProvider.sol',
'@poolzfinance/whitelist/contracts/WhiteList.sol',
'@poolzfinance/whitelist-router/contracts/WhiteListRouter.sol',
],
}
}
export default config