To start with the following logic needs to be used:
Reverse Swap:
txn.mempool - In progress: Receiving n sats
txn.invoiceSettled - Complete: Received n sats - This state should also trigger sync wallet.
Submarine Swap:
txn.mempool - In progress: Sending n sats
invoice.paid - Complete: Sent n sats
(this status might be missed by the client - if missed, use the next status, if not missed, ignore notification for the next status)
txn.claimed - Complete: Sent n sats
Clicking the notification should take the user to the transaction in history.
To start with the following logic needs to be used:
Reverse Swap:
txn.mempool
- In progress: Receivingn sats
txn.invoiceSettled
- Complete: Receivedn sats
- This state should also trigger sync wallet.Submarine Swap:
txn.mempool
- In progress: Sendingn sats
invoice.paid
- Complete: Sentn sats
(this status might be missed by the client - if missed, use the next status, if not missed, ignore notification for the next status)txn.claimed
- Complete: Sentn sats
Clicking the notification should take the user to the transaction in history.