@plasma-fi/sdk
Version:
🛠An SDK for building dapp on PlasmaSwap.
29 lines (28 loc) • 1.01 kB
TypeScript
/**
* Indicates that the pair has insufficient reserves for a desired output amount. I.e. the amount of output cannot be
* obtained by sending any amount of input.
*/
export declare class InsufficientReservesError extends Error {
readonly isInsufficientReservesError: true;
constructor();
}
/**
* Indicates that the input amount is too small to produce any amount of output. I.e. the amount of input sent is less
* than the price of a single unit of output after fees.
*/
export declare class InsufficientInputAmountError extends Error {
readonly isInsufficientInputAmountError: true;
constructor();
}
export interface ValidationErrorField {
name: string;
message: string;
code?: string | number;
}
/**
* Form (or query) validation error. Includes info about infalid fields
*/
export declare class ValidationError extends Error {
readonly fields: ValidationErrorField[];
constructor(message?: string, fields?: ValidationErrorField[]);
}