@pump-fun/shared-contracts
Version:
Shared contracts for Pump.fun microservices.
55 lines (40 loc) • 1.21 kB
text/typescript
/**
* Type definitions for all supported deeplink URLs in the Pump.fun mobile app
*/
// Base URL schemes
type PumpScheme = "pump://";
// Solana address pattern (simplified - in reality this is a base58 string)
type MintId = string;
// UUID pattern for various IDs
type UUID = string;
// Custom scheme deeplinks (pump://)
export type PumpDeeplinks =
// Coin/Token pages
| `${PumpScheme}coin/${MintId}`
| `${PumpScheme}coin/${MintId}?livestream=${string}`
| `${PumpScheme}coin/${MintId}?${string}` // Any query params
// Profile pages
| `${PumpScheme}profile/${MintId}`
// Chat
| `${PumpScheme}chat`
| `${PumpScheme}chat/${UUID}`
// Notifications
| `${PumpScheme}notifications`
// Documentation
| `${PumpScheme}docs/livestream-moderation-policy`
// Home/Board (redirects to default route)
| `${PumpScheme}board`
// News/Trending
| `${PumpScheme}news/${MintId}`
| `${PumpScheme}trending/${MintId}`
// Bookmarks
| `${PumpScheme}bookmarks`
// Settings
| `${PumpScheme}settings`
// Auth
| `${PumpScheme}auth`
| `${PumpScheme}auth/login`
| `${PumpScheme}auth/signup`
// Funding/Deposit
| `${PumpScheme}funding`
| `${PumpScheme}funding/deposit`;