lnrpc 0.8.0.beta → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +3 -3
- data/README.md +28 -16
- data/examples.rb +6 -11
- data/generate-grpc-service-files.sh +30 -0
- data/lib/grpc_services/autopilotrpc/autopilot_pb.rb +48 -0
- data/lib/grpc_services/autopilotrpc/autopilot_services_pb.rb +40 -0
- data/lib/grpc_services/chainrpc/chainnotifier_pb.rb +67 -0
- data/lib/grpc_services/chainrpc/chainnotifier_services_pb.rb +51 -0
- data/lib/grpc_services/invoicesrpc/invoices_pb.rb +48 -0
- data/lib/grpc_services/invoicesrpc/invoices_services_pb.rb +41 -0
- data/lib/grpc_services/lnclipb/lncli_pb.rb +18 -0
- data/lib/grpc_services/routerrpc/router_pb.rb +229 -0
- data/lib/grpc_services/routerrpc/router_services_pb.rb +86 -0
- data/lib/grpc_services/rpc_pb.rb +1265 -0
- data/lib/{lnrpc → grpc_services}/rpc_services_pb.rb +115 -119
- data/lib/grpc_services/signrpc/signer_pb.rb +83 -0
- data/lib/grpc_services/signrpc/signer_services_pb.rb +68 -0
- data/lib/grpc_services/verrpc/verrpc_pb.rb +27 -0
- data/lib/grpc_services/verrpc/verrpc_services_pb.rb +27 -0
- data/lib/grpc_services/walletrpc/walletkit_pb.rb +149 -0
- data/lib/grpc_services/walletrpc/walletkit_services_pb.rb +115 -0
- data/lib/grpc_services/walletunlocker_pb.rb +51 -0
- data/lib/grpc_services/walletunlocker_services_pb.rb +72 -0
- data/lib/grpc_services/watchtowerrpc/watchtower_pb.rb +21 -0
- data/lib/grpc_services/watchtowerrpc/watchtower_services_pb.rb +28 -0
- data/lib/grpc_services/wtclientrpc/wtclient_pb.rb +75 -0
- data/lib/grpc_services/wtclientrpc/wtclient_services_pb.rb +43 -0
- data/lib/lnrpc.rb +19 -3
- data/lib/lnrpc/client.rb +60 -45
- data/lib/lnrpc/grpc_wrapper.rb +43 -0
- data/lib/lnrpc/version.rb +1 -1
- data/lnrpc.gemspec +4 -2
- metadata +35 -11
- data/lib/lnrpc/rpc.proto +0 -2580
- data/lib/lnrpc/rpc_pb.rb +0 -938
@@ -0,0 +1,41 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: invoicesrpc/invoices.proto for package 'invoicesrpc'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'invoicesrpc/invoices_pb'
|
6
|
+
|
7
|
+
module Invoicesrpc
|
8
|
+
module Invoices
|
9
|
+
# Invoices is a service that can be used to create, accept, settle and cancel
|
10
|
+
# invoices.
|
11
|
+
class Service
|
12
|
+
|
13
|
+
include GRPC::GenericService
|
14
|
+
|
15
|
+
self.marshal_class_method = :encode
|
16
|
+
self.unmarshal_class_method = :decode
|
17
|
+
self.service_name = 'invoicesrpc.Invoices'
|
18
|
+
|
19
|
+
#
|
20
|
+
# SubscribeSingleInvoice returns a uni-directional stream (server -> client)
|
21
|
+
# to notify the client of state transitions of the specified invoice.
|
22
|
+
# Initially the current invoice state is always sent out.
|
23
|
+
rpc :SubscribeSingleInvoice, SubscribeSingleInvoiceRequest, stream(Lnrpc::Invoice)
|
24
|
+
#
|
25
|
+
# CancelInvoice cancels a currently open invoice. If the invoice is already
|
26
|
+
# canceled, this call will succeed. If the invoice is already settled, it will
|
27
|
+
# fail.
|
28
|
+
rpc :CancelInvoice, CancelInvoiceMsg, CancelInvoiceResp
|
29
|
+
#
|
30
|
+
# AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
|
31
|
+
# supplied in the request.
|
32
|
+
rpc :AddHoldInvoice, AddHoldInvoiceRequest, AddHoldInvoiceResp
|
33
|
+
#
|
34
|
+
# SettleInvoice settles an accepted invoice. If the invoice is already
|
35
|
+
# settled, this call will succeed.
|
36
|
+
rpc :SettleInvoice, SettleInvoiceMsg, SettleInvoiceResp
|
37
|
+
end
|
38
|
+
|
39
|
+
Stub = Service.rpc_stub_class
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: lnclipb/lncli.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'verrpc/verrpc_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("lnclipb/lncli.proto", :syntax => :proto3) do
|
9
|
+
add_message "lnclipb.VersionResponse" do
|
10
|
+
optional :lncli, :message, 1, "verrpc.Version"
|
11
|
+
optional :lnd, :message, 2, "verrpc.Version"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Lnclipb
|
17
|
+
VersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnclipb.VersionResponse").msgclass
|
18
|
+
end
|
@@ -0,0 +1,229 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: routerrpc/router.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'rpc_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("routerrpc/router.proto", :syntax => :proto3) do
|
9
|
+
add_message "routerrpc.SendPaymentRequest" do
|
10
|
+
optional :dest, :bytes, 1
|
11
|
+
optional :amt, :int64, 2
|
12
|
+
optional :amt_msat, :int64, 12
|
13
|
+
optional :payment_hash, :bytes, 3
|
14
|
+
optional :final_cltv_delta, :int32, 4
|
15
|
+
optional :payment_request, :string, 5
|
16
|
+
optional :timeout_seconds, :int32, 6
|
17
|
+
optional :fee_limit_sat, :int64, 7
|
18
|
+
optional :fee_limit_msat, :int64, 13
|
19
|
+
optional :outgoing_chan_id, :uint64, 8
|
20
|
+
repeated :outgoing_chan_ids, :uint64, 19
|
21
|
+
optional :last_hop_pubkey, :bytes, 14
|
22
|
+
optional :cltv_limit, :int32, 9
|
23
|
+
repeated :route_hints, :message, 10, "lnrpc.RouteHint"
|
24
|
+
map :dest_custom_records, :uint64, :bytes, 11
|
25
|
+
optional :allow_self_payment, :bool, 15
|
26
|
+
repeated :dest_features, :enum, 16, "lnrpc.FeatureBit"
|
27
|
+
optional :max_parts, :uint32, 17
|
28
|
+
optional :no_inflight_updates, :bool, 18
|
29
|
+
end
|
30
|
+
add_message "routerrpc.TrackPaymentRequest" do
|
31
|
+
optional :payment_hash, :bytes, 1
|
32
|
+
optional :no_inflight_updates, :bool, 2
|
33
|
+
end
|
34
|
+
add_message "routerrpc.RouteFeeRequest" do
|
35
|
+
optional :dest, :bytes, 1
|
36
|
+
optional :amt_sat, :int64, 2
|
37
|
+
end
|
38
|
+
add_message "routerrpc.RouteFeeResponse" do
|
39
|
+
optional :routing_fee_msat, :int64, 1
|
40
|
+
optional :time_lock_delay, :int64, 2
|
41
|
+
end
|
42
|
+
add_message "routerrpc.SendToRouteRequest" do
|
43
|
+
optional :payment_hash, :bytes, 1
|
44
|
+
optional :route, :message, 2, "lnrpc.Route"
|
45
|
+
end
|
46
|
+
add_message "routerrpc.SendToRouteResponse" do
|
47
|
+
optional :preimage, :bytes, 1
|
48
|
+
optional :failure, :message, 2, "lnrpc.Failure"
|
49
|
+
end
|
50
|
+
add_message "routerrpc.ResetMissionControlRequest" do
|
51
|
+
end
|
52
|
+
add_message "routerrpc.ResetMissionControlResponse" do
|
53
|
+
end
|
54
|
+
add_message "routerrpc.QueryMissionControlRequest" do
|
55
|
+
end
|
56
|
+
add_message "routerrpc.QueryMissionControlResponse" do
|
57
|
+
repeated :pairs, :message, 2, "routerrpc.PairHistory"
|
58
|
+
end
|
59
|
+
add_message "routerrpc.PairHistory" do
|
60
|
+
optional :node_from, :bytes, 1
|
61
|
+
optional :node_to, :bytes, 2
|
62
|
+
optional :history, :message, 7, "routerrpc.PairData"
|
63
|
+
end
|
64
|
+
add_message "routerrpc.PairData" do
|
65
|
+
optional :fail_time, :int64, 1
|
66
|
+
optional :fail_amt_sat, :int64, 2
|
67
|
+
optional :fail_amt_msat, :int64, 4
|
68
|
+
optional :success_time, :int64, 5
|
69
|
+
optional :success_amt_sat, :int64, 6
|
70
|
+
optional :success_amt_msat, :int64, 7
|
71
|
+
end
|
72
|
+
add_message "routerrpc.QueryProbabilityRequest" do
|
73
|
+
optional :from_node, :bytes, 1
|
74
|
+
optional :to_node, :bytes, 2
|
75
|
+
optional :amt_msat, :int64, 3
|
76
|
+
end
|
77
|
+
add_message "routerrpc.QueryProbabilityResponse" do
|
78
|
+
optional :probability, :double, 1
|
79
|
+
optional :history, :message, 2, "routerrpc.PairData"
|
80
|
+
end
|
81
|
+
add_message "routerrpc.BuildRouteRequest" do
|
82
|
+
optional :amt_msat, :int64, 1
|
83
|
+
optional :final_cltv_delta, :int32, 2
|
84
|
+
optional :outgoing_chan_id, :uint64, 3
|
85
|
+
repeated :hop_pubkeys, :bytes, 4
|
86
|
+
end
|
87
|
+
add_message "routerrpc.BuildRouteResponse" do
|
88
|
+
optional :route, :message, 1, "lnrpc.Route"
|
89
|
+
end
|
90
|
+
add_message "routerrpc.SubscribeHtlcEventsRequest" do
|
91
|
+
end
|
92
|
+
add_message "routerrpc.HtlcEvent" do
|
93
|
+
optional :incoming_channel_id, :uint64, 1
|
94
|
+
optional :outgoing_channel_id, :uint64, 2
|
95
|
+
optional :incoming_htlc_id, :uint64, 3
|
96
|
+
optional :outgoing_htlc_id, :uint64, 4
|
97
|
+
optional :timestamp_ns, :uint64, 5
|
98
|
+
optional :event_type, :enum, 6, "routerrpc.HtlcEvent.EventType"
|
99
|
+
oneof :event do
|
100
|
+
optional :forward_event, :message, 7, "routerrpc.ForwardEvent"
|
101
|
+
optional :forward_fail_event, :message, 8, "routerrpc.ForwardFailEvent"
|
102
|
+
optional :settle_event, :message, 9, "routerrpc.SettleEvent"
|
103
|
+
optional :link_fail_event, :message, 10, "routerrpc.LinkFailEvent"
|
104
|
+
end
|
105
|
+
end
|
106
|
+
add_enum "routerrpc.HtlcEvent.EventType" do
|
107
|
+
value :UNKNOWN, 0
|
108
|
+
value :SEND, 1
|
109
|
+
value :RECEIVE, 2
|
110
|
+
value :FORWARD, 3
|
111
|
+
end
|
112
|
+
add_message "routerrpc.HtlcInfo" do
|
113
|
+
optional :incoming_timelock, :uint32, 1
|
114
|
+
optional :outgoing_timelock, :uint32, 2
|
115
|
+
optional :incoming_amt_msat, :uint64, 3
|
116
|
+
optional :outgoing_amt_msat, :uint64, 4
|
117
|
+
end
|
118
|
+
add_message "routerrpc.ForwardEvent" do
|
119
|
+
optional :info, :message, 1, "routerrpc.HtlcInfo"
|
120
|
+
end
|
121
|
+
add_message "routerrpc.ForwardFailEvent" do
|
122
|
+
end
|
123
|
+
add_message "routerrpc.SettleEvent" do
|
124
|
+
end
|
125
|
+
add_message "routerrpc.LinkFailEvent" do
|
126
|
+
optional :info, :message, 1, "routerrpc.HtlcInfo"
|
127
|
+
optional :wire_failure, :enum, 2, "lnrpc.Failure.FailureCode"
|
128
|
+
optional :failure_detail, :enum, 3, "routerrpc.FailureDetail"
|
129
|
+
optional :failure_string, :string, 4
|
130
|
+
end
|
131
|
+
add_message "routerrpc.PaymentStatus" do
|
132
|
+
optional :state, :enum, 1, "routerrpc.PaymentState"
|
133
|
+
optional :preimage, :bytes, 2
|
134
|
+
repeated :htlcs, :message, 4, "lnrpc.HTLCAttempt"
|
135
|
+
end
|
136
|
+
add_message "routerrpc.CircuitKey" do
|
137
|
+
optional :chan_id, :uint64, 1
|
138
|
+
optional :htlc_id, :uint64, 2
|
139
|
+
end
|
140
|
+
add_message "routerrpc.ForwardHtlcInterceptRequest" do
|
141
|
+
optional :incoming_circuit_key, :message, 1, "routerrpc.CircuitKey"
|
142
|
+
optional :incoming_amount_msat, :uint64, 5
|
143
|
+
optional :incoming_expiry, :uint32, 6
|
144
|
+
optional :payment_hash, :bytes, 2
|
145
|
+
optional :outgoing_requested_chan_id, :uint64, 7
|
146
|
+
optional :outgoing_amount_msat, :uint64, 3
|
147
|
+
optional :outgoing_expiry, :uint32, 4
|
148
|
+
map :custom_records, :uint64, :bytes, 8
|
149
|
+
end
|
150
|
+
add_message "routerrpc.ForwardHtlcInterceptResponse" do
|
151
|
+
optional :incoming_circuit_key, :message, 1, "routerrpc.CircuitKey"
|
152
|
+
optional :action, :enum, 2, "routerrpc.ResolveHoldForwardAction"
|
153
|
+
optional :preimage, :bytes, 3
|
154
|
+
end
|
155
|
+
add_enum "routerrpc.FailureDetail" do
|
156
|
+
value :UNKNOWN, 0
|
157
|
+
value :NO_DETAIL, 1
|
158
|
+
value :ONION_DECODE, 2
|
159
|
+
value :LINK_NOT_ELIGIBLE, 3
|
160
|
+
value :ON_CHAIN_TIMEOUT, 4
|
161
|
+
value :HTLC_EXCEEDS_MAX, 5
|
162
|
+
value :INSUFFICIENT_BALANCE, 6
|
163
|
+
value :INCOMPLETE_FORWARD, 7
|
164
|
+
value :HTLC_ADD_FAILED, 8
|
165
|
+
value :FORWARDS_DISABLED, 9
|
166
|
+
value :INVOICE_CANCELED, 10
|
167
|
+
value :INVOICE_UNDERPAID, 11
|
168
|
+
value :INVOICE_EXPIRY_TOO_SOON, 12
|
169
|
+
value :INVOICE_NOT_OPEN, 13
|
170
|
+
value :MPP_INVOICE_TIMEOUT, 14
|
171
|
+
value :ADDRESS_MISMATCH, 15
|
172
|
+
value :SET_TOTAL_MISMATCH, 16
|
173
|
+
value :SET_TOTAL_TOO_LOW, 17
|
174
|
+
value :SET_OVERPAID, 18
|
175
|
+
value :UNKNOWN_INVOICE, 19
|
176
|
+
value :INVALID_KEYSEND, 20
|
177
|
+
value :MPP_IN_PROGRESS, 21
|
178
|
+
value :CIRCULAR_ROUTE, 22
|
179
|
+
end
|
180
|
+
add_enum "routerrpc.PaymentState" do
|
181
|
+
value :IN_FLIGHT, 0
|
182
|
+
value :SUCCEEDED, 1
|
183
|
+
value :FAILED_TIMEOUT, 2
|
184
|
+
value :FAILED_NO_ROUTE, 3
|
185
|
+
value :FAILED_ERROR, 4
|
186
|
+
value :FAILED_INCORRECT_PAYMENT_DETAILS, 5
|
187
|
+
value :FAILED_INSUFFICIENT_BALANCE, 6
|
188
|
+
end
|
189
|
+
add_enum "routerrpc.ResolveHoldForwardAction" do
|
190
|
+
value :SETTLE, 0
|
191
|
+
value :FAIL, 1
|
192
|
+
value :RESUME, 2
|
193
|
+
end
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
module Routerrpc
|
198
|
+
SendPaymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SendPaymentRequest").msgclass
|
199
|
+
TrackPaymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.TrackPaymentRequest").msgclass
|
200
|
+
RouteFeeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.RouteFeeRequest").msgclass
|
201
|
+
RouteFeeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.RouteFeeResponse").msgclass
|
202
|
+
SendToRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SendToRouteRequest").msgclass
|
203
|
+
SendToRouteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SendToRouteResponse").msgclass
|
204
|
+
ResetMissionControlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ResetMissionControlRequest").msgclass
|
205
|
+
ResetMissionControlResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ResetMissionControlResponse").msgclass
|
206
|
+
QueryMissionControlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.QueryMissionControlRequest").msgclass
|
207
|
+
QueryMissionControlResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.QueryMissionControlResponse").msgclass
|
208
|
+
PairHistory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.PairHistory").msgclass
|
209
|
+
PairData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.PairData").msgclass
|
210
|
+
QueryProbabilityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.QueryProbabilityRequest").msgclass
|
211
|
+
QueryProbabilityResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.QueryProbabilityResponse").msgclass
|
212
|
+
BuildRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.BuildRouteRequest").msgclass
|
213
|
+
BuildRouteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.BuildRouteResponse").msgclass
|
214
|
+
SubscribeHtlcEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SubscribeHtlcEventsRequest").msgclass
|
215
|
+
HtlcEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.HtlcEvent").msgclass
|
216
|
+
HtlcEvent::EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.HtlcEvent.EventType").enummodule
|
217
|
+
HtlcInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.HtlcInfo").msgclass
|
218
|
+
ForwardEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ForwardEvent").msgclass
|
219
|
+
ForwardFailEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ForwardFailEvent").msgclass
|
220
|
+
SettleEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SettleEvent").msgclass
|
221
|
+
LinkFailEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.LinkFailEvent").msgclass
|
222
|
+
PaymentStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.PaymentStatus").msgclass
|
223
|
+
CircuitKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.CircuitKey").msgclass
|
224
|
+
ForwardHtlcInterceptRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ForwardHtlcInterceptRequest").msgclass
|
225
|
+
ForwardHtlcInterceptResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ForwardHtlcInterceptResponse").msgclass
|
226
|
+
FailureDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.FailureDetail").enummodule
|
227
|
+
PaymentState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.PaymentState").enummodule
|
228
|
+
ResolveHoldForwardAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ResolveHoldForwardAction").enummodule
|
229
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: routerrpc/router.proto for package 'routerrpc'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'routerrpc/router_pb'
|
6
|
+
|
7
|
+
module Routerrpc
|
8
|
+
module Router
|
9
|
+
# Router is a service that offers advanced interaction with the router
|
10
|
+
# subsystem of the daemon.
|
11
|
+
class Service
|
12
|
+
|
13
|
+
include GRPC::GenericService
|
14
|
+
|
15
|
+
self.marshal_class_method = :encode
|
16
|
+
self.unmarshal_class_method = :decode
|
17
|
+
self.service_name = 'routerrpc.Router'
|
18
|
+
|
19
|
+
#
|
20
|
+
# SendPaymentV2 attempts to route a payment described by the passed
|
21
|
+
# PaymentRequest to the final destination. The call returns a stream of
|
22
|
+
# payment updates.
|
23
|
+
rpc :SendPaymentV2, SendPaymentRequest, stream(Lnrpc::Payment)
|
24
|
+
#
|
25
|
+
# TrackPaymentV2 returns an update stream for the payment identified by the
|
26
|
+
# payment hash.
|
27
|
+
rpc :TrackPaymentV2, TrackPaymentRequest, stream(Lnrpc::Payment)
|
28
|
+
#
|
29
|
+
# EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it
|
30
|
+
# may cost to send an HTLC to the target end destination.
|
31
|
+
rpc :EstimateRouteFee, RouteFeeRequest, RouteFeeResponse
|
32
|
+
#
|
33
|
+
# Deprecated, use SendToRouteV2. SendToRoute attempts to make a payment via
|
34
|
+
# the specified route. This method differs from SendPayment in that it
|
35
|
+
# allows users to specify a full route manually. This can be used for
|
36
|
+
# things like rebalancing, and atomic swaps. It differs from the newer
|
37
|
+
# SendToRouteV2 in that it doesn't return the full HTLC information.
|
38
|
+
rpc :SendToRoute, SendToRouteRequest, SendToRouteResponse
|
39
|
+
#
|
40
|
+
# SendToRouteV2 attempts to make a payment via the specified route. This
|
41
|
+
# method differs from SendPayment in that it allows users to specify a full
|
42
|
+
# route manually. This can be used for things like rebalancing, and atomic
|
43
|
+
# swaps.
|
44
|
+
rpc :SendToRouteV2, SendToRouteRequest, Lnrpc::HTLCAttempt
|
45
|
+
#
|
46
|
+
# ResetMissionControl clears all mission control state and starts with a clean
|
47
|
+
# slate.
|
48
|
+
rpc :ResetMissionControl, ResetMissionControlRequest, ResetMissionControlResponse
|
49
|
+
#
|
50
|
+
# QueryMissionControl exposes the internal mission control state to callers.
|
51
|
+
# It is a development feature.
|
52
|
+
rpc :QueryMissionControl, QueryMissionControlRequest, QueryMissionControlResponse
|
53
|
+
#
|
54
|
+
# QueryProbability returns the current success probability estimate for a
|
55
|
+
# given node pair and amount.
|
56
|
+
rpc :QueryProbability, QueryProbabilityRequest, QueryProbabilityResponse
|
57
|
+
#
|
58
|
+
# BuildRoute builds a fully specified route based on a list of hop public
|
59
|
+
# keys. It retrieves the relevant channel policies from the graph in order to
|
60
|
+
# calculate the correct fees and time locks.
|
61
|
+
rpc :BuildRoute, BuildRouteRequest, BuildRouteResponse
|
62
|
+
#
|
63
|
+
# SubscribeHtlcEvents creates a uni-directional stream from the server to
|
64
|
+
# the client which delivers a stream of htlc events.
|
65
|
+
rpc :SubscribeHtlcEvents, SubscribeHtlcEventsRequest, stream(HtlcEvent)
|
66
|
+
#
|
67
|
+
# Deprecated, use SendPaymentV2. SendPayment attempts to route a payment
|
68
|
+
# described by the passed PaymentRequest to the final destination. The call
|
69
|
+
# returns a stream of payment status updates.
|
70
|
+
rpc :SendPayment, SendPaymentRequest, stream(PaymentStatus)
|
71
|
+
#
|
72
|
+
# Deprecated, use TrackPaymentV2. TrackPayment returns an update stream for
|
73
|
+
# the payment identified by the payment hash.
|
74
|
+
rpc :TrackPayment, TrackPaymentRequest, stream(PaymentStatus)
|
75
|
+
# *
|
76
|
+
# HtlcInterceptor dispatches a bi-directional streaming RPC in which
|
77
|
+
# Forwarded HTLC requests are sent to the client and the client responds with
|
78
|
+
# a boolean that tells LND if this htlc should be intercepted.
|
79
|
+
# In case of interception, the htlc can be either settled, cancelled or
|
80
|
+
# resumed later by using the ResolveHoldForward endpoint.
|
81
|
+
rpc :HtlcInterceptor, stream(ForwardHtlcInterceptResponse), stream(ForwardHtlcInterceptRequest)
|
82
|
+
end
|
83
|
+
|
84
|
+
Stub = Service.rpc_stub_class
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,1265 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: rpc.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("rpc.proto", :syntax => :proto3) do
|
8
|
+
add_message "lnrpc.Utxo" do
|
9
|
+
optional :address_type, :enum, 1, "lnrpc.AddressType"
|
10
|
+
optional :address, :string, 2
|
11
|
+
optional :amount_sat, :int64, 3
|
12
|
+
optional :pk_script, :string, 4
|
13
|
+
optional :outpoint, :message, 5, "lnrpc.OutPoint"
|
14
|
+
optional :confirmations, :int64, 6
|
15
|
+
end
|
16
|
+
add_message "lnrpc.Transaction" do
|
17
|
+
optional :tx_hash, :string, 1
|
18
|
+
optional :amount, :int64, 2
|
19
|
+
optional :num_confirmations, :int32, 3
|
20
|
+
optional :block_hash, :string, 4
|
21
|
+
optional :block_height, :int32, 5
|
22
|
+
optional :time_stamp, :int64, 6
|
23
|
+
optional :total_fees, :int64, 7
|
24
|
+
repeated :dest_addresses, :string, 8
|
25
|
+
optional :raw_tx_hex, :string, 9
|
26
|
+
optional :label, :string, 10
|
27
|
+
end
|
28
|
+
add_message "lnrpc.GetTransactionsRequest" do
|
29
|
+
optional :start_height, :int32, 1
|
30
|
+
optional :end_height, :int32, 2
|
31
|
+
end
|
32
|
+
add_message "lnrpc.TransactionDetails" do
|
33
|
+
repeated :transactions, :message, 1, "lnrpc.Transaction"
|
34
|
+
end
|
35
|
+
add_message "lnrpc.FeeLimit" do
|
36
|
+
oneof :limit do
|
37
|
+
optional :fixed, :int64, 1
|
38
|
+
optional :fixed_msat, :int64, 3
|
39
|
+
optional :percent, :int64, 2
|
40
|
+
end
|
41
|
+
end
|
42
|
+
add_message "lnrpc.SendRequest" do
|
43
|
+
optional :dest, :bytes, 1
|
44
|
+
optional :dest_string, :string, 2
|
45
|
+
optional :amt, :int64, 3
|
46
|
+
optional :amt_msat, :int64, 12
|
47
|
+
optional :payment_hash, :bytes, 4
|
48
|
+
optional :payment_hash_string, :string, 5
|
49
|
+
optional :payment_request, :string, 6
|
50
|
+
optional :final_cltv_delta, :int32, 7
|
51
|
+
optional :fee_limit, :message, 8, "lnrpc.FeeLimit"
|
52
|
+
optional :outgoing_chan_id, :uint64, 9
|
53
|
+
optional :last_hop_pubkey, :bytes, 13
|
54
|
+
optional :cltv_limit, :uint32, 10
|
55
|
+
map :dest_custom_records, :uint64, :bytes, 11
|
56
|
+
optional :allow_self_payment, :bool, 14
|
57
|
+
repeated :dest_features, :enum, 15, "lnrpc.FeatureBit"
|
58
|
+
end
|
59
|
+
add_message "lnrpc.SendResponse" do
|
60
|
+
optional :payment_error, :string, 1
|
61
|
+
optional :payment_preimage, :bytes, 2
|
62
|
+
optional :payment_route, :message, 3, "lnrpc.Route"
|
63
|
+
optional :payment_hash, :bytes, 4
|
64
|
+
end
|
65
|
+
add_message "lnrpc.SendToRouteRequest" do
|
66
|
+
optional :payment_hash, :bytes, 1
|
67
|
+
optional :payment_hash_string, :string, 2
|
68
|
+
optional :route, :message, 4, "lnrpc.Route"
|
69
|
+
end
|
70
|
+
add_message "lnrpc.ChannelAcceptRequest" do
|
71
|
+
optional :node_pubkey, :bytes, 1
|
72
|
+
optional :chain_hash, :bytes, 2
|
73
|
+
optional :pending_chan_id, :bytes, 3
|
74
|
+
optional :funding_amt, :uint64, 4
|
75
|
+
optional :push_amt, :uint64, 5
|
76
|
+
optional :dust_limit, :uint64, 6
|
77
|
+
optional :max_value_in_flight, :uint64, 7
|
78
|
+
optional :channel_reserve, :uint64, 8
|
79
|
+
optional :min_htlc, :uint64, 9
|
80
|
+
optional :fee_per_kw, :uint64, 10
|
81
|
+
optional :csv_delay, :uint32, 11
|
82
|
+
optional :max_accepted_htlcs, :uint32, 12
|
83
|
+
optional :channel_flags, :uint32, 13
|
84
|
+
end
|
85
|
+
add_message "lnrpc.ChannelAcceptResponse" do
|
86
|
+
optional :accept, :bool, 1
|
87
|
+
optional :pending_chan_id, :bytes, 2
|
88
|
+
end
|
89
|
+
add_message "lnrpc.ChannelPoint" do
|
90
|
+
optional :output_index, :uint32, 3
|
91
|
+
oneof :funding_txid do
|
92
|
+
optional :funding_txid_bytes, :bytes, 1
|
93
|
+
optional :funding_txid_str, :string, 2
|
94
|
+
end
|
95
|
+
end
|
96
|
+
add_message "lnrpc.OutPoint" do
|
97
|
+
optional :txid_bytes, :bytes, 1
|
98
|
+
optional :txid_str, :string, 2
|
99
|
+
optional :output_index, :uint32, 3
|
100
|
+
end
|
101
|
+
add_message "lnrpc.LightningAddress" do
|
102
|
+
optional :pubkey, :string, 1
|
103
|
+
optional :host, :string, 2
|
104
|
+
end
|
105
|
+
add_message "lnrpc.EstimateFeeRequest" do
|
106
|
+
map :AddrToAmount, :string, :int64, 1
|
107
|
+
optional :target_conf, :int32, 2
|
108
|
+
end
|
109
|
+
add_message "lnrpc.EstimateFeeResponse" do
|
110
|
+
optional :fee_sat, :int64, 1
|
111
|
+
optional :feerate_sat_per_byte, :int64, 2
|
112
|
+
end
|
113
|
+
add_message "lnrpc.SendManyRequest" do
|
114
|
+
map :AddrToAmount, :string, :int64, 1
|
115
|
+
optional :target_conf, :int32, 3
|
116
|
+
optional :sat_per_byte, :int64, 5
|
117
|
+
optional :label, :string, 6
|
118
|
+
end
|
119
|
+
add_message "lnrpc.SendManyResponse" do
|
120
|
+
optional :txid, :string, 1
|
121
|
+
end
|
122
|
+
add_message "lnrpc.SendCoinsRequest" do
|
123
|
+
optional :addr, :string, 1
|
124
|
+
optional :amount, :int64, 2
|
125
|
+
optional :target_conf, :int32, 3
|
126
|
+
optional :sat_per_byte, :int64, 5
|
127
|
+
optional :send_all, :bool, 6
|
128
|
+
optional :label, :string, 7
|
129
|
+
end
|
130
|
+
add_message "lnrpc.SendCoinsResponse" do
|
131
|
+
optional :txid, :string, 1
|
132
|
+
end
|
133
|
+
add_message "lnrpc.ListUnspentRequest" do
|
134
|
+
optional :min_confs, :int32, 1
|
135
|
+
optional :max_confs, :int32, 2
|
136
|
+
end
|
137
|
+
add_message "lnrpc.ListUnspentResponse" do
|
138
|
+
repeated :utxos, :message, 1, "lnrpc.Utxo"
|
139
|
+
end
|
140
|
+
add_message "lnrpc.NewAddressRequest" do
|
141
|
+
optional :type, :enum, 1, "lnrpc.AddressType"
|
142
|
+
end
|
143
|
+
add_message "lnrpc.NewAddressResponse" do
|
144
|
+
optional :address, :string, 1
|
145
|
+
end
|
146
|
+
add_message "lnrpc.SignMessageRequest" do
|
147
|
+
optional :msg, :bytes, 1
|
148
|
+
end
|
149
|
+
add_message "lnrpc.SignMessageResponse" do
|
150
|
+
optional :signature, :string, 1
|
151
|
+
end
|
152
|
+
add_message "lnrpc.VerifyMessageRequest" do
|
153
|
+
optional :msg, :bytes, 1
|
154
|
+
optional :signature, :string, 2
|
155
|
+
end
|
156
|
+
add_message "lnrpc.VerifyMessageResponse" do
|
157
|
+
optional :valid, :bool, 1
|
158
|
+
optional :pubkey, :string, 2
|
159
|
+
end
|
160
|
+
add_message "lnrpc.ConnectPeerRequest" do
|
161
|
+
optional :addr, :message, 1, "lnrpc.LightningAddress"
|
162
|
+
optional :perm, :bool, 2
|
163
|
+
end
|
164
|
+
add_message "lnrpc.ConnectPeerResponse" do
|
165
|
+
end
|
166
|
+
add_message "lnrpc.DisconnectPeerRequest" do
|
167
|
+
optional :pub_key, :string, 1
|
168
|
+
end
|
169
|
+
add_message "lnrpc.DisconnectPeerResponse" do
|
170
|
+
end
|
171
|
+
add_message "lnrpc.HTLC" do
|
172
|
+
optional :incoming, :bool, 1
|
173
|
+
optional :amount, :int64, 2
|
174
|
+
optional :hash_lock, :bytes, 3
|
175
|
+
optional :expiration_height, :uint32, 4
|
176
|
+
end
|
177
|
+
add_message "lnrpc.ChannelConstraints" do
|
178
|
+
optional :csv_delay, :uint32, 1
|
179
|
+
optional :chan_reserve_sat, :uint64, 2
|
180
|
+
optional :dust_limit_sat, :uint64, 3
|
181
|
+
optional :max_pending_amt_msat, :uint64, 4
|
182
|
+
optional :min_htlc_msat, :uint64, 5
|
183
|
+
optional :max_accepted_htlcs, :uint32, 6
|
184
|
+
end
|
185
|
+
add_message "lnrpc.Channel" do
|
186
|
+
optional :active, :bool, 1
|
187
|
+
optional :remote_pubkey, :string, 2
|
188
|
+
optional :channel_point, :string, 3
|
189
|
+
optional :chan_id, :uint64, 4
|
190
|
+
optional :capacity, :int64, 5
|
191
|
+
optional :local_balance, :int64, 6
|
192
|
+
optional :remote_balance, :int64, 7
|
193
|
+
optional :commit_fee, :int64, 8
|
194
|
+
optional :commit_weight, :int64, 9
|
195
|
+
optional :fee_per_kw, :int64, 10
|
196
|
+
optional :unsettled_balance, :int64, 11
|
197
|
+
optional :total_satoshis_sent, :int64, 12
|
198
|
+
optional :total_satoshis_received, :int64, 13
|
199
|
+
optional :num_updates, :uint64, 14
|
200
|
+
repeated :pending_htlcs, :message, 15, "lnrpc.HTLC"
|
201
|
+
optional :csv_delay, :uint32, 16
|
202
|
+
optional :private, :bool, 17
|
203
|
+
optional :initiator, :bool, 18
|
204
|
+
optional :chan_status_flags, :string, 19
|
205
|
+
optional :local_chan_reserve_sat, :int64, 20
|
206
|
+
optional :remote_chan_reserve_sat, :int64, 21
|
207
|
+
optional :static_remote_key, :bool, 22
|
208
|
+
optional :commitment_type, :enum, 26, "lnrpc.CommitmentType"
|
209
|
+
optional :lifetime, :int64, 23
|
210
|
+
optional :uptime, :int64, 24
|
211
|
+
optional :close_address, :string, 25
|
212
|
+
optional :push_amount_sat, :uint64, 27
|
213
|
+
optional :thaw_height, :uint32, 28
|
214
|
+
optional :local_constraints, :message, 29, "lnrpc.ChannelConstraints"
|
215
|
+
optional :remote_constraints, :message, 30, "lnrpc.ChannelConstraints"
|
216
|
+
end
|
217
|
+
add_message "lnrpc.ListChannelsRequest" do
|
218
|
+
optional :active_only, :bool, 1
|
219
|
+
optional :inactive_only, :bool, 2
|
220
|
+
optional :public_only, :bool, 3
|
221
|
+
optional :private_only, :bool, 4
|
222
|
+
optional :peer, :bytes, 5
|
223
|
+
end
|
224
|
+
add_message "lnrpc.ListChannelsResponse" do
|
225
|
+
repeated :channels, :message, 11, "lnrpc.Channel"
|
226
|
+
end
|
227
|
+
add_message "lnrpc.ChannelCloseSummary" do
|
228
|
+
optional :channel_point, :string, 1
|
229
|
+
optional :chan_id, :uint64, 2
|
230
|
+
optional :chain_hash, :string, 3
|
231
|
+
optional :closing_tx_hash, :string, 4
|
232
|
+
optional :remote_pubkey, :string, 5
|
233
|
+
optional :capacity, :int64, 6
|
234
|
+
optional :close_height, :uint32, 7
|
235
|
+
optional :settled_balance, :int64, 8
|
236
|
+
optional :time_locked_balance, :int64, 9
|
237
|
+
optional :close_type, :enum, 10, "lnrpc.ChannelCloseSummary.ClosureType"
|
238
|
+
optional :open_initiator, :enum, 11, "lnrpc.Initiator"
|
239
|
+
optional :close_initiator, :enum, 12, "lnrpc.Initiator"
|
240
|
+
repeated :resolutions, :message, 13, "lnrpc.Resolution"
|
241
|
+
end
|
242
|
+
add_enum "lnrpc.ChannelCloseSummary.ClosureType" do
|
243
|
+
value :COOPERATIVE_CLOSE, 0
|
244
|
+
value :LOCAL_FORCE_CLOSE, 1
|
245
|
+
value :REMOTE_FORCE_CLOSE, 2
|
246
|
+
value :BREACH_CLOSE, 3
|
247
|
+
value :FUNDING_CANCELED, 4
|
248
|
+
value :ABANDONED, 5
|
249
|
+
end
|
250
|
+
add_message "lnrpc.Resolution" do
|
251
|
+
optional :resolution_type, :enum, 1, "lnrpc.ResolutionType"
|
252
|
+
optional :outcome, :enum, 2, "lnrpc.ResolutionOutcome"
|
253
|
+
optional :outpoint, :message, 3, "lnrpc.OutPoint"
|
254
|
+
optional :amount_sat, :uint64, 4
|
255
|
+
optional :sweep_txid, :string, 5
|
256
|
+
end
|
257
|
+
add_message "lnrpc.ClosedChannelsRequest" do
|
258
|
+
optional :cooperative, :bool, 1
|
259
|
+
optional :local_force, :bool, 2
|
260
|
+
optional :remote_force, :bool, 3
|
261
|
+
optional :breach, :bool, 4
|
262
|
+
optional :funding_canceled, :bool, 5
|
263
|
+
optional :abandoned, :bool, 6
|
264
|
+
end
|
265
|
+
add_message "lnrpc.ClosedChannelsResponse" do
|
266
|
+
repeated :channels, :message, 1, "lnrpc.ChannelCloseSummary"
|
267
|
+
end
|
268
|
+
add_message "lnrpc.Peer" do
|
269
|
+
optional :pub_key, :string, 1
|
270
|
+
optional :address, :string, 3
|
271
|
+
optional :bytes_sent, :uint64, 4
|
272
|
+
optional :bytes_recv, :uint64, 5
|
273
|
+
optional :sat_sent, :int64, 6
|
274
|
+
optional :sat_recv, :int64, 7
|
275
|
+
optional :inbound, :bool, 8
|
276
|
+
optional :ping_time, :int64, 9
|
277
|
+
optional :sync_type, :enum, 10, "lnrpc.Peer.SyncType"
|
278
|
+
map :features, :uint32, :message, 11, "lnrpc.Feature"
|
279
|
+
repeated :errors, :message, 12, "lnrpc.TimestampedError"
|
280
|
+
end
|
281
|
+
add_enum "lnrpc.Peer.SyncType" do
|
282
|
+
value :UNKNOWN_SYNC, 0
|
283
|
+
value :ACTIVE_SYNC, 1
|
284
|
+
value :PASSIVE_SYNC, 2
|
285
|
+
end
|
286
|
+
add_message "lnrpc.TimestampedError" do
|
287
|
+
optional :timestamp, :uint64, 1
|
288
|
+
optional :error, :string, 2
|
289
|
+
end
|
290
|
+
add_message "lnrpc.ListPeersRequest" do
|
291
|
+
optional :latest_error, :bool, 1
|
292
|
+
end
|
293
|
+
add_message "lnrpc.ListPeersResponse" do
|
294
|
+
repeated :peers, :message, 1, "lnrpc.Peer"
|
295
|
+
end
|
296
|
+
add_message "lnrpc.PeerEventSubscription" do
|
297
|
+
end
|
298
|
+
add_message "lnrpc.PeerEvent" do
|
299
|
+
optional :pub_key, :string, 1
|
300
|
+
optional :type, :enum, 2, "lnrpc.PeerEvent.EventType"
|
301
|
+
end
|
302
|
+
add_enum "lnrpc.PeerEvent.EventType" do
|
303
|
+
value :PEER_ONLINE, 0
|
304
|
+
value :PEER_OFFLINE, 1
|
305
|
+
end
|
306
|
+
add_message "lnrpc.GetInfoRequest" do
|
307
|
+
end
|
308
|
+
add_message "lnrpc.GetInfoResponse" do
|
309
|
+
optional :version, :string, 14
|
310
|
+
optional :commit_hash, :string, 20
|
311
|
+
optional :identity_pubkey, :string, 1
|
312
|
+
optional :alias, :string, 2
|
313
|
+
optional :color, :string, 17
|
314
|
+
optional :num_pending_channels, :uint32, 3
|
315
|
+
optional :num_active_channels, :uint32, 4
|
316
|
+
optional :num_inactive_channels, :uint32, 15
|
317
|
+
optional :num_peers, :uint32, 5
|
318
|
+
optional :block_height, :uint32, 6
|
319
|
+
optional :block_hash, :string, 8
|
320
|
+
optional :best_header_timestamp, :int64, 13
|
321
|
+
optional :synced_to_chain, :bool, 9
|
322
|
+
optional :synced_to_graph, :bool, 18
|
323
|
+
optional :testnet, :bool, 10
|
324
|
+
repeated :chains, :message, 16, "lnrpc.Chain"
|
325
|
+
repeated :uris, :string, 12
|
326
|
+
map :features, :uint32, :message, 19, "lnrpc.Feature"
|
327
|
+
end
|
328
|
+
add_message "lnrpc.GetRecoveryInfoRequest" do
|
329
|
+
end
|
330
|
+
add_message "lnrpc.GetRecoveryInfoResponse" do
|
331
|
+
optional :recovery_mode, :bool, 1
|
332
|
+
optional :recovery_finished, :bool, 2
|
333
|
+
optional :progress, :double, 3
|
334
|
+
end
|
335
|
+
add_message "lnrpc.Chain" do
|
336
|
+
optional :chain, :string, 1
|
337
|
+
optional :network, :string, 2
|
338
|
+
end
|
339
|
+
add_message "lnrpc.ConfirmationUpdate" do
|
340
|
+
optional :block_sha, :bytes, 1
|
341
|
+
optional :block_height, :int32, 2
|
342
|
+
optional :num_confs_left, :uint32, 3
|
343
|
+
end
|
344
|
+
add_message "lnrpc.ChannelOpenUpdate" do
|
345
|
+
optional :channel_point, :message, 1, "lnrpc.ChannelPoint"
|
346
|
+
end
|
347
|
+
add_message "lnrpc.ChannelCloseUpdate" do
|
348
|
+
optional :closing_txid, :bytes, 1
|
349
|
+
optional :success, :bool, 2
|
350
|
+
end
|
351
|
+
add_message "lnrpc.CloseChannelRequest" do
|
352
|
+
optional :channel_point, :message, 1, "lnrpc.ChannelPoint"
|
353
|
+
optional :force, :bool, 2
|
354
|
+
optional :target_conf, :int32, 3
|
355
|
+
optional :sat_per_byte, :int64, 4
|
356
|
+
optional :delivery_address, :string, 5
|
357
|
+
end
|
358
|
+
add_message "lnrpc.CloseStatusUpdate" do
|
359
|
+
oneof :update do
|
360
|
+
optional :close_pending, :message, 1, "lnrpc.PendingUpdate"
|
361
|
+
optional :chan_close, :message, 3, "lnrpc.ChannelCloseUpdate"
|
362
|
+
end
|
363
|
+
end
|
364
|
+
add_message "lnrpc.PendingUpdate" do
|
365
|
+
optional :txid, :bytes, 1
|
366
|
+
optional :output_index, :uint32, 2
|
367
|
+
end
|
368
|
+
add_message "lnrpc.ReadyForPsbtFunding" do
|
369
|
+
optional :funding_address, :string, 1
|
370
|
+
optional :funding_amount, :int64, 2
|
371
|
+
optional :psbt, :bytes, 3
|
372
|
+
end
|
373
|
+
add_message "lnrpc.OpenChannelRequest" do
|
374
|
+
optional :node_pubkey, :bytes, 2
|
375
|
+
optional :node_pubkey_string, :string, 3
|
376
|
+
optional :local_funding_amount, :int64, 4
|
377
|
+
optional :push_sat, :int64, 5
|
378
|
+
optional :target_conf, :int32, 6
|
379
|
+
optional :sat_per_byte, :int64, 7
|
380
|
+
optional :private, :bool, 8
|
381
|
+
optional :min_htlc_msat, :int64, 9
|
382
|
+
optional :remote_csv_delay, :uint32, 10
|
383
|
+
optional :min_confs, :int32, 11
|
384
|
+
optional :spend_unconfirmed, :bool, 12
|
385
|
+
optional :close_address, :string, 13
|
386
|
+
optional :funding_shim, :message, 14, "lnrpc.FundingShim"
|
387
|
+
optional :remote_max_value_in_flight_msat, :uint64, 15
|
388
|
+
end
|
389
|
+
add_message "lnrpc.OpenStatusUpdate" do
|
390
|
+
optional :pending_chan_id, :bytes, 4
|
391
|
+
oneof :update do
|
392
|
+
optional :chan_pending, :message, 1, "lnrpc.PendingUpdate"
|
393
|
+
optional :chan_open, :message, 3, "lnrpc.ChannelOpenUpdate"
|
394
|
+
optional :psbt_fund, :message, 5, "lnrpc.ReadyForPsbtFunding"
|
395
|
+
end
|
396
|
+
end
|
397
|
+
add_message "lnrpc.KeyLocator" do
|
398
|
+
optional :key_family, :int32, 1
|
399
|
+
optional :key_index, :int32, 2
|
400
|
+
end
|
401
|
+
add_message "lnrpc.KeyDescriptor" do
|
402
|
+
optional :raw_key_bytes, :bytes, 1
|
403
|
+
optional :key_loc, :message, 2, "lnrpc.KeyLocator"
|
404
|
+
end
|
405
|
+
add_message "lnrpc.ChanPointShim" do
|
406
|
+
optional :amt, :int64, 1
|
407
|
+
optional :chan_point, :message, 2, "lnrpc.ChannelPoint"
|
408
|
+
optional :local_key, :message, 3, "lnrpc.KeyDescriptor"
|
409
|
+
optional :remote_key, :bytes, 4
|
410
|
+
optional :pending_chan_id, :bytes, 5
|
411
|
+
optional :thaw_height, :uint32, 6
|
412
|
+
end
|
413
|
+
add_message "lnrpc.PsbtShim" do
|
414
|
+
optional :pending_chan_id, :bytes, 1
|
415
|
+
optional :base_psbt, :bytes, 2
|
416
|
+
optional :no_publish, :bool, 3
|
417
|
+
end
|
418
|
+
add_message "lnrpc.FundingShim" do
|
419
|
+
oneof :shim do
|
420
|
+
optional :chan_point_shim, :message, 1, "lnrpc.ChanPointShim"
|
421
|
+
optional :psbt_shim, :message, 2, "lnrpc.PsbtShim"
|
422
|
+
end
|
423
|
+
end
|
424
|
+
add_message "lnrpc.FundingShimCancel" do
|
425
|
+
optional :pending_chan_id, :bytes, 1
|
426
|
+
end
|
427
|
+
add_message "lnrpc.FundingPsbtVerify" do
|
428
|
+
optional :funded_psbt, :bytes, 1
|
429
|
+
optional :pending_chan_id, :bytes, 2
|
430
|
+
end
|
431
|
+
add_message "lnrpc.FundingPsbtFinalize" do
|
432
|
+
optional :signed_psbt, :bytes, 1
|
433
|
+
optional :pending_chan_id, :bytes, 2
|
434
|
+
end
|
435
|
+
add_message "lnrpc.FundingTransitionMsg" do
|
436
|
+
oneof :trigger do
|
437
|
+
optional :shim_register, :message, 1, "lnrpc.FundingShim"
|
438
|
+
optional :shim_cancel, :message, 2, "lnrpc.FundingShimCancel"
|
439
|
+
optional :psbt_verify, :message, 3, "lnrpc.FundingPsbtVerify"
|
440
|
+
optional :psbt_finalize, :message, 4, "lnrpc.FundingPsbtFinalize"
|
441
|
+
end
|
442
|
+
end
|
443
|
+
add_message "lnrpc.FundingStateStepResp" do
|
444
|
+
end
|
445
|
+
add_message "lnrpc.PendingHTLC" do
|
446
|
+
optional :incoming, :bool, 1
|
447
|
+
optional :amount, :int64, 2
|
448
|
+
optional :outpoint, :string, 3
|
449
|
+
optional :maturity_height, :uint32, 4
|
450
|
+
optional :blocks_til_maturity, :int32, 5
|
451
|
+
optional :stage, :uint32, 6
|
452
|
+
end
|
453
|
+
add_message "lnrpc.PendingChannelsRequest" do
|
454
|
+
end
|
455
|
+
add_message "lnrpc.PendingChannelsResponse" do
|
456
|
+
optional :total_limbo_balance, :int64, 1
|
457
|
+
repeated :pending_open_channels, :message, 2, "lnrpc.PendingChannelsResponse.PendingOpenChannel"
|
458
|
+
repeated :pending_closing_channels, :message, 3, "lnrpc.PendingChannelsResponse.ClosedChannel"
|
459
|
+
repeated :pending_force_closing_channels, :message, 4, "lnrpc.PendingChannelsResponse.ForceClosedChannel"
|
460
|
+
repeated :waiting_close_channels, :message, 5, "lnrpc.PendingChannelsResponse.WaitingCloseChannel"
|
461
|
+
end
|
462
|
+
add_message "lnrpc.PendingChannelsResponse.PendingChannel" do
|
463
|
+
optional :remote_node_pub, :string, 1
|
464
|
+
optional :channel_point, :string, 2
|
465
|
+
optional :capacity, :int64, 3
|
466
|
+
optional :local_balance, :int64, 4
|
467
|
+
optional :remote_balance, :int64, 5
|
468
|
+
optional :local_chan_reserve_sat, :int64, 6
|
469
|
+
optional :remote_chan_reserve_sat, :int64, 7
|
470
|
+
optional :initiator, :enum, 8, "lnrpc.Initiator"
|
471
|
+
optional :commitment_type, :enum, 9, "lnrpc.CommitmentType"
|
472
|
+
end
|
473
|
+
add_message "lnrpc.PendingChannelsResponse.PendingOpenChannel" do
|
474
|
+
optional :channel, :message, 1, "lnrpc.PendingChannelsResponse.PendingChannel"
|
475
|
+
optional :confirmation_height, :uint32, 2
|
476
|
+
optional :commit_fee, :int64, 4
|
477
|
+
optional :commit_weight, :int64, 5
|
478
|
+
optional :fee_per_kw, :int64, 6
|
479
|
+
end
|
480
|
+
add_message "lnrpc.PendingChannelsResponse.WaitingCloseChannel" do
|
481
|
+
optional :channel, :message, 1, "lnrpc.PendingChannelsResponse.PendingChannel"
|
482
|
+
optional :limbo_balance, :int64, 2
|
483
|
+
optional :commitments, :message, 3, "lnrpc.PendingChannelsResponse.Commitments"
|
484
|
+
end
|
485
|
+
add_message "lnrpc.PendingChannelsResponse.Commitments" do
|
486
|
+
optional :local_txid, :string, 1
|
487
|
+
optional :remote_txid, :string, 2
|
488
|
+
optional :remote_pending_txid, :string, 3
|
489
|
+
optional :local_commit_fee_sat, :uint64, 4
|
490
|
+
optional :remote_commit_fee_sat, :uint64, 5
|
491
|
+
optional :remote_pending_commit_fee_sat, :uint64, 6
|
492
|
+
end
|
493
|
+
add_message "lnrpc.PendingChannelsResponse.ClosedChannel" do
|
494
|
+
optional :channel, :message, 1, "lnrpc.PendingChannelsResponse.PendingChannel"
|
495
|
+
optional :closing_txid, :string, 2
|
496
|
+
end
|
497
|
+
add_message "lnrpc.PendingChannelsResponse.ForceClosedChannel" do
|
498
|
+
optional :channel, :message, 1, "lnrpc.PendingChannelsResponse.PendingChannel"
|
499
|
+
optional :closing_txid, :string, 2
|
500
|
+
optional :limbo_balance, :int64, 3
|
501
|
+
optional :maturity_height, :uint32, 4
|
502
|
+
optional :blocks_til_maturity, :int32, 5
|
503
|
+
optional :recovered_balance, :int64, 6
|
504
|
+
repeated :pending_htlcs, :message, 8, "lnrpc.PendingHTLC"
|
505
|
+
optional :anchor, :enum, 9, "lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorState"
|
506
|
+
end
|
507
|
+
add_enum "lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorState" do
|
508
|
+
value :LIMBO, 0
|
509
|
+
value :RECOVERED, 1
|
510
|
+
value :LOST, 2
|
511
|
+
end
|
512
|
+
add_message "lnrpc.ChannelEventSubscription" do
|
513
|
+
end
|
514
|
+
add_message "lnrpc.ChannelEventUpdate" do
|
515
|
+
optional :type, :enum, 5, "lnrpc.ChannelEventUpdate.UpdateType"
|
516
|
+
oneof :channel do
|
517
|
+
optional :open_channel, :message, 1, "lnrpc.Channel"
|
518
|
+
optional :closed_channel, :message, 2, "lnrpc.ChannelCloseSummary"
|
519
|
+
optional :active_channel, :message, 3, "lnrpc.ChannelPoint"
|
520
|
+
optional :inactive_channel, :message, 4, "lnrpc.ChannelPoint"
|
521
|
+
optional :pending_open_channel, :message, 6, "lnrpc.PendingUpdate"
|
522
|
+
end
|
523
|
+
end
|
524
|
+
add_enum "lnrpc.ChannelEventUpdate.UpdateType" do
|
525
|
+
value :OPEN_CHANNEL, 0
|
526
|
+
value :CLOSED_CHANNEL, 1
|
527
|
+
value :ACTIVE_CHANNEL, 2
|
528
|
+
value :INACTIVE_CHANNEL, 3
|
529
|
+
value :PENDING_OPEN_CHANNEL, 4
|
530
|
+
end
|
531
|
+
add_message "lnrpc.WalletBalanceRequest" do
|
532
|
+
end
|
533
|
+
add_message "lnrpc.WalletBalanceResponse" do
|
534
|
+
optional :total_balance, :int64, 1
|
535
|
+
optional :confirmed_balance, :int64, 2
|
536
|
+
optional :unconfirmed_balance, :int64, 3
|
537
|
+
end
|
538
|
+
add_message "lnrpc.ChannelBalanceRequest" do
|
539
|
+
end
|
540
|
+
add_message "lnrpc.ChannelBalanceResponse" do
|
541
|
+
optional :balance, :int64, 1
|
542
|
+
optional :pending_open_balance, :int64, 2
|
543
|
+
end
|
544
|
+
add_message "lnrpc.QueryRoutesRequest" do
|
545
|
+
optional :pub_key, :string, 1
|
546
|
+
optional :amt, :int64, 2
|
547
|
+
optional :amt_msat, :int64, 12
|
548
|
+
optional :final_cltv_delta, :int32, 4
|
549
|
+
optional :fee_limit, :message, 5, "lnrpc.FeeLimit"
|
550
|
+
repeated :ignored_nodes, :bytes, 6
|
551
|
+
repeated :ignored_edges, :message, 7, "lnrpc.EdgeLocator"
|
552
|
+
optional :source_pub_key, :string, 8
|
553
|
+
optional :use_mission_control, :bool, 9
|
554
|
+
repeated :ignored_pairs, :message, 10, "lnrpc.NodePair"
|
555
|
+
optional :cltv_limit, :uint32, 11
|
556
|
+
map :dest_custom_records, :uint64, :bytes, 13
|
557
|
+
optional :outgoing_chan_id, :uint64, 14
|
558
|
+
optional :last_hop_pubkey, :bytes, 15
|
559
|
+
repeated :route_hints, :message, 16, "lnrpc.RouteHint"
|
560
|
+
repeated :dest_features, :enum, 17, "lnrpc.FeatureBit"
|
561
|
+
end
|
562
|
+
add_message "lnrpc.NodePair" do
|
563
|
+
optional :from, :bytes, 1
|
564
|
+
optional :to, :bytes, 2
|
565
|
+
end
|
566
|
+
add_message "lnrpc.EdgeLocator" do
|
567
|
+
optional :channel_id, :uint64, 1
|
568
|
+
optional :direction_reverse, :bool, 2
|
569
|
+
end
|
570
|
+
add_message "lnrpc.QueryRoutesResponse" do
|
571
|
+
repeated :routes, :message, 1, "lnrpc.Route"
|
572
|
+
optional :success_prob, :double, 2
|
573
|
+
end
|
574
|
+
add_message "lnrpc.Hop" do
|
575
|
+
optional :chan_id, :uint64, 1
|
576
|
+
optional :chan_capacity, :int64, 2
|
577
|
+
optional :amt_to_forward, :int64, 3
|
578
|
+
optional :fee, :int64, 4
|
579
|
+
optional :expiry, :uint32, 5
|
580
|
+
optional :amt_to_forward_msat, :int64, 6
|
581
|
+
optional :fee_msat, :int64, 7
|
582
|
+
optional :pub_key, :string, 8
|
583
|
+
optional :tlv_payload, :bool, 9
|
584
|
+
optional :mpp_record, :message, 10, "lnrpc.MPPRecord"
|
585
|
+
map :custom_records, :uint64, :bytes, 11
|
586
|
+
end
|
587
|
+
add_message "lnrpc.MPPRecord" do
|
588
|
+
optional :payment_addr, :bytes, 11
|
589
|
+
optional :total_amt_msat, :int64, 10
|
590
|
+
end
|
591
|
+
add_message "lnrpc.Route" do
|
592
|
+
optional :total_time_lock, :uint32, 1
|
593
|
+
optional :total_fees, :int64, 2
|
594
|
+
optional :total_amt, :int64, 3
|
595
|
+
repeated :hops, :message, 4, "lnrpc.Hop"
|
596
|
+
optional :total_fees_msat, :int64, 5
|
597
|
+
optional :total_amt_msat, :int64, 6
|
598
|
+
end
|
599
|
+
add_message "lnrpc.NodeInfoRequest" do
|
600
|
+
optional :pub_key, :string, 1
|
601
|
+
optional :include_channels, :bool, 2
|
602
|
+
end
|
603
|
+
add_message "lnrpc.NodeInfo" do
|
604
|
+
optional :node, :message, 1, "lnrpc.LightningNode"
|
605
|
+
optional :num_channels, :uint32, 2
|
606
|
+
optional :total_capacity, :int64, 3
|
607
|
+
repeated :channels, :message, 4, "lnrpc.ChannelEdge"
|
608
|
+
end
|
609
|
+
add_message "lnrpc.LightningNode" do
|
610
|
+
optional :last_update, :uint32, 1
|
611
|
+
optional :pub_key, :string, 2
|
612
|
+
optional :alias, :string, 3
|
613
|
+
repeated :addresses, :message, 4, "lnrpc.NodeAddress"
|
614
|
+
optional :color, :string, 5
|
615
|
+
map :features, :uint32, :message, 6, "lnrpc.Feature"
|
616
|
+
end
|
617
|
+
add_message "lnrpc.NodeAddress" do
|
618
|
+
optional :network, :string, 1
|
619
|
+
optional :addr, :string, 2
|
620
|
+
end
|
621
|
+
add_message "lnrpc.RoutingPolicy" do
|
622
|
+
optional :time_lock_delta, :uint32, 1
|
623
|
+
optional :min_htlc, :int64, 2
|
624
|
+
optional :fee_base_msat, :int64, 3
|
625
|
+
optional :fee_rate_milli_msat, :int64, 4
|
626
|
+
optional :disabled, :bool, 5
|
627
|
+
optional :max_htlc_msat, :uint64, 6
|
628
|
+
optional :last_update, :uint32, 7
|
629
|
+
end
|
630
|
+
add_message "lnrpc.ChannelEdge" do
|
631
|
+
optional :channel_id, :uint64, 1
|
632
|
+
optional :chan_point, :string, 2
|
633
|
+
optional :last_update, :uint32, 3
|
634
|
+
optional :node1_pub, :string, 4
|
635
|
+
optional :node2_pub, :string, 5
|
636
|
+
optional :capacity, :int64, 6
|
637
|
+
optional :node1_policy, :message, 7, "lnrpc.RoutingPolicy"
|
638
|
+
optional :node2_policy, :message, 8, "lnrpc.RoutingPolicy"
|
639
|
+
end
|
640
|
+
add_message "lnrpc.ChannelGraphRequest" do
|
641
|
+
optional :include_unannounced, :bool, 1
|
642
|
+
end
|
643
|
+
add_message "lnrpc.ChannelGraph" do
|
644
|
+
repeated :nodes, :message, 1, "lnrpc.LightningNode"
|
645
|
+
repeated :edges, :message, 2, "lnrpc.ChannelEdge"
|
646
|
+
end
|
647
|
+
add_message "lnrpc.NodeMetricsRequest" do
|
648
|
+
repeated :types, :enum, 1, "lnrpc.NodeMetricType"
|
649
|
+
end
|
650
|
+
add_message "lnrpc.NodeMetricsResponse" do
|
651
|
+
map :betweenness_centrality, :string, :message, 1, "lnrpc.FloatMetric"
|
652
|
+
end
|
653
|
+
add_message "lnrpc.FloatMetric" do
|
654
|
+
optional :value, :double, 1
|
655
|
+
optional :normalized_value, :double, 2
|
656
|
+
end
|
657
|
+
add_message "lnrpc.ChanInfoRequest" do
|
658
|
+
optional :chan_id, :uint64, 1
|
659
|
+
end
|
660
|
+
add_message "lnrpc.NetworkInfoRequest" do
|
661
|
+
end
|
662
|
+
add_message "lnrpc.NetworkInfo" do
|
663
|
+
optional :graph_diameter, :uint32, 1
|
664
|
+
optional :avg_out_degree, :double, 2
|
665
|
+
optional :max_out_degree, :uint32, 3
|
666
|
+
optional :num_nodes, :uint32, 4
|
667
|
+
optional :num_channels, :uint32, 5
|
668
|
+
optional :total_network_capacity, :int64, 6
|
669
|
+
optional :avg_channel_size, :double, 7
|
670
|
+
optional :min_channel_size, :int64, 8
|
671
|
+
optional :max_channel_size, :int64, 9
|
672
|
+
optional :median_channel_size_sat, :int64, 10
|
673
|
+
optional :num_zombie_chans, :uint64, 11
|
674
|
+
end
|
675
|
+
add_message "lnrpc.StopRequest" do
|
676
|
+
end
|
677
|
+
add_message "lnrpc.StopResponse" do
|
678
|
+
end
|
679
|
+
add_message "lnrpc.GraphTopologySubscription" do
|
680
|
+
end
|
681
|
+
add_message "lnrpc.GraphTopologyUpdate" do
|
682
|
+
repeated :node_updates, :message, 1, "lnrpc.NodeUpdate"
|
683
|
+
repeated :channel_updates, :message, 2, "lnrpc.ChannelEdgeUpdate"
|
684
|
+
repeated :closed_chans, :message, 3, "lnrpc.ClosedChannelUpdate"
|
685
|
+
end
|
686
|
+
add_message "lnrpc.NodeUpdate" do
|
687
|
+
repeated :addresses, :string, 1
|
688
|
+
optional :identity_key, :string, 2
|
689
|
+
optional :global_features, :bytes, 3
|
690
|
+
optional :alias, :string, 4
|
691
|
+
optional :color, :string, 5
|
692
|
+
end
|
693
|
+
add_message "lnrpc.ChannelEdgeUpdate" do
|
694
|
+
optional :chan_id, :uint64, 1
|
695
|
+
optional :chan_point, :message, 2, "lnrpc.ChannelPoint"
|
696
|
+
optional :capacity, :int64, 3
|
697
|
+
optional :routing_policy, :message, 4, "lnrpc.RoutingPolicy"
|
698
|
+
optional :advertising_node, :string, 5
|
699
|
+
optional :connecting_node, :string, 6
|
700
|
+
end
|
701
|
+
add_message "lnrpc.ClosedChannelUpdate" do
|
702
|
+
optional :chan_id, :uint64, 1
|
703
|
+
optional :capacity, :int64, 2
|
704
|
+
optional :closed_height, :uint32, 3
|
705
|
+
optional :chan_point, :message, 4, "lnrpc.ChannelPoint"
|
706
|
+
end
|
707
|
+
add_message "lnrpc.HopHint" do
|
708
|
+
optional :node_id, :string, 1
|
709
|
+
optional :chan_id, :uint64, 2
|
710
|
+
optional :fee_base_msat, :uint32, 3
|
711
|
+
optional :fee_proportional_millionths, :uint32, 4
|
712
|
+
optional :cltv_expiry_delta, :uint32, 5
|
713
|
+
end
|
714
|
+
add_message "lnrpc.RouteHint" do
|
715
|
+
repeated :hop_hints, :message, 1, "lnrpc.HopHint"
|
716
|
+
end
|
717
|
+
add_message "lnrpc.Invoice" do
|
718
|
+
optional :memo, :string, 1
|
719
|
+
optional :r_preimage, :bytes, 3
|
720
|
+
optional :r_hash, :bytes, 4
|
721
|
+
optional :value, :int64, 5
|
722
|
+
optional :value_msat, :int64, 23
|
723
|
+
optional :settled, :bool, 6
|
724
|
+
optional :creation_date, :int64, 7
|
725
|
+
optional :settle_date, :int64, 8
|
726
|
+
optional :payment_request, :string, 9
|
727
|
+
optional :description_hash, :bytes, 10
|
728
|
+
optional :expiry, :int64, 11
|
729
|
+
optional :fallback_addr, :string, 12
|
730
|
+
optional :cltv_expiry, :uint64, 13
|
731
|
+
repeated :route_hints, :message, 14, "lnrpc.RouteHint"
|
732
|
+
optional :private, :bool, 15
|
733
|
+
optional :add_index, :uint64, 16
|
734
|
+
optional :settle_index, :uint64, 17
|
735
|
+
optional :amt_paid, :int64, 18
|
736
|
+
optional :amt_paid_sat, :int64, 19
|
737
|
+
optional :amt_paid_msat, :int64, 20
|
738
|
+
optional :state, :enum, 21, "lnrpc.Invoice.InvoiceState"
|
739
|
+
repeated :htlcs, :message, 22, "lnrpc.InvoiceHTLC"
|
740
|
+
map :features, :uint32, :message, 24, "lnrpc.Feature"
|
741
|
+
optional :is_keysend, :bool, 25
|
742
|
+
end
|
743
|
+
add_enum "lnrpc.Invoice.InvoiceState" do
|
744
|
+
value :OPEN, 0
|
745
|
+
value :SETTLED, 1
|
746
|
+
value :CANCELED, 2
|
747
|
+
value :ACCEPTED, 3
|
748
|
+
end
|
749
|
+
add_message "lnrpc.InvoiceHTLC" do
|
750
|
+
optional :chan_id, :uint64, 1
|
751
|
+
optional :htlc_index, :uint64, 2
|
752
|
+
optional :amt_msat, :uint64, 3
|
753
|
+
optional :accept_height, :int32, 4
|
754
|
+
optional :accept_time, :int64, 5
|
755
|
+
optional :resolve_time, :int64, 6
|
756
|
+
optional :expiry_height, :int32, 7
|
757
|
+
optional :state, :enum, 8, "lnrpc.InvoiceHTLCState"
|
758
|
+
map :custom_records, :uint64, :bytes, 9
|
759
|
+
optional :mpp_total_amt_msat, :uint64, 10
|
760
|
+
end
|
761
|
+
add_message "lnrpc.AddInvoiceResponse" do
|
762
|
+
optional :r_hash, :bytes, 1
|
763
|
+
optional :payment_request, :string, 2
|
764
|
+
optional :add_index, :uint64, 16
|
765
|
+
end
|
766
|
+
add_message "lnrpc.PaymentHash" do
|
767
|
+
optional :r_hash_str, :string, 1
|
768
|
+
optional :r_hash, :bytes, 2
|
769
|
+
end
|
770
|
+
add_message "lnrpc.ListInvoiceRequest" do
|
771
|
+
optional :pending_only, :bool, 1
|
772
|
+
optional :index_offset, :uint64, 4
|
773
|
+
optional :num_max_invoices, :uint64, 5
|
774
|
+
optional :reversed, :bool, 6
|
775
|
+
end
|
776
|
+
add_message "lnrpc.ListInvoiceResponse" do
|
777
|
+
repeated :invoices, :message, 1, "lnrpc.Invoice"
|
778
|
+
optional :last_index_offset, :uint64, 2
|
779
|
+
optional :first_index_offset, :uint64, 3
|
780
|
+
end
|
781
|
+
add_message "lnrpc.InvoiceSubscription" do
|
782
|
+
optional :add_index, :uint64, 1
|
783
|
+
optional :settle_index, :uint64, 2
|
784
|
+
end
|
785
|
+
add_message "lnrpc.Payment" do
|
786
|
+
optional :payment_hash, :string, 1
|
787
|
+
optional :value, :int64, 2
|
788
|
+
optional :creation_date, :int64, 3
|
789
|
+
optional :fee, :int64, 5
|
790
|
+
optional :payment_preimage, :string, 6
|
791
|
+
optional :value_sat, :int64, 7
|
792
|
+
optional :value_msat, :int64, 8
|
793
|
+
optional :payment_request, :string, 9
|
794
|
+
optional :status, :enum, 10, "lnrpc.Payment.PaymentStatus"
|
795
|
+
optional :fee_sat, :int64, 11
|
796
|
+
optional :fee_msat, :int64, 12
|
797
|
+
optional :creation_time_ns, :int64, 13
|
798
|
+
repeated :htlcs, :message, 14, "lnrpc.HTLCAttempt"
|
799
|
+
optional :payment_index, :uint64, 15
|
800
|
+
optional :failure_reason, :enum, 16, "lnrpc.PaymentFailureReason"
|
801
|
+
end
|
802
|
+
add_enum "lnrpc.Payment.PaymentStatus" do
|
803
|
+
value :UNKNOWN, 0
|
804
|
+
value :IN_FLIGHT, 1
|
805
|
+
value :SUCCEEDED, 2
|
806
|
+
value :FAILED, 3
|
807
|
+
end
|
808
|
+
add_message "lnrpc.HTLCAttempt" do
|
809
|
+
optional :status, :enum, 1, "lnrpc.HTLCAttempt.HTLCStatus"
|
810
|
+
optional :route, :message, 2, "lnrpc.Route"
|
811
|
+
optional :attempt_time_ns, :int64, 3
|
812
|
+
optional :resolve_time_ns, :int64, 4
|
813
|
+
optional :failure, :message, 5, "lnrpc.Failure"
|
814
|
+
optional :preimage, :bytes, 6
|
815
|
+
end
|
816
|
+
add_enum "lnrpc.HTLCAttempt.HTLCStatus" do
|
817
|
+
value :IN_FLIGHT, 0
|
818
|
+
value :SUCCEEDED, 1
|
819
|
+
value :FAILED, 2
|
820
|
+
end
|
821
|
+
add_message "lnrpc.ListPaymentsRequest" do
|
822
|
+
optional :include_incomplete, :bool, 1
|
823
|
+
optional :index_offset, :uint64, 2
|
824
|
+
optional :max_payments, :uint64, 3
|
825
|
+
optional :reversed, :bool, 4
|
826
|
+
end
|
827
|
+
add_message "lnrpc.ListPaymentsResponse" do
|
828
|
+
repeated :payments, :message, 1, "lnrpc.Payment"
|
829
|
+
optional :first_index_offset, :uint64, 2
|
830
|
+
optional :last_index_offset, :uint64, 3
|
831
|
+
end
|
832
|
+
add_message "lnrpc.DeleteAllPaymentsRequest" do
|
833
|
+
end
|
834
|
+
add_message "lnrpc.DeleteAllPaymentsResponse" do
|
835
|
+
end
|
836
|
+
add_message "lnrpc.AbandonChannelRequest" do
|
837
|
+
optional :channel_point, :message, 1, "lnrpc.ChannelPoint"
|
838
|
+
end
|
839
|
+
add_message "lnrpc.AbandonChannelResponse" do
|
840
|
+
end
|
841
|
+
add_message "lnrpc.DebugLevelRequest" do
|
842
|
+
optional :show, :bool, 1
|
843
|
+
optional :level_spec, :string, 2
|
844
|
+
end
|
845
|
+
add_message "lnrpc.DebugLevelResponse" do
|
846
|
+
optional :sub_systems, :string, 1
|
847
|
+
end
|
848
|
+
add_message "lnrpc.PayReqString" do
|
849
|
+
optional :pay_req, :string, 1
|
850
|
+
end
|
851
|
+
add_message "lnrpc.PayReq" do
|
852
|
+
optional :destination, :string, 1
|
853
|
+
optional :payment_hash, :string, 2
|
854
|
+
optional :num_satoshis, :int64, 3
|
855
|
+
optional :timestamp, :int64, 4
|
856
|
+
optional :expiry, :int64, 5
|
857
|
+
optional :description, :string, 6
|
858
|
+
optional :description_hash, :string, 7
|
859
|
+
optional :fallback_addr, :string, 8
|
860
|
+
optional :cltv_expiry, :int64, 9
|
861
|
+
repeated :route_hints, :message, 10, "lnrpc.RouteHint"
|
862
|
+
optional :payment_addr, :bytes, 11
|
863
|
+
optional :num_msat, :int64, 12
|
864
|
+
map :features, :uint32, :message, 13, "lnrpc.Feature"
|
865
|
+
end
|
866
|
+
add_message "lnrpc.Feature" do
|
867
|
+
optional :name, :string, 2
|
868
|
+
optional :is_required, :bool, 3
|
869
|
+
optional :is_known, :bool, 4
|
870
|
+
end
|
871
|
+
add_message "lnrpc.FeeReportRequest" do
|
872
|
+
end
|
873
|
+
add_message "lnrpc.ChannelFeeReport" do
|
874
|
+
optional :chan_id, :uint64, 5
|
875
|
+
optional :channel_point, :string, 1
|
876
|
+
optional :base_fee_msat, :int64, 2
|
877
|
+
optional :fee_per_mil, :int64, 3
|
878
|
+
optional :fee_rate, :double, 4
|
879
|
+
end
|
880
|
+
add_message "lnrpc.FeeReportResponse" do
|
881
|
+
repeated :channel_fees, :message, 1, "lnrpc.ChannelFeeReport"
|
882
|
+
optional :day_fee_sum, :uint64, 2
|
883
|
+
optional :week_fee_sum, :uint64, 3
|
884
|
+
optional :month_fee_sum, :uint64, 4
|
885
|
+
end
|
886
|
+
add_message "lnrpc.PolicyUpdateRequest" do
|
887
|
+
optional :base_fee_msat, :int64, 3
|
888
|
+
optional :fee_rate, :double, 4
|
889
|
+
optional :time_lock_delta, :uint32, 5
|
890
|
+
optional :max_htlc_msat, :uint64, 6
|
891
|
+
optional :min_htlc_msat, :uint64, 7
|
892
|
+
optional :min_htlc_msat_specified, :bool, 8
|
893
|
+
oneof :scope do
|
894
|
+
optional :global, :bool, 1
|
895
|
+
optional :chan_point, :message, 2, "lnrpc.ChannelPoint"
|
896
|
+
end
|
897
|
+
end
|
898
|
+
add_message "lnrpc.PolicyUpdateResponse" do
|
899
|
+
end
|
900
|
+
add_message "lnrpc.ForwardingHistoryRequest" do
|
901
|
+
optional :start_time, :uint64, 1
|
902
|
+
optional :end_time, :uint64, 2
|
903
|
+
optional :index_offset, :uint32, 3
|
904
|
+
optional :num_max_events, :uint32, 4
|
905
|
+
end
|
906
|
+
add_message "lnrpc.ForwardingEvent" do
|
907
|
+
optional :timestamp, :uint64, 1
|
908
|
+
optional :chan_id_in, :uint64, 2
|
909
|
+
optional :chan_id_out, :uint64, 4
|
910
|
+
optional :amt_in, :uint64, 5
|
911
|
+
optional :amt_out, :uint64, 6
|
912
|
+
optional :fee, :uint64, 7
|
913
|
+
optional :fee_msat, :uint64, 8
|
914
|
+
optional :amt_in_msat, :uint64, 9
|
915
|
+
optional :amt_out_msat, :uint64, 10
|
916
|
+
end
|
917
|
+
add_message "lnrpc.ForwardingHistoryResponse" do
|
918
|
+
repeated :forwarding_events, :message, 1, "lnrpc.ForwardingEvent"
|
919
|
+
optional :last_offset_index, :uint32, 2
|
920
|
+
end
|
921
|
+
add_message "lnrpc.ExportChannelBackupRequest" do
|
922
|
+
optional :chan_point, :message, 1, "lnrpc.ChannelPoint"
|
923
|
+
end
|
924
|
+
add_message "lnrpc.ChannelBackup" do
|
925
|
+
optional :chan_point, :message, 1, "lnrpc.ChannelPoint"
|
926
|
+
optional :chan_backup, :bytes, 2
|
927
|
+
end
|
928
|
+
add_message "lnrpc.MultiChanBackup" do
|
929
|
+
repeated :chan_points, :message, 1, "lnrpc.ChannelPoint"
|
930
|
+
optional :multi_chan_backup, :bytes, 2
|
931
|
+
end
|
932
|
+
add_message "lnrpc.ChanBackupExportRequest" do
|
933
|
+
end
|
934
|
+
add_message "lnrpc.ChanBackupSnapshot" do
|
935
|
+
optional :single_chan_backups, :message, 1, "lnrpc.ChannelBackups"
|
936
|
+
optional :multi_chan_backup, :message, 2, "lnrpc.MultiChanBackup"
|
937
|
+
end
|
938
|
+
add_message "lnrpc.ChannelBackups" do
|
939
|
+
repeated :chan_backups, :message, 1, "lnrpc.ChannelBackup"
|
940
|
+
end
|
941
|
+
add_message "lnrpc.RestoreChanBackupRequest" do
|
942
|
+
oneof :backup do
|
943
|
+
optional :chan_backups, :message, 1, "lnrpc.ChannelBackups"
|
944
|
+
optional :multi_chan_backup, :bytes, 2
|
945
|
+
end
|
946
|
+
end
|
947
|
+
add_message "lnrpc.RestoreBackupResponse" do
|
948
|
+
end
|
949
|
+
add_message "lnrpc.ChannelBackupSubscription" do
|
950
|
+
end
|
951
|
+
add_message "lnrpc.VerifyChanBackupResponse" do
|
952
|
+
end
|
953
|
+
add_message "lnrpc.MacaroonPermission" do
|
954
|
+
optional :entity, :string, 1
|
955
|
+
optional :action, :string, 2
|
956
|
+
end
|
957
|
+
add_message "lnrpc.BakeMacaroonRequest" do
|
958
|
+
repeated :permissions, :message, 1, "lnrpc.MacaroonPermission"
|
959
|
+
end
|
960
|
+
add_message "lnrpc.BakeMacaroonResponse" do
|
961
|
+
optional :macaroon, :string, 1
|
962
|
+
end
|
963
|
+
add_message "lnrpc.Failure" do
|
964
|
+
optional :code, :enum, 1, "lnrpc.Failure.FailureCode"
|
965
|
+
optional :channel_update, :message, 3, "lnrpc.ChannelUpdate"
|
966
|
+
optional :htlc_msat, :uint64, 4
|
967
|
+
optional :onion_sha_256, :bytes, 5
|
968
|
+
optional :cltv_expiry, :uint32, 6
|
969
|
+
optional :flags, :uint32, 7
|
970
|
+
optional :failure_source_index, :uint32, 8
|
971
|
+
optional :height, :uint32, 9
|
972
|
+
end
|
973
|
+
add_enum "lnrpc.Failure.FailureCode" do
|
974
|
+
value :RESERVED, 0
|
975
|
+
value :INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS, 1
|
976
|
+
value :INCORRECT_PAYMENT_AMOUNT, 2
|
977
|
+
value :FINAL_INCORRECT_CLTV_EXPIRY, 3
|
978
|
+
value :FINAL_INCORRECT_HTLC_AMOUNT, 4
|
979
|
+
value :FINAL_EXPIRY_TOO_SOON, 5
|
980
|
+
value :INVALID_REALM, 6
|
981
|
+
value :EXPIRY_TOO_SOON, 7
|
982
|
+
value :INVALID_ONION_VERSION, 8
|
983
|
+
value :INVALID_ONION_HMAC, 9
|
984
|
+
value :INVALID_ONION_KEY, 10
|
985
|
+
value :AMOUNT_BELOW_MINIMUM, 11
|
986
|
+
value :FEE_INSUFFICIENT, 12
|
987
|
+
value :INCORRECT_CLTV_EXPIRY, 13
|
988
|
+
value :CHANNEL_DISABLED, 14
|
989
|
+
value :TEMPORARY_CHANNEL_FAILURE, 15
|
990
|
+
value :REQUIRED_NODE_FEATURE_MISSING, 16
|
991
|
+
value :REQUIRED_CHANNEL_FEATURE_MISSING, 17
|
992
|
+
value :UNKNOWN_NEXT_PEER, 18
|
993
|
+
value :TEMPORARY_NODE_FAILURE, 19
|
994
|
+
value :PERMANENT_NODE_FAILURE, 20
|
995
|
+
value :PERMANENT_CHANNEL_FAILURE, 21
|
996
|
+
value :EXPIRY_TOO_FAR, 22
|
997
|
+
value :MPP_TIMEOUT, 23
|
998
|
+
value :INTERNAL_FAILURE, 997
|
999
|
+
value :UNKNOWN_FAILURE, 998
|
1000
|
+
value :UNREADABLE_FAILURE, 999
|
1001
|
+
end
|
1002
|
+
add_message "lnrpc.ChannelUpdate" do
|
1003
|
+
optional :signature, :bytes, 1
|
1004
|
+
optional :chain_hash, :bytes, 2
|
1005
|
+
optional :chan_id, :uint64, 3
|
1006
|
+
optional :timestamp, :uint32, 4
|
1007
|
+
optional :message_flags, :uint32, 10
|
1008
|
+
optional :channel_flags, :uint32, 5
|
1009
|
+
optional :time_lock_delta, :uint32, 6
|
1010
|
+
optional :htlc_minimum_msat, :uint64, 7
|
1011
|
+
optional :base_fee, :uint32, 8
|
1012
|
+
optional :fee_rate, :uint32, 9
|
1013
|
+
optional :htlc_maximum_msat, :uint64, 11
|
1014
|
+
optional :extra_opaque_data, :bytes, 12
|
1015
|
+
end
|
1016
|
+
add_enum "lnrpc.AddressType" do
|
1017
|
+
value :WITNESS_PUBKEY_HASH, 0
|
1018
|
+
value :NESTED_PUBKEY_HASH, 1
|
1019
|
+
value :UNUSED_WITNESS_PUBKEY_HASH, 2
|
1020
|
+
value :UNUSED_NESTED_PUBKEY_HASH, 3
|
1021
|
+
end
|
1022
|
+
add_enum "lnrpc.CommitmentType" do
|
1023
|
+
value :LEGACY, 0
|
1024
|
+
value :STATIC_REMOTE_KEY, 1
|
1025
|
+
value :ANCHORS, 2
|
1026
|
+
value :UNKNOWN_COMMITMENT_TYPE, 999
|
1027
|
+
end
|
1028
|
+
add_enum "lnrpc.Initiator" do
|
1029
|
+
value :INITIATOR_UNKNOWN, 0
|
1030
|
+
value :INITIATOR_LOCAL, 1
|
1031
|
+
value :INITIATOR_REMOTE, 2
|
1032
|
+
value :INITIATOR_BOTH, 3
|
1033
|
+
end
|
1034
|
+
add_enum "lnrpc.ResolutionType" do
|
1035
|
+
value :TYPE_UNKNOWN, 0
|
1036
|
+
value :ANCHOR, 1
|
1037
|
+
value :INCOMING_HTLC, 2
|
1038
|
+
value :OUTGOING_HTLC, 3
|
1039
|
+
value :COMMIT, 4
|
1040
|
+
end
|
1041
|
+
add_enum "lnrpc.ResolutionOutcome" do
|
1042
|
+
value :OUTCOME_UNKNOWN, 0
|
1043
|
+
value :CLAIMED, 1
|
1044
|
+
value :UNCLAIMED, 2
|
1045
|
+
value :ABANDONED, 3
|
1046
|
+
value :FIRST_STAGE, 4
|
1047
|
+
value :TIMEOUT, 5
|
1048
|
+
end
|
1049
|
+
add_enum "lnrpc.NodeMetricType" do
|
1050
|
+
value :UNKNOWN, 0
|
1051
|
+
value :BETWEENNESS_CENTRALITY, 1
|
1052
|
+
end
|
1053
|
+
add_enum "lnrpc.InvoiceHTLCState" do
|
1054
|
+
value :ACCEPTED, 0
|
1055
|
+
value :SETTLED, 1
|
1056
|
+
value :CANCELED, 2
|
1057
|
+
end
|
1058
|
+
add_enum "lnrpc.PaymentFailureReason" do
|
1059
|
+
value :FAILURE_REASON_NONE, 0
|
1060
|
+
value :FAILURE_REASON_TIMEOUT, 1
|
1061
|
+
value :FAILURE_REASON_NO_ROUTE, 2
|
1062
|
+
value :FAILURE_REASON_ERROR, 3
|
1063
|
+
value :FAILURE_REASON_INCORRECT_PAYMENT_DETAILS, 4
|
1064
|
+
value :FAILURE_REASON_INSUFFICIENT_BALANCE, 5
|
1065
|
+
end
|
1066
|
+
add_enum "lnrpc.FeatureBit" do
|
1067
|
+
value :DATALOSS_PROTECT_REQ, 0
|
1068
|
+
value :DATALOSS_PROTECT_OPT, 1
|
1069
|
+
value :INITIAL_ROUING_SYNC, 3
|
1070
|
+
value :UPFRONT_SHUTDOWN_SCRIPT_REQ, 4
|
1071
|
+
value :UPFRONT_SHUTDOWN_SCRIPT_OPT, 5
|
1072
|
+
value :GOSSIP_QUERIES_REQ, 6
|
1073
|
+
value :GOSSIP_QUERIES_OPT, 7
|
1074
|
+
value :TLV_ONION_REQ, 8
|
1075
|
+
value :TLV_ONION_OPT, 9
|
1076
|
+
value :EXT_GOSSIP_QUERIES_REQ, 10
|
1077
|
+
value :EXT_GOSSIP_QUERIES_OPT, 11
|
1078
|
+
value :STATIC_REMOTE_KEY_REQ, 12
|
1079
|
+
value :STATIC_REMOTE_KEY_OPT, 13
|
1080
|
+
value :PAYMENT_ADDR_REQ, 14
|
1081
|
+
value :PAYMENT_ADDR_OPT, 15
|
1082
|
+
value :MPP_REQ, 16
|
1083
|
+
value :MPP_OPT, 17
|
1084
|
+
end
|
1085
|
+
end
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
module Lnrpc
|
1089
|
+
Utxo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Utxo").msgclass
|
1090
|
+
Transaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Transaction").msgclass
|
1091
|
+
GetTransactionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.GetTransactionsRequest").msgclass
|
1092
|
+
TransactionDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.TransactionDetails").msgclass
|
1093
|
+
FeeLimit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FeeLimit").msgclass
|
1094
|
+
SendRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendRequest").msgclass
|
1095
|
+
SendResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendResponse").msgclass
|
1096
|
+
SendToRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendToRouteRequest").msgclass
|
1097
|
+
ChannelAcceptRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelAcceptRequest").msgclass
|
1098
|
+
ChannelAcceptResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelAcceptResponse").msgclass
|
1099
|
+
ChannelPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelPoint").msgclass
|
1100
|
+
OutPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.OutPoint").msgclass
|
1101
|
+
LightningAddress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.LightningAddress").msgclass
|
1102
|
+
EstimateFeeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.EstimateFeeRequest").msgclass
|
1103
|
+
EstimateFeeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.EstimateFeeResponse").msgclass
|
1104
|
+
SendManyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendManyRequest").msgclass
|
1105
|
+
SendManyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendManyResponse").msgclass
|
1106
|
+
SendCoinsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendCoinsRequest").msgclass
|
1107
|
+
SendCoinsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendCoinsResponse").msgclass
|
1108
|
+
ListUnspentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListUnspentRequest").msgclass
|
1109
|
+
ListUnspentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListUnspentResponse").msgclass
|
1110
|
+
NewAddressRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NewAddressRequest").msgclass
|
1111
|
+
NewAddressResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NewAddressResponse").msgclass
|
1112
|
+
SignMessageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SignMessageRequest").msgclass
|
1113
|
+
SignMessageResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SignMessageResponse").msgclass
|
1114
|
+
VerifyMessageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.VerifyMessageRequest").msgclass
|
1115
|
+
VerifyMessageResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.VerifyMessageResponse").msgclass
|
1116
|
+
ConnectPeerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ConnectPeerRequest").msgclass
|
1117
|
+
ConnectPeerResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ConnectPeerResponse").msgclass
|
1118
|
+
DisconnectPeerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.DisconnectPeerRequest").msgclass
|
1119
|
+
DisconnectPeerResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.DisconnectPeerResponse").msgclass
|
1120
|
+
HTLC = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.HTLC").msgclass
|
1121
|
+
ChannelConstraints = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelConstraints").msgclass
|
1122
|
+
Channel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Channel").msgclass
|
1123
|
+
ListChannelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListChannelsRequest").msgclass
|
1124
|
+
ListChannelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListChannelsResponse").msgclass
|
1125
|
+
ChannelCloseSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelCloseSummary").msgclass
|
1126
|
+
ChannelCloseSummary::ClosureType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelCloseSummary.ClosureType").enummodule
|
1127
|
+
Resolution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Resolution").msgclass
|
1128
|
+
ClosedChannelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ClosedChannelsRequest").msgclass
|
1129
|
+
ClosedChannelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ClosedChannelsResponse").msgclass
|
1130
|
+
Peer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Peer").msgclass
|
1131
|
+
Peer::SyncType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Peer.SyncType").enummodule
|
1132
|
+
TimestampedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.TimestampedError").msgclass
|
1133
|
+
ListPeersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListPeersRequest").msgclass
|
1134
|
+
ListPeersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListPeersResponse").msgclass
|
1135
|
+
PeerEventSubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PeerEventSubscription").msgclass
|
1136
|
+
PeerEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PeerEvent").msgclass
|
1137
|
+
PeerEvent::EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PeerEvent.EventType").enummodule
|
1138
|
+
GetInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.GetInfoRequest").msgclass
|
1139
|
+
GetInfoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.GetInfoResponse").msgclass
|
1140
|
+
GetRecoveryInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.GetRecoveryInfoRequest").msgclass
|
1141
|
+
GetRecoveryInfoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.GetRecoveryInfoResponse").msgclass
|
1142
|
+
Chain = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Chain").msgclass
|
1143
|
+
ConfirmationUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ConfirmationUpdate").msgclass
|
1144
|
+
ChannelOpenUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelOpenUpdate").msgclass
|
1145
|
+
ChannelCloseUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelCloseUpdate").msgclass
|
1146
|
+
CloseChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.CloseChannelRequest").msgclass
|
1147
|
+
CloseStatusUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.CloseStatusUpdate").msgclass
|
1148
|
+
PendingUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingUpdate").msgclass
|
1149
|
+
ReadyForPsbtFunding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ReadyForPsbtFunding").msgclass
|
1150
|
+
OpenChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.OpenChannelRequest").msgclass
|
1151
|
+
OpenStatusUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.OpenStatusUpdate").msgclass
|
1152
|
+
KeyLocator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.KeyLocator").msgclass
|
1153
|
+
KeyDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.KeyDescriptor").msgclass
|
1154
|
+
ChanPointShim = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChanPointShim").msgclass
|
1155
|
+
PsbtShim = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PsbtShim").msgclass
|
1156
|
+
FundingShim = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FundingShim").msgclass
|
1157
|
+
FundingShimCancel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FundingShimCancel").msgclass
|
1158
|
+
FundingPsbtVerify = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FundingPsbtVerify").msgclass
|
1159
|
+
FundingPsbtFinalize = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FundingPsbtFinalize").msgclass
|
1160
|
+
FundingTransitionMsg = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FundingTransitionMsg").msgclass
|
1161
|
+
FundingStateStepResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FundingStateStepResp").msgclass
|
1162
|
+
PendingHTLC = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingHTLC").msgclass
|
1163
|
+
PendingChannelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsRequest").msgclass
|
1164
|
+
PendingChannelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse").msgclass
|
1165
|
+
PendingChannelsResponse::PendingChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse.PendingChannel").msgclass
|
1166
|
+
PendingChannelsResponse::PendingOpenChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse.PendingOpenChannel").msgclass
|
1167
|
+
PendingChannelsResponse::WaitingCloseChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse.WaitingCloseChannel").msgclass
|
1168
|
+
PendingChannelsResponse::Commitments = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse.Commitments").msgclass
|
1169
|
+
PendingChannelsResponse::ClosedChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse.ClosedChannel").msgclass
|
1170
|
+
PendingChannelsResponse::ForceClosedChannel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse.ForceClosedChannel").msgclass
|
1171
|
+
PendingChannelsResponse::ForceClosedChannel::AnchorState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorState").enummodule
|
1172
|
+
ChannelEventSubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelEventSubscription").msgclass
|
1173
|
+
ChannelEventUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelEventUpdate").msgclass
|
1174
|
+
ChannelEventUpdate::UpdateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelEventUpdate.UpdateType").enummodule
|
1175
|
+
WalletBalanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.WalletBalanceRequest").msgclass
|
1176
|
+
WalletBalanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.WalletBalanceResponse").msgclass
|
1177
|
+
ChannelBalanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelBalanceRequest").msgclass
|
1178
|
+
ChannelBalanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelBalanceResponse").msgclass
|
1179
|
+
QueryRoutesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.QueryRoutesRequest").msgclass
|
1180
|
+
NodePair = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodePair").msgclass
|
1181
|
+
EdgeLocator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.EdgeLocator").msgclass
|
1182
|
+
QueryRoutesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.QueryRoutesResponse").msgclass
|
1183
|
+
Hop = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Hop").msgclass
|
1184
|
+
MPPRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.MPPRecord").msgclass
|
1185
|
+
Route = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Route").msgclass
|
1186
|
+
NodeInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodeInfoRequest").msgclass
|
1187
|
+
NodeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodeInfo").msgclass
|
1188
|
+
LightningNode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.LightningNode").msgclass
|
1189
|
+
NodeAddress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodeAddress").msgclass
|
1190
|
+
RoutingPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.RoutingPolicy").msgclass
|
1191
|
+
ChannelEdge = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelEdge").msgclass
|
1192
|
+
ChannelGraphRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelGraphRequest").msgclass
|
1193
|
+
ChannelGraph = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelGraph").msgclass
|
1194
|
+
NodeMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodeMetricsRequest").msgclass
|
1195
|
+
NodeMetricsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodeMetricsResponse").msgclass
|
1196
|
+
FloatMetric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FloatMetric").msgclass
|
1197
|
+
ChanInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChanInfoRequest").msgclass
|
1198
|
+
NetworkInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NetworkInfoRequest").msgclass
|
1199
|
+
NetworkInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NetworkInfo").msgclass
|
1200
|
+
StopRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.StopRequest").msgclass
|
1201
|
+
StopResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.StopResponse").msgclass
|
1202
|
+
GraphTopologySubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.GraphTopologySubscription").msgclass
|
1203
|
+
GraphTopologyUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.GraphTopologyUpdate").msgclass
|
1204
|
+
NodeUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodeUpdate").msgclass
|
1205
|
+
ChannelEdgeUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelEdgeUpdate").msgclass
|
1206
|
+
ClosedChannelUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ClosedChannelUpdate").msgclass
|
1207
|
+
HopHint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.HopHint").msgclass
|
1208
|
+
RouteHint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.RouteHint").msgclass
|
1209
|
+
Invoice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Invoice").msgclass
|
1210
|
+
Invoice::InvoiceState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Invoice.InvoiceState").enummodule
|
1211
|
+
InvoiceHTLC = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.InvoiceHTLC").msgclass
|
1212
|
+
AddInvoiceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.AddInvoiceResponse").msgclass
|
1213
|
+
PaymentHash = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PaymentHash").msgclass
|
1214
|
+
ListInvoiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListInvoiceRequest").msgclass
|
1215
|
+
ListInvoiceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListInvoiceResponse").msgclass
|
1216
|
+
InvoiceSubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.InvoiceSubscription").msgclass
|
1217
|
+
Payment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Payment").msgclass
|
1218
|
+
Payment::PaymentStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Payment.PaymentStatus").enummodule
|
1219
|
+
HTLCAttempt = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.HTLCAttempt").msgclass
|
1220
|
+
HTLCAttempt::HTLCStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.HTLCAttempt.HTLCStatus").enummodule
|
1221
|
+
ListPaymentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListPaymentsRequest").msgclass
|
1222
|
+
ListPaymentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListPaymentsResponse").msgclass
|
1223
|
+
DeleteAllPaymentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.DeleteAllPaymentsRequest").msgclass
|
1224
|
+
DeleteAllPaymentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.DeleteAllPaymentsResponse").msgclass
|
1225
|
+
AbandonChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.AbandonChannelRequest").msgclass
|
1226
|
+
AbandonChannelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.AbandonChannelResponse").msgclass
|
1227
|
+
DebugLevelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.DebugLevelRequest").msgclass
|
1228
|
+
DebugLevelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.DebugLevelResponse").msgclass
|
1229
|
+
PayReqString = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PayReqString").msgclass
|
1230
|
+
PayReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PayReq").msgclass
|
1231
|
+
Feature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Feature").msgclass
|
1232
|
+
FeeReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FeeReportRequest").msgclass
|
1233
|
+
ChannelFeeReport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelFeeReport").msgclass
|
1234
|
+
FeeReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FeeReportResponse").msgclass
|
1235
|
+
PolicyUpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PolicyUpdateRequest").msgclass
|
1236
|
+
PolicyUpdateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PolicyUpdateResponse").msgclass
|
1237
|
+
ForwardingHistoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ForwardingHistoryRequest").msgclass
|
1238
|
+
ForwardingEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ForwardingEvent").msgclass
|
1239
|
+
ForwardingHistoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ForwardingHistoryResponse").msgclass
|
1240
|
+
ExportChannelBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ExportChannelBackupRequest").msgclass
|
1241
|
+
ChannelBackup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelBackup").msgclass
|
1242
|
+
MultiChanBackup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.MultiChanBackup").msgclass
|
1243
|
+
ChanBackupExportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChanBackupExportRequest").msgclass
|
1244
|
+
ChanBackupSnapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChanBackupSnapshot").msgclass
|
1245
|
+
ChannelBackups = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelBackups").msgclass
|
1246
|
+
RestoreChanBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.RestoreChanBackupRequest").msgclass
|
1247
|
+
RestoreBackupResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.RestoreBackupResponse").msgclass
|
1248
|
+
ChannelBackupSubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelBackupSubscription").msgclass
|
1249
|
+
VerifyChanBackupResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.VerifyChanBackupResponse").msgclass
|
1250
|
+
MacaroonPermission = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.MacaroonPermission").msgclass
|
1251
|
+
BakeMacaroonRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.BakeMacaroonRequest").msgclass
|
1252
|
+
BakeMacaroonResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.BakeMacaroonResponse").msgclass
|
1253
|
+
Failure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Failure").msgclass
|
1254
|
+
Failure::FailureCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Failure.FailureCode").enummodule
|
1255
|
+
ChannelUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelUpdate").msgclass
|
1256
|
+
AddressType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.AddressType").enummodule
|
1257
|
+
CommitmentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.CommitmentType").enummodule
|
1258
|
+
Initiator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Initiator").enummodule
|
1259
|
+
ResolutionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ResolutionType").enummodule
|
1260
|
+
ResolutionOutcome = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ResolutionOutcome").enummodule
|
1261
|
+
NodeMetricType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodeMetricType").enummodule
|
1262
|
+
InvoiceHTLCState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.InvoiceHTLCState").enummodule
|
1263
|
+
PaymentFailureReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PaymentFailureReason").enummodule
|
1264
|
+
FeatureBit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FeatureBit").enummodule
|
1265
|
+
end
|