robosats/frontend/src/models/Book.model.ts
koalasat 560def2966
WIP
2024-10-18 12:40:01 +02:00

35 lines
767 B
TypeScript

export interface PublicOrder {
id: number;
created_at: Date;
expires_at: Date;
type: number;
currency: number | null;
amount: string;
base_price?: number;
has_range: boolean;
min_amount: string | null;
max_amount: string | null;
payment_method: string;
is_explicit: false;
premium: string;
satoshis: number | null;
satoshis_now: number | null;
latitude: number | null;
longitude: number | null;
bond_size: string;
maker: number | null;
escrow_duration: number;
maker_nick: string;
maker_hash_id: string;
price: number | null;
maker_status?: 'Active' | 'Seen recently' | 'Inactive';
coordinatorShortAlias?: string;
}
export interface Book {
orders: PublicOrder[];
loading: boolean;
}
export default PublicOrder;