8000 GitHub - MostroP2P/mobile: Mobile client for Mostro p2p
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

MostroP2P/mobile

Repository files navigation

Mostro Mobile Client

Super early version of a mobile client for the Mostro P2P platform.

This project is a mobile interface that facilitates peer-to-peer bitcoin trading over the lightning network ⚡️ using nostr 🦩. The lightning network is a layer 2 scaling solution for bitcoin that enables fast and low-cost transactions.

Prerequisites

For the Mobile Client

  • Install Flutter: Follow the official guide for your operating system.
  • Install Android Studio or Xcode (for iOS development)
  • Install VS Code (optional but recommended)

For Mostro Daemon

For Testing Environment

  • Install Polar: For simulating Lightning Network nodes

Installation

  1. Clone the repository:

    git clone https://github.com/MostroP2P/mobile.git
    cd mobile
  2. Install Flutter dependencies:

    flutter pub get
  3. Generate localization and other required files:

    dart run build_runner build -d

Note: These commands generate files needed by flutter_intl and any other code generators. You must run them after installing dependencies and whenever you update localization files or code generation sources. If you skip this step, you may encounter missing file errors when running the app.

Running the App

On Emulator/Simulator

flutter run

On Physical Device

Connect your device and run:

flutter run

Setting up Mostro Daemon

  1. Clone the Mostro repository:

    git clone https://github.com/MostroP2P/mostro.git
    cd mostro
  2. Set up the configuration:

    cp settings.tpl.toml settings.toml

    Edit settings.toml with your specific configurations.

  3. Initialize the database:

    ./init_db.sh
  4. Run the Mostro daemon:

    cargo run

See the README.md in the mostro repository for more details.

Setting up Polar for Testing

  1. Launch Polar and create a new Lightning Network.
  2. Configure at least one node (e.g., "alice").
  3. Copy the necessary connection details (cert file, macaroon file) to your Mostro settings.toml.

Development Workflow

  1. Ensure Polar is running with your test Lightning Network.
  2. Start the Mostro daemon.
  3. Run the Flutter app and connect it to your local Mostro instance.

Contributing

Please take a look at our issues section for areas where you can contribute. We welcome all contributions, big or small! 😊

License

This project is licensed under the MIT License. See the LICENSE file for details.

Progress Overview

  • Displays order list
  • Take orders (Buy & Sell)
  • Posts Orders (Buy & Sell)
  • Direct message with peers
  • Fiat sent
  • Release
  • Maker cancel pendi 7732 ng order
  • Cooperative cancellation
  • Buyer: add new invoice if payment fails
  • Rate users
  • List own orders
  • Dispute flow (users)
  • Dispute management (for admins)
  • Conversation key management
  • Create buy orders with LN address
  • Settings tab
  • Notifications

About

Mobile client for Mostro p2p

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 8

0