You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
843 B
TypeScript
39 lines
843 B
TypeScript
import { LoopStateEnum, LoopTypeEnum } from '../services/consts-enums-functions';
|
|
|
|
export interface LoopTerms {
|
|
min_swap_amount?: string;
|
|
max_swap_amount?: string;
|
|
}
|
|
|
|
export interface LoopQuote {
|
|
amount?: number;
|
|
swap_fee_sat?: string;
|
|
htlc_sweep_fee_sat?: string;
|
|
htlc_publish_fee_sat?: string;
|
|
prepay_amt_sat?: string;
|
|
cltv_delta?: number;
|
|
swap_payment_dest?: string;
|
|
off_chain_swap_routing_fee_percentage?: number;
|
|
}
|
|
|
|
export interface LoopStatus {
|
|
htlc_address?: string;
|
|
id_bytes?: string;
|
|
id?: string;
|
|
error?: any;
|
|
}
|
|
|
|
export interface LoopSwapStatus {
|
|
type?: LoopTypeEnum;
|
|
cost_server?: string;
|
|
cost_offchain?: string;
|
|
htlc_address?: string;
|
|
state?: LoopStateEnum;
|
|
amt?: string;
|
|
cost_onchain?: string;
|
|
initiation_time?: number;
|
|
id_bytes?: string;
|
|
last_update_time?: number;
|
|
id?: string;
|
|
}
|