mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-02-23 15:34:22 +01:00
lnrpc: add SubscribeChannels RPC & relevant messages to RPC protos.
This commit is contained in:
@@ -33,7 +33,7 @@ func (m *StatusRequest) Reset() { *m = StatusRequest{} }
|
||||
func (m *StatusRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*StatusRequest) ProtoMessage() {}
|
||||
func (*StatusRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_autopilot_52f30cf4d0055211, []int{0}
|
||||
return fileDescriptor_autopilot_7db7978f022d4696, []int{0}
|
||||
}
|
||||
func (m *StatusRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_StatusRequest.Unmarshal(m, b)
|
||||
@@ -65,7 +65,7 @@ func (m *StatusResponse) Reset() { *m = StatusResponse{} }
|
||||
func (m *StatusResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*StatusResponse) ProtoMessage() {}
|
||||
func (*StatusResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_autopilot_52f30cf4d0055211, []int{1}
|
||||
return fileDescriptor_autopilot_7db7978f022d4696, []int{1}
|
||||
}
|
||||
func (m *StatusResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_StatusResponse.Unmarshal(m, b)
|
||||
@@ -104,7 +104,7 @@ func (m *ModifyStatusRequest) Reset() { *m = ModifyStatusRequest{} }
|
||||
func (m *ModifyStatusRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ModifyStatusRequest) ProtoMessage() {}
|
||||
func (*ModifyStatusRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_autopilot_52f30cf4d0055211, []int{2}
|
||||
return fileDescriptor_autopilot_7db7978f022d4696, []int{2}
|
||||
}
|
||||
func (m *ModifyStatusRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ModifyStatusRequest.Unmarshal(m, b)
|
||||
@@ -141,7 +141,7 @@ func (m *ModifyStatusResponse) Reset() { *m = ModifyStatusResponse{} }
|
||||
func (m *ModifyStatusResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ModifyStatusResponse) ProtoMessage() {}
|
||||
func (*ModifyStatusResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_autopilot_52f30cf4d0055211, []int{3}
|
||||
return fileDescriptor_autopilot_7db7978f022d4696, []int{3}
|
||||
}
|
||||
func (m *ModifyStatusResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ModifyStatusResponse.Unmarshal(m, b)
|
||||
@@ -172,7 +172,7 @@ func (m *QueryScoresRequest) Reset() { *m = QueryScoresRequest{} }
|
||||
func (m *QueryScoresRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryScoresRequest) ProtoMessage() {}
|
||||
func (*QueryScoresRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_autopilot_52f30cf4d0055211, []int{4}
|
||||
return fileDescriptor_autopilot_7db7978f022d4696, []int{4}
|
||||
}
|
||||
func (m *QueryScoresRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_QueryScoresRequest.Unmarshal(m, b)
|
||||
@@ -210,7 +210,7 @@ func (m *QueryScoresResponse) Reset() { *m = QueryScoresResponse{} }
|
||||
func (m *QueryScoresResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryScoresResponse) ProtoMessage() {}
|
||||
func (*QueryScoresResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_autopilot_52f30cf4d0055211, []int{5}
|
||||
return fileDescriptor_autopilot_7db7978f022d4696, []int{5}
|
||||
}
|
||||
func (m *QueryScoresResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_QueryScoresResponse.Unmarshal(m, b)
|
||||
@@ -249,7 +249,7 @@ func (m *QueryScoresResponse_HeuristicResult) Reset() { *m = QueryScores
|
||||
func (m *QueryScoresResponse_HeuristicResult) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryScoresResponse_HeuristicResult) ProtoMessage() {}
|
||||
func (*QueryScoresResponse_HeuristicResult) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_autopilot_52f30cf4d0055211, []int{5, 0}
|
||||
return fileDescriptor_autopilot_7db7978f022d4696, []int{5, 0}
|
||||
}
|
||||
func (m *QueryScoresResponse_HeuristicResult) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_QueryScoresResponse_HeuristicResult.Unmarshal(m, b)
|
||||
@@ -451,10 +451,10 @@ var _Autopilot_serviceDesc = grpc.ServiceDesc{
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("autopilotrpc/autopilot.proto", fileDescriptor_autopilot_52f30cf4d0055211)
|
||||
proto.RegisterFile("autopilotrpc/autopilot.proto", fileDescriptor_autopilot_7db7978f022d4696)
|
||||
}
|
||||
|
||||
var fileDescriptor_autopilot_52f30cf4d0055211 = []byte{
|
||||
var fileDescriptor_autopilot_7db7978f022d4696 = []byte{
|
||||
// 391 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x4d, 0xaf, 0xd2, 0x40,
|
||||
0x14, 0xcd, 0x94, 0x58, 0xec, 0x05, 0xc5, 0x0c, 0x84, 0x34, 0x95, 0x45, 0xe9, 0xaa, 0x1b, 0xdb,
|
||||
|
||||
1471
lnrpc/rpc.pb.go
1471
lnrpc/rpc.pb.go
File diff suppressed because it is too large
Load Diff
@@ -359,6 +359,14 @@ service Lightning {
|
||||
};
|
||||
}
|
||||
|
||||
/** lncli: `subscribechannelevents`
|
||||
SubscribeChannelEvents creates a uni-directional stream from the server to
|
||||
the client in which any updates relevant to the state of the channels are
|
||||
sent over. Events include new active channels, inactive channels, and closed
|
||||
channels.
|
||||
*/
|
||||
rpc SubscribeChannelEvents (ChannelEventSubscription) returns (stream ChannelEventUpdate);
|
||||
|
||||
/** lncli: `closedchannels`
|
||||
ClosedChannels returns a description of all the closed channels that
|
||||
this node was a participant in.
|
||||
@@ -1401,6 +1409,27 @@ message PendingChannelsResponse {
|
||||
repeated WaitingCloseChannel waiting_close_channels = 5 [ json_name = "waiting_close_channels" ];
|
||||
}
|
||||
|
||||
message ChannelEventSubscription {
|
||||
}
|
||||
|
||||
message ChannelEventUpdate {
|
||||
oneof channel {
|
||||
Channel open_channel = 1 [ json_name = "open_channel" ];
|
||||
ChannelCloseSummary closed_channel = 2 [ json_name = "closed_channel" ];
|
||||
ChannelPoint active_channel = 3 [ json_name = "active_channel" ];
|
||||
ChannelPoint inactive_channel = 4 [ json_name = "inactive_channel" ];
|
||||
}
|
||||
|
||||
enum UpdateType {
|
||||
OPEN_CHANNEL = 0;
|
||||
CLOSED_CHANNEL = 1;
|
||||
ACTIVE_CHANNEL = 2;
|
||||
INACTIVE_CHANNEL = 3;
|
||||
}
|
||||
|
||||
UpdateType type = 5 [ json_name = "type" ];
|
||||
}
|
||||
|
||||
message WalletBalanceRequest {
|
||||
}
|
||||
message WalletBalanceResponse {
|
||||
|
||||
@@ -1127,6 +1127,16 @@
|
||||
],
|
||||
"default": "COOPERATIVE_CLOSE"
|
||||
},
|
||||
"ChannelEventUpdateUpdateType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"OPEN_CHANNEL",
|
||||
"CLOSED_CHANNEL",
|
||||
"ACTIVE_CHANNEL",
|
||||
"INACTIVE_CHANNEL"
|
||||
],
|
||||
"default": "OPEN_CHANNEL"
|
||||
},
|
||||
"InvoiceInvoiceState": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
@@ -1548,6 +1558,26 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcChannelEventUpdate": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"open_channel": {
|
||||
"$ref": "#/definitions/lnrpcChannel"
|
||||
},
|
||||
"closed_channel": {
|
||||
"$ref": "#/definitions/lnrpcChannelCloseSummary"
|
||||
},
|
||||
"active_channel": {
|
||||
"$ref": "#/definitions/lnrpcChannelPoint"
|
||||
},
|
||||
"inactive_channel": {
|
||||
"$ref": "#/definitions/lnrpcChannelPoint"
|
||||
},
|
||||
"type": {
|
||||
"$ref": "#/definitions/ChannelEventUpdateUpdateType"
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcChannelFeeReport": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user