forked from Northgate-Systems/RemitX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
49 lines (44 loc) · 854 Bytes
/
Copy pathtypes.ts
File metadata and controls
49 lines (44 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
export interface Corridor {
id: string;
from: string;
to: string;
fromCurrency: string;
toCurrency: string;
symbol: string;
}
export interface PathPaymentQuote {
sourceAsset: string;
destinationAsset: string;
sourceAmount: string;
destinationAmount: string;
path: string[];
}
export interface AnchorFee {
anchor: string;
fixedFee: number;
percentageFee: number;
minAmount?: number;
}
export interface TransactionRecord {
id: string;
timestamp: string;
from: string;
to: string;
amount: string;
currency: string;
status: 'completed' | 'pending' | 'failed';
}
export interface ExchangeRate {
pair: string;
rate: number;
change: string;
trend: 'up' | 'down';
lastUpdated: string;
}
export interface AnchorOption {
id: string;
name: string;
corridor: string;
fee: number;
fixed: number;
}