channeldb: save outgoing payments
Add structure for outgoing payments. Saving payment in DB after successful payment send. Add RPC call for listing all payments.
This commit is contained in:
1 parent
343cd7779f
commit
eb4d0e035e
12 files changed
+1117
-168
No files matched your search
@@ -293,6 +293,36 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/payments": {
|
||||
"get": {
|
||||
"operationId": "ListPayments",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/lnrpcListPaymentsResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"Lightning"
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"operationId": "DeleteAllPayments",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/lnrpcDeleteAllPaymentsResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"Lightning"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/peers": {
|
||||
"get": {
|
||||
"operationId": "ListPeers",
|
||||
@@ -582,6 +612,12 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcDeleteAllPaymentsRequest": {
|
||||
"type": "object"
|
||||
},
|
||||
"lnrpcDeleteAllPaymentsResponse": {
|
||||
"type": "object"
|
||||
},
|
||||
"lnrpcGetInfoRequest": {
|
||||
"type": "object"
|
||||
},
|
||||
@@ -733,6 +769,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcListPaymentsRequest": {
|
||||
"type": "object"
|
||||
},
|
||||
"lnrpcListPaymentsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"payments": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/lnrpcPayment"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcListPeersRequest": {
|
||||
"type": "object"
|
||||
},
|
||||
@@ -792,6 +842,34 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcPayment": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"creation_date": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"fee": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"path": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "string"
|
||||
}
|
||||
},
|
||||
"r_hash": {
|
||||
"type": "string",
|
||||
"format": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcPaymentHash": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in new issue
Block a user