A smart contract designed to facilitate the sale of SPL tokens, featuring a presale mechanism and allocation tickets. It is built using the Anchor framework.
Telegram: @derricklee918
-
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.
Before you begin, make sure you have the following tools installed:
-
Installation: Clone the repository and install dependencies.
git clone https://github.com/derricklee918/Sol-Presale-Contract.git cd Sol-Presale-Contract yarn
-
Build the Smart Contract:
anchor build
-
Run Tests:
anchor test
-
Deploy:
Switch to your desired network and deploy
anchor deploy