Skip to content

Solana smart contract for selling SPL tokens with presale for allocation tickets

Notifications You must be signed in to change notification settings

albyd12/spl-vending-machine

Repository files navigation

Solana Token Sale Contract

Smart contract designed for facilitating the sale of SPL tokens with additional features, including a presale mechanism and allocation tickets. The contract is built using the Anchor framework.

Key Features

  • Token Sale: The contract enables the sale of SPL tokens, allowing users to purchase tokens directly from the vending machine.

  • Presale Mechanism: A configurable presale phase is implemented, allowing for exclusive token access for a specified duration before the public sale.

  • Allocation Tickets: Users can acquire allocation tickets during the presale, providing them with reserved spots for purchasing SPL tokens.

  • Flexible Configuration: The contract offers flexibility in configuring various parameters, such as presale and public sale start/end times, token prices, and ticket allocation limits.

Prerequisites

Before you begin, make sure you have the following tools installed:

Getting Started

  1. Installation: Clone the repository and install dependencies.

    git clone https://github.com/albywok/spl-vending-machine.git
    cd spl-vending-machine
    yarn
  2. Build the Smart Contract:

    anchor build
  3. Run Tests:

    anchor test
  4. Deploy:

    Switch to your desired network and deploy

    anchor deploy

© 2023 alby

About

Solana smart contract for selling SPL tokens with presale for allocation tickets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published