-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
41 lines (37 loc) · 1022 Bytes
/
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
import { HardhatUserConfig } from 'hardhat/config';
import { HardhatNetworkUserConfig } from 'hardhat/types';
import '@nomicfoundation/hardhat-toolbox';
import 'hardhat-contract-sizer';
import { config } from 'dotenv';
const { MNEMONIC, INFURA_ID_PROJECT } = config().parsed || {};
const EVM_VERSION = 'paris';
const hardhatConfig: HardhatUserConfig = {
solidity: {
version: '0.8.20',
settings: {
evmVersion: EVM_VERSION,
optimizer: {
enabled: true,
runs: 1_000_000,
},
metadata: {
bytecodeHash: 'none',
},
},
},
networks: {
hardhat: {
allowUnlimitedContractSize: true,
} as HardhatNetworkUserConfig,
localGeth: {
url: `http://127.0.0.1:8545`,
chainId: 1337,
gas: 10000000,
},
mainnet: {
url: `https://mainnet.infura.io/v3/${INFURA_ID_PROJECT}`,
accounts: [`0x${MNEMONIC || '1000000000000000000000000000000000000000000000000000000000000000'}`],
},
},
};
export default hardhatConfig;