-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
55 lines (47 loc) · 1.21 KB
/
hardhat.config.ts
File metadata and controls
55 lines (47 loc) · 1.21 KB
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
import hardhatToolboxMochaEthers from '@nomicfoundation/hardhat-toolbox-mocha-ethers';
import hardhatAccounts from '@solidstate/hardhat-accounts';
import hardhatContractSizer from '@solidstate/hardhat-contract-sizer';
import hardhatLicenseIdentifier from '@solidstate/hardhat-license-identifier';
import Dotenv from 'dotenv';
import { configVariable, type HardhatUserConfig } from 'hardhat/config';
Dotenv.config();
const config: HardhatUserConfig = {
plugins: [
hardhatToolboxMochaEthers,
hardhatAccounts,
hardhatContractSizer,
hardhatLicenseIdentifier,
],
solidity: {
version: '0.8.29',
settings: {
evmVersion: 'cancun',
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
mainnet: {
type: 'http',
url: configVariable('NODE_URL_MAINNET'),
accounts: [configVariable('PKEY_MAINNET')],
},
testnet: {
type: 'http',
url: configVariable('NODE_URL_TESTNET'),
accounts: [configVariable('PKEY_TESTNET')],
},
},
verify: {
etherscan: {
apiKey: configVariable('API_KEY_ETHERSCAN'),
},
},
licenseIdentifier: {
overwrite: false,
runOnCompile: true,
},
};
export default config;