viem
Version:
10 lines • 578 B
TypeScript
import type { AbiEvent, AbiFunction } from 'abitype';
import type { ErrorType } from '../../errors/utils.js';
import { type HashSignatureErrorType } from './hashSignature.js';
import { type ToSignatureErrorType } from './toSignature.js';
export type ToSignatureHashErrorType = HashSignatureErrorType | ToSignatureErrorType | ErrorType;
/**
* Returns the hash (of the function/event signature) for a given event or function definition.
*/
export declare function toSignatureHash(fn: string | AbiFunction | AbiEvent): `0x${string}`;
//# sourceMappingURL=toSignatureHash.d.ts.map