Skip to content

degencap777/solana-presale-smart-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Solana Token Presale Smart Contract

This smart contract, built using the Anchor framework, facilitates the sale of SPL tokens, featuring a presale mechanism and allocation tickets.

Contact

Telegram: @degencap777

For any inquiries regarding this repository, please reach out, and we can establish a suitable communication method.

Key Features

  • Token Sale: Users can purchase SPL tokens directly from the contract, acting as a vending machine.

  • Presale Mechanism: A configurable presale phase grants exclusive token access for a predetermined duration prior to the public sale.

  • Allocation Tickets: During the presale, users can acquire tickets that reserve their spots for purchasing SPL tokens.

  • Flexible Configuration: Easily configure parameters such as presale and public sale timings, token prices, and ticket allocation limits.

Prerequisites

Ensure you have the following tools installed:

Getting Started

  1. Installation: Clone the repository and install dependencies.

    git clone https://github.com/degencap777/Solana-presale-smart-contract.git
    cd Solana-presale-smart-contract
    yarn
  2. Build the Smart Contract:

    anchor build
  3. Run Tests:

    anchor test
  4. Deploy:

    Switch to your desired network and deploy:

    anchor deploy