lnrpc 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +3 -3
- data/README.md +33 -11
- data/lib/lnrpc.rb +15 -3
- data/lib/lnrpc/client.rb +20 -46
- data/lib/lnrpc/grpc_wrapper.rb +66 -0
- data/lib/lnrpc/router.proto +560 -0
- data/lib/lnrpc/router_pb.rb +198 -0
- data/lib/lnrpc/router_services_pb.rb +69 -0
- data/lib/lnrpc/rpc.proto +1183 -571
- data/lib/lnrpc/rpc_pb.rb +169 -3
- data/lib/lnrpc/rpc_services_pb.rb +9 -4
- data/lib/lnrpc/version.rb +1 -1
- data/lnrpc.gemspec +3 -1
- metadata +11 -6
data/lib/lnrpc/rpc_pb.rb
CHANGED
@@ -36,7 +36,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
36
36
|
add_message "lnrpc.ChangePasswordResponse" do
|
37
37
|
end
|
38
38
|
add_message "lnrpc.Utxo" do
|
39
|
-
optional :
|
39
|
+
optional :address_type, :enum, 1, "lnrpc.AddressType"
|
40
40
|
optional :address, :string, 2
|
41
41
|
optional :amount_sat, :int64, 3
|
42
42
|
optional :pk_script, :string, 4
|
@@ -222,15 +222,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
222
222
|
optional :local_chan_reserve_sat, :int64, 20
|
223
223
|
optional :remote_chan_reserve_sat, :int64, 21
|
224
224
|
optional :static_remote_key, :bool, 22
|
225
|
+
optional :commitment_type, :enum, 26, "lnrpc.CommitmentType"
|
225
226
|
optional :lifetime, :int64, 23
|
226
227
|
optional :uptime, :int64, 24
|
227
228
|
optional :close_address, :string, 25
|
229
|
+
optional :push_amount_sat, :uint64, 27
|
230
|
+
optional :thaw_height, :uint32, 28
|
228
231
|
end
|
229
232
|
add_message "lnrpc.ListChannelsRequest" do
|
230
233
|
optional :active_only, :bool, 1
|
231
234
|
optional :inactive_only, :bool, 2
|
232
235
|
optional :public_only, :bool, 3
|
233
236
|
optional :private_only, :bool, 4
|
237
|
+
optional :peer, :bytes, 5
|
234
238
|
end
|
235
239
|
add_message "lnrpc.ListChannelsResponse" do
|
236
240
|
repeated :channels, :message, 11, "lnrpc.Channel"
|
@@ -246,6 +250,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
246
250
|
optional :settled_balance, :int64, 8
|
247
251
|
optional :time_locked_balance, :int64, 9
|
248
252
|
optional :close_type, :enum, 10, "lnrpc.ChannelCloseSummary.ClosureType"
|
253
|
+
optional :open_initiator, :enum, 11, "lnrpc.Initiator"
|
254
|
+
optional :close_initiator, :enum, 12, "lnrpc.Initiator"
|
249
255
|
end
|
250
256
|
add_enum "lnrpc.ChannelCloseSummary.ClosureType" do
|
251
257
|
value :COOPERATIVE_CLOSE, 0
|
@@ -277,13 +283,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
277
283
|
optional :ping_time, :int64, 9
|
278
284
|
optional :sync_type, :enum, 10, "lnrpc.Peer.SyncType"
|
279
285
|
map :features, :uint32, :message, 11, "lnrpc.Feature"
|
286
|
+
repeated :errors, :message, 12, "lnrpc.TimestampedError"
|
280
287
|
end
|
281
288
|
add_enum "lnrpc.Peer.SyncType" do
|
282
289
|
value :UNKNOWN_SYNC, 0
|
283
290
|
value :ACTIVE_SYNC, 1
|
284
291
|
value :PASSIVE_SYNC, 2
|
285
292
|
end
|
293
|
+
add_message "lnrpc.TimestampedError" do
|
294
|
+
optional :timestamp, :uint64, 1
|
295
|
+
optional :error, :string, 2
|
296
|
+
end
|
286
297
|
add_message "lnrpc.ListPeersRequest" do
|
298
|
+
optional :latest_error, :bool, 1
|
287
299
|
end
|
288
300
|
add_message "lnrpc.ListPeersResponse" do
|
289
301
|
repeated :peers, :message, 1, "lnrpc.Peer"
|
@@ -302,6 +314,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
302
314
|
end
|
303
315
|
add_message "lnrpc.GetInfoResponse" do
|
304
316
|
optional :version, :string, 14
|
317
|
+
optional :commit_hash, :string, 20
|
305
318
|
optional :identity_pubkey, :string, 1
|
306
319
|
optional :alias, :string, 2
|
307
320
|
optional :color, :string, 17
|
@@ -352,6 +365,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
352
365
|
optional :txid, :bytes, 1
|
353
366
|
optional :output_index, :uint32, 2
|
354
367
|
end
|
368
|
+
add_message "lnrpc.ReadyForPsbtFunding" do
|
369
|
+
optional :funding_address, :string, 1
|
370
|
+
optional :funding_amount, :int64, 2
|
371
|
+
optional :psbt, :bytes, 3
|
372
|
+
end
|
355
373
|
add_message "lnrpc.OpenChannelRequest" do
|
356
374
|
optional :node_pubkey, :bytes, 2
|
357
375
|
optional :node_pubkey_string, :string, 3
|
@@ -372,6 +390,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
372
390
|
oneof :update do
|
373
391
|
optional :chan_pending, :message, 1, "lnrpc.PendingUpdate"
|
374
392
|
optional :chan_open, :message, 3, "lnrpc.ChannelOpenUpdate"
|
393
|
+
optional :psbt_fund, :message, 5, "lnrpc.ReadyForPsbtFunding"
|
375
394
|
end
|
376
395
|
end
|
377
396
|
add_message "lnrpc.KeyLocator" do
|
@@ -388,19 +407,35 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
388
407
|
optional :local_key, :message, 3, "lnrpc.KeyDescriptor"
|
389
408
|
optional :remote_key, :bytes, 4
|
390
409
|
optional :pending_chan_id, :bytes, 5
|
410
|
+
optional :thaw_height, :uint32, 6
|
411
|
+
end
|
412
|
+
add_message "lnrpc.PsbtShim" do
|
413
|
+
optional :pending_chan_id, :bytes, 1
|
414
|
+
optional :base_psbt, :bytes, 2
|
391
415
|
end
|
392
416
|
add_message "lnrpc.FundingShim" do
|
393
417
|
oneof :shim do
|
394
418
|
optional :chan_point_shim, :message, 1, "lnrpc.ChanPointShim"
|
419
|
+
optional :psbt_shim, :message, 2, "lnrpc.PsbtShim"
|
395
420
|
end
|
396
421
|
end
|
397
422
|
add_message "lnrpc.FundingShimCancel" do
|
398
423
|
optional :pending_chan_id, :bytes, 1
|
399
424
|
end
|
425
|
+
add_message "lnrpc.FundingPsbtVerify" do
|
426
|
+
optional :funded_psbt, :bytes, 1
|
427
|
+
optional :pending_chan_id, :bytes, 2
|
428
|
+
end
|
429
|
+
add_message "lnrpc.FundingPsbtFinalize" do
|
430
|
+
optional :signed_psbt, :bytes, 1
|
431
|
+
optional :pending_chan_id, :bytes, 2
|
432
|
+
end
|
400
433
|
add_message "lnrpc.FundingTransitionMsg" do
|
401
434
|
oneof :trigger do
|
402
435
|
optional :shim_register, :message, 1, "lnrpc.FundingShim"
|
403
436
|
optional :shim_cancel, :message, 2, "lnrpc.FundingShimCancel"
|
437
|
+
optional :psbt_verify, :message, 3, "lnrpc.FundingPsbtVerify"
|
438
|
+
optional :psbt_finalize, :message, 4, "lnrpc.FundingPsbtFinalize"
|
404
439
|
end
|
405
440
|
end
|
406
441
|
add_message "lnrpc.FundingStateStepResp" do
|
@@ -430,6 +465,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
430
465
|
optional :remote_balance, :int64, 5
|
431
466
|
optional :local_chan_reserve_sat, :int64, 6
|
432
467
|
optional :remote_chan_reserve_sat, :int64, 7
|
468
|
+
optional :initiator, :enum, 8, "lnrpc.Initiator"
|
469
|
+
optional :commitment_type, :enum, 9, "lnrpc.CommitmentType"
|
433
470
|
end
|
434
471
|
add_message "lnrpc.PendingChannelsResponse.PendingOpenChannel" do
|
435
472
|
optional :channel, :message, 1, "lnrpc.PendingChannelsResponse.PendingChannel"
|
@@ -441,6 +478,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
441
478
|
add_message "lnrpc.PendingChannelsResponse.WaitingCloseChannel" do
|
442
479
|
optional :channel, :message, 1, "lnrpc.PendingChannelsResponse.PendingChannel"
|
443
480
|
optional :limbo_balance, :int64, 2
|
481
|
+
optional :commitments, :message, 3, "lnrpc.PendingChannelsResponse.Commitments"
|
482
|
+
end
|
483
|
+
add_message "lnrpc.PendingChannelsResponse.Commitments" do
|
484
|
+
optional :local_txid, :string, 1
|
485
|
+
optional :remote_txid, :string, 2
|
486
|
+
optional :remote_pending_txid, :string, 3
|
487
|
+
optional :local_commit_fee_sat, :uint64, 4
|
488
|
+
optional :remote_commit_fee_sat, :uint64, 5
|
489
|
+
optional :remote_pending_commit_fee_sat, :uint64, 6
|
444
490
|
end
|
445
491
|
add_message "lnrpc.PendingChannelsResponse.ClosedChannel" do
|
446
492
|
optional :channel, :message, 1, "lnrpc.PendingChannelsResponse.PendingChannel"
|
@@ -454,6 +500,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
454
500
|
optional :blocks_til_maturity, :int32, 5
|
455
501
|
optional :recovered_balance, :int64, 6
|
456
502
|
repeated :pending_htlcs, :message, 8, "lnrpc.PendingHTLC"
|
503
|
+
optional :anchor, :enum, 9, "lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorState"
|
504
|
+
end
|
505
|
+
add_enum "lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorState" do
|
506
|
+
value :LIMBO, 0
|
507
|
+
value :RECOVERED, 1
|
508
|
+
value :LOST, 2
|
457
509
|
end
|
458
510
|
add_message "lnrpc.ChannelEventSubscription" do
|
459
511
|
end
|
@@ -464,6 +516,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
464
516
|
optional :closed_channel, :message, 2, "lnrpc.ChannelCloseSummary"
|
465
517
|
optional :active_channel, :message, 3, "lnrpc.ChannelPoint"
|
466
518
|
optional :inactive_channel, :message, 4, "lnrpc.ChannelPoint"
|
519
|
+
optional :pending_open_channel, :message, 6, "lnrpc.PendingUpdate"
|
467
520
|
end
|
468
521
|
end
|
469
522
|
add_enum "lnrpc.ChannelEventUpdate.UpdateType" do
|
@@ -471,6 +524,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
471
524
|
value :CLOSED_CHANNEL, 1
|
472
525
|
value :ACTIVE_CHANNEL, 2
|
473
526
|
value :INACTIVE_CHANNEL, 3
|
527
|
+
value :PENDING_OPEN_CHANNEL, 4
|
474
528
|
end
|
475
529
|
add_message "lnrpc.WalletBalanceRequest" do
|
476
530
|
end
|
@@ -588,6 +642,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
588
642
|
repeated :nodes, :message, 1, "lnrpc.LightningNode"
|
589
643
|
repeated :edges, :message, 2, "lnrpc.ChannelEdge"
|
590
644
|
end
|
645
|
+
add_message "lnrpc.NodeMetricsRequest" do
|
646
|
+
repeated :types, :enum, 1, "lnrpc.NodeMetricType"
|
647
|
+
end
|
648
|
+
add_message "lnrpc.NodeMetricsResponse" do
|
649
|
+
map :betweenness_centrality, :string, :message, 1, "lnrpc.FloatMetric"
|
650
|
+
end
|
651
|
+
add_message "lnrpc.FloatMetric" do
|
652
|
+
optional :value, :double, 1
|
653
|
+
optional :normalized_value, :double, 2
|
654
|
+
end
|
591
655
|
add_message "lnrpc.ChanInfoRequest" do
|
592
656
|
optional :chan_id, :uint64, 1
|
593
657
|
end
|
@@ -720,7 +784,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
720
784
|
optional :payment_hash, :string, 1
|
721
785
|
optional :value, :int64, 2
|
722
786
|
optional :creation_date, :int64, 3
|
723
|
-
repeated :path, :string, 4
|
724
787
|
optional :fee, :int64, 5
|
725
788
|
optional :payment_preimage, :string, 6
|
726
789
|
optional :value_sat, :int64, 7
|
@@ -731,6 +794,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
731
794
|
optional :fee_msat, :int64, 12
|
732
795
|
optional :creation_time_ns, :int64, 13
|
733
796
|
repeated :htlcs, :message, 14, "lnrpc.HTLCAttempt"
|
797
|
+
optional :payment_index, :uint64, 15
|
798
|
+
optional :failure_reason, :enum, 16, "lnrpc.PaymentFailureReason"
|
734
799
|
end
|
735
800
|
add_enum "lnrpc.Payment.PaymentStatus" do
|
736
801
|
value :UNKNOWN, 0
|
@@ -743,6 +808,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
743
808
|
optional :route, :message, 2, "lnrpc.Route"
|
744
809
|
optional :attempt_time_ns, :int64, 3
|
745
810
|
optional :resolve_time_ns, :int64, 4
|
811
|
+
optional :failure, :message, 5, "lnrpc.Failure"
|
746
812
|
end
|
747
813
|
add_enum "lnrpc.HTLCAttempt.HTLCStatus" do
|
748
814
|
value :IN_FLIGHT, 0
|
@@ -751,9 +817,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
751
817
|
end
|
752
818
|
add_message "lnrpc.ListPaymentsRequest" do
|
753
819
|
optional :include_incomplete, :bool, 1
|
820
|
+
optional :index_offset, :uint64, 2
|
821
|
+
optional :max_payments, :uint64, 3
|
822
|
+
optional :reversed, :bool, 4
|
754
823
|
end
|
755
824
|
add_message "lnrpc.ListPaymentsResponse" do
|
756
825
|
repeated :payments, :message, 1, "lnrpc.Payment"
|
826
|
+
optional :first_index_offset, :uint64, 2
|
827
|
+
optional :last_index_offset, :uint64, 3
|
757
828
|
end
|
758
829
|
add_message "lnrpc.DeleteAllPaymentsRequest" do
|
759
830
|
end
|
@@ -797,7 +868,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
797
868
|
add_message "lnrpc.FeeReportRequest" do
|
798
869
|
end
|
799
870
|
add_message "lnrpc.ChannelFeeReport" do
|
800
|
-
optional :
|
871
|
+
optional :chan_id, :uint64, 5
|
872
|
+
optional :channel_point, :string, 1
|
801
873
|
optional :base_fee_msat, :int64, 2
|
802
874
|
optional :fee_per_mil, :int64, 3
|
803
875
|
optional :fee_rate, :double, 4
|
@@ -885,17 +957,94 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
885
957
|
add_message "lnrpc.BakeMacaroonResponse" do
|
886
958
|
optional :macaroon, :string, 1
|
887
959
|
end
|
960
|
+
add_message "lnrpc.Failure" do
|
961
|
+
optional :code, :enum, 1, "lnrpc.Failure.FailureCode"
|
962
|
+
optional :channel_update, :message, 3, "lnrpc.ChannelUpdate"
|
963
|
+
optional :htlc_msat, :uint64, 4
|
964
|
+
optional :onion_sha_256, :bytes, 5
|
965
|
+
optional :cltv_expiry, :uint32, 6
|
966
|
+
optional :flags, :uint32, 7
|
967
|
+
optional :failure_source_index, :uint32, 8
|
968
|
+
optional :height, :uint32, 9
|
969
|
+
end
|
970
|
+
add_enum "lnrpc.Failure.FailureCode" do
|
971
|
+
value :RESERVED, 0
|
972
|
+
value :INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS, 1
|
973
|
+
value :INCORRECT_PAYMENT_AMOUNT, 2
|
974
|
+
value :FINAL_INCORRECT_CLTV_EXPIRY, 3
|
975
|
+
value :FINAL_INCORRECT_HTLC_AMOUNT, 4
|
976
|
+
value :FINAL_EXPIRY_TOO_SOON, 5
|
977
|
+
value :INVALID_REALM, 6
|
978
|
+
value :EXPIRY_TOO_SOON, 7
|
979
|
+
value :INVALID_ONION_VERSION, 8
|
980
|
+
value :INVALID_ONION_HMAC, 9
|
981
|
+
value :INVALID_ONION_KEY, 10
|
982
|
+
value :AMOUNT_BELOW_MINIMUM, 11
|
983
|
+
value :FEE_INSUFFICIENT, 12
|
984
|
+
value :INCORRECT_CLTV_EXPIRY, 13
|
985
|
+
value :CHANNEL_DISABLED, 14
|
986
|
+
value :TEMPORARY_CHANNEL_FAILURE, 15
|
987
|
+
value :REQUIRED_NODE_FEATURE_MISSING, 16
|
988
|
+
value :REQUIRED_CHANNEL_FEATURE_MISSING, 17
|
989
|
+
value :UNKNOWN_NEXT_PEER, 18
|
990
|
+
value :TEMPORARY_NODE_FAILURE, 19
|
991
|
+
value :PERMANENT_NODE_FAILURE, 20
|
992
|
+
value :PERMANENT_CHANNEL_FAILURE, 21
|
993
|
+
value :EXPIRY_TOO_FAR, 22
|
994
|
+
value :MPP_TIMEOUT, 23
|
995
|
+
value :INTERNAL_FAILURE, 997
|
996
|
+
value :UNKNOWN_FAILURE, 998
|
997
|
+
value :UNREADABLE_FAILURE, 999
|
998
|
+
end
|
999
|
+
add_message "lnrpc.ChannelUpdate" do
|
1000
|
+
optional :signature, :bytes, 1
|
1001
|
+
optional :chain_hash, :bytes, 2
|
1002
|
+
optional :chan_id, :uint64, 3
|
1003
|
+
optional :timestamp, :uint32, 4
|
1004
|
+
optional :message_flags, :uint32, 10
|
1005
|
+
optional :channel_flags, :uint32, 5
|
1006
|
+
optional :time_lock_delta, :uint32, 6
|
1007
|
+
optional :htlc_minimum_msat, :uint64, 7
|
1008
|
+
optional :base_fee, :uint32, 8
|
1009
|
+
optional :fee_rate, :uint32, 9
|
1010
|
+
optional :htlc_maximum_msat, :uint64, 11
|
1011
|
+
optional :extra_opaque_data, :bytes, 12
|
1012
|
+
end
|
888
1013
|
add_enum "lnrpc.AddressType" do
|
889
1014
|
value :WITNESS_PUBKEY_HASH, 0
|
890
1015
|
value :NESTED_PUBKEY_HASH, 1
|
891
1016
|
value :UNUSED_WITNESS_PUBKEY_HASH, 2
|
892
1017
|
value :UNUSED_NESTED_PUBKEY_HASH, 3
|
893
1018
|
end
|
1019
|
+
add_enum "lnrpc.CommitmentType" do
|
1020
|
+
value :LEGACY, 0
|
1021
|
+
value :STATIC_REMOTE_KEY, 1
|
1022
|
+
value :ANCHORS, 2
|
1023
|
+
value :UNKNOWN_COMMITMENT_TYPE, 999
|
1024
|
+
end
|
1025
|
+
add_enum "lnrpc.Initiator" do
|
1026
|
+
value :INITIATOR_UNKNOWN, 0
|
1027
|
+
value :INITIATOR_LOCAL, 1
|
1028
|
+
value :INITIATOR_REMOTE, 2
|
1029
|
+
value :INITIATOR_BOTH, 3
|
1030
|
+
end
|
1031
|
+
add_enum "lnrpc.NodeMetricType" do
|
1032
|
+
value :UNKNOWN, 0
|
1033
|
+
value :BETWEENNESS_CENTRALITY, 1
|
1034
|
+
end
|
894
1035
|
add_enum "lnrpc.InvoiceHTLCState" do
|
895
1036
|
value :ACCEPTED, 0
|
896
1037
|
value :SETTLED, 1
|
897
1038
|
value :CANCELED, 2
|
898
1039
|
end
|
1040
|
+
add_enum "lnrpc.PaymentFailureReason" do
|
1041
|
+
value :FAILURE_REASON_NONE, 0
|
1042
|
+
value :FAILURE_REASON_TIMEOUT, 1
|
1043
|
+
value :FAILURE_REASON_NO_ROUTE, 2
|
1044
|
+
value :FAILURE_REASON_ERROR, 3
|
1045
|
+
value :FAILURE_REASON_INCORRECT_PAYMENT_DETAILS, 4
|
1046
|
+
value :FAILURE_REASON_INSUFFICIENT_BALANCE, 5
|
1047
|
+
end
|
899
1048
|
add_enum "lnrpc.FeatureBit" do
|
900
1049
|
value :DATALOSS_PROTECT_REQ, 0
|
901
1050
|
value :DATALOSS_PROTECT_OPT, 1
|
@@ -967,6 +1116,7 @@ module Lnrpc
|
|
967
1116
|
ClosedChannelsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ClosedChannelsResponse").msgclass
|
968
1117
|
Peer = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Peer").msgclass
|
969
1118
|
Peer::SyncType = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Peer.SyncType").enummodule
|
1119
|
+
TimestampedError = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.TimestampedError").msgclass
|
970
1120
|
ListPeersRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListPeersRequest").msgclass
|
971
1121
|
ListPeersResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListPeersResponse").msgclass
|
972
1122
|
PeerEventSubscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PeerEventSubscription").msgclass
|
@@ -981,13 +1131,17 @@ module Lnrpc
|
|
981
1131
|
CloseChannelRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.CloseChannelRequest").msgclass
|
982
1132
|
CloseStatusUpdate = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.CloseStatusUpdate").msgclass
|
983
1133
|
PendingUpdate = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingUpdate").msgclass
|
1134
|
+
ReadyForPsbtFunding = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ReadyForPsbtFunding").msgclass
|
984
1135
|
OpenChannelRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.OpenChannelRequest").msgclass
|
985
1136
|
OpenStatusUpdate = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.OpenStatusUpdate").msgclass
|
986
1137
|
KeyLocator = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.KeyLocator").msgclass
|
987
1138
|
KeyDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.KeyDescriptor").msgclass
|
988
1139
|
ChanPointShim = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChanPointShim").msgclass
|
1140
|
+
PsbtShim = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PsbtShim").msgclass
|
989
1141
|
FundingShim = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FundingShim").msgclass
|
990
1142
|
FundingShimCancel = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FundingShimCancel").msgclass
|
1143
|
+
FundingPsbtVerify = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FundingPsbtVerify").msgclass
|
1144
|
+
FundingPsbtFinalize = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FundingPsbtFinalize").msgclass
|
991
1145
|
FundingTransitionMsg = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FundingTransitionMsg").msgclass
|
992
1146
|
FundingStateStepResp = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FundingStateStepResp").msgclass
|
993
1147
|
PendingHTLC = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingHTLC").msgclass
|
@@ -996,8 +1150,10 @@ module Lnrpc
|
|
996
1150
|
PendingChannelsResponse::PendingChannel = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse.PendingChannel").msgclass
|
997
1151
|
PendingChannelsResponse::PendingOpenChannel = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse.PendingOpenChannel").msgclass
|
998
1152
|
PendingChannelsResponse::WaitingCloseChannel = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse.WaitingCloseChannel").msgclass
|
1153
|
+
PendingChannelsResponse::Commitments = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse.Commitments").msgclass
|
999
1154
|
PendingChannelsResponse::ClosedChannel = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse.ClosedChannel").msgclass
|
1000
1155
|
PendingChannelsResponse::ForceClosedChannel = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse.ForceClosedChannel").msgclass
|
1156
|
+
PendingChannelsResponse::ForceClosedChannel::AnchorState = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PendingChannelsResponse.ForceClosedChannel.AnchorState").enummodule
|
1001
1157
|
ChannelEventSubscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelEventSubscription").msgclass
|
1002
1158
|
ChannelEventUpdate = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelEventUpdate").msgclass
|
1003
1159
|
ChannelEventUpdate::UpdateType = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelEventUpdate.UpdateType").enummodule
|
@@ -1020,6 +1176,9 @@ module Lnrpc
|
|
1020
1176
|
ChannelEdge = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelEdge").msgclass
|
1021
1177
|
ChannelGraphRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelGraphRequest").msgclass
|
1022
1178
|
ChannelGraph = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelGraph").msgclass
|
1179
|
+
NodeMetricsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodeMetricsRequest").msgclass
|
1180
|
+
NodeMetricsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodeMetricsResponse").msgclass
|
1181
|
+
FloatMetric = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FloatMetric").msgclass
|
1023
1182
|
ChanInfoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChanInfoRequest").msgclass
|
1024
1183
|
NetworkInfoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NetworkInfoRequest").msgclass
|
1025
1184
|
NetworkInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NetworkInfo").msgclass
|
@@ -1076,7 +1235,14 @@ module Lnrpc
|
|
1076
1235
|
MacaroonPermission = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.MacaroonPermission").msgclass
|
1077
1236
|
BakeMacaroonRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.BakeMacaroonRequest").msgclass
|
1078
1237
|
BakeMacaroonResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.BakeMacaroonResponse").msgclass
|
1238
|
+
Failure = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Failure").msgclass
|
1239
|
+
Failure::FailureCode = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Failure.FailureCode").enummodule
|
1240
|
+
ChannelUpdate = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelUpdate").msgclass
|
1079
1241
|
AddressType = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.AddressType").enummodule
|
1242
|
+
CommitmentType = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.CommitmentType").enummodule
|
1243
|
+
Initiator = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Initiator").enummodule
|
1244
|
+
NodeMetricType = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodeMetricType").enummodule
|
1080
1245
|
InvoiceHTLCState = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.InvoiceHTLCState").enummodule
|
1246
|
+
PaymentFailureReason = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PaymentFailureReason").enummodule
|
1081
1247
|
FeatureBit = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.FeatureBit").enummodule
|
1082
1248
|
end
|
@@ -229,10 +229,11 @@ module Lnrpc
|
|
229
229
|
# when in debug builds of lnd.
|
230
230
|
rpc :AbandonChannel, AbandonChannelRequest, AbandonChannelResponse
|
231
231
|
# * lncli: `sendpayment`
|
232
|
-
# SendPayment dispatches a
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
232
|
+
# Deprecated, use routerrpc.SendPayment. SendPayment dispatches a
|
233
|
+
# bi-directional streaming RPC for sending payments through the Lightning
|
234
|
+
# Network. A single RPC invocation creates a persistent bi-directional
|
235
|
+
# stream allowing clients to rapidly send payments through the Lightning
|
236
|
+
# Network with a single persistent connection.
|
236
237
|
rpc :SendPayment, stream(SendRequest), stream(SendResponse)
|
237
238
|
# *
|
238
239
|
# SendPaymentSync is the synchronous non-streaming version of SendPayment.
|
@@ -299,6 +300,10 @@ module Lnrpc
|
|
299
300
|
# the node directional specific routing policy which includes: the time lock
|
300
301
|
# delta, fee information, etc.
|
301
302
|
rpc :DescribeGraph, ChannelGraphRequest, ChannelGraph
|
303
|
+
# * lncli: `getnodemetrics`
|
304
|
+
# GetNodeMetrics returns node metrics calculated from the graph. Currently
|
305
|
+
# the only supported metric is betweenness centrality of individual nodes.
|
306
|
+
rpc :GetNodeMetrics, NodeMetricsRequest, NodeMetricsResponse
|
302
307
|
# * lncli: `getchaninfo`
|
303
308
|
# GetChanInfo returns the latest authenticated network announcement for the
|
304
309
|
# given channel identified by its channel ID: an 8-byte integer which
|
data/lib/lnrpc/version.rb
CHANGED
data/lnrpc.gemspec
CHANGED
@@ -14,6 +14,8 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = "https://github.com/bumi/lnrpc"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
|
+
spec.metadata['funding'] = 'lightning:02ad33d99d0bb3bf3bb8ec8e089cbefa8fd7de23a13cfa59aec9af9730816be76f'
|
18
|
+
|
17
19
|
# Specify which files should be added to the gem when it is released.
|
18
20
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
21
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
@@ -24,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
24
26
|
spec.require_paths = ["lib"]
|
25
27
|
|
26
28
|
spec.add_development_dependency "bundler", "~> 1.17"
|
27
|
-
spec.add_development_dependency "rake", "~>
|
29
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
28
30
|
spec.add_development_dependency "rspec", "~> 3.0"
|
29
31
|
|
30
32
|
spec.add_dependency "grpc", ">= 1.19.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lnrpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bumann
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,7 +100,11 @@ files:
|
|
100
100
|
- examples.rb
|
101
101
|
- lib/lnrpc.rb
|
102
102
|
- lib/lnrpc/client.rb
|
103
|
+
- lib/lnrpc/grpc_wrapper.rb
|
103
104
|
- lib/lnrpc/macaroon_interceptor.rb
|
105
|
+
- lib/lnrpc/router.proto
|
106
|
+
- lib/lnrpc/router_pb.rb
|
107
|
+
- lib/lnrpc/router_services_pb.rb
|
104
108
|
- lib/lnrpc/rpc.proto
|
105
109
|
- lib/lnrpc/rpc_pb.rb
|
106
110
|
- lib/lnrpc/rpc_services_pb.rb
|
@@ -109,7 +113,8 @@ files:
|
|
109
113
|
homepage: https://github.com/bumi/lnrpc
|
110
114
|
licenses:
|
111
115
|
- MIT
|
112
|
-
metadata:
|
116
|
+
metadata:
|
117
|
+
funding: lightning:02ad33d99d0bb3bf3bb8ec8e089cbefa8fd7de23a13cfa59aec9af9730816be76f
|
113
118
|
post_install_message:
|
114
119
|
rdoc_options: []
|
115
120
|
require_paths:
|
@@ -125,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
130
|
- !ruby/object:Gem::Version
|
126
131
|
version: '0'
|
127
132
|
requirements: []
|
128
|
-
rubygems_version: 3.0.
|
133
|
+
rubygems_version: 3.0.3
|
129
134
|
signing_key:
|
130
135
|
specification_version: 4
|
131
136
|
summary: gRPC interface for lnd packed as ruby gem
|