mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-24 14:50:38 +01:00
* refactor: ♻️ change schema * chore: 🔧 small changes * chore: 🔧 cleanup * chore: 🔧 cleanup types * chore: 🔧 change to absolute imports Co-authored-by: apotdevin <apotdevincab@gmail.com>
71 lines
1.1 KiB
TypeScript
71 lines
1.1 KiB
TypeScript
export interface ForwardProps {
|
|
created_at: string;
|
|
fee: number;
|
|
fee_mtokens: string;
|
|
incoming_channel: string;
|
|
mtokens: string;
|
|
outgoing_channel: string;
|
|
tokens: number;
|
|
}
|
|
|
|
export interface ForwardCompleteProps {
|
|
forwards: ForwardProps[];
|
|
next: string;
|
|
}
|
|
|
|
export interface ListProps {
|
|
[key: string]: ForwardProps[];
|
|
}
|
|
|
|
export interface ReduceObjectProps {
|
|
fee: number;
|
|
tokens: number;
|
|
}
|
|
|
|
export interface FinalProps {
|
|
fee: number;
|
|
tokens: number;
|
|
amount: number;
|
|
}
|
|
|
|
export interface FinalList {
|
|
[key: string]: FinalProps;
|
|
}
|
|
|
|
export interface CountProps {
|
|
[key: string]: number;
|
|
}
|
|
|
|
export interface ChannelCounts {
|
|
name: string;
|
|
count: number;
|
|
}
|
|
|
|
export interface InOutProps {
|
|
tokens: number;
|
|
}
|
|
|
|
export interface InOutListProps {
|
|
[key: string]: InOutProps[];
|
|
}
|
|
|
|
export interface PaymentProps {
|
|
created_at: string;
|
|
is_confirmed: boolean;
|
|
tokens: number;
|
|
}
|
|
|
|
export interface PaymentsProps {
|
|
payments: PaymentProps[];
|
|
}
|
|
|
|
export interface InvoiceProps {
|
|
created_at: string;
|
|
is_confirmed: boolean;
|
|
received: number;
|
|
}
|
|
|
|
export interface InvoicesProps {
|
|
invoices: InvoiceProps[];
|
|
next: string;
|
|
}
|