UNPKG

@openzeppelin/hardhat-upgrades

Version:

[![Docs](https://img.shields.io/badge/docs-%F0%9F%93%84-blue)](https://docs.openzeppelin.com/upgrades-plugins/hardhat-upgrades) [![NPM Package](https://img.shields.io/npm/v/@openzeppelin/hardhat-upgrades.svg)](https://www.npmjs.org/package/@openzeppelin/h

11 lines • 912 B
import type { HardhatRuntimeEnvironment } from 'hardhat/types/hre'; import type { NetworkConnection } from 'hardhat/types/network'; import type { StringWithArtifactContractNamesAutocompletion } from 'hardhat/types/artifacts'; import type { ValidateUpgradeOptions } from './options.js'; import { ContractAddressOrInstance } from './utils.js'; export interface ValidateUpgradeFunction { (origContractName: StringWithArtifactContractNamesAutocompletion, newContractName: StringWithArtifactContractNamesAutocompletion, opts?: ValidateUpgradeOptions): Promise<void>; (proxyOrBeaconAddress: ContractAddressOrInstance, newContractName: StringWithArtifactContractNamesAutocompletion, opts?: ValidateUpgradeOptions): Promise<void>; } export declare function makeValidateUpgrade(hre: HardhatRuntimeEnvironment, connection: NetworkConnection): ValidateUpgradeFunction; //# sourceMappingURL=validate-upgrade.d.ts.map