view data fixes
Some checks failed
Contract Testing / contract-tests (pull_request) Failing after 5m51s
Contract Testing / contract-snapshot (pull_request) Has been skipped

This commit is contained in:
2026-01-24 12:14:08 +01:00
parent dde77e717a
commit 046852703f
94 changed files with 1333 additions and 4885 deletions

View File

@@ -1,16 +1,22 @@
import { ViewData } from "@/lib/contracts/view-data/ViewData";
import type { WalletTransactionViewData } from './WalletTransactionViewData';
/**
* ViewData for LeagueWallet
* This is the JSON-serializable input for the Template.
*/
export interface LeagueWalletViewData {
export interface LeagueWalletViewData extends ViewData {
leagueId: string;
balance: number;
currency: string;
formattedBalance: string;
totalRevenue: number;
formattedTotalRevenue: string;
totalFees: number;
formattedTotalFees: string;
totalWithdrawals: number;
pendingPayouts: number;
formattedPendingPayouts: string;
currency: string;
transactions: WalletTransactionViewData[];
canWithdraw: boolean;
withdrawalBlockReason?: string;