-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
62 lines (60 loc) · 1.71 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
import 'hardhat-gas-reporter';
import { HardhatUserConfig } from 'hardhat/config';
import '@nomicfoundation/hardhat-toolbox';
const dotenv = require('dotenv');
dotenv.config({ path: __dirname + '/.env' });
const { COINMARKETCAP_API_KEY, POLYGON_NODE_RPC_URL, POLYGON_PRIVATE_KEY, ETHERSCAN_API_KEY } = process.env;
require('solidity-coverage');
require("hardhat-contract-sizer");
import "hardhat-deploy";
import "@nomicfoundation/hardhat-verify";
const config: HardhatUserConfig = {
solidity: {
version: '0.8.18',
settings: {
viaIR: true,
optimizer: {
enabled: true,
runs: 50,
},
},
},
namedAccounts: {
deployer: {
default: 0,
},
},
networks: {
local: {
url: 'http://127.0.0.1:7545/',
allowUnlimitedContractSize: true,
chainId: 1337,
},
polygon: {
url: POLYGON_NODE_RPC_URL,
allowUnlimitedContractSize: true,
chainId: 137,
accounts: [POLYGON_PRIVATE_KEY],
}
},
gasReporter: {
enabled: true,
currency: 'USD',
gasPrice: 21,
coinmarketcap: COINMARKETCAP_API_KEY,
token: 'MATIC',
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: ETHERSCAN_API_KEY
}
// typechain: {
// outDir: 'src/types',
// target: 'ethers-v6',
// alwaysGenerateOverloads: false, // should overloads with full signatures like deposit(uint256) be generated always, even if there are no overloads?
// externalArtifacts: ['externalArtifacts/*.json'], // optional array of glob patterns with external artifacts to process (for example external libs from node_modules)
// dontOverrideCompile: false // defaults to false
// },
};
export default config;