-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
65 lines (63 loc) · 1.62 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
import 'dotenv/config';
import 'hardhat-gas-reporter';
import { HardhatUserConfig } from 'hardhat/config';
import 'solidity-coverage';
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-etherscan';
import '@nomiclabs/hardhat-waffle';
import '@typechain/hardhat';
import './tasks/typechain';
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: '0.8.13',
settings: {
optimizer: {
enabled: true,
},
},
},
],
},
networks: {
hardhat: {
chainId: 1337,
forking: {
// url: 'https://api.avax.network/ext/bc/C/rpc',
url: 'https://api.avax-test.network/ext/bc/C/rpc',
},
gas: 8000000,
},
fuji: {
url: 'https://api.avax-test.network/ext/bc/C/rpc',
chainId: 43113,
accounts: process.env.FUJI_PRIVATE_KEY ? [process.env.FUJI_PRIVATE_KEY] : [],
},
mainnet: {
url: 'https://api.avax.network/ext/bc/C/rpc',
chainId: 43114,
accounts: process.env.MAINNET_PRIVATE_KEY ? [process.env.MAINNET_PRIVATE_KEY] : [],
},
},
gasReporter: {
enabled: !!process.env.REPORT_GAS,
currency: 'USD',
excludeContracts: ['vendor/'],
token: 'AVAX',
gasPriceApi: 'https://api.snowtrace.io/api?module=proxy&action=eth_gasPrice',
coinmarketcap: process.env.COINTMARKETCAP_KEY,
},
etherscan: {
apiKey: {
avalanche: process.env.SNOWTRACE_API_KEY,
avalancheFujiTestnet: process.env.SNOWTRACE_API_KEY,
},
},
typechain: {
outDir: 'typings',
target: 'ethers-v5',
},
};
// noinspection JSUnusedGlobalSymbols
export default config;