-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathhardhat.config.ts
51 lines (47 loc) · 1.24 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
import { HardhatUserConfig } from 'hardhat/types'
import { ethers } from 'ethers'
import '@nomicfoundation/hardhat-toolbox'
import '@nomiclabs/hardhat-waffle'
import 'solidity-coverage'
import './tasks/output-candidate-manager'
import './tasks/update-bls'
const DEPLOYER_KEY: string = process.env.DEPLOYER_KEY ||
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"; // Dumy key
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: '0.5.17',
settings: {
// viaIR: true,
optimizer: { enabled: true, runs: 200 }
},
},
{
version: '0.8.12',
settings: {
// viaIR: true,
optimizer: { enabled: true, runs: 200 }
},
},
],
},
networks: {
hardhat: {
initialBaseFeePerGas: 0,
gasPrice: 0,
// Don't worry about the contract size limit.
// Instead of deploying these contracts, we embed the bytecode directly into storage.
allowUnlimitedContractSize: true,
},
localhost: {
url: "http://127.0.0.1:8545",
accounts: [DEPLOYER_KEY],
gasPrice: 1500000000 // 1.5 gwei
},
},
mocha: {
timeout: 1000 * 60 * 3, // 3 minutes
},
}
export default config