forked from smartcontractkit/hardhat-chainlink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
50 lines (47 loc) · 1.36 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
import "@nomicfoundation/hardhat-toolbox";
import "@typechain/hardhat";
import { HardhatUserConfig } from "hardhat/config";
const commonCompilerSettings = {
optimizer: {
enabled: true,
runs: 200,
},
};
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.18",
settings: commonCompilerSettings,
},
{
version: "0.7.6",
settings: commonCompilerSettings,
},
{
version: "0.4.24",
settings: commonCompilerSettings,
},
],
},
typechain: {
outDir: "./types",
target: "ethers-v6",
alwaysGenerateOverloads: false,
externalArtifacts: [
"./chainlink-artifacts/AggregatorProxyInterface.json",
"./chainlink-artifacts/KeeperRegistry1_2.json",
"./chainlink-artifacts/KeeperRegistry1_3.json",
"./chainlink-artifacts/KeeperRegistry2_0.json",
"./chainlink-artifacts/KeeperRegistrar.json",
"./chainlink-artifacts/KeeperRegistrar2_0.json",
"./chainlink-artifacts/LinkTokenInterface.json",
"./chainlink-artifacts/AggregatorV2V3Interface.json",
"./chainlink-artifacts/FeedRegistryInterface.json",
"./chainlink-artifacts/TypeAndVersionInterface.json",
"./chainlink-artifacts/OptimismSequencerUptimeFeed.json",
"./chainlink-artifacts/VRFCoordinatorV2.json",
],
},
};
export default config;