| 28 | } |
| 29 | |
| 30 | export 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 | |
| 49 | export async function getHolders(addr: string) { |
| 50 | const res = await fetch(`${HoldersUrlBase}/${addr}`, options) |