Skip to content

Commit

Permalink
Merge pull request #16 from asdfspace/order-states
Browse files Browse the repository at this point in the history
added order states
  • Loading branch information
aljazceru authored Feb 1, 2023
2 parents 72e677d + e9f8787 commit 0b195ee
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion channel-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,21 @@ Get information about a channel order
| node_connection_info | The node_connection_info for the node to open the channel to | string |
| channel_open_tx | The txid of the channel funding tx once it is broadcast | string |
| state | The state of the order | string |
| onchain_payments | A list of payments received to btc_address on-chain | object[] |
| onchain_payments | A list of payments received to btc_address on-chain | object[] |


###### Order state enum

| State | Description |
|---------------- |--------------------------------------------------------------------------------------- |
| CREATED | The order has been created but the user hasn't paid yet. |
| UNDER_FUNDED | Funding received but under paid. |
| PENDING | Order is paid but the channel has not been opened yet. |
| OPENING | The opening transaction has been broadcasted. 0conf might skip directly to OPENED. |
| OPENED | Channel is open and has the necessary block confirmations. |
| CLOSING | The closing transaction has been broadcasted. |
| CLOSED | Channel is closed and has the necessary block confirmations. |
| FAILED | Any error. For example, the LSP couldn't connect to the target node. |
| REFUNDED | Payment has been refunded. |
| OFFER_EXPIRED | Order has not been paid and offer has therefore expired. |

0 comments on commit 0b195ee

Please sign in to comment.