view data fixes
This commit is contained in:
18
apps/website/lib/view-data/WalletViewData.ts
Normal file
18
apps/website/lib/view-data/WalletViewData.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { ViewData } from '@/lib/contracts/view-data/ViewData';
|
||||
import type { WalletTransactionViewData } from './WalletTransactionViewData';
|
||||
|
||||
/**
|
||||
* ViewData for Wallet
|
||||
* This is the JSON-serializable input for the Template.
|
||||
*/
|
||||
export interface WalletViewData extends ViewData {
|
||||
id: string;
|
||||
leagueId: string;
|
||||
balance: number;
|
||||
totalRevenue: number;
|
||||
totalPlatformFees: number;
|
||||
totalWithdrawn: number;
|
||||
createdAt: string;
|
||||
currency: string;
|
||||
transactions?: WalletTransactionViewData[];
|
||||
}
|
||||
Reference in New Issue
Block a user