UNPKG

@nomicfoundation/hardhat-verify

Version:
15 lines 769 B
import type { JsonFragment } from "@ethersproject/abi"; /** * Encodes constructor arguments for a contract using its ABI. * * @param abi The ABI of the contract. * @param constructorArgs The constructor arguments to encode. * @param contract The fully qualified name of the contract. * @returns Encoded constructor arguments as an unprefixed hex string. * @throws {HardhatError} If the constructor arguments are invalid, such as: * - Mismatched number of arguments * - Invalid argument types (e.g., passing a number instead of a string) * - Overflow errors in numeric arguments */ export declare function encodeConstructorArgs(abi: JsonFragment[], constructorArgs: unknown[], contract: string): Promise<string>; //# sourceMappingURL=constructor-args.d.ts.map