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.
- Install Flutter: Follow the official guide for your operating system.
- Install Android Studio or Xcode (for iOS development)
- Install VS Code (optional but recommended)
- Install Polar: For simulating Lightning Network nodes
-
Clone the repository:
git clone https://github.com/MostroP2P/mobile.git cd mobile
-
Install Flutter dependencies:
flutter pub get
-
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.
flutter run
Connect your device and run:
flutter run
-
Clone the Mostro repository:
git clone https://github.com/MostroP2P/mostro.git cd mostro
-
Set up the configuration:
cp settings.tpl.toml settings.toml
Edit
settings.toml
with your specific configurations. -
Initialize the database:
./init_db.sh
-
Run the Mostro daemon:
cargo run
See the README.md in the mostro repository for more details.
- Launch Polar and create a new Lightning Network.
- Configure at least one node (e.g., "alice").
- Copy the necessary connection details (cert file, macaroon file) to your Mostro
settings.toml
.
- Ensure Polar is running with your test Lightning Network.
- Start the Mostro daemon.
- Run the Flutter app and connect it to your local Mostro instance.
Please take a look at our issues section for areas where you can contribute. We welcome all contributions, big or small! 😊
This project is licensed under the MIT License. See the LICENSE
file for details.
- 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