mirror of https://github.com/lukechilds/polar.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
466 B
28 lines
466 B
export enum Status {
|
|
Starting,
|
|
Started,
|
|
Stopping,
|
|
Stopped,
|
|
Error,
|
|
}
|
|
|
|
export interface CommonNode {
|
|
id: number;
|
|
name: string;
|
|
type: 'bitcoin' | 'lightning';
|
|
version: string;
|
|
status: Status;
|
|
}
|
|
|
|
export interface LightningNode extends CommonNode {
|
|
type: 'lightning';
|
|
implementation: 'LND' | 'c-lightning' | 'eclair';
|
|
backendName: string;
|
|
}
|
|
|
|
export interface LNDNode extends LightningNode {
|
|
ports: {
|
|
rest: number;
|
|
grpc: number;
|
|
};
|
|
}
|
|
|