lnrpc 0.12.1 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/generate-grpc-service-files.sh +2 -3
- data/lib/grpc_services/routerrpc/router_pb.rb +44 -0
- data/lib/grpc_services/routerrpc/router_services_pb.rb +19 -0
- data/lib/grpc_services/rpc_pb.rb +41 -0
- data/lib/grpc_services/rpc_services_pb.rb +2 -2
- data/lib/grpc_services/walletrpc/walletkit_pb.rb +67 -1
- data/lib/grpc_services/walletrpc/walletkit_services_pb.rb +40 -0
- data/lib/grpc_services/wtclientrpc/wtclient_pb.rb +2 -0
- data/lib/lnrpc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d2fb416e8943338d511be049cc495ca6bd3cb2c2b46ff370034a54645504966
|
4
|
+
data.tar.gz: 60a51a4b3610a855b7cd485b83e3c9b820287dd0bbc18044294fd1e38e20ff1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1fd8c5907a282ff844e8b9b5684665a280fd1ef43188962d9bd448502a17428a114a76b20afe284130348fb584fc2f0b812c5228e4f0eddb3506e5232e3c5b5
|
7
|
+
data.tar.gz: 2da8d1e1b9455954a93e86f37e54018268293c5c4091151a79e7b0296109fc59fb20de89cb75424f5c0cf56713fcebc585340be1af20863d4f7b876f34429ca1
|
@@ -18,9 +18,8 @@ for file in $PROTOS; do
|
|
18
18
|
echo "Generating protos from ${file}, into ${LNRPC_TARGET_DIR}/${DIRECTORY}"
|
19
19
|
|
20
20
|
# writes all ruby files in the ruby directory
|
21
|
-
grpc_tools_ruby_protoc -I
|
22
|
-
-I. \
|
23
|
-
-I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
|
21
|
+
grpc_tools_ruby_protoc -I. \
|
22
|
+
-I$GOPATH/src/github.com/googleapis/googleapis \
|
24
23
|
-I$GOPATH/src/github.com/lightningnetwork/lnd/lnrpc \
|
25
24
|
--ruby_out=plugins=grpc,paths=source_relative:${LNRPC_TARGET_DIR} \
|
26
25
|
--grpc_out=${LNRPC_TARGET_DIR} "${file}"
|
@@ -28,6 +28,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
28
28
|
optional :max_parts, :uint32, 17
|
29
29
|
optional :no_inflight_updates, :bool, 18
|
30
30
|
optional :max_shard_size_msat, :uint64, 21
|
31
|
+
optional :amp, :bool, 22
|
31
32
|
end
|
32
33
|
add_message "routerrpc.TrackPaymentRequest" do
|
33
34
|
optional :payment_hash, :bytes, 1
|
@@ -58,6 +59,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
58
59
|
add_message "routerrpc.QueryMissionControlResponse" do
|
59
60
|
repeated :pairs, :message, 2, "routerrpc.PairHistory"
|
60
61
|
end
|
62
|
+
add_message "routerrpc.XImportMissionControlRequest" do
|
63
|
+
repeated :pairs, :message, 1, "routerrpc.PairHistory"
|
64
|
+
end
|
65
|
+
add_message "routerrpc.XImportMissionControlResponse" do
|
66
|
+
end
|
61
67
|
add_message "routerrpc.PairHistory" do
|
62
68
|
optional :node_from, :bytes, 1
|
63
69
|
optional :node_to, :bytes, 2
|
@@ -71,6 +77,23 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
71
77
|
optional :success_amt_sat, :int64, 6
|
72
78
|
optional :success_amt_msat, :int64, 7
|
73
79
|
end
|
80
|
+
add_message "routerrpc.GetMissionControlConfigRequest" do
|
81
|
+
end
|
82
|
+
add_message "routerrpc.GetMissionControlConfigResponse" do
|
83
|
+
optional :config, :message, 1, "routerrpc.MissionControlConfig"
|
84
|
+
end
|
85
|
+
add_message "routerrpc.SetMissionControlConfigRequest" do
|
86
|
+
optional :config, :message, 1, "routerrpc.MissionControlConfig"
|
87
|
+
end
|
88
|
+
add_message "routerrpc.SetMissionControlConfigResponse" do
|
89
|
+
end
|
90
|
+
add_message "routerrpc.MissionControlConfig" do
|
91
|
+
optional :half_life_seconds, :uint64, 1
|
92
|
+
optional :hop_probability, :float, 2
|
93
|
+
optional :weight, :float, 3
|
94
|
+
optional :maximum_payment_results, :uint32, 4
|
95
|
+
optional :minimum_failure_relax_interval, :uint64, 5
|
96
|
+
end
|
74
97
|
add_message "routerrpc.QueryProbabilityRequest" do
|
75
98
|
optional :from_node, :bytes, 1
|
76
99
|
optional :to_node, :bytes, 2
|
@@ -156,6 +179,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
156
179
|
optional :action, :enum, 2, "routerrpc.ResolveHoldForwardAction"
|
157
180
|
optional :preimage, :bytes, 3
|
158
181
|
end
|
182
|
+
add_message "routerrpc.UpdateChanStatusRequest" do
|
183
|
+
optional :chan_point, :message, 1, "lnrpc.ChannelPoint"
|
184
|
+
optional :action, :enum, 2, "routerrpc.ChanStatusAction"
|
185
|
+
end
|
186
|
+
add_message "routerrpc.UpdateChanStatusResponse" do
|
187
|
+
end
|
159
188
|
add_enum "routerrpc.FailureDetail" do
|
160
189
|
value :UNKNOWN, 0
|
161
190
|
value :NO_DETAIL, 1
|
@@ -195,6 +224,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
195
224
|
value :FAIL, 1
|
196
225
|
value :RESUME, 2
|
197
226
|
end
|
227
|
+
add_enum "routerrpc.ChanStatusAction" do
|
228
|
+
value :ENABLE, 0
|
229
|
+
value :DISABLE, 1
|
230
|
+
value :AUTO, 2
|
231
|
+
end
|
198
232
|
end
|
199
233
|
end
|
200
234
|
|
@@ -209,8 +243,15 @@ module Routerrpc
|
|
209
243
|
ResetMissionControlResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ResetMissionControlResponse").msgclass
|
210
244
|
QueryMissionControlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.QueryMissionControlRequest").msgclass
|
211
245
|
QueryMissionControlResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.QueryMissionControlResponse").msgclass
|
246
|
+
XImportMissionControlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.XImportMissionControlRequest").msgclass
|
247
|
+
XImportMissionControlResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.XImportMissionControlResponse").msgclass
|
212
248
|
PairHistory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.PairHistory").msgclass
|
213
249
|
PairData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.PairData").msgclass
|
250
|
+
GetMissionControlConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.GetMissionControlConfigRequest").msgclass
|
251
|
+
GetMissionControlConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.GetMissionControlConfigResponse").msgclass
|
252
|
+
SetMissionControlConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SetMissionControlConfigRequest").msgclass
|
253
|
+
SetMissionControlConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.SetMissionControlConfigResponse").msgclass
|
254
|
+
MissionControlConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.MissionControlConfig").msgclass
|
214
255
|
QueryProbabilityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.QueryProbabilityRequest").msgclass
|
215
256
|
QueryProbabilityResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.QueryProbabilityResponse").msgclass
|
216
257
|
BuildRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.BuildRouteRequest").msgclass
|
@@ -227,7 +268,10 @@ module Routerrpc
|
|
227
268
|
CircuitKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.CircuitKey").msgclass
|
228
269
|
ForwardHtlcInterceptRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ForwardHtlcInterceptRequest").msgclass
|
229
270
|
ForwardHtlcInterceptResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ForwardHtlcInterceptResponse").msgclass
|
271
|
+
UpdateChanStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.UpdateChanStatusRequest").msgclass
|
272
|
+
UpdateChanStatusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.UpdateChanStatusResponse").msgclass
|
230
273
|
FailureDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.FailureDetail").enummodule
|
231
274
|
PaymentState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.PaymentState").enummodule
|
232
275
|
ResolveHoldForwardAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ResolveHoldForwardAction").enummodule
|
276
|
+
ChanStatusAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("routerrpc.ChanStatusAction").enummodule
|
233
277
|
end
|
@@ -51,6 +51,19 @@ module Routerrpc
|
|
51
51
|
# It is a development feature.
|
52
52
|
rpc :QueryMissionControl, ::Routerrpc::QueryMissionControlRequest, ::Routerrpc::QueryMissionControlResponse
|
53
53
|
#
|
54
|
+
# XImportMissionControl is an experimental API that imports the state provided
|
55
|
+
# to the internal mission control's state, using all results which are more
|
56
|
+
# recent than our existing values. These values will only be imported
|
57
|
+
# in-memory, and will not be persisted across restarts.
|
58
|
+
rpc :XImportMissionControl, ::Routerrpc::XImportMissionControlRequest, ::Routerrpc::XImportMissionControlResponse
|
59
|
+
#
|
60
|
+
# GetMissionControlConfig returns mission control's current config.
|
61
|
+
rpc :GetMissionControlConfig, ::Routerrpc::GetMissionControlConfigRequest, ::Routerrpc::GetMissionControlConfigResponse
|
62
|
+
#
|
63
|
+
# SetMissionControlConfig will set mission control's config, if the config
|
64
|
+
# provided is valid.
|
65
|
+
rpc :SetMissionControlConfig, ::Routerrpc::SetMissionControlConfigRequest, ::Routerrpc::SetMissionControlConfigResponse
|
66
|
+
#
|
54
67
|
# QueryProbability returns the current success probability estimate for a
|
55
68
|
# given node pair and amount.
|
56
69
|
rpc :QueryProbability, ::Routerrpc::QueryProbabilityRequest, ::Routerrpc::QueryProbabilityResponse
|
@@ -79,6 +92,12 @@ module Routerrpc
|
|
79
92
|
# In case of interception, the htlc can be either settled, cancelled or
|
80
93
|
# resumed later by using the ResolveHoldForward endpoint.
|
81
94
|
rpc :HtlcInterceptor, stream(::Routerrpc::ForwardHtlcInterceptResponse), stream(::Routerrpc::ForwardHtlcInterceptRequest)
|
95
|
+
#
|
96
|
+
# UpdateChanStatus attempts to manually set the state of a channel
|
97
|
+
# (enabled, disabled, or auto). A manual "disable" request will cause the
|
98
|
+
# channel to stay disabled until a subsequent manual request of either
|
99
|
+
# "enable" or "auto".
|
100
|
+
rpc :UpdateChanStatus, ::Routerrpc::UpdateChanStatusRequest, ::Routerrpc::UpdateChanStatusResponse
|
82
101
|
end
|
83
102
|
|
84
103
|
Stub = Service.rpc_stub_class
|
data/lib/grpc_services/rpc_pb.rb
CHANGED
@@ -28,6 +28,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
28
28
|
add_message "lnrpc.GetTransactionsRequest" do
|
29
29
|
optional :start_height, :int32, 1
|
30
30
|
optional :end_height, :int32, 2
|
31
|
+
optional :account, :string, 3
|
31
32
|
end
|
32
33
|
add_message "lnrpc.TransactionDetails" do
|
33
34
|
repeated :transactions, :message, 1, "lnrpc.Transaction"
|
@@ -55,6 +56,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
55
56
|
map :dest_custom_records, :uint64, :bytes, 11
|
56
57
|
optional :allow_self_payment, :bool, 14
|
57
58
|
repeated :dest_features, :enum, 15, "lnrpc.FeatureBit"
|
59
|
+
optional :payment_addr, :bytes, 16
|
58
60
|
end
|
59
61
|
add_message "lnrpc.SendResponse" do
|
60
62
|
optional :payment_error, :string, 1
|
@@ -113,14 +115,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
113
115
|
add_message "lnrpc.EstimateFeeRequest" do
|
114
116
|
map :AddrToAmount, :string, :int64, 1
|
115
117
|
optional :target_conf, :int32, 2
|
118
|
+
optional :min_confs, :int32, 3
|
119
|
+
optional :spend_unconfirmed, :bool, 4
|
116
120
|
end
|
117
121
|
add_message "lnrpc.EstimateFeeResponse" do
|
118
122
|
optional :fee_sat, :int64, 1
|
119
123
|
optional :feerate_sat_per_byte, :int64, 2
|
124
|
+
optional :sat_per_vbyte, :uint64, 3
|
120
125
|
end
|
121
126
|
add_message "lnrpc.SendManyRequest" do
|
122
127
|
map :AddrToAmount, :string, :int64, 1
|
123
128
|
optional :target_conf, :int32, 3
|
129
|
+
optional :sat_per_vbyte, :uint64, 4
|
124
130
|
optional :sat_per_byte, :int64, 5
|
125
131
|
optional :label, :string, 6
|
126
132
|
optional :min_confs, :int32, 7
|
@@ -133,6 +139,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
133
139
|
optional :addr, :string, 1
|
134
140
|
optional :amount, :int64, 2
|
135
141
|
optional :target_conf, :int32, 3
|
142
|
+
optional :sat_per_vbyte, :uint64, 4
|
136
143
|
optional :sat_per_byte, :int64, 5
|
137
144
|
optional :send_all, :bool, 6
|
138
145
|
optional :label, :string, 7
|
@@ -145,12 +152,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
145
152
|
add_message "lnrpc.ListUnspentRequest" do
|
146
153
|
optional :min_confs, :int32, 1
|
147
154
|
optional :max_confs, :int32, 2
|
155
|
+
optional :account, :string, 3
|
148
156
|
end
|
149
157
|
add_message "lnrpc.ListUnspentResponse" do
|
150
158
|
repeated :utxos, :message, 1, "lnrpc.Utxo"
|
151
159
|
end
|
152
160
|
add_message "lnrpc.NewAddressRequest" do
|
153
161
|
optional :type, :enum, 1, "lnrpc.AddressType"
|
162
|
+
optional :account, :string, 2
|
154
163
|
end
|
155
164
|
add_message "lnrpc.NewAddressResponse" do
|
156
165
|
optional :address, :string, 1
|
@@ -373,6 +382,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
373
382
|
optional :target_conf, :int32, 3
|
374
383
|
optional :sat_per_byte, :int64, 4
|
375
384
|
optional :delivery_address, :string, 5
|
385
|
+
optional :sat_per_vbyte, :uint64, 6
|
376
386
|
end
|
377
387
|
add_message "lnrpc.CloseStatusUpdate" do
|
378
388
|
oneof :update do
|
@@ -390,6 +400,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
390
400
|
optional :psbt, :bytes, 3
|
391
401
|
end
|
392
402
|
add_message "lnrpc.OpenChannelRequest" do
|
403
|
+
optional :sat_per_vbyte, :uint64, 1
|
393
404
|
optional :node_pubkey, :bytes, 2
|
394
405
|
optional :node_pubkey_string, :string, 3
|
395
406
|
optional :local_funding_amount, :int64, 4
|
@@ -550,12 +561,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
550
561
|
value :INACTIVE_CHANNEL, 3
|
551
562
|
value :PENDING_OPEN_CHANNEL, 4
|
552
563
|
end
|
564
|
+
add_message "lnrpc.WalletAccountBalance" do
|
565
|
+
optional :confirmed_balance, :int64, 1
|
566
|
+
optional :unconfirmed_balance, :int64, 2
|
567
|
+
end
|
553
568
|
add_message "lnrpc.WalletBalanceRequest" do
|
554
569
|
end
|
555
570
|
add_message "lnrpc.WalletBalanceResponse" do
|
556
571
|
optional :total_balance, :int64, 1
|
557
572
|
optional :confirmed_balance, :int64, 2
|
558
573
|
optional :unconfirmed_balance, :int64, 3
|
574
|
+
map :account_balance, :string, :message, 4, "lnrpc.WalletAccountBalance"
|
559
575
|
end
|
560
576
|
add_message "lnrpc.Amount" do
|
561
577
|
optional :sat, :uint64, 1
|
@@ -614,12 +630,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
614
630
|
optional :pub_key, :string, 8
|
615
631
|
optional :tlv_payload, :bool, 9
|
616
632
|
optional :mpp_record, :message, 10, "lnrpc.MPPRecord"
|
633
|
+
optional :amp_record, :message, 12, "lnrpc.AMPRecord"
|
617
634
|
map :custom_records, :uint64, :bytes, 11
|
618
635
|
end
|
619
636
|
add_message "lnrpc.MPPRecord" do
|
620
637
|
optional :payment_addr, :bytes, 11
|
621
638
|
optional :total_amt_msat, :int64, 10
|
622
639
|
end
|
640
|
+
add_message "lnrpc.AMPRecord" do
|
641
|
+
optional :root_share, :bytes, 1
|
642
|
+
optional :set_id, :bytes, 2
|
643
|
+
optional :child_index, :uint32, 3
|
644
|
+
end
|
623
645
|
add_message "lnrpc.Route" do
|
624
646
|
optional :total_time_lock, :uint32, 1
|
625
647
|
optional :total_fees, :int64, 2
|
@@ -721,6 +743,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
721
743
|
optional :global_features, :bytes, 3
|
722
744
|
optional :alias, :string, 4
|
723
745
|
optional :color, :string, 5
|
746
|
+
repeated :node_addresses, :message, 7, "lnrpc.NodeAddress"
|
724
747
|
map :features, :uint32, :message, 6, "lnrpc.Feature"
|
725
748
|
end
|
726
749
|
add_message "lnrpc.ChannelEdgeUpdate" do
|
@@ -773,6 +796,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
773
796
|
map :features, :uint32, :message, 24, "lnrpc.Feature"
|
774
797
|
optional :is_keysend, :bool, 25
|
775
798
|
optional :payment_addr, :bytes, 26
|
799
|
+
optional :is_amp, :bool, 27
|
776
800
|
end
|
777
801
|
add_enum "lnrpc.Invoice.InvoiceState" do
|
778
802
|
value :OPEN, 0
|
@@ -791,6 +815,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
791
815
|
optional :state, :enum, 8, "lnrpc.InvoiceHTLCState"
|
792
816
|
map :custom_records, :uint64, :bytes, 9
|
793
817
|
optional :mpp_total_amt_msat, :uint64, 10
|
818
|
+
optional :amp, :message, 11, "lnrpc.AMP"
|
819
|
+
end
|
820
|
+
add_message "lnrpc.AMP" do
|
821
|
+
optional :root_share, :bytes, 1
|
822
|
+
optional :set_id, :bytes, 2
|
823
|
+
optional :child_index, :uint32, 3
|
824
|
+
optional :hash, :bytes, 4
|
825
|
+
optional :preimage, :bytes, 5
|
794
826
|
end
|
795
827
|
add_message "lnrpc.AddInvoiceResponse" do
|
796
828
|
optional :r_hash, :bytes, 1
|
@@ -866,6 +898,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
866
898
|
optional :last_index_offset, :uint64, 3
|
867
899
|
end
|
868
900
|
add_message "lnrpc.DeleteAllPaymentsRequest" do
|
901
|
+
optional :failed_payments_only, :bool, 1
|
902
|
+
optional :failed_htlcs_only, :bool, 2
|
869
903
|
end
|
870
904
|
add_message "lnrpc.DeleteAllPaymentsResponse" do
|
871
905
|
end
|
@@ -950,6 +984,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
950
984
|
optional :fee_msat, :uint64, 8
|
951
985
|
optional :amt_in_msat, :uint64, 9
|
952
986
|
optional :amt_out_msat, :uint64, 10
|
987
|
+
optional :timestamp_ns, :uint64, 11
|
953
988
|
end
|
954
989
|
add_message "lnrpc.ForwardingHistoryResponse" do
|
955
990
|
repeated :forwarding_events, :message, 1, "lnrpc.ForwardingEvent"
|
@@ -1052,6 +1087,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
1052
1087
|
value :PERMANENT_CHANNEL_FAILURE, 21
|
1053
1088
|
value :EXPIRY_TOO_FAR, 22
|
1054
1089
|
value :MPP_TIMEOUT, 23
|
1090
|
+
value :INVALID_ONION_PAYLOAD, 24
|
1055
1091
|
value :INTERNAL_FAILURE, 997
|
1056
1092
|
value :UNKNOWN_FAILURE, 998
|
1057
1093
|
value :UNREADABLE_FAILURE, 999
|
@@ -1153,6 +1189,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
1153
1189
|
value :ANCHORS_OPT, 21
|
1154
1190
|
value :ANCHORS_ZERO_FEE_HTLC_REQ, 22
|
1155
1191
|
value :ANCHORS_ZERO_FEE_HTLC_OPT, 23
|
1192
|
+
value :AMP_REQ, 30
|
1193
|
+
value :AMP_OPT, 31
|
1156
1194
|
end
|
1157
1195
|
end
|
1158
1196
|
end
|
@@ -1244,6 +1282,7 @@ module Lnrpc
|
|
1244
1282
|
ChannelEventSubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelEventSubscription").msgclass
|
1245
1283
|
ChannelEventUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelEventUpdate").msgclass
|
1246
1284
|
ChannelEventUpdate::UpdateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelEventUpdate.UpdateType").enummodule
|
1285
|
+
WalletAccountBalance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.WalletAccountBalance").msgclass
|
1247
1286
|
WalletBalanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.WalletBalanceRequest").msgclass
|
1248
1287
|
WalletBalanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.WalletBalanceResponse").msgclass
|
1249
1288
|
Amount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Amount").msgclass
|
@@ -1255,6 +1294,7 @@ module Lnrpc
|
|
1255
1294
|
QueryRoutesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.QueryRoutesResponse").msgclass
|
1256
1295
|
Hop = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Hop").msgclass
|
1257
1296
|
MPPRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.MPPRecord").msgclass
|
1297
|
+
AMPRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.AMPRecord").msgclass
|
1258
1298
|
Route = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Route").msgclass
|
1259
1299
|
NodeInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodeInfoRequest").msgclass
|
1260
1300
|
NodeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodeInfo").msgclass
|
@@ -1282,6 +1322,7 @@ module Lnrpc
|
|
1282
1322
|
Invoice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Invoice").msgclass
|
1283
1323
|
Invoice::InvoiceState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Invoice.InvoiceState").enummodule
|
1284
1324
|
InvoiceHTLC = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.InvoiceHTLC").msgclass
|
1325
|
+
AMP = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.AMP").msgclass
|
1285
1326
|
AddInvoiceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.AddInvoiceResponse").msgclass
|
1286
1327
|
PaymentHash = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PaymentHash").msgclass
|
1287
1328
|
ListInvoiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListInvoiceRequest").msgclass
|
@@ -58,7 +58,7 @@ module Lnrpc
|
|
58
58
|
# lncli: `sendcoins`
|
59
59
|
# SendCoins executes a request to send coins to a particular address. Unlike
|
60
60
|
# SendMany, this RPC call only allows creating a single output at a time. If
|
61
|
-
# neither target_conf, or
|
61
|
+
# neither target_conf, or sat_per_vbyte are set, then the internal wallet will
|
62
62
|
# consult its fee model to determine a fee for the default confirmation
|
63
63
|
# target.
|
64
64
|
rpc :SendCoins, ::Lnrpc::SendCoinsRequest, ::Lnrpc::SendCoinsResponse
|
@@ -75,7 +75,7 @@ module Lnrpc
|
|
75
75
|
rpc :SubscribeTransactions, ::Lnrpc::GetTransactionsRequest, stream(::Lnrpc::Transaction)
|
76
76
|
# lncli: `sendmany`
|
77
77
|
# SendMany handles a request for a transaction that creates multiple specified
|
78
|
-
# outputs in parallel. If neither target_conf, or
|
78
|
+
# outputs in parallel. If neither target_conf, or sat_per_vbyte are set, then
|
79
79
|
# the internal wallet will consult its fee model to determine a fee for the
|
80
80
|
# default confirmation target.
|
81
81
|
rpc :SendMany, ::Lnrpc::SendManyRequest, ::Lnrpc::SendManyResponse
|
@@ -10,6 +10,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
10
10
|
add_message "walletrpc.ListUnspentRequest" do
|
11
11
|
optional :min_confs, :int32, 1
|
12
12
|
optional :max_confs, :int32, 2
|
13
|
+
optional :account, :string, 3
|
13
14
|
end
|
14
15
|
add_message "walletrpc.ListUnspentResponse" do
|
15
16
|
repeated :utxos, :message, 1, "lnrpc.Utxo"
|
@@ -17,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
17
18
|
add_message "walletrpc.LeaseOutputRequest" do
|
18
19
|
optional :id, :bytes, 1
|
19
20
|
optional :outpoint, :message, 2, "lnrpc.OutPoint"
|
21
|
+
optional :expiration_seconds, :uint64, 3
|
20
22
|
end
|
21
23
|
add_message "walletrpc.LeaseOutputResponse" do
|
22
24
|
optional :expiration, :uint64, 1
|
@@ -32,10 +34,46 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
32
34
|
optional :key_family, :int32, 2
|
33
35
|
end
|
34
36
|
add_message "walletrpc.AddrRequest" do
|
37
|
+
optional :account, :string, 1
|
35
38
|
end
|
36
39
|
add_message "walletrpc.AddrResponse" do
|
37
40
|
optional :addr, :string, 1
|
38
41
|
end
|
42
|
+
add_message "walletrpc.Account" do
|
43
|
+
optional :name, :string, 1
|
44
|
+
optional :address_type, :enum, 2, "walletrpc.AddressType"
|
45
|
+
optional :extended_public_key, :string, 3
|
46
|
+
optional :master_key_fingerprint, :bytes, 4
|
47
|
+
optional :derivation_path, :string, 5
|
48
|
+
optional :external_key_count, :uint32, 6
|
49
|
+
optional :internal_key_count, :uint32, 7
|
50
|
+
optional :watch_only, :bool, 8
|
51
|
+
end
|
52
|
+
add_message "walletrpc.ListAccountsRequest" do
|
53
|
+
optional :name, :string, 1
|
54
|
+
optional :address_type, :enum, 2, "walletrpc.AddressType"
|
55
|
+
end
|
56
|
+
add_message "walletrpc.ListAccountsResponse" do
|
57
|
+
repeated :accounts, :message, 1, "walletrpc.Account"
|
58
|
+
end
|
59
|
+
add_message "walletrpc.ImportAccountRequest" do
|
60
|
+
optional :name, :string, 1
|
61
|
+
optional :extended_public_key, :string, 2
|
62
|
+
optional :master_key_fingerprint, :bytes, 3
|
63
|
+
optional :address_type, :enum, 4, "walletrpc.AddressType"
|
64
|
+
optional :dry_run, :bool, 5
|
65
|
+
end
|
66
|
+
add_message "walletrpc.ImportAccountResponse" do
|
67
|
+
optional :account, :message, 1, "walletrpc.Account"
|
68
|
+
repeated :dry_run_external_addrs, :string, 2
|
69
|
+
repeated :dry_run_internal_addrs, :string, 3
|
70
|
+
end
|
71
|
+
add_message "walletrpc.ImportPublicKeyRequest" do
|
72
|
+
optional :public_key, :bytes, 1
|
73
|
+
optional :address_type, :enum, 2, "walletrpc.AddressType"
|
74
|
+
end
|
75
|
+
add_message "walletrpc.ImportPublicKeyResponse" do
|
76
|
+
end
|
39
77
|
add_message "walletrpc.Transaction" do
|
40
78
|
optional :tx_hex, :bytes, 1
|
41
79
|
optional :label, :string, 2
|
@@ -68,6 +106,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
68
106
|
optional :next_broadcast_height, :uint32, 6
|
69
107
|
optional :requested_conf_target, :uint32, 8
|
70
108
|
optional :requested_sat_per_byte, :uint32, 9
|
109
|
+
optional :sat_per_vbyte, :uint64, 10
|
110
|
+
optional :requested_sat_per_vbyte, :uint64, 11
|
71
111
|
optional :force, :bool, 7
|
72
112
|
end
|
73
113
|
add_message "walletrpc.PendingSweepsRequest" do
|
@@ -80,6 +120,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
80
120
|
optional :target_conf, :uint32, 2
|
81
121
|
optional :sat_per_byte, :uint32, 3
|
82
122
|
optional :force, :bool, 4
|
123
|
+
optional :sat_per_vbyte, :uint64, 5
|
83
124
|
end
|
84
125
|
add_message "walletrpc.BumpFeeResponse" do
|
85
126
|
end
|
@@ -103,13 +144,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
103
144
|
add_message "walletrpc.LabelTransactionResponse" do
|
104
145
|
end
|
105
146
|
add_message "walletrpc.FundPsbtRequest" do
|
147
|
+
optional :account, :string, 5
|
148
|
+
optional :min_confs, :int32, 6
|
149
|
+
optional :spend_unconfirmed, :bool, 7
|
106
150
|
oneof :template do
|
107
151
|
optional :psbt, :bytes, 1
|
108
152
|
optional :raw, :message, 2, "walletrpc.TxTemplate"
|
109
153
|
end
|
110
154
|
oneof :fees do
|
111
155
|
optional :target_conf, :uint32, 3
|
112
|
-
optional :sat_per_vbyte, :
|
156
|
+
optional :sat_per_vbyte, :uint64, 4
|
113
157
|
end
|
114
158
|
end
|
115
159
|
add_message "walletrpc.FundPsbtResponse" do
|
@@ -128,11 +172,23 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
128
172
|
end
|
129
173
|
add_message "walletrpc.FinalizePsbtRequest" do
|
130
174
|
optional :funded_psbt, :bytes, 1
|
175
|
+
optional :account, :string, 5
|
131
176
|
end
|
132
177
|
add_message "walletrpc.FinalizePsbtResponse" do
|
133
178
|
optional :signed_psbt, :bytes, 1
|
134
179
|
optional :raw_final_tx, :bytes, 2
|
135
180
|
end
|
181
|
+
add_message "walletrpc.ListLeasesRequest" do
|
182
|
+
end
|
183
|
+
add_message "walletrpc.ListLeasesResponse" do
|
184
|
+
repeated :locked_utxos, :message, 1, "walletrpc.UtxoLease"
|
185
|
+
end
|
186
|
+
add_enum "walletrpc.AddressType" do
|
187
|
+
value :UNKNOWN, 0
|
188
|
+
value :WITNESS_PUBKEY_HASH, 1
|
189
|
+
value :NESTED_WITNESS_PUBKEY_HASH, 2
|
190
|
+
value :HYBRID_NESTED_WITNESS_PUBKEY_HASH, 3
|
191
|
+
end
|
136
192
|
add_enum "walletrpc.WitnessType" do
|
137
193
|
value :UNKNOWN_WITNESS, 0
|
138
194
|
value :COMMITMENT_TIME_LOCK, 1
|
@@ -162,6 +218,13 @@ module Walletrpc
|
|
162
218
|
KeyReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.KeyReq").msgclass
|
163
219
|
AddrRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.AddrRequest").msgclass
|
164
220
|
AddrResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.AddrResponse").msgclass
|
221
|
+
Account = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.Account").msgclass
|
222
|
+
ListAccountsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListAccountsRequest").msgclass
|
223
|
+
ListAccountsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListAccountsResponse").msgclass
|
224
|
+
ImportAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportAccountRequest").msgclass
|
225
|
+
ImportAccountResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportAccountResponse").msgclass
|
226
|
+
ImportPublicKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportPublicKeyRequest").msgclass
|
227
|
+
ImportPublicKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ImportPublicKeyResponse").msgclass
|
165
228
|
Transaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.Transaction").msgclass
|
166
229
|
PublishResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.PublishResponse").msgclass
|
167
230
|
SendOutputsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.SendOutputsRequest").msgclass
|
@@ -184,5 +247,8 @@ module Walletrpc
|
|
184
247
|
UtxoLease = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.UtxoLease").msgclass
|
185
248
|
FinalizePsbtRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FinalizePsbtRequest").msgclass
|
186
249
|
FinalizePsbtResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FinalizePsbtResponse").msgclass
|
250
|
+
ListLeasesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListLeasesRequest").msgclass
|
251
|
+
ListLeasesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListLeasesResponse").msgclass
|
252
|
+
AddressType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.AddressType").enummodule
|
187
253
|
WitnessType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.WitnessType").enummodule
|
188
254
|
end
|
@@ -33,6 +33,9 @@ module Walletrpc
|
|
33
33
|
# originally lock the output.
|
34
34
|
rpc :ReleaseOutput, ::Walletrpc::ReleaseOutputRequest, ::Walletrpc::ReleaseOutputResponse
|
35
35
|
#
|
36
|
+
# ListLeases lists all currently locked utxos.
|
37
|
+
rpc :ListLeases, ::Walletrpc::ListLeasesRequest, ::Walletrpc::ListLeasesResponse
|
38
|
+
#
|
36
39
|
# DeriveNextKey attempts to derive the *next* key within the key family
|
37
40
|
# (account in BIP43) specified. This method should return the next external
|
38
41
|
# child within this branch.
|
@@ -45,6 +48,43 @@ module Walletrpc
|
|
45
48
|
# NextAddr returns the next unused address within the wallet.
|
46
49
|
rpc :NextAddr, ::Walletrpc::AddrRequest, ::Walletrpc::AddrResponse
|
47
50
|
#
|
51
|
+
# ListAccounts retrieves all accounts belonging to the wallet by default. A
|
52
|
+
# name and key scope filter can be provided to filter through all of the
|
53
|
+
# wallet accounts and return only those matching.
|
54
|
+
rpc :ListAccounts, ::Walletrpc::ListAccountsRequest, ::Walletrpc::ListAccountsResponse
|
55
|
+
#
|
56
|
+
# ImportAccount imports an account backed by an account extended public key.
|
57
|
+
# The master key fingerprint denotes the fingerprint of the root key
|
58
|
+
# corresponding to the account public key (also known as the key with
|
59
|
+
# derivation path m/). This may be required by some hardware wallets for
|
60
|
+
# proper identification and signing.
|
61
|
+
#
|
62
|
+
# The address type can usually be inferred from the key's version, but may be
|
63
|
+
# required for certain keys to map them into the proper scope.
|
64
|
+
#
|
65
|
+
# For BIP-0044 keys, an address type must be specified as we intend to not
|
66
|
+
# support importing BIP-0044 keys into the wallet using the legacy
|
67
|
+
# pay-to-pubkey-hash (P2PKH) scheme. A nested witness address type will force
|
68
|
+
# the standard BIP-0049 derivation scheme, while a witness address type will
|
69
|
+
# force the standard BIP-0084 derivation scheme.
|
70
|
+
#
|
71
|
+
# For BIP-0049 keys, an address type must also be specified to make a
|
72
|
+
# distinction between the standard BIP-0049 address schema (nested witness
|
73
|
+
# pubkeys everywhere) and our own BIP-0049Plus address schema (nested pubkeys
|
74
|
+
# externally, witness pubkeys internally).
|
75
|
+
#
|
76
|
+
# NOTE: Events (deposits/spends) for keys derived from an account will only be
|
77
|
+
# detected by lnd if they happen after the import. Rescans to detect past
|
78
|
+
# events will be supported later on.
|
79
|
+
rpc :ImportAccount, ::Walletrpc::ImportAccountRequest, ::Walletrpc::ImportAccountResponse
|
80
|
+
#
|
81
|
+
# ImportPublicKey imports a public key as watch-only into the wallet.
|
82
|
+
#
|
83
|
+
# NOTE: Events (deposits/spends) for a key will only be detected by lnd if
|
84
|
+
# they happen after the import. Rescans to detect past events will be
|
85
|
+
# supported later on.
|
86
|
+
rpc :ImportPublicKey, ::Walletrpc::ImportPublicKeyRequest, ::Walletrpc::ImportPublicKeyResponse
|
87
|
+
#
|
48
88
|
# PublishTransaction attempts to publish the passed transaction to the
|
49
89
|
# network. Once this returns without an error, the wallet will continually
|
50
90
|
# attempt to re-broadcast the transaction on start up, until it enters the
|
@@ -26,6 +26,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
26
26
|
optional :num_pending_backups, :uint32, 2
|
27
27
|
optional :max_backups, :uint32, 3
|
28
28
|
optional :sweep_sat_per_byte, :uint32, 4
|
29
|
+
optional :sweep_sat_per_vbyte, :uint32, 5
|
29
30
|
end
|
30
31
|
add_message "wtclientrpc.Tower" do
|
31
32
|
optional :pubkey, :bytes, 1
|
@@ -55,6 +56,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
55
56
|
add_message "wtclientrpc.PolicyResponse" do
|
56
57
|
optional :max_updates, :uint32, 1
|
57
58
|
optional :sweep_sat_per_byte, :uint32, 2
|
59
|
+
optional :sweep_sat_per_vbyte, :uint32, 3
|
58
60
|
end
|
59
61
|
add_enum "wtclientrpc.PolicyType" do
|
60
62
|
value :LEGACY, 0
|
data/lib/lnrpc/version.rb
CHANGED