UNPKG

@ledgerhq/live-common

Version:
18 lines 697 B
type ExchangeErrorData = { code: string; message: string; data?: Record<string, unknown>; }; export declare function createWrongSwapParams(params: unknown): ExchangeErrorData; export declare function createWrongSellParams(params: unknown): ExchangeErrorData; export declare function createWrongFundParams(params: unknown): ExchangeErrorData; export declare function createAccounIdNotFound(accountId: string): ExchangeErrorData; export declare class ExchangeError implements Error { readonly name = "ExchangeError"; get message(): string; get cause(): string; private context; constructor(context: ExchangeErrorData); } export {}; //# sourceMappingURL=error.d.ts.map