@openzeppelin/hardhat-upgrades
Version:
[](https://docs.openzeppelin.com/upgrades-plugins/hardhat-upgrades) [](https://www.npmjs.org/package/@openzeppelin/h
14 lines • 1.09 kB
TypeScript
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