https://github.com/0xtan1319/presale-smart-contract-solana
Smart contact for presale on solana
https://github.com/0xtan1319/presale-smart-contract-solana
Last synced: about 1 month ago
JSON representation
Smart contact for presale on solana
- Host: GitHub
- URL: https://github.com/0xtan1319/presale-smart-contract-solana
- Owner: 0xTan1319
- Created: 2024-10-21T02:45:39.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-06T09:58:03.000Z (6 months ago)
- Last Synced: 2025-04-11T02:12:23.043Z (about 1 month ago)
- Language: Rust
- Size: 88.9 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solana Presale Smart 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.
## Contact
[@shiny0103](https://t.me/shiny0103)You can contact me here if you have any problems with this repo then we can decide comfortable contact way.
## 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:
- [Rust](https://www.rust-lang.org/tools/install)
- [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)
- [Anchor CLI](https://project-serum.github.io/anchor/getting-started/installation.html)
- [Node.js](https://nodejs.org/en/download/)
- [Yarn](https://yarnpkg.com/getting-started/install)## Getting Started
1. **Installation:** Clone the repository and install dependencies.
```bash
git clone https://github.com/0xTan1319/Presale-Smart-Contract-Solana
cd Presale-Smart-Contract-Solana
yarn
```2. **Build the Smart Contract:**
```bash
anchor build
```3. **Run Tests:**
```bash
anchor test
```4. **Deploy:**
Switch to your desired network and deploy
```bash
anchor deploy
```