Mostro CLI 🧌

Very simple command line interface that show all new replaceable events from Mostro
Requirements
- You need Rust version 1.64 or higher to compile.
- You will need a lightning network node
Install dependencies
To compile on Ubuntu/Pop!_OS, please install cargo, then run the following commands:
Install
To install you need to fill the env vars (.env) on the with your own private key and add a Mostro pubkey.
Usage
Commands:
listorders Requests open orders from Mostro pubkey
neworder Create a new buy/sell order on Mostro
takesell Take a sell order from a Mostro pubkey
takebuy Take a buy order from a Mostro pubkey
addinvoice Buyer add a new invoice to receive the payment
getdm Get the latest direct messages
getadmindm Get the latest direct messages for admin
senddm Send direct message to a user
fiatsent Send fiat sent message to confirm payment to other user
release Settle the hold invoice and pay to buyer
cancel Cancel a pending order
rate Rate counterpart after a successful trade
restore Restore session to recover all pending orders and disputes
dispute Start a dispute
admcancel Cancel an order (only admin)
admsettle Settle a seller's hold invoice (only admin)
admlistdisputes Requests open disputes from Mostro pubkey
admaddsolver Add a new dispute's solver (only admin)
admtakedispute Admin or solver take a Pending dispute (only admin)
admsenddm Send gift wrapped direct message to a user (only admin)
conversationkey Get the conversation key for direct messaging with a user
getlasttradeindex Get last trade index of user
help Print this message or the help of the given subcommand(s)
Options:
-v, --verbose
-m, --mostropubkey <MOSTROPUBKEY>
-r, --relays <RELAYS>
-p, --pow <POW>
-h, --help Print help
-V, --version Print version
Examples
# You can set the env vars to avoid the -m, -n and -r flags
# Create a new buy order
# Cancel a pending order
# Create a new sell range order with Proof or work difficulty of 10
Progress Overview
- Displays order list
- Take orders (Buy & Sell)
- Posts Orders (Buy & Sell)
- Sell flow
- Buy flow
- Maker cancel pending order
- Cooperative cancellation
- Buyer: add new invoice if payment fails
- Rate users
- Dispute flow (users)
- Dispute management (for admins)
- Create buy orders with LN address
- Direct message with peers (use nip-17)
- Conversation key management
- Add a new dispute's solver (for admins)
- Identity management (Nip-06 support)
- List own orders