https://github.com/bittraveler/solana-presale-contract
#Solana #SPL #Token #Presale #Smart #Contract: A smart contract developed to streamline the sale of SPL tokens, featuring additional functionalities such as a presale mechanism and allocation tickets, built with the Anchor framework.
https://github.com/bittraveler/solana-presale-contract
anchor presale-smart-contract smart-contracts solana solana-spl-token spl-token token-presale-contract
Last synced: 3 months ago
JSON representation
#Solana #SPL #Token #Presale #Smart #Contract: A smart contract developed to streamline the sale of SPL tokens, featuring additional functionalities such as a presale mechanism and allocation tickets, built with the Anchor framework.
- Host: GitHub
- URL: https://github.com/bittraveler/solana-presale-contract
- Owner: bittraveler
- Created: 2025-01-19T07:01:33.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-20T17:00:01.000Z (5 months ago)
- Last Synced: 2025-03-25T05:35:59.904Z (3 months ago)
- Topics: anchor, presale-smart-contract, smart-contracts, solana, solana-spl-token, spl-token, token-presale-contract
- Language: Rust
- Homepage:
- Size: 61.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solana-Presale-Contract
A smart contract developed to streamline the sale of SPL tokens, featuring additional functionalities such as a presale mechanism and allocation tickets, built with the Anchor framework.## Contact
X: [@mikegraham915](https://x.com/@mikegraham915)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/web3batman/Solana-Presale-Smart-Contract
cd Solana-Presale-Smart-Contract
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
```