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