@node-lightning/graph
Version:
Lightning Network P2P Graph
17 lines (16 loc) • 511 B
TypeScript
/// <reference types="node" />
import { ShortChannelId } from "@node-lightning/core";
export declare enum GraphErrorCode {
ChannelNotFound = 1,
NodeNotFound = 2
}
export declare abstract class GraphError extends Error {
code: GraphErrorCode;
constructor(code: GraphErrorCode, message: string);
}
export declare class ChannelNotFoundError extends GraphError {
constructor(scid: ShortChannelId);
}
export declare class NodeNotFoundError extends GraphError {
constructor(nodeId: Buffer);
}