robosats/frontend/src/models/Book.model.ts

35 lines
704 B
TypeScript
Raw Normal View History

export interface PublicOrder {
2022-09-09 17:18:04 +00:00
id: number;
created_at: Date;
expires_at: Date;
type: number;
currency: number;
amount: string;
base_amount?: number;
has_range: boolean;
min_amount: number;
max_amount: number;
payment_method: string;
is_explicit: false;
premium: number;
satoshis: number;
satoshis_now: number;
latitude: number;
longitude: number;
2022-10-02 20:54:45 +00:00
bond_size: number;
2022-09-09 17:18:04 +00:00
maker: number;
escrow_duration: number;
maker_nick: string;
2023-12-02 11:31:21 +00:00
maker_hash_id: string;
2022-09-09 17:18:04 +00:00
price: number;
maker_status: 'Active' | 'Seen recently' | 'Inactive';
coordinatorShortAlias?: string;
}
export interface Book {
orders: PublicOrder[];
loading: boolean;
}
export default PublicOrder;