The Pump.fun Smart Contract forking is an innovative platform designed to allow users to create tokens, markets, and pools on Raydium/Meteora. This comprehensive project offers not only same features of pump.fun but also more for managing token authorities, customizing token properties, white list and handling liquidity pools with advanced functionalities.
- Token Management: Create tokens with customizable names, symbols, and images. Revoke token authority as needed.
- Market Creation: Set up markets for trading tokens with ease.
- Pool Management: Add and remove liquidity in Raydium pools. Burn SPL tokens efficiently.
- Dashboard: Display detail information of token listed on pump.fun.
- Discord Integration: Receive real-time notifications on Discord via webhooks.
- Fee: Handling gather fee from user who use our smart contract.
- π Migration to Meteora/Raydium π: Migration to Meteora/Raydium using CPI call.
- π Whiltelist π: Add user to whitelist to add more permission to each user.
- π Spam Detection π: Automatically catch and handle spammers making transactions to the OpenBook market.
Main Wallet: en1omyBPyReHeUQfRvFqPtDPrzwQWSuKQMRctXLFmwh
Create Global PDA: LhMyuC3uQbN3rxMwRHFZ17o6VGKtuyztesjpHuG3JnZqEFpRfRnnDBSwPCuXJnPkVfuLMGXEEaUd51m7E1zM99m
Create BondingCurve: 48J3SsHG1urNR8BmCPKwX2gdq6SX7bkNRdXYjKT45npVTYdgftMbaJMyTBniMCzJa6BnPkmcip8pd4aTyXEnWoGj
Add whitelist: 7Z9Fz18Eo99MAupb7tdSuMiYcz3pqvJdnCqKhWQuGrFtKcBKoxWJFKrk6H8Zqy5NvxgvZaukf2BgN4cvKTGhyju
Migrate meteora: 524N14xCr75EiWP96xeQ6hFUxE8ewspjCbWUxqRZnCZfdGgCLVZDFuvxAQGka6rtArgKFDcPi2JYVU9JowyZvC8Z
Telegram: enlomy
Welcome to the project! This guide will help you quickly get started by installing the required tools and configuring your local environment.
Ensure the following tools are installed on your system:
βΉοΈ Recommended Anchor version:
0.30.1
Verify that everything is properly installed and configured:
rustc --version # Check Rust version
solana --version # Check Solana CLI version
anchor --version # Check Anchor version
solana config get # View current Solana config
solana config set --url devnet # Set network to devnet
Generate and manage your wallet keys:
solana-keygen new -o ./keys/admin.json # Generate a new keypair
solana-keygen pubkey ./keys/admin.json # Get public key
solana balance ./keys/admin.json # Check wallet balance
solana airdrop 5 YOUR_WALLET_ADDRESS -u devnet # Airdrop 5 SOL to your wallet
Clone the project and install dependencies:
git clone https://github.com/project-repo.git
cd project-folder
yarn
Compile the Anchor smart contract:
# Build the Anchor program using nightly toolchain
RUSTUP_TOOLCHAIN="nightly-2024-11-19" anchor build
# Sync all program public keys
anchor keys sync
# Rebuild if the program address in lib.rs has changed
RUSTUP_TOOLCHAIN="nightly-2024-11-19" anchor build
Ensure your Anchor.toml
uses Devnet:
[provider]
cluster = "https://api.devnet.solana.com"
anchor deploy
Use these CLI scripts to interact with your smart contract locally.
yarn script config
yarn script curve
yarn script swap -t <TOKEN_MINT> -a <SWAP_AMOUNT> -s <SWAP_DIRECTION>
<TOKEN_MINT>: You can get the token mint address when you launch a token.
<SWAP_AMOUNT>: The amount of SOL or Token you want to swap.
<SWAP_DIRECTION>: 0: Buy token (Swap SOL β Token) 1: Sell token (Swap Token β SOL)
yarn script migrate -m <TOKEN_MINT>