@atomiqlabs/sdk-lib
Version:
Basic SDK functionality library for atomiq
17 lines (16 loc) • 537 B
TypeScript
/**
* An error returned by the intermediary in a http response
*/
export declare class RequestError extends Error {
httpCode: number;
constructor(msg: string, httpCode: number);
static parse(msg: string, httpCode: number): RequestError;
}
/**
* An error indicating out of bounds (amount too high or too low) on swap initialization
*/
export declare class OutOfBoundsError extends RequestError {
min: bigint;
max: bigint;
constructor(msg: string, httpCode: number, min: bigint, max: bigint);
}