MCPcopy Create free account

hub / github.com/AmazingAng/PolyWorld / functions

Functions576 in github.com/AmazingAng/PolyWorld

↓ 2 callersFunctioncleanupExpiredSessions
(now: number)
src/lib/tradeSession.ts:25
↓ 2 callersFunctioncommonPrefix
(strs: string[])
src/lib/marketLabels.ts:26
↓ 2 callersFunctioncomputeImpactScores
( markets: ProcessedMarket[] )
src/lib/impact.ts:52
↓ 2 callersFunctioncomputeIndicators
( db: Database.Database, eventIds: string[], )
src/lib/indicators.ts:15
↓ 2 callersFunctioncomputeSmartMoney
Compute smart money flow for all markets with recent whale trades
src/lib/sync.ts:382
↓ 2 callersFunctiondecimalPlaces
(num: number)
src/lib/tradeAmounts.ts:6
↓ 2 callersFunctiondistanceToRect
(clientX: number, clientY: number, rect: DOMRect)
src/hooks/usePanelDrag.ts:253
↓ 2 callersFunctionensureOccupancyRows
(occupancy: boolean[][], rowCount: number, cols: number)
src/hooks/usePanelDrag.ts:142
↓ 2 callersFunctioneonetToPoints
(data: any, wildfiresOnly: boolean)
src/app/api/overlay/route.ts:77
↓ 2 callersFunctionfetchBinancePrice
(symbol: string)
src/lib/priceMonitor.ts:13
↓ 2 callersFunctionfetchEventsFromAPI
(locale?: string)
src/lib/polymarket.ts:7
↓ 2 callersFunctionfetchLatest
()
src/components/TradeModal.tsx:97
↓ 2 callersFunctionfetchLeaderboard
(limit = 50, timePeriod: LeaderboardTimePeriod = "all")
src/lib/smartMoney.ts:61
↓ 2 callersFunctionfetchOrders
()
src/components/WalletButton.tsx:407
↓ 2 callersFunctionfetchPositions
()
src/components/WalletButton.tsx:353
↓ 2 callersFunctionfetchTraderPositions
(wallet: string)
src/lib/smartMoney.ts:355
↓ 2 callersFunctionfetchTraderValue
(wallet: string)
src/lib/smartMoney.ts:431
↓ 2 callersFunctionfmt
(ms: number)
src/components/Sparkline.tsx:341
↓ 2 callersFunctionfmt
(d: Date)
src/app/api/overlay/route.ts:368
↓ 2 callersFunctionfmtBal
Format dollar amount: 3 significant digits with k/m suffix on mobile, full on desktop
src/components/WalletButton.tsx:31
↓ 2 callersFunctionformatTime
(ts: number, t?: (key: string, vars?: Record<string, string | number>) => string)
src/components/AlertManager.tsx:9
↓ 2 callersFunctiongeolocate
( title: string, _description?: string // eslint-disable-line @typescript-eslint/no-unused-vars )
src/lib/geo.ts:303
↓ 2 callersFunctionget
(obj: Record<string, unknown>, path: string)
src/i18n/index.tsx:21
↓ 2 callersFunctiongetMarketOrderRawAmounts
(side: MarketSide, amount: number, price: number)
src/lib/tradeAmounts.ts:33
↓ 2 callersFunctiongetOnChainUsdcBalance
(address: string)
src/app/api/trade/balance/route.ts:43
↓ 2 callersFunctiongetSessionOrError
(sessionToken: unknown)
src/app/api/trade/orders/route.ts:10
↓ 2 callersFunctioninitHls
()
src/components/HLSPlayer.tsx:44
↓ 2 callersFunctionisChunkFailure
(msg: string)
src/components/ChunkLoadRecovery.tsx:16
↓ 2 callersFunctionlookupProxyWallet
(address: string)
src/lib/tradeAuth.ts:74
↓ 2 callersFunctionlttb
Largest-Triangle-Three-Buckets downsampling
src/components/Sparkline.tsx:34
↓ 2 callersFunctionmakeAbbrev
(entity: string)
src/lib/marketLabels.ts:5
↓ 2 callersFunctionmapApiTrade
( t: Awaited<ReturnType<typeof fetchMarketTrades>>[number], smartAddresses: Set<string>, )
src/app/api/smart-money/route.ts:65
↓ 2 callersFunctionmatchNewsToMarkets
( newsTitle: string, summary: string | null, markets: Array<{ id: string; title: string }> )
src/lib/ai.ts:133
↓ 2 callersFunctionmergeTransferredOrder
( fullOrder: string[], projectedVisibleOrder: string[], excludedIds: string[] = [], )
src/hooks/usePanelDrag.ts:319
↓ 2 callersFunctionnormalizeAmountPrecision
(value: number)
src/lib/tradeAmounts.ts:22
↓ 2 callersFunctionnotifyHeaderBalanceRefresh
()
src/components/OrderForm.tsx:67
↓ 2 callersFunctionopenTrade
(tokenId: string, price: number, outcomeName: string, title: string, side: "BUY" | "SELL", yesToken?: { tokenI
src/components/MarketPreview.tsx:107
↓ 2 callersFunctionparseLeaderboardEntries
* Actual API response shape (array): * { rank: "1", proxyWallet: "0x...", userName: "Theo4", vol: 43251303, pnl: 22053933, profileImage: "" }
src/lib/smartMoney.ts:45
↓ 2 callersFunctionparseOutcomePrices
(raw: string[] | string | undefined)
src/lib/arbitrage.ts:17
↓ 2 callersFunctionparseTokenIds
(m: PolymarketMarket)
src/components/MarketPreview.tsx:25
↓ 2 callersFunctionparseTraderPosition
(p: TraderPositionApiEntry, redeemed: boolean)
src/lib/smartMoney.ts:317
↓ 2 callersFunctionprocessEvents
(events: PolymarketEvent[])
src/lib/polymarket.ts:101
↓ 2 callersFunctionproxyLocalStorageKey
(eoa: string)
src/lib/tradeAuth.ts:27
↓ 2 callersFunctionreadMarketsFromDb
()
src/lib/sync.ts:463
↓ 2 callersFunctionreadTradesFromDb
Read trades from DB (fast, no external API)
src/app/api/smart-money/route.ts:139
↓ 2 callersFunctionreloadOnce
()
src/components/ChunkLoadRecovery.tsx:10
↓ 2 callersFunctionrenderDesktopPanel
(key: string)
src/app/page.tsx:1513
↓ 2 callersFunctionrenderPanel
(key: string)
src/app/page.tsx:853
↓ 2 callersFunctionresolveCountryName
(location: string)
src/lib/countries.ts:174
↓ 2 callersFunctionrunFullLeaderboardSync
()
src/lib/smartMoneySync.ts:17
↓ 2 callersFunctionrunNewsSync
()
src/lib/newsSync.ts:21
↓ 2 callersFunctionrunResolutionSync
()
src/lib/resolutionSync.ts:66
↓ 2 callersFunctionrunSmartMoneySync
()
src/lib/smartMoneySync.ts:102
↓ 2 callersFunctionrunTweetsSync
()
src/lib/tweetsSync.ts:26
↓ 2 callersFunctionselectToken
(token: TokenInfo)
src/components/TradeModal.tsx:307
↓ 2 callersFunctionsetApprovedFlag
(proxy: string)
src/lib/tradeAuth.ts:59
↓ 2 callersFunctionsetCachedProxyWallet
(eoa: string, proxy: string)
src/lib/tradeAuth.ts:69
↓ 2 callersFunctionsetsEqual
(a?: Set<T>, b?: Set<T>)
src/components/WorldMap.tsx:204
↓ 2 callersFunctionsortLevels
(levels: BookLevel[], side: "bids" | "asks")
src/app/api/trade/market-price/route.ts:7
↓ 2 callersFunctionsplitPolygonRings
( rings: [number, number][][] )
src/lib/topojson.ts:113
↓ 2 callersFunctionstoreTrades
(trades: Awaited<ReturnType<typeof fetchMarketTrades>>, smartOnly: boolean)
src/lib/smartMoneySync.ts:159
↓ 2 callersFunctiontruncAddr
(addr: string)
src/components/SmartMoneyPanel.tsx:19
↓ 2 callersFunctiontruncAddr
(addr: string)
src/components/WhaleTradesPanel.tsx:14
↓ 2 callersFunctionuseColResize
( colSpan: number, onColSpanChange?: (span: number) => void, maxSpan = 2 )
src/hooks/useColResize.ts:9
↓ 2 callersFunctionusePanelSpans
(storageKey: string, defaultSpan: number)
src/hooks/usePanelSpans.ts:9
↓ 2 callersFunctionuseRowResize
( rowSpan: number, onRowSpanChange?: (span: number) => void )
src/hooks/useRowResize.ts:9
↓ 2 callersFunctionuseSpanResize
({ axis, span, onChange, maxSpan }: SpanResizeOptions)
src/hooks/useSpanResize.ts:21
↓ 2 callersFunctionwikidataSPARQL
( sparql: string, labelKey: string, logTag: string, centroidOffset: [number, number] = [0, 0], )
src/app/api/overlay/route.ts:9
↓ 2 callersFunctionzoomToTier
(zoom: number)
src/components/WorldMap.tsx:153
↓ 1 callersFunctionaddCountryInteraction
(map: maplibregl.Map)
src/components/WorldMap.tsx:1404
↓ 1 callersFunctionaddMarketLayers
(map: maplibregl.Map, beforeId?: string)
src/components/WorldMap.tsx:917
↓ 1 callersFunctionaddOverlayLayers
(map: maplibregl.Map, beforeId?: string)
src/components/WorldMap.tsx:797
↓ 1 callersFunctionaggregateFlowByCategory
( db: Database.Database, hoursBack = 24, )
src/lib/flowAnalysis.ts:30
↓ 1 callersFunctionassignGroup
(daysUntil: number)
src/components/CalendarPanel.tsx:32
↓ 1 callersFunctionassignRef
(ref: React.Ref<T> | undefined, value: T | null)
src/components/MarketsPanel.tsx:42
↓ 1 callersFunctionbuildCalendar
(markets: ProcessedMarket[], categoryFilter: Category | "All", now: Date)
src/components/CalendarPanel.tsx:58
↓ 1 callersFunctionbuildContainerMetrics
(container: HTMLElement, maxCols: number)
src/hooks/usePanelDrag.ts:115
↓ 1 callersFunctionbuildCsp
()
src/middleware.ts:110
↓ 1 callersFunctionbuildPreviewRects
( metrics: ContainerMetrics, items: LayoutItem[], dragItem: LayoutItem, cols: number, )
src/hooks/usePanelDrag.ts:230
↓ 1 callersFunctionbuildTopWalletSet
* Build a lookup of top-N wallets by PnL from the leaderboard.
src/lib/signalEngine.ts:115
↓ 1 callersFunctionbuilderHeaders
(method: string, path: string, body?: string)
src/app/api/trade/approve/route.ts:128
↓ 1 callersFunctioncanPlaceAt
( occupancy: boolean[][], row: number, col: number, colSpan: number, rowSpan: number, cols: number
src/hooks/usePanelDrag.ts:148
↓ 1 callersFunctioncancelAllOpenOrders
(orderIds: string[], sessionToken: string)
src/lib/openOrders.ts:49
↓ 1 callersFunctioncandidateContainsCell
(candidate: PreviewCandidate, row: number, col: number)
src/hooks/usePanelDrag.ts:287
↓ 1 callersFunctioncheckGeoBlock
Check Polymarket geo-restriction directly from the browser. * Must be called from client so Polymarket sees the user's real IP. * @see https://doc
src/components/OrderForm.tsx:92
↓ 1 callersFunctioncheckPriceProximity
( eventId: string, currentPrice: number, thresholds: PriceThreshold[], symbol: string, provider: str
src/lib/priceMonitor.ts:228
↓ 1 callersFunctioncheckRateLimit
( ip: string, tier: keyof typeof rateMaps )
src/middleware.ts:78
↓ 1 callersFunctionclamp
(v: number, min: number, max: number)
src/app/api/sentiment/route.ts:14
↓ 1 callersFunctioncleanup
()
src/middleware.ts:52
↓ 1 callersFunctionclobParams
Map hours → CLOB interval + fidelity (minutes)
src/app/api/snapshots/route.ts:18
↓ 1 callersFunctioncloseDb
()
src/lib/db.ts:27
↓ 1 callersFunctioncommonSuffix
(strs: string[])
src/lib/marketLabels.ts:39
↓ 1 callersFunctioncomputeMACD
(bars: OHLCBar[])
src/components/ChartPanel.tsx:74
↓ 1 callersFunctioncomputeSafeTxHash
(safeAddress: string, tx: ReturnType<typeof buildMultisend>, nonce: string)
src/app/api/trade/approve/route.ts:92
↓ 1 callersFunctioncomputeSentiment
()
src/app/api/sentiment/route.ts:26
↓ 1 callersFunctioncreateTradeSession
(input: { address: string; proxyAddress: string; creds: L2Creds; })
src/lib/tradeSession.ts:34
↓ 1 callersFunctiondecodeArc
(arcIndex: number)
src/lib/topojson.ts:11
↓ 1 callersFunctiondedupByTime
(data: T[])
src/components/ChartPanel.tsx:111
↓ 1 callersFunctiondeleteTradeSession
(sessionToken: string)
src/lib/tradeSession.ts:85
↓ 1 callersFunctionderiveL2Creds
( signerAddress: string, // EOA address (wallet) proxyAddress: string, // Proxy wallet address (where
src/lib/polymarketCLOB.ts:57
← previousnext →101–200 of 576, ranked by callers