hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
15 lines • 734 B
TypeScript
/**
* Parses the value of a task argument (i.e. what the user wrote on the command
* line) that holds a human-readable ABI signature, using one of the
* hardhat-utils signature parsers, like `parseAbiSignature`.
*
* Parsing errors are reported as an invalid value of that task argument.
*
* @param parse The hardhat-utils signature parser to use.
* @param value The task argument's value.
* @param argumentName The task argument's name, used to report errors.
* @returns The parsed value.
* @throws HardhatError If the value can't be parsed.
*/
export declare function parseSignatureArgument<ParsedT>(parse: (value: string) => ParsedT, value: string, argumentName: string): ParsedT;
//# sourceMappingURL=arguments.d.ts.map