xud
Version:
Exchange Union Daemon
52 lines (51 loc) • 1.3 kB
TypeScript
declare const errorCodes: {
INVALID_ARGUMENT: string;
NOMATCHING_MODE_IS_REQUIRED: string;
NODE_ALREADY_EXISTS: string;
PENDING_CALL_CONFLICT: string;
OPEN_CHANNEL_FAILURE: string;
NODE_DOES_NOT_EXIST: string;
INVALID_REQUEST: string;
NO_CHANNELS_TO_CLOSE: string;
NO_ENCRYPT_MODE_ENABLED: string;
};
declare const errors: {
INVALID_ARGUMENT: (message: string) => {
message: string;
code: string;
};
NOMATCHING_MODE_IS_REQUIRED: () => {
message: string;
code: string;
};
NODE_ALREADY_EXISTS: {
message: string;
code: string;
};
PENDING_CALL_CONFLICT: {
message: string;
code: string;
};
OPEN_CHANNEL_FAILURE: (currency: string, amount: number, errorMessage: string, nodeIdentifier?: string | undefined) => {
message: string;
code: string;
};
NODE_DOES_NOT_EXIST: {
message: string;
code: string;
};
INVALID_REQUEST: {
message: string;
code: string;
};
NO_CHANNELS_TO_CLOSE: (remoteIdentifier: string) => {
message: string;
code: string;
};
NO_ENCRYPT_MODE_ENABLED: {
message: string;
code: string;
};
};
export { errorCodes };
export default errors;