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

31 lines
604 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;
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;
price: number;
maker_status: 'Active' | 'Seen recently' | 'Inactive';
}
export interface Book {
orders: PublicOrder[];
loading: boolean;
}
export default PublicOrder;