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

12 lines • 928 B
import type { Deployment, RemoteDeploymentId } from '@openzeppelin/upgrades-core'; import type { ethers, ContractFactory } from 'ethers'; import { HardhatRuntimeEnvironment } from 'hardhat/types/hre'; import { EthersDeployOptions, DefenderDeployOptions, UpgradeOptions } from './options.js'; export interface DeployTransaction { deployTransaction?: ethers.TransactionResponse; } export type EthersOrDefenderDeployment = Required<Deployment> & DeployTransaction & RemoteDeploymentId; export type DefenderDeployment = Required<Deployment & RemoteDeploymentId> & DeployTransaction; export type EthersDeployment = Required<Deployment & DeployTransaction> & RemoteDeploymentId; export declare function deploy(hre: HardhatRuntimeEnvironment, opts: UpgradeOptions & EthersDeployOptions & DefenderDeployOptions, factory: ContractFactory, ...args: unknown[]): Promise<EthersOrDefenderDeployment>; //# sourceMappingURL=deploy.d.ts.map