import 'hardhat/types/runtime'
import 'hardhat/types/config'
import { DeployConfigSpec } from './types'
declare module 'hardhat/types/config' {
interface HardhatUserConfig {
deployConfigSpec?: DeployConfigSpec<any>
}
interface HardhatConfig {
deployConfigSpec?: DeployConfigSpec<any>
}
interface ProjectPathsUserConfig {
deployConfig?: string
}
interface ProjectPathsConfig {
deployConfig?: string
}
}
declare module 'hardhat/types/runtime' {
interface HardhatRuntimeEnvironment {
deployConfig: {
[key: string]: any
}
getDeployConfig(network: string): { [key: string]: any }
}
}
-
Mark Tyneway authored
Add ability to get other network's deploy configs, good to pair with companion networks feature from hh deploy.
2efd7f3a