-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
77 lines (67 loc) · 1.36 KB
/
types.ts
File metadata and controls
77 lines (67 loc) · 1.36 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
export enum KycTier {
None = 'None',
Tier1 = 'Tier 1',
Tier2 = 'Tier 2',
}
export interface User {
id: string;
email: string;
phone: string;
kycTier: KycTier;
walletAddress: string;
}
export enum PayoutPreference {
Stablecoin = 'Stablecoin',
Fiat = 'Fiat',
}
export interface Merchant {
id: string;
name: string;
payoutPreference: PayoutPreference;
payoutAddress: string; // bank account or wallet address
ledgerBalance: number;
}
export enum TransactionStatus {
Pending = 'Pending',
Completed = 'Completed',
Failed = 'Failed',
Flagged = 'Flagged',
}
export enum Stablecoin {
USDT = 'USDT',
USDC = 'USDC',
}
export enum Network {
TRC20 = 'TRC-20 (Tron)',
Solana = 'Solana',
Polygon = 'Polygon',
BSC = 'BSC',
}
export interface Transaction {
id: string;
userId: string;
merchantId: string;
amount: number;
stablecoin: Stablecoin;
network: Network;
status: TransactionStatus;
timestamp: string;
sanctionsCheck: 'Passed' | 'Failed' | 'Pending';
}
export interface Payout {
id: string;
merchantId: string;
amount: number;
type: PayoutPreference;
destination: string;
timestamp: string;
status: 'Completed' | 'Processing';
}
export interface ComplianceLog {
id: string;
timestamp: string;
event: string;
details: string;
entityType: 'User' | 'Transaction' | 'Merchant';
entityId: string;
}