lnrpc 0.7.1 → 0.8.0.beta

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9939023e3ed68220718dde71021835a7171dfb77ed2986b1268d27c8edc2fcf
4
- data.tar.gz: f09a58cd2cd02af894b8a893ed8dc7bb557e3af8cfbef584e335d9f8693b5de9
3
+ metadata.gz: 6b19fa063d9eb1bfcd10174d0408d7128b35e94f7777dbfb7d44a8dcfe551096
4
+ data.tar.gz: 04bd4cc2efe2679fd052e337ba46ad0dbe71e287437c32f32cd766663ca62416
5
5
  SHA512:
6
- metadata.gz: 5fbf9f06e698617352a484fa0bb8223331fa8d18cb371d3db8e615641c3a65e8d868adf51d43224ce2de9ec805aa187a36ca94f2464eacab17e2203bfeaecfa6
7
- data.tar.gz: 8486fb9232fef1939d4bf295f47282b8dd17712d81a575305a58e9c037ce262feaae3a6aa6089e53d4fd0a62a486e71df769f48cda118959bf9738ff5bcfaced
6
+ metadata.gz: 8418c5730ba78e9cd0a8436af0b1c0cdaa36c9d5d50b63ed7c915978c80e5fa1c533d1ad1bca8b0418a272c7fb213d3bb71dada0a53a74e0fbd72c0faf0654ad
7
+ data.tar.gz: 4c893a07fdd3dc2ac13aa4b31c1d7866e7cdfd81f52818fb5b7ab9f651ef15dbc1ee241c8df422460e68f8658fd3c22aa099a560ef98007352ff63ff92e74b5f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lnrpc (0.7.0)
4
+ lnrpc (0.8.0.beta)
5
5
  google-protobuf (>= 3.7)
6
6
  grpc (>= 1.19.0)
7
7
 
@@ -9,26 +9,26 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  diff-lcs (1.3)
12
- google-protobuf (3.8.0)
12
+ google-protobuf (3.9.2)
13
13
  googleapis-common-protos-types (1.0.4)
14
14
  google-protobuf (~> 3.0)
15
- grpc (1.21.0)
16
- google-protobuf (~> 3.7)
15
+ grpc (1.24.0)
16
+ google-protobuf (~> 3.8)
17
17
  googleapis-common-protos-types (~> 1.0)
18
18
  rake (10.5.0)
19
- rspec (3.8.0)
20
- rspec-core (~> 3.8.0)
21
- rspec-expectations (~> 3.8.0)
22
- rspec-mocks (~> 3.8.0)
23
- rspec-core (3.8.2)
24
- rspec-support (~> 3.8.0)
25
- rspec-expectations (3.8.4)
19
+ rspec (3.9.0)
20
+ rspec-core (~> 3.9.0)
21
+ rspec-expectations (~> 3.9.0)
22
+ rspec-mocks (~> 3.9.0)
23
+ rspec-core (3.9.0)
24
+ rspec-support (~> 3.9.0)
25
+ rspec-expectations (3.9.0)
26
26
  diff-lcs (>= 1.2.0, < 2.0)
27
- rspec-support (~> 3.8.0)
28
- rspec-mocks (3.8.1)
27
+ rspec-support (~> 3.9.0)
28
+ rspec-mocks (3.9.0)
29
29
  diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.8.0)
31
- rspec-support (3.8.2)
30
+ rspec-support (~> 3.9.0)
31
+ rspec-support (3.9.0)
32
32
 
33
33
  PLATFORMS
34
34
  ruby
@@ -1,12 +1,17 @@
1
1
  require "lnrpc"
2
2
 
3
- lnd = Lnrpc::Client.new() # use defaults for credentials, macaraoon and address
3
+ lnd = Lnrpc::Client.new({
4
+ credentials_path: '/home/bumi/lightning/bullet-testnet/2019-02-27/tls.cert',
5
+ macaroon_path: '/home/bumi/lightning/bullet-testnet/2019-02-27/admin.macaroon',
6
+ address: '79.137.71.183:10009'
7
+ }) # use defaults for credentials, macaraoon and address
4
8
 
5
9
  get_info_res = lnd.get_info
6
10
  puts get_info_res.alias
7
11
 
8
12
  puts lnd.wallet_balance.total_balance
9
13
 
14
+ exit
10
15
  pay_request = "lntb50u1pw9mmndpp5nvnff958pxc9eqknwntyxapjw7l5grt5e2y70cmmnu0lljfa0sdqdpsgfkx7cmtwd68yetpd5s9xct5v4kxc6t5v5s8yatz0ysxwetdcqzysxqyz5vqjkhlyn40z76gyn7dx32p9j58dftve9xrlvnqqazht7w2fdauukhyhr9y4k3ngjn8s6srglj8swk7tm70ng54wdkq47ahytpwffvaeusp500csz"
11
16
  lnd.pay(pay_request) # or:
12
17
  lnd.send_payment_sync(payment_request: pay_request)
@@ -389,7 +389,7 @@ service Lightning {
389
389
  };
390
390
  }
391
391
 
392
- /** lncli: `subscribechannelevents`
392
+ /**
393
393
  SubscribeChannelEvents creates a uni-directional stream from the server to
394
394
  the client in which any updates relevant to the state of the channels are
395
395
  sent over. Events include new active channels, inactive channels, and closed
@@ -430,6 +430,15 @@ service Lightning {
430
430
  */
431
431
  rpc OpenChannel (OpenChannelRequest) returns (stream OpenStatusUpdate);
432
432
 
433
+ /**
434
+ ChannelAcceptor dispatches a bi-directional streaming RPC in which
435
+ OpenChannel requests are sent to the client and the client responds with
436
+ a boolean that tells LND whether or not to accept the channel. This allows
437
+ node operators to specify their own criteria for accepting inbound channels
438
+ through a single persistent connection.
439
+ */
440
+ rpc ChannelAcceptor (stream ChannelAcceptResponse) returns (stream ChannelAcceptRequest);
441
+
433
442
  /** lncli: `closechannel`
434
443
  CloseChannel attempts to close an active channel identified by its channel
435
444
  outpoint (ChannelPoint). The actions of this method can additionally be
@@ -879,10 +888,18 @@ message SendRequest {
879
888
  uint64 outgoing_chan_id = 9;
880
889
 
881
890
  /**
882
- An optional maximum total time lock for the route. If zero, there is no
883
- maximum enforced.
891
+ An optional maximum total time lock for the route. This should not exceed
892
+ lnd's `--max-cltv-expiry` setting. If zero, then the value of
893
+ `--max-cltv-expiry` is enforced.
884
894
  */
885
895
  uint32 cltv_limit = 10;
896
+
897
+ /**
898
+ An optional field that can be used to pass an arbitrary set of TLV records
899
+ to a peer which understands the new records. This can be used to pass
900
+ application specific data during the payment attempt.
901
+ */
902
+ map<uint64, bytes> dest_tlv = 11;
886
903
  }
887
904
 
888
905
  message SendResponse {
@@ -905,6 +922,58 @@ message SendToRouteRequest {
905
922
  Route route = 4;
906
923
  }
907
924
 
925
+ message ChannelAcceptRequest {
926
+ /// The pubkey of the node that wishes to open an inbound channel.
927
+ bytes node_pubkey = 1;
928
+
929
+ /// The hash of the genesis block that the proposed channel resides in.
930
+ bytes chain_hash = 2;
931
+
932
+ /// The pending channel id.
933
+ bytes pending_chan_id = 3;
934
+
935
+ /// The funding amount in satoshis that initiator wishes to use in the channel.
936
+ uint64 funding_amt = 4;
937
+
938
+ /// The push amount of the proposed channel in millisatoshis.
939
+ uint64 push_amt = 5;
940
+
941
+ /// The dust limit of the initiator's commitment tx.
942
+ uint64 dust_limit = 6;
943
+
944
+ /// The maximum amount of coins in millisatoshis that can be pending in this channel.
945
+ uint64 max_value_in_flight = 7;
946
+
947
+ /// The minimum amount of satoshis the initiator requires us to have at all times.
948
+ uint64 channel_reserve = 8;
949
+
950
+ /// The smallest HTLC in millisatoshis that the initiator will accept.
951
+ uint64 min_htlc = 9;
952
+
953
+ /// The initial fee rate that the initiator suggests for both commitment transactions.
954
+ uint64 fee_per_kw = 10;
955
+
956
+ /**
957
+ The number of blocks to use for the relative time lock in the pay-to-self output
958
+ of both commitment transactions.
959
+ */
960
+ uint32 csv_delay = 11;
961
+
962
+ /// The total number of incoming HTLC's that the initiator will accept.
963
+ uint32 max_accepted_htlcs = 12;
964
+
965
+ /// A bit-field which the initiator uses to specify proposed channel behavior.
966
+ uint32 channel_flags = 13;
967
+ }
968
+
969
+ message ChannelAcceptResponse {
970
+ /// Whether or not the client accepts the channel.
971
+ bool accept = 1;
972
+
973
+ /// The pending channel id to which this response applies.
974
+ bytes pending_chan_id = 2;
975
+ }
976
+
908
977
  message ChannelPoint {
909
978
  oneof funding_txid {
910
979
  /// Txid of the funding transaction
@@ -1169,6 +1238,14 @@ message Channel {
1169
1238
  The minimum satoshis the other node is required to reserve in its balance.
1170
1239
  */
1171
1240
  int64 remote_chan_reserve_sat = 21 [json_name = "remote_chan_reserve_sat"];
1241
+
1242
+ /**
1243
+ If true, then this channel uses the modern commitment format where the key
1244
+ in the output of the remote party does not change each state. This makes
1245
+ back up and recovery easier as when the channel is closed, the funds go
1246
+ directly to that key.
1247
+ */
1248
+ bool static_remote_key = 22 [json_name = "static_remote_key"];
1172
1249
  }
1173
1250
 
1174
1251
 
@@ -1343,6 +1420,9 @@ message GetInfoResponse {
1343
1420
 
1344
1421
  /// The color of the current node in hex code format
1345
1422
  string color = 17 [json_name = "color"];
1423
+
1424
+ // Whether we consider ourselves synced with the public channel graph.
1425
+ bool synced_to_graph = 18 [json_name = "synced_to_graph"];
1346
1426
  }
1347
1427
 
1348
1428
  message Chain {
@@ -1642,9 +1722,9 @@ message QueryRoutesRequest {
1642
1722
  repeated bytes ignored_nodes = 6;
1643
1723
 
1644
1724
  /**
1645
- A list of edges to ignore during path finding.
1725
+ Deprecated. A list of edges to ignore during path finding.
1646
1726
  */
1647
- repeated EdgeLocator ignored_edges = 7;
1727
+ repeated EdgeLocator ignored_edges = 7 [deprecated = true];
1648
1728
 
1649
1729
  /**
1650
1730
  The source node where the request route should originated from. If empty,
@@ -1657,6 +1737,26 @@ message QueryRoutesRequest {
1657
1737
  the optimal route.
1658
1738
  */
1659
1739
  bool use_mission_control = 9;
1740
+
1741
+ /**
1742
+ A list of directed node pairs that will be ignored during path finding.
1743
+ */
1744
+ repeated NodePair ignored_pairs = 10;
1745
+
1746
+ /**
1747
+ An optional maximum total time lock for the route. If the source is empty or
1748
+ ourselves, this should not exceed lnd's `--max-cltv-expiry` setting. If
1749
+ zero, then the value of `--max-cltv-expiry` is used as the limit.
1750
+ */
1751
+ uint32 cltv_limit = 11;
1752
+ }
1753
+
1754
+ message NodePair {
1755
+ /// The sending node of the pair.
1756
+ bytes from = 1;
1757
+
1758
+ /// The receiving node of the pair.
1759
+ bytes to = 2;
1660
1760
  }
1661
1761
 
1662
1762
  message EdgeLocator {
@@ -1673,7 +1773,17 @@ message EdgeLocator {
1673
1773
  }
1674
1774
 
1675
1775
  message QueryRoutesResponse {
1776
+ /**
1777
+ The route that results from the path finding operation. This is still a
1778
+ repeated field to retain backwards compatibility.
1779
+ */
1676
1780
  repeated Route routes = 1 [json_name = "routes"];
1781
+
1782
+ /**
1783
+ The success probability of the returned route based on the current mission
1784
+ control state. [EXPERIMENTAL]
1785
+ */
1786
+ double success_prob = 2 [json_name = "success_prob"];
1677
1787
  }
1678
1788
 
1679
1789
  message Hop {
@@ -1695,6 +1805,12 @@ message Hop {
1695
1805
  can be executed without relying on a copy of the channel graph.
1696
1806
  */
1697
1807
  string pub_key = 8 [json_name = "pub_key"];
1808
+
1809
+ /**
1810
+ If set to true, then this hop will be encoded using the new variable length
1811
+ TLV format.
1812
+ */
1813
+ bool tlv_payload = 9 [json_name = "tlv_payload"];
1698
1814
  }
1699
1815
 
1700
1816
  /**
@@ -2072,6 +2188,42 @@ message Invoice {
2072
2188
  The state the invoice is in.
2073
2189
  */
2074
2190
  InvoiceState state = 21 [json_name = "state"];
2191
+
2192
+ /// List of HTLCs paying to this invoice [EXPERIMENTAL].
2193
+ repeated InvoiceHTLC htlcs = 22 [json_name = "htlcs"];
2194
+ }
2195
+
2196
+ enum InvoiceHTLCState {
2197
+ ACCEPTED = 0;
2198
+ SETTLED = 1;
2199
+ CANCELED = 2;
2200
+ }
2201
+
2202
+ /// Details of an HTLC that paid to an invoice
2203
+ message InvoiceHTLC {
2204
+ /// Short channel id over which the htlc was received.
2205
+ uint64 chan_id = 1 [json_name = "chan_id"];
2206
+
2207
+ /// Index identifying the htlc on the channel.
2208
+ uint64 htlc_index = 2 [json_name = "htlc_index"];
2209
+
2210
+ /// The amount of the htlc in msat.
2211
+ uint64 amt_msat = 3 [json_name = "amt_msat"];
2212
+
2213
+ /// Block height at which this htlc was accepted.
2214
+ int32 accept_height = 4 [json_name = "accept_height"];
2215
+
2216
+ /// Time at which this htlc was accepted.
2217
+ int64 accept_time = 5 [json_name = "accept_time"];
2218
+
2219
+ /// Time at which this htlc was settled or canceled.
2220
+ int64 resolve_time = 6 [json_name = "resolve_time"];
2221
+
2222
+ /// Block height at which this htlc expires.
2223
+ int32 expiry_height = 7 [json_name = "expiry_height"];
2224
+
2225
+ /// Current state the htlc is in.
2226
+ InvoiceHTLCState state = 8 [json_name = "state"];
2075
2227
  }
2076
2228
 
2077
2229
  message AddInvoiceResponse {
@@ -2304,6 +2456,9 @@ message PolicyUpdateRequest {
2304
2456
 
2305
2457
  /// The required timelock delta for HTLCs forwarded over the channel.
2306
2458
  uint32 time_lock_delta = 5 [json_name = "time_lock_delta"];
2459
+
2460
+ /// If set, the maximum HTLC size in milli-satoshis. If unset, the maximum HTLC will be unchanged.
2461
+ uint64 max_htlc_msat = 6 [json_name = "max_htlc_msat"];
2307
2462
  }
2308
2463
  message PolicyUpdateResponse {
2309
2464
  }
@@ -76,6 +76,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
76
76
  optional :fee_limit, :message, 8, "lnrpc.FeeLimit"
77
77
  optional :outgoing_chan_id, :uint64, 9
78
78
  optional :cltv_limit, :uint32, 10
79
+ map :dest_tlv, :uint64, :bytes, 11
79
80
  end
80
81
  add_message "lnrpc.SendResponse" do
81
82
  optional :payment_error, :string, 1
@@ -88,6 +89,25 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
88
89
  optional :payment_hash_string, :string, 2
89
90
  optional :route, :message, 4, "lnrpc.Route"
90
91
  end
92
+ add_message "lnrpc.ChannelAcceptRequest" do
93
+ optional :node_pubkey, :bytes, 1
94
+ optional :chain_hash, :bytes, 2
95
+ optional :pending_chan_id, :bytes, 3
96
+ optional :funding_amt, :uint64, 4
97
+ optional :push_amt, :uint64, 5
98
+ optional :dust_limit, :uint64, 6
99
+ optional :max_value_in_flight, :uint64, 7
100
+ optional :channel_reserve, :uint64, 8
101
+ optional :min_htlc, :uint64, 9
102
+ optional :fee_per_kw, :uint64, 10
103
+ optional :csv_delay, :uint32, 11
104
+ optional :max_accepted_htlcs, :uint32, 12
105
+ optional :channel_flags, :uint32, 13
106
+ end
107
+ add_message "lnrpc.ChannelAcceptResponse" do
108
+ optional :accept, :bool, 1
109
+ optional :pending_chan_id, :bytes, 2
110
+ end
91
111
  add_message "lnrpc.ChannelPoint" do
92
112
  optional :output_index, :uint32, 3
93
113
  oneof :funding_txid do
@@ -196,6 +216,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
196
216
  optional :chan_status_flags, :string, 19
197
217
  optional :local_chan_reserve_sat, :int64, 20
198
218
  optional :remote_chan_reserve_sat, :int64, 21
219
+ optional :static_remote_key, :bool, 22
199
220
  end
200
221
  add_message "lnrpc.ListChannelsRequest" do
201
222
  optional :active_only, :bool, 1
@@ -276,6 +297,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
276
297
  optional :num_inactive_channels, :uint32, 15
277
298
  repeated :chains, :message, 16, "lnrpc.Chain"
278
299
  optional :color, :string, 17
300
+ optional :synced_to_graph, :bool, 18
279
301
  end
280
302
  add_message "lnrpc.Chain" do
281
303
  optional :chain, :string, 1
@@ -417,6 +439,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
417
439
  repeated :ignored_edges, :message, 7, "lnrpc.EdgeLocator"
418
440
  optional :source_pub_key, :string, 8
419
441
  optional :use_mission_control, :bool, 9
442
+ repeated :ignored_pairs, :message, 10, "lnrpc.NodePair"
443
+ optional :cltv_limit, :uint32, 11
444
+ end
445
+ add_message "lnrpc.NodePair" do
446
+ optional :from, :bytes, 1
447
+ optional :to, :bytes, 2
420
448
  end
421
449
  add_message "lnrpc.EdgeLocator" do
422
450
  optional :channel_id, :uint64, 1
@@ -424,6 +452,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
424
452
  end
425
453
  add_message "lnrpc.QueryRoutesResponse" do
426
454
  repeated :routes, :message, 1, "lnrpc.Route"
455
+ optional :success_prob, :double, 2
427
456
  end
428
457
  add_message "lnrpc.Hop" do
429
458
  optional :chan_id, :uint64, 1
@@ -434,6 +463,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
434
463
  optional :amt_to_forward_msat, :int64, 6
435
464
  optional :fee_msat, :int64, 7
436
465
  optional :pub_key, :string, 8
466
+ optional :tlv_payload, :bool, 9
437
467
  end
438
468
  add_message "lnrpc.Route" do
439
469
  optional :total_time_lock, :uint32, 1
@@ -572,6 +602,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
572
602
  optional :amt_paid_sat, :int64, 19
573
603
  optional :amt_paid_msat, :int64, 20
574
604
  optional :state, :enum, 21, "lnrpc.Invoice.InvoiceState"
605
+ repeated :htlcs, :message, 22, "lnrpc.InvoiceHTLC"
575
606
  end
576
607
  add_enum "lnrpc.Invoice.InvoiceState" do
577
608
  value :OPEN, 0
@@ -579,6 +610,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
579
610
  value :CANCELED, 2
580
611
  value :ACCEPTED, 3
581
612
  end
613
+ add_message "lnrpc.InvoiceHTLC" do
614
+ optional :chan_id, :uint64, 1
615
+ optional :htlc_index, :uint64, 2
616
+ optional :amt_msat, :uint64, 3
617
+ optional :accept_height, :int32, 4
618
+ optional :accept_time, :int64, 5
619
+ optional :resolve_time, :int64, 6
620
+ optional :expiry_height, :int32, 7
621
+ optional :state, :enum, 8, "lnrpc.InvoiceHTLCState"
622
+ end
582
623
  add_message "lnrpc.AddInvoiceResponse" do
583
624
  optional :r_hash, :bytes, 1
584
625
  optional :payment_request, :string, 2
@@ -678,6 +719,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
678
719
  optional :base_fee_msat, :int64, 3
679
720
  optional :fee_rate, :double, 4
680
721
  optional :time_lock_delta, :uint32, 5
722
+ optional :max_htlc_msat, :uint64, 6
681
723
  oneof :scope do
682
724
  optional :global, :bool, 1
683
725
  optional :chan_point, :message, 2, "lnrpc.ChannelPoint"
@@ -742,6 +784,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
742
784
  value :UNUSED_WITNESS_PUBKEY_HASH, 2
743
785
  value :UNUSED_NESTED_PUBKEY_HASH, 3
744
786
  end
787
+ add_enum "lnrpc.InvoiceHTLCState" do
788
+ value :ACCEPTED, 0
789
+ value :SETTLED, 1
790
+ value :CANCELED, 2
791
+ end
745
792
  end
746
793
 
747
794
  module Lnrpc
@@ -761,6 +808,8 @@ module Lnrpc
761
808
  SendRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendRequest").msgclass
762
809
  SendResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendResponse").msgclass
763
810
  SendToRouteRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.SendToRouteRequest").msgclass
811
+ ChannelAcceptRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelAcceptRequest").msgclass
812
+ ChannelAcceptResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelAcceptResponse").msgclass
764
813
  ChannelPoint = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelPoint").msgclass
765
814
  OutPoint = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.OutPoint").msgclass
766
815
  LightningAddress = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.LightningAddress").msgclass
@@ -821,6 +870,7 @@ module Lnrpc
821
870
  ChannelBalanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelBalanceRequest").msgclass
822
871
  ChannelBalanceResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelBalanceResponse").msgclass
823
872
  QueryRoutesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.QueryRoutesRequest").msgclass
873
+ NodePair = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.NodePair").msgclass
824
874
  EdgeLocator = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.EdgeLocator").msgclass
825
875
  QueryRoutesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.QueryRoutesResponse").msgclass
826
876
  Hop = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Hop").msgclass
@@ -847,6 +897,7 @@ module Lnrpc
847
897
  RouteHint = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.RouteHint").msgclass
848
898
  Invoice = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Invoice").msgclass
849
899
  Invoice::InvoiceState = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.Invoice.InvoiceState").enummodule
900
+ InvoiceHTLC = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.InvoiceHTLC").msgclass
850
901
  AddInvoiceResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.AddInvoiceResponse").msgclass
851
902
  PaymentHash = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.PaymentHash").msgclass
852
903
  ListInvoiceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ListInvoiceRequest").msgclass
@@ -883,4 +934,5 @@ module Lnrpc
883
934
  ChannelBackupSubscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.ChannelBackupSubscription").msgclass
884
935
  VerifyChanBackupResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.VerifyChanBackupResponse").msgclass
885
936
  AddressType = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.AddressType").enummodule
937
+ InvoiceHTLCState = Google::Protobuf::DescriptorPool.generated_pool.lookup("lnrpc.InvoiceHTLCState").enummodule
886
938
  end
@@ -165,7 +165,7 @@ module Lnrpc
165
165
  # ListChannels returns a description of all the open channels that this node
166
166
  # is a participant in.
167
167
  rpc :ListChannels, ListChannelsRequest, ListChannelsResponse
168
- # * lncli: `subscribechannelevents`
168
+ # *
169
169
  # SubscribeChannelEvents creates a uni-directional stream from the server to
170
170
  # the client in which any updates relevant to the state of the channels are
171
171
  # sent over. Events include new active channels, inactive channels, and closed
@@ -188,6 +188,13 @@ module Lnrpc
188
188
  # rate to us for the funding transaction. If neither are specified, then a
189
189
  # lax block confirmation target is used.
190
190
  rpc :OpenChannel, OpenChannelRequest, stream(OpenStatusUpdate)
191
+ # *
192
+ # ChannelAcceptor dispatches a bi-directional streaming RPC in which
193
+ # OpenChannel requests are sent to the client and the client responds with
194
+ # a boolean that tells LND whether or not to accept the channel. This allows
195
+ # node operators to specify their own criteria for accepting inbound channels
196
+ # through a single persistent connection.
197
+ rpc :ChannelAcceptor, stream(ChannelAcceptResponse), stream(ChannelAcceptRequest)
191
198
  # * lncli: `closechannel`
192
199
  # CloseChannel attempts to close an active channel identified by its channel
193
200
  # outpoint (ChannelPoint). The actions of this method can additionally be
@@ -1,3 +1,3 @@
1
1
  module Lnrpc
2
- VERSION = "0.7.1"
2
+ VERSION = "0.8.0.beta"
3
3
  end
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.7.1
4
+ version: 0.8.0.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bumann
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-29 00:00:00.000000000 Z
11
+ date: 2019-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -121,12 +121,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - ">="
124
+ - - ">"
125
125
  - !ruby/object:Gem::Version
126
- version: '0'
126
+ version: 1.3.1
127
127
  requirements: []
128
- rubyforge_project:
129
- rubygems_version: 2.7.6
128
+ rubygems_version: 3.0.6
130
129
  signing_key:
131
130
  specification_version: 4
132
131
  summary: gRPC interface for lnd packed as ruby gem