-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
74 lines (71 loc) · 2.19 KB
/
hardhat.config.ts
File metadata and controls
74 lines (71 loc) · 2.19 KB
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
import '@nomicfoundation/hardhat-toolbox';
import '@truffle/dashboard-hardhat-plugin';
import 'hardhat-gas-reporter';
import { HardhatUserConfig } from 'hardhat/config';
import 'solidity-coverage';
import "@nomiclabs/hardhat-truffle5"
import "@nomicfoundation/hardhat-ethers";
//import 'dotenv/config';
const config: HardhatUserConfig = {
defaultNetwork: 'hardhat',
solidity: {
compilers: [
{
version: '0.8.24',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
networks: {
hardhat: {
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
},
},
};
export default config;