eip-712
Version:
Tiny library with utility functions that can help with signing and verifying EIP-712 based messages
22 lines (21 loc) • 707 B
TypeScript
import { Infer } from 'superstruct';
export declare const OPTIONS_TYPE: import("superstruct").Struct<{
domain: string;
verifyDomain: boolean;
}, {
/**
* The name of the domain struct.
*
* Default: "EIP712Domain"
*/
domain: import("superstruct").Struct<string, null>;
/**
* Whether to verify if the domain matches the EIP-712 specification. When this is disabled, you can use any arbitrary
* fields in the domain.
*
* Default: true
*/
verifyDomain: import("superstruct").Struct<boolean, null>;
}>;
export declare type Options = Partial<Infer<typeof OPTIONS_TYPE>>;
export declare const getOptions: (options: unknown) => Required<Options>;