Skip to content

Commit 154b001

Browse files
committed
taprpc: add groupkey to AddInvoice
1 parent 75a67e6 commit 154b001

File tree

3 files changed

+93
-70
lines changed

3 files changed

+93
-70
lines changed

taprpc/tapchannelrpc/tapchannel.pb.go

Lines changed: 81 additions & 68 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

taprpc/tapchannelrpc/tapchannel.proto

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ message HodlInvoice {
168168
}
169169

170170
message AddInvoiceRequest {
171-
// The asset ID to use for the invoice.
171+
// The asset ID to use for the invoice. Mutually exclusive to group_key.
172172
bytes asset_id = 1;
173173

174174
// The asset amount to receive.
@@ -192,6 +192,11 @@ message AddInvoiceRequest {
192192
// won't be settled automatically. Instead, users will need to use the
193193
// invoicesrpc.SettleInvoice call to manually settle the invoice.
194194
HodlInvoice hodl_invoice = 5;
195+
196+
// The group key which dictates which assets may be accepted for this
197+
// invoice. If set, any asset that belongs to this group may be accepted to
198+
// settle this invoice. Mutually exclusive to asset_id.
199+
bytes group_key = 6;
195200
}
196201

197202
message AddInvoiceResponse {

taprpc/tapchannelrpc/tapchannel.swagger.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@
14931493
"asset_id": {
14941494
"type": "string",
14951495
"format": "byte",
1496-
"description": "The asset ID to use for the invoice."
1496+
"description": "The asset ID to use for the invoice. Mutually exclusive to group_key."
14971497
},
14981498
"asset_amount": {
14991499
"type": "string",
@@ -1512,6 +1512,11 @@
15121512
"hodl_invoice": {
15131513
"$ref": "#/definitions/tapchannelrpcHodlInvoice",
15141514
"description": "If set, then this will make the invoice created a hodl invoice, which\nwon't be settled automatically. Instead, users will need to use the\ninvoicesrpc.SettleInvoice call to manually settle the invoice."
1515+
},
1516+
"group_key": {
1517+
"type": "string",
1518+
"format": "byte",
1519+
"description": "The group key which dictates which assets may be accepted for this\ninvoice. If set, any asset that belongs to this group may be accepted to\nsettle this invoice. Mutually exclusive to asset_id."
15151520
}
15161521
}
15171522
},

0 commit comments

Comments
 (0)