forked from MultiMessageAggregation/multibridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
53 lines (47 loc) · 1.19 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
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomicfoundation/hardhat-toolbox";
import 'hardhat-contract-sizer';
import 'hardhat-deploy';
import * as dotenv from 'dotenv';
import { HardhatUserConfig } from 'hardhat/types';
dotenv.config();
const DEFAULT_ENDPOINT = 'http://localhost:8545';
const DEFAULT_PRIVATE_KEY =
process.env.DEFAULT_PRIVATE_KEY || 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff';
const goerliEndpoint = process.env.GOERLI_ENDPOINT || DEFAULT_ENDPOINT;
const goerliPrivateKey = process.env.GOERLI_PRIVATE_KEY || DEFAULT_PRIVATE_KEY;
const config: HardhatUserConfig = {
defaultNetwork: 'hardhat',
networks: {
// Testnets
hardhat: {},
localhost: { timeout: 600000 },
goerli: {
url: goerliEndpoint,
accounts: [`0x${goerliPrivateKey}`]
},
},
namedAccounts: {
deployer: {
default: 0
}
},
solidity: {
version: '0.8.17',
settings: {
optimizer: {
enabled: true,
runs: 800
}
}
},
typechain: {
outDir: 'typechain',
target: 'ethers-v5'
},
gasReporter: {
enabled: (process.env.REPORT_GAS) ? true : false,
noColors: true
}
};
export default config;