@openzeppelin/hardhat-upgrades
Version:
[](https://docs.openzeppelin.com/upgrades-plugins/hardhat-upgrades) [](https://www.npmjs.org/package/@openzeppelin/h
16 lines • 725 B
TypeScript
import 'hardhat/types/hre';
import type { HardhatUpgrades, DefenderHardhatUpgrades } from './types.js';
import type { ContractFactory } from 'ethers';
export type * from '@nomicfoundation/hardhat-ethers';
export type { HardhatDefenderConfig, NamespacedCompileErrorsRule } from './type-extensions-config.js';
export type ContractTypeOfFactory<F extends ContractFactory> = ReturnType<F['attach']> & ReturnType<F['deploy']>;
declare module 'hardhat/types/hre' {
interface HardhatRuntimeEnvironment {
upgrades: HardhatUpgrades;
defender: DefenderHardhatUpgrades;
_upgrades?: HardhatUpgrades;
_defender?: DefenderHardhatUpgrades;
}
}
export {};
//# sourceMappingURL=type-extensions.d.ts.map