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

13 lines • 744 B
import type { ContractInfo, EngineBinding, SentTransaction } from './binding.js'; import type { UpgradeProxyOptions } from './options.js'; export interface UpgradeResult { proxyAddress: string; sent: SentTransaction; } /** * Client-neutral orchestration of `upgradeProxy`: deploys (or reuses) the new implementation, * then sends the upgrade transaction to the proxy or its admin, choosing the right entrypoint * based on the on-chain upgrade interface version. Returns the upgrade transaction. */ export declare function upgradeProxy(binding: EngineBinding, proxyAddress: string, implInfo: ContractInfo, opts: UpgradeProxyOptions, log?: import("debug").Debugger): Promise<UpgradeResult>; //# sourceMappingURL=upgrade-proxy.d.ts.map