lnd-client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +15 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +62 -0
- data/LICENSE +21 -0
- data/README.md +107 -0
- data/Rakefile +10 -0
- data/components/grpc/autopilotrpc/autopilot_pb.rb +48 -0
- data/components/grpc/autopilotrpc/autopilot_services_pb.rb +40 -0
- data/components/grpc/chainrpc/chainkit_pb.rb +36 -0
- data/components/grpc/chainrpc/chainkit_services_pb.rb +34 -0
- data/components/grpc/chainrpc/chainnotifier_pb.rb +69 -0
- data/components/grpc/chainrpc/chainnotifier_services_pb.rb +53 -0
- data/components/grpc/devrpc/dev_pb.rb +17 -0
- data/components/grpc/devrpc/dev_services_pb.rb +25 -0
- data/components/grpc/invoicesrpc/invoices_pb.rb +66 -0
- data/components/grpc/invoicesrpc/invoices_services_pb.rb +45 -0
- data/components/grpc/lightning_pb.rb +1621 -0
- data/components/grpc/lightning_services_pb.rb +441 -0
- data/components/grpc/lnclipb/lncli_pb.rb +19 -0
- data/components/grpc/neutrinorpc/neutrino_pb.rb +106 -0
- data/components/grpc/neutrinorpc/neutrino_services_pb.rb +51 -0
- data/components/grpc/peersrpc/peers_pb.rb +48 -0
- data/components/grpc/peersrpc/peers_services_pb.rb +27 -0
- data/components/grpc/routerrpc/router_pb.rb +299 -0
- data/components/grpc/routerrpc/router_services_pb.rb +115 -0
- data/components/grpc/signrpc/signer_pb.rb +172 -0
- data/components/grpc/signrpc/signer_services_pb.rb +134 -0
- data/components/grpc/stateservice_pb.rb +35 -0
- data/components/grpc/stateservice_services_pb.rb +46 -0
- data/components/grpc/verrpc/verrpc_pb.rb +27 -0
- data/components/grpc/verrpc/verrpc_services_pb.rb +27 -0
- data/components/grpc/walletrpc/walletkit_pb.rb +328 -0
- data/components/grpc/walletrpc/walletkit_services_pb.rb +230 -0
- data/components/grpc/walletunlocker_pb.rb +75 -0
- data/components/grpc/walletunlocker_services_pb.rb +72 -0
- data/components/grpc/watchtowerrpc/watchtower_pb.rb +21 -0
- data/components/grpc/watchtowerrpc/watchtower_services_pb.rb +28 -0
- data/components/grpc/wtclientrpc/wtclient_pb.rb +83 -0
- data/components/grpc/wtclientrpc/wtclient_services_pb.rb +43 -0
- data/components/grpc.rb +9 -0
- data/controllers/client.rb +31 -0
- data/controllers/config.rb +35 -0
- data/controllers/documentation.rb +45 -0
- data/controllers/grpc_generator.rb +80 -0
- data/controllers/service.rb +35 -0
- data/lnd-client.gemspec +35 -0
- data/logic/string.rb +11 -0
- data/ports/dsl/lnd-client.rb +14 -0
- data/static/spec.rb +13 -0
- metadata +110 -0
@@ -0,0 +1,27 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: peersrpc/peers.proto for package 'peersrpc'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require_relative 'peersrpc/peers_pb'
|
6
|
+
|
7
|
+
module Peersrpc
|
8
|
+
module Peers
|
9
|
+
# Peers is a service that can be used to get information and interact
|
10
|
+
# with the other nodes of the network.
|
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 = 'peersrpc.Peers'
|
18
|
+
|
19
|
+
# lncli: peers updatenodeannouncement
|
20
|
+
# UpdateNodeAnnouncement allows the caller to update the node parameters
|
21
|
+
# and broadcasts a new version of the node announcement to its peers.
|
22
|
+
rpc :UpdateNodeAnnouncement, ::Peersrpc::NodeAnnouncementUpdateRequest, ::Peersrpc::NodeAnnouncementUpdateResponse
|
23
|
+
end
|
24
|
+
|
25
|
+
Stub = Service.rpc_stub_class
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,299 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: routerrpc/router.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require_relative 'lightning_pb'
|
7
|
+
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("routerrpc/router.proto", :syntax => :proto3) do
|
10
|
+
add_message "routerrpc.SendPaymentRequest" do
|
11
|
+
optional :dest, :bytes, 1
|
12
|
+
optional :amt, :int64, 2
|
13
|
+
optional :amt_msat, :int64, 12
|
14
|
+
optional :payment_hash, :bytes, 3
|
15
|
+
optional :final_cltv_delta, :int32, 4
|
16
|
+
optional :payment_addr, :bytes, 20
|
17
|
+
optional :payment_request, :string, 5
|
18
|
+
optional :timeout_seconds, :int32, 6
|
19
|
+
optional :fee_limit_sat, :int64, 7
|
20
|
+
optional :fee_limit_msat, :int64, 13
|
21
|
+
optional :outgoing_chan_id, :uint64, 8
|
22
|
+
repeated :outgoing_chan_ids, :uint64, 19
|
23
|
+
optional :last_hop_pubkey, :bytes, 14
|
24
|
+
optional :cltv_limit, :int32, 9
|
25
|
+
repeated :route_hints, :message, 10, "lnrpc.RouteHint"
|
26
|
+
map :dest_custom_records, :uint64, :bytes, 11
|
27
|
+
optional :allow_self_payment, :bool, 15
|
28
|
+
repeated :dest_features, :enum, 16, "lnrpc.FeatureBit"
|
29
|
+
optional :max_parts, :uint32, 17
|
30
|
+
optional :no_inflight_updates, :bool, 18
|
31
|
+
optional :max_shard_size_msat, :uint64, 21
|
32
|
+
optional :amp, :bool, 22
|
33
|
+
optional :time_pref, :double, 23
|
34
|
+
end
|
35
|
+
add_message "routerrpc.TrackPaymentRequest" do
|
36
|
+
optional :payment_hash, :bytes, 1
|
37
|
+
optional :no_inflight_updates, :bool, 2
|
38
|
+
end
|
39
|
+
add_message "routerrpc.TrackPaymentsRequest" do
|
40
|
+
optional :no_inflight_updates, :bool, 1
|
41
|
+
end
|
42
|
+
add_message "routerrpc.RouteFeeRequest" do
|
43
|
+
optional :dest, :bytes, 1
|
44
|
+
optional :amt_sat, :int64, 2
|
45
|
+
end
|
46
|
+
add_message "routerrpc.RouteFeeResponse" do
|
47
|
+
optional :routing_fee_msat, :int64, 1
|
48
|
+
optional :time_lock_delay, :int64, 2
|
49
|
+
end
|
50
|
+
add_message "routerrpc.SendToRouteRequest" do
|
51
|
+
optional :payment_hash, :bytes, 1
|
52
|
+
optional :route, :message, 2, "lnrpc.Route"
|
53
|
+
optional :skip_temp_err, :bool, 3
|
54
|
+
end
|
55
|
+
add_message "routerrpc.SendToRouteResponse" do
|
56
|
+
optional :preimage, :bytes, 1
|
57
|
+
optional :failure, :message, 2, "lnrpc.Failure"
|
58
|
+
end
|
59
|
+
add_message "routerrpc.ResetMissionControlRequest" do
|
60
|
+
end
|
61
|
+
add_message "routerrpc.ResetMissionControlResponse" do
|
62
|
+
end
|
63
|
+
add_message "routerrpc.QueryMissionControlRequest" do
|
64
|
+
end
|
65
|
+
add_message "routerrpc.QueryMissionControlResponse" do
|
66
|
+
repeated :pairs, :message, 2, "routerrpc.PairHistory"
|
67
|
+
end
|
68
|
+
add_message "routerrpc.XImportMissionControlRequest" do
|
69
|
+
repeated :pairs, :message, 1, "routerrpc.PairHistory"
|
70
|
+
optional :force, :bool, 2
|
71
|
+
end
|
72
|
+
add_message "routerrpc.XImportMissionControlResponse" do
|
73
|
+
end
|
74
|
+
add_message "routerrpc.PairHistory" do
|
75
|
+
optional :node_from, :bytes, 1
|
76
|
+
optional :node_to, :bytes, 2
|
77
|
+
optional :history, :message, 7, "routerrpc.PairData"
|
78
|
+
end
|
79
|
+
add_message "routerrpc.PairData" do
|
80
|
+
optional :fail_time, :int64, 1
|
81
|
+
optional :fail_amt_sat, :int64, 2
|
82
|
+
optional :fail_amt_msat, :int64, 4
|
83
|
+
optional :success_time, :int64, 5
|
84
|
+
optional :success_amt_sat, :int64, 6
|
85
|
+
optional :success_amt_msat, :int64, 7
|
86
|
+
end
|
87
|
+
add_message "routerrpc.GetMissionControlConfigRequest" do
|
88
|
+
end
|
89
|
+
add_message "routerrpc.GetMissionControlConfigResponse" do
|
90
|
+
optional :config, :message, 1, "routerrpc.MissionControlConfig"
|
91
|
+
end
|
92
|
+
add_message "routerrpc.SetMissionControlConfigRequest" do
|
93
|
+
optional :config, :message, 1, "routerrpc.MissionControlConfig"
|
94
|
+
end
|
95
|
+
add_message "routerrpc.SetMissionControlConfigResponse" do
|
96
|
+
end
|
97
|
+
add_message "routerrpc.MissionControlConfig" do
|
98
|
+
optional :half_life_seconds, :uint64, 1
|
99
|
+
optional :hop_probability, :float, 2
|
100
|
+
optional :weight, :float, 3
|
101
|
+
optional :maximum_payment_results, :uint32, 4
|
102
|
+
optional :minimum_failure_relax_interval, :uint64, 5
|
103
|
+
end
|
104
|
+
add_message "routerrpc.QueryProbabilityRequest" do
|
105
|
+
optional :from_node, :bytes, 1
|
106
|
+
optional :to_node, :bytes, 2
|
107
|
+
optional :amt_msat, :int64, 3
|
108
|
+
end
|
109
|
+
add_message "routerrpc.QueryProbabilityResponse" do
|
110
|
+
optional :probability, :double, 1
|
111
|
+
optional :history, :message, 2, "routerrpc.PairData"
|
112
|
+
end
|
113
|
+
add_message "routerrpc.BuildRouteRequest" do
|
114
|
+
optional :amt_msat, :int64, 1
|
115
|
+
optional :final_cltv_delta, :int32, 2
|
116
|
+
optional :outgoing_chan_id, :uint64, 3
|
117
|
+
repeated :hop_pubkeys, :bytes, 4
|
118
|
+
optional :payment_addr, :bytes, 5
|
119
|
+
end
|
120
|
+
add_message "routerrpc.BuildRouteResponse" do
|
121
|
+
optional :route, :message, 1, "lnrpc.Route"
|
122
|
+
end
|
123
|
+
add_message "routerrpc.SubscribeHtlcEventsRequest" do
|
124
|
+
end
|
125
|
+
add_message "routerrpc.HtlcEvent" do
|
126
|
+
optional :incoming_channel_id, :uint64, 1
|
127
|
+
optional :outgoing_channel_id, :uint64, 2
|
128
|
+
optional :incoming_htlc_id, :uint64, 3
|
129
|
+
optional :outgoing_htlc_id, :uint64, 4
|
130
|
+
optional :timestamp_ns, :uint64, 5
|
131
|
+
optional :event_type, :enum, 6, "routerrpc.HtlcEvent.EventType"
|
132
|
+
oneof :event do
|
133
|
+
optional :forward_event, :message, 7, "routerrpc.ForwardEvent"
|
134
|
+
optional :forward_fail_event, :message, 8, "routerrpc.ForwardFailEvent"
|
135
|
+
optional :settle_event, :message, 9, "routerrpc.SettleEvent"
|
136
|
+
optional :link_fail_event, :message, 10, "routerrpc.LinkFailEvent"
|
137
|
+
optional :subscribed_event, :message, 11, "routerrpc.SubscribedEvent"
|
138
|
+
optional :final_htlc_event, :message, 12, "routerrpc.FinalHtlcEvent"
|
139
|
+
end
|
140
|
+
end
|
141
|
+
add_enum "routerrpc.HtlcEvent.EventType" do
|
142
|
+
value :UNKNOWN, 0
|
143
|
+
value :SEND, 1
|
144
|
+
value :RECEIVE, 2
|
145
|
+
value :FORWARD, 3
|
146
|
+
end
|
147
|
+
add_message "routerrpc.HtlcInfo" do
|
148
|
+
optional :incoming_timelock, :uint32, 1
|
149
|
+
optional :outgoing_timelock, :uint32, 2
|
150
|
+
optional :incoming_amt_msat, :uint64, 3
|
151
|
+
optional :outgoing_amt_msat, :uint64, 4
|
152
|
+
end
|
153
|
+
add_message "routerrpc.ForwardEvent" do
|
154
|
+
optional :info, :message, 1, "routerrpc.HtlcInfo"
|
155
|
+
end
|
156
|
+
add_message "routerrpc.ForwardFailEvent" do
|
157
|
+
end
|
158
|
+
add_message "routerrpc.SettleEvent" do
|
159
|
+
optional :preimage, :bytes, 1
|
160
|
+
end
|
161
|
+
add_message "routerrpc.FinalHtlcEvent" do
|
162
|
+
optional :settled, :bool, 1
|
163
|
+
optional :offchain, :bool, 2
|
164
|
+
end
|
165
|
+
add_message "routerrpc.SubscribedEvent" do
|
166
|
+
end
|
167
|
+
add_message "routerrpc.LinkFailEvent" do
|
168
|
+
optional :info, :message, 1, "routerrpc.HtlcInfo"
|
169
|
+
optional :wire_failure, :enum, 2, "lnrpc.Failure.FailureCode"
|
170
|
+
optional :failure_detail, :enum, 3, "routerrpc.FailureDetail"
|
171
|
+
optional :failure_string, :string, 4
|
172
|
+
end
|
173
|
+
add_message "routerrpc.PaymentStatus" do
|
174
|
+
optional :state, :enum, 1, "routerrpc.PaymentState"
|
175
|
+
optional :preimage, :bytes, 2
|
176
|
+
repeated :htlcs, :message, 4, "lnrpc.HTLCAttempt"
|
177
|
+
end
|
178
|
+
add_message "routerrpc.CircuitKey" do
|
179
|
+
optional :chan_id, :uint64, 1
|
180
|
+
optional :htlc_id, :uint64, 2
|
181
|
+
end
|
182
|
+
add_message "routerrpc.ForwardHtlcInterceptRequest" do
|
183
|
+
optional :incoming_circuit_key, :message, 1, "routerrpc.CircuitKey"
|
184
|
+
optional :incoming_amount_msat, :uint64, 5
|
185
|
+
optional :incoming_expiry, :uint32, 6
|
186
|
+
optional :payment_hash, :bytes, 2
|
187
|
+
optional :outgoing_requested_chan_id, :uint64, 7
|
188
|
+
optional :outgoing_amount_msat, :uint64, 3
|
189
|
+
optional :outgoing_expiry, :uint32, 4
|
190
|
+
map :custom_records, :uint64, :bytes, 8
|
191
|
+
optional :onion_blob, :bytes, 9
|
192
|
+
optional :auto_fail_height, :int32, 10
|
193
|
+
end
|
194
|
+
add_message "routerrpc.ForwardHtlcInterceptResponse" do
|
195
|
+
optional :incoming_circuit_key, :message, 1, "routerrpc.CircuitKey"
|
196
|
+
optional :action, :enum, 2, "routerrpc.ResolveHoldForwardAction"
|
197
|
+
optional :preimage, :bytes, 3
|
198
|
+
optional :failure_message, :bytes, 4
|
199
|
+
optional :failure_code, :enum, 5, "lnrpc.Failure.FailureCode"
|
200
|
+
end
|
201
|
+
add_message "routerrpc.UpdateChanStatusRequest" do
|
202
|
+
optional :chan_point, :message, 1, "lnrpc.ChannelPoint"
|
203
|
+
optional :action, :enum, 2, "routerrpc.ChanStatusAction"
|
204
|
+
end
|
205
|
+
add_message "routerrpc.UpdateChanStatusResponse" do
|
206
|
+
end
|
207
|
+
add_enum "routerrpc.FailureDetail" do
|
208
|
+
value :UNKNOWN, 0
|
209
|
+
value :NO_DETAIL, 1
|
210
|
+
value :ONION_DECODE, 2
|
211
|
+
value :LINK_NOT_ELIGIBLE, 3
|
212
|
+
value :ON_CHAIN_TIMEOUT, 4
|
213
|
+
value :HTLC_EXCEEDS_MAX, 5
|
214
|
+
value :INSUFFICIENT_BALANCE, 6
|
215
|
+
value :INCOMPLETE_FORWARD, 7
|
216
|
+
value :HTLC_ADD_FAILED, 8
|
217
|
+
value :FORWARDS_DISABLED, 9
|
218
|
+
value :INVOICE_CANCELED, 10
|
219
|
+
value :INVOICE_UNDERPAID, 11
|
220
|
+
value :INVOICE_EXPIRY_TOO_SOON, 12
|
221
|
+
value :INVOICE_NOT_OPEN, 13
|
222
|
+
value :MPP_INVOICE_TIMEOUT, 14
|
223
|
+
value :ADDRESS_MISMATCH, 15
|
224
|
+
value :SET_TOTAL_MISMATCH, 16
|
225
|
+
value :SET_TOTAL_TOO_LOW, 17
|
226
|
+
value :SET_OVERPAID, 18
|
227
|
+
value :UNKNOWN_INVOICE, 19
|
228
|
+
value :INVALID_KEYSEND, 20
|
229
|
+
value :MPP_IN_PROGRESS, 21
|
230
|
+
value :CIRCULAR_ROUTE, 22
|
231
|
+
end
|
232
|
+
add_enum "routerrpc.PaymentState" do
|
233
|
+
value :IN_FLIGHT, 0
|
234
|
+
value :SUCCEEDED, 1
|
235
|
+
value :FAILED_TIMEOUT, 2
|
236
|
+
value :FAILED_NO_ROUTE, 3
|
237
|
+
value :FAILED_ERROR, 4
|
238
|
+
value :FAILED_INCORRECT_PAYMENT_DETAILS, 5
|
239
|
+
value :FAILED_INSUFFICIENT_BALANCE, 6
|
240
|
+
end
|
241
|
+
add_enum "routerrpc.ResolveHoldForwardAction" do
|
242
|
+
value :SETTLE, 0
|
243
|
+
value :FAIL, 1
|
244
|
+
value :RESUME, 2
|
245
|
+
end
|
246
|
+
add_enum "routerrpc.ChanStatusAction" do
|
247
|
+
value :ENABLE, 0
|
248
|
+
value :DISABLE, 1
|
249
|
+
value :AUTO, 2
|
250
|
+
end
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
module Routerrpc
|
255
|
+
SendPaymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SendPaymentRequest").msgclass
|
256
|
+
TrackPaymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.TrackPaymentRequest").msgclass
|
257
|
+
TrackPaymentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.TrackPaymentsRequest").msgclass
|
258
|
+
RouteFeeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.RouteFeeRequest").msgclass
|
259
|
+
RouteFeeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.RouteFeeResponse").msgclass
|
260
|
+
SendToRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SendToRouteRequest").msgclass
|
261
|
+
SendToRouteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SendToRouteResponse").msgclass
|
262
|
+
ResetMissionControlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ResetMissionControlRequest").msgclass
|
263
|
+
ResetMissionControlResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ResetMissionControlResponse").msgclass
|
264
|
+
QueryMissionControlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.QueryMissionControlRequest").msgclass
|
265
|
+
QueryMissionControlResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.QueryMissionControlResponse").msgclass
|
266
|
+
XImportMissionControlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.XImportMissionControlRequest").msgclass
|
267
|
+
XImportMissionControlResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.XImportMissionControlResponse").msgclass
|
268
|
+
PairHistory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.PairHistory").msgclass
|
269
|
+
PairData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.PairData").msgclass
|
270
|
+
GetMissionControlConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.GetMissionControlConfigRequest").msgclass
|
271
|
+
GetMissionControlConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.GetMissionControlConfigResponse").msgclass
|
272
|
+
SetMissionControlConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SetMissionControlConfigRequest").msgclass
|
273
|
+
SetMissionControlConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SetMissionControlConfigResponse").msgclass
|
274
|
+
MissionControlConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.MissionControlConfig").msgclass
|
275
|
+
QueryProbabilityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.QueryProbabilityRequest").msgclass
|
276
|
+
QueryProbabilityResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.QueryProbabilityResponse").msgclass
|
277
|
+
BuildRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.BuildRouteRequest").msgclass
|
278
|
+
BuildRouteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.BuildRouteResponse").msgclass
|
279
|
+
SubscribeHtlcEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SubscribeHtlcEventsRequest").msgclass
|
280
|
+
HtlcEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.HtlcEvent").msgclass
|
281
|
+
HtlcEvent::EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.HtlcEvent.EventType").enummodule
|
282
|
+
HtlcInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.HtlcInfo").msgclass
|
283
|
+
ForwardEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ForwardEvent").msgclass
|
284
|
+
ForwardFailEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ForwardFailEvent").msgclass
|
285
|
+
SettleEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SettleEvent").msgclass
|
286
|
+
FinalHtlcEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.FinalHtlcEvent").msgclass
|
287
|
+
SubscribedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SubscribedEvent").msgclass
|
288
|
+
LinkFailEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.LinkFailEvent").msgclass
|
289
|
+
PaymentStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.PaymentStatus").msgclass
|
290
|
+
CircuitKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.CircuitKey").msgclass
|
291
|
+
ForwardHtlcInterceptRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ForwardHtlcInterceptRequest").msgclass
|
292
|
+
ForwardHtlcInterceptResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ForwardHtlcInterceptResponse").msgclass
|
293
|
+
UpdateChanStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.UpdateChanStatusRequest").msgclass
|
294
|
+
UpdateChanStatusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.UpdateChanStatusResponse").msgclass
|
295
|
+
FailureDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.FailureDetail").enummodule
|
296
|
+
PaymentState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.PaymentState").enummodule
|
297
|
+
ResolveHoldForwardAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ResolveHoldForwardAction").enummodule
|
298
|
+
ChanStatusAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ChanStatusAction").enummodule
|
299
|
+
end
|
@@ -0,0 +1,115 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: routerrpc/router.proto for package 'routerrpc'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require_relative '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
|
+
# TrackPayments returns an update stream for every payment that is not in a
|
30
|
+
# terminal state. Note that if payments are in-flight while starting a new
|
31
|
+
# subscription, the start of the payment stream could produce out-of-order
|
32
|
+
# and/or duplicate events. In order to get updates for every in-flight
|
33
|
+
# payment attempt make sure to subscribe to this method before initiating any
|
34
|
+
# payments.
|
35
|
+
rpc :TrackPayments, ::Routerrpc::TrackPaymentsRequest, stream(::Lnrpc::Payment)
|
36
|
+
#
|
37
|
+
# EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it
|
38
|
+
# may cost to send an HTLC to the target end destination.
|
39
|
+
rpc :EstimateRouteFee, ::Routerrpc::RouteFeeRequest, ::Routerrpc::RouteFeeResponse
|
40
|
+
#
|
41
|
+
# Deprecated, use SendToRouteV2. SendToRoute attempts to make a payment via
|
42
|
+
# the specified route. This method differs from SendPayment in that it
|
43
|
+
# allows users to specify a full route manually. This can be used for
|
44
|
+
# things like rebalancing, and atomic swaps. It differs from the newer
|
45
|
+
# SendToRouteV2 in that it doesn't return the full HTLC information.
|
46
|
+
rpc :SendToRoute, ::Routerrpc::SendToRouteRequest, ::Routerrpc::SendToRouteResponse
|
47
|
+
#
|
48
|
+
# SendToRouteV2 attempts to make a payment via the specified route. This
|
49
|
+
# method differs from SendPayment in that it allows users to specify a full
|
50
|
+
# route manually. This can be used for things like rebalancing, and atomic
|
51
|
+
# swaps.
|
52
|
+
rpc :SendToRouteV2, ::Routerrpc::SendToRouteRequest, ::Lnrpc::HTLCAttempt
|
53
|
+
#
|
54
|
+
# ResetMissionControl clears all mission control state and starts with a clean
|
55
|
+
# slate.
|
56
|
+
rpc :ResetMissionControl, ::Routerrpc::ResetMissionControlRequest, ::Routerrpc::ResetMissionControlResponse
|
57
|
+
#
|
58
|
+
# QueryMissionControl exposes the internal mission control state to callers.
|
59
|
+
# It is a development feature.
|
60
|
+
rpc :QueryMissionControl, ::Routerrpc::QueryMissionControlRequest, ::Routerrpc::QueryMissionControlResponse
|
61
|
+
#
|
62
|
+
# XImportMissionControl is an experimental API that imports the state provided
|
63
|
+
# to the internal mission control's state, using all results which are more
|
64
|
+
# recent than our existing values. These values will only be imported
|
65
|
+
# in-memory, and will not be persisted across restarts.
|
66
|
+
rpc :XImportMissionControl, ::Routerrpc::XImportMissionControlRequest, ::Routerrpc::XImportMissionControlResponse
|
67
|
+
#
|
68
|
+
# GetMissionControlConfig returns mission control's current config.
|
69
|
+
rpc :GetMissionControlConfig, ::Routerrpc::GetMissionControlConfigRequest, ::Routerrpc::GetMissionControlConfigResponse
|
70
|
+
#
|
71
|
+
# SetMissionControlConfig will set mission control's config, if the config
|
72
|
+
# provided is valid.
|
73
|
+
rpc :SetMissionControlConfig, ::Routerrpc::SetMissionControlConfigRequest, ::Routerrpc::SetMissionControlConfigResponse
|
74
|
+
#
|
75
|
+
# Deprecated. QueryProbability returns the current success probability
|
76
|
+
# estimate for a given node pair and amount. The call returns a zero success
|
77
|
+
# probability if no channel is available or if the amount violates min/max
|
78
|
+
# HTLC constraints.
|
79
|
+
rpc :QueryProbability, ::Routerrpc::QueryProbabilityRequest, ::Routerrpc::QueryProbabilityResponse
|
80
|
+
#
|
81
|
+
# BuildRoute builds a fully specified route based on a list of hop public
|
82
|
+
# keys. It retrieves the relevant channel policies from the graph in order to
|
83
|
+
# calculate the correct fees and time locks.
|
84
|
+
rpc :BuildRoute, ::Routerrpc::BuildRouteRequest, ::Routerrpc::BuildRouteResponse
|
85
|
+
#
|
86
|
+
# SubscribeHtlcEvents creates a uni-directional stream from the server to
|
87
|
+
# the client which delivers a stream of htlc events.
|
88
|
+
rpc :SubscribeHtlcEvents, ::Routerrpc::SubscribeHtlcEventsRequest, stream(::Routerrpc::HtlcEvent)
|
89
|
+
#
|
90
|
+
# Deprecated, use SendPaymentV2. SendPayment attempts to route a payment
|
91
|
+
# described by the passed PaymentRequest to the final destination. The call
|
92
|
+
# returns a stream of payment status updates.
|
93
|
+
rpc :SendPayment, ::Routerrpc::SendPaymentRequest, stream(::Routerrpc::PaymentStatus)
|
94
|
+
#
|
95
|
+
# Deprecated, use TrackPaymentV2. TrackPayment returns an update stream for
|
96
|
+
# the payment identified by the payment hash.
|
97
|
+
rpc :TrackPayment, ::Routerrpc::TrackPaymentRequest, stream(::Routerrpc::PaymentStatus)
|
98
|
+
# *
|
99
|
+
# HtlcInterceptor dispatches a bi-directional streaming RPC in which
|
100
|
+
# Forwarded HTLC requests are sent to the client and the client responds with
|
101
|
+
# a boolean that tells LND if this htlc should be intercepted.
|
102
|
+
# In case of interception, the htlc can be either settled, cancelled or
|
103
|
+
# resumed later by using the ResolveHoldForward endpoint.
|
104
|
+
rpc :HtlcInterceptor, stream(::Routerrpc::ForwardHtlcInterceptResponse), stream(::Routerrpc::ForwardHtlcInterceptRequest)
|
105
|
+
#
|
106
|
+
# UpdateChanStatus attempts to manually set the state of a channel
|
107
|
+
# (enabled, disabled, or auto). A manual "disable" request will cause the
|
108
|
+
# channel to stay disabled until a subsequent manual request of either
|
109
|
+
# "enable" or "auto".
|
110
|
+
rpc :UpdateChanStatus, ::Routerrpc::UpdateChanStatusRequest, ::Routerrpc::UpdateChanStatusResponse
|
111
|
+
end
|
112
|
+
|
113
|
+
Stub = Service.rpc_stub_class
|
114
|
+
end
|
115
|
+
end
|
@@ -0,0 +1,172 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: signrpc/signer.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("signrpc/signer.proto", :syntax => :proto3) do
|
8
|
+
add_message "signrpc.KeyLocator" do
|
9
|
+
optional :key_family, :int32, 1
|
10
|
+
optional :key_index, :int32, 2
|
11
|
+
end
|
12
|
+
add_message "signrpc.KeyDescriptor" do
|
13
|
+
optional :raw_key_bytes, :bytes, 1
|
14
|
+
optional :key_loc, :message, 2, "signrpc.KeyLocator"
|
15
|
+
end
|
16
|
+
add_message "signrpc.TxOut" do
|
17
|
+
optional :value, :int64, 1
|
18
|
+
optional :pk_script, :bytes, 2
|
19
|
+
end
|
20
|
+
add_message "signrpc.SignDescriptor" do
|
21
|
+
optional :key_desc, :message, 1, "signrpc.KeyDescriptor"
|
22
|
+
optional :single_tweak, :bytes, 2
|
23
|
+
optional :double_tweak, :bytes, 3
|
24
|
+
optional :tap_tweak, :bytes, 10
|
25
|
+
optional :witness_script, :bytes, 4
|
26
|
+
optional :output, :message, 5, "signrpc.TxOut"
|
27
|
+
optional :sighash, :uint32, 7
|
28
|
+
optional :input_index, :int32, 8
|
29
|
+
optional :sign_method, :enum, 9, "signrpc.SignMethod"
|
30
|
+
end
|
31
|
+
add_message "signrpc.SignReq" do
|
32
|
+
optional :raw_tx_bytes, :bytes, 1
|
33
|
+
repeated :sign_descs, :message, 2, "signrpc.SignDescriptor"
|
34
|
+
repeated :prev_outputs, :message, 3, "signrpc.TxOut"
|
35
|
+
end
|
36
|
+
add_message "signrpc.SignResp" do
|
37
|
+
repeated :raw_sigs, :bytes, 1
|
38
|
+
end
|
39
|
+
add_message "signrpc.InputScript" do
|
40
|
+
repeated :witness, :bytes, 1
|
41
|
+
optional :sig_script, :bytes, 2
|
42
|
+
end
|
43
|
+
add_message "signrpc.InputScriptResp" do
|
44
|
+
repeated :input_scripts, :message, 1, "signrpc.InputScript"
|
45
|
+
end
|
46
|
+
add_message "signrpc.SignMessageReq" do
|
47
|
+
optional :msg, :bytes, 1
|
48
|
+
optional :key_loc, :message, 2, "signrpc.KeyLocator"
|
49
|
+
optional :double_hash, :bool, 3
|
50
|
+
optional :compact_sig, :bool, 4
|
51
|
+
optional :schnorr_sig, :bool, 5
|
52
|
+
optional :schnorr_sig_tap_tweak, :bytes, 6
|
53
|
+
end
|
54
|
+
add_message "signrpc.SignMessageResp" do
|
55
|
+
optional :signature, :bytes, 1
|
56
|
+
end
|
57
|
+
add_message "signrpc.VerifyMessageReq" do
|
58
|
+
optional :msg, :bytes, 1
|
59
|
+
optional :signature, :bytes, 2
|
60
|
+
optional :pubkey, :bytes, 3
|
61
|
+
optional :is_schnorr_sig, :bool, 4
|
62
|
+
end
|
63
|
+
add_message "signrpc.VerifyMessageResp" do
|
64
|
+
optional :valid, :bool, 1
|
65
|
+
end
|
66
|
+
add_message "signrpc.SharedKeyRequest" do
|
67
|
+
optional :ephemeral_pubkey, :bytes, 1
|
68
|
+
optional :key_loc, :message, 2, "signrpc.KeyLocator"
|
69
|
+
optional :key_desc, :message, 3, "signrpc.KeyDescriptor"
|
70
|
+
end
|
71
|
+
add_message "signrpc.SharedKeyResponse" do
|
72
|
+
optional :shared_key, :bytes, 1
|
73
|
+
end
|
74
|
+
add_message "signrpc.TweakDesc" do
|
75
|
+
optional :tweak, :bytes, 1
|
76
|
+
optional :is_x_only, :bool, 2
|
77
|
+
end
|
78
|
+
add_message "signrpc.TaprootTweakDesc" do
|
79
|
+
optional :script_root, :bytes, 1
|
80
|
+
optional :key_spend_only, :bool, 2
|
81
|
+
end
|
82
|
+
add_message "signrpc.MuSig2CombineKeysRequest" do
|
83
|
+
repeated :all_signer_pubkeys, :bytes, 1
|
84
|
+
repeated :tweaks, :message, 2, "signrpc.TweakDesc"
|
85
|
+
optional :taproot_tweak, :message, 3, "signrpc.TaprootTweakDesc"
|
86
|
+
end
|
87
|
+
add_message "signrpc.MuSig2CombineKeysResponse" do
|
88
|
+
optional :combined_key, :bytes, 1
|
89
|
+
optional :taproot_internal_key, :bytes, 2
|
90
|
+
end
|
91
|
+
add_message "signrpc.MuSig2SessionRequest" do
|
92
|
+
optional :key_loc, :message, 1, "signrpc.KeyLocator"
|
93
|
+
repeated :all_signer_pubkeys, :bytes, 2
|
94
|
+
repeated :other_signer_public_nonces, :bytes, 3
|
95
|
+
repeated :tweaks, :message, 4, "signrpc.TweakDesc"
|
96
|
+
optional :taproot_tweak, :message, 5, "signrpc.TaprootTweakDesc"
|
97
|
+
end
|
98
|
+
add_message "signrpc.MuSig2SessionResponse" do
|
99
|
+
optional :session_id, :bytes, 1
|
100
|
+
optional :combined_key, :bytes, 2
|
101
|
+
optional :taproot_internal_key, :bytes, 3
|
102
|
+
optional :local_public_nonces, :bytes, 4
|
103
|
+
optional :have_all_nonces, :bool, 5
|
104
|
+
end
|
105
|
+
add_message "signrpc.MuSig2RegisterNoncesRequest" do
|
106
|
+
optional :session_id, :bytes, 1
|
107
|
+
repeated :other_signer_public_nonces, :bytes, 3
|
108
|
+
end
|
109
|
+
add_message "signrpc.MuSig2RegisterNoncesResponse" do
|
110
|
+
optional :have_all_nonces, :bool, 1
|
111
|
+
end
|
112
|
+
add_message "signrpc.MuSig2SignRequest" do
|
113
|
+
optional :session_id, :bytes, 1
|
114
|
+
optional :message_digest, :bytes, 2
|
115
|
+
optional :cleanup, :bool, 3
|
116
|
+
end
|
117
|
+
add_message "signrpc.MuSig2SignResponse" do
|
118
|
+
optional :local_partial_signature, :bytes, 1
|
119
|
+
end
|
120
|
+
add_message "signrpc.MuSig2CombineSigRequest" do
|
121
|
+
optional :session_id, :bytes, 1
|
122
|
+
repeated :other_partial_signatures, :bytes, 2
|
123
|
+
end
|
124
|
+
add_message "signrpc.MuSig2CombineSigResponse" do
|
125
|
+
optional :have_all_signatures, :bool, 1
|
126
|
+
optional :final_signature, :bytes, 2
|
127
|
+
end
|
128
|
+
add_message "signrpc.MuSig2CleanupRequest" do
|
129
|
+
optional :session_id, :bytes, 1
|
130
|
+
end
|
131
|
+
add_message "signrpc.MuSig2CleanupResponse" do
|
132
|
+
end
|
133
|
+
add_enum "signrpc.SignMethod" do
|
134
|
+
value :SIGN_METHOD_WITNESS_V0, 0
|
135
|
+
value :SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086, 1
|
136
|
+
value :SIGN_METHOD_TAPROOT_KEY_SPEND, 2
|
137
|
+
value :SIGN_METHOD_TAPROOT_SCRIPT_SPEND, 3
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
module Signrpc
|
143
|
+
KeyLocator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.KeyLocator").msgclass
|
144
|
+
KeyDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.KeyDescriptor").msgclass
|
145
|
+
TxOut = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.TxOut").msgclass
|
146
|
+
SignDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SignDescriptor").msgclass
|
147
|
+
SignReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SignReq").msgclass
|
148
|
+
SignResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SignResp").msgclass
|
149
|
+
InputScript = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.InputScript").msgclass
|
150
|
+
InputScriptResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.InputScriptResp").msgclass
|
151
|
+
SignMessageReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SignMessageReq").msgclass
|
152
|
+
SignMessageResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SignMessageResp").msgclass
|
153
|
+
VerifyMessageReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.VerifyMessageReq").msgclass
|
154
|
+
VerifyMessageResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.VerifyMessageResp").msgclass
|
155
|
+
SharedKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SharedKeyRequest").msgclass
|
156
|
+
SharedKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SharedKeyResponse").msgclass
|
157
|
+
TweakDesc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.TweakDesc").msgclass
|
158
|
+
TaprootTweakDesc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.TaprootTweakDesc").msgclass
|
159
|
+
MuSig2CombineKeysRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2CombineKeysRequest").msgclass
|
160
|
+
MuSig2CombineKeysResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2CombineKeysResponse").msgclass
|
161
|
+
MuSig2SessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2SessionRequest").msgclass
|
162
|
+
MuSig2SessionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2SessionResponse").msgclass
|
163
|
+
MuSig2RegisterNoncesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2RegisterNoncesRequest").msgclass
|
164
|
+
MuSig2RegisterNoncesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2RegisterNoncesResponse").msgclass
|
165
|
+
MuSig2SignRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2SignRequest").msgclass
|
166
|
+
MuSig2SignResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2SignResponse").msgclass
|
167
|
+
MuSig2CombineSigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2CombineSigRequest").msgclass
|
168
|
+
MuSig2CombineSigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2CombineSigResponse").msgclass
|
169
|
+
MuSig2CleanupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2CleanupRequest").msgclass
|
170
|
+
MuSig2CleanupResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2CleanupResponse").msgclass
|
171
|
+
SignMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SignMethod").enummodule
|
172
|
+
end
|