thunderhub/server/schema/widgets/resolvers/interface.ts

72 lines
1.1 KiB
TypeScript
Raw Normal View History

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;
}