Skip to content

Pumpfun smart contract (Solana Pumpfun Smart Contract fork, Pumpfun smart contract development Tool, Pumpfun smart contract SDK)

Notifications You must be signed in to change notification settings

enlomy/pumpfun-solana-smart-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

46 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’Š PumpFun Solana Smart Contract

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.

✨ Features

  • 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.

πŸ“‹ Demo

I have shared my previous tx made on this smart contract

πŸ“ž Contact Info

Telegram: enlomy

🍡 Tip

If you are intereseted in my projects, please πŸ”—fork or give me ⭐star

🎯 Project Setup Guide

Welcome to the project! This guide will help you quickly get started by installing the required tools and configuring your local environment.


πŸ› οΈ Prerequisites

Ensure the following tools are installed on your system:

ℹ️ Recommended Anchor version: 0.30.1


βœ… Check Versions & Set Config

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

πŸ” Wallet Setup

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

πŸ“¦ Project Installation

Clone the project and install dependencies:

git clone https://github.com/project-repo.git
cd project-folder
yarn

⚑ Quick Start

πŸ—οΈ Build the Program

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

πŸ§ͺ Test on Devnet

Ensure your Anchor.toml uses Devnet:

[provider]
cluster = "https://api.devnet.solana.com"

πŸš€ Deploy the Program

anchor deploy

πŸ§ͺ Use CLI to Interact with the Program

Use these CLI scripts to interact with your smart contract locally.

Initialize Program

yarn script config

launch a token

yarn script curve

Swap SOL for Token

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)

Migrate Token to Raydium

yarn script migrate -m <TOKEN_MINT>

About

Pumpfun smart contract (Solana Pumpfun Smart Contract fork, Pumpfun smart contract development Tool, Pumpfun smart contract SDK)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published