-
Notifications
You must be signed in to change notification settings - Fork 3
/
type-extensions.ts
35 lines (29 loc) · 938 Bytes
/
type-extensions.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
// If your plugin extends types from another plugin, you should import the plugin here.
// To extend one of Hardhat's types, you need to import the module where it has been defined, and redeclare it.
import 'hardhat/types/config';
import { HttpNetworkConfig } from 'hardhat/types/config';
import 'hardhat/types/runtime';
declare module 'hardhat/types/config' {
export interface HardhatNetworkForkingUserConfig {
targetName: string;
}
export interface HardhatNetworkForkingConfig {
targetName: string;
}
export interface HttpNetworkUserConfig {
addressBook?: {
[key: string]: `0x${string}`;
};
}
export interface HttpNetworkConfig {
addressBook: {
[key: string]: `0x${string}`;
};
}
}
declare module 'hardhat/types/runtime' {
interface Network {
targetName?: string;
targetConfig?: HttpNetworkConfig;
}
}