@fluent-wallet/hw-app-conflux
Version:
Ledger Hardware Wallet Conflux Application API
24 lines • 782 B
TypeScript
import type { EIP712FieldDefinition, EIP712ImplementationEntry } from "./types";
export type EIP712Types = Record<string, Array<{
name: string;
type: string;
}>>;
export type EIP712TypedData = {
types: EIP712Types;
primaryType: string;
domain: Record<string, unknown>;
message: Record<string, unknown>;
};
export type PreparedDefinition = {
name: string;
fields: EIP712FieldDefinition[];
};
/**
* Prepares EIP712 typed data for signing by extracting field definitions
* and building implementation entries for transmission to the device.
*/
export declare function prepareEIP712Payload(typedData: EIP712TypedData): {
definitions: PreparedDefinition[];
implementation: EIP712ImplementationEntry[];
};
//# sourceMappingURL=typedData.d.ts.map