How whisdev/rust-copy-trading works
This repository presents a Solana copytrading bot: its intended workflow is to start from configuration, monitor target-wallet trades, identify swaps, then submit corresponding trades through DEX and fast-transaction integrations. The checked-in tree is incomplete relative to the README and entry point: monitor, config, and several documented integrations are absent. Edges for those stages reflect README documentation, not inspected implementations; the separate barter_trade tree is not part of the root package’s declared runtime.
Main entry points: engine/mod.rs Swap execution · main.rs Bot entry · services/mod.rs Shred stream · token.rs Token model
Components 13
Bot entry
- Bot entry
src/main.rs - Runtime config
Copy workflow
- Trade monitor
- Swap execution
src/engine/mod.rs - Token model
src/core/token.rs - Transaction logic
src/core/tx.rs
Chain integrations
- Pump.fun DEX
src/dex/pump_fun.rs - Raydium DEX
src/dex/raydium.rs - Jito service
- Shred stream
src/services/mod.rs
Other components
- Operator
- Solana network
- Target wallets
Connections 14
- Operator → Bot entry: starts
- Bot entry → Runtime config: loads
- Bot entry → Trade monitor: starts
- Target wallets → Trade monitor: wallet trades
- Solana network → Trade monitor: market feed
- Trade monitor → Swap execution: requests copies
- Swap execution → Token model: uses model
- Swap execution → Transaction logic: builds transaction
- Swap execution → Pump.fun DEX: routes swap
- Swap execution → Raydium DEX: routes swap
- Swap execution → Jito service: submits fast
- Solana network → Shred stream: streams shreds
- Shred stream → Trade monitor: feeds trades
- Jito service → Solana network: submits transaction