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 • 849 B
import type { Abi, EngineBinding } from './binding.js'; import type { Call } from './options.js'; /** * Encodes the initializer call for a proxy deployment, using the binding's own ABI encoder. * Mirrors the resolution rules of the ethers-based implementation: an explicit `false` omits * the call, a missing initializer with no arguments is allowed to be omitted, and otherwise the * function (matched by name or signature) must exist. */ export declare function getInitializerData(binding: EngineBinding, abi: Abi, args: readonly unknown[], initializer?: string | false): string; /** * Encodes the optional `call` for `upgradeProxy`, or returns `undefined` when there is none. */ export declare function encodeCall(binding: EngineBinding, abi: Abi, call: Call | undefined): string | undefined; //# sourceMappingURL=initializer-data.d.ts.map