Skip to content

A Telegram bot that simplifies token swaps on the Aptos blockchain with its integrated DEX feature. Seamlessly manage your portfolio, monitor transactions, and execute swaps—all within a single, user-friendly platform.

Notifications You must be signed in to change notification settings

daksha-aeer/ethsea

Repository files navigation

Aptosphere

Aptosphere enhances the Aptos blockchain experience with a user-friendly interface for wallet connections and token swaps. Users connect their Martian Wallet and perform Aptos token swaps directly through Telegram, streamlining the trading process.

File Overview

  • index.html: Provides the HTML structure for the wallet connection popup.
  • styles.css: Contains styles for the wallet connection modal.
  • main.js: Handles wallet connection logic and sends wallet data to the backend.
  • server.ts: Sets up an Express server that handles wallet data, generates new Aptos accounts, and sends notifications via Telegram.
  • Bot.ts: Manages the Telegram bot, including commands and interactions with users.
  • excRate.ts: Retrieves and processes exchange rates for token swaps.
  • swapHandler.ts: Handles the logic for swapping tokens and interacting with the Aptos blockchain.

Installation

  1. Clone the repository:

    git clone https://github.com/daksha-aeer/ethsea.git
    cd ethsea
  2. Install dependencies:

    npm install
  3. Set up the environment variables by creating a .env file in the root directory:

    TOKEN=your_telegram_bot_token
    MONGO_URI=your_mongodb_connection_string
    ADDRESS=your_wallet_address
    PRIVATE_KEY=your_private_key
    DB_BOT=token_swaps
    DB_SERVER=key_values
    NGROK=your_ngrok_url
    
  4. Run the server:

    npm start

About

A Telegram bot that simplifies token swaps on the Aptos blockchain with its integrated DEX feature. Seamlessly manage your portfolio, monitor transactions, and execute swaps—all within a single, user-friendly platform.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published