-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
96 lines (94 loc) · 2.77 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
import { HardhatUserConfig } from 'hardhat/config';
import '@nomicfoundation/hardhat-toolbox';
import '@nomiclabs/hardhat-ethers';
import 'hardhat-gas-reporter';
import 'hardhat-deploy';
const config: HardhatUserConfig = {
solidity: {
version: '0.8.18',
settings: {
optimizer: {
enabled: true,
runs: 999999,
},
},
},
mocha: {
diff: true,
fullTrace: true,
slow: 50000,
timeout: 60000,
reporter:
process.env.JUNIT === 'true'
? 'mocha-junit-reporter'
: 'mocha-multi-reporters',
reporterOptions: {
reporterEnabled: 'allure-mocha, list',
allureMochaReporterOptions: {
resultsDir: './allure-results',
},
mochaFile: 'testresult.xml',
toConsole: true,
},
},
gasReporter: {
enabled: process.env.JUNIT !== 'true',
src: './src',
fast: true,
},
namedAccounts: {
deployer: {
default: 0,
1: 'ledger://m/44\'/60\'/20\'/0/0:0x9bA15E762398456ce03eAA382253b56Ed5dA882a',
97: '0x9bA15E762398456ce03eAA382253b56Ed5dA882a',
56: '0x9bA15E762398456ce03eAA382253b56Ed5dA882a',
11155111: 'ledger://m/44\'/60\'/20\'/0/0:0x9bA15E762398456ce03eAA382253b56Ed5dA882a',
80001: 'ledger://m/44\'/60\'/20\'/0/0:0x9bA15E762398456ce03eAA382253b56Ed5dA882a',
137: 'ledger://m/44\'/60\'/20\'/0/0:0x9bA15E762398456ce03eAA382253b56Ed5dA882a',
},
},
networks: {
hardhat: {
accounts: {
accountsBalance: '1000000000000000000000',
},
},
mainnet: {
url: process.env.MAINNET_RPC_URL || 'http://127.0.0.1:1248',
saveDeployments: true,
chainId: 1,
gasPrice: 23_000_000_000
},
sepolia: {
url: process.env.SEPOLIA_RPC_URL || '',
saveDeployments: true,
chainId: 11155111
},
bsc_testnet: {
url: 'http://127.0.0.1:1248',
saveDeployments: true,
chainId: 97,
timeout: 1_000_000
},
bsc: {
url: 'http://127.0.0.1:1248',
saveDeployments: true,
chainId: 56,
timeout: 1_000_000,
},
mumbai: {
url: process.env.MUMBAI_RPC_URL || '',
saveDeployments: true,
chainId: 80001
},
polygon: {
url: process.env.POLYGON_RPC_URL || '',
saveDeployments: true,
chainId: 137
}
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY || '',
},
};
export default config;