-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhardhat.config.ts
88 lines (86 loc) · 2.68 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
import { HardhatUserConfig } from "hardhat/config";
import 'hardhat-gas-reporter';
import '@typechain/hardhat';
import 'solidity-coverage';
import '@nomicfoundation/hardhat-network-helpers';
import '@nomicfoundation/hardhat-chai-matchers';
import "@truffle/dashboard-hardhat-plugin"
const config: HardhatUserConfig = {
defaultNetwork: 'hardhat',
solidity: {
compilers: [
{
version: '0.8.25',
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: 'BNB',
gasPriceApi: 'https://api.bscscan.com/api?module=proxy&action=eth_gasPrice&apikey=' + process.env.BSCSCAN_API_KEY,
coinmarketcap: process.env.CMC_API_KEY || '',
noColors: true,
reportFormat: "markdown",
outputFile: "gasReport.md",
forceTerminalOutput: true,
L1: "binance",
forceTerminalOutputFormat: "terminal"
},
};
export default config;