feat: token launcher (pump.fun) + Newly Listed section#1
Open
adaptcom[bot] wants to merge 2 commits into
Open
Conversation
- Add /launch page: connect Phantom, fill token details + image, pay a flat $5 launch fee (SOL or USDC/USDT) to the existing pay wallet, deploy on pump.fun via PumpPortal, and get the token link + CA. - Fee is verified on-chain automatically (api/launch.js -> rpc-proxy getTransaction) before the launch is recorded; payment_tx is single-use. - New ogdex_launches table (migration) + api/launches.js feed. - Add /new 'Newly Listed' section showing launched tokens. Launched tokens are UNVERIFIED and receive NO boosts by design. - Wire nav links (desktop + mobile), Store card, and routes. - Add @solana/web3.js + @solana/spl-token + node polyfills for the browser.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Vercel Hobby caps a deployment at 12 serverless functions and each file in /api counts as one (we were at 14). Move every route into api/_routes/*.js (underscore folder = excluded from the function count) and add a single api/[...path].js dispatcher that routes by the first path segment. Result: 1 serverless function total, unlimited endpoints. Frontend /api/* URLs are unchanged. To add an endpoint: create api/_routes/<name>.js and register it in the dispatcher.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
A token launcher for OG DEX, plus a Newly Listed section.
Users connect Phantom, fill in token details + image, pay a flat $5 launch fee (SOL or USDC/USDT) to the existing pay wallet, and deploy a token on pump.fun straight from OG DEX. On success they get the token link + CA. Newly launched tokens are pulled by CA into our database and surfaced in the new Newly Listed section.
Per spec: launched tokens are unverified and receive no boosts — they only appear in Newly Listed until they're listed/boosted separately.
Flow
rpc-proxygetTransaction) before recording;payment_txis single-use.trade-local(pool: pump), signed by the mint keypair + Phantom, and broadcast.ogdex_launchesand shown in/new.Files
api/launch.js— IPFS upload, PumpPortal create, and on-chain fee verification + record.api/launches.js— Newly Listed feed (live price/mcap enrichment).supabase/launches_migration.sql—ogdex_launchestable (run in Supabase SQL editor).src/pages/Launch.tsx— launcher UI.src/pages/NewlyListed.tsx—/newsection.src/lib/solana.ts— Phantom + fee/transfer + create signing helpers.Before merge / deploy
supabase/launches_migration.sqlin the Supabase project.SUPABASE_SERVICE_ROLE_KEYis set in the OGDEX Vercel env (needed bydbInsert).api.mainnet-beta.solana.comfor blockhash/confirm; swap to a Helius/private RPC if rate limits bite.Notes / assumptions
Build:
vite buildpasses (1827 modules).