view data fixes
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
import { ViewData } from "../contracts/view-data/ViewData";
|
||||
import type { WalletTransactionViewData } from './WalletTransactionViewData';
|
||||
|
||||
|
||||
export interface LeagueWalletTransactionViewData extends ViewData {
|
||||
id: string;
|
||||
type: 'deposit' | 'withdrawal' | 'sponsorship' | 'prize';
|
||||
amount: number;
|
||||
formattedAmount: string;
|
||||
amountColor: string;
|
||||
description: string;
|
||||
createdAt: string;
|
||||
formattedDate: string;
|
||||
status: 'completed' | 'pending' | 'failed';
|
||||
statusColor: string;
|
||||
typeColor: string;
|
||||
}
|
||||
/**
|
||||
* ViewData for LeagueWallet
|
||||
* This is the JSON-serializable input for the Template.
|
||||
*/
|
||||
export interface LeagueWalletViewData {
|
||||
balance: number;
|
||||
currency: string;
|
||||
totalRevenue: number;
|
||||
totalFees: number;
|
||||
totalWithdrawals: number;
|
||||
pendingPayouts: number;
|
||||
transactions: WalletTransactionViewData[];
|
||||
canWithdraw: boolean;
|
||||
withdrawalBlockReason?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user