Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

XerxesCoder/token-presale

Repository files navigation

Token Presale dApp

A decentralized application (dApp) for participating in a token presale on the Sonic Testnet. Users can purchase tokens using S or USDT and claim their tokens after the presale ends.

Features

  • Connect Wallet: Users can connect their Web3 wallet to interact with the dApp.
  • Token Selection: Choose between S or USDT as the payment token.
  • Claim Tokens: After the presale concludes, participants can claim their purchased tokens.

How It Works

  1. Connect to the dApp:

    • Users connect their wallet to the Sonic testnet.
  2. Choose Payment Token:

    • Select either S or USDT to purchase tokens.
  3. Buy Tokens:

    • Enter the desired amount and confirm the transaction.
  4. Claim Tokens:

    • Once the presale ends, participants return to the dApp to claim their purchased tokens.

Getting Started

Prerequisites

  • A Web3 wallet (e.g., MetaMask) configured for the Sonic testnet.
  • Test S and USDT tokens for transactions.

Installation

  1. Clone this repository:

    git clone https://github.com/XerxesCoder/token-presale.git
  2. Navigate to the project directory:

    cd token-presale
  3. Install dependencies:

    npm install
  4. Start the development server:

    npm run dev
  5. Open the dApp in your browser:

    http://localhost:3000
    

Deployment

Deploy the dApp on your preferred hosting platform (e.g., Vercel, Netlify).

Contract Information

All contracts are verified, and you can interact with them through SonicScan.

Built With

  • Next.js
  • Tailwind CSS
  • Wagmi
  • Viem
  • ConnectKit

License

This project is licensed under the MIT License.

Contact


Don't forget to give this repository a ⭐ on GitHub if you find it helpful!

About

A dApp for participating in a token presale on the Sonic Testnet. Users can connect their Web3 wallet, purchase tokens using S or USDT, and claim their tokens after the presale ends.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /