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 • 948 B
import type { HardhatRuntimeEnvironment } from 'hardhat/types/hre'; import type { NetworkConnection } from 'hardhat/types/network'; import type { WalletClient } from '@nomicfoundation/hardhat-viem/types'; import type { Address } from 'viem'; import type { AdminOptions } from './options.js'; export type ChangeAdminFunction = (proxyAddress: Address, newAdmin: Address, walletClient?: WalletClient, opts?: AdminOptions) => Promise<void>; export type TransferProxyAdminOwnershipFunction = (proxyAddress: Address, newOwner: Address, walletClient?: WalletClient, opts?: AdminOptions & { silent?: boolean; }) => Promise<void>; export declare function makeChangeProxyAdmin(hre: HardhatRuntimeEnvironment, connection: NetworkConnection): ChangeAdminFunction; export declare function makeTransferProxyAdminOwnership(hre: HardhatRuntimeEnvironment, connection: NetworkConnection): TransferProxyAdminOwnershipFunction; //# sourceMappingURL=admin.d.ts.map