lnrpc 0.8.0 → 0.12.1

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