Skip to content

Commit a035cb0

Browse files
committed
taprpc: add groupkey to AddInvoice
1 parent 0feae9f commit a035cb0

File tree

3 files changed

+90
-67
lines changed

3 files changed

+90
-67
lines changed

taprpc/tapchannelrpc/tapchannel.pb.go

Lines changed: 80 additions & 67 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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)