How m8s-lab/pump-launcher works
This is a Solana token-launch and trading bot. Its main workflow is to create and fund bundler/maker wallets, prepare token buys, submit the bundle through Jito, run a volume loop until the configured profit threshold, then sell and close wallets. The repository also contains Pump.fun and PumpSwap instruction-building SDKs. Several README-described stages have only small or unsampled handlers, so those components are shown without assuming their internal calls; the workflow links use README evidence where implementation was not shown.
Main entry points: app.ts Main orchestration · pumpfun.ts Pump.fun SDK · pumpswap.ts PumpSwap SDK · create-makers.ts Wallet creation
Components 24
Bot workflow
- Main orchestration
src/app.ts - Wallet creation
src/handler/create-makers.ts - Bundle buys
src/handler/bundle-buy.ts - Migration transaction
src/handler/migrate.ts - Token distribution
src/handler/distribute-token.ts - Volume trading
src/handler/buy-sell.ts - Sell and close
src/handler/sell-close.ts - Profit threshold
src/core/config/env.ts
Pump.fun
- Pump.fun SDK
src/lib/pumpfun/pumpfun.ts - Pump.fun buys
src/lib/pumpfun/buy-token.ts - Pump.fun sells
src/lib/pumpfun/sell-token.ts - Bonding curve state
src/lib/pumpfun/bondingCurveAccount.ts - Global account state
src/lib/pumpfun/globalAccount.ts - Pump.fun IDL
src/idl/pump-fun.ts
PumpSwap
- PumpSwap SDK
src/lib/pumpswap/pumpswap.ts - PumpSwap buys
src/lib/pumpswap/buy-pumpswap.ts - PumpSwap sells
src/lib/pumpswap/sell-pumpswap.ts - PumpSwap IDL
src/idl/pump-swap.ts
Runtime foundation
- Runtime configuration
src/core/config/env.ts - Solana transaction utilities
src/utils/web3.ts - Jito bundle submission
src/lib/jito.ts
Other components
- Operator
- Solana RPC
- Jito block engine
Connections 24
- Operator → Main orchestration: starts
README.md - Main orchestration → Runtime configuration: reads settings
src/app.ts - Main orchestration → Wallet creation: creates wallets
src/app.ts - Wallet creation → Solana transaction utilities: executes funding
src/handler/create-makers.ts - Main orchestration → Bundle buys: prepares buys
src/app.ts - Bundle buys → Pump.fun buys: builds buy instructions
src/handler/bundle-buy.ts - Main orchestration → Migration transaction: prepares migration
src/app.ts - Main orchestration → Jito bundle submission: submits transactions
src/app.ts - Jito bundle submission → Jito block engine: sends bundles
src/lib/jito.ts - Main orchestration → Volume trading: runs volume trades
src/app.ts - Main orchestration → Profit threshold: checks threshold
src/app.ts - Main orchestration → Sell and close: sells at threshold
src/app.ts - Main orchestration → Solana RPC: reads balance
src/app.ts - Main orchestration → Token distribution: distributes tokens
README.md - Migration transaction → PumpSwap buys: buys after migration
- Pump.fun buys → Pump.fun SDK: builds instructions
src/lib/pumpfun/buy-token.ts - Pump.fun SDK → Pump.fun IDL: uses program definition
src/lib/pumpfun/pumpfun.ts - Pump.fun SDK → Bonding curve state: reads curve state
src/lib/pumpfun/pumpfun.ts - Pump.fun SDK → Global account state: reads global state
src/lib/pumpfun/pumpfun.ts - Pump.fun sells → Pump.fun SDK: builds sell instructions
src/lib/pumpfun/sell-token.ts - PumpSwap buys → PumpSwap SDK: builds buy instructions
src/lib/pumpswap/buy-pumpswap.ts - PumpSwap sells → PumpSwap SDK: builds sell instructions
src/lib/pumpswap/sell-pumpswap.ts - PumpSwap SDK → PumpSwap IDL: uses program definition
src/lib/pumpswap/pumpswap.ts - Solana transaction utilities → Solana RPC: sends transactions
src/utils/web3.ts