MCPcopy Create free account
hub / github.com/evolify/dumpfun / getLaunchpadsStats

Function getLaunchpadsStats

common/utils/api.ts:30–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30export async function getLaunchpadsStats() {
31 const res = await fetch(LaunchpadsStatsUrl, options)
32 const data = await res.json()
33 return (
34 data?.launchpads.map((t: LaunchpadsInfo) => {
35 const id = t.launchpad
36 .replaceAll(".", "_")
37 .replaceAll("-", "_") as Launchpad
38 const config = LaunchpadConfig[id]
39 return {
40 ...t,
41 id,
42 icon: getFavicon(config?.home),
43 url: config?.url,
44 }
45 }) || []
46 )
47}
48
49export async function getHolders(addr: string) {
50 const res = await fetch(`${HoldersUrlBase}/${addr}`, options)

Callers 1

HomeFunction · 0.90

Calls 1

getFaviconFunction · 0.85

Tested by

no test coverage detected