MCPcopy Create free account

hub / github.com/Sealva-Devs/Packdraw-Bet / functions

Functions460 in github.com/Sealva-Devs/Packdraw-Bet

↓ 49 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils/cn.ts:4
↓ 46 callersFunctionaddToast
(options: ToastOptions)
src/lib/toast.ts:11
↓ 26 callersFunctionformatPriceDisplay
(value: number | string)
src/lib/utils/format.ts:11
↓ 25 callersFunctionformatCurrency
(value: number | string)
src/lib/utils/numbers.ts:42
↓ 17 callersFunctioncleanNumber
(value: number, maxDecimals: number = DEFAULT_MAX_DECIMALS)
src/lib/utils/numbers.ts:17
↓ 13 callersFunctionformatDecimal
(value: number | string, decimals: number)
src/lib/utils/numbers.ts:31
↓ 10 callersFunctiongetWalletBalance
()
src/lib/api/wallet.ts:14
↓ 9 callersFunctioncreateAudio
(src: string)
src/lib/audio.ts:19
↓ 9 callersFunctionformatPercent
( value: number | string, decimals: number = 2, asFraction: boolean = false )
src/lib/utils/numbers.ts:52
↓ 9 callersFunctiongetBattleById
(id: string)
src/lib/api/battles.ts:485
↓ 8 callersFunctionunlockAudio
()
src/lib/audio.ts:83
↓ 7 callersFunctionformatPrice
(priceStr: string)
src/lib/utils/format.ts:25
↓ 7 callersFunctionsetOutcomeAndResetWheel
(next: number)
src/components/upgrader/UpgraderPage.tsx:120
↓ 7 callersFunctionuseWebSocket
(handlers: WebSocketHandlers)
src/lib/websocket.ts:513
↓ 6 callersFunctiongetCartItems
( status: "AVAILABLE" | "SOLD" | "PENDING_FULFILLMENT" | "SHIPPED" | "CANCELLED" = "AVAILABLE" )
src/lib/api/cart.ts:42
↓ 6 callersFunctiongetPackDetails
(packId: string)
src/lib/api/packs.ts:267
↓ 6 callersFunctionplayTick
()
src/lib/audio.ts:105
↓ 5 callersFunctionclamp
(n: number, min: number, max: number)
src/components/battles/JackpotWheel.tsx:35
↓ 5 callersFunctiongenerateItems
(count: number)
src/components/packs/SlotMachine.tsx:86
↓ 5 callersFunctiongetPacks
(filters?: GetPacksFilters)
src/lib/api/packs.ts:204
↓ 5 callersFunctiongetUpgraderProvablyFairSeed
()
src/lib/api/upgrader.ts:115
↓ 5 callersFunctionrefreshBattle
()
src/components/battles/BattleDetailPage.tsx:417
↓ 5 callersMethodsetStatus
(patch: Partial<WebSocketStatusSnapshot>)
src/lib/websocket.ts:229
↓ 4 callersFunctionangleToXY
0 = top (12 o'clock), clockwise in degrees
src/components/upgrader/CircleSlider.tsx:16
↓ 4 callersFunctioncloseMenu
()
src/components/layout/MobileMenu.tsx:20
↓ 4 callersFunctiongetDrawerPackIds
()
src/components/packs/PackDrawingPage.tsx:95
↓ 4 callersFunctiongetSeatTotal
(seatIndex: number)
src/components/battles/BattleDetailPage.tsx:404
↓ 4 callersFunctioninitializeWebSocket
(token: string)
src/lib/websocket.ts:490
↓ 4 callersMethodisConnected
* Check if connected
src/lib/websocket.ts:459
↓ 4 callersFunctionmapBackendPackToPackDetails
(pack: any)
src/lib/api/packs.ts:68
↓ 4 callersFunctionmapBackendUserToFrontendUser
(u: any)
src/lib/api/auth.ts:25
↓ 4 callersFunctionsleep
(ms: number)
src/components/battles/BattleDetailPage.tsx:517
↓ 4 callersFunctionstopPlayback
()
src/components/battles/BattleDetailPage.tsx:519
↓ 4 callersFunctionunwrap
(res: any)
src/lib/api/deposits.ts:3
↓ 4 callersFunctionunwrap
(res: any)
src/lib/api/auth.ts:57
↓ 3 callersFunctionbeginRoundSpin
(roundIndex: number, seatIndices: number[], resolve?: () => void)
src/components/battles/BattleDetailPage.tsx:540
↓ 3 callersFunctionclamp
(n: number, min: number, max: number)
src/components/battles/ControlableJackpotWheel.tsx:41
↓ 3 callersFunctioncreateNewDrawerSessionId
()
src/components/packs/PackDrawingPage.tsx:91
↓ 3 callersMethoddisconnect
* Disconnect from WebSocket server
src/lib/websocket.ts:431
↓ 3 callersFunctiondrawerInit
( drawerSessionId: string, packs: string[] )
src/lib/api/packs.ts:303
↓ 3 callersFunctionformatTime
(value: number)
src/components/events/WeeklyRace.tsx:48
↓ 3 callersFunctionformatTime
(value: number)
src/components/events/MonthlyRace.tsx:48
↓ 3 callersFunctionformatTime
(value: number)
src/components/events/DailyRaffle.tsx:47
↓ 3 callersFunctionformatUsd
(amount?: string | null)
src/components/account/SalesPage.tsx:33
↓ 3 callersFunctiongetBattleCompletionTimeMs
(battle: Battle)
src/components/battles/BattlesPage.tsx:27
↓ 3 callersFunctiongetEventData
(type: EventType)
src/lib/api/events.ts:38
↓ 3 callersFunctiongetSelectedCount
(packId: string)
src/components/packs/PackSelectorModal.tsx:125
↓ 3 callersMethodgetSocket
* Get socket instance
src/lib/websocket.ts:466
↓ 3 callersFunctionhandlePointerDown
(e: React.PointerEvent)
src/components/battles/ControlableJackpotWheel.tsx:160
↓ 3 callersFunctionlogout
()
src/lib/api/auth.ts:110
↓ 3 callersFunctionplayWheelSpinning
()
src/lib/audio.ts:146
↓ 3 callersFunctionpreloadPackItemImages
(items: PreloadableItem[])
src/lib/image-preload.ts:9
↓ 3 callersFunctionrefreshBalance
()
src/components/providers/WebSocketProvider.tsx:21
↓ 3 callersFunctionstopWheelSpinning
()
src/lib/audio.ts:157
↓ 3 callersFunctionupdateProfile
(input: UpdateProfileInput)
src/lib/api/users.ts:74
↓ 2 callersFunctionbattleJoinRoom
(battleId: string)
src/lib/websocket.ts:523
↓ 2 callersFunctioncalculatePlayers
()
src/components/battles/CreateBattlePage.tsx:111
↓ 2 callersFunctionclamp
(n: number, minN: number, maxN: number)
src/components/packs/PriceRangeFilter.tsx:32
↓ 2 callersMethodconnect
* Connect to WebSocket server
src/lib/websocket.ts:242
↓ 2 callersFunctiondrawerOpen
( drawerSessionId: string, intentId: string, packs: string[], clientSeed?: string )
src/lib/api/packs.ts:349
↓ 2 callersFunctionfetchPacks
()
src/components/home/NewPacksSection.tsx:55
↓ 2 callersFunctionfetchStats
()
src/components/account/AffiliatesPage.tsx:20
↓ 2 callersFunctiongenerateWalletAddress
(cryptoId: string)
src/components/modals/DepositModal.tsx:56
↓ 2 callersFunctiongetAffiliateStats
()
src/lib/api/affiliates.ts:25
↓ 2 callersFunctiongetAngleFromCenter
Angle from top (12 o'clock) clockwise in degrees, from pointer position relative to element center
src/components/battles/ControlableJackpotWheel.tsx:52
↓ 2 callersFunctiongetBattlesPage
(filters?: GetBattlesFilters)
src/lib/api/battles.ts:448
↓ 2 callersFunctiongetCommissionEarnings
(params?: { status?: "UNCLAIMED" | "CLAIMED"; limit?: number; offset?: number; })
src/lib/api/commission.ts:39
↓ 2 callersFunctiongetCurrentUser
()
src/lib/api/users.ts:60
↓ 2 callersFunctiongetPoolTotal
()
src/components/battles/BattleDetailPage.tsx:413
↓ 2 callersFunctiongetRewards
()
src/lib/api/rewards.ts:73
↓ 2 callersMethodgetStatus
()
src/lib/websocket.ts:470
↓ 2 callersFunctionhandleCountChange
(packId: string, delta: number)
src/components/packs/PackSelectorModal.tsx:146
↓ 2 callersFunctionhandleItemToggle
(itemId: string)
src/components/modals/CartModal.tsx:41
↓ 2 callersFunctioninitializePublicWebSocket
()
src/lib/websocket.ts:498
↓ 2 callersFunctionisAudioUnlocked
()
src/lib/audio.ts:101
↓ 2 callersFunctionisValidAddressForToken
(token: string, address: string)
src/components/modals/WithdrawModal.tsx:39
↓ 2 callersFunctionitemValue
Parse numeric value from price string (e.g. "$1,234.56" or "1234.56") for sorting.
src/components/home/LiveOpensSidebar.tsx:42
↓ 2 callersFunctionmapBackendBattleToBattle
(b: BackendBattle)
src/lib/api/battles.ts:312
↓ 2 callersFunctionmapBackendUserToFrontendUser
(u: any)
src/lib/api/users.ts:26
↓ 2 callersFunctionnormalizeOdds
(it: APIPackItem)
src/components/packs/PackDrawingPage.tsx:641
↓ 2 callersFunctiononSpinEnd
()
src/components/upgrader/UpgraderPage.tsx:344
↓ 2 callersFunctionparseMoney
(value?: string)
src/components/battles/BattlesPage.tsx:21
↓ 2 callersFunctionparseMoney
(s?: string)
src/components/battles/BattleDetailPage.tsx:200
↓ 2 callersFunctionparseName
(it: APIPackItem)
src/components/packs/PackDrawingPage.tsx:657
↓ 2 callersFunctionparseValue
(it: APIPackItem)
src/components/packs/PackDrawingPage.tsx:650
↓ 2 callersFunctionplayBasicWin
()
src/lib/audio.ts:115
↓ 2 callersFunctionplayExtraWin
()
src/lib/audio.ts:135
↓ 2 callersFunctionplaySpecialWin
()
src/lib/audio.ts:125
↓ 2 callersFunctionrenderSeatColumn
(playerIndex: number)
src/components/battles/BattleDetailPage.tsx:928
↓ 2 callersFunctionstartTicketFromAngle
(startAngleDeg: number)
src/lib/api/upgrader.ts:128
↓ 2 callersFunctionsubscribeWebSocketStatus
(listener: (s: WebSocketStatusSnapshot) => void)
src/lib/websocket.ts:539
↓ 2 callersFunctiontokenLabel
(token?: string | null)
src/components/account/WithdrawalsPage.tsx:16
↓ 2 callersFunctionunwrap
(res: any)
src/lib/api/commission.ts:3
↓ 2 callersFunctionunwrap
(res: any)
src/lib/api/affiliates.ts:3
↓ 2 callersFunctionunwrap
(res: any)
src/lib/api/users.ts:19
↓ 2 callersFunctionunwrap
(res: any)
src/lib/api/withdrawals.ts:3
↓ 2 callersFunctionuseMeasuredHeight
()
src/hooks/useMeasuredHeight.ts:13
↓ 1 callersFunctionaddPack
(pack: PackDetails)
src/components/packs/PackSlots.tsx:34
↓ 1 callersFunctionapplyNextDrawerSessionIfReady
()
src/components/packs/PackDrawingPage.tsx:119
↓ 1 callersFunctionarcPath
SVG arc path from startAngle to endAngle (degrees, 0=top, clockwise). endDeg may be >360.
src/components/upgrader/CircleSlider.tsx:33
next →1–100 of 460, ranked by callers