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

14 lines • 1.09 kB
import type { HardhatRuntimeEnvironment } from 'hardhat/types/hre'; import type { NetworkConnection } from 'hardhat/types/network'; import type { Contract, Signer } from 'ethers'; import { EthersDeployOptions } from './utils/index.js'; type TransferProxyAdminOwnershipOptions = { silent?: boolean; }; export type ChangeAdminFunction = (proxyAddress: string, newAdmin: string, signer?: Signer, opts?: EthersDeployOptions) => Promise<void>; export type TransferProxyAdminOwnershipFunction = (proxyAddress: string, newOwner: string, signer?: Signer, opts?: TransferProxyAdminOwnershipOptions & EthersDeployOptions) => Promise<void>; export type GetInstanceFunction = (signer?: Signer) => Promise<Contract>; export declare function makeChangeProxyAdmin(hre: HardhatRuntimeEnvironment, defenderModule: boolean, connection: NetworkConnection): ChangeAdminFunction; export declare function makeTransferProxyAdminOwnership(hre: HardhatRuntimeEnvironment, defenderModule: boolean, connection: NetworkConnection): TransferProxyAdminOwnershipFunction; export {}; //# sourceMappingURL=admin.d.ts.map